@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,109 @@
|
|
|
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 PatientInformationConfig {
|
|
37
|
+
defaultIdentifierPrefix?: string;
|
|
38
|
+
autoCompleteFields?: string[];
|
|
39
|
+
showMiddleName?: boolean;
|
|
40
|
+
showLastName?: boolean;
|
|
41
|
+
isFirstNameMandatory?: boolean;
|
|
42
|
+
isMiddleNameMandatory?: boolean;
|
|
43
|
+
isLastNameMandatory?: boolean;
|
|
44
|
+
isGenderMandatory?: boolean;
|
|
45
|
+
isDateOfBirthMandatory?: boolean;
|
|
46
|
+
patientNameDisplayOrder?: string[];
|
|
47
|
+
showBirthTime?: boolean;
|
|
48
|
+
showCasteSameAsLastNameCheckbox?: boolean;
|
|
49
|
+
showDOBEstimated?: boolean;
|
|
50
|
+
showEnterManually?: boolean;
|
|
51
|
+
contactInformation?: {
|
|
52
|
+
translationKey?: string;
|
|
53
|
+
attributes?: Array<{
|
|
54
|
+
field: string;
|
|
55
|
+
translationKey: string;
|
|
56
|
+
}>;
|
|
57
|
+
};
|
|
58
|
+
additionalPatientInformation?: {
|
|
59
|
+
translationKey?: string;
|
|
60
|
+
attributes?: Array<{
|
|
61
|
+
field: string;
|
|
62
|
+
translationKey: string;
|
|
63
|
+
}>;
|
|
64
|
+
};
|
|
65
|
+
hiddenAttributes?: string[];
|
|
66
|
+
defaults?: Record<string, unknown>;
|
|
67
|
+
addressHierarchy?: {
|
|
68
|
+
showAddressFieldsTopDown?: boolean;
|
|
69
|
+
strictAutocompleteFromLevel?: string;
|
|
70
|
+
requiredFields?: string[];
|
|
71
|
+
expectedFields?: Array<{
|
|
72
|
+
addressField: string;
|
|
73
|
+
translationKey: string;
|
|
74
|
+
}>;
|
|
75
|
+
};
|
|
76
|
+
showExtraPatientIdentifiersSection?: boolean;
|
|
77
|
+
}
|
|
78
|
+
export interface FieldValidationRule {
|
|
79
|
+
pattern: string;
|
|
80
|
+
errorMessage: string;
|
|
81
|
+
}
|
|
82
|
+
export interface FieldValidationConfig {
|
|
83
|
+
[fieldName: string]: FieldValidationRule;
|
|
84
|
+
}
|
|
85
|
+
export interface AppExtensionConfig {
|
|
86
|
+
id: string;
|
|
87
|
+
extensionPointId: string;
|
|
88
|
+
type: 'link' | 'startVisit';
|
|
89
|
+
translationKey: string;
|
|
90
|
+
url: string;
|
|
91
|
+
shortcutKey?: string;
|
|
92
|
+
icon?: string;
|
|
93
|
+
order?: number;
|
|
94
|
+
kind?: 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'danger';
|
|
95
|
+
requiredPrivilege?: string;
|
|
96
|
+
}
|
|
97
|
+
export interface RegistrationConfig {
|
|
98
|
+
patientSearch: PatientSearchConfig;
|
|
99
|
+
defaultVisitType?: string;
|
|
100
|
+
patientInformation?: PatientInformationConfig;
|
|
101
|
+
fieldValidation?: FieldValidationConfig;
|
|
102
|
+
extensionPoints?: ExtensionPoint[];
|
|
103
|
+
registrationAppExtensions?: AppExtensionConfig[];
|
|
104
|
+
}
|
|
105
|
+
export interface ExtensionPoint {
|
|
106
|
+
id: string;
|
|
107
|
+
description?: string;
|
|
108
|
+
}
|
|
109
|
+
//# 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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E,MAAM,CAAC;IACX,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { type ClinicalConfig, type Dashboard } from './models/config';
|
|
2
|
+
export { type DashboardConfig, type DashboardSectionConfig, type ControlConfig, } from './models/dashboardConfig';
|
|
3
|
+
export { type MedicationJSONConfig, type Frequency, } from './models/medicationConfig';
|
|
4
|
+
export { type RegistrationConfig, type PatientSearchConfig, type PatientSearchField, type PatientInformationConfig, type SearchActionConfig, type AppExtensionConfig, type ExtensionPoint, } 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,EAC3B,KAAK,aAAa,GACnB,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,wBAAwB,EAC7B,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,cAAc,GACpB,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;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Clinical Dashboard Configuration Schema",
|
|
4
|
+
"description": "Schema for dashboards in clinical app which contains sections and associated controls",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["sections"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"sections": {
|
|
10
|
+
"type": "array",
|
|
11
|
+
"description": "Section in a dashboard",
|
|
12
|
+
"items": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"additionalProperties": false,
|
|
15
|
+
"required": ["name", "icon", "controls"],
|
|
16
|
+
"properties": {
|
|
17
|
+
"name": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "Display name of the section"
|
|
20
|
+
},
|
|
21
|
+
"translationKey": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"description": "Translation key for the section name"
|
|
24
|
+
},
|
|
25
|
+
"icon": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "Fontawesome Icon name for the section"
|
|
28
|
+
},
|
|
29
|
+
"controls": {
|
|
30
|
+
"type": "array",
|
|
31
|
+
"description": "List of controls in the section",
|
|
32
|
+
"items":[
|
|
33
|
+
{
|
|
34
|
+
"type": "object",
|
|
35
|
+
"additionalProperties": false,
|
|
36
|
+
"required": ["type"],
|
|
37
|
+
"properties": {
|
|
38
|
+
"type": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"description": "Type of the control"
|
|
41
|
+
},
|
|
42
|
+
"config": {
|
|
43
|
+
"type": "object",
|
|
44
|
+
"description": "Configuration for the control"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
;
|
|
56
|
+
|
|
57
|
+
export default _default;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Medication Configuration Schema",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"properties": {
|
|
7
|
+
"defaultDurationUnit": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"enum": ["min", "h", "d", "wk", "mo"],
|
|
10
|
+
"description": "Default unit for medication duration"
|
|
11
|
+
},
|
|
12
|
+
"defaultInstructions": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "Default instructions for medication"
|
|
15
|
+
},
|
|
16
|
+
"drugFormDefaults": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"description": "Default dose units and routes for different drug forms",
|
|
19
|
+
"patternProperties": {
|
|
20
|
+
"^.*$": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"additionalProperties": false,
|
|
23
|
+
"properties": {
|
|
24
|
+
"doseUnits": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"description": "Default dose units for this drug form"
|
|
27
|
+
},
|
|
28
|
+
"route": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"description": "Default route of administration for this drug form"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
;
|
|
39
|
+
|
|
40
|
+
export default _default;
|