@kenyaemr/esm-ward-app 8.5.4-pre.1 → 8.5.4-pre.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/.turbo/turbo-build.log +2 -2
- package/README.md +31 -0
- package/dist/2089.js +1 -0
- package/dist/2089.js.map +1 -0
- package/dist/2512.js +1 -0
- package/dist/2512.js.map +1 -0
- package/dist/400.js +1 -0
- package/dist/400.js.map +1 -0
- package/dist/5090.js +1 -1
- package/dist/5090.js.map +1 -1
- package/dist/5463.js +1 -0
- package/dist/5463.js.map +1 -0
- package/dist/5930.js +1 -0
- package/dist/5930.js.map +1 -0
- package/dist/6456.js +1 -1
- package/dist/7607.js +1 -1
- package/dist/775.js +1 -1
- package/dist/775.js.map +1 -1
- package/dist/7783.js +1 -0
- package/dist/7783.js.map +1 -0
- package/dist/7844.js +1 -0
- package/dist/7844.js.map +1 -0
- package/dist/7965.js +1 -0
- package/dist/7965.js.map +1 -0
- package/dist/8660.js +1 -0
- package/dist/8660.js.map +1 -0
- package/dist/kenyaemr-esm-ward-app.js.buildmanifest.json +212 -89
- package/dist/main.js +2 -2
- package/dist/main.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/config-schema.ts +21 -1
- package/src/in-patient/labourCareGuide/alert-rules.ts +97 -4
- package/src/in-patient/labourCareGuide/components/lcg-correction-audit-banner.component.tsx +42 -0
- package/src/in-patient/labourCareGuide/components/summary-of-labour-section.component.tsx +408 -0
- package/src/in-patient/labourCareGuide/constants/admission-form.constants.ts +22 -0
- package/src/in-patient/labourCareGuide/constants/summary-of-labour.constants.ts +102 -0
- package/src/in-patient/labourCareGuide/context/lcg-section-state.context.tsx +252 -0
- package/src/in-patient/labourCareGuide/forms/admission-details-form.component.tsx +28 -14
- package/src/in-patient/labourCareGuide/forms/baby-form.component.tsx +55 -179
- package/src/in-patient/labourCareGuide/forms/index.ts +1 -0
- package/src/in-patient/labourCareGuide/forms/labour-care-guide-forms.component.tsx +108 -31
- package/src/in-patient/labourCareGuide/forms/labour-progress-form.component.tsx +163 -216
- package/src/in-patient/labourCareGuide/forms/lcg-session-correction-wizard.component.tsx +261 -0
- package/src/in-patient/labourCareGuide/forms/medication-form.component.tsx +598 -220
- package/src/in-patient/labourCareGuide/forms/shared-decision-assessment-field.component.tsx +109 -0
- package/src/in-patient/labourCareGuide/forms/shared-decision-making-form.component.tsx +354 -353
- package/src/in-patient/labourCareGuide/forms/summary-of-labour-form.component.tsx +887 -0
- package/src/in-patient/labourCareGuide/forms/supportive-care-form.component.tsx +33 -90
- package/src/in-patient/labourCareGuide/forms/time-form.component.tsx +12 -4
- package/src/in-patient/labourCareGuide/forms/time-picker-dropdown.component.tsx +162 -62
- package/src/in-patient/labourCareGuide/forms/woman-form.component.tsx +51 -79
- package/src/in-patient/labourCareGuide/global-cds-alerts/global-cds-alert-context.tsx +2 -2
- package/src/in-patient/labourCareGuide/graphs/labour-progress.component.tsx +188 -86
- package/src/in-patient/labourCareGuide/graphs/medication.component.tsx +15 -23
- package/src/in-patient/labourCareGuide/graphs/shared-decision-making.component.tsx +157 -44
- package/src/in-patient/labourCareGuide/graphs/supportive-care.component.tsx +4 -1
- package/src/in-patient/labourCareGuide/graphs/woman.component.tsx +3 -39
- package/src/in-patient/labourCareGuide/hooks/use-lcg-data.ts +497 -229
- package/src/in-patient/labourCareGuide/hooks/use-lcg-debounced-value.ts +17 -0
- package/src/in-patient/labourCareGuide/hooks/use-lcg-form-clock.ts +36 -0
- package/src/in-patient/labourCareGuide/hooks/use-lcg-section-autosave.ts +33 -0
- package/src/in-patient/labourCareGuide/labour-care-guide.component.tsx +664 -57
- package/src/in-patient/labourCareGuide/labour-care-guide.scss +256 -0
- package/src/in-patient/labourCareGuide/labour-care-guide.utils.ts +146 -7
- package/src/in-patient/labourCareGuide/lcg-alert-lifecycle.ts +161 -0
- package/src/in-patient/labourCareGuide/partography-data-form.scss +204 -3
- package/src/in-patient/labourCareGuide/partography.resource.ts +15 -27
- package/src/in-patient/labourCareGuide/resources/admission-details.resource.ts +26 -25
- package/src/in-patient/labourCareGuide/resources/drug-stock.resource.ts +98 -0
- package/src/in-patient/labourCareGuide/resources/labour-progress.resource.ts +37 -2
- package/src/in-patient/labourCareGuide/resources/lcg-session-correction.resource.ts +1027 -0
- package/src/in-patient/labourCareGuide/resources/medication.resource.ts +241 -37
- package/src/in-patient/labourCareGuide/resources/shared-decision-making.resource.ts +37 -3
- package/src/in-patient/labourCareGuide/resources/summary-of-labour.resource.ts +472 -0
- package/src/in-patient/labourCareGuide/resources/supportive-care.resource.ts +56 -5
- package/src/in-patient/labourCareGuide/storage/lcg-local-storage.ts +374 -0
- package/src/in-patient/labourCareGuide/summary-of-labour-prefill.utils.ts +436 -0
- package/src/in-patient/labourCareGuide/time-slot-utils.ts +211 -28
- package/src/in-patient/labourCareGuide/types/concept-uuids.constants.ts +21 -0
- package/src/in-patient/labourCareGuide/types/index.ts +31 -7
- package/src/index.ts +17 -0
- package/src/routes.json +20 -0
- package/src/ward-patients/ward-patients-slots.ts +21 -0
- package/src/ward-patients/ward-patients-table.test.tsx +58 -0
- package/src/ward-patients/ward-patients-table.tsx +25 -8
- package/translations/en.json +121 -15
- package/translations/fr.json +123 -15
- package/dist/4032.js +0 -1
- package/dist/4032.js.map +0 -1
- package/dist/6381.js +0 -1
- package/dist/6381.js.map +0 -1
- package/dist/762.js +0 -1
- package/dist/762.js.map +0 -1
- package/dist/9465.js +0 -1
- package/dist/9465.js.map +0 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
[1m[33mWARNING[39m[22m in [33mâš [0m asset size limit: The following asset(s) exceed the recommended size limit (244.141 KiB). This can impact web performance.
|
|
2
2
|
[33m│[0m Assets:
|
|
3
3
|
[33m│[0m 9535.js (1.920 MiB)
|
|
4
|
-
[33m│[0m
|
|
4
|
+
[33m│[0m 2089.js (755.103 KiB)
|
|
5
5
|
[33m│[0m 2823.js (479.797 KiB)
|
|
6
6
|
[0m
|
|
7
7
|
|
|
8
|
-
Rspack compiled with [1m[33m1 warning[39m[22m in
|
|
8
|
+
Rspack compiled with [1m[33m1 warning[39m[22m in 36.26 s
|
package/README.md
CHANGED
|
@@ -22,6 +22,37 @@ Please see the [EMR API README](https://github.com/openmrs/openmrs-module-emrapi
|
|
|
22
22
|
|
|
23
23
|
See the [config-schema](./src/config-schema.ts) for details on the configuration options available to the ward app.
|
|
24
24
|
|
|
25
|
+
## Ward Patient Table Tab Extension Slots
|
|
26
|
+
|
|
27
|
+
The default ward table view renders four fixed tabs (Awaiting Admission, Admitted, Discharge In, Discharged). Each tab panel is backed by an extension slot so implementers can replace the default table UI without forking the ward app.
|
|
28
|
+
|
|
29
|
+
| Tab | Slot name | Default extension name |
|
|
30
|
+
|-----|-----------|------------------------|
|
|
31
|
+
| Awaiting Admission | `ward-patients-awaiting-admission-slot` | `ward-patients-awaiting-admission` |
|
|
32
|
+
| Admitted | `ward-patients-admitted-slot` | `ward-patients-admitted` |
|
|
33
|
+
| Discharge In | `ward-patients-discharge-in-slot` | `ward-patients-discharge-in` |
|
|
34
|
+
| Discharged | `ward-patients-discharged-slot` | `ward-patients-discharged` |
|
|
35
|
+
|
|
36
|
+
### Custom component requirements
|
|
37
|
+
|
|
38
|
+
- Render under `DefaultWardView` so `useAppContext('ward-view-context')` provides ward patient data.
|
|
39
|
+
- Reuse types from [`src/types/index.ts`](./src/types/index.ts): `WardViewContext`, `WardPatient`, etc.
|
|
40
|
+
- Optional shared UI helpers: `HyperLinkPatientCell`, `EmptyState`, `ErrorState`, `getOpenmrsId`.
|
|
41
|
+
|
|
42
|
+
### Replacing a default table
|
|
43
|
+
|
|
44
|
+
In your module's `routes.json`, register the replacement extension:
|
|
45
|
+
|
|
46
|
+
```json
|
|
47
|
+
{
|
|
48
|
+
"name": "my-custom-awaiting-admission",
|
|
49
|
+
"component": "myAwaitingAdmissionTable",
|
|
50
|
+
"slot": "ward-patients-awaiting-admission-slot"
|
|
51
|
+
}
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
The default table components are exported from this module (`wardPatientsAwaitingAdmissionTable`, `wardPatientsAdmittedTable`, `wardPatientsDischargeInTable`, `wardPatientsDischargedTable`) if you need to wrap or extend them.
|
|
55
|
+
|
|
25
56
|
## Bed Management
|
|
26
57
|
|
|
27
58
|
The ward app is designed to support patient bed assignments and to be used in conjunction with the bedmanagement module and the bed-management-app ESM. However, bed management is entirely optional. Patients will appear on a ward if they:
|