@openmrs/esm-ward-app 9.2.1-pre.7408 → 9.2.1-pre.7414
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 +1 -1
- package/dist/{8910.js → 3624.js} +1 -1
- package/dist/3624.js.map +1 -0
- package/dist/4285.js +1 -1
- package/dist/4285.js.map +1 -1
- package/dist/4425.js +1 -1
- package/dist/4425.js.map +1 -1
- package/dist/6026.js +1 -1
- package/dist/6026.js.map +1 -1
- package/dist/6199.js +1 -0
- package/dist/6199.js.map +1 -0
- package/dist/9727.js +1 -1
- package/dist/9727.js.map +1 -1
- package/dist/main.js +2 -2
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-ward-app.js.buildmanifest.json +64 -64
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/src/types/index.ts +1 -1
- package/src/utils.ts +2 -2
- package/src/ward-patient-card/card-rows/mother-child-row.component.tsx +1 -1
- package/src/ward-view/{materal-ward → maternal-ward}/maternal-ward-patient-card.component.tsx +2 -2
- package/src/ward-view/{materal-ward → maternal-ward}/maternal-ward-view.component.tsx +1 -1
- package/src/ward-view-header/ward-metrics.component.tsx +16 -11
- package/src/ward-view-header/ward-metrics.test.tsx +1 -1
- package/dist/504.js +0 -1
- package/dist/504.js.map +0 -1
- package/dist/8910.js.map +0 -1
- /package/src/ward-view/{materal-ward → maternal-ward}/maternal-ward-beds.component.tsx +0 -0
- /package/src/ward-view/{materal-ward → maternal-ward}/maternal-ward-patient-card-header.component.tsx +0 -0
- /package/src/ward-view/{materal-ward → maternal-ward}/maternal-ward-patient-card.scss +0 -0
- /package/src/ward-view/{materal-ward → maternal-ward}/maternal-ward-patient-card.test.tsx +0 -0
- /package/src/ward-view/{materal-ward → maternal-ward}/maternal-ward-pending-patients.component.tsx +0 -0
- /package/src/ward-view/{materal-ward → maternal-ward}/maternal-ward-unassigned-patients.component.tsx +0 -0
- /package/src/ward-view/{materal-ward → maternal-ward}/maternal-ward-view.resource.ts +0 -0
- /package/src/{ward-view → ward-view-header}/ward-metrics.scss +0 -0
|
@@ -686,6 +686,33 @@
|
|
|
686
686
|
"hash": "177c1b63fcd513b4",
|
|
687
687
|
"childrenByOrder": {}
|
|
688
688
|
},
|
|
689
|
+
{
|
|
690
|
+
"type": "chunk",
|
|
691
|
+
"rendered": true,
|
|
692
|
+
"initial": false,
|
|
693
|
+
"entry": false,
|
|
694
|
+
"reason": "split chunk (cache group: default)",
|
|
695
|
+
"size": 255110,
|
|
696
|
+
"sizes": {
|
|
697
|
+
"javascript": 255110
|
|
698
|
+
},
|
|
699
|
+
"names": [],
|
|
700
|
+
"idHints": [
|
|
701
|
+
""
|
|
702
|
+
],
|
|
703
|
+
"runtime": [
|
|
704
|
+
"@openmrs/esm-ward-app",
|
|
705
|
+
"main"
|
|
706
|
+
],
|
|
707
|
+
"files": [
|
|
708
|
+
"3624.js"
|
|
709
|
+
],
|
|
710
|
+
"auxiliaryFiles": [
|
|
711
|
+
"3624.js.map"
|
|
712
|
+
],
|
|
713
|
+
"hash": "2f9f0e51345f738a",
|
|
714
|
+
"childrenByOrder": {}
|
|
715
|
+
},
|
|
689
716
|
{
|
|
690
717
|
"type": "chunk",
|
|
691
718
|
"rendered": true,
|
|
@@ -808,9 +835,9 @@
|
|
|
808
835
|
"rendered": true,
|
|
809
836
|
"initial": false,
|
|
810
837
|
"entry": false,
|
|
811
|
-
"size":
|
|
838
|
+
"size": 17624,
|
|
812
839
|
"sizes": {
|
|
813
|
-
"javascript":
|
|
840
|
+
"javascript": 17624
|
|
814
841
|
},
|
|
815
842
|
"names": [],
|
|
816
843
|
"idHints": [],
|
|
@@ -823,7 +850,7 @@
|
|
|
823
850
|
"auxiliaryFiles": [
|
|
824
851
|
"4285.js.map"
|
|
825
852
|
],
|
|
826
|
-
"hash": "
|
|
853
|
+
"hash": "66a6a1ae2cb75d0a",
|
|
827
854
|
"childrenByOrder": {}
|
|
828
855
|
},
|
|
829
856
|
{
|
|
@@ -874,7 +901,7 @@
|
|
|
874
901
|
"auxiliaryFiles": [
|
|
875
902
|
"4425.js.map"
|
|
876
903
|
],
|
|
877
|
-
"hash": "
|
|
904
|
+
"hash": "332f0daec48381bf",
|
|
878
905
|
"childrenByOrder": {}
|
|
879
906
|
},
|
|
880
907
|
{
|
|
@@ -996,30 +1023,6 @@
|
|
|
996
1023
|
"hash": "a5ee514d15df317c",
|
|
997
1024
|
"childrenByOrder": {}
|
|
998
1025
|
},
|
|
999
|
-
{
|
|
1000
|
-
"type": "chunk",
|
|
1001
|
-
"rendered": true,
|
|
1002
|
-
"initial": false,
|
|
1003
|
-
"entry": false,
|
|
1004
|
-
"size": 58571,
|
|
1005
|
-
"sizes": {
|
|
1006
|
-
"javascript": 58571
|
|
1007
|
-
},
|
|
1008
|
-
"names": [],
|
|
1009
|
-
"idHints": [],
|
|
1010
|
-
"runtime": [
|
|
1011
|
-
"@openmrs/esm-ward-app",
|
|
1012
|
-
"main"
|
|
1013
|
-
],
|
|
1014
|
-
"files": [
|
|
1015
|
-
"504.js"
|
|
1016
|
-
],
|
|
1017
|
-
"auxiliaryFiles": [
|
|
1018
|
-
"504.js.map"
|
|
1019
|
-
],
|
|
1020
|
-
"hash": "1b88e79301e0c788",
|
|
1021
|
-
"childrenByOrder": {}
|
|
1022
|
-
},
|
|
1023
1026
|
{
|
|
1024
1027
|
"type": "chunk",
|
|
1025
1028
|
"rendered": true,
|
|
@@ -1261,9 +1264,9 @@
|
|
|
1261
1264
|
"initial": false,
|
|
1262
1265
|
"entry": false,
|
|
1263
1266
|
"reason": "split chunk (cache group: default)",
|
|
1264
|
-
"size":
|
|
1267
|
+
"size": 82123,
|
|
1265
1268
|
"sizes": {
|
|
1266
|
-
"javascript":
|
|
1269
|
+
"javascript": 82123
|
|
1267
1270
|
},
|
|
1268
1271
|
"names": [],
|
|
1269
1272
|
"idHints": [
|
|
@@ -1279,7 +1282,7 @@
|
|
|
1279
1282
|
"auxiliaryFiles": [
|
|
1280
1283
|
"6026.js.map"
|
|
1281
1284
|
],
|
|
1282
|
-
"hash": "
|
|
1285
|
+
"hash": "35ffba434c5958f3",
|
|
1283
1286
|
"childrenByOrder": {}
|
|
1284
1287
|
},
|
|
1285
1288
|
{
|
|
@@ -1327,6 +1330,30 @@
|
|
|
1327
1330
|
"hash": "8113070b4f547868",
|
|
1328
1331
|
"childrenByOrder": {}
|
|
1329
1332
|
},
|
|
1333
|
+
{
|
|
1334
|
+
"type": "chunk",
|
|
1335
|
+
"rendered": true,
|
|
1336
|
+
"initial": false,
|
|
1337
|
+
"entry": false,
|
|
1338
|
+
"size": 58574,
|
|
1339
|
+
"sizes": {
|
|
1340
|
+
"javascript": 58574
|
|
1341
|
+
},
|
|
1342
|
+
"names": [],
|
|
1343
|
+
"idHints": [],
|
|
1344
|
+
"runtime": [
|
|
1345
|
+
"@openmrs/esm-ward-app",
|
|
1346
|
+
"main"
|
|
1347
|
+
],
|
|
1348
|
+
"files": [
|
|
1349
|
+
"6199.js"
|
|
1350
|
+
],
|
|
1351
|
+
"auxiliaryFiles": [
|
|
1352
|
+
"6199.js.map"
|
|
1353
|
+
],
|
|
1354
|
+
"hash": "fdcae290ed144145",
|
|
1355
|
+
"childrenByOrder": {}
|
|
1356
|
+
},
|
|
1330
1357
|
{
|
|
1331
1358
|
"type": "chunk",
|
|
1332
1359
|
"rendered": true,
|
|
@@ -1543,10 +1570,10 @@
|
|
|
1543
1570
|
"rendered": true,
|
|
1544
1571
|
"initial": true,
|
|
1545
1572
|
"entry": true,
|
|
1546
|
-
"size":
|
|
1573
|
+
"size": 221084,
|
|
1547
1574
|
"sizes": {
|
|
1548
1575
|
"consume-shared": 126,
|
|
1549
|
-
"javascript":
|
|
1576
|
+
"javascript": 220664,
|
|
1550
1577
|
"runtime": 14274,
|
|
1551
1578
|
"share-init": 294
|
|
1552
1579
|
},
|
|
@@ -1563,7 +1590,7 @@
|
|
|
1563
1590
|
"auxiliaryFiles": [
|
|
1564
1591
|
"main.js.map"
|
|
1565
1592
|
],
|
|
1566
|
-
"hash": "
|
|
1593
|
+
"hash": "f0af954023b68727",
|
|
1567
1594
|
"childrenByOrder": {}
|
|
1568
1595
|
},
|
|
1569
1596
|
{
|
|
@@ -1845,33 +1872,6 @@
|
|
|
1845
1872
|
"hash": "f335f1a7699b2e26",
|
|
1846
1873
|
"childrenByOrder": {}
|
|
1847
1874
|
},
|
|
1848
|
-
{
|
|
1849
|
-
"type": "chunk",
|
|
1850
|
-
"rendered": true,
|
|
1851
|
-
"initial": false,
|
|
1852
|
-
"entry": false,
|
|
1853
|
-
"reason": "split chunk (cache group: default)",
|
|
1854
|
-
"size": 253892,
|
|
1855
|
-
"sizes": {
|
|
1856
|
-
"javascript": 253892
|
|
1857
|
-
},
|
|
1858
|
-
"names": [],
|
|
1859
|
-
"idHints": [
|
|
1860
|
-
""
|
|
1861
|
-
],
|
|
1862
|
-
"runtime": [
|
|
1863
|
-
"@openmrs/esm-ward-app",
|
|
1864
|
-
"main"
|
|
1865
|
-
],
|
|
1866
|
-
"files": [
|
|
1867
|
-
"8910.js"
|
|
1868
|
-
],
|
|
1869
|
-
"auxiliaryFiles": [
|
|
1870
|
-
"8910.js.map"
|
|
1871
|
-
],
|
|
1872
|
-
"hash": "467b80522a2a4e29",
|
|
1873
|
-
"childrenByOrder": {}
|
|
1874
|
-
},
|
|
1875
1875
|
{
|
|
1876
1876
|
"type": "chunk",
|
|
1877
1877
|
"rendered": true,
|
|
@@ -2104,9 +2104,9 @@
|
|
|
2104
2104
|
"rendered": true,
|
|
2105
2105
|
"initial": false,
|
|
2106
2106
|
"entry": false,
|
|
2107
|
-
"size":
|
|
2107
|
+
"size": 25570,
|
|
2108
2108
|
"sizes": {
|
|
2109
|
-
"javascript":
|
|
2109
|
+
"javascript": 25570
|
|
2110
2110
|
},
|
|
2111
2111
|
"names": [],
|
|
2112
2112
|
"idHints": [
|
|
@@ -2122,7 +2122,7 @@
|
|
|
2122
2122
|
"auxiliaryFiles": [
|
|
2123
2123
|
"9727.js.map"
|
|
2124
2124
|
],
|
|
2125
|
-
"hash": "
|
|
2125
|
+
"hash": "4715ff718f49a020",
|
|
2126
2126
|
"childrenByOrder": {}
|
|
2127
2127
|
},
|
|
2128
2128
|
{
|
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=2.2.0","emrapi":">=2.0.0 <4.0.0"},"optionalBackendDependencies":{"bedmanagement":{"version":"^6.0.0 || 6.0.0-SNAPSHOT","feature":{"flagName":"bedmanagement-module","label":"Ward App Patient Service","description":"This module, if installed, provides services for managing patients admitted to the ward."}}},"extensions":[{"name":"ward-dashboard-link","component":"wardDashboardLink","slot":"homepage-dashboard-slot","meta":{"name":"ward","slot":"ward-dashboard-slot","title":"Wards"}},{"component":"root","name":"ward-dashboard","slot":"ward-dashboard-slot"},{"component":"wardView","name":"ward-view","slot":"ward-view-slot"},{"component":"wardPatientActionButtonExtension","name":"ward-patient-action-button","slot":"action-menu-ward-patient-items-slot"},{"component":"coloredObsTagCardRowExtension","name":"colored-obs-tags-card-row","slot":"ward-patient-card-slot"},{"name":"patient-discharge-siderail-button","slot":"action-menu-ward-patient-items-slot","component":"patientDischargeWorkspaceSideRailIcon"},{"component":"defaultWardView","name":"default-ward","slot":"default-ward"},{"component":"maternalWardView","name":"maternal-ward","slot":"maternal-ward"},{"component":"wardPatientWorkspaceBanner","name":"ward-patient-workspace-banner","slot":"ward-workspace-patient-banner-slot"}],"workspaces2":[{"name":"admission-requests-workspace","component":"admissionRequestWorkspace","window":"pending-admissions"},{"name":"transfer-elsewhere-workspace","component":"patientTransferRequestWorkspace","window":"pending-admissions"},{"name":"cancel-admission-request-workspace","component":"cancelAdmissionRequestWorkspace","window":"pending-admissions"},{"name":"admit-patient-form-workspace","component":"admitPatientFormWorkspace","window":"pending-admissions"},{"name":"ward-app-patient-search-workspace","component":"@openmrs/esm-patient-search-app#patientSearchWorkspace2","window":"add-patient-to-ward"},{"name":"ward-app-start-visit-workspace","component":"@openmrs/esm-patient-chart-app#exportedVisitForm","window":"add-patient-to-ward"},{"name":"create-admission-encounter-workspace","component":"createAdmissionEncounterWorkspace","window":"add-patient-to-ward"},{"name":"ward-patient-workspace","component":"wardPatientWorkspace","window":"ward-patient"},{"name":"ward-patient-vitals-workspace","component":"@openmrs/esm-patient-vitals-app#exportedVitalsBiometricsFormWorkspace","window":"ward-patient"},{"name":"ward-patient-notes-workspace","component":"wardPatientNotesWorkspace","window":"ward-patient-notes"},{"name":"ward-patient-transfer-swap-workspace","component":"patientTransferAndSwapWorkspace","window":"ward-patient-transfer-swap"},{"name":"patient-discharge-workspace","component":"patientDischargeWorkspace","window":"ward-patient-discharge"},{"name":"ward-patient-clinical-forms-workspace","component":"@openmrs/esm-patient-forms-app#exportedClinicalFormsWorkspace","window":"ward-patient-clinical-forms"},{"name":"ward-patient-form-entry-workspace","component":"@openmrs/esm-patient-forms-app#exportedPatientFormEntryWorkspace","window":"ward-patient-clinical-forms"},{"name":"ward-patient-cancel-admission-request-workspace","component":"wardPatientCancelAdmissionRequestWorkspace","window":"ward-patient-cancel-admission-request"},{"name":"ward-patient-order-basket-workspace","component":"@openmrs/esm-patient-orders-app#exportedOrderBasketWorkspace","window":"ward-patient-order-basket"},{"name":"ward-patient-order-basket-add-drug-order-workspace","component":"@openmrs/esm-patient-medications-app#exportedAddDrugOrderWorkspace","window":"ward-patient-order-basket"},{"name":"ward-patient-order-basket-add-lab-order-workspace","component":"@openmrs/esm-patient-tests-app#exportedAddLabOrderWorkspace","window":"ward-patient-order-basket"},{"name":"ward-patient-order-basket-add-general-order-workspace","component":"@openmrs/esm-patient-orders-app#exportedOrderBasketWorkspace","window":"ward-patient-order-basket"}],"workspaceWindows2":[{"name":"pending-admissions","group":"ward-manage-admissions","icon":"admissionRequestsWorkspaceSideRailIcon","width":"wider"},{"name":"add-patient-to-ward","group":"ward-manage-admissions","icon":"createAdmissionEncounterWorkspaceSideRailIcon"},{"name":"ward-patient","group":"ward-patient","icon":"wardPatientActionButton","width":"wider"},{"name":"ward-patient-notes","group":"ward-patient","icon":"wardPatientNotesActionButton"},{"name":"ward-patient-transfer-swap","group":"ward-patient","icon":"patientTransferAndSwapWorkspaceSiderailIcon"},{"name":"ward-patient-discharge","group":"ward-patient","icon":"patientDischargeWorkspaceSideRailIcon"},{"name":"ward-patient-clinical-forms","group":"ward-patient","icon":"clinicalFormWorkspaceSideRailIcon"},{"name":"ward-patient-order-basket","group":"ward-patient","icon":"orderBasketWorkspaceSideRailIcon"},{"name":"ward-patient-cancel-admission-request","group":"ward-patient"}],"workspaceGroups2":[{"name":"ward-manage-admissions","overlay":true,"persistence":"closable"},{"name":"ward-patient","overlay":true,"persistence":"closable"}],"version":"9.2.1-pre.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=2.2.0","emrapi":">=2.0.0 <4.0.0"},"optionalBackendDependencies":{"bedmanagement":{"version":"^6.0.0 || 6.0.0-SNAPSHOT","feature":{"flagName":"bedmanagement-module","label":"Ward App Patient Service","description":"This module, if installed, provides services for managing patients admitted to the ward."}}},"extensions":[{"name":"ward-dashboard-link","component":"wardDashboardLink","slot":"homepage-dashboard-slot","meta":{"name":"ward","slot":"ward-dashboard-slot","title":"Wards"}},{"component":"root","name":"ward-dashboard","slot":"ward-dashboard-slot"},{"component":"wardView","name":"ward-view","slot":"ward-view-slot"},{"component":"wardPatientActionButtonExtension","name":"ward-patient-action-button","slot":"action-menu-ward-patient-items-slot"},{"component":"coloredObsTagCardRowExtension","name":"colored-obs-tags-card-row","slot":"ward-patient-card-slot"},{"name":"patient-discharge-siderail-button","slot":"action-menu-ward-patient-items-slot","component":"patientDischargeWorkspaceSideRailIcon"},{"component":"defaultWardView","name":"default-ward","slot":"default-ward"},{"component":"maternalWardView","name":"maternal-ward","slot":"maternal-ward"},{"component":"wardPatientWorkspaceBanner","name":"ward-patient-workspace-banner","slot":"ward-workspace-patient-banner-slot"}],"workspaces2":[{"name":"admission-requests-workspace","component":"admissionRequestWorkspace","window":"pending-admissions"},{"name":"transfer-elsewhere-workspace","component":"patientTransferRequestWorkspace","window":"pending-admissions"},{"name":"cancel-admission-request-workspace","component":"cancelAdmissionRequestWorkspace","window":"pending-admissions"},{"name":"admit-patient-form-workspace","component":"admitPatientFormWorkspace","window":"pending-admissions"},{"name":"ward-app-patient-search-workspace","component":"@openmrs/esm-patient-search-app#patientSearchWorkspace2","window":"add-patient-to-ward"},{"name":"ward-app-start-visit-workspace","component":"@openmrs/esm-patient-chart-app#exportedVisitForm","window":"add-patient-to-ward"},{"name":"create-admission-encounter-workspace","component":"createAdmissionEncounterWorkspace","window":"add-patient-to-ward"},{"name":"ward-patient-workspace","component":"wardPatientWorkspace","window":"ward-patient"},{"name":"ward-patient-vitals-workspace","component":"@openmrs/esm-patient-vitals-app#exportedVitalsBiometricsFormWorkspace","window":"ward-patient"},{"name":"ward-patient-notes-workspace","component":"wardPatientNotesWorkspace","window":"ward-patient-notes"},{"name":"ward-patient-transfer-swap-workspace","component":"patientTransferAndSwapWorkspace","window":"ward-patient-transfer-swap"},{"name":"patient-discharge-workspace","component":"patientDischargeWorkspace","window":"ward-patient-discharge"},{"name":"ward-patient-clinical-forms-workspace","component":"@openmrs/esm-patient-forms-app#exportedClinicalFormsWorkspace","window":"ward-patient-clinical-forms"},{"name":"ward-patient-form-entry-workspace","component":"@openmrs/esm-patient-forms-app#exportedPatientFormEntryWorkspace","window":"ward-patient-clinical-forms"},{"name":"ward-patient-cancel-admission-request-workspace","component":"wardPatientCancelAdmissionRequestWorkspace","window":"ward-patient-cancel-admission-request"},{"name":"ward-patient-order-basket-workspace","component":"@openmrs/esm-patient-orders-app#exportedOrderBasketWorkspace","window":"ward-patient-order-basket"},{"name":"ward-patient-order-basket-add-drug-order-workspace","component":"@openmrs/esm-patient-medications-app#exportedAddDrugOrderWorkspace","window":"ward-patient-order-basket"},{"name":"ward-patient-order-basket-add-lab-order-workspace","component":"@openmrs/esm-patient-tests-app#exportedAddLabOrderWorkspace","window":"ward-patient-order-basket"},{"name":"ward-patient-order-basket-add-general-order-workspace","component":"@openmrs/esm-patient-orders-app#exportedOrderBasketWorkspace","window":"ward-patient-order-basket"}],"workspaceWindows2":[{"name":"pending-admissions","group":"ward-manage-admissions","icon":"admissionRequestsWorkspaceSideRailIcon","width":"wider"},{"name":"add-patient-to-ward","group":"ward-manage-admissions","icon":"createAdmissionEncounterWorkspaceSideRailIcon"},{"name":"ward-patient","group":"ward-patient","icon":"wardPatientActionButton","width":"wider"},{"name":"ward-patient-notes","group":"ward-patient","icon":"wardPatientNotesActionButton"},{"name":"ward-patient-transfer-swap","group":"ward-patient","icon":"patientTransferAndSwapWorkspaceSiderailIcon"},{"name":"ward-patient-discharge","group":"ward-patient","icon":"patientDischargeWorkspaceSideRailIcon"},{"name":"ward-patient-clinical-forms","group":"ward-patient","icon":"clinicalFormWorkspaceSideRailIcon"},{"name":"ward-patient-order-basket","group":"ward-patient","icon":"orderBasketWorkspaceSideRailIcon"},{"name":"ward-patient-cancel-admission-request","group":"ward-patient"}],"workspaceGroups2":[{"name":"ward-manage-admissions","overlay":true,"persistence":"closable"},{"name":"ward-patient","overlay":true,"persistence":"closable"}],"version":"9.2.1-pre.7414"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -124,7 +124,7 @@ export const defaultWardView = getAsyncLifecycle(() => import('./ward-view/defau
|
|
|
124
124
|
});
|
|
125
125
|
|
|
126
126
|
export const maternalWardView = getAsyncLifecycle(
|
|
127
|
-
() => import('./ward-view/
|
|
127
|
+
() => import('./ward-view/maternal-ward/maternal-ward-view.component'),
|
|
128
128
|
{
|
|
129
129
|
featureName: 'maternal-ward-view',
|
|
130
130
|
moduleName,
|
package/src/types/index.ts
CHANGED
|
@@ -239,7 +239,7 @@ export enum WardMetricType {
|
|
|
239
239
|
FREE_BEDS = 'freeBeds',
|
|
240
240
|
TOTAL_BEDS = 'totalBeds',
|
|
241
241
|
PENDING_OUT = 'pendingOut',
|
|
242
|
-
|
|
242
|
+
FEMALES_OF_REPRODUCTIVE_AGE = 'femalesOfReproductiveAge',
|
|
243
243
|
NEWBORNS = 'newborns',
|
|
244
244
|
}
|
|
245
245
|
|
package/src/utils.ts
CHANGED
|
@@ -3,11 +3,11 @@ import { type Patient } from '@openmrs/esm-framework';
|
|
|
3
3
|
// TODO: potentially move these rules into config so they can be customized and defined in a centralized place
|
|
4
4
|
|
|
5
5
|
export function filterNewborns(patients: Patient[]) {
|
|
6
|
-
return patients.filter((patient) => patient.person.age < 1);
|
|
6
|
+
return patients.filter((patient) => patient.person.age != null && patient.person.age < 1);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
export function filterReproductiveAge(patients: Patient[]) {
|
|
10
|
-
return patients.filter((patient) => patient.person.age >= 10);
|
|
10
|
+
return patients.filter((patient) => patient.person.age != null && patient.person.age >= 10);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
export function filterFemale(patients: Patient[]) {
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import { BabyIcon, MotherIcon, type Patient, useAppContext } from '@openmrs/esm-framework';
|
|
4
4
|
import { type InpatientAdmission, type MaternalWardViewContext } from '../../types';
|
|
5
|
-
import { type MaternalWardPatientCardProps } from '../../ward-view/
|
|
5
|
+
import { type MaternalWardPatientCardProps } from '../../ward-view/maternal-ward/maternal-ward-patient-card.component';
|
|
6
6
|
import WardPatientAge from '../row-elements/ward-patient-age.component';
|
|
7
7
|
import WardPatientIdentifier from '../row-elements/ward-patient-identifier.component';
|
|
8
8
|
import WardPatientLocation from '../row-elements/ward-patient-location.component';
|
package/src/ward-view/{materal-ward → maternal-ward}/maternal-ward-patient-card.component.tsx
RENAMED
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import { Tag } from '@carbon/react';
|
|
4
4
|
import { useTranslation } from 'react-i18next';
|
|
5
|
-
import {
|
|
5
|
+
import { type WardPatient } from '../../types';
|
|
6
6
|
import CodedObsTagsRow from '../../ward-patient-card/card-rows/coded-obs-tags-row.component';
|
|
7
7
|
import MaternalWardPatientCardHeader from './maternal-ward-patient-card-header.component';
|
|
8
8
|
import maternalWardPatientCardStyles from './maternal-ward-patient-card.scss';
|
|
@@ -33,7 +33,7 @@ export interface MaternalWardPatientCardProps {
|
|
|
33
33
|
* but also those of the the patient's children in same bed. This is done to ensure that the children's
|
|
34
34
|
* patient cards are always rendered right below the mother's.
|
|
35
35
|
*
|
|
36
|
-
* @param
|
|
36
|
+
* @param props
|
|
37
37
|
* @returns
|
|
38
38
|
*/
|
|
39
39
|
const MaternalWardPatientCard: React.FC<MaternalWardPatientCardProps> = (props) => {
|
|
@@ -29,7 +29,7 @@ const MaternalWardView = () => {
|
|
|
29
29
|
<WardMetrics
|
|
30
30
|
metrics={[
|
|
31
31
|
WardMetricType.PATIENTS,
|
|
32
|
-
WardMetricType.
|
|
32
|
+
WardMetricType.FEMALES_OF_REPRODUCTIVE_AGE,
|
|
33
33
|
WardMetricType.NEWBORNS,
|
|
34
34
|
WardMetricType.FREE_BEDS,
|
|
35
35
|
WardMetricType.TOTAL_BEDS,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { showNotification, useAppContext, useFeatureFlag } from '@openmrs/esm-framework';
|
|
2
|
-
import React from 'react';
|
|
2
|
+
import React, { useMemo } from 'react';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
4
|
import { WardMetricType, type WardViewContext } from '../types';
|
|
5
5
|
import { getWardMetricNameTranslation, getWardMetrics } from '../ward-view/ward-view.resource';
|
|
6
6
|
import WardMetric from './ward-metric.component';
|
|
7
|
-
import styles from '
|
|
7
|
+
import styles from './ward-metrics.scss';
|
|
8
8
|
|
|
9
9
|
interface WardMetricsProps {
|
|
10
10
|
metrics?: WardMetricType[];
|
|
@@ -23,6 +23,12 @@ const WardMetrics: React.FC<WardMetricsProps> = ({
|
|
|
23
23
|
admissionLocationResponse?.isLoading ||
|
|
24
24
|
inpatientAdmissionResponse?.isLoading ||
|
|
25
25
|
inpatientRequestResponse?.isLoading;
|
|
26
|
+
|
|
27
|
+
const wardMetricValues = useMemo(
|
|
28
|
+
() => (!wardPatientGroupDetails ? null : getWardMetrics(wardPatientGroupDetails)),
|
|
29
|
+
[wardPatientGroupDetails],
|
|
30
|
+
);
|
|
31
|
+
|
|
26
32
|
if (!wardPatientGroupDetails) return <></>;
|
|
27
33
|
|
|
28
34
|
if (error) {
|
|
@@ -33,23 +39,22 @@ const WardMetrics: React.FC<WardMetricsProps> = ({
|
|
|
33
39
|
});
|
|
34
40
|
}
|
|
35
41
|
|
|
36
|
-
const wardMetricValues = getWardMetrics(wardPatientGroupDetails);
|
|
37
42
|
return (
|
|
38
43
|
<div className={styles.metricsContainer}>
|
|
39
44
|
{metrics.includes(WardMetricType.PATIENTS) && (
|
|
40
45
|
<WardMetric
|
|
41
46
|
metricName={getWardMetricNameTranslation('patients', t)}
|
|
42
|
-
metricValue={wardMetricValues['patients']}
|
|
47
|
+
metricValue={wardMetricValues['patients'] ?? '--'}
|
|
43
48
|
isLoading={false}
|
|
44
49
|
key={'patients'}
|
|
45
50
|
/>
|
|
46
51
|
)}
|
|
47
|
-
{metrics.includes(WardMetricType.
|
|
52
|
+
{metrics.includes(WardMetricType.FEMALES_OF_REPRODUCTIVE_AGE) &&
|
|
48
53
|
wardMetricValues['femalesOfReproductiveAge'] &&
|
|
49
54
|
wardMetricValues['femalesOfReproductiveAge'] !== '0' && (
|
|
50
55
|
<WardMetric
|
|
51
56
|
metricName={getWardMetricNameTranslation('femalesOfReproductiveAge', t)}
|
|
52
|
-
metricValue={wardMetricValues['femalesOfReproductiveAge']}
|
|
57
|
+
metricValue={wardMetricValues['femalesOfReproductiveAge'] ?? '--'}
|
|
53
58
|
isLoading={!!isLoading || !!isDataLoading}
|
|
54
59
|
key={'femalesOfReproductiveAge'}
|
|
55
60
|
/>
|
|
@@ -59,7 +64,7 @@ const WardMetrics: React.FC<WardMetricsProps> = ({
|
|
|
59
64
|
wardMetricValues['newborns'] !== '0' && (
|
|
60
65
|
<WardMetric
|
|
61
66
|
metricName={getWardMetricNameTranslation('newborns', t)}
|
|
62
|
-
metricValue={wardMetricValues['newborns']}
|
|
67
|
+
metricValue={wardMetricValues['newborns'] ?? '--'}
|
|
63
68
|
isLoading={!!isLoading || !!isDataLoading}
|
|
64
69
|
key={'newborns'}
|
|
65
70
|
/>
|
|
@@ -69,7 +74,7 @@ const WardMetrics: React.FC<WardMetricsProps> = ({
|
|
|
69
74
|
{metrics.includes(WardMetricType.FREE_BEDS) && (
|
|
70
75
|
<WardMetric
|
|
71
76
|
metricName={getWardMetricNameTranslation('freeBeds', t)}
|
|
72
|
-
metricValue={wardMetricValues['freeBeds']}
|
|
77
|
+
metricValue={wardMetricValues['freeBeds'] ?? '--'}
|
|
73
78
|
isLoading={!!isLoading || !!isDataLoading}
|
|
74
79
|
key={'freeBeds'}
|
|
75
80
|
/>
|
|
@@ -77,7 +82,7 @@ const WardMetrics: React.FC<WardMetricsProps> = ({
|
|
|
77
82
|
{metrics.includes(WardMetricType.TOTAL_BEDS) && (
|
|
78
83
|
<WardMetric
|
|
79
84
|
metricName={getWardMetricNameTranslation('totalBeds', t)}
|
|
80
|
-
metricValue={wardMetricValues['totalBeds']}
|
|
85
|
+
metricValue={wardMetricValues['totalBeds'] ?? '--'}
|
|
81
86
|
isLoading={!!isLoading || !!isDataLoading}
|
|
82
87
|
key={'totalBeds'}
|
|
83
88
|
/>
|
|
@@ -85,9 +90,9 @@ const WardMetrics: React.FC<WardMetricsProps> = ({
|
|
|
85
90
|
{metrics.includes(WardMetricType.PENDING_OUT) && (
|
|
86
91
|
<WardMetric
|
|
87
92
|
metricName={getWardMetricNameTranslation('pendingOut', t)}
|
|
88
|
-
metricValue={wardPatientGroupDetails?.wardPatientPendingCount?.toString()}
|
|
93
|
+
metricValue={error ? '--' : (wardPatientGroupDetails?.wardPatientPendingCount?.toString() ?? '--')}
|
|
89
94
|
isLoading={!!isDataLoading}
|
|
90
|
-
key=
|
|
95
|
+
key={'pendingOut'}
|
|
91
96
|
/>
|
|
92
97
|
)}
|
|
93
98
|
</>
|
|
@@ -19,7 +19,7 @@ describe('Ward Metrics', () => {
|
|
|
19
19
|
expect(screen.queryByText('Infants')).not.toBeInTheDocument();
|
|
20
20
|
});
|
|
21
21
|
it('Should display extra metrics when configured', () => {
|
|
22
|
-
renderWithSwr(<WardMetrics metrics={[WardMetricType.
|
|
22
|
+
renderWithSwr(<WardMetrics metrics={[WardMetricType.FEMALES_OF_REPRODUCTIVE_AGE]} />);
|
|
23
23
|
expect(screen.getByText('Mothers')).toBeInTheDocument();
|
|
24
24
|
expect(screen.queryByText('Patients')).not.toBeInTheDocument();
|
|
25
25
|
expect(screen.queryByText('Free beds')).not.toBeInTheDocument();
|
package/dist/504.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([["504"],{2493:function(e,n,t){t.d(n,{Z:()=>l});var r=t(49130),a=t.n(r),i=t(22577),o=t.n(i)()(a());o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-ward__mother-child-row__motherOrBabyRow___9fHo5{display:flex}.-esm-ward__mother-child-row__motherOrBabyRowElementsDiv___bHVH7{flex:1}.-esm-ward__mother-child-row__motherOrBabyIconDiv___mENJC{display:flex;align-items:center}.-esm-ward__mother-child-row__motherOrBabyIcon___8SN9a{padding:.25rem;border-radius:50%;background-color:#e0e0e0;margin-right:.5rem}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/ward-patient-card/card-rows/mother-child-row.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CC1DF,sDACE,YAAA,CAGF,iEACE,MAAA,CAGF,0DACE,YAAA,CACA,kBAAA,CAGF,uDACE,cCDW,CDEX,iBAAA,CACA,wBDMO,CCLP,kBCCW",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.motherOrBabyRow {\n display: flex;\n}\n\n.motherOrBabyRowElementsDiv {\n flex: 1;\n}\n\n.motherOrBabyIconDiv {\n display: flex;\n align-items: center;\n}\n\n.motherOrBabyIcon {\n padding: layout.$spacing-02;\n border-radius: 50%;\n background-color: $grey-2;\n margin-right: layout.$spacing-03;\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n"],sourceRoot:""}]),o.locals={motherOrBabyRow:"-esm-ward__mother-child-row__motherOrBabyRow___9fHo5",motherOrBabyRowElementsDiv:"-esm-ward__mother-child-row__motherOrBabyRowElementsDiv___bHVH7",motherOrBabyIconDiv:"-esm-ward__mother-child-row__motherOrBabyIconDiv___mENJC",motherOrBabyIcon:"-esm-ward__mother-child-row__motherOrBabyIcon___8SN9a"};let l=o},544:function(e,n,t){t.d(n,{Z:()=>l});var r=t(49130),a=t.n(r),i=t(22577),o=t.n(i)()(a());o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-ward__maternal-ward-patient-card__motherChildBedDivider___1dB85{background-color:#fff;color:#525252;padding:.125rem;display:flex;align-items:center;justify-content:space-between}.-esm-ward__maternal-ward-patient-card__motherChildBedDividerLine___NXm0e{height:1px;width:30%;border-top:1px dashed #161616}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/ward-view/materal-ward/maternal-ward-patient-card.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,sEACE,qBDFM,CCGN,aDCQ,CAAA,eEIG,CDHX,YAAA,CACA,kBAAA,CACA,6BAAA,CAGF,0EACE,UAAA,CACA,SAAA,CACA,6BAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@openmrs/esm-styleguide/src/vars';\n@use '@carbon/type';\n\n.motherChildBedDivider {\n background-color: vars.$ui-02;\n color: vars.$text-02;\n padding: layout.$spacing-01;\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n\n.motherChildBedDividerLine {\n height: 1px;\n width: 30%;\n border-top: 1px dashed vars.$ui-05;\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n"],sourceRoot:""}]),o.locals={motherChildBedDivider:"-esm-ward__maternal-ward-patient-card__motherChildBedDivider___1dB85",motherChildBedDividerLine:"-esm-ward__maternal-ward-patient-card__motherChildBedDividerLine___NXm0e"};let l=o},67724:function(e,n,t){t.r(n),t.d(n,{default:()=>ep});var r=t(27350),a=t.n(r),i=t(20708),o=t(66954),l=t(35436),s=t(68892);function c(e){var n,t,r,a,o=!(arguments.length>1)||void 0===arguments[1]||arguments[1],l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=(n="".concat(i.restBaseUrl,"/emrapi/maternal/mothersAndChildren"),new URL((0,i.makeUrl)(n),window.location.toString())),c=e.mothers,d=e.children,u=e.requireChildBornDuringMothersActiveVisit,p=e.requireChildHasActiveVisit,m=e.requireMotherHasActiveVisit,b=!0,h=!1,g=void 0;try{for(var f,v=(null!=c?c:[])[Symbol.iterator]();!(b=(f=v.next()).done);b=!0){var y=f.value;s.searchParams.append("mother",y)}}catch(e){h=!0,g=e}finally{try{b||null==v.return||v.return()}finally{if(h)throw g}}var A=!0,$=!1,w=void 0;try{for(var C,E=(null!=d?d:[])[Symbol.iterator]();!(A=(C=E.next()).done);A=!0){var _=C.value;s.searchParams.append("child",_)}}catch(e){$=!0,w=e}finally{try{A||null==E.return||E.return()}finally{if($)throw w}}return s.searchParams.append("requireMotherHasActiveVisit",null!=(t=null==m?void 0:m.toString())?t:"false"),s.searchParams.append("requireChildHasActiveVisit",null!=(r=null==p?void 0:p.toString())?r:"false"),s.searchParams.append("requireChildBornDuringMothersActiveVisit",null!=(a=null==u?void 0:u.toString())?a:"false"),l&&s.searchParams.append("v",l),(0,i.useOpenmrsFetchAll)(o?s:null)}var d="custom:(childAdmission,mother:(person,identifiers:full,uuid),child:(person,identifiers:full,uuid),motherAdmission)",u=t(28854),p=t(32515),m=t(16709),b=t.n(m),h=t(39684),g=t(26526),f=t(20241),v=t(86587),y=t(9767),A=t(94806);let $=function(e){var n=e.id,t=e.patient,r=e.visit,i=(0,p.HK)("coloredObsTags",n),o=null!=i?i:{},l=o.conceptUuid,c=o.summaryLabel,d=o.summaryLabelColor,u=(0,g.s)({patient:t.uuid,concept:l},null!=l,f.pU),m=u.data,b=u.isLoading,$=(0,s.useTranslation)().t,w=(0,f.MN)(null!=(C=null==i?void 0:i.tags)?C:[]);if(b)return a().createElement("div",{className:A.Z.wardPatientCardRow},a().createElement(v.Z,null));var C,E,_,k=null==m?void 0:m.filter(function(e){var n;return(null==(n=e.encounter.visit)?void 0:n.uuid)==(null==r?void 0:r.uuid)}),B=null!=c?$(c):null==k||null==(_=k[0])||null==(E=_.concept)?void 0:E.display,P=[],x=null==k?void 0:k.map(function(e){var n=e.value,t=n.display,r=n.uuid,i=null==w?void 0:w.get(r);return i?a().createElement(y.Z,{tooltipContent:(0,f.Gp)(e,$)},a().createElement(h.Vp9,{type:i,key:"ward-coded-obs-tag-".concat(e.uuid)},t)):(P.push(a().createElement("div",{key:r},t," (",(0,f.Gp)(e,$),")")),null)}).filter(function(e){return null!=e});return(null==x?void 0:x.length)>0||P.length>0?a().createElement("div",{className:A.Z.wardPatientCardRow},a().createElement("span",{className:A.Z.wardPatientObsLabel},x,P.length>0?a().createElement(y.Z,{tooltipContent:P},a().createElement(h.Vp9,{type:d},$("countItems","{{count}} {{item}}",{count:P.length,item:B}))):null)):null};var w=t(99382),C=t(95705);let E=function(e){var n,t,r=e.patient,i=e.id,o=null==r||null==(n=r.person)?void 0:n.preferredAddress,l=(0,p.HK)("patientAddress",i);return a().createElement(a().Fragment,null,null==l||null==(t=l.fields)?void 0:t.map(function(e,n){return(null==o?void 0:o[e])?a().createElement("div",{key:n},null==o?void 0:o[e]):a().createElement("div",{key:n})}))};var _=t(51562),k=t(7467),B=t(49004),P=t(8031);let x=function(e){var n=e.wardPatient,t=n.patient,r=n.bed,i=n.visit,o=n.inpatientAdmission,l=(null!=o?o:{}).firstAdmissionOrTransferEncounter;return a().createElement("div",{className:b()(A.Z.wardPatientCardRow,A.Z.wardPatientCardHeader)},r?a().createElement(C.Z,{bed:r}):null,a().createElement(k.Z,{patient:t}),a().createElement(_.Z,{id:"patient-identifier",patient:t}),a().createElement(w.Z,{patient:t}),a().createElement(E,{id:"patient-address",patient:t}),a().createElement(B.Z,{id:"admission-reason",patient:t,visit:i}),a().createElement(P.Z,{firstAdmissionOrTransferEncounter:l}))};var O=t(46062),N=t.n(O),D=t(44036),Z=t.n(D),I=t(96793),S=t.n(I),T=t(17892),R=t.n(T),M=t(11173),L=t.n(M),q=t(42464),F=t.n(q),H=t(544),G={};G.styleTagTransform=F(),G.setAttributes=R(),G.insert=S().bind(null,"head"),G.domAPI=Z(),G.insertStyleElement=L(),N()(H.Z,G);let U=H.Z&&H.Z.locals?H.Z.locals:void 0,V=function(e){var n,t=e.inpatientAdmission,r=null==t||null==(n=t.encounterAssigningToCurrentInpatientLocation.location)?void 0:n.display;return r?a().createElement("div",null,a().createElement("span",null,r)):a().createElement(a().Fragment,null)};var j=t(2493),W={};W.styleTagTransform=F(),W.setAttributes=R(),W.insert=S().bind(null,"head"),W.domAPI=Z(),W.insertStyleElement=L(),N()(j.Z,W);let X=j.Z&&j.Z.locals?j.Z.locals:void 0;var Y=function(e){var n=e.otherPatient,t=e.otherPatientAdmission,r=e.isOtherPatientTheMother?i.MotherIcon:i.BabyIcon;return a().createElement("div",{key:n.uuid,className:b()(X.motherOrBabyRow,A.Z.wardPatientCardRow)},a().createElement("div",{className:X.motherOrBabyIconDiv},a().createElement(r,{className:X.motherOrBabyIcon,size:24})),a().createElement("div",{className:b()(X.motherOrBabyRowElementsDiv,A.Z.dotSeparatedChildren)},a().createElement(k.Z,{patient:n}),a().createElement(_.Z,{id:"patient-identifier",patient:n}),a().createElement(w.Z,{patient:n}),a().createElement(V,{inpatientAdmission:t})))};let z=function(e){var n,t=e.wardPatient,r=e.childrenOfWardPatientInSameBed,o=t.patient,l=(null!=(n=(0,i.useAppContext)("maternal-ward-view-context"))?n:{}).motherChildRelationships,s=null!=l?l:{},c=s.childrenByMotherUuid,d=s.motherByChildUuid,u=null==d?void 0:d.get(o.uuid),p=null==c?void 0:c.get(o.uuid),m=null==p?void 0:p.filter(function(e){return!(null==r?void 0:r.some(function(n){return n.patient.uuid==e.patient.uuid}))});return a().createElement(a().Fragment,null,u&&a().createElement(Y,{otherPatient:u.patient,otherPatientAdmission:u.currentAdmission,isOtherPatientTheMother:!0}),null==m?void 0:m.map(function(e){return a().createElement(Y,{key:e.patient.uuid,otherPatient:e.patient,otherPatientAdmission:e.currentAdmission,isOtherPatientTheMother:!1})}))};var J=t(21196),K=t(61597),Q=t(78956),ee=t(94127);function en(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}var et=function(){var e=(0,s.useTranslation)().t;return a().createElement("div",{className:U.motherChildBedDivider},a().createElement("div",{className:U.motherChildBedDividerLine}),a().createElement(h.Vp9,{type:"purple"},e("motherChildBedShare","Mother / Child")),a().createElement("div",{className:U.motherChildBedDividerLine}))};let er=function(e){var n=e.wardPatient,t=e.childrenOfWardPatientInSameBed,r=n.patient,i=n.visit,o=n.bed,l=n.inpatientAdmission,s=(null!=l?l:{}).encounterAssigningToCurrentInpatientLocation,c=a().createElement(a().Fragment,null,a().createElement(K.Z,{wardPatient:n,relatedTransferPatients:t},a().createElement(x,{wardPatient:n}),a().createElement("div",{className:b()(A.Z.wardPatientCardRow,A.Z.dotSeparatedChildren)},a().createElement(Q.Z,{encounterAssigningToCurrentInpatientLocation:s}),a().createElement(B.Z,{id:"gravida",patient:r,visit:i})),a().createElement(ee.Z,{wardPatient:n}),a().createElement(J.Z,{id:"pending-items",wardPatient:n}),a().createElement($,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({id:"pregnancy-complications"},n)),a().createElement(z,e)),null==t?void 0:t.map(function(e){var r,i=[n].concat(function(e){if(Array.isArray(e))return en(e)}(r=t.filter(function(n){return n.patient.uuid!==e.patient.uuid}))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,n){if(e){if("string"==typeof e)return en(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return en(e,n)}}(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());return a().createElement(a().Fragment,{key:e.patient.uuid},a().createElement(et,null),a().createElement(K.Z,{wardPatient:e,relatedTransferPatients:i},a().createElement(x,{wardPatient:e}),a().createElement(J.Z,{id:"pending-items",wardPatient:e})))}));return o?c:a().createElement("div",{className:A.Z.unassignedPatient},a().createElement("div",{key:"unassigned-bed-pt-"+n.patient.uuid},c))},ea=function(e){var n,t=null!=e?e:{},r=t.motherByChildUuid,o=t.isLoading,l=(null!=(n=(0,i.useAppContext)("ward-view-context"))?n:{}).wardPatientGroupDetails,s=null!=l?l:{},c=s.bedLayouts,d=s.wardAdmittedPatientsWithBed,m=s.inpatientAdmissionsByPatientUuid,b=null==c?void 0:c.map(function(e){var n=e.patients,t=(0,p.i)(e),i=new Map,l=n.map(function(e){var n=null==d?void 0:d.get(e.uuid);if(n){var r=n.patient,a=n.visit,i=n.currentInpatientRequest;return{patient:r,visit:a,bed:t,inpatientAdmission:n,inpatientRequest:i||null}}var o=m.get(e.uuid);return{patient:e,visit:null==o?void 0:o.visit,bed:t,inpatientAdmission:o,inpatientRequest:null}}).filter(function(e){var t,a=e.patient.uuid,o=(null!=(t=null==r?void 0:r.get(a))?t:{}).patient,l=n.some(function(e){return e.uuid==(null==o?void 0:o.uuid)});return l&&(i.has(o.uuid)||i.set(o.uuid,[]),i.get(o.uuid).push(e)),!l}).map(function(e){return a().createElement(er,{key:e.patient.uuid,wardPatient:e,childrenOfWardPatientInSameBed:i.get(e.patient.uuid)})});return a().createElement(u.Z,{key:t.uuid,bed:t,patientCards:l,isLoadingDivider:o})});return a().createElement(a().Fragment,null,b)};var ei=t(78184),eo=t(70418);let el=function(){var e,n=(null!=(e=(0,i.useAppContext)("ward-view-context"))?e:{}).wardPatientGroupDetails,t=(0,s.useTranslation)().t,r=(null!=n?n:{}).inpatientRequestResponse,o=null!=r?r:{},l=o.inpatientRequests,c=o.isLoading,d=o.error;return c?a().createElement(v.Z,null):d?a().createElement(i.ErrorState,{headerTitle:t("admissionRequests","Admission requests"),error:d}):a().createElement(a().Fragment,null,null==l?void 0:l.map(function(e,n){var t={patient:e.patient,visit:e.visit,bed:null,inpatientRequest:e,inpatientAdmission:null};return a().createElement(eo.Z,{key:"admission-request-card-".concat(n),wardPatient:t},a().createElement($,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({id:"pregnancy-complications"},t)),a().createElement(z,{wardPatient:t,childrenOfWardPatientInSameBed:[]}),a().createElement(ei.Z,{id:"admission-request-note",wardPatient:t}))}))},es=function(){var e,n=(null!=(e=(0,i.useAppContext)("ward-view-context"))?e:{}).wardPatientGroupDetails,t=(null!=n?n:{}).wardUnassignedPatientsList,r=null==t?void 0:t.map(function(e){return a().createElement(er,{wardPatient:{patient:e.patient,visit:e.visit,bed:null,inpatientAdmission:e,inpatientRequest:e.currentInpatientRequest},childrenOfWardPatientInSameBed:[],key:e.patient.uuid})});return a().createElement(a().Fragment,null,r)};var ec=t(45019),ed=t(29398),eu=t(12296);let ep=function(){var e,n,t,u,p,m,b,h,g,f,v,y=(0,o.v)();(0,i.useDefineAppContext)("ward-view-context",{wardPatientGroupDetails:y,WardPatientHeader:x});var A=y.allWardPatientUuids,$=y.isLoading,w=(e=Array.from(A),n=!$,t=(0,s.useTranslation)().t,p=(u=c({mothers:e,requireMotherHasActiveVisit:!0,requireChildHasActiveVisit:!0,requireChildBornDuringMothersActiveVisit:!0},n&&e.length>0,d)).data,m=u.isLoading,b=u.error,g=(h=c({children:e,requireMotherHasActiveVisit:!0,requireChildHasActiveVisit:!0,requireChildBornDuringMothersActiveVisit:!0},n&&e.length>0,d)).data,f=h.isLoading,v=h.error,b&&(0,i.showNotification)({title:t("errorLoadingChildren","Error loading children info"),kind:"error",critical:!0,description:null==b?void 0:b.message}),v&&(0,i.showNotification)({title:t("errorLoadingMother","Error loading mother info"),kind:"error",critical:!0,description:null==v?void 0:v.message}),(0,r.useMemo)(function(){var e=new Map,n=new Map,t=m||f,r=!0,a=!1,i=void 0;try{for(var o,l=(null!=g?g:[])[Symbol.iterator]();!(r=(o=l.next()).done);r=!0){var s=o.value,c=s.child,d=s.childAdmission,u=s.mother,b=s.motherAdmission;e.set(c.uuid,{patient:u,currentAdmission:b}),n.has(u.uuid)||n.set(u.uuid,[]),n.get(u.uuid).push({patient:c,currentAdmission:d})}}catch(e){a=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw i}}var h=!0,v=!1,y=void 0;try{for(var A,$=(null!=p?p:[])[Symbol.iterator]();!(h=(A=$.next()).done);h=!0)!function(){var t=A.value,r=t.child,a=t.childAdmission,i=t.mother,o=t.motherAdmission;e.set(r.uuid,{patient:i,currentAdmission:o}),n.has(i.uuid)||n.set(i.uuid,[]);var l=n.get(i.uuid);l.some(function(e){return e.patient.uuid==r.uuid})||l.push({patient:r,currentAdmission:a})}()}catch(e){v=!0,y=e}finally{try{h||null==$.return||$.return()}finally{if(v)throw y}}return{motherByChildUuid:e,childrenByMotherUuid:n,isLoading:t}},[p,g,m,f]));(0,i.useDefineAppContext)("maternal-ward-view-context",{motherChildRelationships:w});var C=a().createElement(ea,w),E=a().createElement(eu.Z,{metrics:[l.o.PATIENTS,l.o.FEMALE_OF_REPRODUCTIVE_AGE,l.o.NEWBORNS,l.o.FREE_BEDS,l.o.TOTAL_BEDS,l.o.PENDING_OUT]}),_=a().createElement(es,null),k=a().createElement(el,null);return a().createElement(a().Fragment,null,a().createElement(ed.Z,{wardPendingPatients:k,wardMetrics:E}),a().createElement(ec.Z,{wardBeds:C,wardUnassignedPatients:_}))}}}]);
|
package/dist/504.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"504.js","sources":["webpack://@openmrs/esm-ward-app/./src/ward-patient-card/card-rows/mother-child-row.scss","webpack://@openmrs/esm-ward-app/./src/ward-view/materal-ward/maternal-ward-patient-card.scss","webpack://@openmrs/esm-ward-app/./src/hooks/useMotherAndChildren.ts","webpack://@openmrs/esm-ward-app/./src/ward-view/materal-ward/maternal-ward-view.resource.ts","webpack://@openmrs/esm-ward-app/./src/ward-patient-card/card-rows/coded-obs-tags-row.component.tsx","webpack://@openmrs/esm-ward-app/./src/ward-patient-card/row-elements/ward-patient-header-address.component.tsx","webpack://@openmrs/esm-ward-app/./src/ward-view/materal-ward/maternal-ward-patient-card-header.component.tsx","webpack://@openmrs/esm-ward-app/./src/ward-view/materal-ward/maternal-ward-patient-card.scss?32dd","webpack://@openmrs/esm-ward-app/./src/ward-patient-card/row-elements/ward-patient-location.component.tsx","webpack://@openmrs/esm-ward-app/./src/ward-patient-card/card-rows/mother-child-row.scss?a266","webpack://@openmrs/esm-ward-app/./src/ward-patient-card/card-rows/mother-child-row.component.tsx","webpack://@openmrs/esm-ward-app/./src/ward-view/materal-ward/maternal-ward-patient-card.component.tsx","webpack://@openmrs/esm-ward-app/./src/ward-view/materal-ward/maternal-ward-beds.component.tsx","webpack://@openmrs/esm-ward-app/./src/ward-view/materal-ward/maternal-ward-pending-patients.component.tsx","webpack://@openmrs/esm-ward-app/./src/ward-view/materal-ward/maternal-ward-unassigned-patients.component.tsx","webpack://@openmrs/esm-ward-app/./src/ward-view/materal-ward/maternal-ward-view.component.tsx"],"names":["useMotherAndChildren","criteria","path","requireMotherHasActiveVisit","requireChildHasActiveVisit","requireChildBornDuringMothersActiveVisit","fetch","rep","url","restBaseUrl","URL","makeUrl","window","location","toString","mothers","children","m","searchParams","append","c","useOpenmrsFetchAll","motherAndChildrenRep","id","patient","visit","config","useElementConfig","conceptUuid","summaryLabel","summaryLabelColor","useObs","uuid","concept","obsCustomRepresentation","data","isLoading","t","useTranslation","conceptToTagColorMap","useConceptToTagColorMap","tags","div","className","styles","WardPatientSkeletonText","obsToDisplay","filter","o","encounter","summaryLabelToDisplay","display","summaryTagTooltipText","coloredOpsTags","map","value","color","get","WardPatientResponsiveTooltip","tooltipContent","getObsEncounterString","Tag","type","key","push","length","span","count","item","preferredAddress","person","fields","field","i","wardPatient","bed","inpatientAdmission","firstAdmissionOrTransferEncounter","classNames","WardPatientBedNumber","WardPatientName","WardPatientIdentifier","WardPatientAge","WardPatientAddress","WardPatientObs","WardPatientTimeSinceAdmission","locationDisplay","encounterAssigningToCurrentInpatientLocation","MotherOrChild","otherPatient","otherPatientAdmission","Icon","isOtherPatientTheMother","MotherIcon","BabyIcon","wardPatientCardStyles","size","WardPatientLocation","useAppContext","childrenOfWardPatientInSameBed","motherChildRelationships","childrenByMotherUuid","motherByChildUuid","motherOfPatient","childrenOfPatient","childrenOfPatientNotInSameBed","child","some","childInSameBed","currentAdmission","childOfPatient","MotherChildBedShareDivider","maternalWardPatientCardStyles","props","card","WardPatientCard","relatedTransferPatients","MaternalWardPatientCardHeader","WardPatientTimeOnWard","IncorrectAdmissionWarningRow","PendingItemsRow","CodedObsTagsRow","MotherChildRow","childWardPatient","wp","React","isLoadingMotherChildRelationships","wardPatientGroupDetails","bedLayouts","wardAdmittedPatientsWithBed","inpatientAdmissionsByPatientUuid","wardBeds","bedLayout","patientsInCurrentBed","patients","bedLayoutToBed","childrenInSameBedByMotherUuid","Map","patientCards","wardPatients","currentInpatientRequest","inpatientRequest","admissionElsewhere","patientUuid","mother","motherInSameBed","p","has","set","MaternalWardPatientCard","WardBed","isLoadingDivider","inpatientRequestResponse","inpatientRequests","isLoadingInpatientRequests","errorFetchingInpatientRequests","error","ErrorState","headerTitle","request","AdmissionRequestCard","AdmissionRequestNoteRow","wardUnassignedPatientsList","wardUnassignedPatients","allWardPatientUuids","childrenData","isLoadingChildrenData","childrenDataError","motherData","isLoadingMotherData","motherDataError","useWardPatientGrouping","useDefineAppContext","WardPatientHeader","Array","from","showNotification","title","kind","critical","description","message","useMemo","childAdmission","motherAdmission","MaternalWardBeds","wardMetrics","WardMetrics","metrics","WardMetricType","MaternalWardUnassignedPatients","wardPendingPatients","MaternalWardPendingPatients","WardViewHeader","Ward"],"mappings":"qMAGI,EAA0B,A,SAA4B,KAE1D,EAAwB,IAAI,CAAC,CAAC,EAAO,EAAE,CAAE,yrBAA0rB,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,oEAAoE,6EAA6E,CAAC,MAAQ,EAAE,CAAC,SAAW,kMAAkM,eAAiB,CAAC,g/DAAg/D,gYAAgY,05DAA05D,CAAC,WAAa,EAAE,EAAE,EAE99K,EAAwB,MAAM,CAAG,CAChC,gBAAmB,uDACnB,2BAA8B,kEAC9B,oBAAuB,2DACvB,iBAAoB,uDACrB,EACA,MAAe,C,0ECVX,EAA0B,A,SAA4B,KAE1D,EAAwB,IAAI,CAAC,CAAC,EAAO,EAAE,CAAE,qoBAAsoB,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,yEAAyE,6EAA6E,CAAC,MAAQ,EAAE,CAAC,SAAW,gMAAgM,eAAiB,CAAC,g/DAAg/D,2YAA2Y,05DAA05D,CAAC,WAAa,EAAE,EAAE,EAEx7K,EAAwB,MAAM,CAAG,CAChC,sBAAyB,uEACzB,0BAA6B,0EAC9B,EACA,MAAe,C,2HCAR,SAASA,EACdC,CAA0C,E,IA+BxBC,EAVqCC,EACDC,EAGpDC,EAxBFC,EAAAA,CAAAA,CAAAA,UAAAA,MAAAA,CAAAA,IAAAA,AAAAA,KAAAA,IAAAA,SAAAA,CAAAA,EAAAA,EAAAA,SAAAA,CAAAA,EAAAA,CACAC,EAAAA,UAAAA,MAAAA,CAAAA,GAAAA,AAAAA,KAAAA,IAAAA,SAAAA,CAAAA,EAAAA,CAAAA,SAAAA,CAAAA,EAAAA,CAAc,KAERC,GA2BYN,EA3BM,GAAc,OAAZO,EAAAA,WA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