@kenyaemr/esm-express-workflow-app 5.4.4-pre.43 → 5.4.4-pre.430
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 +14 -7
- package/dist/1084.js +1 -0
- package/dist/1084.js.map +1 -0
- package/dist/1278.js +1 -0
- package/dist/1278.js.map +1 -0
- package/dist/1324.js +1 -0
- package/dist/1324.js.map +1 -0
- package/dist/1375.js +66 -0
- package/dist/1375.js.map +1 -0
- package/dist/1402.js +1 -0
- package/dist/1402.js.map +1 -0
- package/dist/1442.js +1 -0
- package/dist/1442.js.map +1 -0
- package/dist/1520.js +1 -0
- package/dist/1520.js.map +1 -0
- package/dist/1559.js +1 -0
- package/dist/1559.js.map +1 -0
- package/dist/1593.js +1 -0
- package/dist/1593.js.map +1 -0
- package/dist/162.js +1 -0
- package/dist/162.js.map +1 -0
- package/dist/1620.js +1 -0
- package/dist/1620.js.map +1 -0
- package/dist/1658.js +1 -0
- package/dist/1658.js.map +1 -0
- package/dist/1659.js +1 -0
- package/dist/1659.js.map +1 -0
- package/dist/1789.js +1 -0
- package/dist/1789.js.map +1 -0
- package/dist/1827.js +1 -0
- package/dist/1827.js.map +1 -0
- package/dist/1831.js +1 -0
- package/dist/1831.js.map +1 -0
- package/dist/1854.js +1 -0
- package/dist/1854.js.map +1 -0
- package/dist/196.js +1 -0
- package/dist/196.js.map +1 -0
- package/dist/2127.js +1 -0
- package/dist/2127.js.map +1 -0
- package/dist/2152.js +1 -0
- package/dist/2152.js.map +1 -0
- package/dist/2202.js +1 -0
- package/dist/2202.js.map +1 -0
- package/dist/221.js +1 -0
- package/dist/221.js.map +1 -0
- package/dist/2269.js +1 -0
- package/dist/2269.js.map +1 -0
- package/dist/2293.js +1 -0
- package/dist/2293.js.map +1 -0
- package/dist/234.js +1 -0
- package/dist/234.js.map +1 -0
- package/dist/2412.js +1 -1
- package/dist/2412.js.map +1 -1
- package/dist/2466.js +1 -0
- package/dist/2466.js.map +1 -0
- package/dist/2534.js +1 -1
- package/dist/2534.js.map +1 -1
- package/dist/2553.js +1 -0
- package/dist/2553.js.map +1 -0
- package/dist/2556.js +1 -0
- package/dist/2556.js.map +1 -0
- package/dist/2648.js +1 -0
- package/dist/2648.js.map +1 -0
- package/dist/274.js +1 -0
- package/dist/274.js.map +1 -0
- package/dist/2788.js +1 -0
- package/dist/2788.js.map +1 -0
- package/dist/2842.js +1 -0
- package/dist/2842.js.map +1 -0
- package/dist/2874.js +1 -0
- package/dist/2874.js.map +1 -0
- package/dist/2916.js +1 -0
- package/dist/2916.js.map +1 -0
- package/dist/2947.js +1 -1
- package/dist/2947.js.map +1 -1
- package/dist/3012.js +1 -0
- package/dist/3012.js.map +1 -0
- package/dist/3087.js +1 -0
- package/dist/3087.js.map +1 -0
- package/dist/3335.js +1 -0
- package/dist/3335.js.map +1 -0
- package/dist/3378.js +1 -0
- package/dist/3378.js.map +1 -0
- package/dist/3504.js +1 -0
- package/dist/3504.js.map +1 -0
- package/dist/3509.js +1 -1
- package/dist/3509.js.map +1 -1
- package/dist/356.js +1 -0
- package/dist/356.js.map +1 -0
- package/dist/3690.js +1 -0
- package/dist/3690.js.map +1 -0
- package/dist/371.js +1 -0
- package/dist/371.js.map +1 -0
- package/dist/3747.js +1 -0
- package/dist/3747.js.map +1 -0
- package/dist/3819.js +1 -0
- package/dist/3819.js.map +1 -0
- package/dist/3820.js +1 -0
- package/dist/3820.js.map +1 -0
- package/dist/3910.js +1 -0
- package/dist/3910.js.map +1 -0
- package/dist/393.js +6 -0
- package/dist/393.js.map +1 -0
- package/dist/3933.js +1 -0
- package/dist/3933.js.map +1 -0
- package/dist/3989.js +1 -0
- package/dist/3989.js.map +1 -0
- package/dist/3995.js +1 -0
- package/dist/3995.js.map +1 -0
- package/dist/4032.js +1 -0
- package/dist/4032.js.map +1 -0
- package/dist/4145.js +1 -1
- package/dist/4145.js.map +1 -1
- package/dist/4178.js +1 -1
- package/dist/4178.js.map +1 -1
- package/dist/4191.js +1 -0
- package/dist/4191.js.map +1 -0
- package/dist/4212.js +1 -0
- package/dist/4212.js.map +1 -0
- package/dist/4215.js +1 -0
- package/dist/4215.js.map +1 -0
- package/dist/4523.js +1 -0
- package/dist/4523.js.map +1 -0
- package/dist/4588.js +1 -0
- package/dist/4588.js.map +1 -0
- package/dist/4617.js +1 -0
- package/dist/4617.js.map +1 -0
- package/dist/466.js +1 -1
- package/dist/466.js.map +1 -1
- package/dist/4688.js +1 -0
- package/dist/{7288.js.map → 4688.js.map} +1 -1
- package/dist/470.js +1 -0
- package/dist/470.js.map +1 -0
- package/dist/4759.js +1 -0
- package/dist/4759.js.map +1 -0
- package/dist/4818.js +1 -1
- package/dist/4818.js.map +1 -1
- package/dist/5086.js +1 -1
- package/dist/5086.js.map +1 -1
- package/dist/5093.js +1 -0
- package/dist/5093.js.map +1 -0
- package/dist/5097.js +1 -0
- package/dist/5097.js.map +1 -0
- package/dist/510.js +1 -0
- package/dist/510.js.map +1 -0
- package/dist/5117.js +1 -0
- package/dist/5117.js.map +1 -0
- package/dist/5279.js +1 -0
- package/dist/5279.js.map +1 -0
- package/dist/5434.js +1 -0
- package/dist/5434.js.map +1 -0
- package/dist/5514.js +1 -0
- package/dist/5514.js.map +1 -0
- package/dist/5568.js +1 -0
- package/dist/5568.js.map +1 -0
- package/dist/5576.js +1 -1
- package/dist/5576.js.map +1 -1
- package/dist/5630.js +1 -0
- package/dist/5630.js.map +1 -0
- package/dist/5676.js +1 -1
- package/dist/5676.js.map +1 -1
- package/dist/5695.js +1 -0
- package/dist/5695.js.map +1 -0
- package/dist/5697.js +1 -1
- package/dist/5697.js.map +1 -1
- package/dist/5728.js +1 -0
- package/dist/5728.js.map +1 -0
- package/dist/5809.js +1 -1
- package/dist/5809.js.map +1 -1
- package/dist/585.js +1 -0
- package/dist/585.js.map +1 -0
- package/dist/5887.js +1 -0
- package/dist/5887.js.map +1 -0
- package/dist/5958.js +1 -0
- package/dist/5958.js.map +1 -0
- package/dist/5964.js +1 -0
- package/dist/5964.js.map +1 -0
- package/dist/6008.js +1 -0
- package/dist/602.js +1 -0
- package/dist/602.js.map +1 -0
- package/dist/6020.js +1 -0
- package/dist/6020.js.map +1 -0
- package/dist/6161.js +1 -0
- package/dist/6161.js.map +1 -0
- package/dist/6273.js +1 -0
- package/dist/6273.js.map +1 -0
- package/dist/6337.js +1 -0
- package/dist/6337.js.map +1 -0
- package/dist/6427.js +1 -1
- package/dist/6427.js.map +1 -1
- package/dist/6429.js +1 -0
- package/dist/6429.js.map +1 -0
- package/dist/6478.js +7 -0
- package/dist/6478.js.map +1 -0
- package/dist/6508.js +1 -0
- package/dist/6508.js.map +1 -0
- package/dist/6634.js +1 -0
- package/dist/6634.js.map +1 -0
- package/dist/6767.js +1 -0
- package/dist/6767.js.map +1 -0
- package/dist/6783.js +1 -0
- package/dist/6783.js.map +1 -0
- package/dist/6868.js +1 -1
- package/dist/6868.js.map +1 -1
- package/dist/688.js +1 -0
- package/dist/688.js.map +1 -0
- package/dist/689.js +1 -1
- package/dist/689.js.map +1 -1
- package/dist/694.js +1 -0
- package/dist/694.js.map +1 -0
- package/dist/6987.js +1 -0
- package/dist/6987.js.map +1 -0
- package/dist/7061.js +1 -0
- package/dist/7061.js.map +1 -0
- package/dist/7078.js +1 -0
- package/dist/7078.js.map +1 -0
- package/dist/710.js +1 -0
- package/dist/710.js.map +1 -0
- package/dist/7128.js +1 -0
- package/dist/7128.js.map +1 -0
- package/dist/7209.js +1 -0
- package/dist/7209.js.map +1 -0
- package/dist/7424.js +1 -0
- package/dist/7424.js.map +1 -0
- package/dist/770.js +1 -0
- package/dist/770.js.map +1 -0
- package/dist/7707.js +1 -0
- package/dist/7707.js.map +1 -0
- package/dist/7784.js +1 -0
- package/dist/7784.js.map +1 -0
- package/dist/781.js +1 -1
- package/dist/781.js.map +1 -1
- package/dist/7824.js +1 -0
- package/dist/7824.js.map +1 -0
- package/dist/7832.js +1 -0
- package/dist/7832.js.map +1 -0
- package/dist/8178.js +1 -0
- package/dist/8178.js.map +1 -0
- package/dist/820.js +1 -0
- package/dist/820.js.map +1 -0
- package/dist/8224.js +1 -0
- package/dist/8224.js.map +1 -0
- package/dist/8225.js +1 -0
- package/dist/8225.js.map +1 -0
- package/dist/8240.js +1 -1
- package/dist/8240.js.map +1 -1
- package/dist/8258.js +1 -0
- package/dist/8258.js.map +1 -0
- package/dist/8702.js +1 -0
- package/dist/8702.js.map +1 -0
- package/dist/8725.js +1 -0
- package/dist/8725.js.map +1 -0
- package/dist/8762.js +1 -0
- package/dist/8762.js.map +1 -0
- package/dist/8763.js +1 -0
- package/dist/8763.js.map +1 -0
- package/dist/8815.js +1 -0
- package/dist/8815.js.map +1 -0
- package/dist/8882.js +1 -0
- package/dist/8882.js.map +1 -0
- package/dist/8924.js +1 -1
- package/dist/8924.js.map +1 -1
- package/dist/8937.js +1 -0
- package/dist/8937.js.map +1 -0
- package/dist/9.js +1 -1
- package/dist/9.js.map +1 -1
- package/dist/9061.js +1 -0
- package/dist/9061.js.map +1 -0
- package/dist/9087.js +1 -0
- package/dist/9087.js.map +1 -0
- package/dist/9301.js +1 -0
- package/dist/9301.js.map +1 -0
- package/dist/9324.js +1 -0
- package/dist/9324.js.map +1 -0
- package/dist/9497.js +1 -0
- package/dist/9497.js.map +1 -0
- package/dist/9520.js +1 -1
- package/dist/9520.js.map +1 -1
- package/dist/9526.js +1 -0
- package/dist/9526.js.map +1 -0
- package/dist/9621.js +1 -0
- package/dist/9621.js.map +1 -0
- package/dist/9676.js +17 -0
- package/dist/9676.js.map +1 -0
- package/dist/977.js +1 -0
- package/dist/977.js.map +1 -0
- package/dist/9771.js +1 -0
- package/dist/9771.js.map +1 -0
- package/dist/9806.js +1 -0
- package/dist/9806.js.map +1 -0
- package/dist/989.js +1 -0
- package/dist/989.js.map +1 -0
- package/dist/kenyaemr-esm-express-workflow-app.js +6 -5
- package/dist/kenyaemr-esm-express-workflow-app.js.buildmanifest.json +1407 -809
- package/dist/kenyaemr-esm-express-workflow-app.js.map +1 -1
- package/dist/main.js +22 -5
- package/dist/main.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +4 -6
- package/src/components/admissions/admissions-dashboard.component.tsx +2 -2
- package/src/components/anaesthetic/anaesthetic-dashboard.meta.ts +8 -0
- package/src/components/anaesthetic/anaesthetic-data-form.component.tsx +442 -0
- package/src/components/anaesthetic/anaesthetic-data-form.scss +278 -0
- package/src/components/anaesthetic/anaesthetic-link.component.tsx +21 -0
- package/src/components/anaesthetic/anaesthetic.component.tsx +618 -0
- package/src/components/anaesthetic/anaesthetic.resource.ts +1503 -0
- package/src/components/anaesthetic/anaesthetic.scss +1885 -0
- package/src/components/anaesthetic/forms/anaesthetic-form.component.tsx +304 -0
- package/src/components/anaesthetic/forms/anaesthetic-record-form.component.tsx +707 -0
- package/src/components/anaesthetic/forms/icd11-diagnosis-search.component.tsx +178 -0
- package/src/components/anaesthetic/forms/icd11-diagnosis-search.scss +126 -0
- package/src/components/anaesthetic/forms/index.ts +2 -0
- package/src/components/anaesthetic/forms/interoperative-record-drug-given-form.component.tsx +231 -0
- package/src/components/anaesthetic/forms/post-operative-summary-form.component.tsx +171 -0
- package/src/components/anaesthetic/forms/time-picker-dropdown.component.tsx +202 -0
- package/src/components/anaesthetic/forms/time-picker-dropdown.scss +107 -0
- package/src/components/anaesthetic/forms/time-picker-with-clock.component.tsx +174 -0
- package/src/components/anaesthetic/forms/time-picker-with-clock.scss +178 -0
- package/src/components/anaesthetic/forms/useAnaestheticData.ts +16 -0
- package/src/components/anaesthetic/graphs/anaesthetic-graph-wrapper.component.tsx +266 -0
- package/src/components/anaesthetic/graphs/anaesthetic-graph.component.tsx +185 -0
- package/src/components/anaesthetic/graphs/index.ts +2 -0
- package/src/components/anaesthetic/graphs/interoperative-record-drug-given-graph-wrapper.component.tsx +197 -0
- package/src/components/anaesthetic/graphs/interoperative-record-drug-given-graph.component.tsx +93 -0
- package/src/components/anaesthetic/resources/anaesthetic-amniotic-fluid.resource.ts +277 -0
- package/src/components/anaesthetic/resources/anaesthetic-form.resource.ts +716 -0
- package/src/components/anaesthetic/resources/anaesthetic.resource.ts +378 -0
- package/src/components/anaesthetic/types/index.ts +1349 -0
- package/src/components/consultation/clinical-encounter/clinical-encounter.component.tsx +4 -20
- package/src/components/consultation/clinical-encounter/encounter-details.component.tsx +9 -9
- package/src/components/consultation/clinical-encounter/encounter-details.test.tsx +19 -18
- package/src/components/consultation/consultation.utils.tsx +1 -1
- package/src/components/consultation/dashboard.component.tsx +0 -2
- package/src/components/consultation/index.ts +1 -1
- package/src/components/consultation/tabs/index.ts +67 -0
- package/src/components/facility-dashboard/components/header/home-header.component.tsx +8 -13
- package/src/components/laboratory/index.ts +11 -0
- package/src/components/laboratory/lab-table.component.tsx +46 -12
- package/src/components/laboratory/laboratory-tabs.component.tsx +3 -17
- package/src/components/mch/dashboard.component.tsx +0 -2
- package/src/components/mch/mch.component.tsx +1 -3
- package/src/components/pharmacy/index.ts +1 -1
- package/src/components/pharmacy/orders/pharmacy-orders.component.tsx +44 -6
- package/src/components/pharmacy/orders/pharmacy-orders.test.tsx +8 -7
- package/src/components/pharmacy/pharmacy-tabs.component.tsx +4 -20
- package/src/components/pharmacy/tabs/index.ts +21 -0
- package/src/components/preauth/index.ts +22 -0
- package/src/components/preauth/preauth-dashboard.component.tsx +20 -0
- package/src/components/procedures/index.ts +16 -0
- package/src/components/procedures/procedure-queues/index.ts +13 -0
- package/src/components/procedures/procedure-queues/procedure-form-extras.component.tsx +33 -0
- package/src/components/procedures/procedure-queues/procedure-form-extras.scss +5 -0
- package/src/components/procedures/procedure-queues/procedure-queues.component.tsx +35 -0
- package/src/components/procedures/procedure-queues/procedure-queues.resources.ts +37 -0
- package/src/components/procedures/procedure-queues/procedure-room-tabs.component.tsx +80 -0
- package/src/components/procedures/procedure-queues/procedure-rooms.scss +13 -0
- package/src/components/procedures/procedure-queues/queue-procedure-tabs.component.tsx +34 -0
- package/src/components/procedures/procedure-queues/summary-cards.component.tsx +81 -0
- package/src/components/procedures/procedure-queues/summary-cards.scss +35 -0
- package/src/components/procedures/procedures-table.component.tsx +77 -19
- package/src/components/procedures/procedures-tabs.component.test.tsx +57 -0
- package/src/components/procedures/procedures-tabs.component.tsx +3 -18
- package/src/components/radiology-and-imaging/index.ts +11 -0
- package/src/components/radiology-and-imaging/radiology-and-imaging-table.component.tsx +73 -21
- package/src/components/radiology-and-imaging/radiology-and-imaging.component.tsx +3 -19
- package/src/components/registration/card/HIE-card/hie-card.component.tsx +32 -44
- package/src/components/registration/card/Local-card/local-card.component.tsx +22 -24
- package/src/components/registration/checkin-form-extra/checkin-form-extra.extension.tsx +8 -2
- package/src/components/registration/checkin-form-extra/queue-fields.component.tsx +18 -19
- package/src/components/registration/dependants/dependants.component.tsx +37 -60
- package/src/components/registration/dependants/dependants.resource.ts +75 -46
- package/src/components/registration/end-visit-modal/end-visit-dialog.modal.tsx +320 -0
- package/src/components/registration/end-visit-modal/end-visit-dialog.scss +12 -0
- package/src/components/registration/end-visit-modal/end-visit.resource.tsx +59 -0
- package/src/components/registration/end-visit-modal/sha-end-visit.resource.ts +285 -0
- package/src/components/registration/search-bar/search-bar.resource.ts +32 -93
- package/src/components/registration/start-visit-form/hooks/useDefaultFacilityLocation.tsx +15 -0
- package/src/components/registration/start-visit-form/hooks/useDefaultVisitLocation.tsx +24 -0
- package/src/components/registration/start-visit-form/hooks/useOfflineVisitType.tsx +18 -0
- package/src/components/registration/start-visit-form/hooks/useRecommendedVisitTypes.tsx +36 -0
- package/src/components/registration/start-visit-form/hooks/useVisitAttributeType.tsx +102 -0
- package/src/components/registration/start-visit-form/overflow-menu-extension/custom-end-active-visit.extension.tsx +44 -0
- package/src/components/registration/start-visit-form/overflow-menu-extension/overflow-menu-item.extension.tsx +67 -0
- package/src/components/registration/start-visit-form/overflow-menu-extension/overflow-menu-item.scss +3 -0
- package/src/components/registration/start-visit-form/start-visit-workspace/base-visit-type.component.tsx +126 -0
- package/src/components/registration/start-visit-form/start-visit-workspace/base-visit-type.scss +75 -0
- package/src/components/registration/start-visit-form/start-visit-workspace/exported-visit-form.workspace.tsx +778 -0
- package/src/components/registration/start-visit-form/start-visit-workspace/location-selector.component.tsx +86 -0
- package/src/components/registration/start-visit-form/start-visit-workspace/recommended-visit-type.component.tsx +32 -0
- package/src/components/registration/start-visit-form/start-visit-workspace/visit-attribute-type.component.tsx +257 -0
- package/src/components/registration/start-visit-form/start-visit-workspace/visit-attribute-type.scss +5 -0
- package/src/components/registration/start-visit-form/start-visit-workspace/visit-date-time.component.tsx +193 -0
- package/src/components/registration/start-visit-form/start-visit-workspace/visit-form.resource.ts +390 -0
- package/src/components/registration/start-visit-form/start-visit-workspace/visit-form.scss +144 -0
- package/src/components/registration/start-visit-form/visit-form-workspace/visit-form.workspace.tsx +48 -0
- package/src/components/registration/type/index.ts +101 -0
- package/src/components/reports/index.ts +1 -0
- package/src/components/triage/dashboard.component.tsx +0 -2
- package/src/config-schema.ts +476 -0
- package/src/hooks/useOrders.tsx +2 -2
- package/src/hooks/useServiceQueues.tsx +1 -1
- package/src/index.ts +81 -15
- package/src/routes.json +298 -32
- package/src/shared/dashboard-link/dashboard-link.component.tsx +11 -8
- package/src/shared/orders/OrderTable.scss +7 -0
- package/src/shared/orders/OrderTable.tsx +68 -8
- package/src/shared/orders/print-order/print-order.component.tsx +158 -0
- package/src/shared/orders/print-order/print-order.scss +225 -0
- package/src/shared/orders/print-prescription/print-prescription.component.tsx +65 -0
- package/src/shared/orders/print-prescription/print-prescription.resource.ts +45 -0
- package/src/shared/orders/print-prescription/print-prescription.scss +25 -0
- package/src/shared/otp-verification/index.ts +112 -29
- package/src/shared/otp-verification/otp-verification.modal.tsx +1110 -122
- package/src/shared/otp-verification/otp-verification.scss +374 -0
- package/src/shared/patient-chart/patient-summary-dashboard/patient-summary-dashboard.component.tsx +5 -84
- package/src/shared/pin-put/pinput.component.test.tsx +7 -6
- package/src/shared/tabs/create-tab-extension.tsx +33 -0
- package/src/shared/tabs/extension-tabs.component.tsx +51 -33
- package/src/shared/utils/index.ts +140 -5
- package/src/types/index.ts +12 -0
- package/translations/am.json +443 -131
- package/translations/en.json +327 -15
- package/translations/fr.json +372 -63
- package/translations/sw.json +347 -35
- package/tsconfig.json +1 -0
- package/dist/1049.js +0 -1
- package/dist/1049.js.map +0 -1
- package/dist/1072.js +0 -1
- package/dist/1072.js.map +0 -1
- package/dist/1091.js +0 -1
- package/dist/1091.js.map +0 -1
- package/dist/1172.js +0 -1
- package/dist/1172.js.map +0 -1
- package/dist/132.js +0 -1
- package/dist/132.js.map +0 -1
- package/dist/1354.js +0 -1
- package/dist/1354.js.map +0 -1
- package/dist/1704.js +0 -1
- package/dist/1704.js.map +0 -1
- package/dist/1729.js +0 -17
- package/dist/1729.js.map +0 -1
- package/dist/1757.js +0 -1
- package/dist/1757.js.map +0 -1
- package/dist/1761.js +0 -1
- package/dist/1761.js.map +0 -1
- package/dist/1809.js +0 -7
- package/dist/1809.js.map +0 -1
- package/dist/1842.js +0 -1
- package/dist/1874.js +0 -1
- package/dist/1874.js.map +0 -1
- package/dist/1962.js +0 -1
- package/dist/1962.js.map +0 -1
- package/dist/2007.js +0 -1
- package/dist/2007.js.map +0 -1
- package/dist/2024.js +0 -1
- package/dist/2024.js.map +0 -1
- package/dist/2045.js +0 -1
- package/dist/2045.js.map +0 -1
- package/dist/2163.js +0 -1
- package/dist/2163.js.map +0 -1
- package/dist/2191.js +0 -1
- package/dist/2191.js.map +0 -1
- package/dist/2267.js +0 -1
- package/dist/2267.js.map +0 -1
- package/dist/231.js +0 -1
- package/dist/231.js.map +0 -1
- package/dist/236.js +0 -1
- package/dist/236.js.map +0 -1
- package/dist/2367.js +0 -1
- package/dist/2367.js.map +0 -1
- package/dist/2463.js +0 -1
- package/dist/2463.js.map +0 -1
- package/dist/2561.js +0 -1
- package/dist/2561.js.map +0 -1
- package/dist/2810.js +0 -2
- package/dist/2810.js.map +0 -1
- package/dist/2867.js +0 -1
- package/dist/2867.js.map +0 -1
- package/dist/2909.js +0 -1
- package/dist/2909.js.map +0 -1
- package/dist/2949.js +0 -1
- package/dist/2949.js.map +0 -1
- package/dist/3040.js +0 -1
- package/dist/3119.js +0 -1
- package/dist/3119.js.map +0 -1
- package/dist/3215.js +0 -1
- package/dist/3215.js.map +0 -1
- package/dist/322.js +0 -1
- package/dist/322.js.map +0 -1
- package/dist/3228.js +0 -1
- package/dist/3228.js.map +0 -1
- package/dist/330.js +0 -1
- package/dist/330.js.map +0 -1
- package/dist/3472.js +0 -1
- package/dist/3472.js.map +0 -1
- package/dist/351.js +0 -1
- package/dist/351.js.map +0 -1
- package/dist/3576.js +0 -1
- package/dist/3576.js.map +0 -1
- package/dist/397.js +0 -1
- package/dist/397.js.map +0 -1
- package/dist/4007.js +0 -66
- package/dist/4007.js.map +0 -1
- package/dist/4200.js +0 -1
- package/dist/4200.js.map +0 -1
- package/dist/4224.js +0 -1
- package/dist/4224.js.map +0 -1
- package/dist/43.js +0 -1
- package/dist/43.js.map +0 -1
- package/dist/4308.js +0 -1
- package/dist/4308.js.map +0 -1
- package/dist/4399.js +0 -1
- package/dist/4399.js.map +0 -1
- package/dist/4505.js +0 -1
- package/dist/4505.js.map +0 -1
- package/dist/4724.js +0 -1
- package/dist/4724.js.map +0 -1
- package/dist/498.js +0 -1
- package/dist/498.js.map +0 -1
- package/dist/509.js +0 -1
- package/dist/509.js.map +0 -1
- package/dist/5096.js +0 -1
- package/dist/5096.js.map +0 -1
- package/dist/5159.js +0 -13
- package/dist/5159.js.map +0 -1
- package/dist/5184.js +0 -1
- package/dist/5184.js.map +0 -1
- package/dist/5270.js +0 -1
- package/dist/5270.js.map +0 -1
- package/dist/5361.js +0 -1
- package/dist/5361.js.map +0 -1
- package/dist/5537.js +0 -1
- package/dist/5537.js.map +0 -1
- package/dist/566.js +0 -1
- package/dist/566.js.map +0 -1
- package/dist/5733.js +0 -1
- package/dist/5733.js.map +0 -1
- package/dist/5854.js +0 -1
- package/dist/5854.js.map +0 -1
- package/dist/5882.js +0 -1
- package/dist/6004.js +0 -1
- package/dist/6004.js.map +0 -1
- package/dist/6121.js +0 -3
- package/dist/6121.js.map +0 -1
- package/dist/6137.js +0 -1
- package/dist/6137.js.map +0 -1
- package/dist/6356.js +0 -1
- package/dist/6356.js.map +0 -1
- package/dist/6571.js +0 -1
- package/dist/6571.js.map +0 -1
- package/dist/6721.js +0 -1
- package/dist/6721.js.map +0 -1
- package/dist/6858.js +0 -1
- package/dist/6858.js.map +0 -1
- package/dist/6925.js +0 -1
- package/dist/6925.js.map +0 -1
- package/dist/6960.js +0 -1
- package/dist/6960.js.map +0 -1
- package/dist/7085.js +0 -1
- package/dist/7085.js.map +0 -1
- package/dist/7127.js +0 -1
- package/dist/7176.js +0 -1
- package/dist/7176.js.map +0 -1
- package/dist/7237.js +0 -1
- package/dist/7237.js.map +0 -1
- package/dist/725.js +0 -1
- package/dist/725.js.map +0 -1
- package/dist/7288.js +0 -1
- package/dist/7329.js +0 -1
- package/dist/7329.js.map +0 -1
- package/dist/7334.js +0 -1
- package/dist/7334.js.map +0 -1
- package/dist/7461.js +0 -1
- package/dist/7461.js.map +0 -1
- package/dist/7517.js +0 -1
- package/dist/7517.js.map +0 -1
- package/dist/7837.js +0 -1
- package/dist/7837.js.map +0 -1
- package/dist/8103.js +0 -1
- package/dist/8103.js.map +0 -1
- package/dist/8110.js +0 -1
- package/dist/8110.js.map +0 -1
- package/dist/8179.js +0 -6
- package/dist/8179.js.map +0 -1
- package/dist/8189.js +0 -1
- package/dist/8189.js.map +0 -1
- package/dist/8209.js +0 -1
- package/dist/8209.js.map +0 -1
- package/dist/8249.js +0 -1
- package/dist/8249.js.map +0 -1
- package/dist/8285.js +0 -1
- package/dist/8285.js.map +0 -1
- package/dist/8470.js +0 -1
- package/dist/8470.js.map +0 -1
- package/dist/8502.js +0 -1
- package/dist/8502.js.map +0 -1
- package/dist/866.js +0 -1
- package/dist/866.js.map +0 -1
- package/dist/8889.js +0 -11
- package/dist/8889.js.map +0 -1
- package/dist/8990.js +0 -1
- package/dist/8990.js.map +0 -1
- package/dist/8994.js +0 -1
- package/dist/8994.js.map +0 -1
- package/dist/9049.js +0 -1
- package/dist/9049.js.map +0 -1
- package/dist/9054.js +0 -1
- package/dist/9054.js.map +0 -1
- package/dist/916.js +0 -1
- package/dist/9231.js +0 -1
- package/dist/9231.js.map +0 -1
- package/dist/9408.js +0 -1
- package/dist/9408.js.map +0 -1
- package/dist/9425.js +0 -1
- package/dist/9466.js +0 -1
- package/dist/9466.js.map +0 -1
- package/dist/9919.js +0 -1
- package/dist/9919.js.map +0 -1
- package/dist/9931.js +0 -1
- package/dist/9931.js.map +0 -1
- package/jest.config.js +0 -3
- package/src/shared/orders/OrdersTabs.tsx +0 -58
- package/src/shared/patient-chart/patient-chart.component.tsx +0 -61
- package/src/shared/patient-chart/patient-chart.resources.ts +0 -180
- package/src/shared/patient-chart/patient-chart.scss +0 -15
- package/src/shared/patient-chart/useInitialize.ts +0 -24
- /package/src/shared/{patient-chart/patient-summary-dashboard → tabs}/patient-summary-dashboard.scss +0 -0
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":">=2.24.0"},"pages":[{"component":"root","route":"express-workflow"},{"component":"queuesAdminHome","route":"queues-admin"},{"component":"appointmentsDashboard","route":"appointments"}],"extensions":[{"component":"appointmentsDashboardLink","name":"appointments-dashboard-link","slot":"appointments-left-panel-slot","meta":{"name":"appointments","slot":"appointments-dashboard-slot","title":"Appointments"}},{"component":"admissionsLeftPanelLink","name":"admissions-dashboard-link","slot":"express-workflow-left-panel-slot","order":9,"meta":{"name":"admissions","slot":"admissions-dashboard-slot","title":"Admissions"}},{"component":"admissionsDashboard","name":"admissions-dashboard","slot":"admissions-dashboard-slot"},{"component":"consultationLeftPanelLink","name":"consultation-dashboard-link","slot":"homepage-dashboard-slot","order":3,"meta":{"name":"consultation","slot":"consultation-dashboard-slot","title":"Consultation"}},{"component":"consultationDashboard","name":"consultation-dashboard","slot":"consultation-dashboard-slot"},{"component":"facilityLeftPanelLink","name":"facility-dashboard-link","slot":"homepage-dashboard-slot","order":0,"meta":{"name":"dashboard","slot":"facility-dashboard-slot","title":"Dashboard"}},{"component":"facilityDashboard","name":"facility-dashboard","slot":"facility-dashboard-slot"},{"component":"mchLeftPanelLink","name":"mch-dashboard-link","slot":"homepage-dashboard-slot","meta":{"name":"mch","slot":"mch-dashboard-slot","title":"MCH"}},{"component":"mchDashboard","name":"mch-dashboard","slot":"mch-dashboard-slot"},{"component":"registrationLeftPanelLink","name":"registration-dashboard-link","slot":"homepage-dashboard-slot","meta":{"name":"registration","slot":"registration-dashboard-slot","title":"Registration"}},{"component":"registrationDashboard","name":"registration-dashboard","slot":"registration-dashboard-slot"},{"component":"triageLeftPanelLink","name":"triage-dashboard-link","slot":"homepage-dashboard-slot","meta":{"name":"triage","slot":"triage-dashboard-slot","title":"Triage"}},{"component":"triageDashboard","name":"triage-dashboard","slot":"triage-dashboard-slot"},{"name":"custom-visit-form-queue-fields","component":"checkinFormExtraExtension","slot":"visit-form-bottom-slot","order":0},{"component":"reportsDashboardLink","name":"reports-homepage-dashboard-link","slot":"homepage-dashboard-slot","meta":{"name":"reports","slot":"reports-homepage-dashboard-slot","title":"Reports"}},{"component":"reportsDashboard","name":"reports-dashboard","slot":"reports-homepage-dashboard-slot"},{"name":"pharmacy-homepage-dashboard-link","component":"pharmacyLink","slot":"homepage-dashboard-slot","meta":{"name":"pharmacy","title":"Pharmacy","path":"pharmacy","slot":"pharmacy-homepage-dashboard-slot"}},{"name":"pharmacy-homepage-dashboard","component":"pharmacy","slot":"pharmacy-homepage-dashboard-slot","online":true,"offline":false},{"name":"ewf-pharmacy-orders-dashboard","component":"pharmacyOrders","slot":"ewf-orders-slot","online":true,"offline":false},{"name":"patient-summary-dashboard","component":"patientSummaryDashboard","slot":"patient-chart-summary-dashboard-slot"},{"name":"ewf-clinical-encounter-link","component":"clinicalEncounterLink","slot":"patient-chart-dashboard-slot","meta":{"name":"ewf-clinical-encounter","title":"Clinical Encounter","slot":"ewf-patient-chart-clinical-encounter-slot","path":"clinical-encounter","layoutMode":"anchored","hideDashboardTitle":true}},{"name":"ewf-clinical-encounter-dashboard","component":"clinicalEncounter","slot":"ewf-patient-chart-clinical-encounter-slot","online":true,"offline":false},{"name":"ewf-laboratory-dashboard-link","component":"laboratoryLeftPanelLink","slot":"patient-chart-dashboard-slot","meta":{"name":"ewf-laboratory","title":"Lab Orders","path":"laboratory","slot":"ewf-patient-chart-laboratory-dashboard-slot","layoutMode":"anchored","hideDashboardTitle":true}},{"name":"ewf-laboratory-dashboard","component":"laboratoryDashboard","slot":"ewf-patient-chart-laboratory-dashboard-slot","online":true,"offline":false},{"name":"ewf-radiology-and-imaging-dashboard-link","component":"radiologyAndImagingLeftPanelLink","slot":"patient-chart-dashboard-slot","meta":{"name":"ewf-radiology-and-imaging","title":"Radiology and Imaging","path":"radiology-and-imaging","slot":"ewf-patient-chart-radiology-and-imaging-dashboard-slot","layoutMode":"anchored","hideDashboardTitle":true}},{"name":"ewf-radiology-and-imaging-dashboard","component":"radiologyAndImagingDashboard","slot":"ewf-patient-chart-radiology-and-imaging-dashboard-slot","online":true,"offline":false},{"name":"ewf-procedures-dashboard-link","component":"proceduresLeftPanelLink","slot":"patient-chart-dashboard-slot","meta":{"name":"ewf-procedures","title":"Procedures","path":"procedures","slot":"ewf-patient-chart-procedures-dashboard-slot","layoutMode":"anchored","hideDashboardTitle":true}},{"name":"ewf-procedures-dashboard","component":"proceduresDashboard","slot":"ewf-patient-chart-procedures-dashboard-slot","online":true,"offline":false},{"name":"ewf-pharmacy-dashboard-link","component":"pharmacyPatientChartDashboardLink","slot":"patient-chart-dashboard-slot","meta":{"name":"ewf-pharmacy","title":"Prescription","path":"pharmacy","slot":"ewf-patient-chart-pharmacy-dashboard-slot","layoutMode":"anchored","hideDashboardTitle":true}},{"name":"ewf-pharmacy-dashboard","component":"pharmacyTabs","slot":"ewf-patient-chart-pharmacy-dashboard-slot","online":true,"offline":false},{"name":"ewf-admissions-dashboard-link","component":"admissionsDashboardLink","slot":"patient-chart-dashboard-slot","meta":{"name":"ewf-admissions","title":"In-patient","path":"admissions","slot":"ewf-patient-chart-admissions-dashboard-slot","layoutMode":"anchored","hideDashboardTitle":true}},{"name":"ewf-admissions-dashboard","component":"admissionsDashboard","slot":"ewf-patient-chart-admissions-dashboard-slot","online":true,"offline":false},{"name":"ewf-homepage-dashboard-link","component":"homepageDashboardLink","slot":"patient-chart-dashboard-slot","order":0},{"name":"ewf-encounter-details-dashboard","component":"encounterDetails","slot":"ewf-clinical-encounter-slot","online":true,"offline":false}],"workspaces":[{"name":"express-workflow-workspace","component":"expressWorkflowWorkspace","title":"Express Workflow Workspace","type":"workspace","canMaximize":true,"canHide":true}],"modals":[{"component":"otpVerificationModal","name":"otp-verification-modal"},{"component":"facilityDashboardAuthorizationModal","name":"facility-dashboard-authorization-form-modal"}],"workspaceGroups":[{"name":"express-workflow","members":["add-drug-order","order-basket","add-lab-order","express-workflow-workspace","start-visit-workspace-form"]}],"version":"5.4.4-pre.43"}
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":">=2.24.0"},"pages":[{"component":"root","route":"express-workflow"},{"component":"queuesAdminHome","route":"queues-admin"}],"extensions":[{"component":"appointmentsDashboardLink","name":"appointments-dashboard-link","slot":"appointments-left-panel-slot","meta":{"name":"appointments","slot":"appointments-dashboard-slot","title":"Appointments"}},{"name":"ewf-preauth-dashboard-link","component":"preauthDashboardLink","slot":"patient-chart-dashboard-slot","order":10,"meta":{"name":"ewf-preauth","title":"Preauthorization","path":"preauthorization","slot":"ewf-preauth-dashboard-slot","layoutMode":"anchored","hideDashboardTitle":true}},{"name":"ewf-preauth-dashboard","component":"preauthDashboard","slot":"ewf-patient-chart-preauth-dashboard-slot","online":true,"offline":false},{"component":"admissionsLeftPanelLink","name":"admissions-dashboard-link","slot":"express-workflow-left-panel-slot","order":9,"meta":{"name":"admissions","slot":"admissions-dashboard-slot","title":"Admissions"}},{"component":"admissionsDashboard","name":"admissions-dashboard","slot":"admissions-dashboard-slot"},{"component":"consultationLeftPanelLink","name":"consultation-dashboard-link","slot":"homepage-dashboard-slot","order":3,"meta":{"name":"consultation","slot":"consultation-dashboard-slot","title":"Consultation"}},{"component":"consultationDashboard","name":"consultation-dashboard","slot":"consultation-dashboard-slot"},{"component":"facilityLeftPanelLink","name":"facility-dashboard-link","slot":"homepage-dashboard-slot","order":0,"meta":{"name":"dashboard","slot":"facility-dashboard-slot","title":"Dashboard"}},{"component":"facilityDashboard","name":"facility-dashboard","slot":"facility-dashboard-slot"},{"component":"mchLeftPanelLink","name":"mch-dashboard-link","slot":"homepage-dashboard-slot","meta":{"name":"mch","slot":"mch-dashboard-slot","title":"MCH"}},{"component":"mchDashboard","name":"mch-dashboard","slot":"mch-dashboard-slot"},{"component":"registrationLeftPanelLink","name":"registration-dashboard-link","slot":"homepage-dashboard-slot","meta":{"name":"registration","slot":"registration-dashboard-slot","title":"Registration"}},{"component":"registrationDashboard","name":"registration-dashboard","slot":"registration-dashboard-slot"},{"component":"triageLeftPanelLink","name":"triage-dashboard-link","slot":"homepage-dashboard-slot","meta":{"name":"triage","slot":"triage-dashboard-slot","title":"Triage"}},{"component":"triageDashboard","name":"triage-dashboard","slot":"triage-dashboard-slot"},{"name":"custom-visit-form-queue-fields","component":"checkinFormExtraExtension","slot":"visit-form-bottom-slot","order":0},{"component":"reportsDashboardLink","name":"reports-homepage-dashboard-link","slot":"homepage-dashboard-slot","meta":{"name":"reports","slot":"reports-homepage-dashboard-slot","title":"Reports"}},{"component":"reportsDashboard","name":"reports-dashboard","slot":"reports-homepage-dashboard-slot"},{"name":"pharmacy-homepage-dashboard-link","component":"pharmacyLink","slot":"homepage-dashboard-slot","meta":{"name":"pharmacy","title":"Pharmacy","path":"pharmacy","slot":"pharmacy-homepage-dashboard-slot"}},{"name":"pharmacy-homepage-dashboard","component":"pharmacy","slot":"pharmacy-homepage-dashboard-slot","online":true,"offline":false},{"name":"ewf-pharmacy-orders-dashboard","component":"pharmacyOrders","slot":"ewf-orders-slot","online":true,"offline":false},{"name":"patient-summary-dashboard","component":"patientSummaryDashboard","slot":"patient-chart-summary-dashboard-slot"},{"name":"ewf-clinical-encounter-link","component":"clinicalEncounterLink","slot":"patient-chart-dashboard-slot","meta":{"name":"ewf-clinical-encounter","title":"Clinical Encounter","slot":"ewf-patient-chart-clinical-encounter-slot","path":"clinical-encounter","layoutMode":"anchored","hideDashboardTitle":true}},{"name":"ewf-clinical-encounter-dashboard","component":"clinicalEncounter","slot":"ewf-patient-chart-clinical-encounter-slot","online":true,"offline":false},{"name":"ewf-laboratory-dashboard-link","component":"laboratoryLeftPanelLink","slot":"patient-chart-dashboard-slot","meta":{"name":"ewf-laboratory","title":"Lab Orders","path":"laboratory","slot":"ewf-patient-chart-laboratory-dashboard-slot","layoutMode":"anchored","hideDashboardTitle":true}},{"name":"ewf-laboratory-dashboard","component":"laboratoryDashboard","slot":"ewf-patient-chart-laboratory-dashboard-slot","online":true,"offline":false},{"name":"ewf-radiology-and-imaging-dashboard-link","component":"radiologyAndImagingLeftPanelLink","slot":"patient-chart-dashboard-slot","meta":{"name":"ewf-radiology-and-imaging","title":"Radiology and Imaging","path":"radiology-and-imaging","slot":"ewf-patient-chart-radiology-and-imaging-dashboard-slot","layoutMode":"anchored","hideDashboardTitle":true}},{"name":"ewf-radiology-and-imaging-dashboard","component":"radiologyAndImagingDashboard","slot":"ewf-patient-chart-radiology-and-imaging-dashboard-slot","online":true,"offline":false},{"name":"ewf-procedures-dashboard-link","component":"proceduresLeftPanelLink","slot":"patient-chart-dashboard-slot","meta":{"name":"ewf-procedures","title":"Procedures","path":"procedures","slot":"ewf-patient-chart-procedures-dashboard-slot","layoutMode":"anchored","hideDashboardTitle":true}},{"name":"ewf-procedures-dashboard","component":"proceduresDashboard","slot":"ewf-patient-chart-procedures-dashboard-slot","online":true,"offline":false},{"name":"ewf-pharmacy-dashboard-link","component":"pharmacyPatientChartDashboardLink","slot":"patient-chart-dashboard-slot","meta":{"name":"ewf-pharmacy","title":"Prescription","path":"pharmacy","slot":"ewf-patient-chart-pharmacy-dashboard-slot","layoutMode":"anchored","hideDashboardTitle":true}},{"name":"ewf-pharmacy-dashboard","component":"pharmacyTabs","slot":"ewf-patient-chart-pharmacy-dashboard-slot","online":true,"offline":false},{"name":"ewf-admissions-dashboard-link","component":"admissionsDashboardLink","slot":"patient-chart-dashboard-slot","meta":{"name":"ewf-admissions","title":"In-patient","path":"admissions","slot":"ewf-patient-chart-admissions-dashboard-slot","layoutMode":"anchored","hideDashboardTitle":true}},{"name":"ewf-admissions-dashboard","component":"admissionsDashboard","slot":"ewf-patient-chart-admissions-dashboard-slot","online":true,"offline":false},{"name":"ewf-homepage-dashboard-link","component":"homepageDashboardLink","slot":"patient-chart-dashboard-slot","order":0},{"name":"ewf-encounter-details-dashboard","component":"encounterDetails","slot":"ewf-clinical-encounter-slot","online":true,"offline":false},{"name":"custom-start-visit-overflow-menu-item","slot":"patient-actions-slot","component":"customStartVisitOverflowMenuItem","online":true,"offline":true},{"name":"custom-stop-visit-overflow-menu-item","component":"customStopVisitOverflowMenuItem","online":true,"offline":true},{"name":"procedure-queues","component":"procedureQueues","online":true,"offline":false,"featureFlag":"procedureQueues","slot":"procedure-orders-dashboard-slot"},{"name":"procedure-form-extras","component":"procedureFormExtras","slot":"procedure-order-form-extras-slot","online":true,"offline":false,"featureFlag":"procedureQueues"},{"name":"ewf-patient-summary-tab","component":"patientSummary","slot":"ewf-patient-chart-patient-summary-tabs-extension-slot","meta":{"title":"patientSummaryTab","slot":"ewf-patient-summary-slot"}},{"name":"ewf-patient-vitals-tab","component":"patientVitals","slot":"ewf-patient-chart-patient-summary-tabs-extension-slot","meta":{"title":"vitalsAndAnthropometric","slot":"ewf-vitals-slot"}},{"name":"ewf-patient-care-panel-tab","component":"carePanel","slot":"ewf-patient-chart-patient-summary-tabs-extension-slot","meta":{"title":"carePanel","slot":"ewf-care-panel-slot"}},{"name":"ewf-patient-immunization-tab","component":"immunization","slot":"ewf-patient-chart-patient-summary-tabs-extension-slot","meta":{"title":"immunizations","slot":"ewf-immunizations-slot"}},{"name":"ewf-patient-relationships-tab","component":"relationships","slot":"ewf-patient-chart-patient-summary-tabs-extension-slot","meta":{"title":"relationships","slot":"ewf-relationships-slot"}},{"name":"ewf-patient-appointments-tab","component":"appointments","slot":"ewf-patient-chart-patient-summary-tabs-extension-slot","meta":{"title":"appointments","slot":"ewf-appointments-slot"}},{"name":"ewf-patient-attachments-tab","component":"attachments","slot":"ewf-patient-chart-patient-summary-tabs-extension-slot","meta":{"title":"attachments","slot":"ewf-attachments-slot"}},{"name":"ewf-patient-clinical-encounter-tab","component":"patientClinicalEncounter","slot":"clinical-encounter-tabs-slot","meta":{"title":"clinicalEncounterTab","slot":"ewf-clinical-encounter-slot"}},{"name":"ewf-patient-visits-tab","component":"patientVisits","slot":"clinical-encounter-tabs-slot","meta":{"title":"visits","slot":"ewf-visits-slot"}},{"name":"ewf-patient-special-clinics-tab","component":"specialClinics","slot":"clinical-encounter-tabs-slot","meta":{"title":"specialClinics","slot":"ewf-special-clinics-slot"}},{"name":"ewf-clinical-notes-tab","component":"clinicalNotes","meta":{"title":"clinicalNotes","slot":"ewf-clinical-notes-slot"}},{"name":"ewf-procedures-and-orders-tab","component":"proceduresAndOrders","meta":{"title":"proceduresAndOrders","slot":"ewf-procedures-and-orders-slot"}},{"name":"ewf-pharmacy-orders-tab","component":"pharmacyOrdersTab","slot":"pharmacy-tabs-slot","meta":{"title":"orders","slot":"ewf-orders-slot"}},{"name":"ewf-pharmacy-active-medication-tab","component":"pharmacyActiveMedicationsTab","slot":"pharmacy-tabs-slot","meta":{"title":"activeMedications","slot":"ewf-active-medications-slot"}},{"name":"ewf-pharmacy-past-medication-tab","component":"pharmacyPastMedicationsTab","slot":"pharmacy-tabs-slot","meta":{"title":"pastMedications","slot":"ewf-past-medications-slot"}},{"name":"ewf-patient-lab-orders-tab","component":"patientLaboratoryOrdersTab","slot":"patient-laboratory-tabs-slot","meta":{"title":"orders"}},{"name":"ewf-patient-lab-order-results-tab","component":"patientLaboratoryOrdersResults","slot":"patient-laboratory-tabs-slot","meta":{"title":"results","slot":"ewf-laboratory-results-slot","basePath":"laboratory"}},{"name":"ewf-patient-procedure-orders-tab","component":"patientProcedureOrdersTab","slot":"patient-procedure-tabs-slot","meta":{"title":"orders"}},{"name":"ewf-patient-procedure-order-results-tab","component":"patientProcedureOrdersResults","slot":"patient-procedure-tabs-slot","meta":{"title":"results","slot":"ewf-procedures-results-slot","basePath":"procedures"}},{"name":"ewf-patient-procedure-anaesthetic-tab","component":"patientProcedureAnaestheticTab","slot":"patient-procedure-tabs-slot","meta":{"title":"anaesthetic"}},{"name":"ewf-patient-imaging-orders-tab","component":"patientImagingOrdersTab","slot":"patient-imaging-tabs-slot","meta":{"title":"orders"}},{"name":"ewf-patient-imaging-order-results-tab","component":"patientImagingOrdersResults","slot":"patient-imaging-tabs-slot","meta":{"title":"results","slot":"ewf-radiology-and-imaging-results-slot","basePath":"radiology-and-imaging"}}],"workspaces2":[{"name":"custom-start-visit-workspace-form","component":"visitFormWorkspace","window":"ewf-start-visit"},{"name":"anaesthetic-record-workspace-form","component":"anaestheticFormWorkspace","window":"ewf-anaesthetic-record"},{"name":"interoperative-drug-given-workspace-form","component":"interoperativeDrugGivenFormWorkspace","window":"ewf-anaesthetic-record"}],"workspaceWindows2":[{"name":"ewf-start-visit","group":"ewf-patient-chart","width":"wider"},{"name":"ewf-anaesthetic-record","group":"ewf-patient-chart","width":"wider"}],"workspaceGroups2":[{"name":"ewf-patient-chart","scopePattern":"/patient/([^/]+)/chart"}],"modals":[{"component":"otpVerificationModal","name":"otp-verification-modal"},{"component":"facilityDashboardAuthorizationModal","name":"facility-dashboard-authorization-form-modal"},{"name":"print-order-preview-modal","component":"printOrderPreviewModal"},{"name":"custom-end-visit-dialog","component":"customEndVisitModal"},{"name":"print-prescription-modal","component":"printPrescriptionModal"}],"version":"5.4.4-pre.430"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kenyaemr/esm-express-workflow-app",
|
|
3
|
-
"version": "5.4.4-pre.
|
|
3
|
+
"version": "5.4.4-pre.430",
|
|
4
4
|
"description": "Express workflow app for OpenMRS 3",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"openmrs",
|
|
@@ -21,14 +21,12 @@
|
|
|
21
21
|
"scripts": {
|
|
22
22
|
"analyze": "rspack build --mode=production --analyze",
|
|
23
23
|
"build": "rspack --mode=production",
|
|
24
|
-
"coverage": "
|
|
24
|
+
"coverage": "echo \"Jest has been removed; no unit test runner is configured\" && exit 0",
|
|
25
25
|
"debug": "npm run serve",
|
|
26
|
-
"extract-translations": "i18next 'src/**/*.
|
|
26
|
+
"extract-translations": "i18next 'src/**/*.{ts,tsx}' --config ../../tools/i18next-parser.config.js",
|
|
27
27
|
"lint": "cross-env eslint src --ext ts,tsx",
|
|
28
28
|
"serve": "rspack serve --mode=development",
|
|
29
29
|
"start": "openmrs develop",
|
|
30
|
-
"test": "cross-env TZ=UTC jest --config jest.config.js --verbose false --passWithNoTests --color",
|
|
31
|
-
"test:watch": "cross-env TZ=UTC jest --watch --config jest.config.js --color",
|
|
32
30
|
"typescript": "tsc"
|
|
33
31
|
},
|
|
34
32
|
"browserslist": [
|
|
@@ -45,7 +43,7 @@
|
|
|
45
43
|
"zod": "^3.24.1"
|
|
46
44
|
},
|
|
47
45
|
"peerDependencies": {
|
|
48
|
-
"@openmrs/esm-framework": "
|
|
46
|
+
"@openmrs/esm-framework": "9.x",
|
|
49
47
|
"dayjs": "1.x",
|
|
50
48
|
"react": "18.x",
|
|
51
49
|
"react-i18next": "11.x",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React, { useMemo } from 'react';
|
|
2
1
|
import { Layer } from '@carbon/react';
|
|
3
2
|
import { ExtensionSlot } from '@openmrs/esm-framework';
|
|
3
|
+
import React, { useMemo } from 'react';
|
|
4
4
|
|
|
5
5
|
type AdmissionsDashboardProps = {
|
|
6
6
|
patientUuid: string;
|
|
7
|
-
patient:
|
|
7
|
+
patient: Record<string, unknown>;
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
const AdmissionsDashboard: React.FC<AdmissionsDashboardProps> = ({ patientUuid, patient }) => {
|
|
@@ -0,0 +1,442 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useTranslation } from 'react-i18next';
|
|
3
|
+
import { useForm, Controller } from 'react-hook-form';
|
|
4
|
+
import { Modal, TextArea, TextInput, NumberInput, Select, SelectItem, Form, Grid, Column } from '@carbon/react';
|
|
5
|
+
import {
|
|
6
|
+
AMNIOTIC_FLUID_OPTIONS,
|
|
7
|
+
MOULDING_OPTIONS,
|
|
8
|
+
DESCENT_OF_HEAD_OPTIONS,
|
|
9
|
+
CONTRACTION_INTENSITY_OPTIONS,
|
|
10
|
+
URINE_LEVEL_OPTIONS,
|
|
11
|
+
BLOOD_GROUP_OPTIONS,
|
|
12
|
+
ADMISSION_OPTIONS,
|
|
13
|
+
TIME_SLOT_OPTIONS,
|
|
14
|
+
EVENT_TYPE_OPTIONS,
|
|
15
|
+
INPUT_RANGES,
|
|
16
|
+
getMeasurementLabel,
|
|
17
|
+
getFieldLabel,
|
|
18
|
+
getFieldPlaceholder,
|
|
19
|
+
getInputRangePlaceholder,
|
|
20
|
+
getGraphDataProcessor,
|
|
21
|
+
} from './types';
|
|
22
|
+
import styles from './anaesthetic-data-form.scss';
|
|
23
|
+
|
|
24
|
+
type Patient = {
|
|
25
|
+
name?: Array<{
|
|
26
|
+
given?: string[];
|
|
27
|
+
family?: string;
|
|
28
|
+
}>;
|
|
29
|
+
gender?: string;
|
|
30
|
+
birthDate?: string;
|
|
31
|
+
};
|
|
32
|
+
type PartographyFormData = {
|
|
33
|
+
admission: string;
|
|
34
|
+
bg: string;
|
|
35
|
+
am: string;
|
|
36
|
+
measurementValue: string;
|
|
37
|
+
systolic: string;
|
|
38
|
+
diastolic: string;
|
|
39
|
+
proteinLevel: string;
|
|
40
|
+
glucoseLevel: string;
|
|
41
|
+
ketoneLevel: string;
|
|
42
|
+
medication: string;
|
|
43
|
+
dosage: string;
|
|
44
|
+
eventType: string;
|
|
45
|
+
eventDescription: string;
|
|
46
|
+
amnioticFluid: string;
|
|
47
|
+
moulding: string;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
type PartographyDataFormProps = {
|
|
51
|
+
isOpen: boolean;
|
|
52
|
+
onClose: () => void;
|
|
53
|
+
onSubmit: (data: any) => void;
|
|
54
|
+
graphType: string;
|
|
55
|
+
graphTitle: string;
|
|
56
|
+
patient?: Patient;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
const PartographyDataForm: React.FC<PartographyDataFormProps> = ({
|
|
60
|
+
isOpen,
|
|
61
|
+
onClose,
|
|
62
|
+
onSubmit,
|
|
63
|
+
graphType,
|
|
64
|
+
graphTitle,
|
|
65
|
+
patient,
|
|
66
|
+
}) => {
|
|
67
|
+
const { t } = useTranslation();
|
|
68
|
+
|
|
69
|
+
const getPatientInfo = (patient?: Patient) => {
|
|
70
|
+
const getName = (): string => {
|
|
71
|
+
if (!patient?.name?.[0]) {
|
|
72
|
+
return '';
|
|
73
|
+
}
|
|
74
|
+
const name = patient.name[0];
|
|
75
|
+
const given = name.given?.join(' ') || '';
|
|
76
|
+
const family = name.family || '';
|
|
77
|
+
return `${given} ${family}`.trim();
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
const getGender = (): string => (patient?.gender ? t(patient.gender, patient.gender) : '');
|
|
81
|
+
|
|
82
|
+
const getAge = (): string => {
|
|
83
|
+
if (!patient?.birthDate) {
|
|
84
|
+
return '';
|
|
85
|
+
}
|
|
86
|
+
const birthDate = new Date(patient.birthDate);
|
|
87
|
+
const today = new Date();
|
|
88
|
+
const age = today.getFullYear() - birthDate.getFullYear();
|
|
89
|
+
const monthDiff = today.getMonth() - birthDate.getMonth();
|
|
90
|
+
const adjustedAge = monthDiff < 0 || (monthDiff === 0 && today.getDate() < birthDate.getDate()) ? age - 1 : age;
|
|
91
|
+
return `${adjustedAge} ${t('yearsOld', 'years old')}`;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
return { name: getName(), gender: getGender(), age: getAge() };
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
const patientInfo = getPatientInfo(patient);
|
|
98
|
+
|
|
99
|
+
const { control, handleSubmit, reset } = useForm<PartographyFormData>({
|
|
100
|
+
defaultValues: {
|
|
101
|
+
admission: '',
|
|
102
|
+
bg: '',
|
|
103
|
+
am: '',
|
|
104
|
+
measurementValue: '',
|
|
105
|
+
systolic: '',
|
|
106
|
+
diastolic: '',
|
|
107
|
+
proteinLevel: '',
|
|
108
|
+
glucoseLevel: '',
|
|
109
|
+
ketoneLevel: '',
|
|
110
|
+
medication: '',
|
|
111
|
+
dosage: '',
|
|
112
|
+
eventType: '',
|
|
113
|
+
eventDescription: '',
|
|
114
|
+
amnioticFluid: '',
|
|
115
|
+
moulding: '',
|
|
116
|
+
},
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
const createNumberInput = (
|
|
120
|
+
id: string,
|
|
121
|
+
name: keyof PartographyFormData,
|
|
122
|
+
label: string,
|
|
123
|
+
placeholder: string,
|
|
124
|
+
range: any,
|
|
125
|
+
required = true,
|
|
126
|
+
) => (
|
|
127
|
+
<Controller
|
|
128
|
+
name={name}
|
|
129
|
+
control={control}
|
|
130
|
+
rules={required ? { required: t('fieldRequired', 'This field is required') } : {}}
|
|
131
|
+
render={({ field, fieldState }) => (
|
|
132
|
+
<NumberInput
|
|
133
|
+
id={id}
|
|
134
|
+
label={label}
|
|
135
|
+
placeholder={placeholder}
|
|
136
|
+
value={field.value || ''}
|
|
137
|
+
onChange={(e, { value }) => field.onChange(String(value))}
|
|
138
|
+
min={range.min}
|
|
139
|
+
max={range.max}
|
|
140
|
+
step={range.step}
|
|
141
|
+
invalid={!!fieldState.error}
|
|
142
|
+
invalidText={fieldState.error?.message}
|
|
143
|
+
required={required}
|
|
144
|
+
/>
|
|
145
|
+
)}
|
|
146
|
+
/>
|
|
147
|
+
);
|
|
148
|
+
|
|
149
|
+
const createSelect = (
|
|
150
|
+
id: string,
|
|
151
|
+
name: keyof PartographyFormData,
|
|
152
|
+
label: string,
|
|
153
|
+
options: readonly any[],
|
|
154
|
+
required = false,
|
|
155
|
+
) => (
|
|
156
|
+
<Controller
|
|
157
|
+
name={name}
|
|
158
|
+
control={control}
|
|
159
|
+
rules={required ? { required: t('fieldRequired', 'This field is required') } : {}}
|
|
160
|
+
render={({ field, fieldState }) => (
|
|
161
|
+
<Select
|
|
162
|
+
id={id}
|
|
163
|
+
labelText={label}
|
|
164
|
+
value={field.value}
|
|
165
|
+
onChange={(e) => field.onChange((e.target as HTMLSelectElement).value)}
|
|
166
|
+
invalid={!!fieldState.error}
|
|
167
|
+
invalidText={fieldState.error?.message}
|
|
168
|
+
required={required}>
|
|
169
|
+
{options.map((option) => (
|
|
170
|
+
<SelectItem
|
|
171
|
+
key={option.value || option.text}
|
|
172
|
+
value={option.value}
|
|
173
|
+
text={t(option.text as string, (option as any).display || option.text) as string}
|
|
174
|
+
/>
|
|
175
|
+
))}
|
|
176
|
+
</Select>
|
|
177
|
+
)}
|
|
178
|
+
/>
|
|
179
|
+
);
|
|
180
|
+
|
|
181
|
+
const createTextInput = (
|
|
182
|
+
id: string,
|
|
183
|
+
name: keyof PartographyFormData,
|
|
184
|
+
label: string,
|
|
185
|
+
placeholder: string,
|
|
186
|
+
required = true,
|
|
187
|
+
) => (
|
|
188
|
+
<Controller
|
|
189
|
+
name={name}
|
|
190
|
+
control={control}
|
|
191
|
+
rules={required ? { required: t('fieldRequired', 'This field is required') } : {}}
|
|
192
|
+
render={({ field, fieldState }) => (
|
|
193
|
+
<TextInput
|
|
194
|
+
id={id}
|
|
195
|
+
labelText={label}
|
|
196
|
+
placeholder={placeholder}
|
|
197
|
+
value={field.value || ''}
|
|
198
|
+
onChange={(e) => field.onChange((e.target as HTMLInputElement).value)}
|
|
199
|
+
invalid={!!fieldState.error}
|
|
200
|
+
invalidText={fieldState.error?.message}
|
|
201
|
+
required={required}
|
|
202
|
+
/>
|
|
203
|
+
)}
|
|
204
|
+
/>
|
|
205
|
+
);
|
|
206
|
+
|
|
207
|
+
const onSubmitForm = (data: PartographyFormData) => {
|
|
208
|
+
const processor = getGraphDataProcessor(graphType);
|
|
209
|
+
if (!processor.validate(data)) {
|
|
210
|
+
return;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
const dataPoint = {
|
|
214
|
+
time: new Date().toLocaleTimeString('en-US', { hour12: false, hour: '2-digit', minute: '2-digit' }),
|
|
215
|
+
value: processor.getValue(data),
|
|
216
|
+
graphType,
|
|
217
|
+
admission: data.admission,
|
|
218
|
+
bg: data.bg,
|
|
219
|
+
am: data.am,
|
|
220
|
+
timestamp: new Date(),
|
|
221
|
+
...processor.getAdditionalData(data),
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
onSubmit(dataPoint);
|
|
225
|
+
handleClose();
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
const handleClose = () => {
|
|
229
|
+
reset();
|
|
230
|
+
onClose();
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
const renderSpecificFields = () => {
|
|
234
|
+
const fieldConfigs = {
|
|
235
|
+
'fetal-heart-rate': () =>
|
|
236
|
+
createNumberInput(
|
|
237
|
+
'fetal-heart-rate-input',
|
|
238
|
+
'measurementValue',
|
|
239
|
+
getFieldLabel('fetalHeartRate', t),
|
|
240
|
+
getInputRangePlaceholder('fetal-heart-rate', t),
|
|
241
|
+
INPUT_RANGES['fetal-heart-rate'],
|
|
242
|
+
),
|
|
243
|
+
|
|
244
|
+
'cervical-dilation': () => (
|
|
245
|
+
<Grid>
|
|
246
|
+
<Column sm={4} md={4} lg={8}>
|
|
247
|
+
{createNumberInput(
|
|
248
|
+
'cervical-dilation-measurement',
|
|
249
|
+
'measurementValue',
|
|
250
|
+
getFieldLabel('cervicalDilation', t),
|
|
251
|
+
getInputRangePlaceholder('cervical-dilation', t),
|
|
252
|
+
INPUT_RANGES['cervical-dilation'],
|
|
253
|
+
)}
|
|
254
|
+
</Column>
|
|
255
|
+
<Column sm={4} md={4} lg={8}>
|
|
256
|
+
{createSelect('amniotic-fluid', 'amnioticFluid', getFieldLabel('amnioticFluid', t), AMNIOTIC_FLUID_OPTIONS)}
|
|
257
|
+
</Column>
|
|
258
|
+
<Column sm={4} md={4} lg={8}>
|
|
259
|
+
{createSelect('moulding', 'moulding', getFieldLabel('moulding', t), MOULDING_OPTIONS)}
|
|
260
|
+
</Column>
|
|
261
|
+
</Grid>
|
|
262
|
+
),
|
|
263
|
+
|
|
264
|
+
'descent-of-head': () =>
|
|
265
|
+
createSelect(
|
|
266
|
+
'descent-select',
|
|
267
|
+
'measurementValue',
|
|
268
|
+
getFieldLabel('descentOfHead', t),
|
|
269
|
+
DESCENT_OF_HEAD_OPTIONS,
|
|
270
|
+
true,
|
|
271
|
+
),
|
|
272
|
+
|
|
273
|
+
'uterine-contractions': () => (
|
|
274
|
+
<Grid>
|
|
275
|
+
<Column sm={4} md={4} lg={8}>
|
|
276
|
+
{createNumberInput(
|
|
277
|
+
'contraction-frequency',
|
|
278
|
+
'measurementValue',
|
|
279
|
+
getFieldLabel('frequency', t),
|
|
280
|
+
getInputRangePlaceholder('uterine-contractions', t),
|
|
281
|
+
INPUT_RANGES['uterine-contractions'],
|
|
282
|
+
)}
|
|
283
|
+
</Column>
|
|
284
|
+
<Column sm={4} md={4} lg={8}>
|
|
285
|
+
{createSelect(
|
|
286
|
+
'contraction-intensity',
|
|
287
|
+
'eventDescription',
|
|
288
|
+
getFieldLabel('intensity', t),
|
|
289
|
+
CONTRACTION_INTENSITY_OPTIONS,
|
|
290
|
+
)}
|
|
291
|
+
</Column>
|
|
292
|
+
</Grid>
|
|
293
|
+
),
|
|
294
|
+
|
|
295
|
+
'maternal-pulse': () =>
|
|
296
|
+
createNumberInput(
|
|
297
|
+
'maternal-pulse-input',
|
|
298
|
+
'measurementValue',
|
|
299
|
+
getFieldLabel('maternalPulse', t),
|
|
300
|
+
getInputRangePlaceholder('maternal-pulse', t),
|
|
301
|
+
INPUT_RANGES['maternal-pulse'],
|
|
302
|
+
),
|
|
303
|
+
|
|
304
|
+
'blood-pressure': () => (
|
|
305
|
+
<Grid>
|
|
306
|
+
<Column sm={4} md={4} lg={8}>
|
|
307
|
+
{createNumberInput(
|
|
308
|
+
'systolic-pressure',
|
|
309
|
+
'systolic',
|
|
310
|
+
getFieldLabel('systolic', t),
|
|
311
|
+
getInputRangePlaceholder('systolic-bp', t),
|
|
312
|
+
INPUT_RANGES['systolic-bp'],
|
|
313
|
+
)}
|
|
314
|
+
</Column>
|
|
315
|
+
<Column sm={4} md={4} lg={8}>
|
|
316
|
+
{createNumberInput(
|
|
317
|
+
'diastolic-pressure',
|
|
318
|
+
'diastolic',
|
|
319
|
+
getFieldLabel('diastolic', t),
|
|
320
|
+
getInputRangePlaceholder('diastolic-bp', t),
|
|
321
|
+
INPUT_RANGES['diastolic-bp'],
|
|
322
|
+
)}
|
|
323
|
+
</Column>
|
|
324
|
+
</Grid>
|
|
325
|
+
),
|
|
326
|
+
|
|
327
|
+
temperature: () =>
|
|
328
|
+
createNumberInput(
|
|
329
|
+
'temperature-input',
|
|
330
|
+
'measurementValue',
|
|
331
|
+
getFieldLabel('temperature', t),
|
|
332
|
+
getInputRangePlaceholder('temperature', t),
|
|
333
|
+
INPUT_RANGES.temperature,
|
|
334
|
+
),
|
|
335
|
+
|
|
336
|
+
'urine-analysis': () => (
|
|
337
|
+
<Grid>
|
|
338
|
+
<Column sm={4} md={2} lg={5}>
|
|
339
|
+
{createSelect('protein-level', 'proteinLevel', getFieldLabel('proteinLevel', t), URINE_LEVEL_OPTIONS)}
|
|
340
|
+
</Column>
|
|
341
|
+
<Column sm={4} md={3} lg={5}>
|
|
342
|
+
{createSelect('glucose-level', 'glucoseLevel', getFieldLabel('glucoseLevel', t), URINE_LEVEL_OPTIONS)}
|
|
343
|
+
</Column>
|
|
344
|
+
<Column sm={4} md={3} lg={6}>
|
|
345
|
+
{createSelect('ketone-level', 'ketoneLevel', getFieldLabel('ketoneLevel', t), URINE_LEVEL_OPTIONS)}
|
|
346
|
+
</Column>
|
|
347
|
+
</Grid>
|
|
348
|
+
),
|
|
349
|
+
|
|
350
|
+
'drugs-fluids': () => (
|
|
351
|
+
<Grid>
|
|
352
|
+
<Column sm={4} md={4} lg={8}>
|
|
353
|
+
{createTextInput(
|
|
354
|
+
'medication-input',
|
|
355
|
+
'medication',
|
|
356
|
+
getFieldLabel('medication', t),
|
|
357
|
+
getFieldPlaceholder('medicationType', t),
|
|
358
|
+
)}
|
|
359
|
+
</Column>
|
|
360
|
+
<Column sm={4} md={4} lg={8}>
|
|
361
|
+
{createTextInput(
|
|
362
|
+
'dosage-input',
|
|
363
|
+
'dosage',
|
|
364
|
+
getFieldLabel('dosageRate', t),
|
|
365
|
+
getFieldPlaceholder('dosageRate', t),
|
|
366
|
+
)}
|
|
367
|
+
</Column>
|
|
368
|
+
</Grid>
|
|
369
|
+
),
|
|
370
|
+
|
|
371
|
+
'progress-events': () => (
|
|
372
|
+
<Grid>
|
|
373
|
+
<Column sm={4} md={8} lg={16}>
|
|
374
|
+
{createSelect('event-type', 'eventType', getFieldLabel('eventType', t), EVENT_TYPE_OPTIONS, true)}
|
|
375
|
+
</Column>
|
|
376
|
+
<Column sm={4} md={8} lg={16}>
|
|
377
|
+
<Controller
|
|
378
|
+
name="eventDescription"
|
|
379
|
+
control={control}
|
|
380
|
+
rules={{ required: t('fieldRequired', 'This field is required') }}
|
|
381
|
+
render={({ field, fieldState }) => (
|
|
382
|
+
<TextArea
|
|
383
|
+
id="event-description"
|
|
384
|
+
labelText={getFieldLabel('eventDescription', t)}
|
|
385
|
+
placeholder={getFieldPlaceholder('eventDescription', t)}
|
|
386
|
+
value={field.value || ''}
|
|
387
|
+
onChange={(e) => field.onChange((e.target as HTMLTextAreaElement).value)}
|
|
388
|
+
invalid={!!fieldState.error}
|
|
389
|
+
invalidText={fieldState.error?.message}
|
|
390
|
+
rows={3}
|
|
391
|
+
required
|
|
392
|
+
/>
|
|
393
|
+
)}
|
|
394
|
+
/>
|
|
395
|
+
</Column>
|
|
396
|
+
</Grid>
|
|
397
|
+
),
|
|
398
|
+
};
|
|
399
|
+
|
|
400
|
+
const config = fieldConfigs[graphType as keyof typeof fieldConfigs];
|
|
401
|
+
return config
|
|
402
|
+
? config()
|
|
403
|
+
: createTextInput(
|
|
404
|
+
'general-measurement',
|
|
405
|
+
'measurementValue',
|
|
406
|
+
getMeasurementLabel(graphType, t, graphTitle),
|
|
407
|
+
getFieldPlaceholder('generalMeasurement', t),
|
|
408
|
+
);
|
|
409
|
+
};
|
|
410
|
+
|
|
411
|
+
return (
|
|
412
|
+
<Modal
|
|
413
|
+
open={isOpen}
|
|
414
|
+
onRequestClose={onClose}
|
|
415
|
+
modalHeading={`${getMeasurementLabel(graphType, t, graphTitle)} Data`}
|
|
416
|
+
modalLabel={`${patientInfo.name}, ${patientInfo.gender}, ${patientInfo.age}`}
|
|
417
|
+
primaryButtonText={t('save', 'Save')}
|
|
418
|
+
secondaryButtonText={t('cancel', 'Cancel')}
|
|
419
|
+
onRequestSubmit={handleSubmit(onSubmitForm)}
|
|
420
|
+
onSecondarySubmit={handleClose}
|
|
421
|
+
size="lg">
|
|
422
|
+
<div className={styles.modalContent}>
|
|
423
|
+
<Form onSubmit={handleSubmit(onSubmitForm)}>
|
|
424
|
+
<Grid>
|
|
425
|
+
<Column sm={4} md={8} lg={5}>
|
|
426
|
+
{createSelect('admission-select', 'admission', getFieldLabel('admission', t), ADMISSION_OPTIONS)}
|
|
427
|
+
</Column>
|
|
428
|
+
<Column sm={4} md={8} lg={5}>
|
|
429
|
+
{createSelect('bg-select', 'bg', getFieldLabel('bg', t), BLOOD_GROUP_OPTIONS)}
|
|
430
|
+
</Column>
|
|
431
|
+
<Column sm={4} md={8} lg={6}>
|
|
432
|
+
{createSelect('am-select', 'am', getFieldLabel('am', t), TIME_SLOT_OPTIONS)}
|
|
433
|
+
</Column>
|
|
434
|
+
</Grid>
|
|
435
|
+
<div className={styles.measurementSection}>{renderSpecificFields()}</div>
|
|
436
|
+
</Form>
|
|
437
|
+
</div>
|
|
438
|
+
</Modal>
|
|
439
|
+
);
|
|
440
|
+
};
|
|
441
|
+
|
|
442
|
+
export default PartographyDataForm;
|