@bahmni/services 0.0.1-dev.141 → 0.0.1-dev.142
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/conceptService/conceptService.d.ts +6 -0
- package/dist/conceptService/conceptService.d.ts.map +1 -1
- package/dist/conceptService/constants.d.ts +2 -0
- package/dist/conceptService/constants.d.ts.map +1 -1
- package/dist/conceptService/index.d.ts +1 -1
- package/dist/conceptService/index.d.ts.map +1 -1
- package/dist/index.js +1300 -1288
- package/dist/programService/__mocks__/mocks.d.ts.map +1 -1
- package/dist/programService/constants.d.ts.map +1 -1
- package/dist/programService/programService.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { ValueSet } from 'fhir/r4';
|
|
2
2
|
import { ConceptData, ConceptSearch } from './models';
|
|
3
|
+
interface ConceptName {
|
|
4
|
+
name: string;
|
|
5
|
+
conceptNameType: string;
|
|
6
|
+
}
|
|
3
7
|
/**
|
|
4
8
|
* Search for concepts matching the provided term
|
|
5
9
|
* @param term - The search term to find matching concepts
|
|
@@ -21,4 +25,6 @@ export declare function getConceptById(uuid: string): Promise<ConceptData>;
|
|
|
21
25
|
* @returns Promise resolving to full ConceptData or null if not found
|
|
22
26
|
*/
|
|
23
27
|
export declare function searchConceptByName(conceptName: string): Promise<ConceptData | null>;
|
|
28
|
+
export declare function getDisplayNameForConcept(names: ConceptName[] | undefined): string | null;
|
|
29
|
+
export {};
|
|
24
30
|
//# sourceMappingURL=conceptService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conceptService.d.ts","sourceRoot":"","sources":["../../src/conceptService/conceptService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"conceptService.d.ts","sourceRoot":"","sources":["../../src/conceptService/conceptService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAYnC,OAAO,EACL,WAAW,EACX,aAAa,EAEd,MAAM,UAAU,CAAC;AAElB,UAAU,WAAW;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;;;;GAKG;AACH,eAAO,MAAM,cAAc,GACzB,MAAM,MAAM,EACZ,cAAU,KACT,OAAO,CAAC,aAAa,EAAE,CAIzB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAU,MAAM,MAAM,KAAG,OAAO,CAAC,QAAQ,CAGvE,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACnC,MAAM,MAAM,KACX,OAAO,CAAC,QAAQ,CAGlB,CAAC;AAEF,wBAAsB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAEvE;AAED;;;;GAIG;AACH,wBAAsB,mBAAmB,CACvC,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAS7B;AAED,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,WAAW,EAAE,GAAG,SAAS,GAC/B,MAAM,GAAG,IAAI,CAgBf"}
|
|
@@ -3,4 +3,6 @@ export declare const FHIR_VALUESET_FILTER_EXPAND_URL: (filter: string) => string
|
|
|
3
3
|
export declare const CONCEPT_SEARCH_URL: (term: string, limit: number, locale: string) => string;
|
|
4
4
|
export declare const CONCEPT_GET_URL: (uuid: string) => string;
|
|
5
5
|
export declare const CONCEPT_BY_FULLY_SPECIFIED_NAME_URL: (conceptName: string) => string;
|
|
6
|
+
export declare const CONCEPT_NAME_TYPE_SHORT = "SHORT";
|
|
7
|
+
export declare const CONCEPT_NAME_TYPE_FULLY_SPECIFIED = "FULLY_SPECIFIED";
|
|
6
8
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/conceptService/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,WACC,CAAC;AAChD,eAAO,MAAM,+BAA+B,GAAI,QAAQ,MAAM,WACc,CAAC;AAC7E,eAAO,MAAM,kBAAkB,GAC7B,MAAM,MAAM,EACZ,OAAO,MAAM,EACb,QAAQ,MAAM,WAG+D,CAAC;AAEhF,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,WACN,CAAC;AAEvC,eAAO,MAAM,mCAAmC,GAAI,aAAa,MAAM,WACsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/conceptService/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,WACC,CAAC;AAChD,eAAO,MAAM,+BAA+B,GAAI,QAAQ,MAAM,WACc,CAAC;AAC7E,eAAO,MAAM,kBAAkB,GAC7B,MAAM,MAAM,EACZ,OAAO,MAAM,EACb,QAAQ,MAAM,WAG+D,CAAC;AAEhF,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,WACN,CAAC;AAEvC,eAAO,MAAM,mCAAmC,GAAI,aAAa,MAAM,WACsB,CAAC;AAE9F,eAAO,MAAM,uBAAuB,UAAU,CAAC;AAC/C,eAAO,MAAM,iCAAiC,oBAAoB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { searchConcepts, searchFHIRConcepts, searchFHIRConceptsByName, getConceptById, searchConceptByName, } from './conceptService';
|
|
1
|
+
export { searchConcepts, searchFHIRConcepts, searchFHIRConceptsByName, getConceptById, searchConceptByName, getDisplayNameForConcept, } from './conceptService';
|
|
2
2
|
export { type ConceptSearch, type ConceptClass, type ConceptData, } from './models';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/conceptService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,wBAAwB,EACxB,cAAc,EACd,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/conceptService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,wBAAwB,EACxB,cAAc,EACd,mBAAmB,EACnB,wBAAwB,GACzB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,WAAW,GACjB,MAAM,UAAU,CAAC"}
|