@bahmni/services 0.0.1-dev.7
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 +20 -0
- package/dist/AppointmentService/appointmmetService.d.ts +4 -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 +71 -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 +44 -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/conceptService/conceptService.d.ts +17 -0
- package/dist/conceptService/conceptService.d.ts.map +1 -0
- package/dist/conceptService/constants.d.ts +4 -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 +11 -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 +11 -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 +40 -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 +40 -0
- package/dist/configService/schemas/medicationConfig.schema.json.d.ts +40 -0
- package/dist/configService/schemas/registrationConfig.schema.json.d.ts +200 -0
- package/dist/constants/app.d.ts +10 -0
- package/dist/constants/app.d.ts.map +1 -0
- package/dist/constants/fhir.d.ts +11 -0
- package/dist/constants/fhir.d.ts.map +1 -0
- package/dist/date/constants.d.ts +6 -0
- package/dist/date/constants.d.ts.map +1 -0
- package/dist/date/date.d.ts +71 -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/encounterService.d.ts +20 -0
- package/dist/encounterService/encounterService.d.ts.map +1 -0
- package/dist/encounterService/index.d.ts +2 -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/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/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 +3 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/translationService.d.ts +25 -0
- package/dist/i18n/translationService.d.ts.map +1 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12033 -0
- package/dist/investigationService/constants.d.ts +5 -0
- package/dist/investigationService/constants.d.ts.map +1 -0
- package/dist/investigationService/index.d.ts +3 -0
- package/dist/investigationService/index.d.ts.map +1 -0
- package/dist/investigationService/investigationService.d.ts +3 -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 +4 -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 +49 -0
- package/dist/labInvestigationService/labInvestigationService.d.ts.map +1 -0
- package/dist/labInvestigationService/models.d.ts +37 -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/index.d.ts +3 -0
- package/dist/observationFormsService/index.d.ts.map +1 -0
- package/dist/observationFormsService/models.d.ts +26 -0
- package/dist/observationFormsService/models.d.ts.map +1 -0
- package/dist/observationFormsService/observationFormsService.d.ts +6 -0
- package/dist/observationFormsService/observationFormsService.d.ts.map +1 -0
- package/dist/patientService/constants.d.ts +25 -0
- package/dist/patientService/constants.d.ts.map +1 -0
- package/dist/patientService/index.d.ts +4 -0
- package/dist/patientService/index.d.ts.map +1 -0
- package/dist/patientService/models.d.ts +218 -0
- package/dist/patientService/models.d.ts.map +1 -0
- package/dist/patientService/patientService.d.ts +109 -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/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 +17 -0
- package/dist/radiologyInvestigationService/__mocks__/mocks.d.ts.map +1 -0
- package/dist/radiologyInvestigationService/constants.d.ts +2 -0
- package/dist/radiologyInvestigationService/constants.d.ts.map +1 -0
- package/dist/radiologyInvestigationService/index.d.ts +3 -0
- package/dist/radiologyInvestigationService/index.d.ts.map +1 -0
- package/dist/radiologyInvestigationService/models.d.ts +12 -0
- package/dist/radiologyInvestigationService/models.d.ts.map +1 -0
- package/dist/radiologyInvestigationService/radiologyInvestigationService.d.ts +15 -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 +84 -0
- package/dist/utils/utils.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 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/conceptService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/conceptService/models.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Condition, Bundle } from 'fhir/r4';
|
|
2
|
+
export declare const mockPatientUUID = "02f47490-d657-48ee-98e7-4c9133ea168b";
|
|
3
|
+
export declare const mockCondition: Condition;
|
|
4
|
+
export declare const mockConditions: Condition[];
|
|
5
|
+
export declare const mockConditionBundle: Bundle;
|
|
6
|
+
export declare const mockEmptyConditionBundle: Bundle;
|
|
7
|
+
export declare const mockMalformedBundle: {
|
|
8
|
+
resourceType: string;
|
|
9
|
+
id: string;
|
|
10
|
+
meta: {
|
|
11
|
+
lastUpdated: string;
|
|
12
|
+
};
|
|
13
|
+
type: string;
|
|
14
|
+
total: number;
|
|
15
|
+
entry: {
|
|
16
|
+
resource: {
|
|
17
|
+
resourceType: string;
|
|
18
|
+
id: string;
|
|
19
|
+
};
|
|
20
|
+
}[];
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=mocks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mocks.d.ts","sourceRoot":"","sources":["../../../src/conditionService/__mocks__/mocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAE5C,eAAO,MAAM,eAAe,yCAAyC,CAAC;AACtE,eAAO,MAAM,aAAa,EAAE,SA8C3B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,SAAS,EAAoB,CAAC;AAE3D,eAAO,MAAM,mBAAmB,EAAE,MAqBjC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,MAetC,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;CAkB/B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Condition, Bundle } from 'fhir/r4';
|
|
2
|
+
/**
|
|
3
|
+
* Fetches conditions for a given patient UUID from the FHIR R4 endpoint
|
|
4
|
+
* @param patientUUID - The UUID of the patient
|
|
5
|
+
* @returns Promise resolving to a Bundle containing conditions
|
|
6
|
+
*/
|
|
7
|
+
export declare function getConditionsBundle(patientUUID: string): Promise<Bundle>;
|
|
8
|
+
/**
|
|
9
|
+
* Fetches and extracts conditions for a given patient UUID
|
|
10
|
+
* @param patientUUID - The UUID of the patient
|
|
11
|
+
* @returns Promise resolving to an array of conditions
|
|
12
|
+
*/
|
|
13
|
+
export declare function getConditions(patientUUID: string): Promise<Condition[]>;
|
|
14
|
+
//# sourceMappingURL=conditionService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conditionService.d.ts","sourceRoot":"","sources":["../../src/conditionService/conditionService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAK5C;;;;GAIG;AACH,wBAAsB,mBAAmB,CACvC,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,MAAM,CAAC,CAEjB;AAED;;;;GAIG;AACH,wBAAsB,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC,CAQ7E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/conditionService/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,8BAA8B,GAAI,aAAa,MAAM,WAEoD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/conditionService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface ConditionErrors {
|
|
2
|
+
durationValue?: string;
|
|
3
|
+
durationUnit?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface ConditionInputEntry {
|
|
6
|
+
id: string;
|
|
7
|
+
display: string;
|
|
8
|
+
durationValue: number | null;
|
|
9
|
+
durationUnit: 'days' | 'months' | 'years' | null;
|
|
10
|
+
errors: ConditionErrors;
|
|
11
|
+
hasBeenValidated: boolean;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/conditionService/models.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,YAAY,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,IAAI,CAAC;IACjD,MAAM,EAAE,eAAe,CAAC;IACxB,gBAAgB,EAAE,OAAO,CAAC;CAC3B"}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { DashboardConfig } from '../models';
|
|
2
|
+
export declare const validFullClinicalConfig: {
|
|
3
|
+
patientInformation: {
|
|
4
|
+
displayPatientIdentifiers: boolean;
|
|
5
|
+
showPatientPhoto: boolean;
|
|
6
|
+
additionalAttributes: string[];
|
|
7
|
+
};
|
|
8
|
+
actions: {
|
|
9
|
+
name: string;
|
|
10
|
+
url: string;
|
|
11
|
+
icon: string;
|
|
12
|
+
requiredPrivilege: string;
|
|
13
|
+
}[];
|
|
14
|
+
dashboards: ({
|
|
15
|
+
name: string;
|
|
16
|
+
url: string;
|
|
17
|
+
requiredPrivileges: string[];
|
|
18
|
+
icon: string;
|
|
19
|
+
default: boolean;
|
|
20
|
+
} | {
|
|
21
|
+
name: string;
|
|
22
|
+
url: string;
|
|
23
|
+
requiredPrivileges: string[];
|
|
24
|
+
icon: string;
|
|
25
|
+
default?: undefined;
|
|
26
|
+
})[];
|
|
27
|
+
consultationPad: {
|
|
28
|
+
allergyConceptMap: {
|
|
29
|
+
medicationAllergenUuid: string;
|
|
30
|
+
foodAllergenUuid: string;
|
|
31
|
+
environmentalAllergenUuid: string;
|
|
32
|
+
allergyReactionUuid: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export declare const minimalClinicalConfig: {
|
|
37
|
+
patientInformation: {};
|
|
38
|
+
actions: never[];
|
|
39
|
+
dashboards: {
|
|
40
|
+
name: string;
|
|
41
|
+
url: string;
|
|
42
|
+
requiredPrivileges: string[];
|
|
43
|
+
}[];
|
|
44
|
+
consultationPad: {
|
|
45
|
+
allergyConceptMap: {
|
|
46
|
+
medicationAllergenUuid: string;
|
|
47
|
+
foodAllergenUuid: string;
|
|
48
|
+
environmentalAllergenUuid: string;
|
|
49
|
+
allergyReactionUuid: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
export declare const mixedClinicalConfig: {
|
|
54
|
+
patientInformation: {
|
|
55
|
+
displayPatientIdentifiers: boolean;
|
|
56
|
+
};
|
|
57
|
+
actions: {
|
|
58
|
+
name: string;
|
|
59
|
+
url: string;
|
|
60
|
+
requiredPrivilege: string;
|
|
61
|
+
}[];
|
|
62
|
+
dashboards: ({
|
|
63
|
+
name: string;
|
|
64
|
+
url: string;
|
|
65
|
+
requiredPrivileges: string[];
|
|
66
|
+
icon?: undefined;
|
|
67
|
+
default?: undefined;
|
|
68
|
+
} | {
|
|
69
|
+
name: string;
|
|
70
|
+
url: string;
|
|
71
|
+
requiredPrivileges: string[];
|
|
72
|
+
icon: string;
|
|
73
|
+
default: boolean;
|
|
74
|
+
})[];
|
|
75
|
+
consultationPad: {
|
|
76
|
+
allergyConceptMap: {
|
|
77
|
+
medicationAllergenUuid: string;
|
|
78
|
+
foodAllergenUuid: string;
|
|
79
|
+
environmentalAllergenUuid: string;
|
|
80
|
+
allergyReactionUuid: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
export declare const invalidClinicalConfig: {
|
|
85
|
+
patientInformation: {};
|
|
86
|
+
otherProperty: string;
|
|
87
|
+
};
|
|
88
|
+
export declare const emptyResponse: null;
|
|
89
|
+
export declare const malformedJsonResponse = "{invalid-json}";
|
|
90
|
+
export declare const largeConfig: {
|
|
91
|
+
patientInformation: {
|
|
92
|
+
displayPatientIdentifiers: boolean;
|
|
93
|
+
showPatientPhoto: boolean;
|
|
94
|
+
additionalAttributes: string[];
|
|
95
|
+
};
|
|
96
|
+
actions: {
|
|
97
|
+
name: string;
|
|
98
|
+
url: string;
|
|
99
|
+
icon: string;
|
|
100
|
+
requiredPrivilege: string;
|
|
101
|
+
}[];
|
|
102
|
+
dashboards: {
|
|
103
|
+
name: string;
|
|
104
|
+
url: string;
|
|
105
|
+
requiredPrivileges: string[];
|
|
106
|
+
icon: string;
|
|
107
|
+
default: boolean;
|
|
108
|
+
}[];
|
|
109
|
+
consultationPad: {
|
|
110
|
+
allergyConceptMap: {
|
|
111
|
+
medicationAllergenUuid: string;
|
|
112
|
+
foodAllergenUuid: string;
|
|
113
|
+
environmentalAllergenUuid: string;
|
|
114
|
+
allergyReactionUuid: string;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
export declare const allOptionalFieldsConfig: {
|
|
119
|
+
patientInformation: {
|
|
120
|
+
displayPatientIdentifiers: boolean;
|
|
121
|
+
showPatientPhoto: boolean;
|
|
122
|
+
additionalAttributes: string[];
|
|
123
|
+
customSections: {
|
|
124
|
+
name: string;
|
|
125
|
+
attributes: string[];
|
|
126
|
+
}[];
|
|
127
|
+
};
|
|
128
|
+
actions: {
|
|
129
|
+
name: string;
|
|
130
|
+
url: string;
|
|
131
|
+
icon: string;
|
|
132
|
+
requiredPrivilege: string;
|
|
133
|
+
order: number;
|
|
134
|
+
type: string;
|
|
135
|
+
additionalParams: {
|
|
136
|
+
color: string;
|
|
137
|
+
size: string;
|
|
138
|
+
showInHeader: boolean;
|
|
139
|
+
};
|
|
140
|
+
}[];
|
|
141
|
+
dashboards: {
|
|
142
|
+
name: string;
|
|
143
|
+
url: string;
|
|
144
|
+
requiredPrivileges: string[];
|
|
145
|
+
icon: string;
|
|
146
|
+
default: boolean;
|
|
147
|
+
order: number;
|
|
148
|
+
displayName: string;
|
|
149
|
+
description: string;
|
|
150
|
+
config: {
|
|
151
|
+
refreshInterval: number;
|
|
152
|
+
layout: string;
|
|
153
|
+
maxItems: number;
|
|
154
|
+
};
|
|
155
|
+
}[];
|
|
156
|
+
consultationPad: {
|
|
157
|
+
allergyConceptMap: {
|
|
158
|
+
medicationAllergenUuid: string;
|
|
159
|
+
foodAllergenUuid: string;
|
|
160
|
+
environmentalAllergenUuid: string;
|
|
161
|
+
allergyReactionUuid: string;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
export declare const validDashboardConfig: DashboardConfig;
|
|
166
|
+
export declare const validRegistrationConfig: {
|
|
167
|
+
patientSearch: {
|
|
168
|
+
customAttributes: {
|
|
169
|
+
translationKey: string;
|
|
170
|
+
fields: string[];
|
|
171
|
+
columnTranslationKeys: string[];
|
|
172
|
+
type: string;
|
|
173
|
+
}[];
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
export declare const invalidDashboardConfig: {
|
|
177
|
+
sections: ({
|
|
178
|
+
id: string;
|
|
179
|
+
icon: string;
|
|
180
|
+
translationKey: string;
|
|
181
|
+
controls: never[];
|
|
182
|
+
name?: undefined;
|
|
183
|
+
} | {
|
|
184
|
+
id: string;
|
|
185
|
+
name: string;
|
|
186
|
+
icon: string;
|
|
187
|
+
controls: never[];
|
|
188
|
+
translationKey?: undefined;
|
|
189
|
+
})[];
|
|
190
|
+
};
|
|
191
|
+
//# sourceMappingURL=configMocks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configMocks.d.ts","sourceRoot":"","sources":["../../../src/configService/__mocks__/configMocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAG5C,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuDnC,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;CAkBjC,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiC/B,CAAC;AAGF,eAAO,MAAM,qBAAqB;;;CAMjC,CAAC;AAEF,eAAO,MAAM,aAAa,MAAO,CAAC;AAElC,eAAO,MAAM,qBAAqB,mBAAmB,CAAC;AAGtD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyBvB,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwDnC,CAAC;AA0BF,eAAO,MAAM,oBAAoB,EAAE,eAelC,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;CAiDnC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;CAelC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ClinicalConfig, DashboardConfig, MedicationJSONConfig, RegistrationConfig } from './models';
|
|
2
|
+
/**
|
|
3
|
+
* Fetches and validates clinical app configuration from the server
|
|
4
|
+
*
|
|
5
|
+
* @returns Validated configuration object or null if invalid/error
|
|
6
|
+
* @throws Error if fetch fails or validation fails
|
|
7
|
+
*/
|
|
8
|
+
export declare const getClinicalConfig: <T extends ClinicalConfig>() => Promise<T | null>;
|
|
9
|
+
/**
|
|
10
|
+
* Fetches and validates dashboard configuration from the server
|
|
11
|
+
*
|
|
12
|
+
* @param dashboardURL - URL path to fetch the dashboard configuration
|
|
13
|
+
* @returns Validated configuration object or null if invalid/error
|
|
14
|
+
* @throws Error if fetch fails or validation fails
|
|
15
|
+
*/
|
|
16
|
+
export declare const getDashboardConfig: <T extends DashboardConfig>(dashboardURL: string) => Promise<T | null>;
|
|
17
|
+
/**
|
|
18
|
+
* Fetches and validates medication configuration from the server
|
|
19
|
+
*
|
|
20
|
+
* @returns Validated medication configuration object or null if invalid/error
|
|
21
|
+
* @throws Error if fetch fails or validation fails
|
|
22
|
+
*/
|
|
23
|
+
export declare const getMedicationConfig: () => Promise<MedicationJSONConfig | null>;
|
|
24
|
+
/**
|
|
25
|
+
* Fetches and validates registration configuration from the server
|
|
26
|
+
*
|
|
27
|
+
* @returns Validated registration configuration object or null if invalid/error
|
|
28
|
+
* @throws Error if fetch fails or validation fails
|
|
29
|
+
*/
|
|
30
|
+
export declare const getRegistrationConfig: () => Promise<RegistrationConfig | null>;
|
|
31
|
+
//# sourceMappingURL=configService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configService.d.ts","sourceRoot":"","sources":["../../src/configService/configService.ts"],"names":[],"mappings":"AAcA,OAAO,EACL,cAAc,EACd,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EACnB,MAAM,UAAU,CAAC;AAMlB;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,GAC5B,CAAC,SAAS,cAAc,OACrB,OAAO,CAAC,CAAC,GAAG,IAAI,CAEpB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAAU,CAAC,SAAS,eAAe,EAChE,cAAc,MAAM,KACnB,OAAO,CAAC,CAAC,GAAG,IAAI,CAmBlB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,QACpB,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAK5C,CAAC;AAEJ;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,QACtB,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAK1C,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const CLINICAL_V2_CONFIG_BASE_URL = "/bahmni_config/openmrs/apps/clinical/v2";
|
|
2
|
+
export declare const REGISTRATION_CONFIG_BASE_URL = "/bahmni_config/openmrs/apps/registration/v2";
|
|
3
|
+
export declare const CONFIG_TRANSLATIONS_URL_TEMPLATE: (lang: string) => string;
|
|
4
|
+
export declare const CLINICAL_CONFIG_URL: string;
|
|
5
|
+
export declare const REGISTRATION_CONFIG_URL: string;
|
|
6
|
+
export declare const MEDICATIONS_CONFIG_URL: string;
|
|
7
|
+
export declare const DASHBOARD_CONFIG_URL: (dashboardURL: string) => string;
|
|
8
|
+
/**
|
|
9
|
+
* Configuration-related error messages
|
|
10
|
+
* Used for consistent error handling across the application
|
|
11
|
+
*/
|
|
12
|
+
export declare const ERROR_MESSAGES: {
|
|
13
|
+
CONFIG_NOT_FOUND: string;
|
|
14
|
+
VALIDATION_FAILED: string;
|
|
15
|
+
SCHEMA_VALIDATION_FAILED: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const ERROR_TITLES: {
|
|
18
|
+
CONFIG_ERROR: string;
|
|
19
|
+
VALIDATION_ERROR: string;
|
|
20
|
+
DASHBOARD_ERROR: string;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/configService/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B,4CACG,CAAC;AAE5C,eAAO,MAAM,4BAA4B,gDACM,CAAC;AAEhD,eAAO,MAAM,gCAAgC,GAAI,MAAM,MAAM,WACD,CAAC;AAC7D,eAAO,MAAM,mBAAmB,QAA4C,CAAC;AAC7E,eAAO,MAAM,uBAAuB,QACQ,CAAC;AAC7C,eAAO,MAAM,sBAAsB,QACe,CAAC;AACnD,eAAO,MAAM,oBAAoB,GAAI,cAAc,MAAM,WACI,CAAC;AAE9D;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;CAI1B,CAAC;AAEF,eAAO,MAAM,YAAY;;;;CAIxB,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { getClinicalConfig, getDashboardConfig, getMedicationConfig, getRegistrationConfig, } from './configService';
|
|
2
|
+
export { type ClinicalConfig, type DashboardConfig, type MedicationJSONConfig, type DashboardSectionConfig, type Dashboard, type Frequency, type RegistrationConfig, type PatientSearchConfig, type PatientSearchField, type SearchActionConfig, } from './models';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/configService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface AllergyConceptMap {
|
|
2
|
+
medicationAllergenUuid: string;
|
|
3
|
+
foodAllergenUuid: string;
|
|
4
|
+
environmentalAllergenUuid: string;
|
|
5
|
+
allergyReactionUuid: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ConsultationPad {
|
|
8
|
+
allergyConceptMap: AllergyConceptMap;
|
|
9
|
+
}
|
|
10
|
+
export interface Dashboard {
|
|
11
|
+
name: string;
|
|
12
|
+
url: string;
|
|
13
|
+
requiredPrivileges: string[];
|
|
14
|
+
icon?: string;
|
|
15
|
+
default?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Dashboard configuration interface matching appConfig.schema.json
|
|
19
|
+
* Represents the structure of the main dashboard configuration
|
|
20
|
+
*/
|
|
21
|
+
export interface ClinicalConfig {
|
|
22
|
+
patientInformation: Record<string, unknown>;
|
|
23
|
+
actions: Array<unknown>;
|
|
24
|
+
dashboards: Array<Dashboard>;
|
|
25
|
+
consultationPad: ConsultationPad;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/configService/models/config.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,gBAAgB,EAAE,MAAM,CAAC;IACzB,yBAAyB,EAAE,MAAM,CAAC;IAClC,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,eAAe;IAC9B,iBAAiB,EAAE,iBAAiB,CAAC;CACtC;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC5C,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACxB,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAC7B,eAAe,EAAE,eAAe,CAAC;CAClC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface DashboardSectionConfig {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
translationKey?: string;
|
|
5
|
+
icon: string;
|
|
6
|
+
controls: [];
|
|
7
|
+
}
|
|
8
|
+
export interface DashboardConfig {
|
|
9
|
+
sections: DashboardSectionConfig[];
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=dashboardConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashboardConfig.d.ts","sourceRoot":"","sources":["../../../src/configService/models/dashboardConfig.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,EAAE,CAAC;CACd;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,sBAAsB,EAAE,CAAC;CACpC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
interface Concept {
|
|
2
|
+
uuid: string;
|
|
3
|
+
name: string;
|
|
4
|
+
}
|
|
5
|
+
export interface MedicationConfig extends MedicationOrdersMetadataResponse, MedicationJSONConfig {
|
|
6
|
+
}
|
|
7
|
+
export interface DrugFormDefault {
|
|
8
|
+
doseUnits?: string;
|
|
9
|
+
route?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface MedicationJSONConfig {
|
|
12
|
+
defaultDurationUnit?: string;
|
|
13
|
+
defaultInstructions?: string;
|
|
14
|
+
drugFormDefaults?: Record<string, DrugFormDefault>;
|
|
15
|
+
}
|
|
16
|
+
export interface Frequency extends Concept {
|
|
17
|
+
frequencyPerDay: number;
|
|
18
|
+
}
|
|
19
|
+
export interface OrderAttribute {
|
|
20
|
+
uuid: string;
|
|
21
|
+
name: string;
|
|
22
|
+
dataType: string;
|
|
23
|
+
shortName: string;
|
|
24
|
+
units: string | null;
|
|
25
|
+
conceptClass: string;
|
|
26
|
+
hiNormal: string | null;
|
|
27
|
+
lowNormal: string | null;
|
|
28
|
+
set: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface MedicationOrdersMetadataResponse {
|
|
31
|
+
doseUnits: Concept[];
|
|
32
|
+
routes: Concept[];
|
|
33
|
+
durationUnits: Concept[];
|
|
34
|
+
dispensingUnits: Concept[];
|
|
35
|
+
dosingRules: string[];
|
|
36
|
+
dosingInstructions: Concept[];
|
|
37
|
+
orderAttributes: OrderAttribute[];
|
|
38
|
+
frequencies: Frequency[];
|
|
39
|
+
}
|
|
40
|
+
export {};
|
|
41
|
+
//# sourceMappingURL=medicationConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"medicationConfig.d.ts","sourceRoot":"","sources":["../../../src/configService/models/medicationConfig.ts"],"names":[],"mappings":"AAAA,UAAU,OAAO;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,gBACf,SAAQ,gCAAgC,EACtC,oBAAoB;CAAG;AAE3B,MAAM,WAAW,eAAe;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,oBAAoB;IACnC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;CACpD;AAED,MAAM,WAAW,SAAU,SAAQ,OAAO;IACxC,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,GAAG,EAAE,OAAO,CAAC;CACd;AAED,MAAM,WAAW,gCAAgC;IAC/C,SAAS,EAAE,OAAO,EAAE,CAAC;IACrB,MAAM,EAAE,OAAO,EAAE,CAAC;IAClB,aAAa,EAAE,OAAO,EAAE,CAAC;IACzB,eAAe,EAAE,OAAO,EAAE,CAAC;IAC3B,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,kBAAkB,EAAE,OAAO,EAAE,CAAC;IAC9B,eAAe,EAAE,cAAc,EAAE,CAAC;IAClC,WAAW,EAAE,SAAS,EAAE,CAAC;CAC1B"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export interface ExpectedFieldConfig {
|
|
2
|
+
field: string;
|
|
3
|
+
type?: 'string' | 'date' | 'numeric';
|
|
4
|
+
translationKey: string;
|
|
5
|
+
}
|
|
6
|
+
export interface SearchActionConfig {
|
|
7
|
+
translationKey: string;
|
|
8
|
+
type: 'navigate' | 'changeStatus';
|
|
9
|
+
enabledRule?: Array<{
|
|
10
|
+
type: 'privilegeCheck' | 'statusCheck' | 'appDateCheck';
|
|
11
|
+
values: string[];
|
|
12
|
+
}>;
|
|
13
|
+
onAction: {
|
|
14
|
+
navigation?: string;
|
|
15
|
+
status?: string;
|
|
16
|
+
};
|
|
17
|
+
onSuccess?: {
|
|
18
|
+
notification: string;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export interface PatientSearchField {
|
|
22
|
+
translationKey: string;
|
|
23
|
+
fields: string[];
|
|
24
|
+
actions?: SearchActionConfig[];
|
|
25
|
+
columnTranslationKeys: string[];
|
|
26
|
+
expectedFields?: ExpectedFieldConfig[];
|
|
27
|
+
type: 'person' | 'address' | 'program' | 'appointment';
|
|
28
|
+
}
|
|
29
|
+
export interface AppointmentSearchField extends PatientSearchField {
|
|
30
|
+
actions: SearchActionConfig[];
|
|
31
|
+
}
|
|
32
|
+
export interface PatientSearchConfig {
|
|
33
|
+
customAttributes: PatientSearchField[];
|
|
34
|
+
appointment: AppointmentSearchField[];
|
|
35
|
+
}
|
|
36
|
+
export interface RegistrationConfig {
|
|
37
|
+
patientSearch: PatientSearchConfig;
|
|
38
|
+
defaultVisitType?: string;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=registrationConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registrationConfig.d.ts","sourceRoot":"","sources":["../../../src/configService/models/registrationConfig.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;IACrC,cAAc,EAAE,MAAM,CAAC;CACxB;AACD,MAAM,WAAW,kBAAkB;IACjC,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,UAAU,GAAG,cAAc,CAAC;IAClC,WAAW,CAAC,EAAE,KAAK,CAAC;QAClB,IAAI,EAAE,gBAAgB,GAAG,aAAa,GAAG,cAAc,CAAC;QACxD,MAAM,EAAE,MAAM,EAAE,CAAC;KAClB,CAAC,CAAC;IACH,QAAQ,EAAE;QACR,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,SAAS,CAAC,EAAE;QACV,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;CACH;AACD,MAAM,WAAW,kBAAkB;IACjC,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC/B,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC,cAAc,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACvC,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,aAAa,CAAC;CACxD;AAED,MAAM,WAAW,sBAAuB,SAAQ,kBAAkB;IAChE,OAAO,EAAE,kBAAkB,EAAE,CAAC;CAC/B;AAED,MAAM,WAAW,mBAAmB;IAClC,gBAAgB,EAAE,kBAAkB,EAAE,CAAC;IACvC,WAAW,EAAE,sBAAsB,EAAE,CAAC;CACvC;AAED,MAAM,WAAW,kBAAkB;IACjC,aAAa,EAAE,mBAAmB,CAAC;IACnC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { type ClinicalConfig, type Dashboard } from './models/config';
|
|
2
|
+
export { type DashboardConfig, type DashboardSectionConfig, } from './models/dashboardConfig';
|
|
3
|
+
export { type MedicationJSONConfig, type Frequency, } from './models/medicationConfig';
|
|
4
|
+
export { type RegistrationConfig, type PatientSearchConfig, type PatientSearchField, type SearchActionConfig, } from './models/registrationConfig';
|
|
5
|
+
//# sourceMappingURL=models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/configService/models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,sBAAsB,GAC5B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,SAAS,GACf,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Clinical App Configuration Schema",
|
|
4
|
+
"description": "Schema for global clinical app configuration including patient information, actions and available dashboards",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": [
|
|
7
|
+
"patientInformation",
|
|
8
|
+
"actions",
|
|
9
|
+
"dashboards",
|
|
10
|
+
"consultationPad"
|
|
11
|
+
],
|
|
12
|
+
"additionalProperties": false,
|
|
13
|
+
"properties": {
|
|
14
|
+
"patientInformation": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"description": "Patient information configuration",
|
|
17
|
+
"additionalProperties": false
|
|
18
|
+
},
|
|
19
|
+
"actions": {
|
|
20
|
+
"type": "array",
|
|
21
|
+
"description": "List of available actions"
|
|
22
|
+
},
|
|
23
|
+
"dashboards": {
|
|
24
|
+
"type": "array",
|
|
25
|
+
"description": "List of available dashboards",
|
|
26
|
+
"items": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"required": ["name", "requiredPrivileges", "url"],
|
|
29
|
+
"additionalProperties": false,
|
|
30
|
+
"properties": {
|
|
31
|
+
"name": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "Display name of the dashboard"
|
|
34
|
+
},
|
|
35
|
+
"requiredPrivileges": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"items": {
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
"description": "List of permissions required to access this dashboard"
|
|
41
|
+
},
|
|
42
|
+
"icon": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"description": "Icon class name for the dashboard"
|
|
45
|
+
},
|
|
46
|
+
"default": {
|
|
47
|
+
"type": "boolean",
|
|
48
|
+
"description": "Whether this is the default dashboard"
|
|
49
|
+
},
|
|
50
|
+
"url": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"description": "URL to access the dashboard data"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"consultationPad": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"description": "Configuration for consultation pad forms",
|
|
60
|
+
"required": ["allergyConceptMap"],
|
|
61
|
+
"additionalProperties": false,
|
|
62
|
+
"properties": {
|
|
63
|
+
"allergyConceptMap": {
|
|
64
|
+
"type": "object",
|
|
65
|
+
"description": "UUID mappings for allergy concepts",
|
|
66
|
+
"required": [
|
|
67
|
+
"medicationAllergenUuid",
|
|
68
|
+
"foodAllergenUuid",
|
|
69
|
+
"environmentalAllergenUuid",
|
|
70
|
+
"allergyReactionUuid"
|
|
71
|
+
],
|
|
72
|
+
"additionalProperties": false,
|
|
73
|
+
"properties": {
|
|
74
|
+
"medicationAllergenUuid": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"description": "UUID for medication allergen concept"
|
|
77
|
+
},
|
|
78
|
+
"foodAllergenUuid": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"description": "UUID for food allergen concept"
|
|
81
|
+
},
|
|
82
|
+
"environmentalAllergenUuid": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"description": "UUID for environmental allergen concept"
|
|
85
|
+
},
|
|
86
|
+
"allergyReactionUuid": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"description": "UUID for allergy reaction concept"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
;
|
|
97
|
+
|
|
98
|
+
export default _default;
|