@openmrs/esm-ward-app 9.2.1-pre.6649 → 9.2.1-pre.6651

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.
@@ -1,4 +1,4 @@
1
- assets by path *.js 3.5 MiB
1
+ assets by path *.js 3.51 MiB
2
2
  assets by chunk 2.57 MiB (id hint: vendors)
3
3
  asset 1369.js 1.88 MiB [emitted] [minimized] [big] (id hint: vendors) 2 related assets
4
4
  asset 1058.js 190 KiB [emitted] [minimized] (id hint: vendors) 2 related assets
@@ -18,8 +18,8 @@ runtime modules 42.1 KiB 28 modules
18
18
  built modules 8.22 MiB (javascript) 294 bytes (share-init) 294 bytes (consume-shared) [built]
19
19
  modules by path ../../node_modules/ 7.23 MiB 603 modules
20
20
  modules by path ./ 1020 KiB
21
- javascript modules 794 KiB 83 modules
22
- optional modules 223 KiB [optional] 39 modules
21
+ javascript modules 797 KiB 84 modules
22
+ optional modules 224 KiB [optional] 39 modules
23
23
  provide-module modules 294 bytes
24
24
  modules by path provide shared module (default) swr/ 126 bytes 3 modules
25
25
  + 4 modules
@@ -33,4 +33,4 @@ This can impact web performance.
33
33
  Assets:
34
34
  1369.js (1.88 MiB)
35
35
 
36
- webpack 5.99.9 compiled with 1 warning in 112454 ms
36
+ webpack 5.99.9 compiled with 1 warning in 136474 ms
package/dist/1326.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([[1326],{61326:(e,t,n)=>{n.r(t),n.d(t,{default:()=>L});var i=n(90380),a=n.n(i),r=n(54440),s=n(83773),l=n(77493),u=n(35487),d=n(18359),o=n(92058),p=n(1248),c=n(37538),m=n(53373),v=n.n(m),A=n(85132),w=n(92182),E=n(7928),P=n(56546),f=n(77),g=n(86901),b=n(80984);const q=function(e){var t=e.wardPatient,n=t.patient,i=t.bed,r=t.inpatientAdmission,s=null!=r?r:{},l=s.encounterAssigningToCurrentInpatientLocation,u=s.firstAdmissionOrTransferEncounter;return a().createElement("div",{className:v()(c.A.wardPatientCardRow,c.A.wardPatientCardHeader)},i?a().createElement(w.A,{bed:i}):null,a().createElement(P.A,{patient:n}),a().createElement(E.A,{id:"patient-identifier",patient:n}),a().createElement(b.A,{patient:n}),a().createElement(A.A,{patient:n}),a().createElement(g.A,{firstAdmissionOrTransferEncounter:u}),a().createElement(f.A,{encounterAssigningToCurrentInpatientLocation:l}))},R=function(e){var t=e.wardPatient,n=t.bed,i=a().createElement(p.A,{wardPatient:t},a().createElement(q,{wardPatient:t}),a().createElement(o.A,{id:"pending-items",wardPatient:t}),a().createElement(d.A,{id:"admission-request-note",wardPatient:t}));return n?i:a().createElement("div",{className:c.A.unassignedPatient},a().createElement("div",{key:"unassigned-bed-pt-"+t.patient.uuid},i))},C=function(){var e,t=(null!==(e=(0,r.useAppContext)("ward-view-context"))&&void 0!==e?e:{}).wardPatientGroupDetails,n=null!=t?t:{},i=n.bedLayouts,s=n.wardAdmittedPatientsWithBed,d=null==i?void 0:i.map(function(e){var t=e.patients,n=(0,u.yZ)(e),i=t.map(function(e){var t=null==s?void 0:s.get(e.uuid);if(t){var i=t.patient,a=t.visit,r=t.currentInpatientRequest;return{patient:i,visit:a,bed:n,inpatientAdmission:t,inpatientRequest:r||null}}return{patient:e,visit:null,bed:n,inpatientAdmission:null,inpatientRequest:null}}).map(function(e){return a().createElement(R,{key:e.patient.uuid,wardPatient:e})});return a().createElement(l.A,{key:n.uuid,bed:n,patientCards:i})});return a().createElement(a().Fragment,null,d)};var k=n(93150),x=n(60607),T=n(36110);const _=function(){var e,t=(null!==(e=(0,r.useAppContext)("ward-view-context"))&&void 0!==e?e:{}).wardPatientGroupDetails,n=(0,k.useTranslation)().t,i=(null!=t?t:{}).inpatientRequestResponse,s=null!=i?i:{},l=s.inpatientRequests,u=s.isLoading,o=s.error;return u?a().createElement(T.A,null):o?a().createElement(r.ErrorState,{headerTitle:n("admissionRequests","Admission requests"),error:o}):a().createElement(a().Fragment,null,null==l?void 0:l.map(function(e,t){var n={patient:e.patient,visit:e.visit,bed:null,inpatientRequest:e,inpatientAdmission:null};return a().createElement(x.A,{key:"admission-request-card-".concat(t),wardPatient:{patient:e.patient,visit:e.visit,bed:null,inpatientRequest:e,inpatientAdmission:null}},a().createElement(d.A,{id:"admission-request-note",wardPatient:n}))}))},h=function(){var e,t=(null!==(e=(0,r.useAppContext)("ward-view-context"))&&void 0!==e?e:{}).wardPatientGroupDetails,n=(null!=t?t:{}).wardUnassignedPatientsList,i=null==n?void 0:n.map(function(e){return a().createElement(R,{wardPatient:{patient:e.patient,visit:e.visit,bed:null,inpatientAdmission:e,inpatientRequest:e.currentInpatientRequest},key:e.patient.uuid})});return a().createElement(a().Fragment,null,i)};var y=n(75546),D=n(18010);const L=function(){var e=(0,s.u)();(0,r.useDefineAppContext)("ward-view-context",{wardPatientGroupDetails:e,WardPatientHeader:q});var t=a().createElement(C,null),n=a().createElement(h,null),i=a().createElement(_,null);return a().createElement(a().Fragment,null,a().createElement(D.A,{wardPendingPatients:i}),a().createElement(y.A,{wardBeds:t,wardUnassignedPatients:n}))}}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([[1326],{61326:(e,t,n)=>{n.r(t),n.d(t,{default:()=>F});var i=n(90380),a=n.n(i),r=n(54440),s=n(83773),u=n(77493),l=n(35487),d=n(18359),o=n(92058),p=n(1248),c=n(37538),m=n(53373),v=n.n(m),A=n(85132),w=n(92182),E=n(7928),P=n(56546),f=n(77),g=n(86901),b=n(80984);const q=function(e){var t=e.wardPatient,n=t.patient,i=t.bed,r=t.inpatientAdmission,s=null!=r?r:{},u=s.encounterAssigningToCurrentInpatientLocation,l=s.firstAdmissionOrTransferEncounter;return a().createElement("div",{className:v()(c.A.wardPatientCardRow,c.A.wardPatientCardHeader)},i?a().createElement(w.A,{bed:i}):null,a().createElement(P.A,{patient:n}),a().createElement(E.A,{id:"patient-identifier",patient:n}),a().createElement(b.A,{patient:n}),a().createElement(A.A,{patient:n}),a().createElement(g.A,{firstAdmissionOrTransferEncounter:l}),a().createElement(f.A,{encounterAssigningToCurrentInpatientLocation:u}))};var R=n(95925);const C=function(e){var t=e.wardPatient,n=t.bed,i=a().createElement(p.A,{wardPatient:t},a().createElement(q,{wardPatient:t}),a().createElement(R.A,{wardPatient:t}),a().createElement(o.A,{id:"pending-items",wardPatient:t}),a().createElement(d.A,{id:"admission-request-note",wardPatient:t}));return n?i:a().createElement("div",{className:c.A.unassignedPatient},a().createElement("div",{key:"unassigned-bed-pt-"+t.patient.uuid},i))},k=function(){var e,t=(null!==(e=(0,r.useAppContext)("ward-view-context"))&&void 0!==e?e:{}).wardPatientGroupDetails,n=null!=t?t:{},i=n.bedLayouts,s=n.wardAdmittedPatientsWithBed,d=n.inpatientAdmissionsByPatientUuid,o=null==i?void 0:i.map(function(e){var t=e.patients,n=(0,l.yZ)(e),i=t.map(function(e){var t=null==s?void 0:s.get(e.uuid);if(t){var i=t.patient,a=t.visit,r=t.currentInpatientRequest;return{patient:i,visit:a,bed:n,inpatientAdmission:t,inpatientRequest:r||null}}var u=d.get(e.uuid);return{patient:e,visit:null==u?void 0:u.visit,bed:n,inpatientAdmission:u,inpatientRequest:null}}).map(function(e){return a().createElement(C,{key:e.patient.uuid,wardPatient:e})});return a().createElement(u.A,{key:n.uuid,bed:n,patientCards:i})});return a().createElement(a().Fragment,null,o)};var x=n(93150),y=n(60607),T=n(36110);const _=function(){var e,t=(null!==(e=(0,r.useAppContext)("ward-view-context"))&&void 0!==e?e:{}).wardPatientGroupDetails,n=(0,x.useTranslation)().t,i=(null!=t?t:{}).inpatientRequestResponse,s=null!=i?i:{},u=s.inpatientRequests,l=s.isLoading,o=s.error;return l?a().createElement(T.A,null):o?a().createElement(r.ErrorState,{headerTitle:n("admissionRequests","Admission requests"),error:o}):a().createElement(a().Fragment,null,null==u?void 0:u.map(function(e,t){var n={patient:e.patient,visit:e.visit,bed:null,inpatientRequest:e,inpatientAdmission:null};return a().createElement(y.A,{key:"admission-request-card-".concat(t),wardPatient:{patient:e.patient,visit:e.visit,bed:null,inpatientRequest:e,inpatientAdmission:null}},a().createElement(d.A,{id:"admission-request-note",wardPatient:n}))}))},h=function(){var e,t=(null!==(e=(0,r.useAppContext)("ward-view-context"))&&void 0!==e?e:{}).wardPatientGroupDetails,n=(null!=t?t:{}).wardUnassignedPatientsList,i=null==n?void 0:n.map(function(e){return a().createElement(C,{wardPatient:{patient:e.patient,visit:e.visit,bed:null,inpatientAdmission:e,inpatientRequest:e.currentInpatientRequest},key:e.patient.uuid})});return a().createElement(a().Fragment,null,i)};var D=n(75546),L=n(18010);const F=function(){var e=(0,s.u)();(0,r.useDefineAppContext)("ward-view-context",{wardPatientGroupDetails:e,WardPatientHeader:q});var t=a().createElement(k,null),n=a().createElement(h,null),i=a().createElement(_,null);return a().createElement(a().Fragment,null,a().createElement(L.A,{wardPendingPatients:i}),a().createElement(D.A,{wardBeds:t,wardUnassignedPatients:n}))}}}]);
package/dist/1326.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"1326.js","mappings":"qXA+BA,QAnB0D,Y,IAAGA,EAAAA,EAAAA,YACnDC,EAAqCD,EAArCC,QAASC,EAA4BF,EAA5BE,IAAKC,EAAuBH,EAAvBG,mBACsEA,EAAAA,QAAAA,EAAsB,CAAC,EAA3GC,EAAoFD,EAApFC,6CAA8CC,EAAsCF,EAAtCE,kCAEtD,OACE,kBAACC,MAAAA,CAAIC,UAAWC,IAAWC,EAAAA,EAAOC,mBAAoBD,EAAAA,EAAOE,wBAC1DT,EAAM,kBAACU,EAAAA,EAAoBA,CAACV,IAAKA,IAAU,KAC5C,kBAACW,EAAAA,EAAeA,CAACZ,QAASA,IAC1B,kBAACa,EAAAA,EAAqBA,CAACC,GAAG,qBAAqBd,QAASA,IACxD,kBAACe,EAAAA,EAAiBA,CAACf,QAASA,IAC5B,kBAACgB,EAA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iCA,QAAAA,EAA2B,CAAC,GAA3D6B,2BAEFC,EAAyBD,aAAAA,EAAAA,EAA4BzB,IAAI,SAAC9B,GAC9D,OACE,kBAACuC,EAAsBA,CACrB1C,YAAa,CACXC,QAASE,EAAmBF,QAC5BsC,MAAOpC,EAAmBoC,MAC1BrC,IAAK,KACLC,mBAAAA,EACAsC,iBAAkBtC,EAAmBqC,yBAEvCd,IAAKvB,EAAmBF,QAAQ0B,MAGtC,GAEA,OAAO,oCAAGgC,EACZ,E,0BCCA,QAnBwB,WACtB,IAAM9B,GAA0B+B,EAAAA,EAAAA,MAChCC,EAAAA,EAAAA,qBAAqC,oBAAqB,CACxDhC,wBAAAA,EACAiC,kBAAmBxC,IAGrB,IAAMU,EAAW,kBAAC+B,EAAeA,MAC3BJ,EAAyB,kBAACK,EAA6BA,MACvDC,EAAsB,kBAACC,EAA0BA,MAEvD,OACE,oCACE,kBAACC,EAAAA,EAAmB,CAAEF,oBAAAA,IACtB,kBAACG,EAAAA,EAAS,CAAEpC,SAAAA,EAAU2B,uBAAAA,IAG5B,C","sources":["webpack://@openmrs/esm-ward-app/./src/ward-view/default-ward/default-ward-patient-card-header.component.tsx","webpack://@openmrs/esm-ward-app/./src/ward-view/default-ward/default-ward-patient-card.component.tsx","webpack://@openmrs/esm-ward-app/./src/ward-view/default-ward/default-ward-beds.component.tsx","webpack://@openmrs/esm-ward-app/./src/ward-view/default-ward/default-ward-pending-patients.component.tsx","webpack://@openmrs/esm-ward-app/./src/ward-view/default-ward/default-ward-unassigned-patients.component.tsx","webpack://@openmrs/esm-ward-app/./src/ward-view/default-ward/default-ward-view.component.tsx"],"names":["wardPatient","patient","bed","inpatientAdmission","encounterAssigningToCurrentInpatientLocation","firstAdmissionOrTransferEncounter","div","className","classNames","styles","wardPatientCardRow","wardPatientCardHeader","WardPatientBedNumber","WardPatientName","WardPatientIdentifier","id","WardPatientGender","WardPatientAge","WardPatientTimeSinceAdmission","WardPatientTimeOnWard","card","WardPatientCard","DefaultWardPatientCardHeader","PendingItemsRow","AdmissionRequestNoteRow","unassignedPatient","key","uuid","useAppContext","wardPatientGroupDetails","bedLayouts","wardAdmittedPatientsWithBed","wardBeds","map","bedLayout","patients","bedLayoutToBed","patientCards","get","visit","currentInpatientRequest","inpatientRequest","DefaultWardPatientCard","WardBed","useTranslation","t","inpatientRequestResponse","inpatientRequests","isLoading","error","isLoadingInpatientRequests","WardPatientSkeletonText","errorFetchingInpatientRequests","ErrorState","headerTitle","request","i","AdmissionRequestCard","wardUnassignedPatientsList","wardUnassignedPatients","useWardPatientGrouping","useDefineAppContext","WardPatientHeader","DefaultWardBeds","DefaultWardUnassignedPatients","wardPendingPatients","DefaultWardPendingPatients","WardViewHeader","Ward"],"sourceRoot":""}
1
+ {"version":3,"file":"1326.js","mappings":"qXA+BA,QAnB0D,Y,IAAGA,EAAAA,EAAAA,YACnDC,EAAqCD,EAArCC,QAASC,EAA4BF,EAA5BE,IAAKC,EAAuBH,EAAvBG,mBACsEA,EAAAA,QAAAA,EAAsB,CAAC,EAA3GC,EAAoFD,EAApFC,6CAA8CC,EAAsCF,EAAtCE,kCAEtD,OACE,kBAACC,MAAAA,CAAIC,UAAWC,IAAWC,EAAAA,EAAOC,mBAAoBD,EAAAA,EAAOE,wBAC1DT,EAAM,kBAACU,EAAAA,EAAoBA,CAACV,IAAKA,IAAU,KAC5C,kBAACW,EAAAA,EAAeA,CAACZ,QAASA,IAC1B,kBAACa,EAAAA,EAAqBA,CAACC,GAAG,qBAAqBd,QAASA,IACxD,kBAACe,EAAAA,EAAiBA,CAACf,QAASA,IAC5B,kBAACgB,EAAAA,EAAcA,CAAChB,QAASA,IACzB,kBAACiB,EAAAA,EAA6BA,CAACb,kCAAmCA,IAClE,kBAACc,EAAAA,EAAqBA,CACpBf,6CAA8CA,IAItD,E,eCGA,QAvBoD,Y,IAAGJ,EAAAA,EAAAA,YAC/C,EAAUA,EAARE,IAEFkB,EACJ,kBAACC,EAAAA,EAAeA,CAACrB,YAAaA,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GAC9D,OACE,kBAAC0C,EAAsBA,CACrB7C,YAAa,CACXC,QAASE,EAAmBF,QAC5BwC,MAAOtC,EAAmBsC,MAC1BvC,IAAK,KACLC,mBAAAA,EACAwC,iBAAkBxC,EAAmBuC,yBAEvCf,IAAKxB,EAAmBF,QAAQ2B,MAGtC,GAEA,OAAO,oCAAGkC,EACZ,E,0BCCA,QAnBwB,WACtB,IAAMhC,GAA0BiC,EAAAA,EAAAA,MAChCC,EAAAA,EAAAA,qBAAqC,oBAAqB,CACxDlC,wBAAAA,EACAmC,kBAAmB3C,IAGrB,IAAMY,EAAW,kBAACgC,EAAeA,MAC3BJ,EAAyB,kBAACK,EAA6BA,MACvDC,EAAsB,kBAACC,EAA0BA,MAEvD,OACE,oCACE,kBAACC,EAAAA,EAAmB,CAAEF,oBAAAA,IACtB,kBAACG,EAAAA,EAAS,CAAErC,SAAAA,EAAU4B,uBAAAA,IAG5B,C","sources":["webpack://@openmrs/esm-ward-app/./src/ward-view/default-ward/default-ward-patient-card-header.component.tsx","webpack://@openmrs/esm-ward-app/./src/ward-view/default-ward/default-ward-patient-card.component.tsx","webpack://@openmrs/esm-ward-app/./src/ward-view/default-ward/default-ward-beds.component.tsx","webpack://@openmrs/esm-ward-app/./src/ward-view/default-ward/default-ward-pending-patients.component.tsx","webpack://@openmrs/esm-ward-app/./src/ward-view/default-ward/default-ward-unassigned-patients.component.tsx","webpack://@openmrs/esm-ward-app/./src/ward-view/default-ward/default-ward-view.component.tsx"],"names":["wardPatient","patient","bed","inpatientAdmission","encounterAssigningToCurrentInpatientLocation","firstAdmissionOrTransferEncounter","div","className","classNames","styles","wardPatientCardRow","wardPatientCardHeader","WardPatientBedNumber","WardPatientName","WardPatientIdentifier","id","WardPatientGender","WardPatientAge","WardPatientTimeSinceAdmission","WardPatientTimeOnWard","card","WardPatientCard","DefaultWardPatientCardHeader","IncorrectAdmissionWarningRow","PendingItemsRow","AdmissionRequestNoteRow","unassignedPatient","key","uuid","useAppContext","wardPatientGroupDetails","bedLayouts","wardAdmittedPatientsWithBed","inpatientAdmissionsByPatientUuid","wardBeds","map","bedLayout","patients","bedLayoutToBed","patientCards","get","visit","currentInpatientRequest","inpatientRequest","admissionElsewhere","DefaultWardPatientCard","WardBed","useTranslation","t","inpatientRequestResponse","inpatientRequests","isLoading","error","isLoadingInpatientRequests","WardPatientSkeletonText","errorFetchingInpatientRequests","ErrorState","headerTitle","request","i","AdmissionRequestCard","wardUnassignedPatientsList","wardUnassignedPatients","useWardPatientGrouping","useDefineAppContext","WardPatientHeader","DefaultWardBeds","DefaultWardUnassignedPatients","wardPendingPatients","DefaultWardPendingPatients","WardViewHeader","Ward"],"sourceRoot":""}
package/dist/4300.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([[4300],{34300:e=>{e.exports=JSON.parse('{"admissionRequestCancelled":"Admission request cancelled.","admissionRequests":"Admission requests","admissionRequestsCount_one":"{{count}} admission request","admissionRequestsCount_other":"{{count}} admission requests","admit":"Admit","admitElsewhere":"Admit elsewhere","admitPatient":"Admit patient","admitting":"Admitting...","alsoSwap":"Also swap:","alsoTransfer":"Also transfer:","backToSearchResults":"Back to search results","bedShare":"Bed share","bedSwap":"Bed swap","cancel":"Cancel","cancelAdmissionRequest":"Cancel admission request","capacity":"Capacity","capacityMetricValue":"{{ metricValue }} %","chooseAnOption":"Choose an option","clinicalForms":"Clinical forms","clinicalNoteLabel":"Write your notes","clinicalNotes":"Clinical notes","countItems_one":"{{count}} {{item}}","countItems_other":"{{count}} {{item}}","days_one":"{{count}} day","days_other":"{{count}} days","discharge":"Discharge","emptyBed":"Empty bed","emptyText":"Empty","encounterDisplay":"{{encounterType}} {{encounterDate}}","errorCancellingAdmissionRequest":"Error cancelling admission request","errorChangingPatientBedAssignment":"Error changing patient bed assignment","errorConfiguringPatientCard":"Error configuring patient card","errorConfiguringPatientCardMessage":"Unable to find configuration for {{elementType}}, id: {{id}}","errorCreatingEncounter":"Failed to admit patient","errorCreatingTransferRequest":"Error creating transfer request","errorDischargingPatient":"Error discharging patient","errorLoadingBedDetails":"Error loading bed details","errorLoadingChildren":"Error loading children info","errorLoadingMother":"Error loading mother info","errorLoadingPatientAdmissionRequests":"Error loading patient admission requests","errorLoadingPatientInfo":"Error loading patient info","errorLoadingPatients":"Error loading admitted patients","errorLoadingWardLocation":"Error loading ward location","female":"Female","fetchingEmrConfigurationFailed":"Fetching EMR configuration failed. Try refreshing the page or contact your system administrator.","fetchingPatientNotesFailed":"Fetching patient notes failed. Try refreshing the page or contact your system administrator.","freeBeds":"Free beds","freeBedsMetricValue":"{{ metricValue }}","hours_one":"{{count}} hour","hours_other":"{{count}} hours","inpatientNotesWorkspaceTitle":"In-patient notes","invalidLocationSpecified":"Invalid location specified","invalidWardLocation":"Invalid ward location: {{location}}","labelColon":"{{label}}:","male":"Male","manage":"Manage","minutes_one":"{{count}} minutes","minutes_other":"{{count}} minutes","motherChildBedShare":"Mother / Child","nextPage":"Next page","noBed":"No bed","noBedsConfigured":"No beds configured for this location","noBedsConfiguredForLocation":"No beds configured for {{location}} location","noLocationsFound":"No locations found","noPendingPatientRequests":"No pending patient requests","note":"Note","notes":"Notes","notesRequiredForCancellingRequest":"Notes required for cancelling admission or transfer request","Orders":"Orders","other":"Other","patientAdmittedButBedNotAssigned":"Patient admitted successfully but fail to assign bed to patient","patientAdmittedSuccessfully":"Patient admitted successfully","patientAdmittedSuccessfullySubtitle":"{{patientName}} has been successfully admitted and assigned to bed {{bedNumber}}","patientAdmittedWoBed":"Patient admitted successfully to {{location}}","patientAlreadyAdmittedToCurrentLocation":"Patient already admitted to current location","patientAssignedNewBed":"Patient assigned to new bed","patientAssignedNewBedDetail":"{{patientName}} assigned to bed {{bedNumber}}","patientCurrentlyAdmittedToWardLocation":"Patient currently admitted to {{wardLocation}}","patientCurrentlyNotAdmitted":"Patient currently not admitted","patienthasNoActiveVisit":"Patient has no active visit","patientHasPendingAdmissionRequest":"Patient already has a pending admission request to location {{location}}","patientNoteNowVisible":"It should be now visible in the notes history","patientNoteSaveError":"Error saving patient note","patientNotesDidntLoad":"Patient notes didn\'t load","patients":"Patients","patientsMetricValue":"{{ metricValue }}","patientTransferRequestCreated":"Patient transfer request created","patientUnassignedFromBed":"Patient unassigned from bed","patientUnassignedFromBedDetail":"{{patientName}} is now unassigned from bed","patientWasDischarged":"Patient was discharged","pendingDischarge":"Pending Discharge","pendingOut":"Pending out","pendingOutMetricValue":"{{ metricValue }}","pendingTransfer":"Pending Transfer","pleaseSelectBed":"Please select a bed","pleaseSelectTransferLocation":"Please select transfer location","pleaseSelectTransferType":"Please select transfer type","previousPage":"Previous page","proceedWithPatientDischarge":"Proceed with patient discharge","save":"Save","saving":"Saving...","searchLocations":"Search locations","seconds_one":"{{count}} second","seconds_other":"{{count}} seconds","selectABed":"Select a bed","selectALocation":"Select a location","showingLocations_one":"{{start}}-{{end}} of {{count}} locations","showingLocations_other":"{{start}}-{{end}} of {{count}} locations","somePartsOfTheFormDidntLoad":"Some parts of the form didn\'t load","timeOnWard":"Time on this ward: {{timeOnWard}}","timeSinceAdmission":"Admitted: {{timeSinceAdmission}}","transfer":"Transfer","transferElsewhere":"Transfer elsewhere","transferPatient":"Transfer patient","transferRequest":"Transfer request","transfers":"Transfers","transferToDispositionLocation":"Transfer to {{location}}","transferType":"Transfer type","typeOfTransfer":"Type of transfer","unknown":"Unknown","visitNoteSaved":"Patient note saved","wardClinicalNotePlaceholder":"Write any notes here","wards":"Wards"}')}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([[4300],{34300:e=>{e.exports=JSON.parse('{"admissionRequestCancelled":"Admission request cancelled.","admissionRequests":"Admission requests","admissionRequestsCount_one":"{{count}} admission request","admissionRequestsCount_other":"{{count}} admission requests","admit":"Admit","admitElsewhere":"Admit elsewhere","admitPatient":"Admit patient","admittedTo":"Admitted to {{locationName}}","admitting":"Admitting...","alsoSwap":"Also swap:","alsoTransfer":"Also transfer:","backToSearchResults":"Back to search results","bedShare":"Bed share","bedSwap":"Bed swap","cancel":"Cancel","cancelAdmissionRequest":"Cancel admission request","capacity":"Capacity","capacityMetricValue":"{{ metricValue }} %","chooseAnOption":"Choose an option","clinicalForms":"Clinical forms","clinicalNoteLabel":"Write your notes","clinicalNotes":"Clinical notes","countItems_one":"{{count}} {{item}}","countItems_other":"{{count}} {{item}}","days_one":"{{count}} day","days_other":"{{count}} days","discharge":"Discharge","emptyBed":"Empty bed","emptyText":"Empty","encounterDisplay":"{{encounterType}} {{encounterDate}}","errorCancellingAdmissionRequest":"Error cancelling admission request","errorChangingPatientBedAssignment":"Error changing patient bed assignment","errorConfiguringPatientCard":"Error configuring patient card","errorConfiguringPatientCardMessage":"Unable to find configuration for {{elementType}}, id: {{id}}","errorCreatingEncounter":"Failed to admit patient","errorCreatingTransferRequest":"Error creating transfer request","errorDischargingPatient":"Error discharging patient","errorLoadingBedDetails":"Error loading bed details","errorLoadingChildren":"Error loading children info","errorLoadingMother":"Error loading mother info","errorLoadingPatientAdmissionRequests":"Error loading patient admission requests","errorLoadingPatientInfo":"Error loading patient info","errorLoadingPatients":"Error loading admitted patients","errorLoadingWardLocation":"Error loading ward location","female":"Female","fetchingEmrConfigurationFailed":"Fetching EMR configuration failed. Try refreshing the page or contact your system administrator.","fetchingPatientNotesFailed":"Fetching patient notes failed. Try refreshing the page or contact your system administrator.","freeBeds":"Free beds","freeBedsMetricValue":"{{ metricValue }}","hours_one":"{{count}} hour","hours_other":"{{count}} hours","inpatientNotesWorkspaceTitle":"In-patient notes","invalidLocationSpecified":"Invalid location specified","invalidWardLocation":"Invalid ward location: {{location}}","labelColon":"{{label}}:","male":"Male","manage":"Manage","minutes_one":"{{count}} minutes","minutes_other":"{{count}} minutes","motherChildBedShare":"Mother / Child","nextPage":"Next page","noActiveVisit":"No active visit","noAdmission":"No admission found","noBed":"No bed","noBedsConfigured":"No beds configured for this location","noBedsConfiguredForLocation":"No beds configured for {{location}} location","noLocationsFound":"No locations found","noPendingPatientRequests":"No pending patient requests","note":"Note","notes":"Notes","notesRequiredForCancellingRequest":"Notes required for cancelling admission or transfer request","Orders":"Orders","other":"Other","patientAdmittedButBedNotAssigned":"Patient admitted successfully but fail to assign bed to patient","patientAdmittedSuccessfully":"Patient admitted successfully","patientAdmittedSuccessfullySubtitle":"{{patientName}} has been successfully admitted and assigned to bed {{bedNumber}}","patientAdmittedWoBed":"Patient admitted successfully to {{location}}","patientAlreadyAdmittedToCurrentLocation":"Patient already admitted to current location","patientAssignedNewBed":"Patient assigned to new bed","patientAssignedNewBedDetail":"{{patientName}} assigned to bed {{bedNumber}}","patientCurrentlyAdmittedToWardLocation":"Patient currently admitted to {{wardLocation}}","patientCurrentlyNotAdmitted":"Patient currently not admitted","patienthasNoActiveVisit":"Patient has no active visit","patientHasPendingAdmissionRequest":"Patient already has a pending admission request to location {{location}}","patientNoteNowVisible":"It should be now visible in the notes history","patientNoteSaveError":"Error saving patient note","patientNotesDidntLoad":"Patient notes didn\'t load","patients":"Patients","patientsMetricValue":"{{ metricValue }}","patientTransferRequestCreated":"Patient transfer request created","patientUnassignedFromBed":"Patient unassigned from bed","patientUnassignedFromBedDetail":"{{patientName}} is now unassigned from bed","patientWasDischarged":"Patient was discharged","pendingDischarge":"Pending Discharge","pendingOut":"Pending out","pendingOutMetricValue":"{{ metricValue }}","pendingTransfer":"Pending Transfer","pleaseSelectBed":"Please select a bed","pleaseSelectTransferLocation":"Please select transfer location","pleaseSelectTransferType":"Please select transfer type","previousPage":"Previous page","proceedWithPatientDischarge":"Proceed with patient discharge","save":"Save","saving":"Saving...","searchLocations":"Search locations","seconds_one":"{{count}} second","seconds_other":"{{count}} seconds","selectABed":"Select a bed","selectALocation":"Select a location","showingLocations_one":"{{start}}-{{end}} of {{count}} locations","showingLocations_other":"{{start}}-{{end}} of {{count}} locations","somePartsOfTheFormDidntLoad":"Some parts of the form didn\'t load","timeOnWard":"Time on this ward: {{timeOnWard}}","timeSinceAdmission":"Admitted: {{timeSinceAdmission}}","transfer":"Transfer","transferElsewhere":"Transfer elsewhere","transferPatient":"Transfer patient","transferRequest":"Transfer request","transfers":"Transfers","transferToDispositionLocation":"Transfer to {{location}}","transferType":"Transfer type","typeOfTransfer":"Type of transfer","unknown":"Unknown","visitNoteSaved":"Patient note saved","wardClinicalNotePlaceholder":"Write any notes here","wards":"Wards"}')}}]);
package/dist/5885.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([[5885],{14568:(e,n,t)=>{t.d(n,{A:()=>l});var r=t(30977),a=t.n(r),i=t(95924),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"};const l=o},35885:(e,n,t)=>{t.r(n),t.d(n,{default:()=>ue});var r=t(90380),a=t.n(r),i=t(54440),o=t(83773),l=t(93150);function s(e){var n,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=(n="".concat(i.restBaseUrl,"/emrapi/maternal/mothersAndChildren"),new URL((0,i.makeUrl)(n),window.location.toString())),o=e.mothers,l=e.children,s=e.requireChildBornDuringMothersActiveVisit,c=e.requireChildHasActiveVisit,d=e.requireMotherHasActiveVisit,u=!0,p=!1,m=void 0;try{for(var b,h=(null!=o?o:[])[Symbol.iterator]();!(u=(b=h.next()).done);u=!0){var g=b.value;a.searchParams.append("mother",g)}}catch(e){p=!0,m=e}finally{try{u||null==h.return||h.return()}finally{if(p)throw m}}var v,f,y,A=!0,w=!1,$=void 0;try{for(var C,E=(null!=l?l:[])[Symbol.iterator]();!(A=(C=E.next()).done);A=!0){var _=C.value;a.searchParams.append("child",_)}}catch(e){w=!0,$=e}finally{try{A||null==E.return||E.return()}finally{if(w)throw $}}return a.searchParams.append("requireMotherHasActiveVisit",null!==(v=null==d?void 0:d.toString())&&void 0!==v?v:"false"),a.searchParams.append("requireChildHasActiveVisit",null!==(f=null==c?void 0:c.toString())&&void 0!==f?f:"false"),a.searchParams.append("requireChildBornDuringMothersActiveVisit",null!==(y=null==s?void 0:s.toString())&&void 0!==y?y:"false"),r&&a.searchParams.append("v",r),(0,i.useOpenmrsFetchAll)(t?a:null)}var c="custom:(childAdmission,mother:(person,identifiers:full,uuid),child:(person,identifiers:full,uuid),motherAdmission)",d=t(77493),u=t(35487),p=t(53373),m=t.n(p),b=t(50174),h=t(59198),g=t(91480),v=t(36110),f=t(97019),y=t(37538);const A=function(e){var n,t=e.id,r=e.patient,i=e.visit,o=(0,u.UG)("coloredObsTags",t),s=null!=o?o:{},c=s.conceptUuid,d=s.summaryLabel,p=s.summaryLabelColor,m=(0,h.e)({patient:r.uuid,concept:c},null!=c,g.Fx),A=m.data,w=m.isLoading,$=(0,l.useTranslation)().t,C=(0,g.uk)(null!==(n=null==o?void 0:o.tags)&&void 0!==n?n:[]);if(w)return a().createElement("div",{className:y.A.wardPatientCardRow},a().createElement(v.A,null));var E,_,k=null==A?void 0:A.filter(function(e){var n;return(null===(n=e.encounter.visit)||void 0===n?void 0:n.uuid)==(null==i?void 0:i.uuid)}),B=null!=d?$(d):null==k||null===(_=k[0])||void 0===_||null===(E=_.concept)||void 0===E?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==C?void 0:C.get(r);return i?a().createElement(f.A,{tooltipContent:(0,g.Fe)(e,$)},a().createElement(b.vwO,{type:i,key:"ward-coded-obs-tag-".concat(e.uuid)},t)):(P.push(a().createElement("div",{key:r},t," (",(0,g.Fe)(e,$),")")),null)}).filter(function(e){return null!=e});return(null==x?void 0:x.length)>0||P.length>0?a().createElement("div",{className:y.A.wardPatientCardRow},a().createElement("span",{className:y.A.wardPatientObsLabel},x,P.length>0?a().createElement(f.A,{tooltipContent:P},a().createElement(b.vwO,{type:p},$("countItems","{{count}} {{item}}",{count:P.length,item:B}))):null)):null};var w=t(85132),$=t(92182);const C=function(e){var n,t,r=e.patient,i=e.id,o=null==r||null===(n=r.person)||void 0===n?void 0:n.preferredAddress,l=(0,u.UG)("patientAddress",i);return a().createElement(a().Fragment,null,null==l||null===(t=l.fields)||void 0===t?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 E=t(7928),_=t(56546),k=t(83183),B=t(86901);const P=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:m()(y.A.wardPatientCardRow,y.A.wardPatientCardHeader)},r?a().createElement($.A,{bed:r}):null,a().createElement(_.A,{patient:t}),a().createElement(E.A,{id:"patient-identifier",patient:t}),a().createElement(w.A,{patient:t}),a().createElement(C,{id:"patient-address",patient:t}),a().createElement(k.A,{id:"admission-reason",patient:t,visit:i}),a().createElement(B.A,{firstAdmissionOrTransferEncounter:l}))};var x=t(72591),O=t.n(x),N=t(1740),D=t.n(N),I=t(88128),S=t.n(I),T=t(30855),M=t.n(T),R=t(93051),L=t.n(R),q=t(73656),F=t.n(q),H=t(14568),G={};G.styleTagTransform=F(),G.setAttributes=M(),G.insert=S().bind(null,"head"),G.domAPI=D(),G.insertStyleElement=L(),O()(H.A,G);const U=H.A&&H.A.locals?H.A.locals:void 0,j=function(e){var n,t=e.inpatientAdmission,r=null==t||null===(n=t.encounterAssigningToCurrentInpatientLocation.location)||void 0===n?void 0:n.display;return r?a().createElement("div",null,a().createElement("span",null,r)):a().createElement(a().Fragment,null)};var V=t(48621),W={};W.styleTagTransform=F(),W.setAttributes=M(),W.insert=S().bind(null,"head"),W.domAPI=D(),W.insertStyleElement=L(),O()(V.A,W);const X=V.A&&V.A.locals?V.A.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:m()(X.motherOrBabyRow,y.A.wardPatientCardRow)},a().createElement("div",{className:X.motherOrBabyIconDiv},a().createElement(r,{className:X.motherOrBabyIcon,size:24})),a().createElement("div",{className:m()(X.motherOrBabyRowElementsDiv,y.A.dotSeparatedChildren)},a().createElement(_.A,{patient:n}),a().createElement(E.A,{id:"patient-identifier",patient:n}),a().createElement(w.A,{patient:n}),a().createElement(j,{inpatientAdmission:t})))};const z=function(e){var n,t=e.wardPatient,r=e.childrenOfWardPatientInSameBed,o=t.patient,l=(null!==(n=(0,i.useAppContext)("maternal-ward-view-context"))&&void 0!==n?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(92058),Q=t(1248),Z=t(77);function K(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function ee(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var ne=function(){var e=(0,l.useTranslation)().t;return a().createElement("div",{className:U.motherChildBedDivider},a().createElement("div",{className:U.motherChildBedDividerLine}),a().createElement(b.vwO,{type:"purple"},e("motherChildBedShare","Mother / Child")),a().createElement("div",{className:U.motherChildBedDividerLine}))};const te=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(Q.A,{wardPatient:n,relatedTransferPatients:t},a().createElement(P,{wardPatient:n}),a().createElement("div",{className:m()(y.A.wardPatientCardRow,y.A.dotSeparatedChildren)},a().createElement(Z.A,{encounterAssigningToCurrentInpatientLocation:s}),a().createElement(k.A,{id:"gravida",patient:r,visit:i})),a().createElement(J.A,{id:"pending-items",wardPatient:n}),a().createElement(A,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){ee(e,n,t[n])})}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 K(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 K(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?K(e,n):void 0}}(r)||function(){throw new 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(ne,null),a().createElement(Q.A,{wardPatient:e,relatedTransferPatients:i},a().createElement(P,{wardPatient:e}),a().createElement(J.A,{id:"pending-items",wardPatient:e})))}));return o?c:a().createElement("div",{className:y.A.unassignedPatient},a().createElement("div",{key:"unassigned-bed-pt-"+n.patient.uuid},c))},re=function(e){var n,t=null!=e?e:{},r=t.motherByChildUuid,o=t.isLoading,l=(null!==(n=(0,i.useAppContext)("ward-view-context"))&&void 0!==n?n:{}).wardPatientGroupDetails,s=null!=l?l:{},c=s.bedLayouts,p=s.wardAdmittedPatientsWithBed,m=null==c?void 0:c.map(function(e){var n=e.patients,t=(0,u.yZ)(e),i=new Map,l=n.map(function(e){var n=null==p?void 0:p.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}}return{patient:e,visit:null,bed:t,inpatientAdmission:null,inpatientRequest:null}}).filter(function(e){var t,a=e.patient.uuid,o=(null!==(t=null==r?void 0:r.get(a))&&void 0!==t?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(te,{key:e.patient.uuid,wardPatient:e,childrenOfWardPatientInSameBed:i.get(e.patient.uuid)})});return a().createElement(d.A,{key:t.uuid,bed:t,patientCards:l,isLoadingDivider:o})});return a().createElement(a().Fragment,null,m)};var ae=t(18359),ie=t(60607);function oe(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}const le=function(){var e,n=(null!==(e=(0,i.useAppContext)("ward-view-context"))&&void 0!==e?e:{}).wardPatientGroupDetails,t=(0,l.useTranslation)().t,r=(null!=n?n:{}).inpatientRequestResponse,o=null!=r?r:{},s=o.inpatientRequests,c=o.isLoading,d=o.error;return c?a().createElement(v.A,null):d?a().createElement(i.ErrorState,{headerTitle:t("admissionRequests","Admission requests"),error:d}):a().createElement(a().Fragment,null,null==s?void 0:s.map(function(e,n){var t={patient:e.patient,visit:e.visit,bed:null,inpatientRequest:e,inpatientAdmission:null};return a().createElement(ie.A,{key:"admission-request-card-".concat(n),wardPatient:t},a().createElement(A,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){oe(e,n,t[n])})}return e}({id:"pregnancy-complications"},t)),a().createElement(z,{wardPatient:t,childrenOfWardPatientInSameBed:[]}),a().createElement(ae.A,{id:"admission-request-note",wardPatient:t}))}))},se=function(){var e,n=(null!==(e=(0,i.useAppContext)("ward-view-context"))&&void 0!==e?e:{}).wardPatientGroupDetails,t=(null!=n?n:{}).wardUnassignedPatientsList,r=null==t?void 0:t.map(function(e){return a().createElement(te,{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 ce=t(75546),de=t(18010);const ue=function(){var e=(0,o.u)();(0,i.useDefineAppContext)("ward-view-context",{wardPatientGroupDetails:e,WardPatientHeader:P});var n=e.allWardPatientUuids,t=e.isLoading,d=function(e,n){var t=(0,l.useTranslation)().t,a={children:e,requireMotherHasActiveVisit:!0,requireChildHasActiveVisit:!0,requireChildBornDuringMothersActiveVisit:!0},o=s({mothers:e,requireMotherHasActiveVisit:!0,requireChildHasActiveVisit:!0,requireChildBornDuringMothersActiveVisit:!0},n&&e.length>0,c),d=o.data,u=o.isLoading,p=o.error,m=s(a,n&&e.length>0,c),b=m.data,h=m.isLoading,g=m.error;return p&&(0,i.showNotification)({title:t("errorLoadingChildren","Error loading children info"),kind:"error",critical:!0,description:null==p?void 0:p.message}),g&&(0,i.showNotification)({title:t("errorLoadingMother","Error loading mother info"),kind:"error",critical:!0,description:null==g?void 0:g.message}),(0,r.useMemo)(function(){var e=new Map,n=new Map,t=u||h,r=!0,a=!1,i=void 0;try{for(var o,l=(null!=b?b:[])[Symbol.iterator]();!(r=(o=l.next()).done);r=!0){var s=o.value,c=s.child,p=s.childAdmission,m=s.mother,g=s.motherAdmission;e.set(c.uuid,{patient:m,currentAdmission:g}),n.has(m.uuid)||n.set(m.uuid,[]),n.get(m.uuid).push({patient:c,currentAdmission:p})}}catch(e){a=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw i}}var v=!0,f=!1,y=void 0;try{for(var A,w=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})},$=(null!=d?d:[])[Symbol.iterator]();!(v=(A=$.next()).done);v=!0)w()}catch(e){f=!0,y=e}finally{try{v||null==$.return||$.return()}finally{if(f)throw y}}return{motherByChildUuid:e,childrenByMotherUuid:n,isLoading:t}},[d,b,u,h])}(Array.from(n),!t);(0,i.useDefineAppContext)("maternal-ward-view-context",{motherChildRelationships:d});var u=a().createElement(re,d),p=a().createElement(se,null),m=a().createElement(le,null);return a().createElement(a().Fragment,null,a().createElement(de.A,{wardPendingPatients:m}),a().createElement(ce.A,{wardBeds:u,wardUnassignedPatients:p}))}},48621:(e,n,t)=>{t.d(n,{A:()=>l});var r=t(30977),a=t.n(r),i=t(95924),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"};const l=o}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([[5885],{14568:(e,n,t)=>{t.d(n,{A:()=>l});var r=t(30977),a=t.n(r),i=t(95924),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"};const l=o},35885:(e,n,t)=>{t.r(n),t.d(n,{default:()=>pe});var r=t(90380),a=t.n(r),i=t(54440),o=t(83773),l=t(93150);function s(e){var n,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=(n="".concat(i.restBaseUrl,"/emrapi/maternal/mothersAndChildren"),new URL((0,i.makeUrl)(n),window.location.toString())),o=e.mothers,l=e.children,s=e.requireChildBornDuringMothersActiveVisit,d=e.requireChildHasActiveVisit,c=e.requireMotherHasActiveVisit,u=!0,p=!1,m=void 0;try{for(var b,h=(null!=o?o:[])[Symbol.iterator]();!(u=(b=h.next()).done);u=!0){var g=b.value;a.searchParams.append("mother",g)}}catch(e){p=!0,m=e}finally{try{u||null==h.return||h.return()}finally{if(p)throw m}}var v,f,y,A=!0,w=!1,$=void 0;try{for(var C,E=(null!=l?l:[])[Symbol.iterator]();!(A=(C=E.next()).done);A=!0){var _=C.value;a.searchParams.append("child",_)}}catch(e){w=!0,$=e}finally{try{A||null==E.return||E.return()}finally{if(w)throw $}}return a.searchParams.append("requireMotherHasActiveVisit",null!==(v=null==c?void 0:c.toString())&&void 0!==v?v:"false"),a.searchParams.append("requireChildHasActiveVisit",null!==(f=null==d?void 0:d.toString())&&void 0!==f?f:"false"),a.searchParams.append("requireChildBornDuringMothersActiveVisit",null!==(y=null==s?void 0:s.toString())&&void 0!==y?y:"false"),r&&a.searchParams.append("v",r),(0,i.useOpenmrsFetchAll)(t?a:null)}var d="custom:(childAdmission,mother:(person,identifiers:full,uuid),child:(person,identifiers:full,uuid),motherAdmission)",c=t(77493),u=t(35487),p=t(53373),m=t.n(p),b=t(50174),h=t(59198),g=t(91480),v=t(36110),f=t(97019),y=t(37538);const A=function(e){var n,t=e.id,r=e.patient,i=e.visit,o=(0,u.UG)("coloredObsTags",t),s=null!=o?o:{},d=s.conceptUuid,c=s.summaryLabel,p=s.summaryLabelColor,m=(0,h.e)({patient:r.uuid,concept:d},null!=d,g.Fx),A=m.data,w=m.isLoading,$=(0,l.useTranslation)().t,C=(0,g.uk)(null!==(n=null==o?void 0:o.tags)&&void 0!==n?n:[]);if(w)return a().createElement("div",{className:y.A.wardPatientCardRow},a().createElement(v.A,null));var E,_,k=null==A?void 0:A.filter(function(e){var n;return(null===(n=e.encounter.visit)||void 0===n?void 0:n.uuid)==(null==i?void 0:i.uuid)}),B=null!=c?$(c):null==k||null===(_=k[0])||void 0===_||null===(E=_.concept)||void 0===E?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==C?void 0:C.get(r);return i?a().createElement(f.A,{tooltipContent:(0,g.Fe)(e,$)},a().createElement(b.vwO,{type:i,key:"ward-coded-obs-tag-".concat(e.uuid)},t)):(P.push(a().createElement("div",{key:r},t," (",(0,g.Fe)(e,$),")")),null)}).filter(function(e){return null!=e});return(null==x?void 0:x.length)>0||P.length>0?a().createElement("div",{className:y.A.wardPatientCardRow},a().createElement("span",{className:y.A.wardPatientObsLabel},x,P.length>0?a().createElement(f.A,{tooltipContent:P},a().createElement(b.vwO,{type:p},$("countItems","{{count}} {{item}}",{count:P.length,item:B}))):null)):null};var w=t(85132),$=t(92182);const C=function(e){var n,t,r=e.patient,i=e.id,o=null==r||null===(n=r.person)||void 0===n?void 0:n.preferredAddress,l=(0,u.UG)("patientAddress",i);return a().createElement(a().Fragment,null,null==l||null===(t=l.fields)||void 0===t?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 E=t(7928),_=t(56546),k=t(83183),B=t(86901);const P=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:m()(y.A.wardPatientCardRow,y.A.wardPatientCardHeader)},r?a().createElement($.A,{bed:r}):null,a().createElement(_.A,{patient:t}),a().createElement(E.A,{id:"patient-identifier",patient:t}),a().createElement(w.A,{patient:t}),a().createElement(C,{id:"patient-address",patient:t}),a().createElement(k.A,{id:"admission-reason",patient:t,visit:i}),a().createElement(B.A,{firstAdmissionOrTransferEncounter:l}))};var x=t(72591),O=t.n(x),N=t(1740),D=t.n(N),I=t(88128),S=t.n(I),T=t(30855),M=t.n(T),R=t(93051),L=t.n(R),q=t(73656),F=t.n(q),H=t(14568),U={};U.styleTagTransform=F(),U.setAttributes=M(),U.insert=S().bind(null,"head"),U.domAPI=D(),U.insertStyleElement=L(),O()(H.A,U);const G=H.A&&H.A.locals?H.A.locals:void 0,j=function(e){var n,t=e.inpatientAdmission,r=null==t||null===(n=t.encounterAssigningToCurrentInpatientLocation.location)||void 0===n?void 0:n.display;return r?a().createElement("div",null,a().createElement("span",null,r)):a().createElement(a().Fragment,null)};var V=t(48621),W={};W.styleTagTransform=F(),W.setAttributes=M(),W.insert=S().bind(null,"head"),W.domAPI=D(),W.insertStyleElement=L(),O()(V.A,W);const X=V.A&&V.A.locals?V.A.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:m()(X.motherOrBabyRow,y.A.wardPatientCardRow)},a().createElement("div",{className:X.motherOrBabyIconDiv},a().createElement(r,{className:X.motherOrBabyIcon,size:24})),a().createElement("div",{className:m()(X.motherOrBabyRowElementsDiv,y.A.dotSeparatedChildren)},a().createElement(_.A,{patient:n}),a().createElement(E.A,{id:"patient-identifier",patient:n}),a().createElement(w.A,{patient:n}),a().createElement(j,{inpatientAdmission:t})))};const z=function(e){var n,t=e.wardPatient,r=e.childrenOfWardPatientInSameBed,o=t.patient,l=(null!==(n=(0,i.useAppContext)("maternal-ward-view-context"))&&void 0!==n?n:{}).motherChildRelationships,s=null!=l?l:{},d=s.childrenByMotherUuid,c=s.motherByChildUuid,u=null==c?void 0:c.get(o.uuid),p=null==d?void 0:d.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(92058),Q=t(1248),Z=t(77),K=t(95925);function ee(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function ne(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var te=function(){var e=(0,l.useTranslation)().t;return a().createElement("div",{className:G.motherChildBedDivider},a().createElement("div",{className:G.motherChildBedDividerLine}),a().createElement(b.vwO,{type:"purple"},e("motherChildBedShare","Mother / Child")),a().createElement("div",{className:G.motherChildBedDividerLine}))};const re=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,d=a().createElement(a().Fragment,null,a().createElement(Q.A,{wardPatient:n,relatedTransferPatients:t},a().createElement(P,{wardPatient:n}),a().createElement("div",{className:m()(y.A.wardPatientCardRow,y.A.dotSeparatedChildren)},a().createElement(Z.A,{encounterAssigningToCurrentInpatientLocation:s}),a().createElement(k.A,{id:"gravida",patient:r,visit:i})),a().createElement(K.A,{wardPatient:n}),a().createElement(J.A,{id:"pending-items",wardPatient:n}),a().createElement(A,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){ne(e,n,t[n])})}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 ee(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 ee(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ee(e,n):void 0}}(r)||function(){throw new 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(te,null),a().createElement(Q.A,{wardPatient:e,relatedTransferPatients:i},a().createElement(P,{wardPatient:e}),a().createElement(J.A,{id:"pending-items",wardPatient:e})))}));return o?d:a().createElement("div",{className:y.A.unassignedPatient},a().createElement("div",{key:"unassigned-bed-pt-"+n.patient.uuid},d))},ae=function(e){var n,t=null!=e?e:{},r=t.motherByChildUuid,o=t.isLoading,l=(null!==(n=(0,i.useAppContext)("ward-view-context"))&&void 0!==n?n:{}).wardPatientGroupDetails,s=null!=l?l:{},d=s.bedLayouts,p=s.wardAdmittedPatientsWithBed,m=s.inpatientAdmissionsByPatientUuid,b=null==d?void 0:d.map(function(e){var n=e.patients,t=(0,u.yZ)(e),i=new Map,l=n.map(function(e){var n=null==p?void 0:p.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))&&void 0!==t?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(re,{key:e.patient.uuid,wardPatient:e,childrenOfWardPatientInSameBed:i.get(e.patient.uuid)})});return a().createElement(c.A,{key:t.uuid,bed:t,patientCards:l,isLoadingDivider:o})});return a().createElement(a().Fragment,null,b)};var ie=t(18359),oe=t(60607);function le(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}const se=function(){var e,n=(null!==(e=(0,i.useAppContext)("ward-view-context"))&&void 0!==e?e:{}).wardPatientGroupDetails,t=(0,l.useTranslation)().t,r=(null!=n?n:{}).inpatientRequestResponse,o=null!=r?r:{},s=o.inpatientRequests,d=o.isLoading,c=o.error;return d?a().createElement(v.A,null):c?a().createElement(i.ErrorState,{headerTitle:t("admissionRequests","Admission requests"),error:c}):a().createElement(a().Fragment,null,null==s?void 0:s.map(function(e,n){var t={patient:e.patient,visit:e.visit,bed:null,inpatientRequest:e,inpatientAdmission:null};return a().createElement(oe.A,{key:"admission-request-card-".concat(n),wardPatient:t},a().createElement(A,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){le(e,n,t[n])})}return e}({id:"pregnancy-complications"},t)),a().createElement(z,{wardPatient:t,childrenOfWardPatientInSameBed:[]}),a().createElement(ie.A,{id:"admission-request-note",wardPatient:t}))}))},de=function(){var e,n=(null!==(e=(0,i.useAppContext)("ward-view-context"))&&void 0!==e?e:{}).wardPatientGroupDetails,t=(null!=n?n:{}).wardUnassignedPatientsList,r=null==t?void 0:t.map(function(e){return a().createElement(re,{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 ce=t(75546),ue=t(18010);const pe=function(){var e=(0,o.u)();(0,i.useDefineAppContext)("ward-view-context",{wardPatientGroupDetails:e,WardPatientHeader:P});var n=e.allWardPatientUuids,t=e.isLoading,c=function(e,n){var t=(0,l.useTranslation)().t,a={children:e,requireMotherHasActiveVisit:!0,requireChildHasActiveVisit:!0,requireChildBornDuringMothersActiveVisit:!0},o=s({mothers:e,requireMotherHasActiveVisit:!0,requireChildHasActiveVisit:!0,requireChildBornDuringMothersActiveVisit:!0},n&&e.length>0,d),c=o.data,u=o.isLoading,p=o.error,m=s(a,n&&e.length>0,d),b=m.data,h=m.isLoading,g=m.error;return p&&(0,i.showNotification)({title:t("errorLoadingChildren","Error loading children info"),kind:"error",critical:!0,description:null==p?void 0:p.message}),g&&(0,i.showNotification)({title:t("errorLoadingMother","Error loading mother info"),kind:"error",critical:!0,description:null==g?void 0:g.message}),(0,r.useMemo)(function(){var e=new Map,n=new Map,t=u||h,r=!0,a=!1,i=void 0;try{for(var o,l=(null!=b?b:[])[Symbol.iterator]();!(r=(o=l.next()).done);r=!0){var s=o.value,d=s.child,p=s.childAdmission,m=s.mother,g=s.motherAdmission;e.set(d.uuid,{patient:m,currentAdmission:g}),n.has(m.uuid)||n.set(m.uuid,[]),n.get(m.uuid).push({patient:d,currentAdmission:p})}}catch(e){a=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw i}}var v=!0,f=!1,y=void 0;try{for(var A,w=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})},$=(null!=c?c:[])[Symbol.iterator]();!(v=(A=$.next()).done);v=!0)w()}catch(e){f=!0,y=e}finally{try{v||null==$.return||$.return()}finally{if(f)throw y}}return{motherByChildUuid:e,childrenByMotherUuid:n,isLoading:t}},[c,b,u,h])}(Array.from(n),!t);(0,i.useDefineAppContext)("maternal-ward-view-context",{motherChildRelationships:c});var u=a().createElement(ae,c),p=a().createElement(de,null),m=a().createElement(se,null);return a().createElement(a().Fragment,null,a().createElement(ue.A,{wardPendingPatients:m}),a().createElement(ce.A,{wardBeds:u,wardUnassignedPatients:p}))}},48621:(e,n,t)=>{t.d(n,{A:()=>l});var r=t(30977),a=t.n(r),i=t(95924),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"};const l=o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oCACE,kBAACC,GAAAA,EAAmB,CAAEF,oBAAAA,IACtB,kBAACG,GAAAA,EAAS,CAAE5D,SAAAA,EAAU+B,uBAAAA,IAG5B,C,sEChCIpL,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,yrBAA0rB,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,oEAAoE,8EAA8E,MAAQ,GAAG,SAAW,kMAAkM,eAAiB,CAAC,g/DAAg/D,gYAAgY,25DAA25D,WAAa,MAE19KH,EAAwBI,OAAS,CAChC,gBAAmB,uDACnB,2BAA8B,kEAC9B,oBAAuB,2DACvB,iBAAoB,yDAErB,S","sources":["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?af28","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?76e9","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","webpack://@openmrs/esm-ward-app/./src/ward-patient-card/card-rows/mother-child-row.scss"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","useMotherAndChildren","criteria","path","fetch","rep","url","restBaseUrl","URL","makeUrl","window","location","toString","mothers","children","requireChildBornDuringMothersActiveVisit","requireChildHasActiveVisit","requireMotherHasActiveVisit","m","searchParams","append","c","useOpenmrsFetchAll","motherAndChildrenRep","config","patient","visit","useElementConfig","conceptUuid","summaryLabel","summaryLabelColor","useObs","uuid","concept","obsCustomRepresentation","data","isLoading","useTranslation","t","conceptToTagColorMap","useConceptToTagColorMap","tags","div","className","styles","wardPatientCardRow","WardPatientSkeletonText","obsToDisplay","filter","o","encounter","summaryLabelToDisplay","display","summaryTagTooltipText","coloredOpsTags","map","value","color","get","WardPatientResponsiveTooltip","tooltipContent","getObsEncounterString","Tag","type","key","length","span","wardPatientObsLabel","count","item","preferredAddress","person","fields","field","i","wardPatient","bed","inpatientAdmission","firstAdmissionOrTransferEncounter","classNames","wardPatientCardHeader","WardPatientBedNumber","WardPatientName","WardPatientIdentifier","WardPatientAge","WardPatientAddress","WardPatientObs","WardPatientTimeSinceAdmission","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","locationDisplay","encounterAssigningToCurrentInpatientLocation","MotherOrChild","otherPatient","otherPatientAdmission","Icon","isOtherPatientTheMother","MotherIcon","BabyIcon","motherOrBabyRow","wardPatientCardStyles","motherOrBabyIconDiv","motherOrBabyIcon","size","motherOrBabyRowElementsDiv","dotSeparatedChildren","WardPatientLocation","useAppContext","childrenOfWardPatientInSameBed","motherChildRelationships","childrenByMotherUuid","motherByChildUuid","motherOfPatient","childrenOfPatient","childrenOfPatientNotInSameBed","child","some","childInSameBed","currentAdmission","childOfPatient","MotherChildBedShareDivider","maternalWardPatientCardStyles","motherChildBedDivider","motherChildBedDividerLine","props","card","WardPatientCard","relatedTransferPatients","MaternalWardPatientCardHeader","WardPatientTimeOnWard","PendingItemsRow","CodedObsTagsRow","MotherChildRow","childWardPatient","wp","React","unassignedPatient","wardPatientGroupDetails","bedLayouts","wardAdmittedPatientsWithBed","wardBeds","bedLayout","patients","bedLayoutToBed","childrenInSameBedByMotherUuid","Map","patientCards","patientsInCurrentBed","currentInpatientRequest","inpatientRequest","patientUuid","motherInSameBed","p","mother","has","set","MaternalWardPatientCard","WardBed","isLoadingDivider","isLoadingMotherChildRelationships","inpatientRequestResponse","inpatientRequests","error","isLoadingInpatientRequests","errorFetchingInpatientRequests","ErrorState","headerTitle","request","AdmissionRequestCard","AdmissionRequestNoteRow","wardUnassignedPatientsList","wardUnassignedPatients","useWardPatientGrouping","useDefineAppContext","WardPatientHeader","allWardPatientUuids","getMotherRequestParams","childrenDataError","showNotification","title","kind","critical","description","message","motherDataError","useMemo","isLoadingChildrenData","isLoadingMotherData","motherData","childAdmission","motherAdmission","childrenData","useMotherChildrenRelationshipsByPatient","Array","from","MaternalWardBeds","MaternalWardUnassignedPatients","wardPendingPatients","MaternalWardPendingPatients","WardViewHeader","Ward"],"sourceRoot":""}
1
+ {"version":3,"file":"5885.js","mappings":"+LAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,qoBAAsoB,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,yEAAyE,8EAA8E,MAAQ,GAAG,SAAW,gMAAgM,eAAiB,CAAC,g/DAAg/D,2YAA2Y,25DAA25D,WAAa,MAEp7KH,EAAwBI,OAAS,CAChC,sBAAyB,uEACzB,0BAA6B,4EAE9B,S,0GCAO,SAASC,EACdC,G,IA+BkBC,EA9BlBC,IAAAA,UAAAA,OAAAA,QAAAA,IAAAA,UAAAA,KAAAA,UAAAA,GACAC,EAAAA,UAAAA,OAAAA,QAAAA,IAAAA,UAAAA,GAAAA,UAAAA,GAAc,KAERC,GA2BYH,EA3BK,GAAe,OAAZI,EAAA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,yDAErB,S","sources":["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?af28","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?76e9","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","webpack://@openmrs/esm-ward-app/./src/ward-patient-card/card-rows/mother-child-row.scss"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","useMotherAndChildren","criteria","path","fetch","rep","url","restBaseUrl","URL","makeUrl","window","location","toString","mothers","children","requireChildBornDuringMothersActiveVisit","requireChildHasActiveVisit","requireMotherHasActiveVisit","m","searchParams","append","c","useOpenmrsFetchAll","motherAndChildrenRep","config","patient","visit","useElementConfig","conceptUuid","summaryLabel","summaryLabelColor","useObs","uuid","concept","obsCustomRepresentation","data","isLoading","useTranslation","t","conceptToTagColorMap","useConceptToTagColorMap","tags","div","className","styles","wardPatientCardRow","WardPatientSkeletonText","obsToDisplay","filter","o","encounter","summaryLabelToDisplay","display","summaryTagTooltipText","coloredOpsTags","map","value","color","get","WardPatientResponsiveTooltip","tooltipContent","getObsEncounterString","Tag","type","key","length","span","wardPatientObsLabel","count","item","preferredAddress","person","fields","field","i","wardPatient","bed","inpatientAdmission","firstAdmissionOrTransferEncounter","classNames","wardPatientCardHeader","WardPatientBedNumber","WardPatientName","WardPatientIdentifier","WardPatientAge","WardPatientAddress","WardPatientObs","WardPatientTimeSinceAdmission","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","locationDisplay","encounterAssigningToCurrentInpatientLocation","MotherOrChild","otherPatient","otherPatientAdmission","Icon","isOtherPatientTheMother","MotherIcon","BabyIcon","motherOrBabyRow","wardPatientCardStyles","motherOrBabyIconDiv","motherOrBabyIcon","size","motherOrBabyRowElementsDiv","dotSeparatedChildren","WardPatientLocation","useAppContext","childrenOfWardPatientInSameBed","motherChildRelationships","childrenByMotherUuid","motherByChildUuid","motherOfPatient","childrenOfPatient","childrenOfPatientNotInSameBed","child","some","childInSameBed","currentAdmission","childOfPatient","MotherChildBedShareDivider","maternalWardPatientCardStyles","motherChildBedDivider","motherChildBedDividerLine","props","card","WardPatientCard","relatedTransferPatients","MaternalWardPatientCardHeader","WardPatientTimeOnWard","IncorrectAdmissionWarningRow","PendingItemsRow","CodedObsTagsRow","MotherChildRow","childWardPatient","wp","React","unassignedPatient","wardPatientGroupDetails","bedLayouts","wardAdmittedPatientsWithBed","inpatientAdmissionsByPatientUuid","wardBeds","bedLayout","patients","bedLayoutToBed","childrenInSameBedByMotherUuid","Map","patientCards","patientsInCurrentBed","currentInpatientRequest","inpatientRequest","admissionElsewhere","patientUuid","motherInSameBed","p","mother","has","set","MaternalWardPatientCard","WardBed","isLoadingDivider","isLoadingMotherChildRelationships","inpatientRequestResponse","inpatientRequests","error","isLoadingInpatientRequests","errorFetchingInpatientRequests","ErrorState","headerTitle","request","AdmissionRequestCard","AdmissionRequestNoteRow","wardUnassignedPatientsList","wardUnassignedPatients","useWardPatientGrouping","useDefineAppContext","WardPatientHeader","allWardPatientUuids","getMotherRequestParams","childrenDataError","showNotification","title","kind","critical","description","message","motherDataError","useMemo","isLoadingChildrenData","isLoadingMotherData","motherData","childAdmission","motherAdmission","childrenData","useMotherChildrenRelationshipsByPatient","Array","from","MaternalWardBeds","MaternalWardUnassignedPatients","wardPendingPatients","MaternalWardPendingPatients","WardViewHeader","Ward"],"sourceRoot":""}
package/dist/6012.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see 6012.js.LICENSE.txt */
2
- (globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([[3373,6012],{11340:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var i="@openmrs/esm-ward-app"},16012:(e,t,n)=>{"use strict";n.r(t),n.d(t,{admissionRequestWorkspace:()=>A,admissionRequestsWorkspaceSideRailIcon:()=>R,admitPatientFormWorkspace:()=>b,cancelAdmissionRequestWorkspace:()=>U,clinicalFormWorkspaceSideRailIcon:()=>O,createAdmissionEncounterWorkspace:()=>q,createAdmissionEncounterWorkspaceSideRailIcon:()=>W,defaultWardView:()=>D,importTranslation:()=>y,maternalWardView:()=>N,patientClinicalFormsWorkspace:()=>P,patientDischargeWorkspace:()=>I,patientDischargeWorkspaceSideRailIcon:()=>C,patientTransferAndSwapWorkspace:()=>j,patientTransferAndSwapWorkspaceSiderailIcon:()=>L,patientTransferRequestWorkspace:()=>S,root:()=>m,startupApp:()=>E,wardDashboardLink:()=>_,wardPatientActionButtonExtension:()=>v,wardPatientNotesActionButtonExtension:()=>k,wardPatientNotesWorkspace:()=>T,wardPatientWorkspace:()=>w,wardPatientWorkspaceBanner:()=>B,wardView:()=>g});var i=n(54440),r={patientCardElements:{_description:"Configuration of various patient card elements. Each configured element must have a unique id, defined in the ward React component being used.",obs:{_type:i.Type.Array,_default:[],_description:"Configures obs values to display.",_elements:{id:{_type:i.Type.String,_description:"The unique identifier for this patient card element"},conceptUuid:{_type:i.Type.UUID,_description:"Identifies the concept to use to identify the desired observations."},label:{_type:i.Type.String,_default:"",_description:"Optional. The custom label or i18n key to the translated label to display. If not provided, defaults to the concept's name. (Note that this can be set to an empty string to not show a label)"},orderBy:{_type:i.Type.String,_default:"descending",_description:"One of 'ascending' or 'descending', specifying whether to display the obs by obsDatetime ascendingly or descendingly.",_validators:[i.validators.oneOf(["ascending","descending"])]},limit:{_type:i.Type.Number,_default:1,_description:"If set to a number greater than one, this will show multiple obs for this concept, which will appear as a list. Set to 0 for unlimited."},onlyWithinCurrentVisit:{_type:i.Type.Boolean,_default:!1,_description:"Optional. If true, limits display to only observations within current visit. Defaults to false"}}},pendingItems:{_type:i.Type.Array,_default:[{id:"pending-items",orders:{orderTypes:[{label:"Labs",uuid:"52a447d3-a64a-11e3-9aeb-50e549534c5e"}]},showPendingItems:!0}],_description:"Configures pending orders and transfers to display.",_elements:{id:{_type:i.Type.String,_description:"The unique identifier for this patient card element"},orders:{orderTypes:{_type:i.Type.Array,_description:"Configures pending orders and transfers to display.",_elements:{uuid:{_type:i.Type.UUID,_description:"Identifies the order type."},label:{_type:i.Type.String,_default:"",_description:"The label or i18n key to the translated label to display. If not provided, defaults to 'Orders'"}}}},showPendingItems:{_type:i.Type.Boolean,_description:"Optional. If true, pending items (e.g., number of pending orders) will be displayed on the patient card."}}},patientIdentifier:{_type:i.Type.Array,_default:[{id:"patient-identifier",showIdentifierLabel:!1}],_description:"Configures patient identifier to display. An unconfigured element displays the preferred identifier.",_elements:{id:{_type:i.Type.String,_description:"The unique identifier for this patient card element"},showIdentifierLabel:{_type:i.Type.Boolean,_description:'If true, the identifier type (eg: "OpenMRS ID") is shown along with the identifier itself. Defaults to false'}}},patientAddress:{_type:i.Type.Array,_default:[{id:"patient-address",fields:["cityVillage","country"]}],_description:"Configures patient address elements.",_elements:{id:{_type:i.Type.String,_description:"The unique identifier for this patient card element"},fields:{_type:i.Type.Array,_description:"The fields of the address to display",_elements:{_type:i.Type.String,_validators:[i.validators.oneOf(["cityVillage","stateProvince","country","postalCode","countyDistrict","latitude","longitude","address1","address2","address3","address4","address5","address6","address7","address8","address9","address10","address11","address12","address13","address14","address15"])]}}}},admissionRequestNote:{_type:i.Type.Array,_default:[{id:"admission-request-note",conceptUuid:"161011AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}],_description:"Configures admission request notes to display.",_elements:{id:{_type:i.Type.String,_description:"The unique identifier for this patient card element"},conceptUuid:{_type:i.Type.UUID,_description:"Required. Identifies the concept for the admission request note."}}},coloredObsTags:{_type:i.Type.Array,_default:[],_description:"Configures observation values to display as Carbon tags.",_elements:{conceptUuid:{_type:i.Type.UUID,_default:"1284AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",_description:"Required. Identifies the concept to use to identify the desired observations."},summaryLabel:{_type:i.Type.String,_default:"",_description:"Optional. The custom label or i18n key to the translated label to display for the summary tag. The summary tag shows the count of the number of answers that are present but not configured to show as their own tags. If not provided, defaults to the name of the concept."},summaryLabelI18nModule:{_type:i.Type.String,_default:"",_description:"Optional. The custom module to use for translation of the summary label"},summaryLabelColor:{_type:i.Type.String,_default:"",_description:"The color of the summary tag. See https://react.carbondesignsystem.com/?path=/docs/components-tag--overview for a list of supported colors"},tags:{_type:i.Type.Array,_default:[],_description:"An array specifying concept sets and color. Observations with coded values that are members of the specified concept sets will be displayed as their own tags with the specified color. Any observation with coded values not belonging to any concept sets specified will be summarized as a count in the summary tag. If a concept set is listed multiple times, the first matching applied-to rule takes precedence.",_elements:{color:{_type:i.Type.String,_description:"Color of the tag. See https://react.carbondesignsystem.com/?path=/docs/components-tag--overview for a list of supported colors."},appliedToConceptSets:{_type:i.Type.Array,_description:"The concept sets which the color applies to. Observations with coded values that are members of the specified concept sets will be displayed as their own tag with the specified color. If an observation's coded value belongs to multiple concept sets, the first matching applied-to rule takes precedence.",_elements:{_type:i.Type.UUID}}}}}}},wards:{_type:i.Type.Array,_default:[{id:"default-ward"}],_description:"Configuration of what type of ward to use at different ward locations.",_elements:{id:{_type:i.Type.String,_description:'The ward type to use. Currently, "default-ward" and "maternal-ward" are supported. This string also serves as the extension slot name for the ward view.'},appliedTo:{_type:i.Type.Array,_description:"Optional. Conditions under which this card definition should be used. If not provided, the configuration is applied to all wards.",_elements:{location:{_type:i.Type.UUID,_default:"",_description:"The UUID of the location. If not provided, applies to all wards."}}}}},hideWorkspaceVitalsLinks:{_type:i.Type.Boolean,_default:!1,_description:"Configure whether to hide vital history and record vital links in the ward patient workspace."}},s=n(11340),o=n(90380),a=n.n(o),d=n(53373),c=n.n(d),l=n(8877),p=n(93150);function u(e){var t=e.dashboardLinkConfig,n=(0,p.useTranslation)().t,r=t.name,s=t.title,d=(0,l.useLocation)(),u="".concat(window.spaBase,"/home"),f=(0,o.useMemo)(function(){var e=d.pathname.split("/home"),t=e[e.length-1];return decodeURIComponent(t)},[d.pathname]);return a().createElement(i.ConfigurableLink,{className:c()("cds--side-nav__link",{"active-left-nav-link":f.match(r)}),to:"".concat(u,"/").concat(r)},n(s))}var f,y=n(84767),h={featureName:"ward",moduleName:s.A},m=(0,i.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(8622),n.e(1058),n.e(8010),n.e(9775)]).then(n.bind(n,99775))},h),_=(0,i.getSyncLifecycle)((f={name:"ward",title:"wards"},function(){return a().createElement(l.BrowserRouter,null,a().createElement(u,{dashboardLinkConfig:f}))}),h),g=(0,i.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(8622),n.e(1058),n.e(8010),n.e(7524)]).then(n.bind(n,27524))},h),A=(0,i.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(8622),n.e(1058),n.e(8010),n.e(3737)]).then(n.bind(n,23737))},h),b=(0,i.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(8622),n.e(1058),n.e(9559),n.e(8010),n.e(5434),n.e(2728)]).then(n.bind(n,12728))},h),w=(0,i.getAsyncLifecycle)(function(){return n.e(8501).then(n.bind(n,88501))},h),T=(0,i.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(8622),n.e(1058),n.e(9559),n.e(8010),n.e(9045)]).then(n.bind(n,49045))},h),v=(0,i.getAsyncLifecycle)(function(){return n.e(89).then(n.bind(n,20089))},h),k=(0,i.getAsyncLifecycle)(function(){return n.e(7886).then(n.bind(n,57886))},h),j=(0,i.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(8622),n.e(1058),n.e(9559),n.e(8010),n.e(380),n.e(7661),n.e(3365)]).then(n.bind(n,23365))},h),I=(0,i.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(8622),n.e(1058),n.e(8010),n.e(283)]).then(n.bind(n,80283))},h),L=(0,i.getAsyncLifecycle)(function(){return n.e(3413).then(n.bind(n,23413))},h),S=(0,i.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(8622),n.e(1058),n.e(9559),n.e(8010),n.e(380),n.e(7661),n.e(2948)]).then(n.bind(n,12948))},h),C=(0,i.getAsyncLifecycle)(function(){return Promise.all([n.e(8622),n.e(3982)]).then(n.bind(n,33982))},h),P=(0,i.getAsyncLifecycle)(function(){return n.e(1663).then(n.bind(n,71663))},h),U=(0,i.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(8622),n.e(1058),n.e(9559),n.e(8010),n.e(2557)]).then(n.bind(n,2557))},h),O=(0,i.getAsyncLifecycle)(function(){return Promise.all([n.e(1899),n.e(1741)]).then(n.bind(n,71741))},h),R=(0,i.getAsyncLifecycle)(function(){return n.e(8522).then(n.bind(n,48522))},h),W=(0,i.getAsyncLifecycle)(function(){return n.e(9117).then(n.bind(n,59117))},h),q=(0,i.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(8622),n.e(1058),n.e(8010),n.e(5434),n.e(7179)]).then(n.bind(n,27179))},h),D=(0,i.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(8622),n.e(1058),n.e(1369),n.e(9294),n.e(8010),n.e(5434),n.e(380),n.e(8394),n.e(5734),n.e(1326)]).then(n.bind(n,61326))},{featureName:"default-ward-view",moduleName:s.A,swrConfig:{refreshInterval:6e4}}),N=(0,i.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(8622),n.e(1058),n.e(1369),n.e(9294),n.e(8010),n.e(5434),n.e(380),n.e(8394),n.e(5734),n.e(5885)]).then(n.bind(n,35885))},{featureName:"maternal-ward-view",moduleName:s.A,swrConfig:{refreshInterval:6e4}}),B=(0,i.getAsyncLifecycle)(function(){return n.e(1776).then(n.bind(n,81776))},h);function E(){(0,i.registerBreadcrumbs)([]),(0,i.defineConfigSchema)(s.A,r),(0,i.registerFeatureFlag)("bedmanagement-module","Bed management module","Enables features related to bed management / assignment. Requires the backend bed management module to be installed.")}},53373:(e,t)=>{var n;!function(){"use strict";var i={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,s(n)))}return e}function s(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)i.call(e,n)&&e[n]&&(t=o(t,n));return t}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},84767:(e,t,n)=>{var i={"./am.json":[81197,1197],"./ar.json":[14132,4132],"./ar_SY.json":[37617,7617],"./bn.json":[77159,7159],"./de.json":[34944,4944],"./en.json":[34300,4300],"./en_US.json":[59569,9569],"./es.json":[93099,3099],"./es_MX.json":[88349,8349],"./fr.json":[94055,4055],"./he.json":[84652,4652],"./hi.json":[36840,6840],"./hi_IN.json":[55442,5442],"./id.json":[72690,2690],"./it.json":[9538,9538],"./ka.json":[70795,795],"./km.json":[54335,4335],"./ku.json":[9895,9895],"./ky.json":[88163,8163],"./lg.json":[64618,4618],"./ne.json":[12146,2146],"./pl.json":[41119,1119],"./pt.json":[96679,6679],"./pt_BR.json":[36468,6468],"./qu.json":[35173,5173],"./ro_RO.json":[46022,6022],"./ru_RU.json":[60986,986],"./si.json":[56859,6859],"./sw.json":[89913,9913],"./sw_KE.json":[88618,8618],"./tr.json":[55241,5241],"./tr_TR.json":[99900,9900],"./uk.json":[60723,723],"./uz.json":[43584,3584],"./uz@Latn.json":[27097,7097],"./uz_UZ.json":[70890,890],"./vi.json":[79214,9214],"./zh.json":[35661,5661],"./zh_CN.json":[99879,9879]};function r(e){if(!n.o(i,e))return Promise.resolve().then(()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=i[e],r=t[0];return n.e(t[1]).then(()=>n(r))}r.keys=()=>Object.keys(i),r.id=84767,e.exports=r}}]);
2
+ (globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([[3373,6012],{11340:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var i="@openmrs/esm-ward-app"},16012:(e,t,n)=>{"use strict";n.r(t),n.d(t,{admissionRequestWorkspace:()=>A,admissionRequestsWorkspaceSideRailIcon:()=>R,admitPatientFormWorkspace:()=>b,cancelAdmissionRequestWorkspace:()=>U,clinicalFormWorkspaceSideRailIcon:()=>O,createAdmissionEncounterWorkspace:()=>q,createAdmissionEncounterWorkspaceSideRailIcon:()=>W,defaultWardView:()=>D,importTranslation:()=>y,maternalWardView:()=>N,patientClinicalFormsWorkspace:()=>P,patientDischargeWorkspace:()=>I,patientDischargeWorkspaceSideRailIcon:()=>C,patientTransferAndSwapWorkspace:()=>j,patientTransferAndSwapWorkspaceSiderailIcon:()=>L,patientTransferRequestWorkspace:()=>S,root:()=>m,startupApp:()=>E,wardDashboardLink:()=>_,wardPatientActionButtonExtension:()=>v,wardPatientNotesActionButtonExtension:()=>k,wardPatientNotesWorkspace:()=>T,wardPatientWorkspace:()=>w,wardPatientWorkspaceBanner:()=>B,wardView:()=>g});var i=n(54440),r={patientCardElements:{_description:"Configuration of various patient card elements. Each configured element must have a unique id, defined in the ward React component being used.",obs:{_type:i.Type.Array,_default:[],_description:"Configures obs values to display.",_elements:{id:{_type:i.Type.String,_description:"The unique identifier for this patient card element"},conceptUuid:{_type:i.Type.UUID,_description:"Identifies the concept to use to identify the desired observations."},label:{_type:i.Type.String,_default:"",_description:"Optional. The custom label or i18n key to the translated label to display. If not provided, defaults to the concept's name. (Note that this can be set to an empty string to not show a label)"},orderBy:{_type:i.Type.String,_default:"descending",_description:"One of 'ascending' or 'descending', specifying whether to display the obs by obsDatetime ascendingly or descendingly.",_validators:[i.validators.oneOf(["ascending","descending"])]},limit:{_type:i.Type.Number,_default:1,_description:"If set to a number greater than one, this will show multiple obs for this concept, which will appear as a list. Set to 0 for unlimited."},onlyWithinCurrentVisit:{_type:i.Type.Boolean,_default:!1,_description:"Optional. If true, limits display to only observations within current visit. Defaults to false"}}},pendingItems:{_type:i.Type.Array,_default:[{id:"pending-items",orders:{orderTypes:[{label:"Labs",uuid:"52a447d3-a64a-11e3-9aeb-50e549534c5e"}]},showPendingItems:!0}],_description:"Configures pending orders and transfers to display.",_elements:{id:{_type:i.Type.String,_description:"The unique identifier for this patient card element"},orders:{orderTypes:{_type:i.Type.Array,_description:"Configures pending orders and transfers to display.",_elements:{uuid:{_type:i.Type.UUID,_description:"Identifies the order type."},label:{_type:i.Type.String,_default:"",_description:"The label or i18n key to the translated label to display. If not provided, defaults to 'Orders'"}}}},showPendingItems:{_type:i.Type.Boolean,_description:"Optional. If true, pending items (e.g., number of pending orders) will be displayed on the patient card."}}},patientIdentifier:{_type:i.Type.Array,_default:[{id:"patient-identifier",showIdentifierLabel:!1}],_description:"Configures patient identifier to display. An unconfigured element displays the preferred identifier.",_elements:{id:{_type:i.Type.String,_description:"The unique identifier for this patient card element"},showIdentifierLabel:{_type:i.Type.Boolean,_description:'If true, the identifier type (eg: "OpenMRS ID") is shown along with the identifier itself. Defaults to false'}}},patientAddress:{_type:i.Type.Array,_default:[{id:"patient-address",fields:["cityVillage","country"]}],_description:"Configures patient address elements.",_elements:{id:{_type:i.Type.String,_description:"The unique identifier for this patient card element"},fields:{_type:i.Type.Array,_description:"The fields of the address to display",_elements:{_type:i.Type.String,_validators:[i.validators.oneOf(["cityVillage","stateProvince","country","postalCode","countyDistrict","latitude","longitude","address1","address2","address3","address4","address5","address6","address7","address8","address9","address10","address11","address12","address13","address14","address15"])]}}}},admissionRequestNote:{_type:i.Type.Array,_default:[{id:"admission-request-note",conceptUuid:"161011AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}],_description:"Configures admission request notes to display.",_elements:{id:{_type:i.Type.String,_description:"The unique identifier for this patient card element"},conceptUuid:{_type:i.Type.UUID,_description:"Required. Identifies the concept for the admission request note."}}},coloredObsTags:{_type:i.Type.Array,_default:[],_description:"Configures observation values to display as Carbon tags.",_elements:{conceptUuid:{_type:i.Type.UUID,_default:"1284AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",_description:"Required. Identifies the concept to use to identify the desired observations."},summaryLabel:{_type:i.Type.String,_default:"",_description:"Optional. The custom label or i18n key to the translated label to display for the summary tag. The summary tag shows the count of the number of answers that are present but not configured to show as their own tags. If not provided, defaults to the name of the concept."},summaryLabelI18nModule:{_type:i.Type.String,_default:"",_description:"Optional. The custom module to use for translation of the summary label"},summaryLabelColor:{_type:i.Type.String,_default:"",_description:"The color of the summary tag. See https://react.carbondesignsystem.com/?path=/docs/components-tag--overview for a list of supported colors"},tags:{_type:i.Type.Array,_default:[],_description:"An array specifying concept sets and color. Observations with coded values that are members of the specified concept sets will be displayed as their own tags with the specified color. Any observation with coded values not belonging to any concept sets specified will be summarized as a count in the summary tag. If a concept set is listed multiple times, the first matching applied-to rule takes precedence.",_elements:{color:{_type:i.Type.String,_description:"Color of the tag. See https://react.carbondesignsystem.com/?path=/docs/components-tag--overview for a list of supported colors."},appliedToConceptSets:{_type:i.Type.Array,_description:"The concept sets which the color applies to. Observations with coded values that are members of the specified concept sets will be displayed as their own tag with the specified color. If an observation's coded value belongs to multiple concept sets, the first matching applied-to rule takes precedence.",_elements:{_type:i.Type.UUID}}}}}}},wards:{_type:i.Type.Array,_default:[{id:"default-ward"}],_description:"Configuration of what type of ward to use at different ward locations.",_elements:{id:{_type:i.Type.String,_description:'The ward type to use. Currently, "default-ward" and "maternal-ward" are supported. This string also serves as the extension slot name for the ward view.'},appliedTo:{_type:i.Type.Array,_description:"Optional. Conditions under which this card definition should be used. If not provided, the configuration is applied to all wards.",_elements:{location:{_type:i.Type.UUID,_default:"",_description:"The UUID of the location. If not provided, applies to all wards."}}}}},hideWorkspaceVitalsLinks:{_type:i.Type.Boolean,_default:!1,_description:"Configure whether to hide vital history and record vital links in the ward patient workspace."}},s=n(11340),o=n(90380),a=n.n(o),d=n(53373),c=n.n(d),l=n(8877),p=n(93150);function u(e){var t=e.dashboardLinkConfig,n=(0,p.useTranslation)().t,r=t.name,s=t.title,d=(0,l.useLocation)(),u="".concat(window.spaBase,"/home"),f=(0,o.useMemo)(function(){var e=d.pathname.split("/home"),t=e[e.length-1];return decodeURIComponent(t)},[d.pathname]);return a().createElement(i.ConfigurableLink,{className:c()("cds--side-nav__link",{"active-left-nav-link":f.match(r)}),to:"".concat(u,"/").concat(r)},n(s))}var f,y=n(84767),h={featureName:"ward",moduleName:s.A},m=(0,i.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(8622),n.e(1058),n.e(8010),n.e(9775)]).then(n.bind(n,99775))},h),_=(0,i.getSyncLifecycle)((f={name:"ward",title:"wards"},function(){return a().createElement(l.BrowserRouter,null,a().createElement(u,{dashboardLinkConfig:f}))}),h),g=(0,i.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(8622),n.e(1058),n.e(8010),n.e(7524)]).then(n.bind(n,27524))},h),A=(0,i.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(8622),n.e(1058),n.e(8010),n.e(3737)]).then(n.bind(n,23737))},h),b=(0,i.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(8622),n.e(1058),n.e(9559),n.e(8010),n.e(5434),n.e(2728)]).then(n.bind(n,12728))},h),w=(0,i.getAsyncLifecycle)(function(){return n.e(8501).then(n.bind(n,88501))},h),T=(0,i.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(8622),n.e(1058),n.e(9559),n.e(8010),n.e(9045)]).then(n.bind(n,49045))},h),v=(0,i.getAsyncLifecycle)(function(){return n.e(89).then(n.bind(n,20089))},h),k=(0,i.getAsyncLifecycle)(function(){return n.e(7886).then(n.bind(n,57886))},h),j=(0,i.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(8622),n.e(1058),n.e(9559),n.e(8010),n.e(380),n.e(7661),n.e(3365)]).then(n.bind(n,23365))},h),I=(0,i.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(8622),n.e(1058),n.e(8010),n.e(283)]).then(n.bind(n,80283))},h),L=(0,i.getAsyncLifecycle)(function(){return n.e(3413).then(n.bind(n,23413))},h),S=(0,i.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(8622),n.e(1058),n.e(9559),n.e(8010),n.e(380),n.e(7661),n.e(2948)]).then(n.bind(n,12948))},h),C=(0,i.getAsyncLifecycle)(function(){return Promise.all([n.e(8622),n.e(3982)]).then(n.bind(n,33982))},h),P=(0,i.getAsyncLifecycle)(function(){return n.e(1663).then(n.bind(n,71663))},h),U=(0,i.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(8622),n.e(1058),n.e(9559),n.e(8010),n.e(2557)]).then(n.bind(n,2557))},h),O=(0,i.getAsyncLifecycle)(function(){return Promise.all([n.e(1899),n.e(1741)]).then(n.bind(n,71741))},h),R=(0,i.getAsyncLifecycle)(function(){return n.e(8522).then(n.bind(n,48522))},h),W=(0,i.getAsyncLifecycle)(function(){return n.e(9117).then(n.bind(n,59117))},h),q=(0,i.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(8622),n.e(1058),n.e(8010),n.e(5434),n.e(7179)]).then(n.bind(n,27179))},h),D=(0,i.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(8622),n.e(1058),n.e(1369),n.e(9294),n.e(8010),n.e(5434),n.e(380),n.e(8394),n.e(8610),n.e(1326)]).then(n.bind(n,61326))},{featureName:"default-ward-view",moduleName:s.A,swrConfig:{refreshInterval:6e4}}),N=(0,i.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(8622),n.e(1058),n.e(1369),n.e(9294),n.e(8010),n.e(5434),n.e(380),n.e(8394),n.e(8610),n.e(5885)]).then(n.bind(n,35885))},{featureName:"maternal-ward-view",moduleName:s.A,swrConfig:{refreshInterval:6e4}}),B=(0,i.getAsyncLifecycle)(function(){return n.e(1776).then(n.bind(n,81776))},h);function E(){(0,i.registerBreadcrumbs)([]),(0,i.defineConfigSchema)(s.A,r),(0,i.registerFeatureFlag)("bedmanagement-module","Bed management module","Enables features related to bed management / assignment. Requires the backend bed management module to be installed.")}},53373:(e,t)=>{var n;!function(){"use strict";var i={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,s(n)))}return e}function s(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)i.call(e,n)&&e[n]&&(t=o(t,n));return t}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},84767:(e,t,n)=>{var i={"./am.json":[81197,1197],"./ar.json":[14132,4132],"./ar_SY.json":[37617,7617],"./bn.json":[77159,7159],"./de.json":[34944,4944],"./en.json":[34300,4300],"./en_US.json":[59569,9569],"./es.json":[93099,3099],"./es_MX.json":[88349,8349],"./fr.json":[94055,4055],"./he.json":[84652,4652],"./hi.json":[36840,6840],"./hi_IN.json":[55442,5442],"./id.json":[72690,2690],"./it.json":[9538,9538],"./ka.json":[70795,795],"./km.json":[54335,4335],"./ku.json":[9895,9895],"./ky.json":[88163,8163],"./lg.json":[64618,4618],"./ne.json":[12146,2146],"./pl.json":[41119,1119],"./pt.json":[96679,6679],"./pt_BR.json":[36468,6468],"./qu.json":[35173,5173],"./ro_RO.json":[46022,6022],"./ru_RU.json":[60986,986],"./si.json":[56859,6859],"./sw.json":[89913,9913],"./sw_KE.json":[88618,8618],"./tr.json":[55241,5241],"./tr_TR.json":[99900,9900],"./uk.json":[60723,723],"./uz.json":[43584,3584],"./uz@Latn.json":[27097,7097],"./uz_UZ.json":[70890,890],"./vi.json":[79214,9214],"./zh.json":[35661,5661],"./zh_CN.json":[99879,9879]};function r(e){if(!n.o(i,e))return Promise.resolve().then(()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=i[e],r=t[0];return n.e(t[1]).then(()=>n(r))}r.keys=()=>Object.keys(i),r.id=84767,e.exports=r}}]);