@bahmni/clinical-app 0.0.1-dev.234 → 0.0.1-dev.235
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-Cl0S6I_z-B75ryDWx.js → DocumentsTable-Cl0S6I_z-cGPjxM0V.js} +1 -1
- package/dist/{FormsTable-Iqc9AxOy-BngfAGDQ.js → FormsTable-Iqc9AxOy-Bgl-_qJN.js} +1 -1
- package/dist/{LNWAZHJI-Dwq7nBJL.js → LNWAZHJI-BxYFXdec.js} +2 -2
- package/dist/{MWZ6AO7Z-BNhh8ALs.js → MWZ6AO7Z-Dfy068rh.js} +2 -2
- package/dist/{Observations-DBbsNLYV-hNkKte-q.js → Observations-DBbsNLYV-Dt1_UZZg.js} +1 -1
- package/dist/{YPM2AS64-gkojpX4s.js → YPM2AS64-CoYRg1FN.js} +1 -1
- package/dist/__mocks__/configMocks.d.ts +2 -0
- package/dist/__mocks__/configMocks.d.ts.map +1 -1
- package/dist/components/consultationPad/__tests__/__mocks__/indexMocks.d.ts +3 -3
- package/dist/components/consultationPad/__tests__/__mocks__/indexMocks.d.ts.map +1 -1
- package/dist/components/consultationPad/__tests__/__mocks__/inputControlRegistryMocks.d.ts.map +1 -1
- package/dist/components/consultationPad/__tests__/__mocks__/servicesMocks.d.ts +2 -2
- package/dist/components/consultationPad/__tests__/__mocks__/servicesMocks.d.ts.map +1 -1
- package/dist/components/consultationPad/constants.d.ts +2 -0
- package/dist/components/consultationPad/constants.d.ts.map +1 -0
- package/dist/components/consultationPad/index.d.ts.map +1 -1
- package/dist/components/consultationPad/services.d.ts +2 -2
- package/dist/components/consultationPad/services.d.ts.map +1 -1
- package/dist/components/consultationPad/utils.d.ts +5 -3
- package/dist/components/consultationPad/utils.d.ts.map +1 -1
- package/dist/components/forms/allergies/index.d.ts +2 -0
- package/dist/components/forms/allergies/index.d.ts.map +1 -0
- package/dist/components/forms/conditionsAndDiagnoses/index.d.ts +2 -0
- package/dist/components/forms/conditionsAndDiagnoses/index.d.ts.map +1 -0
- package/dist/components/forms/encounterDetails/index.d.ts +2 -0
- package/dist/components/forms/encounterDetails/index.d.ts.map +1 -0
- package/dist/components/forms/immunizationHistory/ImmunizationHistoryForm.d.ts.map +1 -1
- package/dist/components/forms/immunizationHistory/__tests__/__mocks__/immunizationHistoryMocks.d.ts +3 -2
- package/dist/components/forms/immunizationHistory/__tests__/__mocks__/immunizationHistoryMocks.d.ts.map +1 -1
- package/dist/components/forms/immunizationHistory/constants.d.ts +1 -0
- package/dist/components/forms/immunizationHistory/constants.d.ts.map +1 -1
- package/dist/components/forms/immunizationHistory/index.d.ts +1 -3
- package/dist/components/forms/immunizationHistory/index.d.ts.map +1 -1
- package/dist/components/forms/index.d.ts +3 -7
- package/dist/components/forms/index.d.ts.map +1 -1
- package/dist/components/forms/investigations/index.d.ts +2 -0
- package/dist/components/forms/investigations/index.d.ts.map +1 -0
- package/dist/components/forms/medications/index.d.ts +2 -0
- package/dist/components/forms/medications/index.d.ts.map +1 -0
- package/dist/components/{consultationPad → forms}/models.d.ts +9 -10
- package/dist/components/forms/models.d.ts.map +1 -0
- package/dist/components/forms/observations/ObservationFormsPanel.d.ts.map +1 -0
- package/dist/components/forms/observations/index.d.ts +2 -0
- package/dist/components/forms/observations/index.d.ts.map +1 -0
- package/dist/components/forms/registry.d.ts +5 -0
- package/dist/components/forms/registry.d.ts.map +1 -0
- package/dist/components/{consultationPad/components/InputControlRenderer.d.ts → forms/renderer.d.ts} +3 -3
- package/dist/components/forms/renderer.d.ts.map +1 -0
- package/dist/components/forms/vaccinations/index.d.ts +2 -0
- package/dist/components/forms/vaccinations/index.d.ts.map +1 -0
- package/dist/{index-jae7GJTx.js → index-C1s-9o0M.js} +4245 -4234
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/dist/providers/clinicalConfig/models.d.ts +3 -8
- package/dist/providers/clinicalConfig/models.d.ts.map +1 -1
- package/dist/providers/clinicalConfig/schema.json.d.ts +12 -48
- package/package.json +1 -1
- package/dist/components/consultationPad/components/InputControlRenderer.d.ts.map +0 -1
- package/dist/components/consultationPad/components/ObservationFormsPanel.d.ts.map +0 -1
- package/dist/components/consultationPad/inputControlRegistry.d.ts +0 -4
- package/dist/components/consultationPad/inputControlRegistry.d.ts.map +0 -1
- package/dist/components/consultationPad/models.d.ts.map +0 -1
- /package/dist/components/{consultationPad/components → forms/observations}/ObservationFormsPanel.d.ts +0 -0
package/dist/index.js
CHANGED
|
@@ -9,6 +9,8 @@ export interface InputControlAttributes {
|
|
|
9
9
|
required: boolean;
|
|
10
10
|
}
|
|
11
11
|
export interface InputControl<T extends Record<string, unknown> = Record<string, unknown>> {
|
|
12
|
+
type: string;
|
|
13
|
+
label?: string;
|
|
12
14
|
metadata: T;
|
|
13
15
|
encounterTypes: string[];
|
|
14
16
|
privileges: string[];
|
|
@@ -17,14 +19,7 @@ export interface InputControl<T extends Record<string, unknown> = Record<string,
|
|
|
17
19
|
export interface ConsultationPad {
|
|
18
20
|
allergyConceptMap: AllergyConceptMap;
|
|
19
21
|
statDurationInMilliseconds?: number;
|
|
20
|
-
|
|
21
|
-
allergies?: InputControl;
|
|
22
|
-
investigations?: InputControl;
|
|
23
|
-
medications?: InputControl;
|
|
24
|
-
observationForms?: InputControl;
|
|
25
|
-
vaccinations?: InputControl;
|
|
26
|
-
conditionsAndDiagnoses?: InputControl;
|
|
27
|
-
immunizationHistory?: InputControl;
|
|
22
|
+
inputControls: InputControl[];
|
|
28
23
|
}
|
|
29
24
|
export interface Dashboard {
|
|
30
25
|
name: string;
|
|
@@ -1 +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,EAA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AA0B,CAAC,EAAE,MAAM,CAAC;IACpC,aAAa,EAAE,YAAY,EAAE,CAAC;CAC/B;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,yBAAyB;IACxC,KAAK,EAAE,MAAM,GAAG,YAAY,GAAG,QAAQ,GAAG,KAAK,CAAC;IAChD,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,mBAAmB;IAClC,aAAa,CAAC,EAAE,yBAAyB,EAAE,CAAC;CAC7C;AAED,MAAM,WAAW,cAAc;IAC7B,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC5C,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC,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"}
|
|
@@ -11,26 +11,15 @@ declare const _default: {
|
|
|
11
11
|
],
|
|
12
12
|
"additionalProperties": false,
|
|
13
13
|
"definitions": {
|
|
14
|
-
"encounterDetailsControl": {
|
|
15
|
-
"allOf": [{ "$ref": "#/definitions/inputControl" }],
|
|
16
|
-
"properties": {
|
|
17
|
-
"metadata": {
|
|
18
|
-
"type": "object",
|
|
19
|
-
"additionalProperties": false,
|
|
20
|
-
"properties": {
|
|
21
|
-
"defaultEncounterType": {
|
|
22
|
-
"type": "string",
|
|
23
|
-
"description": "Encounter type name to use when none is specified by the caller"
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
14
|
"inputControl": {
|
|
30
15
|
"type": "object",
|
|
31
|
-
"required": ["metadata", "encounterTypes", "privileges", "attributes"],
|
|
16
|
+
"required": ["type", "metadata", "encounterTypes", "privileges", "attributes"],
|
|
32
17
|
"additionalProperties": false,
|
|
33
18
|
"properties": {
|
|
19
|
+
"type": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "Identifier matching the registered form key (e.g. encounterDetails, allergies)"
|
|
22
|
+
},
|
|
34
23
|
"metadata": {
|
|
35
24
|
"type": "object",
|
|
36
25
|
"description": "Additional metadata for the input control"
|
|
@@ -167,7 +156,7 @@ declare const _default: {
|
|
|
167
156
|
"consultationPad": {
|
|
168
157
|
"type": "object",
|
|
169
158
|
"description": "Configuration for consultation pad forms",
|
|
170
|
-
"required": ["allergyConceptMap", "
|
|
159
|
+
"required": ["allergyConceptMap", "inputControls"],
|
|
171
160
|
"additionalProperties": true,
|
|
172
161
|
"properties": {
|
|
173
162
|
"allergyConceptMap": {
|
|
@@ -203,37 +192,12 @@ declare const _default: {
|
|
|
203
192
|
"type": "number",
|
|
204
193
|
"description": "Duration in milliseconds for which a STAT order is valid"
|
|
205
194
|
},
|
|
206
|
-
"
|
|
207
|
-
"
|
|
208
|
-
"description": "
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
"description": "Configuration for the allergies form"
|
|
213
|
-
},
|
|
214
|
-
"investigations": {
|
|
215
|
-
"$ref": "#/definitions/inputControl",
|
|
216
|
-
"description": "Configuration for the investigations form"
|
|
217
|
-
},
|
|
218
|
-
"medications": {
|
|
219
|
-
"$ref": "#/definitions/inputControl",
|
|
220
|
-
"description": "Configuration for the medications form"
|
|
221
|
-
},
|
|
222
|
-
"observationForms": {
|
|
223
|
-
"$ref": "#/definitions/inputControl",
|
|
224
|
-
"description": "Configuration for the observation forms panel"
|
|
225
|
-
},
|
|
226
|
-
"vaccinations": {
|
|
227
|
-
"$ref": "#/definitions/inputControl",
|
|
228
|
-
"description": "Configuration for the vaccinations form"
|
|
229
|
-
},
|
|
230
|
-
"conditionsAndDiagnoses": {
|
|
231
|
-
"$ref": "#/definitions/inputControl",
|
|
232
|
-
"description": "Configuration for the conditions and diagnoses form"
|
|
233
|
-
},
|
|
234
|
-
"immunizationHistory": {
|
|
235
|
-
"$ref": "#/definitions/inputControl",
|
|
236
|
-
"description": "Configuration for the immunization history form"
|
|
195
|
+
"inputControls": {
|
|
196
|
+
"type": "array",
|
|
197
|
+
"description": "Ordered list of input controls to display in the consultation pad",
|
|
198
|
+
"items": {
|
|
199
|
+
"$ref": "#/definitions/inputControl"
|
|
200
|
+
}
|
|
237
201
|
}
|
|
238
202
|
}
|
|
239
203
|
}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InputControlRenderer.d.ts","sourceRoot":"","sources":["../../../../src/components/consultationPad/components/InputControlRenderer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAEvD,UAAU,yBAAyB;IACjC,KAAK,EAAE,qBAAqB,CAAC;IAC7B,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,QAAA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAmB7D,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ObservationFormsPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/consultationPad/components/ObservationFormsPanel.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,QAAA,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAuClC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ConsultationPad } from '../../providers/clinicalConfig/models';
|
|
2
|
-
import { EncounterInputControl } from './models';
|
|
3
|
-
export declare function loadEncounterInputControls(config: ConsultationPad | undefined): EncounterInputControl[];
|
|
4
|
-
//# sourceMappingURL=inputControlRegistry.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inputControlRegistry.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPad/inputControlRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAgC7E,OAAO,KAAK,EAAoB,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAkJxE,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,eAAe,GAAG,SAAS,GAClC,qBAAqB,EAAE,CAsBzB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPad/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEtD,MAAM,MAAM,eAAe,GACvB,kBAAkB,GAClB,WAAW,GACX,gBAAgB,GAChB,wBAAwB,GACxB,aAAa,GACb,cAAc,GACd,qBAAqB,GACrB,kBAAkB,CAAC;AAEvB,MAAM,WAAW,gBAAgB;IAC/B,gBAAgB,EAAE,SAAS,CAAC;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,IAAI,CAAC;IACvB,0BAA0B,CAAC,EAAE,MAAM,CAAC;CACrC;AAED,MAAM,WAAW,qBAAqB;IACpC,GAAG,EAAE,eAAe,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC;IAC/B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,QAAQ,EAAE,MAAM,OAAO,CAAC;IACxB,OAAO,EAAE,MAAM,OAAO,CAAC;IACvB,SAAS,EAAE,CAAC,EAAE,EAAE,MAAM,IAAI,KAAK,MAAM,IAAI,CAAC;IAC1C,mBAAmB,CAAC,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,WAAW,EAAE,CAAC;CAChE"}
|
|
File without changes
|