@bahmni/services 0.0.1-dev.100
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/LICENSE +9 -0
- package/README.md +21 -0
- package/dist/AppointmentService/appointmmetService.d.ts +5 -0
- package/dist/AppointmentService/appointmmetService.d.ts.map +1 -0
- package/dist/AppointmentService/constatns.d.ts +3 -0
- package/dist/AppointmentService/constatns.d.ts.map +1 -0
- package/dist/AppointmentService/index.d.ts +3 -0
- package/dist/AppointmentService/index.d.ts.map +1 -0
- package/dist/AppointmentService/models.d.ts +70 -0
- package/dist/AppointmentService/models.d.ts.map +1 -0
- package/dist/allergyService/__mocks__/mocks.d.ts +56 -0
- package/dist/allergyService/__mocks__/mocks.d.ts.map +1 -0
- package/dist/allergyService/allergyService.d.ts +41 -0
- package/dist/allergyService/allergyService.d.ts.map +1 -0
- package/dist/allergyService/constants.d.ts +15 -0
- package/dist/allergyService/constants.d.ts.map +1 -0
- package/dist/allergyService/index.d.ts +3 -0
- package/dist/allergyService/index.d.ts.map +1 -0
- package/dist/allergyService/models.d.ts +60 -0
- package/dist/allergyService/models.d.ts.map +1 -0
- package/dist/api/api.d.ts +27 -0
- package/dist/api/api.d.ts.map +1 -0
- package/dist/api/client.d.ts +4 -0
- package/dist/api/client.d.ts.map +1 -0
- package/dist/api/constants.d.ts +2 -0
- package/dist/api/constants.d.ts.map +1 -0
- package/dist/api/index.d.ts +2 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/utils.d.ts +20 -0
- package/dist/api/utils.d.ts.map +1 -0
- package/dist/applicationConfigService/ApplicationConfigService.d.ts +17 -0
- package/dist/applicationConfigService/ApplicationConfigService.d.ts.map +1 -0
- package/dist/applicationConfigService/constants.d.ts +3 -0
- package/dist/applicationConfigService/constants.d.ts.map +1 -0
- package/dist/applicationConfigService/index.d.ts +2 -0
- package/dist/applicationConfigService/index.d.ts.map +1 -0
- package/dist/auditLogService/auditEventDispatcher.d.ts +20 -0
- package/dist/auditLogService/auditEventDispatcher.d.ts.map +1 -0
- package/dist/auditLogService/auditLogService.d.ts +11 -0
- package/dist/auditLogService/auditLogService.d.ts.map +1 -0
- package/dist/auditLogService/constants.d.ts +48 -0
- package/dist/auditLogService/constants.d.ts.map +1 -0
- package/dist/auditLogService/globalAuditListener.d.ts +11 -0
- package/dist/auditLogService/globalAuditListener.d.ts.map +1 -0
- package/dist/auditLogService/index.d.ts +6 -0
- package/dist/auditLogService/index.d.ts.map +1 -0
- package/dist/auditLogService/models.d.ts +12 -0
- package/dist/auditLogService/models.d.ts.map +1 -0
- package/dist/cameraService/index.d.ts +2 -0
- package/dist/cameraService/index.d.ts.map +1 -0
- package/dist/cameraService/useCamera.d.ts +7 -0
- package/dist/cameraService/useCamera.d.ts.map +1 -0
- package/dist/conceptService/conceptService.d.ts +18 -0
- package/dist/conceptService/conceptService.d.ts.map +1 -0
- package/dist/conceptService/constants.d.ts +5 -0
- package/dist/conceptService/constants.d.ts.map +1 -0
- package/dist/conceptService/index.d.ts +3 -0
- package/dist/conceptService/index.d.ts.map +1 -0
- package/dist/conceptService/models.d.ts +83 -0
- package/dist/conceptService/models.d.ts.map +1 -0
- package/dist/conditionService/__mocks__/mocks.d.ts +22 -0
- package/dist/conditionService/__mocks__/mocks.d.ts.map +1 -0
- package/dist/conditionService/conditionService.d.ts +14 -0
- package/dist/conditionService/conditionService.d.ts.map +1 -0
- package/dist/conditionService/constants.d.ts +2 -0
- package/dist/conditionService/constants.d.ts.map +1 -0
- package/dist/conditionService/index.d.ts +3 -0
- package/dist/conditionService/index.d.ts.map +1 -0
- package/dist/conditionService/models.d.ts +13 -0
- package/dist/conditionService/models.d.ts.map +1 -0
- package/dist/configService/__mocks__/configMocks.d.ts +191 -0
- package/dist/configService/__mocks__/configMocks.d.ts.map +1 -0
- package/dist/configService/configService.d.ts +31 -0
- package/dist/configService/configService.d.ts.map +1 -0
- package/dist/configService/constants.d.ts +22 -0
- package/dist/configService/constants.d.ts.map +1 -0
- package/dist/configService/index.d.ts +3 -0
- package/dist/configService/index.d.ts.map +1 -0
- package/dist/configService/models/config.d.ts +27 -0
- package/dist/configService/models/config.d.ts.map +1 -0
- package/dist/configService/models/dashboardConfig.d.ts +15 -0
- package/dist/configService/models/dashboardConfig.d.ts.map +1 -0
- package/dist/configService/models/medicationConfig.d.ts +41 -0
- package/dist/configService/models/medicationConfig.d.ts.map +1 -0
- package/dist/configService/models/registrationConfig.d.ts +109 -0
- package/dist/configService/models/registrationConfig.d.ts.map +1 -0
- package/dist/configService/models.d.ts +5 -0
- package/dist/configService/models.d.ts.map +1 -0
- package/dist/configService/schemas/clinicalConfig.schema.json.d.ts +98 -0
- package/dist/configService/schemas/dashboardConfig.schema.json.d.ts +57 -0
- package/dist/configService/schemas/medicationConfig.schema.json.d.ts +40 -0
- package/dist/configService/schemas/registrationConfig.schema.json.d.ts +406 -0
- package/dist/constants/app.d.ts +10 -0
- package/dist/constants/app.d.ts.map +1 -0
- package/dist/constants/fhir.d.ts +24 -0
- package/dist/constants/fhir.d.ts.map +1 -0
- package/dist/date/constants.d.ts +7 -0
- package/dist/date/constants.d.ts.map +1 -0
- package/dist/date/date.d.ts +75 -0
- package/dist/date/date.d.ts.map +1 -0
- package/dist/date/errors.d.ts +8 -0
- package/dist/date/errors.d.ts.map +1 -0
- package/dist/date/index.d.ts +3 -0
- package/dist/date/index.d.ts.map +1 -0
- package/dist/diagnosesService/constants.d.ts +4 -0
- package/dist/diagnosesService/constants.d.ts.map +1 -0
- package/dist/diagnosesService/diagnosesService.d.ts +8 -0
- package/dist/diagnosesService/diagnosesService.d.ts.map +1 -0
- package/dist/diagnosesService/index.d.ts +3 -0
- package/dist/diagnosesService/index.d.ts.map +1 -0
- package/dist/diagnosesService/models.d.ts +22 -0
- package/dist/diagnosesService/models.d.ts.map +1 -0
- package/dist/encounterService/__mocks__/mocks.d.ts +182 -0
- package/dist/encounterService/__mocks__/mocks.d.ts.map +1 -0
- package/dist/encounterService/constants.d.ts +2 -0
- package/dist/encounterService/constants.d.ts.map +1 -0
- package/dist/encounterService/encounterFilterUtils.d.ts +17 -0
- package/dist/encounterService/encounterFilterUtils.d.ts.map +1 -0
- package/dist/encounterService/encounterService.d.ts +20 -0
- package/dist/encounterService/encounterService.d.ts.map +1 -0
- package/dist/encounterService/index.d.ts +3 -0
- package/dist/encounterService/index.d.ts.map +1 -0
- package/dist/encounterSessionService/constants.d.ts +4 -0
- package/dist/encounterSessionService/constants.d.ts.map +1 -0
- package/dist/encounterSessionService/encounterSessionService.d.ts +43 -0
- package/dist/encounterSessionService/encounterSessionService.d.ts.map +1 -0
- package/dist/encounterSessionService/index.d.ts +2 -0
- package/dist/encounterSessionService/index.d.ts.map +1 -0
- package/dist/episodeOfCareService/constants.d.ts +2 -0
- package/dist/episodeOfCareService/constants.d.ts.map +1 -0
- package/dist/episodeOfCareService/episodeOfCareService.d.ts +8 -0
- package/dist/episodeOfCareService/episodeOfCareService.d.ts.map +1 -0
- package/dist/episodeOfCareService/index.d.ts +3 -0
- package/dist/episodeOfCareService/index.d.ts.map +1 -0
- package/dist/episodeOfCareService/models.d.ts +5 -0
- package/dist/episodeOfCareService/models.d.ts.map +1 -0
- package/dist/errorHandling/index.d.ts +2 -0
- package/dist/errorHandling/index.d.ts.map +1 -0
- package/dist/errorHandling/utils.d.ts +10 -0
- package/dist/errorHandling/utils.d.ts.map +1 -0
- package/dist/events/consultationEvents.d.ts +51 -0
- package/dist/events/consultationEvents.d.ts.map +1 -0
- package/dist/events/index.d.ts +2 -0
- package/dist/events/index.d.ts.map +1 -0
- package/dist/i18n/constants.d.ts +5 -0
- package/dist/i18n/constants.d.ts.map +1 -0
- package/dist/i18n/i18n.d.ts +10 -0
- package/dist/i18n/i18n.d.ts.map +1 -0
- package/dist/i18n/index.d.ts +4 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/translationService.d.ts +40 -0
- package/dist/i18n/translationService.d.ts.map +1 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12257 -0
- package/dist/investigationService/constants.d.ts +6 -0
- package/dist/investigationService/constants.d.ts.map +1 -0
- package/dist/investigationService/index.d.ts +4 -0
- package/dist/investigationService/index.d.ts.map +1 -0
- package/dist/investigationService/investigationService.d.ts +5 -0
- package/dist/investigationService/investigationService.d.ts.map +1 -0
- package/dist/investigationService/model.d.ts +20 -0
- package/dist/investigationService/model.d.ts.map +1 -0
- package/dist/labInvestigationService/constants.d.ts +2 -0
- package/dist/labInvestigationService/constants.d.ts.map +1 -0
- package/dist/labInvestigationService/index.d.ts +3 -0
- package/dist/labInvestigationService/index.d.ts.map +1 -0
- package/dist/labInvestigationService/labInvestigationService.d.ts +54 -0
- package/dist/labInvestigationService/labInvestigationService.d.ts.map +1 -0
- package/dist/labInvestigationService/models.d.ts +38 -0
- package/dist/labInvestigationService/models.d.ts.map +1 -0
- package/dist/medicationRequestService/constants.d.ts +2 -0
- package/dist/medicationRequestService/constants.d.ts.map +1 -0
- package/dist/medicationRequestService/index.d.ts +3 -0
- package/dist/medicationRequestService/index.d.ts.map +1 -0
- package/dist/medicationRequestService/medicationRequestService.d.ts +15 -0
- package/dist/medicationRequestService/medicationRequestService.d.ts.map +1 -0
- package/dist/medicationRequestService/models.d.ts +58 -0
- package/dist/medicationRequestService/models.d.ts.map +1 -0
- package/dist/notification/index.d.ts +3 -0
- package/dist/notification/index.d.ts.map +1 -0
- package/dist/notification/models.d.ts +9 -0
- package/dist/notification/models.d.ts.map +1 -0
- package/dist/notification/notificationService.d.ts +22 -0
- package/dist/notification/notificationService.d.ts.map +1 -0
- package/dist/observationFormsService/constants.d.ts +6 -0
- package/dist/observationFormsService/constants.d.ts.map +1 -0
- package/dist/observationFormsService/index.d.ts +4 -0
- package/dist/observationFormsService/index.d.ts.map +1 -0
- package/dist/observationFormsService/models.d.ts +71 -0
- package/dist/observationFormsService/models.d.ts.map +1 -0
- package/dist/observationFormsService/observationFormsService.d.ts +12 -0
- package/dist/observationFormsService/observationFormsService.d.ts.map +1 -0
- package/dist/observationFormsService/observationFormsTransformer.d.ts +19 -0
- package/dist/observationFormsService/observationFormsTransformer.d.ts.map +1 -0
- package/dist/orderRequestService/constants.d.ts +2 -0
- package/dist/orderRequestService/constants.d.ts.map +1 -0
- package/dist/orderRequestService/index.d.ts +2 -0
- package/dist/orderRequestService/index.d.ts.map +1 -0
- package/dist/orderRequestService/orderRequestService.d.ts +12 -0
- package/dist/orderRequestService/orderRequestService.d.ts.map +1 -0
- package/dist/patientService/attributeFormatMapper.d.ts +55 -0
- package/dist/patientService/attributeFormatMapper.d.ts.map +1 -0
- package/dist/patientService/constants.d.ts +26 -0
- package/dist/patientService/constants.d.ts.map +1 -0
- package/dist/patientService/index.d.ts +5 -0
- package/dist/patientService/index.d.ts.map +1 -0
- package/dist/patientService/models.d.ts +372 -0
- package/dist/patientService/models.d.ts.map +1 -0
- package/dist/patientService/patientService.d.ts +128 -0
- package/dist/patientService/patientService.d.ts.map +1 -0
- package/dist/privilegeService/index.d.ts +3 -0
- package/dist/privilegeService/index.d.ts.map +1 -0
- package/dist/privilegeService/models.d.ts +9 -0
- package/dist/privilegeService/models.d.ts.map +1 -0
- package/dist/privilegeService/privilegeService.d.ts +15 -0
- package/dist/privilegeService/privilegeService.d.ts.map +1 -0
- package/dist/programService/index.d.ts +3 -0
- package/dist/programService/index.d.ts.map +1 -0
- package/dist/programService/model.d.ts +171 -0
- package/dist/programService/model.d.ts.map +1 -0
- package/dist/programService/programService.d.ts +8 -0
- package/dist/programService/programService.d.ts.map +1 -0
- package/dist/providerService/constants.d.ts +2 -0
- package/dist/providerService/constants.d.ts.map +1 -0
- package/dist/providerService/index.d.ts +3 -0
- package/dist/providerService/index.d.ts.map +1 -0
- package/dist/providerService/models.d.ts +51 -0
- package/dist/providerService/models.d.ts.map +1 -0
- package/dist/providerService/providerService.d.ts +7 -0
- package/dist/providerService/providerService.d.ts.map +1 -0
- package/dist/radiologyInvestigationService/__mocks__/mocks.d.ts +10 -0
- package/dist/radiologyInvestigationService/__mocks__/mocks.d.ts.map +1 -0
- package/dist/radiologyInvestigationService/index.d.ts +2 -0
- package/dist/radiologyInvestigationService/index.d.ts.map +1 -0
- package/dist/radiologyInvestigationService/radiologyInvestigationService.d.ts +29 -0
- package/dist/radiologyInvestigationService/radiologyInvestigationService.d.ts.map +1 -0
- package/dist/userService/constants.d.ts +3 -0
- package/dist/userService/constants.d.ts.map +1 -0
- package/dist/userService/index.d.ts +3 -0
- package/dist/userService/index.d.ts.map +1 -0
- package/dist/userService/models.d.ts +18 -0
- package/dist/userService/models.d.ts.map +1 -0
- package/dist/userService/userService.d.ts +10 -0
- package/dist/userService/userService.d.ts.map +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/utils.d.ts +90 -0
- package/dist/utils/utils.d.ts.map +1 -0
- package/dist/visitService/constants.d.ts +5 -0
- package/dist/visitService/constants.d.ts.map +1 -0
- package/dist/visitService/index.d.ts +3 -0
- package/dist/visitService/index.d.ts.map +1 -0
- package/dist/visitService/models.d.ts +19 -0
- package/dist/visitService/models.d.ts.map +1 -0
- package/dist/visitService/visitService.d.ts +29 -0
- package/dist/visitService/visitService.d.ts.map +1 -0
- package/dist/vitalFlowSheetService/constants.d.ts +2 -0
- package/dist/vitalFlowSheetService/constants.d.ts.map +1 -0
- package/dist/vitalFlowSheetService/index.d.ts +3 -0
- package/dist/vitalFlowSheetService/index.d.ts.map +1 -0
- package/dist/vitalFlowSheetService/model.d.ts +22 -0
- package/dist/vitalFlowSheetService/model.d.ts.map +1 -0
- package/dist/vitalFlowSheetService/vitalFlowSheetService.d.ts +11 -0
- package/dist/vitalFlowSheetService/vitalFlowSheetService.d.ts.map +1 -0
- package/package.json +44 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const ALL_ORDERABLES_CONCEPT_NAME = "All Orderables";
|
|
2
|
+
export declare const ORDER_TYPE_URL = "/openmrs/ws/rest/v1/ordertype?v=custom:(uuid,display,conceptClasses:(uuid,name))";
|
|
3
|
+
export declare const PANEL_CONCEPT_CLASS_NAME = "LabSet";
|
|
4
|
+
export declare const FHIR_CONCEPT_CLASS_EXTENSION_URL = "http://fhir.bahmni.org/ext/ValueSet/concept-class";
|
|
5
|
+
export declare const ORDER_TYPE_QUERY_KEY: string[];
|
|
6
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/investigationService/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B,mBAAmB,CAAC;AAC5D,eAAO,MAAM,cAAc,qFACyD,CAAC;AACrF,eAAO,MAAM,wBAAwB,WAAW,CAAC;AACjD,eAAO,MAAM,gCAAgC,sDACQ,CAAC;AACtD,eAAO,MAAM,oBAAoB,UAAiB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { getFlattenedInvestigations, getOrderTypes, getCategoryUuidFromOrderTypes, } from './investigationService';
|
|
2
|
+
export { type FlattenedInvestigations, type OrderType, type OrderTypeResponse, } from './model';
|
|
3
|
+
export { ORDER_TYPE_QUERY_KEY } from './constants';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/investigationService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,aAAa,EACb,6BAA6B,GAC9B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,SAAS,EACd,KAAK,iBAAiB,GACvB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FlattenedInvestigations, OrderTypeResponse } from './model';
|
|
2
|
+
export declare const getOrderTypes: () => Promise<OrderTypeResponse>;
|
|
3
|
+
export declare const getFlattenedInvestigations: () => Promise<FlattenedInvestigations[]>;
|
|
4
|
+
export declare const getCategoryUuidFromOrderTypes: (categoryName: string | undefined) => Promise<string | undefined>;
|
|
5
|
+
//# sourceMappingURL=investigationService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"investigationService.d.ts","sourceRoot":"","sources":["../../src/investigationService/investigationService.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,uBAAuB,EAAa,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAOhF,eAAO,MAAM,aAAa,QAAa,OAAO,CAAC,iBAAiB,CAE/D,CAAC;AA+EF,eAAO,MAAM,0BAA0B,QAAa,OAAO,CACzD,uBAAuB,EAAE,CAK1B,CAAC;AAEF,eAAO,MAAM,6BAA6B,GACxC,cAAc,MAAM,GAAG,SAAS,KAC/B,OAAO,CAAC,MAAM,GAAG,SAAS,CAO5B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface FlattenedInvestigations {
|
|
2
|
+
code: string;
|
|
3
|
+
display: string;
|
|
4
|
+
category: string;
|
|
5
|
+
categoryCode: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface ConceptClass {
|
|
9
|
+
uuid: string;
|
|
10
|
+
name: string;
|
|
11
|
+
}
|
|
12
|
+
export interface OrderType {
|
|
13
|
+
uuid: string;
|
|
14
|
+
display: string;
|
|
15
|
+
conceptClasses: ConceptClass[];
|
|
16
|
+
}
|
|
17
|
+
export interface OrderTypeResponse {
|
|
18
|
+
results: OrderType[];
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/investigationService/model.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,YAAY,EAAE,CAAC;CAChC;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,SAAS,EAAE,CAAC;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/labInvestigationService/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yCAAyC,sDACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/labInvestigationService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,mBAAmB,EACnB,cAAc,GACf,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,eAAe,GAChB,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Bundle, ServiceRequest } from 'fhir/r4';
|
|
2
|
+
import { FormattedLabTest, LabTestPriority, LabTestsByDate } from './models';
|
|
3
|
+
/**
|
|
4
|
+
* Maps a FHIR priority code to LabTestPriority enum
|
|
5
|
+
*/
|
|
6
|
+
export declare const mapLabTestPriority: (labTest: ServiceRequest) => LabTestPriority;
|
|
7
|
+
export declare function filterLabTestEntries(labTestBundle: Bundle<ServiceRequest>): ServiceRequest[];
|
|
8
|
+
/**
|
|
9
|
+
* Fetches lab investigations from the FHIR R4 endpoint
|
|
10
|
+
* @param category - The category UUID to filter by (order type)
|
|
11
|
+
* @param patientUuid - Patient UUID to filter by
|
|
12
|
+
* @param encounterUuids - Optional encounter UUIDs to filter by
|
|
13
|
+
* @param numberOfVisits - Optional number of visits to filter by
|
|
14
|
+
* @returns Promise resolving to ServiceRequest Bundle
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* Fetches lab tests for a given patient UUID
|
|
18
|
+
* @param patientUUID - The UUID of the patient
|
|
19
|
+
* @param category
|
|
20
|
+
* @param t
|
|
21
|
+
* @param encounterUuids
|
|
22
|
+
* @param numberOfVisits
|
|
23
|
+
* @returns Promise resolving to an array of FhirLabTest
|
|
24
|
+
*/
|
|
25
|
+
export declare function getLabTests(patientUUID: string, category: string, t: (key: string) => string, encounterUuids?: string[], numberOfVisits?: number): Promise<ServiceRequest[]>;
|
|
26
|
+
/**
|
|
27
|
+
* Determines if a lab test is a panel based on its extension
|
|
28
|
+
* @param labTest - The FHIR lab test to check
|
|
29
|
+
* @returns A string indicating the test type: "Panel", "Single Test", or "X Tests"
|
|
30
|
+
*/
|
|
31
|
+
export declare const determineTestType: (labTest: ServiceRequest) => string;
|
|
32
|
+
/**
|
|
33
|
+
* Formats FHIR lab tests into a more user-friendly format
|
|
34
|
+
* @param labTests - The FHIR lab test array to format
|
|
35
|
+
* @returns An array of formatted lab test objects
|
|
36
|
+
*/
|
|
37
|
+
export declare function formatLabTests(labTests: ServiceRequest[], t: (key: string) => string): FormattedLabTest[];
|
|
38
|
+
/**
|
|
39
|
+
* Groups lab tests by date
|
|
40
|
+
* @param labTests - The formatted lab tests to group
|
|
41
|
+
* @returns An array of lab tests grouped by date
|
|
42
|
+
*/
|
|
43
|
+
export declare function groupLabTestsByDate(labTests: FormattedLabTest[]): LabTestsByDate[];
|
|
44
|
+
/**
|
|
45
|
+
* Fetches and formats lab investigations for a given patient UUID
|
|
46
|
+
* @param patientUUID - The UUID of the patient
|
|
47
|
+
* @param category - The category UUID to filter by (order type)
|
|
48
|
+
* @param encounterUuids - Optional encounter UUIDs to filter by
|
|
49
|
+
* @param numberOfVisits - Optional number of visits to filter by
|
|
50
|
+
* @param t - Translation function
|
|
51
|
+
* @returns Promise resolving to an array of lab investigations
|
|
52
|
+
*/
|
|
53
|
+
export declare function getPatientLabInvestigations(patientUUID: string, category: string, t: (key: string) => string, encounterUuids?: string[], numberOfVisits?: number): Promise<FormattedLabTest[]>;
|
|
54
|
+
//# sourceMappingURL=labInvestigationService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"labInvestigationService.d.ts","sourceRoot":"","sources":["../../src/labInvestigationService/labInvestigationService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAIjD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE7E;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAC7B,SAAS,cAAc,KACtB,eASF,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,aAAa,EAAE,MAAM,CAAC,cAAc,CAAC,oBA8BzE;AAED;;;;;;;GAOG;AAEH;;;;;;;;GAQG;AACH,wBAAsB,WAAW,CAC/B,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,EAC1B,cAAc,CAAC,EAAE,MAAM,EAAE,EACzB,cAAc,CAAC,EAAE,MAAM,GACtB,OAAO,CAAC,cAAc,EAAE,CAAC,CAS3B;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAAI,SAAS,cAAc,KAAG,MAc3D,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,cAAc,EAAE,EAC1B,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GACzB,gBAAgB,EAAE,CA+BpB;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,gBAAgB,EAAE,GAC3B,cAAc,EAAE,CAqBlB;AAED;;;;;;;;GAQG;AACH,wBAAsB,2BAA2B,CAC/C,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,EAC1B,cAAc,CAAC,EAAE,MAAM,EAAE,EACzB,cAAc,CAAC,EAAE,MAAM,GACtB,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAS7B"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enum representing the possible priorities of a lab test
|
|
3
|
+
*/
|
|
4
|
+
export declare enum LabTestPriority {
|
|
5
|
+
stat = "Urgent",
|
|
6
|
+
routine = "Routine"
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Interface representing a formatted lab test for easier consumption by components
|
|
10
|
+
*/
|
|
11
|
+
export interface FormattedLabTest {
|
|
12
|
+
readonly id: string;
|
|
13
|
+
readonly testName: string;
|
|
14
|
+
readonly priority: LabTestPriority;
|
|
15
|
+
readonly orderedBy: string;
|
|
16
|
+
readonly orderedDate: string;
|
|
17
|
+
readonly formattedDate: string;
|
|
18
|
+
readonly result?: string | LabTestResult[];
|
|
19
|
+
readonly testType: string;
|
|
20
|
+
readonly note?: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Interface representing lab tests grouped by date
|
|
24
|
+
*/
|
|
25
|
+
export interface LabTestsByDate {
|
|
26
|
+
readonly date: string;
|
|
27
|
+
readonly rawDate: string;
|
|
28
|
+
readonly tests: FormattedLabTest[];
|
|
29
|
+
}
|
|
30
|
+
export interface LabTestResult {
|
|
31
|
+
status: string;
|
|
32
|
+
TestName: string;
|
|
33
|
+
Result: string;
|
|
34
|
+
referenceRange: string;
|
|
35
|
+
reportedOn: string;
|
|
36
|
+
actions: string;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/labInvestigationService/models.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,eAAe;IACzB,IAAI,WAAW;IACf,OAAO,YAAY;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,eAAe,CAAC;IACnC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,aAAa,EAAE,CAAC;IAC3C,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,gBAAgB,EAAE,CAAC;CACpC;AAED,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/medicationRequestService/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,+BAA+B,GAAI,aAAa,MAAM,WAES,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/medicationRequestService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,iBAAiB,EACtB,gBAAgB,GACjB,MAAM,UAAU,CAAC;AAElB,OAAO,EACL,qBAAqB,EACrB,0BAA0B,GAC3B,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Bundle } from 'fhir/r4';
|
|
2
|
+
import { MedicationRequest } from './models';
|
|
3
|
+
/**
|
|
4
|
+
* Fetches medications for a given patient UUID from the FHIR R4 endpoint
|
|
5
|
+
* @param patientUUID - The UUID of the patient
|
|
6
|
+
* @returns Promise resolving to a Bundle containing medications
|
|
7
|
+
*/
|
|
8
|
+
export declare function getPatientMedicationBundle(patientUUID: string): Promise<Bundle>;
|
|
9
|
+
/**
|
|
10
|
+
* Fetches and formats medications for a given patient UUID
|
|
11
|
+
* @param patientUUID - The UUID of the patient
|
|
12
|
+
* @returns Promise resolving to an array of medications
|
|
13
|
+
*/
|
|
14
|
+
export declare function getPatientMedications(patientUUID: string): Promise<MedicationRequest[]>;
|
|
15
|
+
//# sourceMappingURL=medicationRequestService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"medicationRequestService.d.ts","sourceRoot":"","sources":["../../src/medicationRequestService/medicationRequestService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAA8C,MAAM,SAAS,CAAC;AAG7E,OAAO,EAAE,iBAAiB,EAAoB,MAAM,UAAU,CAAC;AA8B/D;;;;GAIG;AACH,wBAAsB,0BAA0B,CAC9C,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,MAAM,CAAC,CAGjB;AAiJD;;;;GAIG;AACH,wBAAsB,qBAAqB,CACzC,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAG9B"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enum representing canonical statuses of a medication request
|
|
3
|
+
*/
|
|
4
|
+
export declare enum MedicationStatus {
|
|
5
|
+
Active = "active",
|
|
6
|
+
OnHold = "on-hold",
|
|
7
|
+
Completed = "completed",
|
|
8
|
+
Stopped = "stopped",
|
|
9
|
+
Cancelled = "cancelled",
|
|
10
|
+
EnteredInError = "entered-in-error",
|
|
11
|
+
Draft = "draft",
|
|
12
|
+
Unknown = "unknown"
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Interface representing a formatted medication for easier consumption by components
|
|
16
|
+
*/
|
|
17
|
+
export interface MedicationRequest {
|
|
18
|
+
readonly id: string;
|
|
19
|
+
readonly name: string;
|
|
20
|
+
readonly dose?: {
|
|
21
|
+
readonly value: number;
|
|
22
|
+
readonly unit: string;
|
|
23
|
+
};
|
|
24
|
+
readonly frequency?: string;
|
|
25
|
+
readonly route?: string;
|
|
26
|
+
readonly duration?: {
|
|
27
|
+
readonly duration: number;
|
|
28
|
+
readonly durationUnit?: string;
|
|
29
|
+
};
|
|
30
|
+
readonly quantity: {
|
|
31
|
+
readonly value: number;
|
|
32
|
+
readonly unit: string;
|
|
33
|
+
};
|
|
34
|
+
readonly status: MedicationStatus;
|
|
35
|
+
readonly priority: string;
|
|
36
|
+
readonly startDate: string;
|
|
37
|
+
readonly orderDate: string;
|
|
38
|
+
readonly orderedBy: string;
|
|
39
|
+
readonly instructions: string;
|
|
40
|
+
readonly additionalInstructions?: string;
|
|
41
|
+
readonly asNeeded: boolean;
|
|
42
|
+
readonly isImmediate: boolean;
|
|
43
|
+
}
|
|
44
|
+
export interface FormattedMedicationRequest {
|
|
45
|
+
readonly id: string;
|
|
46
|
+
readonly name: string;
|
|
47
|
+
readonly dosage: string;
|
|
48
|
+
readonly dosageUnit: string;
|
|
49
|
+
readonly quantity: string;
|
|
50
|
+
readonly instruction: string;
|
|
51
|
+
readonly startDate: string;
|
|
52
|
+
readonly orderDate: string;
|
|
53
|
+
readonly orderedBy: string;
|
|
54
|
+
readonly status: MedicationStatus;
|
|
55
|
+
readonly asNeeded: boolean;
|
|
56
|
+
readonly isImmediate: boolean;
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/medicationRequestService/models.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,gBAAgB;IAC1B,MAAM,WAAW;IACjB,MAAM,YAAY;IAClB,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,cAAc,qBAAqB;IACnC,KAAK,UAAU;IACf,OAAO,YAAY;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,CAAC,EAAE;QACd,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;KACvB,CAAC;IACF,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,CAAC,EAAE;QAClB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;QAC1B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;KAChC,CAAC;IACF,QAAQ,CAAC,QAAQ,EAAE;QACjB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;KACvB,CAAC;IACF,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAClC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,sBAAsB,CAAC,EAAE,MAAM,CAAC;IACzC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;CAC/B;AAED,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAClC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;CAC/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/notification/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/notification/models.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;AAExE,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Notification } from './models';
|
|
2
|
+
/**
|
|
3
|
+
* Interface for the notification service
|
|
4
|
+
*/
|
|
5
|
+
interface NotificationServiceInterface {
|
|
6
|
+
showSuccess: (title: string, message: string, timeout?: number) => void;
|
|
7
|
+
showInfo: (title: string, message: string, timeout?: number) => void;
|
|
8
|
+
showWarning: (title: string, message: string, timeout?: number) => void;
|
|
9
|
+
showError: (title: string, message: string, timeout?: number) => void;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Creates a notification service that can be used outside of React components
|
|
13
|
+
* (e.g., in API interceptors, services, etc.)
|
|
14
|
+
*/
|
|
15
|
+
export declare const createNotificationService: () => NotificationServiceInterface & {
|
|
16
|
+
register: (callback: (notification: Omit<Notification, "id">) => void) => void;
|
|
17
|
+
};
|
|
18
|
+
export declare const notificationService: NotificationServiceInterface & {
|
|
19
|
+
register: (callback: (notification: Omit<Notification, "id">) => void) => void;
|
|
20
|
+
};
|
|
21
|
+
export default notificationService;
|
|
22
|
+
//# sourceMappingURL=notificationService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notificationService.d.ts","sourceRoot":"","sources":["../../src/notification/notificationService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC;;GAEG;AACH,UAAU,4BAA4B;IACpC,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACxE,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACrE,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACxE,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACvE;AAED;;;GAGG;AACH,eAAO,MAAM,yBAAyB,QAAO,4BAA4B,GAAG;IAC1E,QAAQ,EAAE,CACR,QAAQ,EAAE,CAAC,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,KAAK,IAAI,KACvD,IAAI,CAAC;CAyDX,CAAC;AAGF,eAAO,MAAM,mBAAmB;cA9DpB,CACR,QAAQ,EAAE,CAAC,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,KAAK,IAAI,KACvD,IAAI;CA4DmD,CAAC;AAE/D,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const FORM_METADATA_URL: (formUuid: string) => string;
|
|
2
|
+
export declare const OBSERVATION_FORMS_URL: string;
|
|
3
|
+
export declare const USER_PINNED_PREFERENCE_URL: (userUuid: string) => string;
|
|
4
|
+
export declare const FORM_TRANSLATIONS_URL: (formName: string, formUuid: string, formVersion: string, locale: string) => string;
|
|
5
|
+
export declare const DEFAULT_FORM_NAMESPACE = "Bahmni";
|
|
6
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/observationFormsService/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,GAAI,UAAU,MAAM,WACkB,CAAC;AACrE,eAAO,MAAM,qBAAqB,QACuB,CAAC;AAC1D,eAAO,MAAM,0BAA0B,GAAI,UAAU,MAAM,WACb,CAAC;AAC/C,eAAO,MAAM,qBAAqB,GAChC,UAAU,MAAM,EAChB,UAAU,MAAM,EAChB,aAAa,MAAM,EACnB,QAAQ,MAAM,WAGyH,CAAC;AAE1I,eAAO,MAAM,sBAAsB,WAAW,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { fetchObservationForms, fetchFormMetadata, } from './observationFormsService';
|
|
2
|
+
export { type ObservationForm, type FormApiResponse, type ApiNameTranslation, type FormPrivilege, type ApiFormPrivilege, type FormMetadata, type FormMetadataApiResponse, type FormResource, type ComplexValue, type ObservationFormTranslations, } from './models';
|
|
3
|
+
export { transformFormDataToObservations, transformObservationsToFormData, type FormData, type FormControlData, type Form2Observation, type ConceptValue, } from './observationFormsTransformer';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/observationFormsService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,uBAAuB,EAC5B,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,2BAA2B,GACjC,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,+BAA+B,EAC/B,+BAA+B,EAC/B,KAAK,QAAQ,EACb,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,YAAY,GAClB,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { ObservationFormTranslations } from '../i18n';
|
|
2
|
+
export type { ObservationFormTranslations } from '../i18n';
|
|
3
|
+
export interface FormPrivilege {
|
|
4
|
+
privilegeName: string;
|
|
5
|
+
editable: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface ObservationForm {
|
|
8
|
+
uuid: string;
|
|
9
|
+
name: string;
|
|
10
|
+
id: number;
|
|
11
|
+
privileges: FormPrivilege[];
|
|
12
|
+
}
|
|
13
|
+
export interface ApiFormPrivilege {
|
|
14
|
+
privilegeName: string;
|
|
15
|
+
editable: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface ApiNameTranslation {
|
|
18
|
+
display: string;
|
|
19
|
+
locale: string;
|
|
20
|
+
}
|
|
21
|
+
export interface FormApiResponse {
|
|
22
|
+
uuid: string;
|
|
23
|
+
name: string;
|
|
24
|
+
id: number;
|
|
25
|
+
privileges: ApiFormPrivilege[];
|
|
26
|
+
nameTranslation: string;
|
|
27
|
+
}
|
|
28
|
+
export interface FormResource {
|
|
29
|
+
uuid: string;
|
|
30
|
+
value: string;
|
|
31
|
+
}
|
|
32
|
+
export interface FormMetadataApiResponse {
|
|
33
|
+
uuid: string;
|
|
34
|
+
name: string;
|
|
35
|
+
version: string;
|
|
36
|
+
published: boolean;
|
|
37
|
+
resources: FormResource[];
|
|
38
|
+
}
|
|
39
|
+
export interface FormMetadata {
|
|
40
|
+
uuid: string;
|
|
41
|
+
name: string;
|
|
42
|
+
version: string;
|
|
43
|
+
published: boolean;
|
|
44
|
+
schema: unknown;
|
|
45
|
+
translations?: ObservationFormTranslations;
|
|
46
|
+
}
|
|
47
|
+
export interface Form2Observation {
|
|
48
|
+
concept: {
|
|
49
|
+
uuid: string;
|
|
50
|
+
datatype?: string;
|
|
51
|
+
};
|
|
52
|
+
value: string | number | boolean | ConceptValue | ComplexValue | null;
|
|
53
|
+
obsDatetime?: string;
|
|
54
|
+
groupMembers?: Form2Observation[];
|
|
55
|
+
comment?: string;
|
|
56
|
+
interpretation?: string;
|
|
57
|
+
formNamespace?: string;
|
|
58
|
+
formFieldPath?: string;
|
|
59
|
+
}
|
|
60
|
+
export interface ConceptValue {
|
|
61
|
+
uuid: string;
|
|
62
|
+
display?: string;
|
|
63
|
+
}
|
|
64
|
+
export interface ComplexValue {
|
|
65
|
+
url: string;
|
|
66
|
+
fileName?: string;
|
|
67
|
+
fileSize?: number;
|
|
68
|
+
contentType?: string;
|
|
69
|
+
[key: string]: unknown;
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/observationFormsService/models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAEtD,YAAY,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAE3D,MAAM,WAAW,aAAa;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAGD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,aAAa,EAAE,CAAC;CAC7B;AAGD,MAAM,WAAW,gBAAgB;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,gBAAgB,EAAE,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC;CACzB;AAGD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,YAAY,EAAE,CAAC;CAC3B;AAGD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,2BAA2B,CAAC;CAC5C;AAGD,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC7C,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,YAAY,GAAG,YAAY,GAAG,IAAI,CAAC;IACtE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAGD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAGD,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ObservationForm, FormMetadata } from './models';
|
|
2
|
+
/**
|
|
3
|
+
* Function to fetch and process observation forms
|
|
4
|
+
*/
|
|
5
|
+
export declare const fetchObservationForms: () => Promise<ObservationForm[]>;
|
|
6
|
+
/**
|
|
7
|
+
* Fetches form metadata including the form schema/definition and translations
|
|
8
|
+
* @param formUuid - The UUID of the form to fetch
|
|
9
|
+
* @returns Promise resolving to parsed form metadata with translations for current locale
|
|
10
|
+
*/
|
|
11
|
+
export declare const fetchFormMetadata: (formUuid: string) => Promise<FormMetadata>;
|
|
12
|
+
//# sourceMappingURL=observationFormsService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"observationFormsService.d.ts","sourceRoot":"","sources":["../../src/observationFormsService/observationFormsService.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,eAAe,EAGf,YAAY,EAEb,MAAM,UAAU,CAAC;AA6DlB;;GAEG;AACH,eAAO,MAAM,qBAAqB,QAAa,OAAO,CAAC,eAAe,EAAE,CAOvE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAC5B,UAAU,MAAM,KACf,OAAO,CAAC,YAAY,CA4DtB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FormMetadata, Form2Observation, ConceptValue, ComplexValue } from './models';
|
|
2
|
+
export type { Form2Observation, ConceptValue, ComplexValue };
|
|
3
|
+
export interface FormControlData {
|
|
4
|
+
id: string;
|
|
5
|
+
conceptUuid: string;
|
|
6
|
+
type: 'text' | 'number' | 'date' | 'datetime' | 'select' | 'multiselect' | 'section' | 'obsControl';
|
|
7
|
+
value: string | number | boolean | Date | ConceptValue | ConceptValue[] | ComplexValue | null;
|
|
8
|
+
label?: string;
|
|
9
|
+
units?: string;
|
|
10
|
+
interpretation?: string;
|
|
11
|
+
groupMembers?: FormControlData[];
|
|
12
|
+
}
|
|
13
|
+
export interface FormData {
|
|
14
|
+
controls: FormControlData[];
|
|
15
|
+
metadata?: Record<string, unknown>;
|
|
16
|
+
}
|
|
17
|
+
export declare function transformFormDataToObservations(formData: FormData, metadata: FormMetadata): Form2Observation[];
|
|
18
|
+
export declare function transformObservationsToFormData(observations: Form2Observation[], formMetadata: FormMetadata): FormData;
|
|
19
|
+
//# sourceMappingURL=observationFormsTransformer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"observationFormsTransformer.d.ts","sourceRoot":"","sources":["../../src/observationFormsService/observationFormsTransformer.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACb,MAAM,UAAU,CAAC;AAElB,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC;AAE7D,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EACA,MAAM,GACN,QAAQ,GACR,MAAM,GACN,UAAU,GACV,QAAQ,GACR,aAAa,GACb,SAAS,GACT,YAAY,CAAC;IACjB,KAAK,EACD,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,GACJ,YAAY,GACZ,YAAY,EAAE,GACd,YAAY,GACZ,IAAI,CAAC;IACT,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,eAAe,EAAE,CAAC;CAClC;AAED,MAAM,WAAW,QAAQ;IACvB,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AA4FD,wBAAgB,+BAA+B,CAC7C,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,YAAY,GACrB,gBAAgB,EAAE,CAkEpB;AAED,wBAAgB,+BAA+B,CAC7C,YAAY,EAAE,gBAAgB,EAAE,EAChC,YAAY,EAAE,YAAY,GACzB,QAAQ,CA4DV"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/orderRequestService/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,GAC/B,UAAU,MAAM,EAChB,aAAa,MAAM,EACnB,iBAAiB,MAAM,EACvB,iBAAiB,MAAM,EACvB,aAAa,MAAM,WAgBpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/orderRequestService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Bundle, ServiceRequest, Resource } from 'fhir/r4';
|
|
2
|
+
/**
|
|
3
|
+
* Fetches service requests from the FHIR R4 endpoint
|
|
4
|
+
* @param category - Optional category UUID to filter by
|
|
5
|
+
* @param patientUuid - Patient UUID to filter by
|
|
6
|
+
* @param encounterUuids - Optional encounter UUIDs to filter by
|
|
7
|
+
* @param numberOfVisits
|
|
8
|
+
* @param revinclude - Optional _revinclude parameter for related resources
|
|
9
|
+
* @returns Promise resolving to ServiceRequest Bundle
|
|
10
|
+
*/
|
|
11
|
+
export declare function getServiceRequests<T extends Resource = ServiceRequest>(category: string, patientUuid: string, encounterUuids?: string[], numberOfVisits?: number, revinclude?: string): Promise<Bundle<T>>;
|
|
12
|
+
//# sourceMappingURL=orderRequestService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orderRequestService.d.ts","sourceRoot":"","sources":["../../src/orderRequestService/orderRequestService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAIhE;;;;;;;;GAQG;AACH,wBAAsB,kBAAkB,CAAC,CAAC,SAAS,QAAQ,GAAG,cAAc,EAC1E,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,cAAc,CAAC,EAAE,MAAM,EAAE,EACzB,cAAc,CAAC,EAAE,MAAM,EACvB,UAAU,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAgBpB"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Person Attribute Format Types
|
|
3
|
+
* Maps OpenMRS data types to input control types
|
|
4
|
+
*/
|
|
5
|
+
export declare enum AttributeFormat {
|
|
6
|
+
BOOLEAN = "java.lang.Boolean",
|
|
7
|
+
BOOLEAN_DATATYPE = "org.openmrs.customdatatype.datatype.BooleanDatatype",
|
|
8
|
+
CONCEPT = "org.openmrs.Concept",
|
|
9
|
+
CODED_CONCEPT = "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype",
|
|
10
|
+
CONCEPT_DATATYPE = "org.openmrs.customdatatype.datatype.ConceptDatatype",
|
|
11
|
+
STRING = "java.lang.String",
|
|
12
|
+
FREE_TEXT = "org.openmrs.customdatatype.datatype.FreeTextDatatype",
|
|
13
|
+
REGEX_VALIDATED_TEXT = "org.openmrs.customdatatype.datatype.RegexValidatedTextDatatype",
|
|
14
|
+
INTEGER = "java.lang.Integer",
|
|
15
|
+
FLOAT = "java.lang.Float",
|
|
16
|
+
ATTRIBUTABLE_DATE = "org.openmrs.util.AttributableDate",
|
|
17
|
+
DATE_DATATYPE = "org.openmrs.customdatatype.datatype.DateDatatype"
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Input types for person attribute rendering
|
|
21
|
+
*/
|
|
22
|
+
export declare enum AttributeInputType {
|
|
23
|
+
CHECKBOX = "checkbox",
|
|
24
|
+
DROPDOWN = "dropdown",
|
|
25
|
+
TEXT = "text",
|
|
26
|
+
NUMBER = "number",
|
|
27
|
+
DATE = "date"
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Maps OpenMRS format string to AttributeInputType
|
|
31
|
+
* @param format - The format string from PersonAttributeType
|
|
32
|
+
* @returns The corresponding AttributeInputType
|
|
33
|
+
*/
|
|
34
|
+
export declare const getInputTypeForFormat: (format: string) => AttributeInputType;
|
|
35
|
+
/**
|
|
36
|
+
* Checks if a format represents a boolean type
|
|
37
|
+
*/
|
|
38
|
+
export declare const isBooleanFormat: (format: string) => boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Checks if a format represents a concept type (dropdown)
|
|
41
|
+
*/
|
|
42
|
+
export declare const isConceptFormat: (format: string) => boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Checks if a format represents a number type
|
|
45
|
+
*/
|
|
46
|
+
export declare const isNumberFormat: (format: string) => boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Checks if a format represents a date type
|
|
49
|
+
*/
|
|
50
|
+
export declare const isDateFormat: (format: string) => boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Checks if a format represents a text type
|
|
53
|
+
*/
|
|
54
|
+
export declare const isTextFormat: (format: string) => boolean;
|
|
55
|
+
//# sourceMappingURL=attributeFormatMapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attributeFormatMapper.d.ts","sourceRoot":"","sources":["../../src/patientService/attributeFormatMapper.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,oBAAY,eAAe;IAEzB,OAAO,sBAAsB;IAC7B,gBAAgB,wDAAwD;IAGxE,OAAO,wBAAwB;IAC/B,aAAa,8EAA8E;IAC3F,gBAAgB,wDAAwD;IAGxE,MAAM,qBAAqB;IAC3B,SAAS,yDAAyD;IAClE,oBAAoB,mEAAmE;IAGvF,OAAO,sBAAsB;IAC7B,KAAK,oBAAoB;IAGzB,iBAAiB,sCAAsC;IACvD,aAAa,qDAAqD;CACnE;AAED;;GAEG;AACH,oBAAY,kBAAkB;IAC5B,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAAI,QAAQ,MAAM,KAAG,kBAiCtD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,QAAQ,MAAM,KAAG,OAKhD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,QAAQ,MAAM,KAAG,OAMhD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,QAAQ,MAAM,KAAG,OAE/C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,GAAI,QAAQ,MAAM,KAAG,OAK7C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,GAAI,QAAQ,MAAM,KAAG,OAM7C,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { PatientSearchField } from '../configService/models/registrationConfig';
|
|
2
|
+
export declare const PATIENT_RESOURCE_URL: (patientUUID: string) => string;
|
|
3
|
+
export declare const PATIENT_LUCENE_SEARCH_URL: (searchTerm: string, loginLocationUuid: string, allSearchFields?: PatientSearchField[]) => string;
|
|
4
|
+
export declare const PATIENT_CUSTOM_ATTRIBUTE_SEARCH_URL: (searchTerm: string, fieldType: string, fieldsToSearch: string[], allSearchFields: PatientSearchField[], loginLocationUuid: string) => string;
|
|
5
|
+
export declare const IDENTIFIER_TYPES_URL: string;
|
|
6
|
+
export declare const APP_SETTINGS_URL: (module: string) => string;
|
|
7
|
+
export declare const PRIMARY_IDENTIFIER_TYPE_PROPERTY = "bahmni.primaryIdentifierType";
|
|
8
|
+
export declare const CREATE_PATIENT_URL: string;
|
|
9
|
+
export declare const UPDATE_PATIENT_URL: (patientUuid: string) => string;
|
|
10
|
+
export declare const GET_PATIENT_PROFILE_URL: (patientUuid: string) => string;
|
|
11
|
+
export declare const ADDRESS_HIERARCHY_URL: (addressField: string, searchString: string, limit?: number, parentUuid?: string) => string;
|
|
12
|
+
export declare const ORDERED_ADDRESS_HIERARCHY_URL = "/openmrs/module/addresshierarchy/ajax/getOrderedAddressHierarchyLevels.form";
|
|
13
|
+
export declare const RELATIONSHIP_TYPES_URL: string;
|
|
14
|
+
export declare const ADDRESS_HIERARCHY_DEFAULT_LIMIT = 20;
|
|
15
|
+
export declare const ADDRESS_HIERARCHY_MIN_SEARCH_LENGTH = 2;
|
|
16
|
+
export declare const PATIENT_SEARCH_MIN_LENGTH = 2;
|
|
17
|
+
export declare const DEFAULT_PAGE_SIZE = 20;
|
|
18
|
+
export declare const MAX_PAGE_SIZE = 100;
|
|
19
|
+
export declare const APPOINTMENTS_SEARCH_URL: string;
|
|
20
|
+
export declare const MAX_PATIENT_AGE_YEARS = 120;
|
|
21
|
+
export declare const MAX_NAME_LENGTH = 50;
|
|
22
|
+
export declare const MAX_PHONE_NUMBER_LENGTH = 15;
|
|
23
|
+
export declare const UUID_PATTERN: RegExp;
|
|
24
|
+
export declare const PATIENT_IMAGE_URL: (patientUuid: string) => string;
|
|
25
|
+
export declare const PERSON_ATTRIBUTE_TYPES_URL: string;
|
|
26
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/patientService/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AA+ChF,eAAO,MAAM,oBAAoB,GAAI,aAAa,MAAM,WACX,CAAC;AAE9C,eAAO,MAAM,yBAAyB,GACpC,YAAY,MAAM,EAClB,mBAAmB,MAAM,EACzB,kBAAkB,kBAAkB,EAAE,WAyBvC,CAAC;AAEF,eAAO,MAAM,mCAAmC,GAC9C,YAAY,MAAM,EAClB,WAAW,MAAM,EACjB,gBAAgB,MAAM,EAAE,EACxB,iBAAiB,kBAAkB,EAAE,EACrC,mBAAmB,MAAM,WAuB1B,CAAC;AAEF,eAAO,MAAM,oBAAoB,QAA4C,CAAC;AAE9E,eAAO,MAAM,gBAAgB,GAAI,QAAQ,MAAM,WACW,CAAC;AAE3D,eAAO,MAAM,gCAAgC,iCAAiC,CAAC;AAE/E,eAAO,MAAM,kBAAkB,QACiB,CAAC;AAEjD,eAAO,MAAM,kBAAkB,GAAI,aAAa,MAAM,WACS,CAAC;AAEhE,eAAO,MAAM,uBAAuB,GAAI,aAAa,MAAM,WACA,CAAC;AAE5D,eAAO,MAAM,qBAAqB,GAChC,cAAc,MAAM,EACpB,cAAc,MAAM,EACpB,QAAO,MAAW,EAClB,aAAa,MAAM,WAOpB,CAAC;AAEF,eAAO,MAAM,6BAA6B,gFAAgF,CAAC;AAE3H,eAAO,MAAM,sBAAsB,QACkC,CAAC;AAGtE,eAAO,MAAM,+BAA+B,KAAK,CAAC;AAClD,eAAO,MAAM,mCAAmC,IAAI,CAAC;AACrD,eAAO,MAAM,yBAAyB,IAAI,CAAC;AAC3C,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,aAAa,MAAM,CAAC;AACjC,eAAO,MAAM,uBAAuB,QAA2C,CAAC;AAGhF,eAAO,MAAM,qBAAqB,MAAM,CAAC;AACzC,eAAO,MAAM,eAAe,KAAK,CAAC;AAClC,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAC1C,eAAO,MAAM,YAAY,QAAqB,CAAC;AAE/C,eAAO,MAAM,iBAAiB,GAAI,aAAa,MAAM,WACS,CAAC;AAE/D,eAAO,MAAM,0BAA0B,QAE+E,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { getPatientById, getFormattedPatientById, searchPatientByNameOrId, searchPatientByCustomAttribute, getIdentifierTypes, getPrimaryIdentifierType, createPatient, updatePatient, getIdentifierData, getGenders, getAddressHierarchyEntries, getOrderedAddressHierarchyLevels, getPatientImageAsDataUrl, getPatientProfile, getRelationshipTypes, getPersonAttributeTypes, } from './patientService';
|
|
2
|
+
export { type FormattedPatientData, type PatientSearchResultBundle, type PatientSearchResult, type IdentifierSource, type IdentifierType, type IdentifierTypesResponse, type CreatePatientRequest, type CreatePatientResponse, type PatientName, type PatientAddress, type PatientIdentifier, type PatientAttribute, type AddressHierarchyEntry, type OrderedAddressHierarchyLevel, type OrderedAddressHierarchyLevels, type PatientProfileResponse, type PersonAttributeType, type PersonAttributeTypesResponse, type ConceptAnswer, type PersonAttributeConcept, } from './models';
|
|
3
|
+
export { AttributeFormat, AttributeInputType, getInputTypeForFormat, isBooleanFormat, isConceptFormat, isNumberFormat, isDateFormat, isTextFormat, } from './attributeFormatMapper';
|
|
4
|
+
export { MAX_PATIENT_AGE_YEARS, MAX_NAME_LENGTH, MAX_PHONE_NUMBER_LENGTH, } from './constants';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/patientService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,uBAAuB,EACvB,8BAA8B,EAC9B,kBAAkB,EAClB,wBAAwB,EACxB,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,UAAU,EACV,0BAA0B,EAC1B,gCAAgC,EAChC,wBAAwB,EACxB,iBAAiB,EACjB,oBAAoB,EACpB,uBAAuB,GACxB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,4BAA4B,EACjC,KAAK,aAAa,EAClB,KAAK,sBAAsB,GAC5B,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,qBAAqB,EACrB,eAAe,EACf,eAAe,EACf,cAAc,EACd,YAAY,EACZ,YAAY,GACb,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,uBAAuB,GACxB,MAAM,aAAa,CAAC"}
|