@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,40 @@
|
|
|
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
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
;
|
|
39
|
+
|
|
40
|
+
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;
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Registration Configuration Schema",
|
|
4
|
+
"description": "Schema for validating registration app configuration",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"id": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "Unique identifier for the registration configuration"
|
|
11
|
+
},
|
|
12
|
+
"contextModel": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"description": "Array of context model configurations",
|
|
15
|
+
"items": {
|
|
16
|
+
"type": "string"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"patientSearch": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"description": "Patient search configuration",
|
|
22
|
+
"additionalProperties": false,
|
|
23
|
+
"properties": {
|
|
24
|
+
"customAttributes": {
|
|
25
|
+
"type": "array",
|
|
26
|
+
"description": "Array of available search fields",
|
|
27
|
+
"items": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"additionalProperties": false,
|
|
30
|
+
"properties": {
|
|
31
|
+
"translationKey": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "Translation key for the dropdown label"
|
|
34
|
+
},
|
|
35
|
+
"fields": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"description": "Array of field names to search against",
|
|
38
|
+
"items": {
|
|
39
|
+
"type": "string"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"expectedFields": {
|
|
43
|
+
"type": "array",
|
|
44
|
+
"description": "Array of fields configurations with translation keys to display on table headers",
|
|
45
|
+
"items": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"additionalProperties": false,
|
|
48
|
+
"properties": {
|
|
49
|
+
"field": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"description": "field corresponding to table header"
|
|
52
|
+
},
|
|
53
|
+
"translationKey": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"description": "Translation key for the table header"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"type": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"enum": ["person", "address", "program", "appointment"],
|
|
63
|
+
"description": "Type of the search field (person, address, program, appointment)"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"appointment": {
|
|
69
|
+
"type": "array",
|
|
70
|
+
"description": "Array of available search fields for appointments",
|
|
71
|
+
"items": {
|
|
72
|
+
"type": "object",
|
|
73
|
+
"additionalProperties": true,
|
|
74
|
+
"required": ["translationKey", "fields"],
|
|
75
|
+
"properties": {
|
|
76
|
+
"translationKey": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"description": "Translation key for the field label"
|
|
79
|
+
},
|
|
80
|
+
"fields": {
|
|
81
|
+
"type": "array",
|
|
82
|
+
"description": "Array of field names to search against",
|
|
83
|
+
"items": {
|
|
84
|
+
"type": "string"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"expectedFields": {
|
|
88
|
+
"type": "array",
|
|
89
|
+
"description": "Array of expected fields with optional types",
|
|
90
|
+
"items": {
|
|
91
|
+
"type": "object",
|
|
92
|
+
"required": ["field", "translationKey"],
|
|
93
|
+
"properties": {
|
|
94
|
+
"field": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"description": "The field name (e.g., apptNumber, apptDate)"
|
|
97
|
+
},
|
|
98
|
+
"translationKey": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"description": "Translation key for the field's display label"
|
|
101
|
+
},
|
|
102
|
+
"type": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"description": "Optional field type (e.g., date, string)"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"type": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"enum": ["appointment"],
|
|
112
|
+
"description": "Type of the search field (appointment)"
|
|
113
|
+
},
|
|
114
|
+
"actions": {
|
|
115
|
+
"type": "array",
|
|
116
|
+
"description": "Array of actions allowed on this search field",
|
|
117
|
+
"items": {
|
|
118
|
+
"type": "object",
|
|
119
|
+
"required": [
|
|
120
|
+
"translationKey",
|
|
121
|
+
"type",
|
|
122
|
+
"enabledRule",
|
|
123
|
+
"onAction"
|
|
124
|
+
],
|
|
125
|
+
"properties": {
|
|
126
|
+
"translationKey": {
|
|
127
|
+
"type": "string",
|
|
128
|
+
"description": "Translation key for the action button label"
|
|
129
|
+
},
|
|
130
|
+
"type": {
|
|
131
|
+
"type": "string",
|
|
132
|
+
"enum": ["changeStatus", "navigate"],
|
|
133
|
+
"description": "Type of action to perform"
|
|
134
|
+
},
|
|
135
|
+
"enabledRule": {
|
|
136
|
+
"type": "array",
|
|
137
|
+
"description": "Conditions to enable this action (rules)",
|
|
138
|
+
"items": {
|
|
139
|
+
"type": "object",
|
|
140
|
+
"properties": {
|
|
141
|
+
"type": {
|
|
142
|
+
"type": "string",
|
|
143
|
+
"enum": [
|
|
144
|
+
"privilegeCheck",
|
|
145
|
+
"statusCheck",
|
|
146
|
+
"appDateCheck"
|
|
147
|
+
],
|
|
148
|
+
"description": "Type of rule to evaluate"
|
|
149
|
+
},
|
|
150
|
+
"values": {
|
|
151
|
+
"type": "array",
|
|
152
|
+
"items": { "type": "string" },
|
|
153
|
+
"description": "Values to check against for the rule"
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"onAction": {
|
|
159
|
+
"type": "object",
|
|
160
|
+
"description": "What happens when action is triggered",
|
|
161
|
+
"additionalProperties": true,
|
|
162
|
+
"properties": {
|
|
163
|
+
"status": {
|
|
164
|
+
"type": "string",
|
|
165
|
+
"description": "Status to set (for changeStatus type)"
|
|
166
|
+
},
|
|
167
|
+
"navigation": {
|
|
168
|
+
"type": "string",
|
|
169
|
+
"description": "URL path to navigate to (for navigate type)"
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"onSuccess": {
|
|
174
|
+
"type": "object",
|
|
175
|
+
"description": "Notification or other success response",
|
|
176
|
+
"additionalProperties": true,
|
|
177
|
+
"properties": {
|
|
178
|
+
"notification": {
|
|
179
|
+
"type": "string",
|
|
180
|
+
"description": "Translation key for success notification message"
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"defaultVisitType": {
|
|
193
|
+
"type": "string",
|
|
194
|
+
"description": "Default visit type for patient registration"
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
;
|
|
199
|
+
|
|
200
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const BASE_PATH: string;
|
|
2
|
+
export declare const OPENMRS_FHIR_R4 = "/openmrs/ws/fhir2/R4";
|
|
3
|
+
export declare const OPENMRS_REST_V1 = "/openmrs/ws/rest/v1";
|
|
4
|
+
export declare const BAHMNI_USER_COOKIE_NAME = "bahmni.user";
|
|
5
|
+
export declare const BAHMNI_HOME_PATH = "/bahmni/home/index.html";
|
|
6
|
+
export declare const USER_PRIVILEGES_URL: string;
|
|
7
|
+
export declare const OBSERVATION_FORMS_URL: string;
|
|
8
|
+
export declare const USER_PINNED_PREFERENCE_URL: (userUuid: string) => string;
|
|
9
|
+
export declare const VISIT_LOCATION_UUID: string;
|
|
10
|
+
//# sourceMappingURL=app.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/constants/app.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,QAAgC,CAAC;AACvD,eAAO,MAAM,eAAe,yBAAyB,CAAC;AACtD,eAAO,MAAM,eAAe,wBAAwB,CAAC;AACrD,eAAO,MAAM,uBAAuB,gBAAgB,CAAC;AACrD,eAAO,MAAM,gBAAgB,4BAA4B,CAAC;AAC1D,eAAO,MAAM,mBAAmB,QAAyC,CAAC;AAC1E,eAAO,MAAM,qBAAqB,QACuB,CAAC;AAC1D,eAAO,MAAM,0BAA0B,GAAI,UAAU,MAAM,WACb,CAAC;AAC/C,eAAO,MAAM,mBAAmB,QACgB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const FHIR_ENCOUNTER_TYPE_CODE_SYSTEM = "http://fhir.openmrs.org/code-system/encounter-type";
|
|
2
|
+
export declare const HL7_CONDITION_CATEGORY_CONDITION_CODE = "problem-list-item";
|
|
3
|
+
export declare const HL7_CONDITION_VERIFICATION_STATUS_CODE_SYSTEM = "http://terminology.hl7.org/CodeSystem/condition-ver-status";
|
|
4
|
+
export declare const HL7_CONDITION_CATEGORY_DIAGNOSIS_CODE = "encounter-diagnosis";
|
|
5
|
+
export declare const HL7_CONDITION_CLINICAL_STATUS_CODE_SYSTEM = "http://terminology.hl7.org/CodeSystem/condition-clinical";
|
|
6
|
+
export declare const HL7_CONDITION_CATEGORY_CODE_SYSTEM = "http://terminology.hl7.org/CodeSystem/condition-category";
|
|
7
|
+
export declare const FHIR_CONCEPT_CLASS_EXTENSION_URL = "http://fhir.bahmni.org/ext/ValueSet/concept-class";
|
|
8
|
+
export declare const FHIR_LAB_ORDER_CONCEPT_TYPE_EXTENSION_URL = "http://fhir.bahmni.org/ext/lab-order-concept-type";
|
|
9
|
+
export declare const FHIR_MEDICATION_EXTENSION_URL = "http://fhir.openmrs.org/ext/medicine";
|
|
10
|
+
export declare const FHIR_MEDICATION_NAME_EXTENSION_URL = "http://fhir.openmrs.org/ext/medicine#drugName";
|
|
11
|
+
//# sourceMappingURL=fhir.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fhir.d.ts","sourceRoot":"","sources":["../../src/constants/fhir.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,+BAA+B,uDACU,CAAC;AACvD,eAAO,MAAM,qCAAqC,sBAAsB,CAAC;AACzE,eAAO,MAAM,6CAA6C,+DACI,CAAC;AAC/D,eAAO,MAAM,qCAAqC,wBAAwB,CAAC;AAC3E,eAAO,MAAM,yCAAyC,6DACM,CAAC;AAC7D,eAAO,MAAM,kCAAkC,6DACa,CAAC;AAC7D,eAAO,MAAM,gCAAgC,sDACQ,CAAC;AACtD,eAAO,MAAM,yCAAyC,sDACD,CAAC;AACtD,eAAO,MAAM,6BAA6B,yCACF,CAAC;AACzC,eAAO,MAAM,kCAAkC,kDACE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const DATE_FORMAT = "dd/MM/yyyy";
|
|
2
|
+
export declare const FULL_MONTH_DATE_FORMAT = "MMMM dd, yyyy";
|
|
3
|
+
export declare const DATE_TIME_FORMAT = "dd/MM/yyyy HH:mm";
|
|
4
|
+
export declare const ISO_DATE_FORMAT = "yyyy-MM-dd";
|
|
5
|
+
export declare const DATE_PICKER_INPUT_FORMAT = "d/m/Y";
|
|
6
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/date/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,eAAe,CAAC;AACxC,eAAO,MAAM,sBAAsB,kBAAkB,CAAC;AACtD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,eAAe,eAAe,CAAC;AAC5C,eAAO,MAAM,wBAAwB,UAAU,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Age } from '../patientService/models';
|
|
2
|
+
export interface FormatDateResult {
|
|
3
|
+
formattedResult: string;
|
|
4
|
+
error?: {
|
|
5
|
+
title: string;
|
|
6
|
+
message: string;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Calculates age based on a date string in the format yyyy-mm-dd
|
|
11
|
+
* Returns age as an object with years, months, and days properties
|
|
12
|
+
*
|
|
13
|
+
* @param dateString - Birth date string in the format yyyy-mm-dd
|
|
14
|
+
* @returns Age object containing years, months, and days or null if the input is invalid
|
|
15
|
+
*/
|
|
16
|
+
export declare function calculateAge(dateString: string): Age | null;
|
|
17
|
+
/**
|
|
18
|
+
* Formats a date string or Date object into the specified date time format.
|
|
19
|
+
* @param date - The date string or Date object to format.
|
|
20
|
+
* @returns A FormatDateResult object containing either a formatted date string or an error.
|
|
21
|
+
*/
|
|
22
|
+
export declare function formatDateTime(date: string | Date | number, t: (key: string, options?: {
|
|
23
|
+
count?: number;
|
|
24
|
+
}) => string): FormatDateResult;
|
|
25
|
+
/**
|
|
26
|
+
* Formats a date string or Date object into the specified date format.
|
|
27
|
+
* @param date - The date string or Date object to format.
|
|
28
|
+
* @param format - The date format to use (default is 'dd/MM/yyyy').
|
|
29
|
+
* @returns A FormatDateResult object containing either a formatted date string or an error.
|
|
30
|
+
*/
|
|
31
|
+
export declare function formatDate(date: string | Date | number, t: (key: string, options?: {
|
|
32
|
+
count?: number;
|
|
33
|
+
}) => string, format?: string): FormatDateResult;
|
|
34
|
+
/**
|
|
35
|
+
* Calculates onset date by subtracting duration from given date
|
|
36
|
+
* @param givenDate - The given date as baseline
|
|
37
|
+
* @param durationValue - The duration value to subtract
|
|
38
|
+
* @param durationUnit - The unit of duration ('days', 'months', 'years')
|
|
39
|
+
* @returns Calculated onset date or undefined if inputs are invalid
|
|
40
|
+
*/
|
|
41
|
+
export declare function calculateOnsetDate(givenDate: Date, durationValue: number | null, durationUnit: 'days' | 'months' | 'years' | null): Date | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Formats a date string into a clean relative time format for use with i18n templates.
|
|
44
|
+
* Converts all time periods to days/months/years only and removes qualifiers like "about", "almost", "ago".
|
|
45
|
+
* Minutes and hours are rounded up to "1 day".
|
|
46
|
+
*
|
|
47
|
+
* @param date - ISO date string to format (e.g., "2025-06-17T07:02:38.000Z" or "2025-06-17")
|
|
48
|
+
* @returns FormatDateResult with clean time format (e.g., "3 days", "1 month", "2 years")
|
|
49
|
+
*/
|
|
50
|
+
export declare function formatDateDistance(date: string, t: (key: string, options?: {
|
|
51
|
+
count?: number;
|
|
52
|
+
}) => string): FormatDateResult;
|
|
53
|
+
export declare const getTodayDate: () => Date;
|
|
54
|
+
export declare function formatDateAndTime(date: number, includeTime: boolean): string;
|
|
55
|
+
export declare function calculateAgeinYearsAndMonths(birthDateMillis: number): string;
|
|
56
|
+
/**
|
|
57
|
+
* Sorts an array of objects by a date field
|
|
58
|
+
* @param array - Array of objects to sort
|
|
59
|
+
* @param dateField - The field name containing the date value
|
|
60
|
+
* @param ascending - Sort order: true for ascending (oldest first), false for descending (newest first)
|
|
61
|
+
* @returns sorted array
|
|
62
|
+
*/
|
|
63
|
+
export declare function sortByDate(array: any[], dateField: string, ascending?: boolean): any[];
|
|
64
|
+
/**
|
|
65
|
+
* Compare given date with specified timeframe: 'past', 'today', or 'future'.
|
|
66
|
+
* @dateFrom string - The date string to compare (in a format parseable by Date constructor)
|
|
67
|
+
* @timeframe string - The timeframe to compare against ('past', 'today', 'future')
|
|
68
|
+
* @returns boolean - true if the date matches the specified timeframe, false otherwise
|
|
69
|
+
*/
|
|
70
|
+
export declare const dateComparator: (dateFrom: string, timeframe: string) => boolean;
|
|
71
|
+
//# sourceMappingURL=date.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../src/date/date.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAI/C,MAAM,WAAW,gBAAgB;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH;AA2BD;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,GAAG,GAAG,IAAI,CAmB3D;AAkGD;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,EAC5B,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,KAAK,MAAM,GACvD,gBAAgB,CAElB;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,EAC5B,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,KAAK,MAAM,EACxD,MAAM,GAAE,MAAoB,GAC3B,gBAAgB,CAElB;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,IAAI,EACf,aAAa,EAAE,MAAM,GAAG,IAAI,EAC5B,YAAY,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,IAAI,GAC/C,IAAI,GAAG,SAAS,CAwBlB;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,MAAM,EACZ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,KAAK,MAAM,GACvD,gBAAgB,CAiFlB;AAED,eAAO,MAAM,YAAY,QAAO,IAI/B,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,GAAG,MAAM,CAwB5E;AACD,wBAAgB,4BAA4B,CAAC,eAAe,EAAE,MAAM,UAYnE;AACD;;;;;;GAMG;AACH,wBAAgB,UAAU,CAExB,KAAK,EAAE,GAAG,EAAE,EACZ,SAAS,EAAE,MAAM,EACjB,SAAS,GAAE,OAAe,GAEzB,GAAG,EAAE,CAeP;AAED;;;;;GAKG;AAEH,eAAO,MAAM,cAAc,GACzB,UAAU,MAAM,EAChB,WAAW,MAAM,KAChB,OAYF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/date/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;CAM/B,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { type FormatDateResult, calculateAge, formatDateTime, formatDate, formatDateDistance, calculateOnsetDate, sortByDate, getTodayDate, calculateAgeinYearsAndMonths, formatDateAndTime, dateComparator, } from './date';
|
|
2
|
+
export { DATE_FORMAT, DATE_PICKER_INPUT_FORMAT, DATE_TIME_FORMAT, ISO_DATE_FORMAT, FULL_MONTH_DATE_FORMAT, } from './constants';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/date/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,gBAAgB,EACrB,YAAY,EACZ,cAAc,EACd,UAAU,EACV,kBAAkB,EAClB,kBAAkB,EAClB,UAAU,EACV,YAAY,EACZ,4BAA4B,EAC5B,iBAAiB,EACjB,cAAc,GACf,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,WAAW,EACX,wBAAwB,EACxB,gBAAgB,EAChB,eAAe,EACf,sBAAsB,GACvB,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/diagnosesService/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAIjC,eAAO,MAAM,8BAA8B,GAAI,aAAa,MAAM,WAEoD,CAAC;AAEvH,eAAO,MAAM,mBAAmB,EAAE,MAAM,EAWvC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Diagnosis } from './models';
|
|
2
|
+
/**
|
|
3
|
+
* Fetches and formats diagnoses for a given patient UUID
|
|
4
|
+
* @param patientUUID - The UUID of the patient
|
|
5
|
+
* @returns Promise resolving to an array of diagnoses
|
|
6
|
+
*/
|
|
7
|
+
export declare function getPatientDiagnoses(patientUUID: string): Promise<Diagnosis[]>;
|
|
8
|
+
//# sourceMappingURL=diagnosesService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diagnosesService.d.ts","sourceRoot":"","sources":["../../src/diagnosesService/diagnosesService.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAyErC;;;;GAIG;AACH,wBAAsB,mBAAmB,CACvC,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,SAAS,EAAE,CAAC,CAGtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/diagnosesService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EACL,KAAK,SAAS,EACd,KAAK,mBAAmB,EACxB,KAAK,eAAe,GACrB,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Coding } from 'fhir/r4';
|
|
2
|
+
export interface DiagnosisInputEntry {
|
|
3
|
+
id: string;
|
|
4
|
+
display: string;
|
|
5
|
+
selectedCertainty: Coding | null;
|
|
6
|
+
errors: {
|
|
7
|
+
certainty?: string;
|
|
8
|
+
};
|
|
9
|
+
hasBeenValidated: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface Diagnosis {
|
|
12
|
+
id: string;
|
|
13
|
+
display: string;
|
|
14
|
+
certainty: Coding;
|
|
15
|
+
recordedDate: string;
|
|
16
|
+
recorder: string;
|
|
17
|
+
}
|
|
18
|
+
export interface DiagnosesByDate {
|
|
19
|
+
date: string;
|
|
20
|
+
diagnoses: Diagnosis[];
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/diagnosesService/models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjC,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjC,MAAM,EAAE;QACN,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,gBAAgB,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,SAAS,EAAE,CAAC;CACxB"}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
export declare const mockVisitBundle: {
|
|
2
|
+
resourceType: string;
|
|
3
|
+
id: string;
|
|
4
|
+
meta: {
|
|
5
|
+
lastUpdated: string;
|
|
6
|
+
};
|
|
7
|
+
type: string;
|
|
8
|
+
total: number;
|
|
9
|
+
link: {
|
|
10
|
+
relation: string;
|
|
11
|
+
url: string;
|
|
12
|
+
}[];
|
|
13
|
+
entry: ({
|
|
14
|
+
fullUrl: string;
|
|
15
|
+
resource: {
|
|
16
|
+
resourceType: string;
|
|
17
|
+
id: string;
|
|
18
|
+
meta: {
|
|
19
|
+
versionId: string;
|
|
20
|
+
lastUpdated: string;
|
|
21
|
+
tag: {
|
|
22
|
+
system: string;
|
|
23
|
+
code: string;
|
|
24
|
+
display: string;
|
|
25
|
+
}[];
|
|
26
|
+
};
|
|
27
|
+
status: string;
|
|
28
|
+
class: {
|
|
29
|
+
system: string;
|
|
30
|
+
code: string;
|
|
31
|
+
};
|
|
32
|
+
type: {
|
|
33
|
+
coding: {
|
|
34
|
+
system: string;
|
|
35
|
+
code: string;
|
|
36
|
+
display: string;
|
|
37
|
+
}[];
|
|
38
|
+
}[];
|
|
39
|
+
subject: {
|
|
40
|
+
reference: string;
|
|
41
|
+
type: string;
|
|
42
|
+
display: string;
|
|
43
|
+
};
|
|
44
|
+
period: {
|
|
45
|
+
start: string;
|
|
46
|
+
end: string;
|
|
47
|
+
};
|
|
48
|
+
location: {
|
|
49
|
+
location: {
|
|
50
|
+
reference: string;
|
|
51
|
+
type: string;
|
|
52
|
+
display: string;
|
|
53
|
+
};
|
|
54
|
+
}[];
|
|
55
|
+
};
|
|
56
|
+
} | {
|
|
57
|
+
fullUrl: string;
|
|
58
|
+
resource: {
|
|
59
|
+
resourceType: string;
|
|
60
|
+
id: string;
|
|
61
|
+
meta: {
|
|
62
|
+
versionId: string;
|
|
63
|
+
lastUpdated: string;
|
|
64
|
+
tag: {
|
|
65
|
+
system: string;
|
|
66
|
+
code: string;
|
|
67
|
+
display: string;
|
|
68
|
+
}[];
|
|
69
|
+
};
|
|
70
|
+
status: string;
|
|
71
|
+
class: {
|
|
72
|
+
system: string;
|
|
73
|
+
code: string;
|
|
74
|
+
};
|
|
75
|
+
type: {
|
|
76
|
+
coding: {
|
|
77
|
+
system: string;
|
|
78
|
+
code: string;
|
|
79
|
+
display: string;
|
|
80
|
+
}[];
|
|
81
|
+
}[];
|
|
82
|
+
subject: {
|
|
83
|
+
reference: string;
|
|
84
|
+
type: string;
|
|
85
|
+
display: string;
|
|
86
|
+
};
|
|
87
|
+
period: {
|
|
88
|
+
start: string;
|
|
89
|
+
end?: undefined;
|
|
90
|
+
};
|
|
91
|
+
location: {
|
|
92
|
+
location: {
|
|
93
|
+
reference: string;
|
|
94
|
+
type: string;
|
|
95
|
+
display: string;
|
|
96
|
+
};
|
|
97
|
+
}[];
|
|
98
|
+
};
|
|
99
|
+
})[];
|
|
100
|
+
};
|
|
101
|
+
export declare const mockActiveVisit: {
|
|
102
|
+
resourceType: string;
|
|
103
|
+
id: string;
|
|
104
|
+
meta: {
|
|
105
|
+
versionId: string;
|
|
106
|
+
lastUpdated: string;
|
|
107
|
+
tag: {
|
|
108
|
+
system: string;
|
|
109
|
+
code: string;
|
|
110
|
+
display: string;
|
|
111
|
+
}[];
|
|
112
|
+
};
|
|
113
|
+
status: string;
|
|
114
|
+
class: {
|
|
115
|
+
system: string;
|
|
116
|
+
code: string;
|
|
117
|
+
};
|
|
118
|
+
type: {
|
|
119
|
+
coding: {
|
|
120
|
+
system: string;
|
|
121
|
+
code: string;
|
|
122
|
+
display: string;
|
|
123
|
+
}[];
|
|
124
|
+
}[];
|
|
125
|
+
subject: {
|
|
126
|
+
reference: string;
|
|
127
|
+
type: string;
|
|
128
|
+
display: string;
|
|
129
|
+
};
|
|
130
|
+
period: {
|
|
131
|
+
start: string;
|
|
132
|
+
end: string;
|
|
133
|
+
};
|
|
134
|
+
location: {
|
|
135
|
+
location: {
|
|
136
|
+
reference: string;
|
|
137
|
+
type: string;
|
|
138
|
+
display: string;
|
|
139
|
+
};
|
|
140
|
+
}[];
|
|
141
|
+
} | {
|
|
142
|
+
resourceType: string;
|
|
143
|
+
id: string;
|
|
144
|
+
meta: {
|
|
145
|
+
versionId: string;
|
|
146
|
+
lastUpdated: string;
|
|
147
|
+
tag: {
|
|
148
|
+
system: string;
|
|
149
|
+
code: string;
|
|
150
|
+
display: string;
|
|
151
|
+
}[];
|
|
152
|
+
};
|
|
153
|
+
status: string;
|
|
154
|
+
class: {
|
|
155
|
+
system: string;
|
|
156
|
+
code: string;
|
|
157
|
+
};
|
|
158
|
+
type: {
|
|
159
|
+
coding: {
|
|
160
|
+
system: string;
|
|
161
|
+
code: string;
|
|
162
|
+
display: string;
|
|
163
|
+
}[];
|
|
164
|
+
}[];
|
|
165
|
+
subject: {
|
|
166
|
+
reference: string;
|
|
167
|
+
type: string;
|
|
168
|
+
display: string;
|
|
169
|
+
};
|
|
170
|
+
period: {
|
|
171
|
+
start: string;
|
|
172
|
+
end?: undefined;
|
|
173
|
+
};
|
|
174
|
+
location: {
|
|
175
|
+
location: {
|
|
176
|
+
reference: string;
|
|
177
|
+
type: string;
|
|
178
|
+
display: string;
|
|
179
|
+
};
|
|
180
|
+
}[];
|
|
181
|
+
};
|
|
182
|
+
//# sourceMappingURL=mocks.d.ts.map
|