@openmrs/esm-ward-app 9.2.1-pre.7387 → 9.2.1-pre.7408

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.
Files changed (286) hide show
  1. package/.turbo/turbo-build.log +4 -38
  2. package/dist/1011.js +1 -0
  3. package/dist/1011.js.map +1 -0
  4. package/dist/126.js +1 -0
  5. package/dist/1307.js +1 -0
  6. package/dist/1307.js.map +1 -0
  7. package/dist/1369.js +1 -0
  8. package/dist/1369.js.map +1 -0
  9. package/dist/15.js +1 -0
  10. package/dist/1564.js +1 -0
  11. package/dist/1567.js +1 -0
  12. package/dist/1739.js +1 -0
  13. package/dist/1739.js.map +1 -0
  14. package/dist/1845.js +1 -0
  15. package/dist/1895.js +1 -0
  16. package/dist/1895.js.map +1 -0
  17. package/dist/1953.js +1 -0
  18. package/dist/2016.js +1 -0
  19. package/dist/2016.js.map +1 -0
  20. package/dist/2117.js +1 -0
  21. package/dist/2117.js.map +1 -0
  22. package/dist/215.js +1 -0
  23. package/dist/2178.js +1 -0
  24. package/dist/239.js +1 -0
  25. package/dist/239.js.map +1 -0
  26. package/dist/2459.js +1 -0
  27. package/dist/2459.js.map +1 -0
  28. package/dist/2566.js +1 -0
  29. package/dist/2586.js +1 -0
  30. package/dist/2586.js.map +1 -0
  31. package/dist/2640.js +1 -0
  32. package/dist/2640.js.map +1 -0
  33. package/dist/2759.js +1 -0
  34. package/dist/3089.js +1 -0
  35. package/dist/3089.js.map +1 -0
  36. package/dist/3230.js +1 -0
  37. package/dist/3441.js +1 -0
  38. package/dist/3565.js +1 -0
  39. package/dist/3571.js +1 -0
  40. package/dist/3571.js.map +1 -0
  41. package/dist/3746.js +1 -0
  42. package/dist/3925.js +1 -0
  43. package/dist/3946.js +1 -0
  44. package/dist/3954.js +38 -0
  45. package/dist/3954.js.map +1 -0
  46. package/dist/401.js +1 -0
  47. package/dist/401.js.map +1 -0
  48. package/dist/4285.js +1 -0
  49. package/dist/4285.js.map +1 -0
  50. package/dist/4373.js +1 -0
  51. package/dist/4373.js.map +1 -0
  52. package/dist/4425.js +1 -0
  53. package/dist/4425.js.map +1 -0
  54. package/dist/4675.js +1 -0
  55. package/dist/4675.js.map +1 -0
  56. package/dist/4744.js +1 -0
  57. package/dist/4744.js.map +1 -0
  58. package/dist/4809.js +1 -0
  59. package/dist/4894.js +1 -0
  60. package/dist/4970.js +1 -0
  61. package/dist/4970.js.map +1 -0
  62. package/dist/504.js +1 -0
  63. package/dist/504.js.map +1 -0
  64. package/dist/5130.js +1 -0
  65. package/dist/5187.js +1 -0
  66. package/dist/5420.js +6 -0
  67. package/dist/5420.js.map +1 -0
  68. package/dist/5490.js +1 -0
  69. package/dist/5490.js.map +1 -0
  70. package/dist/5491.js +1 -0
  71. package/dist/5491.js.map +1 -0
  72. package/dist/5496.js +1 -0
  73. package/dist/5496.js.map +1 -0
  74. package/dist/5595.js +1 -0
  75. package/dist/5659.js +1 -0
  76. package/dist/5659.js.map +1 -0
  77. package/dist/5961.js +1 -0
  78. package/dist/6026.js +1 -0
  79. package/dist/6026.js.map +1 -0
  80. package/dist/6133.js +1 -0
  81. package/dist/6203.js +1 -0
  82. package/dist/6203.js.map +1 -0
  83. package/dist/6296.js +1 -0
  84. package/dist/6296.js.map +1 -0
  85. package/dist/634.js +1 -0
  86. package/dist/634.js.map +1 -0
  87. package/dist/6455.js +1 -0
  88. package/dist/6455.js.map +1 -0
  89. package/dist/6456.js +1 -0
  90. package/dist/6466.js +1 -0
  91. package/dist/6515.js +1 -0
  92. package/dist/6515.js.map +1 -0
  93. package/dist/6613.js +1 -0
  94. package/dist/6783.js +1 -0
  95. package/dist/6925.js +1 -0
  96. package/dist/6925.js.map +1 -0
  97. package/dist/7348.js +1 -0
  98. package/dist/74.js +1 -0
  99. package/dist/74.js.map +1 -0
  100. package/dist/7543.js +1 -0
  101. package/dist/7607.js +1 -0
  102. package/dist/7715.js +1 -0
  103. package/dist/7715.js.map +1 -0
  104. package/dist/772.js +1 -0
  105. package/dist/7965.js +1 -0
  106. package/dist/7965.js.map +1 -0
  107. package/dist/8599.js +1 -0
  108. package/dist/8727.js +1 -0
  109. package/dist/8847.js +1 -0
  110. package/dist/8910.js +1 -0
  111. package/dist/8910.js.map +1 -0
  112. package/dist/9015.js +1 -0
  113. package/dist/906.js +1 -0
  114. package/dist/9065.js +1 -0
  115. package/dist/9071.js +1 -0
  116. package/dist/9071.js.map +1 -0
  117. package/dist/9182.js +1 -0
  118. package/dist/9314.js +1 -0
  119. package/dist/9314.js.map +1 -0
  120. package/dist/9339.js +1 -0
  121. package/dist/9453.js +1 -0
  122. package/dist/9668.js +1 -0
  123. package/dist/9668.js.map +1 -0
  124. package/dist/9727.js +1 -0
  125. package/dist/9727.js.map +1 -0
  126. package/dist/9833.js +1 -0
  127. package/dist/9833.js.map +1 -0
  128. package/dist/9920.js +1 -0
  129. package/dist/9938.js +1 -0
  130. package/dist/main.js +5 -1
  131. package/dist/main.js.map +1 -1
  132. package/dist/openmrs-esm-ward-app.js +5 -1
  133. package/dist/openmrs-esm-ward-app.js.buildmanifest.json +698 -652
  134. package/dist/openmrs-esm-ward-app.js.map +1 -1
  135. package/dist/routes.json +1 -1
  136. package/package.json +6 -4
  137. package/rspack.config.js +1 -0
  138. package/src/types/index.ts +11 -0
  139. package/src/utils.ts +15 -0
  140. package/src/ward-view/default-ward/default-ward-view.component.tsx +3 -1
  141. package/src/ward-view/materal-ward/maternal-ward-view.component.tsx +15 -2
  142. package/src/ward-view/ward-view.resource.test.ts +140 -0
  143. package/src/ward-view/ward-view.resource.ts +21 -22
  144. package/src/ward-view-header/ward-metrics.component.tsx +59 -38
  145. package/src/ward-view-header/ward-metrics.test.tsx +17 -17
  146. package/src/ward-view-header/ward-view-header.component.tsx +3 -3
  147. package/translations/en.json +2 -4
  148. package/dist/1119.js +0 -1
  149. package/dist/1197.js +0 -1
  150. package/dist/1326.js +0 -1
  151. package/dist/1326.js.map +0 -1
  152. package/dist/1741.js +0 -1
  153. package/dist/1741.js.map +0 -1
  154. package/dist/1776.js +0 -1
  155. package/dist/1776.js.map +0 -1
  156. package/dist/1899.js +0 -1
  157. package/dist/1899.js.map +0 -1
  158. package/dist/1987.js +0 -1
  159. package/dist/1987.js.map +0 -1
  160. package/dist/2146.js +0 -1
  161. package/dist/2216.js +0 -1
  162. package/dist/2216.js.map +0 -1
  163. package/dist/2372.js +0 -1
  164. package/dist/2372.js.map +0 -1
  165. package/dist/2470.js +0 -1
  166. package/dist/2470.js.map +0 -1
  167. package/dist/2690.js +0 -1
  168. package/dist/2728.js +0 -2
  169. package/dist/2728.js.LICENSE.txt +0 -9
  170. package/dist/2728.js.map +0 -1
  171. package/dist/283.js +0 -1
  172. package/dist/283.js.map +0 -1
  173. package/dist/2898.js +0 -2
  174. package/dist/2898.js.LICENSE.txt +0 -9
  175. package/dist/2898.js.map +0 -1
  176. package/dist/2913.js +0 -2
  177. package/dist/2913.js.LICENSE.txt +0 -32
  178. package/dist/2913.js.map +0 -1
  179. package/dist/2948.js +0 -1
  180. package/dist/2948.js.map +0 -1
  181. package/dist/3099.js +0 -1
  182. package/dist/3144.js +0 -2
  183. package/dist/3144.js.LICENSE.txt +0 -19
  184. package/dist/3144.js.map +0 -1
  185. package/dist/3365.js +0 -1
  186. package/dist/3365.js.map +0 -1
  187. package/dist/3413.js +0 -1
  188. package/dist/3413.js.map +0 -1
  189. package/dist/3584.js +0 -1
  190. package/dist/3673.js +0 -1
  191. package/dist/3673.js.map +0 -1
  192. package/dist/380.js +0 -1
  193. package/dist/380.js.map +0 -1
  194. package/dist/3982.js +0 -1
  195. package/dist/3982.js.map +0 -1
  196. package/dist/4041.js +0 -2
  197. package/dist/4041.js.LICENSE.txt +0 -9
  198. package/dist/4041.js.map +0 -1
  199. package/dist/4055.js +0 -1
  200. package/dist/4132.js +0 -1
  201. package/dist/4189.js +0 -1
  202. package/dist/4189.js.map +0 -1
  203. package/dist/4300.js +0 -1
  204. package/dist/4335.js +0 -1
  205. package/dist/439.js +0 -1
  206. package/dist/4439.js +0 -2
  207. package/dist/4439.js.LICENSE.txt +0 -39
  208. package/dist/4439.js.map +0 -1
  209. package/dist/4618.js +0 -1
  210. package/dist/4652.js +0 -1
  211. package/dist/4944.js +0 -1
  212. package/dist/5173.js +0 -1
  213. package/dist/5241.js +0 -1
  214. package/dist/5442.js +0 -1
  215. package/dist/5603.js +0 -1
  216. package/dist/5603.js.map +0 -1
  217. package/dist/5661.js +0 -1
  218. package/dist/581.js +0 -1
  219. package/dist/581.js.map +0 -1
  220. package/dist/5885.js +0 -1
  221. package/dist/5885.js.map +0 -1
  222. package/dist/6022.js +0 -1
  223. package/dist/6336.js +0 -1
  224. package/dist/6336.js.map +0 -1
  225. package/dist/6468.js +0 -1
  226. package/dist/6589.js +0 -1
  227. package/dist/6679.js +0 -1
  228. package/dist/668.js +0 -2
  229. package/dist/668.js.LICENSE.txt +0 -39
  230. package/dist/668.js.map +0 -1
  231. package/dist/6840.js +0 -1
  232. package/dist/6859.js +0 -1
  233. package/dist/7097.js +0 -1
  234. package/dist/7159.js +0 -1
  235. package/dist/7179.js +0 -2
  236. package/dist/7179.js.LICENSE.txt +0 -9
  237. package/dist/7179.js.map +0 -1
  238. package/dist/723.js +0 -1
  239. package/dist/7512.js +0 -1
  240. package/dist/7512.js.map +0 -1
  241. package/dist/7524.js +0 -1
  242. package/dist/7524.js.map +0 -1
  243. package/dist/7617.js +0 -1
  244. package/dist/7661.js +0 -1
  245. package/dist/7661.js.map +0 -1
  246. package/dist/795.js +0 -1
  247. package/dist/8163.js +0 -1
  248. package/dist/8349.js +0 -1
  249. package/dist/8371.js +0 -1
  250. package/dist/8501.js +0 -2
  251. package/dist/8501.js.LICENSE.txt +0 -5
  252. package/dist/8501.js.map +0 -1
  253. package/dist/8522.js +0 -1
  254. package/dist/8522.js.map +0 -1
  255. package/dist/8610.js +0 -1
  256. package/dist/8610.js.map +0 -1
  257. package/dist/8618.js +0 -1
  258. package/dist/8622.js +0 -1
  259. package/dist/8622.js.map +0 -1
  260. package/dist/89.js +0 -2
  261. package/dist/89.js.LICENSE.txt +0 -9
  262. package/dist/89.js.map +0 -1
  263. package/dist/890.js +0 -1
  264. package/dist/9117.js +0 -1
  265. package/dist/9117.js.map +0 -1
  266. package/dist/917.js +0 -1
  267. package/dist/917.js.map +0 -1
  268. package/dist/9214.js +0 -1
  269. package/dist/9538.js +0 -1
  270. package/dist/9559.js +0 -1
  271. package/dist/9559.js.map +0 -1
  272. package/dist/9569.js +0 -1
  273. package/dist/9756.js +0 -1
  274. package/dist/9756.js.map +0 -1
  275. package/dist/9775.js +0 -1
  276. package/dist/9775.js.map +0 -1
  277. package/dist/986.js +0 -1
  278. package/dist/9876.js +0 -2
  279. package/dist/9876.js.LICENSE.txt +0 -9
  280. package/dist/9876.js.map +0 -1
  281. package/dist/9879.js +0 -1
  282. package/dist/9895.js +0 -1
  283. package/dist/9900.js +0 -1
  284. package/dist/9913.js +0 -1
  285. package/webpack.config.js +0 -1
  286. /package/src/{ward-view-header → ward-view}/ward-metrics.scss +0 -0
package/dist/6840.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([[6840],{36840:e=>{e.exports=JSON.parse('{"addPatientToWard":"Add patient to ward","admissionRequestCancelled":"Admission request cancelled.","admissionRequests":"Admission requests","admissionRequestsCount_one":"{{count}} admission request","admissionRequestsCount_other":"{{count}} admission requests","admissionRequestsEmptyHelperText":"Admission requests from other departments will appear here when patients are referred to this ward. You can also directly admit patients using the button below.","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","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","emptyStateIllustration":"Empty state illustration","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","noPendingAdmissionRequests":"No pending admission requests","note":"Note","notes":"Notes","notesRequiredForCancellingRequest":"Notes required for cancelling admission or transfer request","orderBasket":"Order basket","Orders":"Orders","other":"Other","Patient":"patient","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}}","PatientNote":"Patient Note","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","pendingAdmissions":"Pending admissions","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}}","totalBeds":"Total beds","totalBedsMetricValue":"{{ metricValue }}","transfer":"Transfer","transferElsewhere":"Transfer elsewhere","transferPatient":"Transfer patient","transfers":"Transfers","transferToDispositionLocation":"Transfer to {{location}}","transferType":"Transfer type","typeOfTransfer":"Type of transfer","unknown":"Unknown","unknownError":"An unknown error occurred","visitNoteSaved":"Patient note saved","wardClinicalNotePlaceholder":"Write any notes here","wardPatient":"Ward patient","wards":"Wards"}')}}]);
package/dist/6859.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([[6859],{56859:e=>{e.exports=JSON.parse('{"addPatientToWard":"Add patient to ward","admissionRequestCancelled":"Admission request cancelled.","admissionRequests":"Admission requests","admissionRequestsCount_one":"{{count}} admission request","admissionRequestsCount_other":"{{count}} admission requests","admissionRequestsEmptyHelperText":"Admission requests from other departments will appear here when patients are referred to this ward. You can also directly admit patients using the button below.","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","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","emptyStateIllustration":"Empty state illustration","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","noPendingAdmissionRequests":"No pending admission requests","note":"Note","notes":"Notes","notesRequiredForCancellingRequest":"Notes required for cancelling admission or transfer request","orderBasket":"Order basket","Orders":"Orders","other":"Other","Patient":"patient","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}}","PatientNote":"Patient Note","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","pendingAdmissions":"Pending admissions","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}}","totalBeds":"Total beds","totalBedsMetricValue":"{{ metricValue }}","transfer":"Transfer","transferElsewhere":"Transfer elsewhere","transferPatient":"Transfer patient","transfers":"Transfers","transferToDispositionLocation":"Transfer to {{location}}","transferType":"Transfer type","typeOfTransfer":"Type of transfer","unknown":"Unknown","unknownError":"An unknown error occurred","visitNoteSaved":"Patient note saved","wardClinicalNotePlaceholder":"Write any notes here","wardPatient":"Ward patient","wards":"Wards"}')}}]);
package/dist/7097.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([[7097],{27097:e=>{e.exports=JSON.parse('{"addPatientToWard":"Add patient to ward","admissionRequestCancelled":"Admission request cancelled.","admissionRequests":"Admission requests","admissionRequestsCount_one":"{{count}} admission request","admissionRequestsCount_other":"{{count}} admission requests","admissionRequestsEmptyHelperText":"Admission requests from other departments will appear here when patients are referred to this ward. You can also directly admit patients using the button below.","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","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","emptyStateIllustration":"Empty state illustration","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","noPendingAdmissionRequests":"No pending admission requests","note":"Note","notes":"Notes","notesRequiredForCancellingRequest":"Notes required for cancelling admission or transfer request","orderBasket":"Order basket","Orders":"Orders","other":"Other","Patient":"patient","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}}","PatientNote":"Patient Note","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","pendingAdmissions":"Pending admissions","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}}","totalBeds":"Total beds","totalBedsMetricValue":"{{ metricValue }}","transfer":"Transfer","transferElsewhere":"Transfer elsewhere","transferPatient":"Transfer patient","transfers":"Transfers","transferToDispositionLocation":"Transfer to {{location}}","transferType":"Transfer type","typeOfTransfer":"Type of transfer","unknown":"Unknown","unknownError":"An unknown error occurred","visitNoteSaved":"Patient note saved","wardClinicalNotePlaceholder":"Write any notes here","wardPatient":"Ward patient","wards":"Wards"}')}}]);
package/dist/7159.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([[7159],{77159:e=>{e.exports=JSON.parse('{"addPatientToWard":"Add patient to ward","admissionRequestCancelled":"Admission request cancelled.","admissionRequests":"Admission requests","admissionRequestsCount_one":"{{count}} admission request","admissionRequestsCount_other":"{{count}} admission requests","admissionRequestsEmptyHelperText":"Admission requests from other departments will appear here when patients are referred to this ward. You can also directly admit patients using the button below.","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","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","emptyStateIllustration":"Empty state illustration","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","noPendingAdmissionRequests":"No pending admission requests","note":"Note","notes":"Notes","notesRequiredForCancellingRequest":"Notes required for cancelling admission or transfer request","orderBasket":"Order basket","Orders":"Orders","other":"Other","Patient":"patient","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}}","PatientNote":"Patient Note","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","pendingAdmissions":"Pending admissions","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}}","totalBeds":"Total beds","totalBedsMetricValue":"{{ metricValue }}","transfer":"Transfer","transferElsewhere":"Transfer elsewhere","transferPatient":"Transfer patient","transfers":"Transfers","transferToDispositionLocation":"Transfer to {{location}}","transferType":"Transfer type","typeOfTransfer":"Type of transfer","unknown":"Unknown","unknownError":"An unknown error occurred","visitNoteSaved":"Patient note saved","wardClinicalNotePlaceholder":"Write any notes here","wardPatient":"Ward patient","wards":"Wards"}')}}]);
package/dist/7179.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 7179.js.LICENSE.txt */
2
- "use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([[7179],{13002:(e,n,t)=>{t.d(n,{E:()=>s,R_:()=>o,Tb:()=>c,tf:()=>u});var r=t(54440),i=t(65980),a=t(92891);function o(){var e=(0,a.A)().location,n=(0,r.useSession)().currentProvider,t=(0,i.A)(),o=t.emrConfiguration,s=t.isLoadingEmrConfiguration,u=t.errorFetchingEmrConfiguration;return{createEncounter:function(t,i,a){var s,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],c={patient:t.uuid,encounterType:i,location:null==e?void 0:e.uuid,encounterProviders:[{provider:null==n?void 0:n.uuid,encounterRole:null==o||null===(s=o.clinicianEncounterRole)||void 0===s?void 0:s.uuid}],obs:u,visit:a};return(0,r.openmrsFetch)("".concat(r.restBaseUrl,"/encounter"),{method:"POST",headers:{"content-type":"application/json"},body:c})},emrConfiguration:o,isLoadingEmrConfiguration:s,errorFetchingEmrConfiguration:u}}function s(){var e=o(),n=e.createEncounter,t=e.emrConfiguration;return{admitPatient:function(e,r,i){var a="ADMIT"===r?t.admissionEncounterType:"TRANSFER"===r?t.transferWithinHospitalEncounterType:null;return n(e,a,i)},isLoadingEmrConfiguration:e.isLoadingEmrConfiguration,errorFetchingEmrConfiguration:e.errorFetchingEmrConfiguration}}function u(e,n,t){return(0,r.openmrsFetch)("".concat(r.restBaseUrl,"/beds/").concat(e),{method:"POST",headers:{"content-type":"application/json"},body:{patientUuid:n,encounterUuid:t}})}function c(e,n){return(0,r.openmrsFetch)("".concat(r.restBaseUrl,"/beds/").concat(e,"?patientUuid=").concat(n),{method:"DELETE"})}},27179:(e,n,t)=>{t.r(n),t.d(n,{default:()=>A});var r=t(1343),i=t.n(r),a=t(72339),o=t(17801),s=t(54440),u=t(83209),c=t(42880);function d(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function l(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["ADMIT","TRANSFER"],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"custom:(dispositionLocation,dispositionType,disposition,dispositionEncounter:full,patient:(uuid,identifiers,voided,person:(uuid,display,gender,age,birthdate,birthtime,preferredName,preferredAddress,dead,deathDate)),dispositionObsGroup,visit)",r=new URLSearchParams;r.set("dispositionType",n.join(",")),r.set("patients",null==e?void 0:e.join(",")),r.set("v",t);var i=(0,s.useOpenmrsFetchAll)((null==e?void 0:e.length)>0?"".concat(s.restBaseUrl,"/emrapi/inpatient/request?").concat(r.toString()):null);return 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){d(e,n,t[n])})}return e}({inpatientRequests:i.data},function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(i,["data"]))}var f=t(88010),p=t.n(f);function m(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function b(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"custom:(uuid,identifiers,voided,person:(uuid,display,gender,age,birthdate,birthtime,preferredName,preferredAddress,dead,deathDate))",t=p()(e?"".concat(s.restBaseUrl,"/patient/").concat(e,"?v=").concat(n):null,s.openmrsFetch),i=t.data,a=function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(t,["data"]),o=(0,r.useMemo)(function(){return 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){m(e,n,t[n])})}return e}({patient:null==i?void 0:i.data},a)},[i,a]);return o}var v=t(92891),y=t(99244),h=t(81776);function g(e,n,t,r,i,a,o){try{var s=e[a](o),u=s.value}catch(e){return void t(e)}s.done?n(u):Promise.resolve(u).then(r,i)}function w(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function E(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){w(e,n,t[n])})}return e}const A=function(e){var n=e.closeWorkspace,t=e.workspaceProps.selectedPatientUuid,r=(0,v.A)().location,d=b(t),f=d.patient,p=d.isLoading,m=d.error,w=(0,s.useVisit)(t),A=w.activeVisit,k=w.isLoading,T=w.error,C=(0,a.useTranslation)().t,S=(0,u.r)(t),P=S.data,O=S.isLoading,L=S.error,$=(0,c.k)([t]),R=$.data,I=$.isLoading,U=$.error,j=l([t]),x=j.inpatientRequests,D=j.isLoading,F=j.error,_=m||T||L||U||F,B=null;if(p||k||O||I||D)B=i().createElement(o.rrI,null);else if(_)B=i().createElement("div",null,i().createElement(o.jeF,{kind:"error",lowContrast:!0,title:C("errorLoadingPatientInfo","Error loading patient info")}),i().createElement(o.$nd,{kind:"ghost",renderIcon:function(e){return i().createElement(s.ArrowLeftIcon,E({size:24},e))},iconDescription:C("backToSearchResults","Back to search results"),size:"sm",onClick:function(){return n()}},i().createElement("span",null,C("backToSearchResults","Back to search results"))));else{var V,N,W,M=P.data.results[0],G=(null==M||null===(V=M.physicalLocation)||void 0===V?void 0:V.uuid)==r.uuid,q=(null===(W=R[0])||void 0===W||null===(N=W.currentInpatientLocation)||void 0===N?void 0:N.uuid)==r.uuid,H=R[0]&&!q,z={patient:f,visit:A,bed:G?{id:M.bedId,bedNumber:M.bedNumber,bedType:M.bedType}:null,inpatientAdmission:R[0],inpatientRequest:null};B=i().createElement("div",null,i().createElement(h.default,{wardPatient:z}),A?i().createElement("div",null,q&&i().createElement(o.jeF,{kind:"warning",lowContrast:!0,hideCloseButton:!0,title:C("patientAlreadyAdmittedToCurrentLocation","Patient already admitted to current location")}),H&&i().createElement(o.jeF,{kind:"warning",lowContrast:!0,hideCloseButton:!0,title:C("patientCurrentlyAdmittedToWardLocation","Patient currently admitted to {{wardLocation}}",{wardLocation:R[0].currentInpatientLocation.display})}),x[0]&&i().createElement(o.jeF,{kind:"warning",lowContrast:!0,hideCloseButton:!0,title:C("patientHasPendingAdmissionRequest","Patient already has a pending admission request to location {{location}}",{location:x[0].dispositionLocation.display})}),i().createElement(y.A,{wardPatient:z,dispositionType:R[0]?"TRANSFER":"ADMIT",onAdmitPatientSuccess:function(){return(e=function(){return function(e,n){var t,r,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(t)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(t=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=n.call(e,a)}catch(e){s=[6,e],r=0}finally{t=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}(this,function(e){switch(e.label){case 0:return[4,n({discardUnsavedChanges:!0})];case 1:return e.sent(),(0,s.closeWorkspaceGroup2)(),[2]}})},function(){var n=this,t=arguments;return new Promise(function(r,i){var a=e.apply(n,t);function o(e){g(a,r,i,o,s,"next",e)}function s(e){g(a,r,i,o,s,"throw",e)}o(void 0)})})();var e},disabled:q})):i().createElement("div",null,C("patienthasNoActiveVisit","Patient has no active visit")),i().createElement(o.$nd,{kind:"ghost",renderIcon:function(e){return i().createElement(s.ArrowLeftIcon,E({size:24},e))},iconDescription:C("backToSearchResults","Back to search results"),size:"sm",onClick:function(){return n()}},i().createElement("span",null,C("backToSearchResults","Back to search results"))))}return i().createElement(s.Workspace2,{title:C("admitPatient","Admit patient")},B)}},42880:(e,n,t)=>{t.d(n,{k:()=>i});var r=t(54440);function i(e){var n=(null==e?void 0:e.length)>0,t=new URLSearchParams;t.append("v","custom:(visit,patient:(uuid,identifiers:(uuid,display,identifier,identifierType),voided,person:(uuid,display,gender,age,birthdate,birthtime,preferredName,preferredAddress,dead,deathDate)),encounterAssigningToCurrentInpatientLocation:(encounterDatetime),currentInpatientRequest:(dispositionLocation,dispositionType,disposition:(uuid,display),dispositionEncounter:(uuid,display),dispositionObsGroup:(uuid,display),visit:(uuid),patient:(uuid)),firstAdmissionOrTransferEncounter:(encounterDatetime),currentInpatientLocation,)");var i=!0,a=!1,o=void 0;try{for(var s,u=(null!=e?e:[])[Symbol.iterator]();!(i=(s=u.next()).done);i=!0){var c=s.value;t.append("patients",c)}}catch(e){a=!0,o=e}finally{try{i||null==u.return||u.return()}finally{if(a)throw o}}return(0,r.useOpenmrsFetchAll)(n?"".concat(r.restBaseUrl,"/emrapi/inpatient/admission?").concat(t.toString()):null)}},58139:(e,n,t)=>{e.exports=t(93296)},65980:(e,n,t)=>{t.d(n,{A:()=>u});var r=t(54440),i=t(1343),a=t(88010),o=t.n(a),s="custom:".concat([["metadataSourceName","ref"],["orderingProviderEncounterRole","ref"],["supportsTransferLocationTag","(uuid,display,name,links)"],["unknownLocation","ref"],["denyAdmissionConcept","ref"],["admissionForm","ref"],["exitFromInpatientEncounterType","ref"],["extraPatientIdentifierTypes","ref"],["consultFreeTextCommentsConcept","ref"],["sameAsConceptMapType","ref"],["testPatientPersonAttributeType","ref"],["admissionDecisionConcept","ref"],["supportsAdmissionLocationTag","(uuid,display,name,links)"],["checkInEncounterType","ref"],["transferWithinHospitalEncounterType","ref"],["suppressedDiagnosisConcepts","ref"],["primaryIdentifierType","ref"],["nonDiagnosisConceptSets","ref"],["fullPrivilegeLevel","ref"],["unknownProvider","ref"],["diagnosisSets","ref"],["personImageDirectory","ref"],["visitNoteEncounterType","ref"],["inpatientNoteEncounterType","ref"],["transferRequestEncounterType","ref"],["consultEncounterType","ref"],["diagnosisMetadata","ref"],["narrowerThanConceptMapType","ref"],["clinicianEncounterRole","ref"],["conceptSourcesForDiagnosisSearch","ref"],["patientDiedConcept","ref"],["emrApiConceptSource","ref"],["lastViewedPatientSizeLimit","ref"],["identifierTypesToSearch","ref"],["telephoneAttributeType","ref"],["checkInClerkEncounterRole","ref"],["dischargeForm","ref"],["unknownCauseOfDeathConcept","ref"],["visitAssignmentHandlerAdjustEncounterTimeOfDayIfNecessary","ref"],["atFacilityVisitType","ref"],["visitExpireHours","ref"],["admissionEncounterType","ref"],["motherChildRelationshipType","ref"],["dispositions","ref"],["dispositionDescriptor","ref"],["highPrivilegeLevel","ref"],["supportsLoginLocationTag","(uuid,display,name,links)"],["unknownPatientPersonAttributeType","ref"],["supportsVisitsLocationTag","(uuid,display,name,links)"],["transferForm","ref"],["bedAssignmentEncounterType","ref"],["cancelADTRequestEncounterType","ref"],["admissionDecisionConcept","ref"],["denyAdmissionConcept","ref"]].map(function(e){return e.join(":")}).join(","));function u(){var e=o()("".concat(r.restBaseUrl,"/emrapi/configuration?v=").concat(s),r.openmrsFetch);return(0,i.useMemo)(function(){var n;return{emrConfiguration:null===(n=e.data)||void 0===n?void 0:n.data,isLoadingEmrConfiguration:e.isLoading,mutateEmrConfiguration:e.mutate,errorFetchingEmrConfiguration:e.error}},[e])}},71123:(e,n,t)=>{t.d(n,{Ay:()=>c,BE:()=>u});var r=t(1343),i=t(58139),a=t(55434);const o=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then(n=>{e.status="fulfilled",e.value=n},n=>{e.status="rejected",e.reason=n}),e)}),s={dedupe:!0},u=a.OBJECT.defineProperty(a.SWRConfig,"defaultValue",{value:a.defaultConfig}),c=(0,a.withArgs)((e,n,t)=>{const{cache:u,compare:c,suspense:d,fallbackData:l,revalidateOnMount:f,revalidateIfStale:p,refreshInterval:m,refreshWhenHidden:b,refreshWhenOffline:v,keepPreviousData:y}=t,[h,g,w,E]=a.SWRGlobalState.get(u),[A,k]=(0,a.serialize)(e),T=(0,r.useRef)(!1),C=(0,r.useRef)(!1),S=(0,r.useRef)(A),P=(0,r.useRef)(n),O=(0,r.useRef)(t),L=()=>O.current,$=()=>L().isVisible()&&L().isOnline(),[R,I,U,j]=(0,a.createCacheHelper)(u,A),x=(0,r.useRef)({}).current,D=(0,a.isUndefined)(l)?t.fallback[A]:l,F=(e,n)=>{for(const t in x){const r=t;if("data"===r){if(!c(e[r],n[r])){if(!(0,a.isUndefined)(e[r]))return!1;if(!c(H,n[r]))return!1}}else if(n[r]!==e[r])return!1}return!0},_=(0,r.useMemo)(()=>{const e=!!A&&!!n&&((0,a.isUndefined)(f)?!L().isPaused()&&!d&&(!!(0,a.isUndefined)(p)||p):f),t=n=>{const t=(0,a.mergeObjects)(n);return delete t._k,e?{isValidating:!0,isLoading:!0,...t}:t},r=R(),i=j(),o=t(r),s=r===i?o:t(i);let u=o;return[()=>{const e=t(R());return F(e,u)?(u.data=e.data,u.isLoading=e.isLoading,u.isValidating=e.isValidating,u.error=e.error,u):(u=e,e)},()=>s]},[u,A]),B=(0,i.useSyncExternalStore)((0,r.useCallback)(e=>U(A,(n,t)=>{F(t,n)||e()}),[u,A]),_[0],_[1]),V=!T.current,N=h[A]&&h[A].length>0,W=B.data,M=(0,a.isUndefined)(W)?D:W,G=B.error,q=(0,r.useRef)(M),H=y?(0,a.isUndefined)(W)?q.current:W:M,z=!(N&&!(0,a.isUndefined)(G))&&(V&&!(0,a.isUndefined)(f)?f:!L().isPaused()&&(d?!(0,a.isUndefined)(M)&&p:(0,a.isUndefined)(M)||p)),K=!!(A&&n&&V&&z),Y=(0,a.isUndefined)(B.isValidating)?K:B.isValidating,J=(0,a.isUndefined)(B.isLoading)?K:B.isLoading,Q=(0,r.useCallback)(async e=>{const n=P.current;if(!A||!n||C.current||L().isPaused())return!1;let r,i,o=!0;const s=e||{},u=!w[A]||!s.dedupe,d=()=>a.IS_REACT_LEGACY?!C.current&&A===S.current&&T.current:A===S.current,l={isValidating:!1,isLoading:!1},f=()=>{I(l)},p=()=>{const e=w[A];e&&e[1]===i&&delete w[A]},m={isValidating:!0};(0,a.isUndefined)(R().data)&&(m.isLoading=!0);try{if(u&&(I(m),t.loadingTimeout&&(0,a.isUndefined)(R().data)&&setTimeout(()=>{o&&d()&&L().onLoadingSlow(A,t)},t.loadingTimeout),w[A]=[n(k),(0,a.getTimestamp)()]),[r,i]=w[A],r=await r,u&&setTimeout(p,t.dedupingInterval),!w[A]||w[A][1]!==i)return u&&d()&&L().onDiscarded(A),!1;l.error=a.UNDEFINED;const e=g[A];if(!(0,a.isUndefined)(e)&&(i<=e[0]||i<=e[1]||0===e[1]))return f(),u&&d()&&L().onDiscarded(A),!1;const s=R().data;l.data=c(s,r)?s:r,u&&d()&&L().onSuccess(r,A,t)}catch(e){p();const n=L(),{shouldRetryOnError:t}=n;n.isPaused()||(l.error=e,u&&d()&&(n.onError(e,A,n),(!0===t||(0,a.isFunction)(t)&&t(e))&&(L().revalidateOnFocus&&L().revalidateOnReconnect&&!$()||n.onErrorRetry(e,A,n,e=>{const n=h[A];n&&n[0]&&n[0](a.revalidateEvents.ERROR_REVALIDATE_EVENT,e)},{retryCount:(s.retryCount||0)+1,dedupe:!0}))))}return o=!1,f(),!0},[A,u]),X=(0,r.useCallback)((...e)=>(0,a.internalMutate)(u,S.current,...e),[]);if((0,a.useIsomorphicLayoutEffect)(()=>{P.current=n,O.current=t,(0,a.isUndefined)(W)||(q.current=W)}),(0,a.useIsomorphicLayoutEffect)(()=>{if(!A)return;const e=Q.bind(a.UNDEFINED,s);let n=0;const t=(0,a.subscribeCallback)(A,h,(t,r={})=>{if(t==a.revalidateEvents.FOCUS_EVENT){const t=Date.now();L().revalidateOnFocus&&t>n&&$()&&(n=t+L().focusThrottleInterval,e())}else if(t==a.revalidateEvents.RECONNECT_EVENT)L().revalidateOnReconnect&&$()&&e();else{if(t==a.revalidateEvents.MUTATE_EVENT)return Q();if(t==a.revalidateEvents.ERROR_REVALIDATE_EVENT)return Q(r)}});return C.current=!1,S.current=A,T.current=!0,I({_k:k}),z&&((0,a.isUndefined)(M)||a.IS_SERVER?e():(0,a.rAF)(e)),()=>{C.current=!0,t()}},[A]),(0,a.useIsomorphicLayoutEffect)(()=>{let e;function n(){const n=(0,a.isFunction)(m)?m(R().data):m;n&&-1!==e&&(e=setTimeout(t,n))}function t(){R().error||!b&&!L().isVisible()||!v&&!L().isOnline()?n():Q(s).then(n)}return n(),()=>{e&&(clearTimeout(e),e=-1)}},[m,b,v,A]),(0,r.useDebugValue)(H),d&&(0,a.isUndefined)(M)&&A){if(!a.IS_REACT_LEGACY&&a.IS_SERVER)throw new Error("Fallback data is required when using suspense in SSR.");P.current=n,O.current=t,C.current=!1;const e=E[A];if(!(0,a.isUndefined)(e)){const n=X(e);o(n)}if(!(0,a.isUndefined)(G))throw G;{const e=Q(s);(0,a.isUndefined)(H)||(e.status="fulfilled",e.value=!0),o(e)}}return{mutate:X,get data(){return x.data=!0,H},get error(){return x.error=!0,G},get isValidating(){return x.isValidating=!0,Y},get isLoading(){return x.isLoading=!0,J}}})},71296:(e,n,t)=>{t.d(n,{A:()=>s});var r=t(30977),i=t.n(r),a=t(95924),o=t.n(a)()(i());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__style__wardWorkspacePatientBanner___2KnUU>div{background:#f4f4f4}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/ward-workspace/patient-banner/style.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CC1DA,0DACE,kBDFI",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 '@openmrs/esm-styleguide/src/vars' as *;\n\n.wardWorkspacePatientBanner {\n > div {\n background: $ui-01;\n }\n}\n"],sourceRoot:""}]),o.locals={wardWorkspacePatientBanner:"-esm-ward__style__wardWorkspacePatientBanner___2KnUU"};const s=o},81776:(e,n,t)=>{t.r(n),t.d(n,{default:()=>E});var r=t(54440),i=t(1343),a=t.n(i),o=t(72591),s=t.n(o),u=t(1740),c=t.n(u),d=t(88128),l=t.n(d),f=t(30855),p=t.n(f),m=t(93051),b=t.n(m),v=t(73656),y=t.n(v),h=t(71296),g={};g.styleTagTransform=y(),g.setAttributes=p(),g.insert=l().bind(null,"head"),g.domAPI=c(),g.insertStyleElement=b(),s()(h.A,g);const w=h.A&&h.A.locals?h.A.locals:void 0,E=function(e){var n,t=e.wardPatient,i=(null!=t?t:{}).patient,o=(null!==(n=(0,r.useAppContext)("ward-view-context"))&&void 0!==n?n:{}).WardPatientHeader;return i?o?a().createElement("div",{className:w.wardWorkspacePatientBanner},a().createElement(o,{wardPatient:t})):a().createElement(a().Fragment,null):(console.warn("Patient details were not received by the ward workspace"),null)}},83209:(e,n,t)=>{t.d(n,{r:()=>a});var r=t(54440),i=t(71123);function a(e){var n="".concat(r.restBaseUrl,"/beds?patientUuid=").concat(e);return(0,i.Ay)(n,r.openmrsFetch)}},92891:(e,n,t)=>{t.d(n,{A:()=>s});var r=t(54440),i=t(8877),a=t(88010),o=t.n(a);function s(){var e=(0,i.useParams)().locationUuid,n=(0,r.useSession)().sessionLocation,t=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"custom:(display,uuid)";return o()(e?"".concat(r.restBaseUrl,"/location/").concat(e,"?v=").concat(n):null,r.openmrsFetch)}(e||null),a=t.data,s=t.isLoading,u=t.error,c=e&&u;return{location:e?null==a?void 0:a.data:n,isLoadingLocation:s,errorFetchingLocation:u,invalidLocation:c}}},93296:(e,n,t)=>{var r=t(1343),i="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},a=r.useState,o=r.useEffect,s=r.useLayoutEffect,u=r.useDebugValue;function c(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!i(e,t)}catch(e){return!0}}var d="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,n){return n()}:function(e,n){var t=n(),r=a({inst:{value:t,getSnapshot:n}}),i=r[0].inst,d=r[1];return s(function(){i.value=t,i.getSnapshot=n,c(i)&&d({inst:i})},[e,t,n]),o(function(){return c(i)&&d({inst:i}),e(function(){c(i)&&d({inst:i})})},[e]),u(t),t};n.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:d},99244:(e,n,t)=>{t.d(n,{A:()=>f});var r=t(1343),i=t.n(r),a=t(72339),o=t(17801),s=t(54440),u=t(92891),c=t(13002);function d(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 l(e,n,t,r,i,a,o){try{var s=e[a](o),u=s.value}catch(e){return void t(e)}s.done?n(u):Promise.resolve(u).then(r,i)}const f=function(e){var n,t,f,p=e.wardPatient,m=e.onAdmitPatientSuccess,b=e.disabled,v=e.dispositionType,y=null!=p?p:{},h=y.patient,g=y.visit,w=y.bed,E=(0,a.useTranslation)().t,A=(0,u.A)().location,k="tablet"===(0,s.useLayoutType)()?"lg":"md",T=(null!==(n=(0,s.useAppContext)("ward-view-context"))&&void 0!==n?n:{}).wardPatientGroupDetails,C=(0,c.E)(),S=C.admitPatient,P=C.isLoadingEmrConfiguration,O=C.errorFetchingEmrConfiguration,L=(t=(0,r.useState)(!1),f=2,function(e){if(Array.isArray(e))return e}(t)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,a=[],o=!0,s=!1;try{for(t=t.call(e);!(o=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==t.return||t.return()}finally{if(s)throw i}}return a}}(t,f)||function(e,n){if(e){if("string"==typeof e)return d(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)?d(e,n):void 0}}(t,f)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),$=L[0],R=L[1],I=(0,s.useFeatureFlag)("bedmanagement-module"),U=P||O||b||$;return i().createElement(o.$nd,{kind:"ghost",renderIcon:s.ArrowRightIcon,size:k,disabled:U,onClick:function(){return(e=function(){var e,n,t,r;return function(e,n){var t,r,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(t)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(t=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=n.call(e,a)}catch(e){s=[6,e],r=0}finally{t=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}(this,function(i){switch(i.label){case 0:return!I||w?[3,1]:((0,s.launchWorkspace2)("admit-patient-form-workspace",{wardPatient:p}),[3,7]);case 1:R(!0),i.label=2;case 2:return i.trys.push([2,5,6,7]),[4,S(h,v,g.uuid)];case 3:return n=i.sent(),[4,null==T||null===(e=T.mutate)||void 0===e?void 0:e.call(T)];case 4:return i.sent(),n&&(null==n?void 0:n.ok)&&(0,s.showSnackbar)({kind:"success",title:E("patientAdmittedSuccessfully","Patient admitted successfully"),subtitle:E("patientAdmittedWoBed","Patient admitted successfully to {{location}}",{location:null==A?void 0:A.display})}),m(),[3,7];case 5:return a=t=i.sent(),o=Error,r=(null!=o&&"undefined"!=typeof Symbol&&o[Symbol.hasInstance]?o[Symbol.hasInstance](a):a instanceof o)?t.message:E("unknownError","An unknown error occurred"),(0,s.showSnackbar)({kind:"error",title:E("errorCreatingEncounter","Failed to admit patient"),subtitle:r}),[3,7];case 6:return R(!1),[7];case 7:return[2]}var a,o})},function(){var n=this,t=arguments;return new Promise(function(r,i){var a=e.apply(n,t);function o(e){l(a,r,i,o,s,"next",e)}function s(e){l(a,r,i,o,s,"throw",e)}o(void 0)})})();var e}},"ADMIT"===v||U?E("admitPatient","Admit patient"):E("transferPatient","Transfer patient"))}}}]);
@@ -1,9 +0,0 @@
1
- /**
2
- * @license React
3
- * use-sync-external-store-shim.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */
package/dist/7179.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"7179.js","mappings":";4NAKO,SAASA,IACd,IAAM,GAAeC,EAAAA,EAAAA,KAAbC,SACF,GAAsBC,EAAAA,EAAAA,cAApBC,gBAC+EC,GAAAA,EAAAA,EAAAA,KAA/EC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AAAA,EAAAA,EAAAA,WAAS,G,EAAA,E,+zBAAxCiB,EAA+BjB,EAAAA,GAAlBkB,EAAkBlB,EAAAA,GAKhCmB,GAAiCC,EAAAA,EAAAA,gBAAe,wBAoChDC,EAAiBpU,GAA6BC,GAAiC2G,GAAYoN,EACjG,OACE,kBAACpP,EAAAA,IAAMA,CAACH,KAAK,QAAQI,WAAYwP,EAAAA,eAAgBrP,KAAM6O,EAAgBjN,SAAUwN,EAAgBlP,QAjCnF,W,wBAOJ6O,EADAO,EAYC/F,EACDgG,E,yrCAlBNL,GAAmCrO,EAAnCqO,C,OARJM,EAAAA,EAAAA,kBAAoD,+BAAgC,CAAE5O,YAAAA,I,cAWpFqO,GAAe,G,iBAEI,O,uBAAA,C,EAAM7S,EAAajB,EAASkB,EAAiBR,EAAML,O,OACpE,OADM8T,EAAW,SACjB,C,EAAMP,SAA+B,QAA/BA,EAAAA,EAAyBxM,cAAzBwM,IAAAA,OAAAA,EAAAA,EAAAA,KAAAA,I,cAAN,SACIO,IAAYA,aAAAA,EAAAA,EAAUG,MACxBC,EAAAA,EAAAA,cAAa,CACXjQ,KAAM,UACNE,MAAOpB,EAAE,8BAA+B,iCACxCoR,SAAUpR,EAAE,uBAAwB,gDAAiD,CACnF5D,SAAUA,aAAAA,EAAAA,EAAU2G,YAI1BG,I,sBACO8H,EAAAA,EAAAA,O,EAC6BqC,MAA9B2D,G,oGAAsChG,EAAIqG,QAAUrR,EAAE,eAAgB,8BAC5EmR,EAAAA,EAAAA,cAAa,CACXjQ,KAAM,QACNE,MAAOpB,EAAE,yBAA0B,2BACnCoR,SAAUJ,I,oBAGZN,GAAe,G,8BAGrB,E,uLAKyB,UAApB5S,GAA+B+S,EAC5B7Q,EAAE,eAAgB,iBAClBA,EAAE,kBAAmB,oBAG/B,C","sources":["webpack://@openmrs/esm-ward-app/./src/ward.resource.ts","webpack://@openmrs/esm-ward-app/./src/hooks/useInpatientRequestByPatients.ts","webpack://@openmrs/esm-ward-app/./src/hooks/useRestPatient.ts","webpack://@openmrs/esm-ward-app/./src/ward-workspace/create-admission-encounter/create-admission-encounter.workspace.tsx","webpack://@openmrs/esm-ward-app/./src/hooks/useInpatientAdmissionByPatients.ts","webpack://@openmrs/esm-ward-app/../../node_modules/use-sync-external-store/shim/index.js","webpack://@openmrs/esm-ward-app/./src/hooks/useEmrConfiguration.ts","webpack://@openmrs/esm-ward-app/../../node_modules/swr/dist/core/index.mjs","webpack://@openmrs/esm-ward-app/./src/ward-workspace/patient-banner/style.scss","webpack://@openmrs/esm-ward-app/./src/ward-workspace/patient-banner/style.scss?2cee","webpack://@openmrs/esm-ward-app/./src/ward-workspace/patient-banner/patient-banner.component.tsx","webpack://@openmrs/esm-ward-app/./src/hooks/useAssignedBedByPatient.ts","webpack://@openmrs/esm-ward-app/./src/hooks/useWardLocation.ts","webpack://@openmrs/esm-ward-app/./src/hooks/useLocation.ts","webpack://@openmrs/esm-ward-app/../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js","webpack://@openmrs/esm-ward-app/./src/ward-workspace/admit-patient-button.component.tsx"],"names":["useCreateEncounter","useWardLocation","location","useSession","currentProvider","useEmrConfiguration","emrConfiguration","isLoadingEmrConfiguration","errorFetchingEmrConfiguration","createEncounter","patient","encounterType","visitUuid","obs","encounterPayload","uuid","encounterProviders","provider","encounterRole","clinicianEncounterRole","visit","openmrsFetch","restBaseUrl","method","headers","body","useAdmitPatient","admitPatient","dispositionType","admissionEncounterType","transferWithinHospitalEncounterType","assignPatientToBed","bedUuid","patientUuid","encounterUuid","removePatientFromBed","bedId","useInpatientRequestByPatients","patientUuids","rep","searchParams","URLSearchParams","set","join","useOpenmrsFetchAll","length","toString","inpatientRequests","data","rest","useRestPatient","useSWRImmutable","results","useMemo","closeWorkspace","workspaceProps","selectedPatientUuid","isLoading","error","useVisit","activeVisit","useTranslation","t","useAssignedBedByPatient","useInpatientAdmissionByPatients","hasError","errorLoadingPatient","errorLoadingVisit","errorLoadingBed","errorInpatientAdmission","errorInpatientRequests","content","isLoadingPatient","isLoadingVisit","isLoadingBed","isLoadingInpatientAdmission","isLoadingInpatientRequest","SkeletonText","div","InlineNotification","kind","lowContrast","title","Button","renderIcon","props","ArrowLeftIcon","size","iconDescription","onClick","span","assignedBedDetail","inpatientAdmissions","bedData","isAssignedBedAtCurrentLocation","physicalLocation","isAdmittedToCurrentLocation","currentInpatientLocation","isAdmittedToOtherLocation","wardPatient","bed","id","bedNumber","bedType","inpatientAdmission","inpatientRequest","WardPatientWorkspaceBanner","hideCloseButton","wardLocation","display","dispositionLocation","AdmitPatientButton","onAdmitPatientSuccess","discardUnsavedChanges","closeWorkspaceGroup2","disabled","Workspace2","hasPatients","append","module","exports","customRep","map","prop","swrData","mutateEmrConfiguration","mutate","use","promise","status","value","reason","then","v","e","WITH_DEDUPE","dedupe","SWRConfig","OBJECT","defineProperty","defaultConfig","useSWR","withArgs","_key","fetcher","config","cache","compare","suspense","fallbackData","revalidateOnMount","revalidateIfStale","refreshInterval","refreshWhenHidden","refreshWhenOffline","keepPreviousData","EVENT_REVALIDATORS","MUTATION","FETCH","PRELOAD","SWRGlobalState","get","key","fnArg","serialize","initialMountedRef","useRef","unmountedRef","keyRef","fetcherRef","configRef","getConfig","current","isActive","isVisible","isOnline","getCache","setCache","subscribeCache","getInitialCache","createCacheHelper","stateDependencies","fallback","isUndefined","isEqual","prev","_","returnedData","getSnapshot","shouldStartRequest","isPaused","getSelectedCache","state","snapshot","mergeObjects","_k","isValidating","cachedData","initialData","clientSnapshot","serverSnapshot","memorizedSnapshot","newSnapshot","cached","useSyncExternalStore","useCallback","callback","isInitialMount","hasRevalidator","laggyDataRef","shouldDoInitialRevalidation","defaultValidatingState","revalidate","async","revalidateOpts","currentFetcher","newData","startAt","loading","opts","shouldStartNewRequest","callbackSafeguard","IS_REACT_LEGACY","finalState","finishRequestAndUpdateState","cleanupState","requestInfo","initialState","loadingTimeout","setTimeout","onLoadingSlow","getTimestamp","dedupingInterval","onDiscarded","UNDEFINED","mutationInfo","cacheData","onSuccess","err","currentConfig","shouldRetryOnError","onError","isFunction","revalidateOnFocus","revalidateOnReconnect","onErrorRetry","_opts","revalidators","revalidateEvents","ERROR_REVALIDATE_EVENT","retryCount","boundMutate","args","internalMutate","useIsomorphicLayoutEffect","softRevalidate","bind","nextFocusRevalidatedAt","unsubEvents","subscribeCallback","type","FOCUS_EVENT","now","Date","focusThrottleInterval","RECONNECT_EVENT","MUTATE_EVENT","IS_SERVER","rAF","timer","next","interval","execute","clearTimeout","useDebugValue","Error","req","___CSS_LOADER_EXPORT___","push","locals","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","useAppContext","WardPatientHeader","className","styles","wardWorkspacePatientBanner","console","warn","url","locationUuid","useParams","sessionLocation","useLocation","locationUuidFromUrl","invalidLocation","errorFetchingLocation","locationResponse","isLoadingLocation","React","objectIs","Object","is","x","y","useState","useEffect","useLayoutEffect","checkIfSnapshotChanged","inst","latestGetSnapshot","nextValue","shim","window","document","createElement","subscribe","_useState","forceUpdate","responsiveSize","useLayoutType","wardPatientGroupDetails","isAdmitting","setIsAdmitting","isBedManagementModuleInstalled","useFeatureFlag","disabledButton","ArrowRightIcon","response","errorMessage","launchWorkspace2","ok","showSnackbar","subtitle","message"],"sourceRoot":""}
package/dist/723.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([[723],{60723:e=>{e.exports=JSON.parse('{"addPatientToWard":"Add patient to ward","admissionRequestCancelled":"Admission request cancelled.","admissionRequests":"Admission requests","admissionRequestsCount_one":"{{count}} admission request","admissionRequestsCount_other":"{{count}} admission requests","admissionRequestsEmptyHelperText":"Admission requests from other departments will appear here when patients are referred to this ward. You can also directly admit patients using the button below.","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","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","emptyStateIllustration":"Empty state illustration","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","noPendingAdmissionRequests":"No pending admission requests","note":"Note","notes":"Notes","notesRequiredForCancellingRequest":"Notes required for cancelling admission or transfer request","orderBasket":"Order basket","Orders":"Orders","other":"Other","Patient":"patient","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}}","PatientNote":"Patient Note","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","pendingAdmissions":"Pending admissions","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}}","totalBeds":"Total beds","totalBedsMetricValue":"{{ metricValue }}","transfer":"Transfer","transferElsewhere":"Transfer elsewhere","transferPatient":"Transfer patient","transfers":"Transfers","transferToDispositionLocation":"Transfer to {{location}}","transferType":"Transfer type","typeOfTransfer":"Type of transfer","unknown":"Unknown","unknownError":"An unknown error occurred","visitNoteSaved":"Patient note saved","wardClinicalNotePlaceholder":"Write any notes here","wardPatient":"Ward patient","wards":"Wards"}')}}]);
package/dist/7512.js DELETED
@@ -1 +0,0 @@
1
- (globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([[7512],{7512:(e,t,n)=>{"use strict";n.r(t),n.d(t,{admissionRequestWorkspace:()=>m,admissionRequestsWorkspaceSideRailIcon:()=>U,admitPatientFormWorkspace:()=>_,cancelAdmissionRequestWorkspace:()=>L,clinicalFormWorkspaceSideRailIcon:()=>S,createAdmissionEncounterWorkspace:()=>W,createAdmissionEncounterWorkspaceSideRailIcon:()=>R,defaultWardView:()=>q,importTranslation:()=>p,maternalWardView:()=>O,orderBasketWorkspaceSideRailIcon:()=>C,patientDischargeWorkspace:()=>j,patientDischargeWorkspaceSideRailIcon:()=>P,patientTransferAndSwapWorkspace:()=>v,patientTransferAndSwapWorkspaceSiderailIcon:()=>I,patientTransferRequestWorkspace:()=>k,root:()=>y,startupApp:()=>N,wardDashboardLink:()=>f,wardPatientActionButton:()=>b,wardPatientCancelAdmissionRequestWorkspace:()=>w,wardPatientNotesActionButton:()=>T,wardPatientNotesWorkspace:()=>g,wardPatientWorkspace:()=>A,wardPatientWorkspaceBanner:()=>D,wardView:()=>h});var i,s=n(54440),o={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:s.Type.Array,_default:[],_description:"Configures obs values to display.",_elements:{id:{_type:s.Type.String,_description:"The unique identifier for this patient card element"},conceptUuid:{_type:s.Type.UUID,_description:"Identifies the concept to use to identify the desired observations."},label:{_type:s.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:s.Type.String,_default:"descending",_description:"One of 'ascending' or 'descending', specifying whether to display the obs by obsDatetime ascendingly or descendingly.",_validators:[s.validators.oneOf(["ascending","descending"])]},limit:{_type:s.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:s.Type.Boolean,_default:!1,_description:"Optional. If true, limits display to only observations within current visit. Defaults to false"}}},pendingItems:{_type:s.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:s.Type.String,_description:"The unique identifier for this patient card element"},orders:{orderTypes:{_type:s.Type.Array,_description:"Configures pending orders and transfers to display.",_elements:{uuid:{_type:s.Type.UUID,_description:"Identifies the order type."},label:{_type:s.Type.String,_default:"",_description:"The label or i18n key to the translated label to display. If not provided, defaults to 'Orders'"}}}},showPendingItems:{_type:s.Type.Boolean,_description:"Optional. If true, pending items (e.g., number of pending orders) will be displayed on the patient card."}}},patientIdentifier:{_type:s.Type.Array,_default:[{id:"patient-identifier",showIdentifierLabel:!1}],_description:"Configures patient identifier to display. An unconfigured element displays the preferred identifier.",_elements:{id:{_type:s.Type.String,_description:"The unique identifier for this patient card element"},showIdentifierLabel:{_type:s.Type.Boolean,_description:'If true, the identifier type (eg: "OpenMRS ID") is shown along with the identifier itself. Defaults to false'}}},patientAddress:{_type:s.Type.Array,_default:[{id:"patient-address",fields:["cityVillage","country"]}],_description:"Configures patient address elements.",_elements:{id:{_type:s.Type.String,_description:"The unique identifier for this patient card element"},fields:{_type:s.Type.Array,_description:"The fields of the address to display",_elements:{_type:s.Type.String,_validators:[s.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:s.Type.Array,_default:[{id:"admission-request-note",conceptUuid:"161011AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}],_description:"Configures admission request notes to display.",_elements:{id:{_type:s.Type.String,_description:"The unique identifier for this patient card element"},conceptUuid:{_type:s.Type.UUID,_description:"Required. Identifies the concept for the admission request note."}}},coloredObsTags:{_type:s.Type.Array,_default:[],_description:"Configures observation values to display as Carbon tags.",_elements:{conceptUuid:{_type:s.Type.UUID,_default:"1284AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",_description:"Required. Identifies the concept to use to identify the desired observations."},summaryLabel:{_type:s.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:s.Type.String,_default:"",_description:"Optional. The custom module to use for translation of the summary label"},summaryLabelColor:{_type:s.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:s.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:s.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:s.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:s.Type.UUID}}}}}}},wards:{_type:s.Type.Array,_default:[{id:"default-ward"}],_description:"Configuration of what type of ward to use at different ward locations.",_elements:{id:{_type:s.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:s.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:s.Type.UUID,_default:"",_description:"The UUID of the location. If not provided, applies to all wards."}}}}},hideWorkspaceVitalsLinks:{_type:s.Type.Boolean,_default:!1,_description:"Configure whether to hide vital history and record vital links in the ward patient workspace."},additionalInpatientNotesConceptUuids:{_type:s.Type.Array,_default:[],_description:"List of uuids of concepts that represent notes to display in the notes view in addition to the consultFreeTextCommentsConcept defined by EMR-API"}},r=n(11340),a=n(1343),d=n.n(a),l=n(8877),c={path:"ward",slot:"ward-dashboard-slot",title:"wards",basePath:"".concat(window.spaBase,"/home")},p=n(84767),u={featureName:"ward",moduleName:r.A},y=(0,s.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(8622),n.e(4439),n.e(2339),n.e(8010),n.e(9775)]).then(n.bind(n,99775))},u),f=(0,s.getSyncLifecycle)((i=c,function(){return d().createElement(l.BrowserRouter,null,d().createElement(s.DashboardExtension,{path:i.path,title:i.title,basePath:i.basePath,icon:i.icon}))}),u),h=(0,s.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(8622),n.e(4439),n.e(2339),n.e(8010),n.e(7524)]).then(n.bind(n,27524))},u),m=(0,s.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(8622),n.e(4439),n.e(2339),n.e(8010),n.e(581)]).then(n.bind(n,80581))},u),_=(0,s.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(8622),n.e(4439),n.e(9559),n.e(2339),n.e(8010),n.e(5434),n.e(2728)]).then(n.bind(n,12728))},u),A=(0,s.getAsyncLifecycle)(function(){return Promise.all([n.e(2339),n.e(8501)]).then(n.bind(n,88501))},u),g=(0,s.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(8622),n.e(4439),n.e(9559),n.e(2339),n.e(8010),n.e(1987)]).then(n.bind(n,61987))},u),b=(0,s.getAsyncLifecycle)(function(){return Promise.all([n.e(2339),n.e(5603)]).then(n.bind(n,55603))},u),w=(0,s.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(8622),n.e(4439),n.e(9559),n.e(2339),n.e(8010),n.e(4189),n.e(9756)]).then(n.bind(n,69756))},u),T=(0,s.getAsyncLifecycle)(function(){return Promise.all([n.e(2339),n.e(2216)]).then(n.bind(n,22216))},u),v=(0,s.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(8622),n.e(4439),n.e(9559),n.e(2339),n.e(8010),n.e(380),n.e(7661),n.e(3365)]).then(n.bind(n,23365))},u),j=(0,s.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(8622),n.e(4439),n.e(2339),n.e(8010),n.e(283)]).then(n.bind(n,80283))},u),I=(0,s.getAsyncLifecycle)(function(){return Promise.all([n.e(2339),n.e(3413)]).then(n.bind(n,23413))},u),k=(0,s.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(8622),n.e(4439),n.e(9559),n.e(2339),n.e(8010),n.e(380),n.e(7661),n.e(2948)]).then(n.bind(n,12948))},u),P=(0,s.getAsyncLifecycle)(function(){return Promise.all([n.e(8622),n.e(2339),n.e(3982)]).then(n.bind(n,33982))},u),L=(0,s.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(8622),n.e(4439),n.e(9559),n.e(2339),n.e(8010),n.e(4189),n.e(3673)]).then(n.bind(n,53673))},u),S=(0,s.getAsyncLifecycle)(function(){return Promise.all([n.e(1899),n.e(2339),n.e(1741)]).then(n.bind(n,71741))},u),C=(0,s.getAsyncLifecycle)(function(){return Promise.all([n.e(2339),n.e(917)]).then(n.bind(n,30917))},u),U=(0,s.getAsyncLifecycle)(function(){return Promise.all([n.e(2339),n.e(8522)]).then(n.bind(n,48522))},u),R=(0,s.getAsyncLifecycle)(function(){return Promise.all([n.e(2339),n.e(9117)]).then(n.bind(n,59117))},u),W=(0,s.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(8622),n.e(4439),n.e(2339),n.e(8010),n.e(5434),n.e(7179)]).then(n.bind(n,27179))},u),q=(0,s.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(8622),n.e(4439),n.e(2898),n.e(2339),n.e(8010),n.e(5434),n.e(380),n.e(8610),n.e(1326)]).then(n.bind(n,61326))},{featureName:"default-ward-view",moduleName:r.A,swrConfig:{refreshInterval:6e4}}),O=(0,s.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(8622),n.e(4439),n.e(2898),n.e(2339),n.e(8010),n.e(5434),n.e(380),n.e(8610),n.e(5885)]).then(n.bind(n,35885))},{featureName:"maternal-ward-view",moduleName:r.A,swrConfig:{refreshInterval:6e4}}),D=(0,s.getAsyncLifecycle)(function(){return n.e(1776).then(n.bind(n,81776))},u);function N(){(0,s.registerBreadcrumbs)([]),(0,s.defineConfigSchema)(r.A,o),(0,s.registerFeatureFlag)("bedmanagement-module","Bed management module","Enables features related to bed management / assignment. Requires the backend bed management module to be installed.")}},11340:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var i="@openmrs/esm-ward-app"},84767:(e,t,n)=>{var i={"./am.json":[81197,1197],"./ar.json":[14132,4132],"./ar_SY.json":[37617,7617],"./bn.json":[77159,7159],"./cs.json":[86589,6589],"./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],"./sq.json":[88371,8371],"./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],"./zh_TW.json":[10439,439]};function s(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],s=t[0];return n.e(t[1]).then(()=>n(s))}s.keys=()=>Object.keys(i),s.id=84767,e.exports=s}}]);
package/dist/7512.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"7512.js","mappings":"4/BAIoCA,E,WCyBvBC,EAAe,CAC1BC,oBAAqB,CACnBC,aACE,iJACFC,IAAK,CACHC,MAAOC,EAAAA,KAAKC,MACZC,SAAU,GACVL,aAAc,oCACdM,UAAW,CACTC,GAAI,CACFL,MAAOC,EAAAA,KAAKK,OACZR,aAAc,uDAEhBS,YAAa,CACXP,MAAOC,EAAAA,KAAKO,KACZV,aAAc,uEAEhBW,MAAO,CACLT,MAAOC,EAAAA,KAAKK,OACZH,SAAU,GACVL,aACE,kMAEJY,QAAS,CACPV,MAAOC,EAAAA,KAAKK,OACZH,SAAU,aACVL,aACE,wHACFa,YAAa,CAACC,EAAAA,WAAWC,MAAM,CAAC,YAAa,iBAE/CC,MAAO,CACLd,MAAOC,EAAAA,KAAKc,OACZZ,SAAU,EACVL,aACE,2IAEJkB,uBAAwB,CACtBhB,MAAOC,EAAAA,KAAKgB,QACZd,UAAU,EACVL,aACE,oGAIRoB,aAAc,CACZlB,MAAOC,EAAAA,KAAKC,MACZC,SAAU,CACR,CACEE,GAAI,gBACJc,OAAQ,CACNC,WAAY,CAAC,CAAEX,MAAO,OAAQY,KAAM,0CAEtCC,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CACZ,MACA,MAED,eAAgB,CACf,MACA,MAED,eAAgB,CACf,MACA,KAED,YAAa,CACZ,MACA,MAED,YAAa,CACZ,MACA,MAED,YAAa,CACZ,MACA,MAED,eAAgB,CACf,MACA,MAED,YAAa,CACZ,MACA,MAED,eAAgB,CACf,MACA,MAED,YAAa,CACZ,MACA,KAED,YAAa,CACZ,MACA,MAED,iBAAkB,CACjB,MACA,MAED,eAAgB,CACf,MACA,KAED,YAAa,CACZ,MACA,MAED,YAAa,CACZ,MACA,MAED,eAAgB,CACf,MACA,MAED,eAAgB,CACf,MACA,MAGF,SAASC,EAAoBC,GAC5B,IAAIC,EAAoBC,EAAEJ,EAAKE,GAC9B,OAAOG,QAAQC,UAAUC,KAAK,KAC7B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBP,EAAM,KAEjD,MADAM,EAAEE,KAAO,mBACHF,IAIR,IAAIG,EAAMX,EAAIE,GAAMpF,EAAK6F,EAAI,GAC7B,OAAOR,EAAoBK,EAAEG,EAAI,IAAIJ,KAAK,IAClCJ,EAAoBrF,GAE7B,CACAmF,EAAoBW,KAAO,IAAOC,OAAOD,KAAKZ,GAC9CC,EAAoBnF,GAAK,MACzBgG,EAAOC,QAAUd,C","sources":["webpack://@openmrs/esm-ward-app/./src/createDashboardLink.tsx","webpack://@openmrs/esm-ward-app/./src/config-schema.ts","webpack://@openmrs/esm-ward-app/./src/dashboard.meta.ts","webpack://@openmrs/esm-ward-app/./src/index.ts","webpack://@openmrs/esm-ward-app/./src/constant.ts","webpack://@openmrs/esm-ward-app/./translations/ lazy nonrecursive .json$"],"names":["config","configSchema","patientCardElements","_description","obs","_type","Type","Array","_default","_elements","id","String","conceptUuid","UUID","label","orderBy","_validators","validators","oneOf","limit","Number","onlyWithinCurrentVisit","Boolean","pendingItems","orders","orderTypes","uuid","showPendingItems","patientIdentifier","showIdentifierLabel","patientAddress","fields","admissionRequestNote","coloredObsTags","summaryLabel","summaryLabelI18nModule","summaryLabelColor","tags","color","appliedToConceptSets","wards","appliedTo","location","hideWorkspaceVitalsLinks","additionalInpatientNotesConceptUuids","dashboardMeta","path","slot","title","basePath","window","spaBase","importTranslation","require","options","featureName","moduleName","root","getAsyncLifecycle","wardDashboardLink","getSyncLifecycle","BrowserRouter","DashboardExtension","icon","wardView","admissionRequestWorkspace","admitPatientFormWorkspace","wardPatientWorkspace","wardPatientNotesWorkspace","wardPatientActionButton","wardPatientCancelAdmissionRequestWorkspace","wardPatientNotesActionButton","patientTransferAndSwapWorkspace","patientDischargeWorkspace","patientTransferAndSwapWorkspaceSiderailIcon","patientTransferRequestWorkspace","patientDischargeWorkspaceSideRailIcon","cancelAdmissionRequestWorkspace","clinicalFormWorkspaceSideRailIcon","orderBasketWorkspaceSideRailIcon","admissionRequestsWorkspaceSideRailIcon","createAdmissionEncounterWorkspaceSideRailIcon","createAdmissionEncounterWorkspace","defaultWardView","swrConfig","refreshInterval","maternalWardView","wardPatientWorkspaceBanner","startupApp","registerBreadcrumbs","defineConfigSchema","registerFeatureFlag","map","webpackAsyncContext","req","__webpack_require__","o","Promise","resolve","then","e","Error","code","ids","keys","Object","module","exports"],"sourceRoot":""}
package/dist/7524.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([[7524],{19108:(n,e,a)=>{a.d(e,{A:()=>c});var r=a(30977),t=a.n(r),i=a(95924),o=a.n(i)()(t());o.push([n.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__ward-view__wardView___FbpB2{background-color:#e4e4e4;display:flex;flex-direction:column;padding:0 1rem}.-esm-ward__ward-view__wardView___FbpB2.-esm-ward__ward-view__verticalTiling___As-Jz{height:calc(100vh - var(--omrs-topnav-height))}.-esm-ward__ward-view__wardViewMain___jYzEv{background-color:#e4e4e4;grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));display:grid;gap:1rem}.-esm-ward__ward-view__wardViewMain___jYzEv.-esm-ward__ward-view__verticalTiling___As-Jz{display:block;column-width:280px;overflow-x:auto;height:calc(100% - 4rem)}.-esm-ward__ward-view__wardViewMain___jYzEv.-esm-ward__ward-view__verticalTiling___As-Jz>div{break-inside:avoid;margin-bottom:10px}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/ward-view/ward-view.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,wCACE,wBAAA,CACA,YAAA,CACA,qBAAA,CACA,cAAA,CAEA,qFACE,8CAAA,CAIJ,4CACE,wBAAA,CACA,2DAAA,CACA,YAAA,CACA,QCaW,CDXX,yFACE,aAAA,CACA,kBAAA,CACA,eAAA,CACA,wBAAA,CAEA,6FACE,kBAAA,CACA,kBAAA",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.wardView {\n background-color: #e4e4e4;\n display: flex;\n flex-direction: column;\n padding: 0 layout.$spacing-05;\n\n &.verticalTiling {\n height: calc(100vh - var(--omrs-topnav-height));\n }\n}\n\n.wardViewMain {\n background-color: #e4e4e4;\n grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));\n display: grid;\n gap: layout.$spacing-05;\n\n &.verticalTiling {\n display: block;\n column-width: 280px;\n overflow-x: auto;\n height: calc(100% - 4rem);\n\n > div {\n break-inside: avoid;\n margin-bottom: 10px;\n }\n }\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={wardView:"-esm-ward__ward-view__wardView___FbpB2",verticalTiling:"-esm-ward__ward-view__verticalTiling___As-Jz",wardViewMain:"-esm-ward__ward-view__wardViewMain___jYzEv"};const c=o},27524:(n,e,a)=>{a.r(e),a.d(e,{default:()=>g});var r=a(17801),t=a(54440),i=a(53373),o=a.n(i),c=a(1343),d=a.n(c),l=a(72339),u=a(92891),s=a(35487),p=a(90102);const g=function(){var n=(0,u.A)(),e=n.isLoadingLocation,a=n.invalidLocation,i=n.location,c=(0,l.useTranslation)().t,g=null==i?void 0:i.uuid,m=(0,s.k9)(g);if(e)return d().createElement(d().Fragment,null);if(a)return d().createElement(r.jeF,{kind:"error",title:c("invalidLocationSpecified","Invalid location specified")});var b=m.id;return d().createElement("div",{className:o()(p.A.wardView,p.A.verticalTiling)},d().createElement(t.ExtensionSlot,{name:b}))}},35487:(n,e,a)=>{a.d(e,{Jk:()=>s,U1:()=>u,UG:()=>g,eD:()=>l,j3:()=>p,k9:()=>m,yZ:()=>d});var r=a(54440),t=a(1343),i=a(72339);function o(n,e){(null==e||e>n.length)&&(e=n.length);for(var a=0,r=new Array(e);a<e;a++)r[a]=n[a];return r}function c(n){return function(n){if(Array.isArray(n))return o(n)}(n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||function(n,e){if(n){if("string"==typeof n)return o(n,e);var a=Object.prototype.toString.call(n).slice(8,-1);return"Object"===a&&n.constructor&&(a=n.constructor.name),"Map"===a||"Set"===a?Array.from(a):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?o(n,e):void 0}}(n)||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.")}()}function d(n){return{id:n.bedId,uuid:n.bedUuid,bedNumber:n.bedNumber,bedType:n.bedType,row:n.rowNumber,column:n.columnNumber,status:n.status}}function l(n,e){var a,r,t,i=null!==(a=null==e?void 0:e.totalPatientsCount)&&void 0!==a?a:0,o=null!==(r=null==n?void 0:n.length)&&void 0!==r?r:0,c=null!==(t=null==n?void 0:n.filter(function(n){var e;return(null===(e=n.patients)||void 0===e?void 0:e.length)>0}).length)&&void 0!==t?t:0;return{patients:i.toString(),freeBeds:(o-c).toString(),totalBeds:o.toString()}}function u(n,e,a,r,t){var i,o=function(n){var e=new Map,a=!0,r=!1,t=void 0;try{for(var i,o=(null!=n?n:[])[Symbol.iterator]();!(a=(i=o.next()).done);a=!0){var c=i.value;c&&e.set(c.patient.uuid,c)}}catch(n){r=!0,t=n}finally{try{a||null==o.return||o.return()}finally{if(r)throw t}}return e}(c(null!=n?n:[]).concat(c(null!=r?r:[]))),d=new Map,l=new Map,u=e&&function(n){var e=new Intl.Collator([],{numeric:!0});return n.bedLayouts.filter(function(n){return n.bedId}).sort(function(n,a){return e.compare(n.bedNumber,a.bedNumber)})}(e),s=new Set,p=0;null==u||u.map(function(n){n.patients.map(function(n){var e,a=o.get(n.uuid);if(s.add(n.uuid),(null==a||null===(e=a.currentInpatientLocation)||void 0===e?void 0:e.uuid)==t.uuid){var r;d.set(n.uuid,a);var i=null===(r=a.currentInpatientRequest)||void 0===r?void 0:r.dispositionType;"TRANSFER"!=i&&"DISCHARGE"!=i||p++}else l.set(n.uuid,n)})});var g=null!==(i=null==n?void 0:n.filter(function(n){return s.add(n.patient.uuid),!d.has(n.patient.uuid)&&!l.has(n.patient.uuid)}))&&void 0!==i?i:[],m=s.size,b=!0,f=!1,A=void 0;try{for(var v,w=(null!=a?a:[])[Symbol.iterator]();!(b=(v=w.next()).done);b=!0){var y=v.value;y&&s.add(y.patient.uuid)}}catch(n){f=!0,A=n}finally{try{b||null==w.return||w.return()}finally{if(f)throw A}}return{wardAdmittedPatientsWithBed:d,wardUnadmittedPatientsWithBed:l,wardPatientPendingCount:p,bedLayouts:u,wardUnassignedPatientsList:g,allWardPatientUuids:s,totalPatientsCount:m,inpatientAdmissionsByPatientUuid:o}}function s(n,e){switch(n){case"patients":return e("patients","Patients");case"freeBeds":return e("freeBeds","Free beds");case"totalBeds":return e("totalBeds","Total beds");case"pendingOut":return e("pendingOut","Pending out")}}function p(n,e,a){switch(n){case"patients":return e("patientsMetricValue","{{ metricValue }}",{metricValue:a});case"freeBeds":return e("freeBedsMetricValue","{{ metricValue }}",{metricValue:a});case"totalBeds":return e("totalBedsMetricValue","{{ metricValue }}",{metricValue:a});case"pendingOut":return e("pendingOutMetricValue","{{ metricValue }}",{metricValue:a})}}function g(n,e){var a=(0,r.useConfig)(),t=(0,i.useTranslation)().t;try{var o,c;return null==a||null===(c=a.patientCardElements)||void 0===c||null===(o=c[n])||void 0===o?void 0:o.find(function(n){return(null==n?void 0:n.id)==e})}catch(a){return(0,r.showNotification)({title:t("errorConfiguringPatientCard","Error configuring patient card"),kind:"error",critical:!0,description:t("errorConfiguringPatientCardMessage","Unable to find configuration for {{elementType}}, id: {{id}}",{elementType:n,id:e})}),null}}function m(n){var e=(0,r.useConfig)().wards;return(0,t.useMemo)(function(){return null==e?void 0:e.find(function(e){var a;return null==e.appliedTo||0==(null===(a=e.appliedTo)||void 0===a?void 0:a.length)||e.appliedTo.some(function(e){return e.location==n})})},[e,n])||(console.warn("No ward card configuration has `appliedTo` criteria that matches the current location. Using the default configuration."),{id:"default-ward"})}},90102:(n,e,a)=>{a.d(e,{A:()=>A});var r=a(72591),t=a.n(r),i=a(1740),o=a.n(i),c=a(88128),d=a.n(c),l=a(30855),u=a.n(l),s=a(93051),p=a.n(s),g=a(73656),m=a.n(g),b=a(19108),f={};f.styleTagTransform=m(),f.setAttributes=u(),f.insert=d().bind(null,"head"),f.domAPI=o(),f.insertStyleElement=p(),t()(b.A,f);const A=b.A&&b.A.locals?b.A.locals:void 0},92891:(n,e,a)=>{a.d(e,{A:()=>c});var r=a(54440),t=a(8877),i=a(88010),o=a.n(i);function c(){var n=(0,t.useParams)().locationUuid,e=(0,r.useSession)().sessionLocation,a=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"custom:(display,uuid)";return o()(n?"".concat(r.restBaseUrl,"/location/").concat(n,"?v=").concat(e):null,r.openmrsFetch)}(n||null),i=a.data,c=a.isLoading,d=a.error,l=n&&d;return{location:n?null==i?void 0:i.data:e,isLoadingLocation:c,errorFetchingLocation:d,invalidLocation:l}}}}]);
package/dist/7524.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"7524.js","mappings":"+LAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,ogCAAqgC,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,2CAA2C,8EAA8E,MAAQ,GAAG,SAAW,mRAAmR,eAAiB,CAAC,g/DAAg/D,gpBAAgpB,25DAA25D,WAAa,MAE7mMH,EAAwBI,OAAS,CAChC,SAAY,yCACZ,eAAkB,+CAClB,aAAgB,8CAEjB,S,6JCsBA,QAzB+B,WAC7B,IAAMC,GAAWC,EAAAA,EAAAA,KACTC,EAAiDF,EAAjDE,kBAAmBC,EAA8BH,EAA9BG,gBAAiBC,EAAaJ,EAAbI,SACtC,GAAQC,EAAAA,EAAAA,kBAANC,EAEFC,EAAeH,aAAAA,EAAAA,EAAUI,KACzBC,GAAaC,EAAAA,EAAAA,IAAcH,GAEjC,GAAIL,EACF,OAAO,qCAGT,GAAIC,EACF,OAAO,kBAACQ,EAAAA,IAAkBA,CAACC,KAAK,QAAQC,MAAOP,EAAE,2BAA4B,gCAG/E,IAAMQ,EAASL,EAAWX,GAE1B,OACE,kBAACiB,MAAAA,CAAIC,UAAWC,IAAWC,EAAAA,EAAOC,SAAUD,EAAAA,EAAOE,iBACjD,kBAACC,EAAAA,cAAaA,CAACC,KAAMR,IAG3B,C,+2BCPO,SAASS,EAAeC,GAC7B,MAAO,CACL1B,GAAI0B,EAAUC,MACdjB,KAAMgB,EAAUE,QAChBC,UAAWH,EAAUG,UACrBC,QAASJ,EAAUI,QACnBC,IAAKL,EAAUM,UACfC,OAAQP,EAAUQ,aAClBC,OAAQT,EAAUS,OAE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CAAE7G,GAAI,gBAIjB,C,yKC1MI8G,EAAU,CAAC,EAEfA,EAAQC,kBAAoB,IAC5BD,EAAQE,cAAgB,IAElBF,EAAQG,OAAS,SAAc,KAAM,QAE3CH,EAAQI,OAAS,IACjBJ,EAAQK,mBAAqB,IAEhB,IAAI,IAASL,GAKnB,QAAe,KAAW,IAAQ7G,OAAS,IAAQA,YAASmH,C,gFCtBpD,SAASjH,IAMtB,IAAQM,GAAsC4G,EAAAA,EAAAA,aAAtC5G,aACF,GAAsB6G,EAAAA,EAAAA,cAApBC,gBAKJC,ECbS,SAAqB/G,G,IAAsBgH,EAAAA,UAAAA,OAAAA,QAAAA,IAAAA,UAAAA,GAAAA,UAAAA,GAAc,wBACtE,OAAOC,IACLjH,EAAe,GAA2BA,OAAxBkH,EAAAA,YAAY,cAA8BF,OAAlBhH,EAAa,OAAS,OAAJgH,GAAQ,KACpEG,EAAAA,aAEJ,CDQMJ,CAAYK,GAA4C,MAH1DC,EAGEN,EAHFM,KACAC,EAEEP,EAFFO,UACAC,EACER,EADFQ,MAEI3H,EAAkBwH,GAAuBI,EAE/C,MAAO,CACL3H,SAAUuH,EAAsBK,aAAAA,EAAAA,EAAkBJ,KAAOP,EACzDnH,kBAAAA,EACA6H,sBAAAA,EACA5H,gBAAAA,EAEJ,C","sources":["webpack://@openmrs/esm-ward-app/./src/ward-view/ward-view.scss","webpack://@openmrs/esm-ward-app/./src/ward-view/ward-view.component.tsx","webpack://@openmrs/esm-ward-app/./src/ward-view/ward-view.resource.ts","webpack://@openmrs/esm-ward-app/./src/ward-view/ward-view.scss?c127","webpack://@openmrs/esm-ward-app/./src/hooks/useWardLocation.ts","webpack://@openmrs/esm-ward-app/./src/hooks/useLocation.ts"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","response","useWardLocation","isLoadingLocation","invalidLocation","location","useTranslation","t","locationUuid","uuid","wardConfig","useWardConfig","InlineNotification","kind","title","wardId","div","className","classNames","styles","wardView","verticalTiling","ExtensionSlot","name","bedLayoutToBed","bedLayout","bedId","bedUuid","bedNumber","bedType","row","rowNumber","column","columnNumber","status","getWardMetrics","bedLayouts","wardPatientGroup","patients","totalPatientsCount","totalBeds","length","occupiedBeds","filter","bed","toString","freeBeds","createAndGetWardPatientGrouping","inpatientAdmissionsAtCurrentLocation","admissionLocation","inpatientRequests","inpatientAdmissionsAtOtherLocations","currentWardLocation","inpatientAdmissionsByPatientUuid","inpatientAdmissions","map","Map","inpatientAdmission","set","patient","getInpatientAdmissionsUuidMap","wardAdmittedPatientsWithBed","wardUnadmittedPatientsWithBed","collator","Intl","Collator","numeric","bl","sort","bedA","bedB","compare","filterBeds","allWardPatientUuids","Set","wardPatientPendingCount","admission","get","add","currentInpatientLocation","dispositionType","currentInpatientRequest","wardUnassignedPatientsList","has","size","inpatientRequest","getWardMetricNameTranslation","getWardMetricValueTranslation","value","metricValue","useElementConfig","elementType","config","useConfig","patientCardElements","find","elementConfig","e","showNotification","critical","description","wards","useMemo","wardDef","appliedTo","some","criteria","console","warn","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","useParams","useSession","sessionLocation","useLocation","rep","useSWRImmutable","restBaseUrl","openmrsFetch","locationUuidFromUrl","data","isLoading","error","errorFetchingLocation","locationResponse"],"sourceRoot":""}
package/dist/7617.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([[7617],{37617:e=>{e.exports=JSON.parse('{"addPatientToWard":"Add patient to ward","admissionRequestCancelled":"Admission request cancelled.","admissionRequests":"Admission requests","admissionRequestsCount_one":"{{count}} admission request","admissionRequestsCount_other":"{{count}} admission requests","admissionRequestsEmptyHelperText":"Admission requests from other departments will appear here when patients are referred to this ward. You can also directly admit patients using the button below.","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","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","emptyStateIllustration":"Empty state illustration","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","noPendingAdmissionRequests":"No pending admission requests","note":"Note","notes":"Notes","notesRequiredForCancellingRequest":"Notes required for cancelling admission or transfer request","orderBasket":"Order basket","Orders":"Orders","other":"Other","Patient":"patient","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}}","PatientNote":"Patient Note","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","pendingAdmissions":"Pending admissions","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}}","totalBeds":"Total beds","totalBedsMetricValue":"{{ metricValue }}","transfer":"Transfer","transferElsewhere":"Transfer elsewhere","transferPatient":"Transfer patient","transfers":"Transfers","transferToDispositionLocation":"Transfer to {{location}}","transferType":"Transfer type","typeOfTransfer":"Type of transfer","unknown":"Unknown","unknownError":"An unknown error occurred","visitNoteSaved":"Patient note saved","wardClinicalNotePlaceholder":"Write any notes here","wardPatient":"Ward patient","wards":"Wards"}')}}]);
package/dist/7661.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([[7661],{44504:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(30977),r=t.n(a),i=t(95924),o=t.n(i)()(r());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__location-selector__locationSelector___YODZI{border:1px solid #e0e0e0;background-color:#f4f4f4}.omrs-breakpoint-lt-desktop .-esm-ward__location-selector__locationSelector___YODZI{background-color:#fff}.-esm-ward__location-selector__radioButtonGroup___B5yhb{padding:.5rem 1rem;width:100%}.-esm-ward__location-selector__radioButtonGroup___B5yhb .cds--radio-button-wrapper{padding:.25rem}.-esm-ward__location-selector__radioButtonGroup___B5yhb .cds--radio-button-wrapper .cds--radio-button__label{align-items:center}.-esm-ward__location-selector__pagination___sMRRQ{display:flex;padding-left:1rem;justify-content:space-between;align-items:center;border-top:1px solid #e0e0e0}.-esm-ward__location-selector__button___f53gd svg{fill:#161616 !important}.-esm-ward__location-selector__buttonLeft___jiVOW{border-right:1px solid #e0e0e0 !important;border-left:1px solid #e0e0e0 !important}.-esm-ward__location-selector__borderedButton___\\+NSio{border-left:1px solid #e0e0e0;border-right:1px solid #e0e0e0}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/location-selector/location-selector.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,wDACE,wBAAA,CACA,wBDHM,CCMR,oFACE,qBDNM,CCSR,wDACE,kBAAA,CACA,UAAA,CAEA,mFACE,cCDS,CDGT,6GACE,kBAAA,CAKN,kDACE,YAAA,CACA,iBCIW,CDHX,6BAAA,CACA,kBAAA,CACA,4BAAA,CAIA,kDACE,uBAAA,CAIJ,kDACE,yCAAA,CACA,wCAAA,CAGF,uDACE,6BAAA,CACA,8BAAA",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.locationSelector {\n border: 1px solid $ui-03;\n background-color: $ui-01;\n}\n\n:global(.omrs-breakpoint-lt-desktop) .locationSelector {\n background-color: $ui-02;\n}\n\n.radioButtonGroup {\n padding: layout.$spacing-03 layout.$spacing-05;\n width: 100%;\n\n :global(.cds--radio-button-wrapper) {\n padding: layout.$spacing-02;\n\n :global(.cds--radio-button__label) {\n align-items: center;\n }\n }\n}\n\n.pagination {\n display: flex;\n padding-left: layout.$spacing-05;\n justify-content: space-between;\n align-items: center;\n border-top: 1px solid $ui-03;\n}\n\n.button {\n svg {\n fill: $ui-05 !important;\n }\n}\n\n.buttonLeft {\n border-right: 1px solid $ui-03 !important;\n border-left: 1px solid $ui-03 !important;\n}\n\n.borderedButton {\n border-left: 1px solid $ui-03;\n border-right: 1px solid $ui-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={locationSelector:"-esm-ward__location-selector__locationSelector___YODZI",radioButtonGroup:"-esm-ward__location-selector__radioButtonGroup___B5yhb",pagination:"-esm-ward__location-selector__pagination___sMRRQ",button:"-esm-ward__location-selector__button___f53gd",buttonLeft:"-esm-ward__location-selector__buttonLeft___jiVOW",borderedButton:"-esm-ward__location-selector__borderedButton___+NSio"};const s=o},46675:(e,n,t)=>{t.d(n,{A:()=>m});var a=t(72591),r=t.n(a),i=t(1740),o=t.n(i),s=t(88128),l=t.n(s),p=t(30855),c=t.n(p),u=t(93051),d=t.n(u),f=t(73656),g=t.n(f),b=t(66349),h={};h.styleTagTransform=g(),h.setAttributes=c(),h.insert=l().bind(null,"head"),h.domAPI=o(),h.insertStyleElement=d(),r()(b.A,h);const m=b.A&&b.A.locals?b.A.locals:void 0},66349:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(30977),r=t.n(a),i=t(95924),o=t.n(i)()(r());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__patient-transfer-swap__flexWrapper___LQFd9{height:100%;display:flex;flex-direction:column;color:#393939}.-esm-ward__patient-transfer-swap__formError___G8Gbz{margin-bottom:1rem}.-esm-ward__patient-transfer-swap__workspaceContent___QAYXl{padding:1rem;height:100%;display:flex;flex-direction:column;color:#393939}.-esm-ward__patient-transfer-swap__contentSwitcherWrapper___cph4E{padding:0 1rem}.-esm-ward__patient-transfer-swap__patientWorkspaceBanner___hm5J-{margin-bottom:1rem}.-esm-ward__patient-transfer-swap__field___X0pHJ{margin-bottom:1rem}.-esm-ward__patient-transfer-swap__field___X0pHJ>h2{margin-bottom:.5rem}.-esm-ward__patient-transfer-swap__contentSwitcher___k2WiP{margin-top:.5rem}.-esm-ward__patient-transfer-swap__workspaceForm___iagbb{flex:1}.-esm-ward__patient-transfer-swap__productiveHeading02___ab2iS{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0)}.-esm-ward__patient-transfer-swap__formContainer___6QiH2{display:flex;flex-direction:column;justify-content:space-between;height:100%}.-esm-ward__patient-transfer-swap__buttonSet___DVyd3{display:flex;align-items:center;margin:0 -1rem -1rem -1rem}.-esm-ward__patient-transfer-swap__buttonSet___DVyd3 button{max-width:unset !important;width:50% !important}.-esm-ward__patient-transfer-swap__buttonSet___DVyd3 button>svg{fill:currentColor !important}.-esm-ward__patient-transfer-swap__radioButtonGroup___iZUa7{margin-top:.5rem}.-esm-ward__patient-transfer-swap__radioButtonGroup___iZUa7 fieldset{flex-direction:column;align-items:flex-start}.-esm-ward__patient-transfer-swap__radioButtonGroup___iZUa7 fieldset .cds--radio-button-wrapper{margin-bottom:.75rem}.-esm-ward__patient-transfer-swap__notifications___7hSMx{margin-top:1rem}.-esm-ward__patient-transfer-swap__relatedPatientTransferSwapOption___K0W1X{display:flex;flex-wrap:wrap;gap:1rem}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/ward-workspace/patient-transfer-bed-swap/patient-transfer-swap.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,uDACE,WAAA,CACA,YAAA,CACA,qBAAA,CACA,aAAA,CAGF,qDACE,kBCmBW,CDhBb,4DACE,YCeW,CDdX,WAAA,CACA,YAAA,CACA,qBAAA,CACA,aAAA,CAGF,kEACE,cAAA,CAGF,kEACE,kBCGW,CAAA,iDDCX,kBCDW,CDEX,oDACE,mBCbS,CDiBb,2DACE,gBClBW,CDqBb,yDACE,MAAA,CAGF,+DEozBI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CFhzBJ,yDACE,YAAA,CACA,qBAAA,CACA,6BAAA,CACA,WAAA,CAGF,qDACE,YAAA,CACA,kBAAA,CACA,0BAAA,CAEA,4DACE,0BAAA,CACA,oBAAA,CAEA,gEACE,4BAAA,CAKN,4DACE,gBCpDW,CDqDX,qEACE,qBAAA,CACA,sBAAA,CAEA,gGACE,oBCrDO,CD0Db,yDACE,eCtDW,CDyDb,4EACE,YAAA,CACA,cAAA,CACA,QC5DW",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/type';\n@use '@carbon/layout';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.flexWrapper {\n height: 100%;\n display: flex;\n flex-direction: column;\n color: #393939;\n}\n\n.formError {\n margin-bottom: layout.$spacing-05;\n}\n\n.workspaceContent {\n padding: layout.$spacing-05;\n height: 100%;\n display: flex;\n flex-direction: column;\n color: #393939;\n}\n\n.contentSwitcherWrapper {\n padding: 0 layout.$spacing-05;\n}\n\n.patientWorkspaceBanner {\n margin-bottom: layout.$spacing-05;\n}\n\n.field {\n margin-bottom: layout.$spacing-05;\n & > h2 {\n margin-bottom: layout.$spacing-03;\n }\n}\n\n.contentSwitcher {\n margin-top: layout.$spacing-03;\n}\n\n.workspaceForm {\n flex: 1;\n}\n\n.productiveHeading02 {\n @include type.type-style('heading-compact-02');\n}\n\n.formContainer {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n height: 100%;\n}\n\n.buttonSet {\n display: flex;\n align-items: center;\n margin: 0 (-(layout.$spacing-05)) (-(layout.$spacing-05)) (-(layout.$spacing-05));\n\n button {\n max-width: unset !important;\n width: 50% !important;\n\n > svg {\n fill: currentColor !important;\n }\n }\n}\n\n.radioButtonGroup {\n margin-top: layout.$spacing-03;\n fieldset {\n flex-direction: column;\n align-items: flex-start;\n\n :global(.cds--radio-button-wrapper) {\n margin-bottom: layout.$spacing-04;\n }\n }\n}\n\n.notifications {\n margin-top: layout.$spacing-05;\n}\n\n.relatedPatientTransferSwapOption {\n display: flex;\n flex-wrap: wrap;\n gap: layout.$spacing-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","//\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// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n"],sourceRoot:""}]),o.locals={flexWrapper:"-esm-ward__patient-transfer-swap__flexWrapper___LQFd9",formError:"-esm-ward__patient-transfer-swap__formError___G8Gbz",workspaceContent:"-esm-ward__patient-transfer-swap__workspaceContent___QAYXl",contentSwitcherWrapper:"-esm-ward__patient-transfer-swap__contentSwitcherWrapper___cph4E",patientWorkspaceBanner:"-esm-ward__patient-transfer-swap__patientWorkspaceBanner___hm5J-",field:"-esm-ward__patient-transfer-swap__field___X0pHJ",contentSwitcher:"-esm-ward__patient-transfer-swap__contentSwitcher___k2WiP",workspaceForm:"-esm-ward__patient-transfer-swap__workspaceForm___iagbb",productiveHeading02:"-esm-ward__patient-transfer-swap__productiveHeading02___ab2iS",formContainer:"-esm-ward__patient-transfer-swap__formContainer___6QiH2",buttonSet:"-esm-ward__patient-transfer-swap__buttonSet___DVyd3",radioButtonGroup:"-esm-ward__patient-transfer-swap__radioButtonGroup___iZUa7",notifications:"-esm-ward__patient-transfer-swap__notifications___7hSMx",relatedPatientTransferSwapOption:"-esm-ward__patient-transfer-swap__relatedPatientTransferSwapOption___K0W1X"};const s=o},71296:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(30977),r=t.n(a),i=t(95924),o=t.n(i)()(r());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__style__wardWorkspacePatientBanner___2KnUU>div{background:#f4f4f4}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/ward-workspace/patient-banner/style.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CC1DA,0DACE,kBDFI",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 '@openmrs/esm-styleguide/src/vars' as *;\n\n.wardWorkspacePatientBanner {\n > div {\n background: $ui-01;\n }\n}\n"],sourceRoot:""}]),o.locals={wardWorkspacePatientBanner:"-esm-ward__style__wardWorkspacePatientBanner___2KnUU"};const s=o},73936:(e,n,t)=>{t.d(n,{A:()=>R});var a=t(17801),r=t(81160),i=t(54440),o=t(53373),s=t.n(o),l=t(1343),p=t.n(l),c=t(80824),u=t(72339),d=t(68580),f=t(65980),g=t(72591),b=t.n(g),h=t(1740),m=t.n(h),y=t(88128),$=t.n(y),A=t(30855),w=t.n(A),_=t(93051),v=t.n(_),k=t(73656),x=t.n(k),C=t(44504),E={};E.styleTagTransform=x(),E.setAttributes=w(),E.insert=$().bind(null,"head"),E.domAPI=m(),E.insertStyleElement=v(),b()(C.A,E);const z=C.A&&C.A.locals?C.A.locals:void 0;function S(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function B(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function M(e){var n,t,r,o,c=e.paginationSize,d=void 0===c?15:c,g=e.ancestorLocation,b=e.excludeLocations,h=e.field,m=(0,u.useTranslation)().t,y=(0,f.A)(),$=y.emrConfiguration,A=y.isLoadingEmrConfiguration,w=!(0,i.isDesktop)((0,i.useLayoutType)()),_=(n=(0,l.useState)(""),t=2,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,r,i=[],o=!0,s=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(i.push(a.value),!n||i.length!==n);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==t.return||t.return()}finally{if(s)throw r}}return i}}(n,t)||function(e,n){if(e){if("string"==typeof e)return S(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)?S(e,n):void 0}}(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),v=_[0],k=_[1],x=(0,i.useDebounce)(v),C=function(){var e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],t=new URLSearchParams(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]),a="".concat(i.fhirBaseUrl,"/Location?").concat(t.toString());return(0,i.useFhirPagination)(n?null:a,e,{immutable:!0})}((0,l.useMemo)(function(){var e=[];return x&&e.push(["name:contains",x]),$&&e.push(["_tag",$.supportsTransferLocationTag.name]),g&&e.push(["partof:below",g.uuid]),e},[x,$,g]),d,!$),E=C.data,M=C.isLoading,D=C.totalCount,T=C.currentPage,O=C.totalPages,P=C.goToNext,N=C.goToPrevious,j=null==E?void 0:E.filter(function(e){return!(null==b?void 0:b.some(function(n){return n.uuid===e.id}))}),W=(0,l.useCallback)(function(e){k(e.target.value)},[k]);return p().createElement("div",{className:z.locationSelector},p().createElement(i.ResponsiveWrapper,null,p().createElement(a.vji,{labelText:m("searchLocations","Search locations"),onChange:W,value:v,placeholder:m("searchLocations","Search locations"),size:w?"lg":"md"})),M||A?p().createElement("div",{className:z.radioButtonGroup},p().createElement(a.Psq,null),p().createElement(a.Psq,null),p().createElement(a.Psq,null),p().createElement(a.Psq,null),p().createElement(a.Psq,null)):p().createElement(i.ResponsiveWrapper,null,p().createElement(a.zWQ,(r=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.forEach(function(n){B(e,n,t[n])})}return e}({},h),o=null!=(o={className:z.radioButtonGroup,orientation:"vertical"})?o:{},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):function(e){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n.push.apply(n,t)}return n}(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}),r),(null==j?void 0:j.length)>0?null==j?void 0:j.map(function(e){return p().createElement(a.aaP,{key:e.id,labelText:e.name,value:e.id})}):p().createElement("span",{className:z.bodyShort01},m("noLocationsFound","No locations found")))),D>d&&p().createElement("div",{className:z.pagination},p().createElement("span",{className:z.bodyShort01},m("showingLocations","{{start}}-{{end}} of {{count}} locations",{start:(T-1)*d+1,end:Math.min(T*d,D),count:D})),p().createElement("div",null,p().createElement(a.K0,{className:s()(z.button,z.buttonLeft),disabled:1===T,kind:"ghost",label:m("previousPage","Previous page"),onClick:function(){return N()}},p().createElement(i.ChevronLeftIcon,null)),p().createElement(a.K0,{className:z.button,disabled:T>=O,kind:"ghost",label:m("nextPage","Next page"),onClick:function(){return P()}},p().createElement(i.ChevronRightIcon,null)))))}var D=t(13002),T=t(46675),O=t(56546),P=t(7928);function N(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function j(e,n,t,a,r,i,o){try{var s=e[i](o),l=s.value}catch(e){return void t(e)}s.done?n(l):Promise.resolve(l).then(a,r)}function W(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function I(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.forEach(function(n){W(e,n,t[n])})}return e}function q(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):function(e){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n.push.apply(n,t)}return n}(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}function G(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,r,i=[],o=!0,s=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(i.push(a.value),!n||i.length!==n);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==t.return||t.return()}finally{if(s)throw r}}return i}}(e,n)||L(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e){return function(e){if(Array.isArray(e))return N(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||L(e)||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.")}()}function L(e,n){if(e){if("string"==typeof e)return N(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)?N(e,n):void 0}}function R(e){var n,t,o=e.wardPatient,f=e.relatedTransferPatients,g=void 0===f?[]:f,b=e.onSuccess,h=e.onCancel,m=(0,u.useTranslation)().t,y=null!=o?o:{},$=y.patient,A=y.inpatientRequest,w=y.visit,_=G((0,l.useState)(!1),2),v=_[0],k=_[1],x=G((0,l.useState)(!1),2),C=x[0],E=x[1],z=(0,D.R_)(),S=z.createEncounter,B=z.emrConfiguration,N=z.isLoadingEmrConfiguration,W=z.errorFetchingEmrConfiguration,L=(0,l.useMemo)(function(){return null==B?void 0:B.dispositions.filter(function(e){return"TRANSFER"===e.type})},[B]),R=(null!==(t=(0,i.useAppContext)("ward-view-context"))&&void 0!==t?t:{}).wardPatientGroupDetails,H=null==R||null===(n=R.inpatientAdmissionsByPatientUuid)||void 0===n?void 0:n.get(null==$?void 0:$.uuid),U=G((0,l.useState)([]),2),Y=U[0],X=U[1],Q=(0,l.useMemo)(function(){return d.Ik({location:d.Yj({required_error:m("pleaseSelectTransferLocation","Please select transfer location")}),note:d.Yj().optional(),transferType:(null==L?void 0:L.length)>1?d.Yj({required_error:m("pleaseSelectTransferType","Please select transfer type")}):d.Yj().optional()})},[m,L]),V=(0,l.useMemo)(function(){var e={};return 1===(null==L?void 0:L.length)&&(e.transferType=L[0].uuid),e},[L]),J=(0,c.mN)({resolver:(0,r.u)(Q),defaultValues:V}),K=J.formState,Z=K.errors,ee=(K.isDirty,J.control),ne=J.handleSubmit,te=J.setValue;(0,l.useEffect)(function(){1===(null==L?void 0:L.length)&&te("transferType",L[0].uuid)},[L,te]);var ae=(0,l.useCallback)(function(e){var n;E(!0),k(!1);var t=[{concept:B.dispositionDescriptor.internalTransferLocationConcept.uuid,value:e.location},{concept:B.dispositionDescriptor.dispositionConcept.uuid,value:null===(n=L.find(function(n){return n.uuid===e.transferType}))||void 0===n?void 0:n.conceptCode}];e.note&&t.push({concept:B.consultFreeTextCommentsConcept.uuid,value:e.note});var a=[o].concat(F(g.filter(function(e){return Y.includes(e.patient.uuid)})));Promise.all(a.map(function(e){return(n=function(){var n,a;return function(e,n){var t,a,r,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(t)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(i=0)),i;)try{if(t=1,a&&(r=2&s[0]?a.return:s[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,s[1])).done)return r;switch(a=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,a=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){i.label=s[1];break}if(6===s[0]&&i.label<r[1]){i.label=r[1],r=s;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(s);break}r[2]&&i.ops.pop(),i.trys.pop();continue}s=n.call(e,i)}catch(e){s=[6,e],a=0}finally{t=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}(this,function(r){return n=e.patient,a=e.visit,[2,S(n,B.transferRequestEncounterType,null==a?void 0:a.uuid,[{concept:B.dispositionDescriptor.dispositionSetConcept.uuid,groupMembers:t}])]})},function(){var e=this,t=arguments;return new Promise(function(a,r){var i=n.apply(e,t);function o(e){j(i,a,r,o,s,"next",e)}function s(e){j(i,a,r,o,s,"throw",e)}o(void 0)})})();var n})).then(function(){(0,i.showSnackbar)({title:m("patientTransferRequestCreated","Patient transfer request created"),kind:"success"}),b()}).catch(function(e){(0,i.showSnackbar)({title:m("errorCreatingTransferRequest","Error creating transfer request"),subtitle:e.message,kind:"error"})}).finally(function(){E(!1),R.mutate()})},[b,S,L,B,m,R,Y,g,o]),re=(0,l.useCallback)(function(){E(!1),k(!0)},[]);return R?p().createElement(a.lVW,{onSubmit:ne(ae,re),className:s()(T.A.formContainer,T.A.workspaceContent)},p().createElement(a.BJc,{gap:4},W&&p().createElement("div",{className:T.A.formError},p().createElement(a.jeF,{kind:"error",title:m("somePartsOfTheFormDidntLoad","Some parts of the form didn't load"),subtitle:m("fetchingEmrConfigurationFailed","Fetching EMR configuration failed. Try refreshing the page or contact your system administrator."),lowContrast:!0,hideCloseButton:!0})),H?A&&p().createElement(a.jeF,{kind:"info",lowContrast:!0,hideCloseButton:!0,title:m("patientCurrentlyAdmittedToWardLocation","Patient currently admitted to {{wardLocation}}",{wardLocation:H.currentInpatientLocation.display})}):p().createElement(a.jeF,{kind:"info",lowContrast:!0,hideCloseButton:!0,title:m("patientCurrentlyNotAdmitted","Patient currently not admitted")}),(null==g?void 0:g.length)>0&&p().createElement("div",null,p().createElement(a.$QX,{legendText:m("alsoTransfer","Also transfer:")},null==g?void 0:g.map(function(e){var n=e.patient;return p().createElement(a.Sc0,{checked:Y.includes(n.uuid),className:T.A.checkbox,id:n.uuid,key:"also-transfer-"+n.uuid,labelText:p().createElement("div",{className:T.A.relatedPatientTransferSwapOption},p().createElement(O.A,{patient:n}),p().createElement(P.A,{id:"patient-identifier",patient:n})),onChange:function(e,n){var t=n.checked,a=n.id,r=Y;X(t?F(r).concat([a]):r.filter(function(e){return e!==a}))}})}))),p().createElement("div",{className:T.A.field},p().createElement("h2",{className:T.A.productiveHeading02},m("selectALocation","Select a location")),p().createElement(c.xI,{name:"location",control:ee,render:function(e){var n=e.field,t=e.fieldState.error;return p().createElement(M,{name:n.name,field:n,invalid:!!(null==t?void 0:t.message),invalidText:null==t?void 0:t.message,ancestorLocation:null==w?void 0:w.location,excludeLocations:H?[H.currentInpatientLocation]:[]})}})),(null==L?void 0:L.length)>1&&p().createElement("div",{className:T.A.field},p().createElement("h2",{className:T.A.productiveHeading02},m("transferType","Transfer type")),p().createElement(c.xI,{name:"transferType",control:ee,render:function(e){var n=e.field,t=e.fieldState.error;return p().createElement(i.ResponsiveWrapper,null,p().createElement(a.zWQ,q(I({orientation:"vertical"},n),{invalid:!!(null==t?void 0:t.message),invalidText:null==t?void 0:t.message}),L.map(function(e){return p().createElement(a.aaP,{id:e.uuid,labelText:e.name,value:e.uuid})})))}})),p().createElement("div",{className:T.A.field},p().createElement("h2",{className:T.A.productiveHeading02},m("notes","Notes")),p().createElement(c.xI,{name:"note",control:ee,render:function(e){var n=e.field,t=e.fieldState.error;return p().createElement(i.ResponsiveWrapper,null,p().createElement(a.fs1,q(I({},n),{labelText:m("notes","Notes"),invalid:!!(null==t?void 0:t.message),invalidText:null==t?void 0:t.message})))}})),v&&p().createElement("div",{className:T.A.notifications},Object.values(Z).map(function(e){return p().createElement(a.jeF,{lowContrast:!0,subtitle:null==e?void 0:e.message,hideCloseButton:!0})}))),p().createElement(a.Te$,{className:T.A.buttonSet},p().createElement(a.$nd,{size:"xl",kind:"secondary",onClick:h},m("cancel","Cancel")),p().createElement(a.$nd,{type:"submit",size:"xl",disabled:N||C||W||!$},m("save","Save")))):p().createElement(p().Fragment,null)}},81776:(e,n,t)=>{t.r(n),t.d(n,{default:()=>w});var a=t(54440),r=t(1343),i=t.n(r),o=t(72591),s=t.n(o),l=t(1740),p=t.n(l),c=t(88128),u=t.n(c),d=t(30855),f=t.n(d),g=t(93051),b=t.n(g),h=t(73656),m=t.n(h),y=t(71296),$={};$.styleTagTransform=m(),$.setAttributes=f(),$.insert=u().bind(null,"head"),$.domAPI=p(),$.insertStyleElement=b(),s()(y.A,$);const A=y.A&&y.A.locals?y.A.locals:void 0,w=function(e){var n,t=e.wardPatient,r=(null!=t?t:{}).patient,o=(null!==(n=(0,a.useAppContext)("ward-view-context"))&&void 0!==n?n:{}).WardPatientHeader;return r?o?i().createElement("div",{className:A.wardWorkspacePatientBanner},i().createElement(o,{wardPatient:t})):i().createElement(i().Fragment,null):(console.warn("Patient details were not received by the ward workspace"),null)}}}]);