@bahmni/clinical-app 0.0.1-dev.170 → 0.0.1-dev.173
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DocumentsTable-DV_nkz4--B5Jd4s9s.js +5429 -0
- package/dist/{FormsTable-BPeGy94--CVzB3MSS.js → FormsTable-DL_zg0dG-BC1vZhT0.js} +79 -79
- package/dist/{LNWAZHJI-BLaPuqm1.js → LNWAZHJI-Cbvtvfhl.js} +7 -7
- package/dist/{MWZ6AO7Z-CPlDOuSW.js → MWZ6AO7Z-GTr-52SK.js} +5 -5
- package/dist/{Observations-DFn-QE1o-2Wj1hXjN.js → Observations-c94Dp42v-C40JusTy.js} +55 -55
- package/dist/{YPM2AS64-B3n5UqGP.js → YPM2AS64-C3ymEp_p.js} +181 -181
- package/dist/__mocks__/configMocks.d.ts +1 -1
- package/dist/__mocks__/configMocks.d.ts.map +1 -1
- package/dist/components/dashboardContainer/DashboardContainer.d.ts +1 -1
- package/dist/components/dashboardContainer/DashboardContainer.d.ts.map +1 -1
- package/dist/components/dashboardSection/DashboardSection.d.ts +1 -1
- package/dist/components/dashboardSection/DashboardSection.d.ts.map +1 -1
- package/dist/components/forms/medications/MedicationsForm.d.ts.map +1 -1
- package/dist/components/forms/medications/constants.d.ts +2 -0
- package/dist/components/forms/medications/constants.d.ts.map +1 -0
- package/dist/components/forms/medications/schema.json.d.ts +40 -0
- package/dist/components/forms/vaccinations/VaccinationForm.d.ts.map +1 -1
- package/dist/constants/app.d.ts +1 -0
- package/dist/constants/app.d.ts.map +1 -1
- package/dist/constants/errors.d.ts +0 -1
- package/dist/constants/errors.d.ts.map +1 -1
- package/dist/{index-BPuADWI_.js → index-DQkhMGdZ.js} +31342 -31284
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/dist/locales/locale_en.json +9 -1
- package/dist/locales/locale_es.json +9 -1
- package/dist/pages/ConsultationPage.d.ts.map +1 -1
- package/dist/pages/constant.d.ts +1 -0
- package/dist/pages/constant.d.ts.map +1 -1
- package/dist/pages/models.d.ts +18 -0
- package/dist/pages/models.d.ts.map +1 -0
- package/dist/pages/schema.json.d.ts +57 -0
- package/dist/{services/consultationPageService.d.ts → pages/util.d.ts} +3 -2
- package/dist/pages/util.d.ts.map +1 -0
- package/dist/providers/clinicalConfig/constants.d.ts +2 -0
- package/dist/providers/clinicalConfig/constants.d.ts.map +1 -0
- package/dist/{contexts/ClinicalConfigContext.d.ts → providers/clinicalConfig/context.d.ts} +1 -1
- package/dist/providers/clinicalConfig/context.d.ts.map +1 -0
- package/dist/providers/clinicalConfig/hook.d.ts +3 -0
- package/dist/providers/clinicalConfig/hook.d.ts.map +1 -0
- package/dist/providers/clinicalConfig/index.d.ts +5 -0
- package/dist/providers/clinicalConfig/index.d.ts.map +1 -0
- package/dist/providers/clinicalConfig/models.d.ts +36 -0
- package/dist/providers/clinicalConfig/models.d.ts.map +1 -0
- package/dist/providers/clinicalConfig/provider.d.ts +4 -0
- package/dist/providers/clinicalConfig/provider.d.ts.map +1 -0
- package/dist/providers/clinicalConfig/schema.json.d.ts +124 -0
- package/package.json +1 -1
- package/dist/contexts/ClinicalConfigContext.d.ts.map +0 -1
- package/dist/contexts/models.d.ts +0 -14
- package/dist/contexts/models.d.ts.map +0 -1
- package/dist/hooks/useClinicalConfig.d.ts +0 -7
- package/dist/hooks/useClinicalConfig.d.ts.map +0 -1
- package/dist/hooks/useDashboardConfig.d.ts +0 -15
- package/dist/hooks/useDashboardConfig.d.ts.map +0 -1
- package/dist/hooks/useMedicationConfig.d.ts +0 -9
- package/dist/hooks/useMedicationConfig.d.ts.map +0 -1
- package/dist/providers/ClinicalConfigProvider.d.ts +0 -7
- package/dist/providers/ClinicalConfigProvider.d.ts.map +0 -1
- package/dist/services/consultationPageService.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -115,6 +115,13 @@
|
|
|
115
115
|
"DIAGNOSIS_LIST_RECORDED_BY": "Recorded By",
|
|
116
116
|
"DIAGNOSIS_RECORDED_DATE": "Recorded Date",
|
|
117
117
|
"DIAGNOSIS_TABLE_NOT_AVAILABLE": "Not available",
|
|
118
|
+
"DOCUMENTS_DOCUMENT_IDENTIFIER": "Document Identifier",
|
|
119
|
+
"DOCUMENTS_TYPE": "Document Type",
|
|
120
|
+
"DOCUMENTS_NOT_AVAILABLE": "Not Available",
|
|
121
|
+
"DOCUMENTS_NO_RECORDS": "No documents added",
|
|
122
|
+
"DOCUMENTS_TABLE_HEADING": "Patient Documents",
|
|
123
|
+
"DOCUMENTS_UPLOADED_BY": "Uploaded By",
|
|
124
|
+
"DOCUMENTS_UPLOADED_ON": "Uploaded On",
|
|
118
125
|
"DROPDOWN_VALUE_REQUIRED": "Please select a value",
|
|
119
126
|
"DURATION_UNIT_DAYS": "Days",
|
|
120
127
|
"DURATION_UNIT_HOURS": "Hours",
|
|
@@ -128,7 +135,8 @@
|
|
|
128
135
|
"ERROR_CLINICAL_CONFIG_NOT_FOUND": "Clinical configuration not found",
|
|
129
136
|
"ERROR_CONDITION_MISSING_CODING_INFORMATION": "Missing required condition coding information",
|
|
130
137
|
"ERROR_CONDITION_MISSING_REQUIRED_FIELDS": "Missing required fields in condition data",
|
|
131
|
-
"
|
|
138
|
+
"ERROR_CONFIG_GENERIC_MESSAGE": "Unable to load {{config}}. Please try refreshing the page.",
|
|
139
|
+
"ERROR_CONFIG_TITLE": "{{config}} Error",
|
|
132
140
|
"ERROR_CONSULTATION_PAD_NOT_FOUND": "Consultation pad configuration not found",
|
|
133
141
|
"ERROR_CONSULTATION_TITLE": "Consultation Error",
|
|
134
142
|
"ERROR_DASHBOARD_CONFIG_TITLE": "Department Configuration Error",
|
|
@@ -115,6 +115,13 @@
|
|
|
115
115
|
"DIAGNOSIS_LIST_RECORDED_BY": "Grabado por",
|
|
116
116
|
"DIAGNOSIS_RECORDED_DATE": "Fecha de grabación",
|
|
117
117
|
"DIAGNOSIS_TABLE_NOT_AVAILABLE": "No disponible",
|
|
118
|
+
"DOCUMENTS_TYPE": "Tipo de Documento",
|
|
119
|
+
"DOCUMENTS_DOCUMENT_IDENTIFIER": "Identificador de documento",
|
|
120
|
+
"DOCUMENTS_NOT_AVAILABLE": "No Disponible",
|
|
121
|
+
"DOCUMENTS_NO_RECORDS": "No hay documentos agregados",
|
|
122
|
+
"DOCUMENTS_TABLE_HEADING": "Documentos del Paciente",
|
|
123
|
+
"DOCUMENTS_UPLOADED_BY": "Cargado Por",
|
|
124
|
+
"DOCUMENTS_UPLOADED_ON": "Cargado En",
|
|
118
125
|
"DROPDOWN_VALUE_REQUIRED": "Por favor seleccione un valor",
|
|
119
126
|
"DURATION_UNIT_DAYS": "Días",
|
|
120
127
|
"DURATION_UNIT_HOURS": "Horas",
|
|
@@ -128,7 +135,8 @@
|
|
|
128
135
|
"ERROR_CLINICAL_CONFIG_NOT_FOUND": "No se encontró la configuración clínica",
|
|
129
136
|
"ERROR_CONDITION_MISSING_CODING_INFORMATION": "Falta información de codificación de condición requerida",
|
|
130
137
|
"ERROR_CONDITION_MISSING_REQUIRED_FIELDS": "Faltan campos requeridos en los datos de condición",
|
|
131
|
-
"
|
|
138
|
+
"ERROR_CONFIG_GENERIC_MESSAGE": "No se pudo cargar {{config}}. Por favor, intente actualizar la página.",
|
|
139
|
+
"ERROR_CONFIG_TITLE": "Error de {{config}}",
|
|
132
140
|
"ERROR_CONSULTATION_PAD_NOT_FOUND": "No se encontró la configuración del panel de consulta",
|
|
133
141
|
"ERROR_CONSULTATION_TITLE": "Error de Consulta",
|
|
134
142
|
"ERROR_DASHBOARD_CONFIG_TITLE": "Error de configuración del departamento",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsultationPage.d.ts","sourceRoot":"","sources":["../../src/pages/ConsultationPage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConsultationPage.d.ts","sourceRoot":"","sources":["../../src/pages/ConsultationPage.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAqDtE;;;;;;;;GAQG;AACH,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EA2L7B,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
package/dist/pages/constant.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare const DASHBOARD_CONFIG_URL: (dashboardURL: string) => string;
|
|
1
2
|
export declare const EPISODE_UUID_SEARCH_PARAMS_KEY = "episodeUuid";
|
|
2
3
|
export declare const CURRENT_DASHBOARD_SEARCH_PARAMS_KEY = "currentDashboard";
|
|
3
4
|
export declare const PROGRAM_UUID_SEARCH_PARAMS_KEY = "programUuid";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constant.d.ts","sourceRoot":"","sources":["../../src/pages/constant.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constant.d.ts","sourceRoot":"","sources":["../../src/pages/constant.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,GAAI,cAAc,MAAM,WACI,CAAC;AAE9D,eAAO,MAAM,8BAA8B,gBAAgB,CAAC;AAC5D,eAAO,MAAM,mCAAmC,qBAAqB,CAAC;AACtE,eAAO,MAAM,8BAA8B,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface DashboardSectionConfig {
|
|
2
|
+
id?: string;
|
|
3
|
+
name: string;
|
|
4
|
+
translationKey?: string;
|
|
5
|
+
icon: string;
|
|
6
|
+
controls: Array<ControlConfig>;
|
|
7
|
+
}
|
|
8
|
+
export interface ControlConfig {
|
|
9
|
+
type: string;
|
|
10
|
+
name: string;
|
|
11
|
+
translationKey?: string;
|
|
12
|
+
conceptNames?: string[];
|
|
13
|
+
config?: Record<string, unknown>;
|
|
14
|
+
}
|
|
15
|
+
export interface DashboardConfig {
|
|
16
|
+
sections: Array<DashboardSectionConfig>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/pages/models.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAC;CACzC"}
|
|
@@ -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;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { HeaderSideNavItem } from '@bahmni/design-system';
|
|
2
|
-
import { Dashboard
|
|
2
|
+
import { Dashboard } from '../providers/clinicalConfig/models';
|
|
3
|
+
import { DashboardConfig } from './models';
|
|
3
4
|
/**
|
|
4
5
|
* Gets the default dashboard from an array of dashboards
|
|
5
6
|
* @param dashboards Array of dashboard configurations
|
|
@@ -12,4 +13,4 @@ export declare const getDefaultDashboard: (dashboards: Dashboard[]) => Dashboard
|
|
|
12
13
|
* @returns Array of sidebar items
|
|
13
14
|
*/
|
|
14
15
|
export declare const getSidebarItems: (dashboardConfig: DashboardConfig, t: (key: string) => string) => HeaderSideNavItem[];
|
|
15
|
-
//# sourceMappingURL=
|
|
16
|
+
//# sourceMappingURL=util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../src/pages/util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAC9B,YAAY,SAAS,EAAE,KACtB,SAAS,GAAG,IAcd,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,iBAAiB,eAAe,EAChC,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,KACzB,iBAAiB,EAMnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/providers/clinicalConfig/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,QAA4C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/providers/clinicalConfig/context.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAErD,eAAO,MAAM,qBAAqB,gEAEtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hook.d.ts","sourceRoot":"","sources":["../../../src/providers/clinicalConfig/hook.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAErD,eAAO,MAAM,iBAAiB,iCAI7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/providers/clinicalConfig/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
statDurationInMilliseconds?: number;
|
|
10
|
+
}
|
|
11
|
+
export interface Dashboard {
|
|
12
|
+
name: string;
|
|
13
|
+
url: string;
|
|
14
|
+
requiredPrivileges: string[];
|
|
15
|
+
icon?: string;
|
|
16
|
+
default?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface ProgramConfig {
|
|
19
|
+
fields: string[];
|
|
20
|
+
}
|
|
21
|
+
export interface ContextInformation {
|
|
22
|
+
program?: ProgramConfig;
|
|
23
|
+
}
|
|
24
|
+
export interface ClinicalConfig {
|
|
25
|
+
patientInformation: Record<string, unknown>;
|
|
26
|
+
contextInformation?: ContextInformation;
|
|
27
|
+
actions: Array<unknown>;
|
|
28
|
+
dashboards: Array<Dashboard>;
|
|
29
|
+
consultationPad: ConsultationPad;
|
|
30
|
+
}
|
|
31
|
+
export interface ClinicalConfigContextType {
|
|
32
|
+
clinicalConfig: ClinicalConfig | null | undefined;
|
|
33
|
+
isLoading: boolean;
|
|
34
|
+
error: Error | null;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/providers/clinicalConfig/models.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;IACrC,0BAA0B,CAAC,EAAE,MAAM,CAAC;CACrC;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,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,MAAM,WAAW,cAAc;IAC7B,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC5C,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACxB,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAC7B,eAAe,EAAE,eAAe,CAAC;CAClC;AAED,MAAM,WAAW,yBAAyB;IACxC,cAAc,EAAE,cAAc,GAAG,IAAI,GAAG,SAAS,CAAC;IAClD,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../src/providers/clinicalConfig/provider.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,sBAAsB;;EAgBjC,CAAC"}
|
|
@@ -0,0 +1,124 @@
|
|
|
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
|
+
"contextInformation": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"description": "Context information configuration for displaying additional patient context",
|
|
22
|
+
"additionalProperties": false,
|
|
23
|
+
"properties": {
|
|
24
|
+
"program": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"description": "Program details configuration",
|
|
27
|
+
"required": ["fields"],
|
|
28
|
+
"additionalProperties": false,
|
|
29
|
+
"properties": {
|
|
30
|
+
"fields": {
|
|
31
|
+
"type": "array",
|
|
32
|
+
"description": "List of fields to display in program details",
|
|
33
|
+
"items": {
|
|
34
|
+
"type": "string"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"actions": {
|
|
42
|
+
"type": "array",
|
|
43
|
+
"description": "List of available actions"
|
|
44
|
+
},
|
|
45
|
+
"dashboards": {
|
|
46
|
+
"type": "array",
|
|
47
|
+
"description": "List of available dashboards",
|
|
48
|
+
"items": {
|
|
49
|
+
"type": "object",
|
|
50
|
+
"required": ["name", "requiredPrivileges", "url"],
|
|
51
|
+
"additionalProperties": false,
|
|
52
|
+
"properties": {
|
|
53
|
+
"name": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"description": "Display name of the dashboard"
|
|
56
|
+
},
|
|
57
|
+
"requiredPrivileges": {
|
|
58
|
+
"type": "array",
|
|
59
|
+
"items": {
|
|
60
|
+
"type": "string"
|
|
61
|
+
},
|
|
62
|
+
"description": "List of permissions required to access this dashboard"
|
|
63
|
+
},
|
|
64
|
+
"icon": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"description": "Icon class name for the dashboard"
|
|
67
|
+
},
|
|
68
|
+
"default": {
|
|
69
|
+
"type": "boolean",
|
|
70
|
+
"description": "Whether this is the default dashboard"
|
|
71
|
+
},
|
|
72
|
+
"url": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"description": "URL to access the dashboard data"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"consultationPad": {
|
|
80
|
+
"type": "object",
|
|
81
|
+
"description": "Configuration for consultation pad forms",
|
|
82
|
+
"required": ["allergyConceptMap"],
|
|
83
|
+
"additionalProperties": true,
|
|
84
|
+
"properties": {
|
|
85
|
+
"allergyConceptMap": {
|
|
86
|
+
"type": "object",
|
|
87
|
+
"description": "UUID mappings for allergy concepts",
|
|
88
|
+
"required": [
|
|
89
|
+
"medicationAllergenUuid",
|
|
90
|
+
"foodAllergenUuid",
|
|
91
|
+
"environmentalAllergenUuid",
|
|
92
|
+
"allergyReactionUuid"
|
|
93
|
+
],
|
|
94
|
+
"additionalProperties": true,
|
|
95
|
+
"properties": {
|
|
96
|
+
"medicationAllergenUuid": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"description": "UUID for medication allergen concept"
|
|
99
|
+
},
|
|
100
|
+
"foodAllergenUuid": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"description": "UUID for food allergen concept"
|
|
103
|
+
},
|
|
104
|
+
"environmentalAllergenUuid": {
|
|
105
|
+
"type": "string",
|
|
106
|
+
"description": "UUID for environmental allergen concept"
|
|
107
|
+
},
|
|
108
|
+
"allergyReactionUuid": {
|
|
109
|
+
"type": "string",
|
|
110
|
+
"description": "UUID for allergy reaction concept"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"statDurationInHours": {
|
|
115
|
+
"type": "number",
|
|
116
|
+
"description": "Duration in hours for which a STAT order is valid"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
;
|
|
123
|
+
|
|
124
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ClinicalConfigContext.d.ts","sourceRoot":"","sources":["../../src/contexts/ClinicalConfigContext.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAErD,eAAO,MAAM,qBAAqB,gEAEtB,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ClinicalConfig } from '@bahmni/services';
|
|
2
|
-
/**
|
|
3
|
-
* Configuration context interface
|
|
4
|
-
* Extends ConfigState with loading and error states
|
|
5
|
-
*/
|
|
6
|
-
export interface ClinicalConfigContextType {
|
|
7
|
-
clinicalConfig: ClinicalConfig | null;
|
|
8
|
-
setClinicalConfig: (config: ClinicalConfig) => void;
|
|
9
|
-
isLoading: boolean;
|
|
10
|
-
setIsLoading: (isLoading: boolean) => void;
|
|
11
|
-
error: Error | null;
|
|
12
|
-
setError: (error: Error | null) => void;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=models.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/contexts/models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC,cAAc,EAAE,cAAc,GAAG,IAAI,CAAC;IACtC,iBAAiB,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,CAAC;IACpD,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3C,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,KAAK,IAAI,CAAC;CACzC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ClinicalConfigContextType } from '../contexts/models';
|
|
2
|
-
/**
|
|
3
|
-
* Custom hook to access the config context
|
|
4
|
-
* @returns The config context values including config, loading state, and error
|
|
5
|
-
*/
|
|
6
|
-
export declare const useClinicalConfig: () => ClinicalConfigContextType;
|
|
7
|
-
//# sourceMappingURL=useClinicalConfig.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useClinicalConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useClinicalConfig.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAE/D;;;GAGG;AACH,eAAO,MAAM,iBAAiB,QAAO,yBAUpC,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { DashboardConfig } from '@bahmni/services';
|
|
2
|
-
interface UseDashboardConfigResult {
|
|
3
|
-
dashboardConfig: DashboardConfig | null;
|
|
4
|
-
isLoading: boolean;
|
|
5
|
-
error: Error | null;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Custom hook to fetch and manage dashboard configuration
|
|
9
|
-
*
|
|
10
|
-
* @param dashboardURL - URL path to fetch the dashboard configuration, or null if not available
|
|
11
|
-
* @returns The dashboard configuration, loading state, and error state
|
|
12
|
-
*/
|
|
13
|
-
export declare const useDashboardConfig: (dashboardURL: string | null) => UseDashboardConfigResult;
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=useDashboardConfig.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useDashboardConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useDashboardConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,eAAe,EAEhB,MAAM,kBAAkB,CAAC;AAG1B,UAAU,wBAAwB;IAChC,eAAe,EAAE,eAAe,GAAG,IAAI,CAAC;IACxC,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB;AAED;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,GAC7B,cAAc,MAAM,GAAG,IAAI,KAC1B,wBAqCF,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { MedicationConfig } from '../models/medicationConfig';
|
|
2
|
-
interface UseMedicationConfigResult {
|
|
3
|
-
medicationConfig: MedicationConfig | null;
|
|
4
|
-
loading: boolean;
|
|
5
|
-
error: Error | null;
|
|
6
|
-
}
|
|
7
|
-
export declare const useMedicationConfig: () => UseMedicationConfigResult;
|
|
8
|
-
export default useMedicationConfig;
|
|
9
|
-
//# sourceMappingURL=useMedicationConfig.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useMedicationConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useMedicationConfig.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,UAAU,yBAAyB;IACjC,gBAAgB,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC1C,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB;AAID,eAAO,MAAM,mBAAmB,QAAO,yBAmCtC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { default as React, ReactNode } from 'react';
|
|
2
|
-
interface ClinicalConfigProviderProps {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
}
|
|
5
|
-
export declare const ClinicalConfigProvider: React.FC<ClinicalConfigProviderProps>;
|
|
6
|
-
export {};
|
|
7
|
-
//# sourceMappingURL=ClinicalConfigProvider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ClinicalConfigProvider.d.ts","sourceRoot":"","sources":["../../src/providers/ClinicalConfigProvider.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAgC,MAAM,OAAO,CAAC;AAGvE,UAAU,2BAA2B;IACnC,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CA4CxE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"consultationPageService.d.ts","sourceRoot":"","sources":["../../src/services/consultationPageService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAE9D;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAC9B,YAAY,SAAS,EAAE,KACtB,SAAS,GAAG,IAkBd,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,iBAAiB,eAAe,EAChC,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,KACzB,iBAAiB,EAOnB,CAAC"}
|