@openmrs/esm-patient-chart-app 11.3.0 → 11.3.1-patch.9310

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 (231) hide show
  1. package/.turbo/turbo-build.log +27 -24
  2. package/dist/1119.js +1 -1
  3. package/dist/1197.js +1 -1
  4. package/dist/1815.js +2 -0
  5. package/dist/1815.js.map +1 -0
  6. package/dist/2146.js +1 -1
  7. package/dist/2690.js +1 -1
  8. package/dist/2761.js +1 -1
  9. package/dist/2761.js.map +1 -1
  10. package/dist/2859.js +1 -1
  11. package/dist/2859.js.map +1 -1
  12. package/dist/3099.js +1 -1
  13. package/dist/3584.js +1 -1
  14. package/dist/3697.js +1 -0
  15. package/dist/3697.js.map +1 -0
  16. package/dist/4055.js +1 -1
  17. package/dist/4132.js +1 -1
  18. package/dist/4300.js +1 -1
  19. package/dist/4335.js +1 -1
  20. package/dist/4618.js +1 -1
  21. package/dist/4632.js +1 -1
  22. package/dist/4632.js.map +1 -1
  23. package/dist/4652.js +1 -1
  24. package/dist/4718.js +1 -1
  25. package/dist/4754.js +1 -1
  26. package/dist/4944.js +1 -1
  27. package/dist/5173.js +1 -1
  28. package/dist/5205.js +1 -1
  29. package/dist/5241.js +1 -1
  30. package/dist/5442.js +1 -1
  31. package/dist/5661.js +1 -1
  32. package/dist/5670.js +1 -0
  33. package/dist/5670.js.map +1 -0
  34. package/dist/5827.js +1 -0
  35. package/dist/5827.js.map +1 -0
  36. package/dist/6022.js +1 -1
  37. package/dist/6336.js +1 -0
  38. package/dist/6336.js.map +1 -0
  39. package/dist/6411.js +1 -1
  40. package/dist/6411.js.map +1 -1
  41. package/dist/6468.js +1 -1
  42. package/dist/6529.js +1 -1
  43. package/dist/6568.js +1 -0
  44. package/dist/6568.js.map +1 -0
  45. package/dist/6679.js +1 -1
  46. package/dist/68.js +2 -0
  47. package/dist/68.js.map +1 -0
  48. package/dist/6840.js +1 -1
  49. package/dist/6859.js +1 -1
  50. package/dist/6924.js +1 -0
  51. package/dist/6924.js.map +1 -0
  52. package/dist/7097.js +1 -1
  53. package/dist/7159.js +1 -1
  54. package/dist/723.js +1 -1
  55. package/dist/7617.js +1 -1
  56. package/dist/7816.js +2 -0
  57. package/dist/7816.js.map +1 -0
  58. package/dist/7818.js +1 -0
  59. package/dist/7818.js.map +1 -0
  60. package/dist/7822.js +1 -0
  61. package/dist/7822.js.map +1 -0
  62. package/dist/795.js +1 -1
  63. package/dist/8163.js +1 -1
  64. package/dist/8260.js +1 -0
  65. package/dist/8260.js.map +1 -0
  66. package/dist/8278.js +1 -0
  67. package/dist/8278.js.map +1 -0
  68. package/dist/8349.js +1 -1
  69. package/dist/8454.js +1 -1
  70. package/dist/8454.js.map +1 -1
  71. package/dist/8618.js +1 -1
  72. package/dist/8709.js +1 -1
  73. package/dist/8709.js.map +1 -1
  74. package/dist/890.js +1 -1
  75. package/dist/9007.js +1 -1
  76. package/dist/9007.js.map +1 -1
  77. package/dist/9214.js +1 -1
  78. package/dist/{4727.js → 9294.js} +1 -1
  79. package/dist/9294.js.map +1 -0
  80. package/dist/9329.js +1 -0
  81. package/dist/9329.js.map +1 -0
  82. package/dist/9538.js +1 -1
  83. package/dist/9569.js +1 -1
  84. package/dist/986.js +1 -1
  85. package/dist/9879.js +1 -1
  86. package/dist/9895.js +1 -1
  87. package/dist/9900.js +1 -1
  88. package/dist/9913.js +1 -1
  89. package/dist/main.js +1 -1
  90. package/dist/main.js.map +1 -1
  91. package/dist/openmrs-esm-patient-chart-app.js +1 -1
  92. package/dist/openmrs-esm-patient-chart-app.js.buildmanifest.json +457 -453
  93. package/dist/openmrs-esm-patient-chart-app.js.map +1 -1
  94. package/dist/routes.json +1 -1
  95. package/package.json +5 -4
  96. package/src/actions-buttons/delete-visit.component.tsx +8 -3
  97. package/src/actions-buttons/mark-patient-deceased.component.tsx +2 -2
  98. package/src/actions-buttons/start-visit.component.tsx +10 -5
  99. package/src/actions-buttons/start-visit.test.tsx +9 -5
  100. package/src/actions-buttons/stop-visit.component.tsx +1 -1
  101. package/src/clinical-views/encounter-list/{encounter-list-tabs.component.tsx → encounter-list-tabs.extension.tsx} +10 -6
  102. package/src/clinical-views/encounter-list/tag.component.test.tsx +306 -0
  103. package/src/clinical-views/encounter-list/tag.component.tsx +27 -28
  104. package/src/clinical-views/encounter-tile/encounter-tile.component.tsx +7 -6
  105. package/src/clinical-views/encounter-tile/tile.scss +0 -1
  106. package/src/clinical-views/hooks/useEncountersByVisit.ts +13 -0
  107. package/src/clinical-views/hooks/useLastEncounter.ts +1 -1
  108. package/src/clinical-views/types.ts +2 -1
  109. package/src/clinical-views/utils/concept-utils.ts +24 -0
  110. package/src/clinical-views/utils/helpers.ts +2 -2
  111. package/src/clinical-views/utils/index.ts +4 -1
  112. package/src/config-schema.ts +42 -9
  113. package/src/dashboard.meta.ts +4 -2
  114. package/src/index.ts +21 -22
  115. package/src/mark-patient-deceased/mark-patient-deceased-form.test.tsx +22 -11
  116. package/src/mark-patient-deceased/mark-patient-deceased-form.workspace.tsx +147 -138
  117. package/src/patient-banner-tags/{visit-attribute-tags.component.tsx → visit-attribute-tags.extension.tsx} +9 -4
  118. package/src/patient-chart/chart-review/dashboard-view.component.tsx +2 -2
  119. package/src/patient-chart/patient-chart.component.tsx +19 -36
  120. package/src/patient-chart/patient-chart.resources.ts +150 -0
  121. package/src/routes.json +17 -6
  122. package/src/visit/hooks/useDeleteVisit.test.tsx +39 -42
  123. package/src/visit/hooks/useDeleteVisit.tsx +33 -17
  124. package/src/visit/start-visit-button.component.tsx +2 -2
  125. package/src/visit/start-visit-button.test.tsx +2 -2
  126. package/src/visit/visit-action-items/edit-visit-details.component.tsx +29 -8
  127. package/src/visit/visit-form/base-visit-type.component.tsx +2 -2
  128. package/src/visit/visit-form/exported-visit-form.workspace.tsx +697 -0
  129. package/src/visit/visit-form/visit-attribute-type.component.tsx +2 -1
  130. package/src/visit/visit-form/visit-form.resource.ts +2 -1
  131. package/src/visit/visit-form/visit-form.test.tsx +28 -25
  132. package/src/visit/visit-form/visit-form.workspace.tsx +63 -643
  133. package/src/visit/visit-history-table/visit-actions-cell.component.tsx +3 -2
  134. package/src/visit/visit-history-table/visit-date-cell.component.tsx +1 -0
  135. package/src/visit/visit-history-table/visit-diagnoses-cell.component.tsx +1 -0
  136. package/src/visit/visit-history-table/visit-history-table.component.tsx +3 -2
  137. package/src/visit/visit-history-table/visit-type-cell.component.tsx +1 -0
  138. package/src/visit/visit-prompt/{delete-visit-dialog.component.tsx → delete-visit-dialog.modal.tsx} +10 -4
  139. package/src/visit/visit-prompt/delete-visit-dialog.test.tsx +21 -3
  140. package/src/visit/visit-prompt/{end-visit-dialog.component.tsx → end-visit-dialog.modal.tsx} +7 -1
  141. package/src/visit/visit-prompt/end-visit-dialog.test.tsx +20 -1
  142. package/src/visit/visit-prompt/{start-visit-dialog.component.tsx → start-visit-dialog.modal.tsx} +10 -4
  143. package/src/visit/visit-prompt/start-visit-dialog.test.tsx +3 -3
  144. package/src/visit/visits-widget/active-visit-buttons/active-visit-buttons.tsx +7 -6
  145. package/src/visit/visits-widget/current-visit-summary.extension.tsx +48 -0
  146. package/src/visit/visits-widget/current-visit-summary.test.tsx +45 -25
  147. package/src/visit/visits-widget/past-visits-components/encounters-table/encounters-table.component.tsx +15 -37
  148. package/src/visit/visits-widget/past-visits-components/encounters-table/encounters-table.resource.ts +0 -1
  149. package/src/visit/visits-widget/past-visits-components/medications-summary.component.tsx +2 -3
  150. package/src/visit/visits-widget/past-visits-components/visit-summary.component.tsx +8 -1
  151. package/src/visit/visits-widget/past-visits-components/visit-summary.scss +1 -1
  152. package/src/visit/visits-widget/single-visit-details/visit-timeline/visit-timeline.component.tsx +94 -0
  153. package/src/visit/visits-widget/single-visit-details/visit-timeline/visit-timeline.scss +60 -0
  154. package/src/visit/visits-widget/visit-context/retrospective-data-date-time-picker/retrospective-date-time-picker.component.tsx +6 -7
  155. package/src/visit/visits-widget/visit-context/{visit-context-header.component.tsx → visit-context-header.extension.tsx} +17 -15
  156. package/src/visit/visits-widget/visit-context/visit-context-header.test.tsx +35 -29
  157. package/src/visit/visits-widget/visit-context/visit-context-switcher.modal.tsx +15 -13
  158. package/src/visit/visits-widget/visit-context/visit-context-switcher.test.tsx +31 -9
  159. package/src/visit/visits-widget/visit-detail-overview.component.tsx +3 -2
  160. package/src/visit/visits-widget/visit-detail-overview.test.tsx +4 -4
  161. package/src/visit/visits-widget/visit.resource.tsx +1 -1
  162. package/translations/am.json +6 -0
  163. package/translations/ar.json +6 -0
  164. package/translations/ar_SY.json +6 -0
  165. package/translations/bn.json +6 -0
  166. package/translations/de.json +6 -0
  167. package/translations/en.json +7 -2
  168. package/translations/en_US.json +6 -0
  169. package/translations/es.json +6 -0
  170. package/translations/es_MX.json +6 -0
  171. package/translations/fr.json +15 -9
  172. package/translations/he.json +6 -0
  173. package/translations/hi.json +6 -0
  174. package/translations/hi_IN.json +6 -0
  175. package/translations/id.json +6 -0
  176. package/translations/it.json +24 -18
  177. package/translations/ka.json +6 -0
  178. package/translations/km.json +6 -0
  179. package/translations/ku.json +6 -0
  180. package/translations/ky.json +6 -0
  181. package/translations/lg.json +6 -0
  182. package/translations/ne.json +6 -0
  183. package/translations/pl.json +6 -0
  184. package/translations/pt.json +6 -0
  185. package/translations/pt_BR.json +6 -0
  186. package/translations/qu.json +6 -0
  187. package/translations/ro_RO.json +6 -0
  188. package/translations/ru_RU.json +6 -0
  189. package/translations/si.json +6 -0
  190. package/translations/sw.json +6 -0
  191. package/translations/sw_KE.json +6 -0
  192. package/translations/tr.json +6 -0
  193. package/translations/tr_TR.json +6 -0
  194. package/translations/uk.json +6 -0
  195. package/translations/uz.json +6 -0
  196. package/translations/uz@Latn.json +6 -0
  197. package/translations/uz_UZ.json +6 -0
  198. package/translations/vi.json +6 -0
  199. package/translations/zh.json +6 -0
  200. package/translations/zh_CN.json +6 -0
  201. package/dist/2537.js +0 -1
  202. package/dist/2537.js.map +0 -1
  203. package/dist/2735.js +0 -2
  204. package/dist/2735.js.map +0 -1
  205. package/dist/276.js +0 -1
  206. package/dist/276.js.map +0 -1
  207. package/dist/3042.js +0 -1
  208. package/dist/3042.js.map +0 -1
  209. package/dist/3119.js +0 -1
  210. package/dist/3119.js.map +0 -1
  211. package/dist/3184.js +0 -1
  212. package/dist/3184.js.map +0 -1
  213. package/dist/385.js +0 -2
  214. package/dist/385.js.map +0 -1
  215. package/dist/3905.js +0 -1
  216. package/dist/3905.js.map +0 -1
  217. package/dist/4713.js +0 -1
  218. package/dist/4713.js.map +0 -1
  219. package/dist/4727.js.map +0 -1
  220. package/dist/717.js +0 -1
  221. package/dist/717.js.map +0 -1
  222. package/dist/9162.js +0 -2
  223. package/dist/9162.js.map +0 -1
  224. package/dist/9206.js +0 -1
  225. package/dist/9206.js.map +0 -1
  226. package/dist/9615.js +0 -1
  227. package/dist/9615.js.map +0 -1
  228. package/src/visit/visits-widget/current-visit-summary.component.tsx +0 -55
  229. /package/dist/{9162.js.LICENSE.txt → 1815.js.LICENSE.txt} +0 -0
  230. /package/dist/{385.js.LICENSE.txt → 68.js.LICENSE.txt} +0 -0
  231. /package/dist/{2735.js.LICENSE.txt → 7816.js.LICENSE.txt} +0 -0
package/dist/7818.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[7818],{29533:(n,e,t)=>{t.d(e,{A:()=>l});var a=t(30977),i=t.n(a),o=t(95924),s=t.n(o)()(i());s.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-patient-chart__end-visit-dialog__bodyShort02___XB3Mu{font-size:var(--cds-body-compact-02-font-size, 1rem);font-weight:var(--cds-body-compact-02-font-weight, 400);line-height:var(--cds-body-compact-02-line-height, 1.375);letter-spacing:var(--cds-body-compact-02-letter-spacing, 0);color:#161616}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/visit/visit-prompt/end-visit-dialog.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,CC1DF,2DC+1BI,oDAAA,CAAA,uDAAA,CAAA,yDAAA,CAAA,2DAAA,CD71BF,aDCM",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 '@openmrs/esm-styleguide/src/vars' as *;\n\n.bodyShort02 {\n @include type.type-style('body-compact-02');\n color: $ui-05;\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:""}]),s.locals={bodyShort02:"-esm-patient-chart__end-visit-dialog__bodyShort02___XB3Mu"};const l=s},37818:(n,e,t)=>{t.r(e),t.d(e,{default:()=>z});var a=t(1343),i=t.n(a),o=t(72339),s=t(75198),l=t(54440),p=t(63276),r=t(72591),c=t.n(r),d=t(1740),u=t.n(d),f=t(88128),h=t.n(f),g=t(30855),y=t.n(g),b=t(93051),$=t.n(b),m=t(73656),v=t.n(m),w=t(29533),k={};k.styleTagTransform=v(),k.setAttributes=y(),k.insert=h().bind(null,"head"),k.domAPI=u(),k.insertStyleElement=$(),c()(w.A,k);const x=w.A&&w.A.locals?w.A.locals:void 0,z=function(n){var e=n.patientUuid,t=n.closeModal,a=(0,o.useTranslation)().t,r=(0,l.useVisit)(e),c=r.activeVisit,d=r.mutate,u=(0,p.usePatientChartStore)(e),f=u.visitContext,h=u.setVisitContext;return i().createElement("div",null,i().createElement(s.ModalHeader,{closeModal:t,title:a("endActiveVisitConfirmation","Are you sure you want to end this active visit?")}),i().createElement(s.ModalBody,null,i().createElement("p",{className:x.bodyShort02},a("youCanAddAdditionalEncounters","You can add additional encounters to this visit in the visit summary."))),i().createElement(s.ModalFooter,null,i().createElement(s.Button,{kind:"secondary",onClick:t},a("cancel","Cancel")),i().createElement(s.Button,{kind:"danger",onClick:function(){if(c){var n={stopDatetime:new Date},e=new AbortController;(0,l.updateVisit)(c.uuid,n,e).then((function(n){var e,i;d(),window.dispatchEvent(new CustomEvent("queue-entry-updated")),t(),(null==f?void 0:f.uuid)==c.uuid&&h(null,null),(0,l.showSnackbar)({isLowContrast:!0,kind:"success",subtitle:a("visitEndSuccessfully","".concat(null==n||null===(i=n.data)||void 0===i||null===(e=i.visitType)||void 0===e?void 0:e.display," ended successfully")),title:a("visitEnded","Visit ended")})})).catch((function(n){(0,l.showSnackbar)({title:a("errorEndingVisit","Error ending visit"),kind:"error",isLowContrast:!1,subtitle:null==n?void 0:n.message})}))}}},a("endVisit_title","End Visit"))))}}}]);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"7818.js","mappings":"iNAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,4nBAA6nB,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,2DAA2D,iEAAiE,MAAQ,GAAG,SAAW,sJAAsJ,eAAiB,CAAC,g/DAAg/D,+JAA+J,w8uBAAw8uB,WAAa,MAEvq1BH,EAAwBI,OAAS,CAChC,YAAe,6DA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QAAdA,EAAAA,EAAUO,YAAVP,IAAAA,GAAyB,QAAzBA,EAAAA,EAAgBQ,iBAAhBR,IAAAA,OAAAA,EAAAA,EAA2BS,QAAQ,wBAC1E3B,MAAOT,EAAE,aAAc,gBAE3B,IACCqC,OAAM,SAACC,IACNP,EAAAA,EAAAA,cAAa,CACXtB,MAAOT,EAAE,mBAAoB,sBAC7BiB,KAAM,QACNe,eAAe,EACfC,SAAUK,aAAAA,EAAAA,EAAOC,SAErB,GACJ,CACF,GAkBSvC,EAAE,iBAAkB,eAK/B,C","sources":["webpack://@openmrs/esm-patient-chart-app/./src/visit/visit-prompt/end-visit-dialog.scss","webpack://@openmrs/esm-patient-chart-app/./src/visit/visit-prompt/end-visit-dialog.scss?0b7a","webpack://@openmrs/esm-patient-chart-app/./src/visit/visit-prompt/end-visit-dialog.modal.tsx"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","patientUuid","closeModal","useTranslation","t","useVisit","activeVisit","mutate","usePatientChartStore","visitContext","setVisitContext","div","ModalHeader","title","ModalBody","p","className","styles","bodyShort02","ModalFooter","Button","kind","onClick","endVisitPayload","stopDatetime","Date","abortController","AbortController","updateVisit","uuid","then","response","window","dispatchEvent","CustomEvent","showSnackbar","isLowContrast","subtitle","data","visitType","display","catch","error","message"],"sourceRoot":""}
package/dist/7822.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[7822],{47822:(e,n,t)=>{t.r(n),t.d(n,{default:()=>S});var a=t(1343),i=t.n(a),o=t(72339),l=t(54440),r=t(61518),s=t(46372),p=t.n(s),c=t(75198),u=t(14497),d=t(87372);function g(e,n){var t;if(!e||!e.obs||!n)return"";var a=e.obs.find((function(e){var t;return(null===(t=e.concept)||void 0===t?void 0:t.uuid)===n}));return(null==a||null===(t=a.concept)||void 0===t?void 0:t.units)||""}var f=function(e,n){return e&&"--"!==e&&n?"".concat(e," ").concat(n):e},h=t(72591),y=t.n(h),m=t(1740),b=t.n(m),v=t(88128),$=t.n(v),A=t(30855),w=t.n(A),k=t(93051),C=t.n(k),x=t(73656),_=t.n(x),z=t(56922),M={};M.styleTagTransform=_(),M.setAttributes=w(),M.insert=$().bind(null,"head"),M.domAPI=b(),M.insertStyleElement=C(),y()(z.A,M);const D=z.A&&z.A.locals?z.A.locals:void 0;var T=(0,a.memo)((function(e){var n=e.patientUuid,t=e.columns,a=e.headerTitle,o="tablet"===(0,l.useLayoutType)(),r=t.length>0?Math.floor(16/t.length):16;return i().createElement(c.Layer,{className:D.layer},i().createElement(c.Tile,{className:D.tile},i().createElement("div",{className:o?D.tabletHeading:D.desktopHeading},i().createElement("h4",{className:D.title},a)),i().createElement(c.Grid,{fullWidth:!0},t.map((function(e,t){return i().createElement(c.Column,{key:"".concat(e.encounterTypeUuid,"-").concat(e.title,"-").concat(t),sm:r,md:r,lg:r,span:r},i().createElement(E,{patientUuid:n,column:e}))})))))})),E=function(e){var n,t=e.patientUuid,a=e.column,l=(0,o.useTranslation)().t,r=(0,d.pQ)(t,a.encounterTypeUuid),s=r.lastEncounter,p=r.isLoading,h=r.error,y=r.isValidating,m=g(s,a.concept),b=(null===(n=a.summaryConcept)||void 0===n?void 0:n.primaryConcept)?g(s,a.summaryConcept.primaryConcept):null,v=a.getObsValue(s),$=!0===a.hasSummary&&a.getSummaryObsValue&&"function"==typeof a.getSummaryObsValue?a.getSummaryObsValue(s):null;return p||y?i().createElement(c.CodeSnippetSkeleton,{type:"multi",className:"skeleton"}):h||void 0===s?i().createElement(i().Fragment,null,i().createElement("span",{className:D.tileTitle},l(a.title)),i().createElement("span",{className:D.tileValue},null==h?void 0:h.message)):i().createElement(i().Fragment,null,i().createElement("span",{className:D.tileTitle},l(a.header)),!("--"===v&&"--"!==$&&!(0,u.isNil)($))&&i().createElement("div",{className:D.tileValue},f(v,m)),!(0,u.isNil)($)&&"--"!==$&&i().createElement("div",{className:D.tileValue},f($,b)))},B=(0,a.memo)((function(e){var n=e.patientUuid,t=(0,l.useConfig)(),s=t.tileDefinitions,c=t.trueConceptUuid,u=t.falseConceptUuid,d=t.otherConceptUuid,g=(0,o.useTranslation)().t,f=(0,a.useMemo)((function(){var e={trueConceptUuid:c,falseConceptUuid:u,otherConceptUuid:d};return null==s?void 0:s.map((function(n){return{title:g(n.tileHeader),columns:(t=n,a=e,null===(i=t.columns)||void 0===i?void 0:i.map((function(e){return{key:e.title,header:e.title,concept:e.concept,encounterTypeUuid:e.encounterType,hasSummary:e.hasSummary||!1,summaryConcept:e.summaryConcept,getObsValue:function(n){var t,i,o;if(e.conceptMappings){var l,s=(0,r.G3)(n,e.conceptMappings);i=(0,r.Aj)({encounter:n,obsConcept:s,isDate:e.isDate,isTrueFalseConcept:e.isTrueFalseConcept,type:e.type,fallbackConcepts:e.fallbackConcepts,secondaryConcept:null===(l=e.summaryConcept)||void 0===l?void 0:l.secondaryConcept,config:a})}else i=(0,r.Aj)({encounter:n,obsConcept:e.concept,isDate:e.isDate,config:a});return"string"==typeof i||"number"==typeof i&&!isNaN(i)?i:null!==(o=null==i||null===(t=i.name)||void 0===t?void 0:t.name)&&void 0!==o?o:"--"},getSummaryObsValue:e.hasSummary?function(n){var t,i,o,l,s;if(null===(t=e.summaryConcept)||void 0===t?void 0:t.secondaryConcept){var c=(0,r.Aj)({encounter:n,obsConcept:e.summaryConcept.primaryConcept,config:a});l="--"!==c?c:(0,r.Aj)({encounter:n,obsConcept:e.summaryConcept.secondaryConcept,config:a})}else if(null===(i=e.summaryConcept)||void 0===i?void 0:i.hasCalculatedDate){var u=(0,r.Aj)({encounter:n,obsConcept:e.summaryConcept.primaryConcept,isDate:!1,config:a});"string"==typeof u&&"--"!==u?(s=u,l="".concat(Math.abs(p()().diff(p()(s),"days"))," days")):l="--"}else{var d,g,f;l=(0,r.Aj)({encounter:n,obsConcept:null===(d=e.summaryConcept)||void 0===d?void 0:d.primaryConcept,isDate:null===(g=e.summaryConcept)||void 0===g?void 0:g.isDate,config:a,type:null===(f=e.summaryConcept)||void 0===f?void 0:f.type})}return"string"==typeof l?l:(null==l||null===(o=l.name)||void 0===o?void 0:o.name)||"--"}:null}})))};var t,a,i}))}),[s,g,c,u,d]);return(null==f?void 0:f.length)>0?i().createElement(i().Fragment,null,f.map((function(e,t){return i().createElement(T,{key:t,patientUuid:n,columns:e.columns,headerTitle:e.title})}))):null}));const S=B},56922:(e,n,t)=>{t.d(n,{A:()=>r});var a=t(30977),i=t.n(a),o=t(95924),l=t.n(o)()(i());l.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-patient-chart__tile__title___-yHtW{font-size:var(--cds-productive-heading-03-font-size, 1.25rem);font-weight:var(--cds-productive-heading-03-font-weight, 400);line-height:var(--cds-productive-heading-03-line-height, 1.4);letter-spacing:var(--cds-productive-heading-03-letter-spacing, 0)}.-esm-patient-chart__tile__title___-yHtW:after{content:"";display:block;width:2rem;padding-top:.125rem;border-bottom:.5rem solid #007d79}.-esm-patient-chart__tile__tileTitle___1aIXG{font-size:var(--cds-body-long-01-font-size, 0.875rem);font-weight:var(--cds-body-long-01-font-weight, 400);line-height:var(--cds-body-long-01-line-height, 1.42857);letter-spacing:var(--cds-body-long-01-letter-spacing, 0.16px);font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px);color:#525252;display:block}.-esm-patient-chart__tile__tileValue___fdAwH{margin:.75rem 0 .75rem;display:block}.-esm-patient-chart__tile__tileBox___NWMSZ{width:25%;display:flex;flex-direction:row;flex:1;gap:1rem;justify-content:space-around}.-esm-patient-chart__tile__desktopHeading___4ZmcU h4{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);color:#525252}.-esm-patient-chart__tile__tabletHeading___YfOsn h4{font-size:var(--cds-heading-03-font-size, 1.25rem);font-weight:var(--cds-heading-03-font-weight, 400);line-height:var(--cds-heading-03-line-height, 1.4);letter-spacing:var(--cds-heading-03-letter-spacing, 0);color:#525252}.-esm-patient-chart__tile__desktopHeading___4ZmcU,.-esm-patient-chart__tile__tabletHeading___YfOsn{text-align:left;text-transform:capitalize;margin-bottom:1rem}.-esm-patient-chart__tile__desktopHeading___4ZmcU h4:after,.-esm-patient-chart__tile__tabletHeading___YfOsn h4:after{content:"";display:block;width:2rem;padding-top:.125rem;border-bottom:.375rem solid var(--brand-03)}.-esm-patient-chart__tile__heading___x9sGK:after{content:"";display:block;width:2rem;padding-top:.125rem;border-bottom:.375rem solid var(--brand-03)}.-esm-patient-chart__tile__tile___Lthzx{border:1px solid #e0e0e0;margin-bottom:.5rem}[data-extension-id=clinical-views-summary]{height:auto}',"",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/clinical-views/encounter-tile/tile.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,yCC81BI,6DAAA,CAAA,6DAAA,CAAA,6DAAA,CAAA,iEAAA,CD11BJ,+CACE,UAAA,CACA,aAAA,CACA,UE8BW,CF7BX,mBEDW,CFEX,iCAAA,CAGF,6CCk1BI,qDAAA,CAAA,oDAAA,CAAA,wDAAA,CAAA,6DAAA,CAAA,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CD/0BF,aDZQ,CCaR,aAAA,CAGF,6CACE,sBAAA,CACA,aAAA,CAGF,2CACE,SAAA,CACA,YAAA,CACA,kBAAA,CACA,MAAA,CACA,QEFW,CFGX,4BAAA,CAIA,qDC4zBE,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CD1zBA,aDjCM,CCsCR,oDCqzBE,kDAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CDnzBA,aDxCM,CC4CV,mGAEE,eAAA,CACA,yBAAA,CACA,kBExBW,CF0BX,qHACE,UAAA,CACA,aAAA,CACA,UEnBS,CFoBT,mBElDS,CFmDT,2CAAA,CAIJ,iDACE,UAAA,CACA,aAAA,CACA,UE5BW,CF6BX,mBE3DW,CF4DX,2CAAA,CAGF,wCACE,wBAAA,CACA,mBEvDW,CF0Db,2CACE,WAAA",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 '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.title {\n @include type.type-style('productive-heading-03');\n}\n\n.title:after {\n content: '';\n display: block;\n width: layout.$spacing-07;\n padding-top: layout.$spacing-01;\n border-bottom: layout.$spacing-03 solid $brand-teal-01;\n}\n\n.tileTitle {\n @include type.type-style('body-long-01');\n @include type.type-style('label-01');\n color: $text-02;\n display: block;\n}\n\n.tileValue {\n margin: layout.$spacing-04 0 layout.$spacing-04;\n display: block;\n}\n\n.tileBox {\n width: 25%;\n display: flex;\n flex-direction: row;\n flex: 1;\n gap: layout.$spacing-05;\n justify-content: space-around;\n}\n\n.desktopHeading {\n h4 {\n @include type.type-style('heading-compact-02');\n color: $text-02;\n }\n}\n\n.tabletHeading {\n h4 {\n @include type.type-style('heading-03');\n color: $text-02;\n }\n}\n\n.desktopHeading,\n.tabletHeading {\n text-align: left;\n text-transform: capitalize;\n margin-bottom: layout.$spacing-05;\n\n h4:after {\n content: '';\n display: block;\n width: layout.$spacing-07;\n padding-top: layout.$spacing-01;\n border-bottom: 0.375rem solid var(--brand-03);\n }\n}\n\n.heading:after {\n content: '';\n display: block;\n width: layout.$spacing-07;\n padding-top: layout.$spacing-01;\n border-bottom: 0.375rem solid var(--brand-03);\n}\n\n.tile {\n border: 1px solid $ui-03;\n margin-bottom: layout.$spacing-03;\n}\n\n[data-extension-id='clinical-views-summary'] {\n height: auto;\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","// 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:""}]),l.locals={title:"-esm-patient-chart__tile__title___-yHtW",tileTitle:"-esm-patient-chart__tile__tileTitle___1aIXG",tileValue:"-esm-patient-chart__tile__tileValue___fdAwH",tileBox:"-esm-patient-chart__tile__tileBox___NWMSZ",desktopHeading:"-esm-patient-chart__tile__desktopHeading___4ZmcU",tabletHeading:"-esm-patient-chart__tile__tabletHeading___YfOsn",heading:"-esm-patient-chart__tile__heading___x9sGK",tile:"-esm-patient-chart__tile__tile___Lthzx"};const r=l},61518:(e,n,t)=>{t.d(n,{Ad:()=>d,Aj:()=>g,G3:()=>u,HC:()=>p,Ki:()=>s,kv:()=>c,pE:()=>l,pb:()=>h});var a=t(54440),i=t(63276);function o(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function l(e,n){var t,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"add",l=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"*",p=arguments.length>6?arguments[6]:void 0;n||arguments.length>7&&void 0!==arguments[7]&&!arguments[7]?(0,a.launchWorkspace2)("patient-form-entry-workspace",{workspaceTitle:null!==(t=null==e?void 0:e.display)&&void 0!==t?t:null==e?void 0:e.name,mutateForm:l,formInfo:{encounterUuid:r,formUuid:null==e?void 0:e.uuid,patientUuid:p,visit:n,additionalProps:{mode:"add"===o?"enter":o,formSessionIntent:s,openClinicalFormsWorkspaceOnFormClose:!1}}}):(0,i.launchStartVisitPrompt)()}function r(e,n){return new Date(n.obsDatetime).getTime()-new Date(e.obsDatetime).getTime()}function s(e,n){var t,a=(null==e||null===(t=e.obs)||void 0===t?void 0:t.filter((function(e){return e.concept.uuid===n})))||[];return 1==(null==a?void 0:a.length)?a[0]:a.sort(r)[0]}function p(e,n,t){var a=s(e,n);for(var i in t){var l;if("object"===o(null==a?void 0:a.value)&&"uuid"in a.value&&t[i]===(null==a||null===(l=a.value)||void 0===l?void 0:l.uuid))return i}return"--"}function c(e,n,t,a){var i,l=n.trueConcept,r=n.nonTrueConcept,p=n.dependantConcept,c=n.conditionalConcept,u=null===(i=s(e,p))||void 0===i?void 0:i.value;return g({encounter:e,obsConcept:("object"===(void 0===u?"undefined":o(u))&&"uuid"in u?u.uuid:void 0)===c?l:r,isDate:t,isTrueFalseConcept:!1,config:a})}function u(e,n){var t=!0,a=!1,i=void 0;try{for(var o,l=n[Symbol.iterator]();!(t=(o=l.next()).done);t=!0){var r=o.value,p=s(e,r);if(p&&p.value)return r}}catch(e){a=!0,i=e}finally{try{t||null==l.return||l.return()}finally{if(a)throw i}}return null}function d(e,n,t){var a=[];return n.map((function(n){var i=g({encounter:e,obsConcept:n,config:t});"--"!==i&&a.push(i)})),a.length?a.join(", "):"--"}function g(e){var n,t,i,l,r,p,c,u,d,g=e.encounter,h=e.obsConcept,y=e.isDate,m=void 0!==y&&y,b=e.isTrueFalseConcept,v=void 0!==b&&b,$=e.type,A=e.fallbackConcepts,w=void 0===A?[]:A,k=e.secondaryConcept,C=e.config,x=s(g,h);if(!g&&!h)return"--";if(v&&"object"===o(null==x?void 0:x.value))return null==x||null===(i=x.value)||void 0===i||null===(t=i.name)||void 0===t?void 0:t.name;if($)return f(g,$);if(k&&"object"===o(x.value)&&x.value.names&&x.value.name.display===C.otherConceptUuid){var _=s(g,k);return _?_.value:"--"}if(!x&&(null==w?void 0:w.length)){var z=w.find((function(e){return null!=s(g,e)}));x=s(g,z)}if(!x)return"--";if(m){var M;if("object"===o(x.value)&&(null===(M=x.value)||void 0===M?void 0:M.names))return(0,a.formatDate)((0,a.parseDate)(x.obsDatetime),{mode:"wide",time:!1});if("string"==typeof x.value)return(0,a.formatDate)((0,a.parseDate)(x.value),{mode:"wide",time:!1})}return"object"===o(x.value)&&(null===(n=x.value)||void 0===n?void 0:n.name)?null!==(d=null!==(u=null===(r=x.value)||void 0===r||null===(l=r.name)||void 0===l?void 0:l.display)&&void 0!==u?u:null===(c=x.value)||void 0===c||null===(p=c.name)||void 0===p?void 0:p.name)&&void 0!==d?d:"--":x.value}var f=function(e,n){return"location"===n?e.location.display:"provider"===n?e.encounterProviders.map((function(e){return e.provider.name})).join(" | "):"encounterType"===n?e.encounterType.name:"ageAtEncounter"===n?(0,a.age)(e.patient.birthDate,e.encounterDatetime):"visitDate"===n?(null===(t=e.visit)||void 0===t?void 0:t.startDatetime)?(0,a.formatDate)((0,a.parseDate)(e.visit.startDatetime),{mode:"wide"}):"--":"visitType"===n?null!==(l=null===(o=e.visit)||void 0===o||null===(i=o.visitType)||void 0===i?void 0:i.display)&&void 0!==l?l:"--":"encounterDatetime"===n?(0,a.formatDate)((0,a.parseDate)(e.encounterDatetime),{mode:"wide"}):void 0;var t,i,o,l},h=function(e,n){var t;return(null==e||null===(t=e.form)||void 0===t?void 0:t.uuid)===n}},87372:(e,n,t)=>{t.d(n,{OY:()=>p,dG:()=>c,pQ:()=>d});var a=t(1343),i=t(71123),o=t(54440);function l(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 r(e,n){if(e){if("string"==typeof e)return l(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)?l(e,n):void 0}}var s="custom:(uuid,encounterDatetime,encounterType,location:(uuid,name),patient:(uuid,display,age,identifiers,person),encounterProviders:(uuid,provider:(uuid,name)),obs:(uuid,obsDatetime,voided,groupMembers,concept:(uuid,name:(uuid,name)),value:(uuid,name:(uuid,name),names:(uuid,conceptNameType,name))),form:(uuid,name),visit:(uuid,startDatetime,stopDatetime,visitType:(uuid,display)))";function p(e,n,t,p,c,u){var d,g,f,h=(u-1)*c,y=(g=(0,a.useState)([]),f=2,function(e){if(Array.isArray(e))return e}(g)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,i,o=[],l=!0,r=!1;try{for(t=t.call(e);!(l=(a=t.next()).done)&&(o.push(a.value),!n||o.length!==n);l=!0);}catch(e){r=!0,i=e}finally{try{l||null==t.return||t.return()}finally{if(r)throw i}}return o}}(g,f)||r(g,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.")}()),m=y[0],b=y[1],v="".concat(o.restBaseUrl,"/encounter?encounterType=").concat(n,"&patient=").concat(e,"&v=").concat(s,"&totalCount=true&limit=").concat(c,"&startIndex=").concat(h),$=(0,i.Ay)(v,o.openmrsFetch),A=$.data,w=$.error,k=$.isLoading,C=$.mutate;(0,a.useEffect)((function(){A&&(A.data.results.sort((function(e,n){return new Date(n.encounterDatetime).getTime()-new Date(e.encounterDatetime).getTime()})),b(t?A.data.results.filter((function(e){return t(e)})):function(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||r(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.")}()}(A.data.results)))}),[t,A]);var x=(0,a.useCallback)((function(){C(),p&&p()}),[p,C]);return{encounters:m,total:null==A||null===(d=A.data)||void 0===d?void 0:d.totalCount,isLoading:k,error:w,onFormSave:x,mutate:C}}function c(e){var n,t="".concat(o.restBaseUrl,"/form/").concat(e),a=(0,i.Ay)(e?t:null,o.openmrsFetch),l=a.data,r=a.isLoading,s=a.error;return{formsJson:null!==(n=null==l?void 0:l.data)&&void 0!==n?n:null,isLoading:r,error:s}}var u="custom:(uuid,encounterDatetime,encounterType,location:(uuid,name),patient:(uuid,display,age,identifiers,person),encounterProviders:(uuid,provider:(uuid,name)),obs:(uuid,obsDatetime,voided,groupMembers,concept:(uuid,display,units,name:(uuid,name)),value:(uuid,name:(uuid,name,display),names:(uuid,conceptNameType,name,display))),form:(uuid,name))";function d(e,n){var t,a="encounterType=".concat(n,"&patient=").concat(e),l=e&&n?"/ws/rest/v1/encounter?".concat(a,"&v=").concat(u,"&limit=1&order=desc&startIndex=0"):null,r=(0,i.Ay)(l,o.openmrsFetch),s=r.data,p=r.error,c=r.isLoading,d=r.isValidating;return{lastEncounter:(null==s||null===(t=s.data.results)||void 0===t?void 0:t.length)>0?null==s?void 0:s.data.results[0]:null,error:p,isLoading:c,isValidating:d}}}}]);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"7822.js","mappings":"wSAQO,SAASA,EAA6BC,EAA6BC,G,IASjEC,EARP,IAAKF,IAAcA,EAAUE,MAAQD,EACnC,MAAO,GAIT,IAAMC,EAAMF,EAAUE,IAAIC,MAAK,SAACC,G,IAAMA,E,OAAS,QAATA,EAAAA,EAAEC,eAAFD,IAAAA,OAAAA,EAAAA,EAAWE,QAASL,C,IAG1D,OAAOC,SAAY,QAAZA,EAAAA,EAAKG,eAALH,IAAAA,OAAAA,EAAAA,EAAcK,QAAS,EAChC,C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J,CCVA,IAAMgH,EACJ,4VAKK,SAASnH,EAAiBnC,EAAqBmE,G,IAanCkG,EAZXW,EAAQ,iBAA0ChL,OAAzBmE,EAAc,aAAuB,OAAZnE,GAClDiL,EACJjL,GAAemE,EACX,yBAAoCmF,OAAX0B,EAAM,OAA6B,OAAxB1B,EAAwB,oCAC5D,KAE2Ca,GAAAA,EAAAA,EAAAA,IAC/Cc,EACAb,EAAAA,cAFMC,EAAyCF,EAAzCE,KAAM/H,EAAmC6H,EAAnC7H,MAAOD,EAA4B8H,EAA5B9H,UAAWE,EAAiB4H,EAAjB5H,aAKhC,MAAO,CACLH,eAAeiI,SAAkB,QAAlBA,EAAAA,EAAMA,KAAKG,eAAXH,IAAAA,OAAAA,EAAAA,EAAoB/J,QAAS,EAAI+J,aAAAA,EAAAA,EAAMA,KAAKG,QAAQ,GAAK,KACxElI,MAAAA,EACAD,UAAAA,EACAE,aAAAA,EAEJ,C","sources":["webpack://@openmrs/esm-patient-chart-app/./src/clinical-views/utils/concept-utils.ts","webpack://@openmrs/esm-patient-chart-app/./src/clinical-views/encounter-tile/tile.scss?74f8","webpack://@openmrs/esm-patient-chart-app/./src/clinical-views/encounter-tile/encounter-tile.component.tsx","webpack://@openmrs/esm-patient-chart-app/./src/clinical-views/encounter-tile/clinical-views-summary.component.tsx","webpack://@openmrs/esm-patient-chart-app/./src/clinical-views/utils/index.ts","webpack://@openmrs/esm-patient-chart-app/./src/clinical-views/encounter-tile/tile.scss","webpack://@openmrs/esm-patient-chart-app/./src/clinical-views/utils/helpers.ts","webpack://@openmrs/esm-patient-chart-app/./src/clinical-views/hooks/useEncounterRows.ts","webpack://@openmrs/esm-patient-chart-app/./src/clinical-views/hooks/useFormsJson.ts","webpack://@openmrs/esm-patient-chart-app/./src/clinical-views/hooks/useLastEncounter.ts"],"names":["getConceptUnitsFromEncounter","encounter","conceptUuid","obs","find","o","concept","uuid","units","withUnit","value","unit","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","locals","undefined","EncounterTile","memo","patientUuid","columns","headerTitle","isTablet","useLayoutType","columnSpan","length","Math","floor","Layer","className","styles","layer","Tile","tile","div","tabletHeading","desktopHeading","h4","title","Grid","fullWidth","map","column","index","Column","key","encounterTypeUuid","sm","md","lg","span","EncounterData","useTranslation","t","useLastEncounter","lastEncounter","isLoading","error","isValidating","summaryUnits","summaryConcept","primaryConcept","obsValue","getObsValue","summaryValue","hasSummary","getSummaryObsValue","CodeSnippetSkeleton","type","tileTitle","tileValue","message","header","isNil","ClinicalViewsSummary","useConfig","tileDefinitions","trueConceptUuid","falseConceptUuid","otherConceptUuid","tilesData","useMemo","configConcepts","tileHeader","tileDefinition","config","encounterType","conceptMappings","getConceptFromMappings","getObsFromEncounter","obsConcept","isDate","isTrueFalseConcept","fallbackConcepts","secondaryConcept","isNaN","name","givenDate","primaryConceptType","hasCalculatedDate","primaryDate","abs","dayjs","diff","___CSS_LOADER_EXPORT___","push","module","id","launchEncounterForm","form","visit","action","onFormSave","encounterUuid","intent","requireActiveVisitForEncounterTile","launchWorkspace2","workspaceTitle","display","mutateForm","formInfo","formUuid","additionalProps","mode","formSessionIntent","openClinicalFormsWorkspaceOnFormClose","launchStartVisitPrompt","obsArrayDateComparator","left","right","Date","obsDatetime","getTime","findObs","allObs","filter","observation","sort","resolveValueUsingMappings","mappings","getConditionalConceptValue","conditionalConceptMappings","trueConcept","nonTrueConcept","dependantConcept","conditionalConcept","dependantValue","concepts","getMultipleObsFromEncounter","obsConcepts","observations","join","getEncounterProperty","names","secondaryObs","c","formatDate","parseDate","time","location","encounterProviders","p","provider","age","patient","birthDate","encounterDatetime","startDatetime","visitType","encounterRepresentation","useEncounterRows","encounterFilter","afterFormSaveAction","pageSize","currentPage","response","startIndex","useState","encounters","setEncounters","url","restBaseUrl","useSWR","openmrsFetch","data","mutate","useEffect","results","a","b","useCallback","total","totalCount","useFormsJson","formsJson","query","endpointUrl"],"sourceRoot":""}
package/dist/795.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[795],{70795:e=>{e.exports=JSON.parse('{"actions":"ქმედებები","addingToVisit":"დაემატება სად:","additionalVisitInformationUpdatedSuccessfully":"Additional visit information updated successfully","addVisit":"ვიზიტის დამატება","all":"ყველა","allEncounters":"ყველა კონსულტაცია","AM":"AM","cancel":"გაუქმება","causeOfDeath":"გარდაცვალების მიზეზი","causeOfDeath_lower":"cause of death concepts configured in the system","causeOfDeathIsRequired":"Please select the cause of death","change":"შეცვლა","checkFilters":"შეამოწმეთ ფილტრები ზემოთ","confirm":"დადასტურება","confirmDeleteVisitText":"Deleting this {{visit}} will delete its associated encounters.","confirmModifyingVisitDateToAccomodateEncounter":"The encounter date falls outside the designated visit date range. Would you like to modify the visit date to accommodate the new encounter date?","continue":"გაგრძელება","createNewVisit":"ახალი ვიზიტის შექმნა...","currentActiveVisit":"ამჟამად აქტიური ვიზიტი","currentVisit":"მიმდინარე ვიზიტი","date":"თარიღი","dateAndTime":"თარიღი და დრო","dateOfDeath":"გარდაცვალების თარიღი","deathDateRequired":"Please select the date of death","delete":"წაშლა","deleteActiveVisit":"აქტიური ვიზიტის წაშლა","deleteEncounter":"კონსულტაციის წაშლა","deleteEncounterConfirmationText":"Are you sure you want to delete this encounter? This action can\'t be undone.","deleteThisEncounter":"ამ კონსულტაციის წაშლა","deleteVisit":"ვიზიტის წაშლა","deleteVisitDialogHeader":"Are you sure you want to delete this visit?","deletingVisit":"იშლება ვიზიტი","diagnoses":"დიაგნოზები","discard":"მოცილება","discontinued":"Discontinued","dose":"დოზა","dosingInstructions":"Dosing Instructions","editEncounter":"ჩასწორება","editThisEncounter":"ამ კონსულტაციის ჩასწორება","editVisitDetails":"ვიზიტის დეტალების ჩასწორება","emptyStateText":"There are no {{displayText}} to display for this patient","enable":"ჩართვა","encounterDeleted":"კონსულტაციის წაიშალა","encounters_title":"კონსულტაციები","encounterSuccessfullyDeleted":"The encounter has been deleted successfully","encounterTableActionsMenu":"კონსულტაციის ცხრილის ქმედებების მენიუ","encounterType":"კონსულტაციის ტიპი","encounterWithError":"The encounter could not be deleted successfully. If the error persists, please contact your system administrator.","endActiveVisit":"აქტიური ვიზიტის დასრულება","endActiveVisitConfirmation":"Are you sure you want to end this active visit?","endDate":"დასრულების თარიღი","endDate_title":"დასრულების თარიღი","endDateTimeRequired":"End date and time are required","ended":"დასრულდა","endTime":"დასრულების დრო","endTimeFormat":"დასრულების დროის ფორმატი","endTimeMustBeAfterMostRecentEncounter":"End time must be on or after {{lastEncounterDatetime}}","endTimeMustBeAfterStartTime":"End time must be after start time","endVisit_title":"ვიზიტის დასრულება","enterNonCodedCauseOfDeath":"შეიყვანეთ არაკოდირებული გარდაცვალების მიზეზი","error":"შეცდომა","errorCopy":"Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above.","errorCreatingVisitAttribute":"ვერ წავშალე ატრიბუტი {{attributeName}}","errorDeletingVisit":"ვიზიტის წაშლის შეცდომა","errorDeletingVisitAttribute":"ვერ წავშალე ატრიბუტი {{attributeName}}","errorEndingVisit":"ვიზიტის დასრულების შეცდომა","errorMarkingPatientAlive":"პაციენტის ცოცხლად მონიშვნის შეცდომა","errorMarkingPatientDeceased":"პაციენტის გარდაცვლილად მონიშვნის შეცდომა","errorOccurredDeletingVisit":"An error occurred when deleting visit","errorStartingVisit":"ვიზიტის დაწყების შეცდომა","errorStartingVisitDescription":"An error occurred while starting the visit","errorUpdatingVisitAttribute":"განახლების შეცდომა ატრიბუტისთვის {{attributeName}}","errorUpdatingVisitDetails":"ვიზიტის დეტალების განახლების შეცდომა","errorWhenRestoringVisit":"შეცდომა {{visit}}-ის აღდგენისას","failedToLoadCurrentVisit":"მიმდინარე ვიზიტის ჩატვირთვა ჩავარდა","fieldRequired":"This field is required","filterByEncounterType":"გაფილტვრა კონსულტაციის ტიპით","form":"ფორმის სახელი","fromDateToDate":"{{fromDate}} - {{toDate}}","futureEndTime":"End time cannot be in the future","futureStartTime":"Start time cannot be in the future","indication":"სიმპტომი","inThePast":"წარსულში","loading":"მიმდინარეობს ჩატვირთვა","loadingVisit":"იტვირთება მიმდინარე ვიზიტი...","markAliveSuccessfully":"პაციენტი წარმატებით მოინიშნა ცოცხლად","markDeceasedWarning":"Marking the patient as deceased will end any active visits for this patient","markPatientAlive":"პაციენტის ცოცხლად მონიშვნა","markPatientAliveConfirmation":"Are you sure you want to mark this patient alive?","markPatientDeceased":"პაციენტის გარდაცვალებულად მონიშვნა","medications":"წამლები","medications__lower":"წამალი","missingVisitType":"აკლია ვიზიტის ტიპი","modifyVisitDate":"ვიზიტის თარიღის შეცვლა","new":"ახალი","nextPage":"შემდეგი გვერდი","no":"არა","noActiveVisit":"აქტიური ვიზიტების გარეშე","noActiveVisitMessage":"აქტიური ვიზიტი","noActiveVisitNoRDEText":"You can\'t add data to the patient chart without an active visit. Would you like to start a new visit?","noDiagnosesFound":"დიაგნოზები აღმოჩენილი არაა","noEncountersToDisplay":"საჩვენებელი კონსულტაციების გარეშე","noMatchingCodedCausesOfDeath":"No matching coded causes of death","nonCodedCauseOfDeath":"არაკოდირებული გარდაცვალების მიზეზი","nonCodedCauseOfDeathRequired":"Please enter the non-coded cause of death","noObservationsFound":"დაკვირვებები აღმოჩენილი არაა","notes":"შენიშვნები","notes__lower":"შენიშვნა","noVisitsToDisplay":"საჩვენებელი ვიზიტების გარეშე","noVisitTypesToDisplay":"საჩვენებელი ვიზიტის ტიპების გარეშე","offlineVisit":"Offline Visit","On scheduled date":"დაგეგმილი დროზე","ongoing":"მიმდინარეობს","optional":"არასავალდებულო","orderDurationAndUnit":"{{duration}} {{durationUnit}}","orderIndefiniteDuration":"გაურკვეველი ხანგრძლივობა","paginationItemsCount_one":"{{pageItemsCount}} / {{count}} ელემენტი","paginationItemsCount_other":"{{pageItemsCount}} / {{count}} ელემენტი","paginationPageText_one":"{{count}} გვერდიდან","paginationPageText_other":"{{count}} გვერდიდან","partOfFormDidntLoad":"Part of the form did not load","pastVisits":"წარსული ვიზიტები","Patient Summary":"პაციენტის მიმოხილვა","PM":"PM","previousPage":"წინა გვერდი","program":"პროგრამა","provider":"მომწოდებელი","quantity":"რაოდენობა","recommended":"რეკომენდებულია","record":"ჩანაწერი","refills":"შევსებები","refreshToTryAgain":"განაახლეთ გვერდი თავიდან საცდელად","required":"აუცილებელია","Routine":"დადგენილი პრაქტიკა","saveAndClose":"შენახვა და დახურვა","saving":"მიმდინარეობს შენახვა","searchForAVisitType":"ვიზიტის ტიპის მოძებნა","searchForCauseOfDeath":"Search for a cause of death","seeAll":"ყველას ნახვა","selectAnOption":"აირჩიეთ პარამეტრი","selectAVisit":"აირჩიეთ ვიზიტი","selectLocation":"აირჩიეთ მდებარეობა","selectProgramType":"აირჩიეთ პროგრამის ტიპი","selectVisitType":"აირჩიეთ ვიზიტის ტიპი","showVisitWithStartDateOnOrPriorTo":"Show visit with start date on or prior to:","startDate":"დაწყების თარიღი","startingVisit":"ვიზიტი იწყება","startNewVisit":"ახალი ვიზიტის დაწყება","startTime":"დაწყების დრო","startTimeFormat":"დაწყების დროის ფორმატი","startVisit":"ვიზიტის დაწყება","startVisitError":"ვიზიტის დაწყების შეცდომა","startVisitWorkspaceTitle":"ვიზიტის დაწყება","Stat":"სტატისტიკა","tests":"ტესტები","theVisitIs":"ეს ვიზიტი არის","time":"დრო","timeFormat ":"დროის ფორმატი","undo":"გაუქმება","unknownError":"Unknown error","updateVisit":"ვიზიტის განახლება","updatingVisit":"მიმდინარეობს ვიზიტის განახლება","viewEncounter":"ნახვა","visitAttributes":"ვიზიტის ატრიბუტები","visitDeleted":"{{visit}} წაიშალა","visitDeletedSuccessfully":"{{visit}} წარმატებით წაიშალა","visitDetailsUpdated":"ვიზიტის დეტალები განახლდა","visitDetailsUpdatedSuccessfully":"{{visit}} წარმატებით განახლდა","visitEnded":"ვიზიტი დასრულდა","visitEndSuccessfully":"მიმდინარე ვიზიტი წარმატებით დასრულდა","visitLocation":"ვიზიტის მდებარეობა","visitLocationRequired":"Visit location is required","visitNotRestored":"ვიზიტის აღდგენა შეუძლებელია","visitRestored":"ვიზიტი აღდგენილია","visitRestoredSuccessfully":"{{visit}} წარმატებით აღდგა","visits":"ვიზიტი","Visits":"ვიზიტები","visitStartAndEndDate":"Visit start and end date","visitStartDate":"ვიზიტის დაწყების თარიღი","visitStartDateMustBeBeforeEarliestEncounter":"Start time must be on or before {{firstEncounterDatetime}}","visitStartDateTimeRequired":"Start date and time are required","visitStarted":"ვიზიტი დაიწყო","visitStartedSuccessfully":"{{visit}} წარმატებით დაიწყო","visitType":"ვიზიტის ტიპი","visitType_title":"ვიზიტის ტიპი","visitTypeRequired":"Visit type is required","warning":"გაფრთხილება","yes":"დიახ","youCanAddAdditionalEncounters":"You can add additional encounters to this visit in the visit summary."}')}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[795],{70795:e=>{e.exports=JSON.parse('{"actions":"ქმედებები","addingToVisit":"დაემატება სად:","additionalVisitInformationUpdatedSuccessfully":"Additional visit information updated successfully","addVisit":"ვიზიტის დამატება","all":"ყველა","allEncounters":"ყველა კონსულტაცია","AM":"AM","cancel":"გაუქმება","causeOfDeath":"გარდაცვალების მიზეზი","causeOfDeath_lower":"cause of death concepts configured in the system","causeOfDeathIsRequired":"Please select the cause of death","change":"შეცვლა","checkFilters":"შეამოწმეთ ფილტრები ზემოთ","confirm":"დადასტურება","confirmDeleteVisitText":"Deleting this {{visit}} will delete its associated encounters.","confirmModifyingVisitDateToAccomodateEncounter":"The encounter date falls outside the designated visit date range. Would you like to modify the visit date to accommodate the new encounter date?","continue":"გაგრძელება","createNewVisit":"ახალი ვიზიტის შექმნა...","currentActiveVisit":"ამჟამად აქტიური ვიზიტი","currentVisit":"მიმდინარე ვიზიტი","date":"თარიღი","dateAndTime":"თარიღი და დრო","dateOfDeath":"გარდაცვალების თარიღი","deathDateRequired":"Please select the date of death","delete":"წაშლა","deleteActiveVisit":"აქტიური ვიზიტის წაშლა","deleteEncounter":"კონსულტაციის წაშლა","deleteEncounterConfirmationText":"Are you sure you want to delete this encounter? This action can\'t be undone.","deleteThisEncounter":"ამ კონსულტაციის წაშლა","deleteVisit":"ვიზიტის წაშლა","deleteVisitDialogHeader":"Are you sure you want to delete this visit?","deletingVisit":"იშლება ვიზიტი","diagnoses":"დიაგნოზები","discard":"მოცილება","discontinued":"Discontinued","dose":"დოზა","dosingInstructions":"Dosing Instructions","editEncounter":"ჩასწორება","editThisEncounter":"ამ კონსულტაციის ჩასწორება","editVisitDetails":"ვიზიტის დეტალების ჩასწორება","emptyStateText":"There are no {{displayText}} to display for this patient","enable":"ჩართვა","encounter":"Encounter","encounterDeleted":"კონსულტაციის წაიშალა","encounters_title":"კონსულტაციები","encountersForThisVisit":"encounters for this visit","encounterSuccessfullyDeleted":"The encounter has been deleted successfully","encounterTableActionsMenu":"კონსულტაციის ცხრილის ქმედებების მენიუ","encounterType":"კონსულტაციის ტიპი","encounterWithError":"The encounter could not be deleted successfully. If the error persists, please contact your system administrator.","endActiveVisit":"აქტიური ვიზიტის დასრულება","endActiveVisitConfirmation":"Are you sure you want to end this active visit?","endDate":"დასრულების თარიღი","endDate_title":"დასრულების თარიღი","endDateTimeRequired":"End date and time are required","ended":"დასრულდა","endTime":"დასრულების დრო","endTimeFormat":"დასრულების დროის ფორმატი","endTimeMustBeAfterMostRecentEncounter":"End time must be on or after {{lastEncounterDatetime}}","endTimeMustBeAfterStartTime":"End time must be after start time","endVisit_title":"ვიზიტის დასრულება","enterNonCodedCauseOfDeath":"შეიყვანეთ არაკოდირებული გარდაცვალების მიზეზი","error":"შეცდომა","errorCopy":"Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above.","errorCreatingVisitAttribute":"ვერ წავშალე ატრიბუტი {{attributeName}}","errorDeletingVisit":"ვიზიტის წაშლის შეცდომა","errorDeletingVisitAttribute":"ვერ წავშალე ატრიბუტი {{attributeName}}","errorEndingVisit":"ვიზიტის დასრულების შეცდომა","errorMarkingPatientAlive":"პაციენტის ცოცხლად მონიშვნის შეცდომა","errorMarkingPatientDeceased":"პაციენტის გარდაცვლილად მონიშვნის შეცდომა","errorOccurredDeletingVisit":"An error occurred when deleting visit","errorStartingVisit":"ვიზიტის დაწყების შეცდომა","errorStartingVisitDescription":"An error occurred while starting the visit","errorUpdatingVisitAttribute":"განახლების შეცდომა ატრიბუტისთვის {{attributeName}}","errorUpdatingVisitDetails":"ვიზიტის დეტალების განახლების შეცდომა","errorWhenRestoringVisit":"შეცდომა {{visit}}-ის აღდგენისას","failedToLoadCurrentVisit":"მიმდინარე ვიზიტის ჩატვირთვა ჩავარდა","fieldRequired":"This field is required","filterByEncounterType":"გაფილტვრა კონსულტაციის ტიპით","form":"ფორმის სახელი","fromDateToDate":"{{fromDate}} - {{toDate}}","futureEndTime":"End time cannot be in the future","futureStartTime":"Start time cannot be in the future","indication":"სიმპტომი","inThePast":"წარსულში","loading":"მიმდინარეობს ჩატვირთვა","loadingVisit":"იტვირთება მიმდინარე ვიზიტი...","markAliveSuccessfully":"პაციენტი წარმატებით მოინიშნა ცოცხლად","markDeceasedWarning":"Marking the patient as deceased will end any active visits for this patient","markPatientAlive":"პაციენტის ცოცხლად მონიშვნა","markPatientAliveConfirmation":"Are you sure you want to mark this patient alive?","markPatientDeceased":"პაციენტის გარდაცვალებულად მონიშვნა","medications":"წამლები","medications__lower":"წამალი","missingVisitType":"აკლია ვიზიტის ტიპი","modifyVisitDate":"ვიზიტის თარიღის შეცვლა","new":"ახალი","nextPage":"შემდეგი გვერდი","no":"არა","noActiveVisit":"აქტიური ვიზიტების გარეშე","noActiveVisitMessage":"აქტიური ვიზიტი","noActiveVisitNoRDEText":"You can\'t add data to the patient chart without an active visit. Would you like to start a new visit?","noDiagnosesFound":"დიაგნოზები აღმოჩენილი არაა","noEncountersToDisplay":"საჩვენებელი კონსულტაციების გარეშე","noMatchingCodedCausesOfDeath":"No matching coded causes of death","nonCodedCauseOfDeath":"არაკოდირებული გარდაცვალების მიზეზი","nonCodedCauseOfDeathRequired":"Please enter the non-coded cause of death","noObservationsFound":"დაკვირვებები აღმოჩენილი არაა","noProvider":"No provider","notes":"შენიშვნები","notes__lower":"შენიშვნა","noVisitsToDisplay":"საჩვენებელი ვიზიტების გარეშე","noVisitTypesToDisplay":"საჩვენებელი ვიზიტის ტიპების გარეშე","offlineVisit":"Offline Visit","On scheduled date":"დაგეგმილი დროზე","ongoing":"მიმდინარეობს","optional":"არასავალდებულო","orderDurationAndUnit":"{{duration}} {{durationUnit}}","orderIndefiniteDuration":"გაურკვეველი ხანგრძლივობა","paginationItemsCount_one":"{{pageItemsCount}} / {{count}} ელემენტი","paginationItemsCount_other":"{{pageItemsCount}} / {{count}} ელემენტი","paginationPageText_one":"{{count}} გვერდიდან","paginationPageText_other":"{{count}} გვერდიდან","partOfFormDidntLoad":"Part of the form did not load","pastVisits":"წარსული ვიზიტები","Patient Summary":"პაციენტის მიმოხილვა","PM":"PM","previousPage":"წინა გვერდი","program":"პროგრამა","provider":"მომწოდებელი","quantity":"რაოდენობა","recommended":"რეკომენდებულია","record":"ჩანაწერი","refills":"შევსებები","refreshToTryAgain":"განაახლეთ გვერდი თავიდან საცდელად","required":"აუცილებელია","Routine":"დადგენილი პრაქტიკა","saveAndClose":"შენახვა და დახურვა","saving":"მიმდინარეობს შენახვა","searchForAVisitType":"ვიზიტის ტიპის მოძებნა","searchForCauseOfDeath":"Search for a cause of death","seeAll":"ყველას ნახვა","selectAnOption":"აირჩიეთ პარამეტრი","selectAVisit":"აირჩიეთ ვიზიტი","selectLocation":"აირჩიეთ მდებარეობა","selectProgramType":"აირჩიეთ პროგრამის ტიპი","selectVisitType":"აირჩიეთ ვიზიტის ტიპი","showVisitWithStartDateOnOrPriorTo":"Show visit with start date on or prior to:","startDate":"დაწყების თარიღი","startingVisit":"ვიზიტი იწყება","startNewVisit":"ახალი ვიზიტის დაწყება","startTime":"დაწყების დრო","startTimeFormat":"დაწყების დროის ფორმატი","startVisit":"ვიზიტის დაწყება","startVisitError":"ვიზიტის დაწყების შეცდომა","startVisitWorkspaceTitle":"ვიზიტის დაწყება","Stat":"სტატისტიკა","tests":"ტესტები","theVisitIs":"ეს ვიზიტი არის","time":"დრო","timeCompleted":"Time completed","timeFormat ":"დროის ფორმატი","timeline":"Timeline","timeStarted":"Time started","undo":"გაუქმება","unknownError":"Unknown error","updateVisit":"ვიზიტის განახლება","updatingVisit":"მიმდინარეობს ვიზიტის განახლება","viewEncounter":"ნახვა","visitAttributes":"ვიზიტის ატრიბუტები","visitDeleted":"{{visit}} წაიშალა","visitDeletedSuccessfully":"{{visit}} წარმატებით წაიშალა","visitDetailsUpdated":"ვიზიტის დეტალები განახლდა","visitDetailsUpdatedSuccessfully":"{{visit}} წარმატებით განახლდა","visitEnded":"ვიზიტი დასრულდა","visitEndSuccessfully":"მიმდინარე ვიზიტი წარმატებით დასრულდა","visitLocation":"ვიზიტის მდებარეობა","visitLocationRequired":"Visit location is required","visitNotRestored":"ვიზიტის აღდგენა შეუძლებელია","visitRestored":"ვიზიტი აღდგენილია","visitRestoredSuccessfully":"{{visit}} წარმატებით აღდგა","visits":"ვიზიტი","Visits":"ვიზიტები","visitStartAndEndDate":"Visit start and end date","visitStartDate":"ვიზიტის დაწყების თარიღი","visitStartDateMustBeBeforeEarliestEncounter":"Start time must be on or before {{firstEncounterDatetime}}","visitStartDateTimeRequired":"Start date and time are required","visitStarted":"ვიზიტი დაიწყო","visitStartedSuccessfully":"{{visit}} წარმატებით დაიწყო","visitType":"ვიზიტის ტიპი","visitType_title":"ვიზიტის ტიპი","visitTypeRequired":"Visit type is required","warning":"გაფრთხილება","yes":"დიახ","youCanAddAdditionalEncounters":"You can add additional encounters to this visit in the visit summary."}')}}]);
package/dist/8163.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[8163],{88163:e=>{e.exports=JSON.parse('{"actions":"Actions","addingToVisit":"Adding to:","additionalVisitInformationUpdatedSuccessfully":"Additional visit information updated successfully","addVisit":"Add visit","all":"All","allEncounters":"All encounters","AM":"AM","cancel":"Cancel","causeOfDeath":"Cause of death","causeOfDeath_lower":"cause of death concepts configured in the system","causeOfDeathIsRequired":"Please select the cause of death","change":"Change","checkFilters":"Check the filters above","confirm":"Confirm","confirmDeleteVisitText":"Deleting this {{visit}} will delete its associated encounters.","confirmModifyingVisitDateToAccomodateEncounter":"The encounter date falls outside the designated visit date range. Would you like to modify the visit date to accommodate the new encounter date?","continue":"Continue","createNewVisit":"Create new visit...","currentActiveVisit":"Current active visit","currentVisit":"Current visit","date":"Date","dateAndTime":"Date & time","dateOfDeath":"Date of death","deathDateRequired":"Please select the date of death","delete":"Delete","deleteActiveVisit":"Delete active visit","deleteEncounter":"Delete encounter","deleteEncounterConfirmationText":"Are you sure you want to delete this encounter? This action can\'t be undone.","deleteThisEncounter":"Delete this encounter","deleteVisit":"Delete visit","deleteVisitDialogHeader":"Are you sure you want to delete this visit?","deletingVisit":"Deleting visit","diagnoses":"Diagnoses","discard":"Discard","discontinued":"Discontinued","dose":"Dose","dosingInstructions":"Dosing Instructions","editEncounter":"Edit","editThisEncounter":"Edit this encounter","editVisitDetails":"Edit visit details","emptyStateText":"There are no {{displayText}} to display for this patient","enable":"Enable","encounterDeleted":"Encounter deleted","encounters_title":"Encounters","encounterSuccessfullyDeleted":"The encounter has been deleted successfully","encounterTableActionsMenu":"Encounter table actions menu","encounterType":"Encounter type","encounterWithError":"The encounter could not be deleted successfully. If the error persists, please contact your system administrator.","endActiveVisit":"End active visit","endActiveVisitConfirmation":"Are you sure you want to end this active visit?","endDate":"End date","endDate_title":"End date","endDateTimeRequired":"End date and time are required","ended":"Ended","endTime":"End time","endTimeFormat":"End time format","endTimeMustBeAfterMostRecentEncounter":"End time must be on or after {{lastEncounterDatetime}}","endTimeMustBeAfterStartTime":"End time must be after start time","endVisit_title":"End Visit","enterNonCodedCauseOfDeath":"Enter non-coded cause of death","error":"Error","errorCopy":"Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above.","errorCreatingVisitAttribute":"Could not delete {{attributeName}} attribute","errorDeletingVisit":"Error deleting visit","errorDeletingVisitAttribute":"Could not delete {{attributeName}} attribute","errorEndingVisit":"Error ending visit","errorMarkingPatientAlive":"Error marking patient alive","errorMarkingPatientDeceased":"Error marking patient deceased","errorOccurredDeletingVisit":"An error occurred when deleting visit","errorStartingVisit":"Error starting visit","errorStartingVisitDescription":"An error occurred while starting the visit","errorUpdatingVisitAttribute":"Could not update {{attributeName}} attribute","errorUpdatingVisitDetails":"Error updating visit details","errorWhenRestoringVisit":"Error occurred when restoring {{visit}}","failedToLoadCurrentVisit":"Failed loading current visit","fieldRequired":"This field is required","filterByEncounterType":"Filter by encounter type","form":"Form name","fromDateToDate":"{{fromDate}} - {{toDate}}","futureEndTime":"End time cannot be in the future","futureStartTime":"Start time cannot be in the future","indication":"Indication","inThePast":"In the past","loading":"Loading","loadingVisit":"Loading current visit...","markAliveSuccessfully":"Patient marked alive successfully","markDeceasedWarning":"Marking the patient as deceased will end any active visits for this patient","markPatientAlive":"Mark patient alive","markPatientAliveConfirmation":"Are you sure you want to mark this patient alive?","markPatientDeceased":"Mark patient deceased","medications":"Medications","medications__lower":"medications","missingVisitType":"Missing visit type","modifyVisitDate":"Modify visit date","new":"New","nextPage":"Next page","no":"No","noActiveVisit":"No Active Visit","noActiveVisitMessage":"active visit","noActiveVisitNoRDEText":"You can\'t add data to the patient chart without an active visit. Would you like to start a new visit?","noDiagnosesFound":"No diagnoses found","noEncountersToDisplay":"No encounters to display","noMatchingCodedCausesOfDeath":"No matching coded causes of death","nonCodedCauseOfDeath":"Non-coded cause of death","nonCodedCauseOfDeathRequired":"Please enter the non-coded cause of death","noObservationsFound":"No observations found","notes":"Notes","notes__lower":"notes","noVisitsToDisplay":"No visits to display","noVisitTypesToDisplay":"No visit types to display","offlineVisit":"Offline Visit","On scheduled date":"On scheduled date","ongoing":"Ongoing","optional":"optional","orderDurationAndUnit":"for {{duration}} {{durationUnit}}","orderIndefiniteDuration":"Indefinite duration","paginationItemsCount_one":"{{pageItemsCount}} / {{count}} item","paginationItemsCount_other":"{{pageItemsCount}} / {{count}} items","paginationPageText_one":"of {{count}} page","paginationPageText_other":"of {{count}} pages","partOfFormDidntLoad":"Part of the form did not load","pastVisits":"Past visits","Patient Summary":"Patient summary","PM":"PM","previousPage":"Previous page","program":"Program","provider":"Provider","quantity":"Quantity","recommended":"Recommended","record":"Record","refills":"Refills","refreshToTryAgain":"Please refresh to try again","required":"Required","Routine":"Routine","saveAndClose":"Save and close","saving":"Saving","searchForAVisitType":"Search for a visit type","searchForCauseOfDeath":"Search for a cause of death","seeAll":"See all","selectAnOption":"Select an option","selectAVisit":"Select a visit","selectLocation":"Select a location","selectProgramType":"Select program type","selectVisitType":"Please select a visit type","showVisitWithStartDateOnOrPriorTo":"Show visit with start date on or prior to:","startDate":"Start date","startingVisit":"Starting visit","startNewVisit":"Start new visit","startTime":"Start time","startTimeFormat":"Start time format","startVisit":"Start visit","startVisitError":"Error starting visit","startVisitWorkspaceTitle":"Start a visit","Stat":"Stat","tests":"Tests","theVisitIs":"The visit is","time":"Time","timeFormat ":"Time Format","undo":"Undo","unknownError":"Unknown error","updateVisit":"Update visit","updatingVisit":"Updating visit","viewEncounter":"View","visitAttributes":"Visit attributes","visitDeleted":"{{visit}} deleted","visitDeletedSuccessfully":"{{visit}} deleted successfully","visitDetailsUpdated":"Visit details updated","visitDetailsUpdatedSuccessfully":"{{visit}} updated successfully","visitEnded":"Visit ended","visitEndSuccessfully":"Ended current visit successfully","visitLocation":"Visit location","visitLocationRequired":"Visit location is required","visitNotRestored":"Visit couldn\'t be restored","visitRestored":"Visit restored","visitRestoredSuccessfully":"{{visit}} restored successfully","visits":"visits","Visits":"Visits","visitStartAndEndDate":"Visit start and end date","visitStartDate":"Visit start date","visitStartDateMustBeBeforeEarliestEncounter":"Start time must be on or before {{firstEncounterDatetime}}","visitStartDateTimeRequired":"Start date and time are required","visitStarted":"Visit started","visitStartedSuccessfully":"{{visit}} started successfully","visitType":"Visit type","visitType_title":"Visit Type","visitTypeRequired":"Visit type is required","warning":"Warning","yes":"Yes","youCanAddAdditionalEncounters":"You can add additional encounters to this visit in the visit summary."}')}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[8163],{88163:e=>{e.exports=JSON.parse('{"actions":"Actions","addingToVisit":"Adding to:","additionalVisitInformationUpdatedSuccessfully":"Additional visit information updated successfully","addVisit":"Add visit","all":"All","allEncounters":"All encounters","AM":"AM","cancel":"Cancel","causeOfDeath":"Cause of death","causeOfDeath_lower":"cause of death concepts configured in the system","causeOfDeathIsRequired":"Please select the cause of death","change":"Change","checkFilters":"Check the filters above","confirm":"Confirm","confirmDeleteVisitText":"Deleting this {{visit}} will delete its associated encounters.","confirmModifyingVisitDateToAccomodateEncounter":"The encounter date falls outside the designated visit date range. Would you like to modify the visit date to accommodate the new encounter date?","continue":"Continue","createNewVisit":"Create new visit...","currentActiveVisit":"Current active visit","currentVisit":"Current visit","date":"Date","dateAndTime":"Date & time","dateOfDeath":"Date of death","deathDateRequired":"Please select the date of death","delete":"Delete","deleteActiveVisit":"Delete active visit","deleteEncounter":"Delete encounter","deleteEncounterConfirmationText":"Are you sure you want to delete this encounter? This action can\'t be undone.","deleteThisEncounter":"Delete this encounter","deleteVisit":"Delete visit","deleteVisitDialogHeader":"Are you sure you want to delete this visit?","deletingVisit":"Deleting visit","diagnoses":"Diagnoses","discard":"Discard","discontinued":"Discontinued","dose":"Dose","dosingInstructions":"Dosing Instructions","editEncounter":"Edit","editThisEncounter":"Edit this encounter","editVisitDetails":"Edit visit details","emptyStateText":"There are no {{displayText}} to display for this patient","enable":"Enable","encounter":"Encounter","encounterDeleted":"Encounter deleted","encounters_title":"Encounters","encountersForThisVisit":"encounters for this visit","encounterSuccessfullyDeleted":"The encounter has been deleted successfully","encounterTableActionsMenu":"Encounter table actions menu","encounterType":"Encounter type","encounterWithError":"The encounter could not be deleted successfully. If the error persists, please contact your system administrator.","endActiveVisit":"End active visit","endActiveVisitConfirmation":"Are you sure you want to end this active visit?","endDate":"End date","endDate_title":"End date","endDateTimeRequired":"End date and time are required","ended":"Ended","endTime":"End time","endTimeFormat":"End time format","endTimeMustBeAfterMostRecentEncounter":"End time must be on or after {{lastEncounterDatetime}}","endTimeMustBeAfterStartTime":"End time must be after start time","endVisit_title":"End Visit","enterNonCodedCauseOfDeath":"Enter non-coded cause of death","error":"Error","errorCopy":"Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above.","errorCreatingVisitAttribute":"Could not delete {{attributeName}} attribute","errorDeletingVisit":"Error deleting visit","errorDeletingVisitAttribute":"Could not delete {{attributeName}} attribute","errorEndingVisit":"Error ending visit","errorMarkingPatientAlive":"Error marking patient alive","errorMarkingPatientDeceased":"Error marking patient deceased","errorOccurredDeletingVisit":"An error occurred when deleting visit","errorStartingVisit":"Error starting visit","errorStartingVisitDescription":"An error occurred while starting the visit","errorUpdatingVisitAttribute":"Could not update {{attributeName}} attribute","errorUpdatingVisitDetails":"Error updating visit details","errorWhenRestoringVisit":"Error occurred when restoring {{visit}}","failedToLoadCurrentVisit":"Failed loading current visit","fieldRequired":"This field is required","filterByEncounterType":"Filter by encounter type","form":"Form name","fromDateToDate":"{{fromDate}} - {{toDate}}","futureEndTime":"End time cannot be in the future","futureStartTime":"Start time cannot be in the future","indication":"Indication","inThePast":"In the past","loading":"Loading","loadingVisit":"Loading current visit...","markAliveSuccessfully":"Patient marked alive successfully","markDeceasedWarning":"Marking the patient as deceased will end any active visits for this patient","markPatientAlive":"Mark patient alive","markPatientAliveConfirmation":"Are you sure you want to mark this patient alive?","markPatientDeceased":"Mark patient deceased","medications":"Medications","medications__lower":"medications","missingVisitType":"Missing visit type","modifyVisitDate":"Modify visit date","new":"New","nextPage":"Next page","no":"No","noActiveVisit":"No Active Visit","noActiveVisitMessage":"active visit","noActiveVisitNoRDEText":"You can\'t add data to the patient chart without an active visit. Would you like to start a new visit?","noDiagnosesFound":"No diagnoses found","noEncountersToDisplay":"No encounters to display","noMatchingCodedCausesOfDeath":"No matching coded causes of death","nonCodedCauseOfDeath":"Non-coded cause of death","nonCodedCauseOfDeathRequired":"Please enter the non-coded cause of death","noObservationsFound":"No observations found","noProvider":"No provider","notes":"Notes","notes__lower":"notes","noVisitsToDisplay":"No visits to display","noVisitTypesToDisplay":"No visit types to display","offlineVisit":"Offline Visit","On scheduled date":"On scheduled date","ongoing":"Ongoing","optional":"optional","orderDurationAndUnit":"for {{duration}} {{durationUnit}}","orderIndefiniteDuration":"Indefinite duration","paginationItemsCount_one":"{{pageItemsCount}} / {{count}} item","paginationItemsCount_other":"{{pageItemsCount}} / {{count}} items","paginationPageText_one":"of {{count}} page","paginationPageText_other":"of {{count}} pages","partOfFormDidntLoad":"Part of the form did not load","pastVisits":"Past visits","Patient Summary":"Patient summary","PM":"PM","previousPage":"Previous page","program":"Program","provider":"Provider","quantity":"Quantity","recommended":"Recommended","record":"Record","refills":"Refills","refreshToTryAgain":"Please refresh to try again","required":"Required","Routine":"Routine","saveAndClose":"Save and close","saving":"Saving","searchForAVisitType":"Search for a visit type","searchForCauseOfDeath":"Search for a cause of death","seeAll":"See all","selectAnOption":"Select an option","selectAVisit":"Select a visit","selectLocation":"Select a location","selectProgramType":"Select program type","selectVisitType":"Please select a visit type","showVisitWithStartDateOnOrPriorTo":"Show visit with start date on or prior to:","startDate":"Start date","startingVisit":"Starting visit","startNewVisit":"Start new visit","startTime":"Start time","startTimeFormat":"Start time format","startVisit":"Start visit","startVisitError":"Error starting visit","startVisitWorkspaceTitle":"Start a visit","Stat":"Stat","tests":"Tests","theVisitIs":"The visit is","time":"Time","timeCompleted":"Time completed","timeFormat ":"Time Format","timeline":"Timeline","timeStarted":"Time started","undo":"Undo","unknownError":"Unknown error","updateVisit":"Update visit","updatingVisit":"Updating visit","viewEncounter":"View","visitAttributes":"Visit attributes","visitDeleted":"{{visit}} deleted","visitDeletedSuccessfully":"{{visit}} deleted successfully","visitDetailsUpdated":"Visit details updated","visitDetailsUpdatedSuccessfully":"{{visit}} updated successfully","visitEnded":"Visit ended","visitEndSuccessfully":"Ended current visit successfully","visitLocation":"Visit location","visitLocationRequired":"Visit location is required","visitNotRestored":"Visit couldn\'t be restored","visitRestored":"Visit restored","visitRestoredSuccessfully":"{{visit}} restored successfully","visits":"visits","Visits":"Visits","visitStartAndEndDate":"Visit start and end date","visitStartDate":"Visit start date","visitStartDateMustBeBeforeEarliestEncounter":"Start time must be on or before {{firstEncounterDatetime}}","visitStartDateTimeRequired":"Start date and time are required","visitStarted":"Visit started","visitStartedSuccessfully":"{{visit}} started successfully","visitType":"Visit type","visitType_title":"Visit Type","visitTypeRequired":"Visit type is required","warning":"Warning","yes":"Yes","youCanAddAdditionalEncounters":"You can add additional encounters to this visit in the visit summary."}')}}]);
package/dist/8260.js ADDED
@@ -0,0 +1 @@
1
+ (globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[8260],{9247:(e,n,t)=>{"use strict";function i(e,n,t){return(n=function(e){var n=function(e,n){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,n);if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof n?n:n+""}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function r(e,n){if(null==e)return{};var t,i,a=function(e,n){if(null==e)return{};var t={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==n.indexOf(i))continue;t[i]=e[i]}return t}(e,n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)t=s[i],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}t.d(n,{A:()=>m});var c=["width","height","viewBox"],o=["tabindex"],p={focusable:"false",preserveAspectRatio:"xMidYMid meet"};var u=t(39067),l=t.n(u),g=t(1343),d=t.n(g);const m=d().forwardRef((function({className:e,children:n,tabIndex:t,xmlns:i="http://www.w3.org/2000/svg",preserveAspectRatio:a="xMidYMid meet",...u},l){const{tabindex:g,...m}=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.width,t=e.height,i=e.viewBox,a=void 0===i?"0 0 ".concat(n," ").concat(t):i,u=r(e,c),l=u.tabindex,g=r(u,o),d=s(s(s({},p),g),{},{width:n,height:t,viewBox:a});return d["aria-label"]||d["aria-labelledby"]||d.title?(d.role="img",null!=l&&(d.focusable="true",d.tabindex=l)):d["aria-hidden"]=!0,d}({...u,tabindex:t}),b=m;return e&&(b.className=e),null!=g&&(b.tabIndex="number"==typeof g?g:Number(t)),l&&(b.ref=l),i&&(b.xmlns=i),a&&(b.preserveAspectRatio=a),d().createElement("svg",b,n)}));m.displayName="Icon",m.propTypes={"aria-hidden":l().oneOfType([l().bool,l().oneOf(["true","false"])]),"aria-label":l().string,"aria-labelledby":l().string,children:l().node,className:l().string,height:l().oneOfType([l().number,l().string]),preserveAspectRatio:l().string,tabIndex:l().oneOfType([l().number,l().string]),viewBox:l().string,width:l().oneOfType([l().number,l().string]),xmlns:l().string}},14224:(e,n,t)=>{"use strict";t.d(n,{A:()=>c});var i=t(30977),a=t.n(i),s=t(95924),r=t.n(s)()(a());r.push([e.id,".-esm-patient-chart__visit-context-info__visitContextInfoContainer___vuN7e{display:flex;align-items:center;justify-items:center}.-esm-patient-chart__visit-context-info__separator___niAOq,.-esm-patient-chart__visit-context-info__visitLocation___6Vt56{margin:.25rem}","",{version:3,sources:["webpack://./src/visit/visits-widget/visit-context/visit-context-info.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAEA,2EACE,YAAA,CACA,kBAAA,CACA,oBAAA,CAGF,0HAEE,aCMW",sourcesContent:["@use '@carbon/layout';\n\n.visitContextInfoContainer {\n display: flex;\n align-items: center;\n justify-items: center;\n}\n\n.separator,\n.visitLocation {\n margin: layout.$spacing-02;\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:""}]),r.locals={visitContextInfoContainer:"-esm-patient-chart__visit-context-info__visitContextInfoContainer___vuN7e",separator:"-esm-patient-chart__visit-context-info__separator___niAOq",visitLocation:"-esm-patient-chart__visit-context-info__visitLocation___6Vt56"};const c=r},28922:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>N});var i=t(75198),a=t(54440),s=t(53373),r=t.n(s),c=t(1343),o=t.n(c),p=t(72339),u=t(72591),l=t.n(u),g=t(1740),d=t.n(g),m=t(88128),b=t.n(m),_=t(30855),f=t.n(_),y=t(93051),v=t.n(y),A=t(73656),h=t.n(A),C=t(58561),x={};x.styleTagTransform=h(),x.setAttributes=f(),x.insert=b().bind(null,"head"),x.domAPI=d(),x.insertStyleElement=v(),l()(C.A,x);const $=C.A&&C.A.locals?C.A.locals:void 0;var T=t(41411),E=t(63276);const N=function(e){var n,t=e.patientUuid,s=(0,p.useTranslation)().t,c=(0,E.useSystemVisitSetting)().systemVisitEnabled,u=(0,a.useFeatureFlag)("rde"),l=(0,E.usePatientChartStore)(t).visitContext,g=Boolean(l&&!l.stopDatetime);return c&&u&&l?o().createElement("div",{className:r()($.visitContextHeader,g?$.activeVisit:$.retroactiveVisit)},o().createElement("div",{className:$.addingTo},s("addingToVisit","Adding to:")),o().createElement("div",{className:$.visitType},null===(n=l.visitType)||void 0===n?void 0:n.display),o().createElement("div",{className:$.changeVisitButton},o().createElement(i.Button,{kind:"ghost",size:"sm",onClick:function(){var e=(0,a.showModal)("visit-context-switcher",{patientUuid:t,closeModal:function(){return e()},size:"sm"})}},s("change","Change"))),o().createElement("div",{className:$.visitInfo},o().createElement(T.A,{visit:l}))):null}},36848:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},36999:(e,n,t)=>{"use strict";var i=t(36848);function a(){}function s(){}s.resetWarningCache=a,e.exports=function(){function e(e,n,t,a,s,r){if(r!==i){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:s,resetWarningCache:a};return t.PropTypes=t,t}},39067:(e,n,t)=>{e.exports=t(36999)()},41411:(e,n,t)=>{"use strict";t.d(n,{A:()=>x});var i=t(49007),a=t(54440),s=t(1343),r=t.n(s),c=t(72339),o=t(72591),p=t.n(o),u=t(1740),l=t.n(u),g=t(88128),d=t.n(g),m=t(30855),b=t.n(m),_=t(93051),f=t.n(_),y=t(73656),v=t.n(y),A=t(14224),h={};h.styleTagTransform=v(),h.setAttributes=b(),h.insert=d().bind(null,"head"),h.domAPI=l(),h.insertStyleElement=f(),p()(A.A,h);const C=A.A&&A.A.locals?A.A.locals:void 0,x=function(e){var n=e.visit,t=(0,c.useTranslation)().t;if(!n)return null;var s=!n.stopDatetime;return r().createElement("div",{className:C.visitContextInfoContainer},r().createElement("span",null,s?t("currentActiveVisit","Current active visit"):t("fromDateToDate","{{fromDate}} - {{toDate}}",{fromDate:(0,a.formatDate)((0,a.parseDate)(n.startDatetime),{time:!1}),toDate:(0,a.formatDate)((0,a.parseDate)(n.stopDatetime),{time:!1})})),r().createElement("span",{className:C.separator},"·"),r().createElement(i.tI,null),r().createElement("span",{className:C.visitLocation},n.location.display))}},58561:(e,n,t)=>{"use strict";t.d(n,{A:()=>c});var i=t(30977),a=t.n(i),s=t(95924),r=t.n(s)()(a());r.push([e.id,'.-esm-patient-chart__visit-context-header__visitContextHeader___CkIQJ{display:grid;column-gap:.5rem;padding:.5rem;font-size:.75rem;grid-template-areas:"addingTo visitType changeVisitButton" "addingTo visitInfo visitInfo";grid-template-columns:max-content 1fr min-content}.-esm-patient-chart__visit-context-header__activeVisit___u5NpZ{background-color:#defbe6}.-esm-patient-chart__visit-context-header__retroactiveVisit___8W99\\+{background-color:#f4f4f4}.-esm-patient-chart__visit-context-header__addingTo___zHG3u{grid-area:addingTo}.-esm-patient-chart__visit-context-header__visitType___t41r2{font-size:14px;font-weight:600;grid-area:visitType}.-esm-patient-chart__visit-context-header__changeVisitButton___bFURD{grid-area:changeVisitButton}.-esm-patient-chart__visit-context-header__changeVisitButton___bFURD .cds--btn{min-height:0;padding:0}.-esm-patient-chart__visit-context-header__visitInfo___ANbKf{grid-area:visitInfo;display:flex;align-items:center;justify-items:center}',"",{version:3,sources:["webpack://./src/visit/visits-widget/visit-context/visit-context-header.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAEA,sEACE,YAAA,CACA,gBCiBW,CDhBX,aCgBW,CDfX,gBCoBW,CDnBX,qGACE,CAEF,iDAAA,CAGF,+DACE,wBAAA,CAGF,qEACE,wBAAA,CAGF,4DACE,kBAAA,CAGF,6DACE,cAAA,CACA,eAAA,CACA,mBAAA,CAGF,qEACE,2BAAA,CACA,+EACE,YAAA,CACA,SAAA,CAIJ,6DACE,mBAAA,CACA,YAAA,CACA,kBAAA,CACA,oBAAA",sourcesContent:["@use '@carbon/layout';\n\n.visitContextHeader {\n display: grid;\n column-gap: layout.$spacing-03;\n padding: layout.$spacing-03;\n font-size: layout.$spacing-04;\n grid-template-areas:\n 'addingTo visitType changeVisitButton'\n 'addingTo visitInfo visitInfo';\n grid-template-columns: max-content 1fr min-content;\n}\n\n.activeVisit {\n background-color: #defbe6;\n}\n\n.retroactiveVisit {\n background-color: #f4f4f4;\n}\n\n.addingTo {\n grid-area: addingTo;\n}\n\n.visitType {\n font-size: 14px;\n font-weight: 600;\n grid-area: visitType;\n}\n\n.changeVisitButton {\n grid-area: changeVisitButton;\n :global(.cds--btn) {\n min-height: 0;\n padding: 0;\n }\n}\n\n.visitInfo {\n grid-area: visitInfo;\n display: flex;\n align-items: center;\n justify-items: center;\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:""}]),r.locals={visitContextHeader:"-esm-patient-chart__visit-context-header__visitContextHeader___CkIQJ",activeVisit:"-esm-patient-chart__visit-context-header__activeVisit___u5NpZ",retroactiveVisit:"-esm-patient-chart__visit-context-header__retroactiveVisit___8W99+",addingTo:"-esm-patient-chart__visit-context-header__addingTo___zHG3u",visitType:"-esm-patient-chart__visit-context-header__visitType___t41r2",changeVisitButton:"-esm-patient-chart__visit-context-header__changeVisitButton___bFURD",visitInfo:"-esm-patient-chart__visit-context-header__visitInfo___ANbKf"};const c=r}}]);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"8260.js","mappings":"4JAAA,SAASA,EAAgBC,EAAGC,EAAGC,GAC7B,OAAQD,EA0DV,SAAwBC,GACtB,IAAIC,EAXN,SAAsBD,EAAGD,GACvB,GAAI,iBAAmBC,IAAMA,EAAG,OAAOA,EACvC,IAAIF,EAAIE,EAAEE,OAAOC,aACjB,QAAI,IAAWL,EAAG,CAChB,IAAIG,EAAIH,EAAEM,KAAKJ,EAAGD,GAClB,GAAI,iBAAmBE,EAAG,OAAOA,EACjC,MAAM,IAAII,UAAU,+CACtB,CACA,OAAyBC,OAAiBN,EAC5C,CAEUO,CAAaP,EAAG,UACxB,MAAO,iBAAmBC,EAAIA,EAAIA,EAAI,EACxC,CA7DcO,CAAeT,MAAOD,EAAIW,OAAOC,eAAeZ,EA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zBAAkzB,25DAA25D,WAAa,MAEzsIF,EAAwBG,OAAS,CAChC,mBAAsB,uEACtB,YAAe,gEACf,iBAAoB,qEACpB,SAAY,6DACZ,UAAa,8DACb,kBAAqB,sEACrB,UAAa,+DAEd,S","sources":["webpack://@openmrs/esm-patient-chart-app/../../node_modules/@carbon/icon-helpers/es/index.js","webpack://@openmrs/esm-patient-chart-app/../../node_modules/@carbon/icons-react/es/Icon.js","webpack://@openmrs/esm-patient-chart-app/./src/visit/visits-widget/visit-context/visit-context-info.scss","webpack://@openmrs/esm-patient-chart-app/./src/visit/visits-widget/visit-context/visit-context-header.scss?ddc0","webpack://@openmrs/esm-patient-chart-app/./src/visit/visits-widget/visit-context/visit-context-header.extension.tsx","webpack://@openmrs/esm-patient-chart-app/../../node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack://@openmrs/esm-patient-chart-app/../../node_modules/prop-types/factoryWithThrowingShims.js","webpack://@openmrs/esm-patient-chart-app/../../node_modules/prop-types/index.js","webpack://@openmrs/esm-patient-chart-app/./src/visit/visits-widget/visit-context/visit-context-info.scss?f4af","webpack://@openmrs/esm-patient-chart-app/./src/visit/visits-widget/visit-context/visit-context-info.component.tsx","webpack://@openmrs/esm-patient-chart-app/./src/visit/visits-widget/visit-context/visit-context-header.scss"],"names":["_defineProperty","e","r","t","i","Symbol","toPrimitive","call","TypeError","String","_toPrimitive","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","ownKeys","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","push","apply","_objectSpread2","arguments","length","forEach","getOwnPropertyDescriptors","defineProperties","_objectWithoutProperties","n","hasOwnProperty","indexOf","_objectWithoutPropertiesLoose","propertyIsEnumerable","_excluded","_excluded2","defaultAttributes","focusable","preserveAspectRatio","Icon","className","children","tabIndex","xmlns","rest","ref","tabindex","attrs","_ref","undefined","width","height","_ref$viewBox","viewBox","concat","attributes","iconAttributes","title","role","getAttributes","props","Number","displayName","propTypes","___CSS_LOADER_EXPORT___","module","id","locals","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","visitContext","patientUuid","useTranslation","useSystemVisitSetting","systemVisitEnabled","isRdeEnabled","useFeatureFlag","usePatientChartStore","isActiveVisit","Boolean","stopDatetime","div","classNames","styles","visitContextHeader","activeVisit","retroactiveVisit","addingTo","visitType","display","changeVisitButton","Button","kind","size","onClick","dispose","showModal","closeModal","visitInfo","VisitContextInfo","visit","exports","ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","shim","propName","componentName","location","propFullName","secret","err","Error","name","getShim","isRequired","ReactPropTypes","array","bigint","bool","func","number","object","string","symbol","any","arrayOf","element","elementType","instanceOf","node","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","isActive","visitContextInfoContainer","span","fromDate","formatDate","parseDate","startDatetime","time","toDate","separator","Building","visitLocation"],"sourceRoot":""}
package/dist/8278.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[8278],{98278:(t,i,e)=>{e.r(i),e.d(i,{default:()=>y});var n=e(1343),l=e.n(n),r=e(72339),o=e(75198),s=e(71123),a=e(54440),u=e(63276),d=e(97821);function c(t,i){(null==i||i>t.length)&&(i=t.length);for(var e=0,n=new Array(i);e<i;e++)n[e]=t[e];return n}var v=e(8112);const y=function(t){var i,e,y=t.closeModal,f=t.mutateActiveVisit,p=(t.patientUuid,t.activeVisit),h=(0,r.useTranslation)().t,m=function(t,i){var e,l,o,v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},y=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},f=(0,r.useTranslation)().t,p=(0,s.iX)().mutate,h=(l=(0,n.useState)(!1),o=2,function(t){if(Array.isArray(t))return t}(l)||function(t,i){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,l,r=[],o=!0,s=!1;try{for(e=e.call(t);!(o=(n=e.next()).done)&&(r.push(n.value),!i||r.length!==i);o=!0);}catch(t){s=!0,l=t}finally{try{o||null==e.return||e.return()}finally{if(s)throw l}}return r}}(l,o)||function(t,i){if(t){if("string"==typeof t)return c(t,i);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?c(t,i):void 0}}(l,o)||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.")}()),m=h[0],g=h[1],V=(null==t||null===(e=t.patient)||void 0===e?void 0:e.uuid)||"",b=(0,u.usePatientChartStore)(V),D=b.visitContext,k=b.setVisitContext,A=function(){(0,d.uA)(null==t?void 0:t.uuid).then((function(e){var n,l,r=e.data;i(),r.stopDatetime||k(r,(function(){return(0,u.invalidateVisitByUuid)(p,r.uuid)})),(0,u.invalidateVisitAndEncounterData)(p,V),(0,a.showSnackbar)({title:f("visitRestored","Visit restored"),subtitle:f("visitRestoredSuccessfully","{{visit}} restored successfully",{visit:null!==(l=null==t||null===(n=t.visitType)||void 0===n?void 0:n.display)&&void 0!==l?l:f("visit","Visit")}),kind:"success"}),null==y||y()})).catch((function(){var e,n;i(),(0,u.invalidateVisitAndEncounterData)(p,V),(0,a.showSnackbar)({title:f("visitNotRestored","Visit couldn't be restored"),subtitle:f("errorWhenRestoringVisit","Error occurred when restoring {{visit}}",{visit:null!==(n=null==t||null===(e=t.visitType)||void 0===e?void 0:e.display)&&void 0!==n?n:f("visit","Visit")}),kind:"error"})}))};return{initiateDeletingVisit:function(){g(!0),(0,d.TH)(null==t?void 0:t.uuid).then((function(){var e,n,l,r;i(),t.uuid==(null==D?void 0:D.uuid)&&k(null,null),(0,u.invalidateVisitAndEncounterData)(p,V),(0,a.showSnackbar)({title:f("visitDeleted","{{visit}} deleted",{visit:null!==(l=null==t||null===(e=t.visitType)||void 0===e?void 0:e.display)&&void 0!==l?l:f("visit","Visit")}),subtitle:f("visitDeletedSuccessfully","{{visit}} deleted successfully",{visit:null!==(r=null==t||null===(n=t.visitType)||void 0===n?void 0:n.display)&&void 0!==r?r:f("visit","Visit")}),kind:"success",actionButtonLabel:f("undo","Undo"),onActionButtonClick:A}),null==v||v()})).catch((function(){i(),(0,u.invalidateVisitAndEncounterData)(p,V),(0,a.showSnackbar)({title:f("errorDeletingVisit","Error deleting visit"),kind:"error",subtitle:f("errorOccurredDeletingVisit","An error occurred when deleting visit")})})).finally((function(){g(!1)}))},isDeletingVisit:m}}(p,f,y),g=m.isDeletingVisit,V=m.initiateDeletingVisit;return l().createElement("div",null,l().createElement(o.ModalHeader,{closeModal:y,title:h("deleteVisitDialogHeader","Are you sure you want to delete this visit?")}),l().createElement(o.ModalBody,null,l().createElement("p",{className:v.A.body},h("confirmDeleteVisitText","Deleting this {{visit}} will delete its associated encounters.",{visit:null!==(e=null==p||null===(i=p.visitType)||void 0===i?void 0:i.display)&&void 0!==e?e:h("visit","Visit")}))),l().createElement(o.ModalFooter,null,l().createElement(o.Button,{kind:"secondary",onClick:y},h("cancel","Cancel")),l().createElement(o.Button,{kind:"danger",onClick:V,disabled:g},g?l().createElement(o.InlineLoading,{description:h("deletingVisit","Deleting visit")}):h("deleteVisit","Delete visit"))))}}}]);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"8278.js","mappings":"4YAoDA,QAtC4D,Y,IAkBzCA,EAAAA,EAjBjBC,EAAAA,EAAAA,WACAC,EAAAA,EAAAA,kBAEAF,GADAG,EAAAA,YACAH,EAAAA,aAEM,GAAQI,EAAAA,EAAAA,kBAANC,EAC2CC,ECV9C,SACLN,EACAE,G,IAOoBF,E,IANpBO,EAAAA,UAAAA,OAAAA,QAAAA,IAAAA,UAAAA,GAAAA,UAAAA,GAAgB,WAAO,EACvBC,EAAAA,UAAAA,OAAAA,QAAAA,IAAAA,UAAAA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A,UAASA,KACR,kBAACC,IAAAA,CAAEC,UAAWC,EAAAA,EAAOC,MAClB1C,EAAE,yBAA0B,iEAAkE,CAC7F0B,MAAsC,QAA/B/B,EAAAA,SAAsB,QAAtBA,EAAAA,EAAagC,iBAAbhC,IAAAA,OAAAA,EAAAA,EAAwBiC,eAAxBjC,IAAAA,EAAAA,EAAmCK,EAAE,QAAS,aAI3D,kBAAC2C,EAAAA,YAAWA,KACV,kBAACC,EAAAA,OAAMA,CAACf,KAAK,YAAYgB,QAASjD,GAC/BI,EAAE,SAAU,WAEf,kBAAC4C,EAAAA,OAAMA,CAACf,KAAK,SAASgB,QAASd,EAAuBe,SAAUvC,GAC5DA,EAGA,kBAACwC,EAAAA,cAAaA,CAACC,YAAahD,EAAE,gBAAiB,oBAF/CA,EAAE,cAAe,kBAQ7B,C","sources":["webpack://@openmrs/esm-patient-chart-app/./src/visit/visit-prompt/delete-visit-dialog.modal.tsx","webpack://@openmrs/esm-patient-chart-app/./src/visit/hooks/useDeleteVisit.tsx"],"names":["activeVisit","closeModal","mutateActiveVisit","patientUuid","useTranslation","t","useDeleteVisit","onVisitDelete","onVisitRestore","mutate","useSWRConfig","useState","isDeletingVisit","setIsDeletingVisit","patient","uuid","usePatientChartStore","visitContext","setVisitContext","restoreDeletedVisit","restoreVisit","then","data","updatedVisit","stopDatetime","invalidateVisitByUuid","globalMutate","invalidateVisitAndEncounterData","showSnackbar","title","subtitle","visit","visitType","display","kind","catch","initiateDeletingVisit","deleteVisit","actionButtonLabel","onActionButtonClick","finally","div","ModalHeader","ModalBody","p","className","styles","body","ModalFooter","Button","onClick","disabled","InlineLoading","description"],"sourceRoot":""}
package/dist/8349.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[8349],{88349:e=>{e.exports=JSON.parse('{"actions":"Actions","addingToVisit":"Adding to:","additionalVisitInformationUpdatedSuccessfully":"Additional visit information updated successfully","addVisit":"Add visit","all":"All","allEncounters":"All encounters","AM":"AM","cancel":"Cancel","causeOfDeath":"Cause of death","causeOfDeath_lower":"cause of death concepts configured in the system","causeOfDeathIsRequired":"Please select the cause of death","change":"Change","checkFilters":"Check the filters above","confirm":"Confirm","confirmDeleteVisitText":"Deleting this {{visit}} will delete its associated encounters.","confirmModifyingVisitDateToAccomodateEncounter":"The encounter date falls outside the designated visit date range. Would you like to modify the visit date to accommodate the new encounter date?","continue":"Continue","createNewVisit":"Create new visit...","currentActiveVisit":"Current active visit","currentVisit":"Current visit","date":"Date","dateAndTime":"Date & time","dateOfDeath":"Date of death","deathDateRequired":"Please select the date of death","delete":"Delete","deleteActiveVisit":"Delete active visit","deleteEncounter":"Delete encounter","deleteEncounterConfirmationText":"Are you sure you want to delete this encounter? This action can\'t be undone.","deleteThisEncounter":"Delete this encounter","deleteVisit":"Delete visit","deleteVisitDialogHeader":"Are you sure you want to delete this visit?","deletingVisit":"Deleting visit","diagnoses":"Diagnoses","discard":"Discard","discontinued":"Discontinued","dose":"Dose","dosingInstructions":"Dosing Instructions","editEncounter":"Edit","editThisEncounter":"Edit this encounter","editVisitDetails":"Edit visit details","emptyStateText":"There are no {{displayText}} to display for this patient","enable":"Enable","encounterDeleted":"Encounter deleted","encounters_title":"Encounters","encounterSuccessfullyDeleted":"The encounter has been deleted successfully","encounterTableActionsMenu":"Encounter table actions menu","encounterType":"Encounter type","encounterWithError":"The encounter could not be deleted successfully. If the error persists, please contact your system administrator.","endActiveVisit":"End active visit","endActiveVisitConfirmation":"Are you sure you want to end this active visit?","endDate":"End date","endDate_title":"End date","endDateTimeRequired":"End date and time are required","ended":"Ended","endTime":"End time","endTimeFormat":"End time format","endTimeMustBeAfterMostRecentEncounter":"End time must be on or after {{lastEncounterDatetime}}","endTimeMustBeAfterStartTime":"End time must be after start time","endVisit_title":"End Visit","enterNonCodedCauseOfDeath":"Enter non-coded cause of death","error":"Error","errorCopy":"Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above.","errorCreatingVisitAttribute":"Could not delete {{attributeName}} attribute","errorDeletingVisit":"Error deleting visit","errorDeletingVisitAttribute":"Could not delete {{attributeName}} attribute","errorEndingVisit":"Error ending visit","errorMarkingPatientAlive":"Error marking patient alive","errorMarkingPatientDeceased":"Error marking patient deceased","errorOccurredDeletingVisit":"An error occurred when deleting visit","errorStartingVisit":"Error starting visit","errorStartingVisitDescription":"An error occurred while starting the visit","errorUpdatingVisitAttribute":"Could not update {{attributeName}} attribute","errorUpdatingVisitDetails":"Error updating visit details","errorWhenRestoringVisit":"Error occurred when restoring {{visit}}","failedToLoadCurrentVisit":"Failed loading current visit","fieldRequired":"This field is required","filterByEncounterType":"Filter by encounter type","form":"Form name","fromDateToDate":"{{fromDate}} - {{toDate}}","futureEndTime":"End time cannot be in the future","futureStartTime":"Start time cannot be in the future","indication":"Indication","inThePast":"In the past","loading":"Loading","loadingVisit":"Loading current visit...","markAliveSuccessfully":"Patient marked alive successfully","markDeceasedWarning":"Marking the patient as deceased will end any active visits for this patient","markPatientAlive":"Mark patient alive","markPatientAliveConfirmation":"Are you sure you want to mark this patient alive?","markPatientDeceased":"Mark patient deceased","medications":"Medications","medications__lower":"medications","missingVisitType":"Missing visit type","modifyVisitDate":"Modify visit date","new":"New","nextPage":"Next page","no":"No","noActiveVisit":"No Active Visit","noActiveVisitMessage":"active visit","noActiveVisitNoRDEText":"You can\'t add data to the patient chart without an active visit. Would you like to start a new visit?","noDiagnosesFound":"No diagnoses found","noEncountersToDisplay":"No encounters to display","noMatchingCodedCausesOfDeath":"No matching coded causes of death","nonCodedCauseOfDeath":"Non-coded cause of death","nonCodedCauseOfDeathRequired":"Please enter the non-coded cause of death","noObservationsFound":"No observations found","notes":"Notes","notes__lower":"notes","noVisitsToDisplay":"No visits to display","noVisitTypesToDisplay":"No visit types to display","offlineVisit":"Offline Visit","On scheduled date":"On scheduled date","ongoing":"Ongoing","optional":"optional","orderDurationAndUnit":"for {{duration}} {{durationUnit}}","orderIndefiniteDuration":"Indefinite duration","paginationItemsCount_one":"{{pageItemsCount}} / {{count}} item","paginationItemsCount_other":"{{pageItemsCount}} / {{count}} items","paginationPageText_one":"of {{count}} page","paginationPageText_other":"of {{count}} pages","partOfFormDidntLoad":"Part of the form did not load","pastVisits":"Past visits","Patient Summary":"Patient summary","PM":"PM","previousPage":"Previous page","program":"Program","provider":"Provider","quantity":"Quantity","recommended":"Recommended","record":"Record","refills":"Refills","refreshToTryAgain":"Please refresh to try again","required":"Required","Routine":"Routine","saveAndClose":"Save and close","saving":"Saving","searchForAVisitType":"Search for a visit type","searchForCauseOfDeath":"Search for a cause of death","seeAll":"See all","selectAnOption":"Select an option","selectAVisit":"Select a visit","selectLocation":"Select a location","selectProgramType":"Select program type","selectVisitType":"Please select a visit type","showVisitWithStartDateOnOrPriorTo":"Show visit with start date on or prior to:","startDate":"Start date","startingVisit":"Starting visit","startNewVisit":"Start new visit","startTime":"Start time","startTimeFormat":"Start time format","startVisit":"Start visit","startVisitError":"Error starting visit","startVisitWorkspaceTitle":"Start a visit","Stat":"Stat","tests":"Tests","theVisitIs":"The visit is","time":"Time","timeFormat ":"Time Format","undo":"Undo","unknownError":"Unknown error","updateVisit":"Update visit","updatingVisit":"Updating visit","viewEncounter":"View","visitAttributes":"Visit attributes","visitDeleted":"{{visit}} deleted","visitDeletedSuccessfully":"{{visit}} deleted successfully","visitDetailsUpdated":"Visit details updated","visitDetailsUpdatedSuccessfully":"{{visit}} updated successfully","visitEnded":"Visit ended","visitEndSuccessfully":"Ended current visit successfully","visitLocation":"Visit location","visitLocationRequired":"Visit location is required","visitNotRestored":"Visit couldn\'t be restored","visitRestored":"Visit restored","visitRestoredSuccessfully":"{{visit}} restored successfully","visits":"visits","Visits":"Visits","visitStartAndEndDate":"Visit start and end date","visitStartDate":"Visit start date","visitStartDateMustBeBeforeEarliestEncounter":"Start time must be on or before {{firstEncounterDatetime}}","visitStartDateTimeRequired":"Start date and time are required","visitStarted":"Visit started","visitStartedSuccessfully":"{{visit}} started successfully","visitType":"Visit type","visitType_title":"Visit Type","visitTypeRequired":"Visit type is required","warning":"Warning","yes":"Yes","youCanAddAdditionalEncounters":"You can add additional encounters to this visit in the visit summary."}')}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[8349],{88349:e=>{e.exports=JSON.parse('{"actions":"Actions","addingToVisit":"Adding to:","additionalVisitInformationUpdatedSuccessfully":"Additional visit information updated successfully","addVisit":"Add visit","all":"All","allEncounters":"All encounters","AM":"AM","cancel":"Cancel","causeOfDeath":"Cause of death","causeOfDeath_lower":"cause of death concepts configured in the system","causeOfDeathIsRequired":"Please select the cause of death","change":"Change","checkFilters":"Check the filters above","confirm":"Confirm","confirmDeleteVisitText":"Deleting this {{visit}} will delete its associated encounters.","confirmModifyingVisitDateToAccomodateEncounter":"The encounter date falls outside the designated visit date range. Would you like to modify the visit date to accommodate the new encounter date?","continue":"Continue","createNewVisit":"Create new visit...","currentActiveVisit":"Current active visit","currentVisit":"Current visit","date":"Date","dateAndTime":"Date & time","dateOfDeath":"Date of death","deathDateRequired":"Please select the date of death","delete":"Delete","deleteActiveVisit":"Delete active visit","deleteEncounter":"Delete encounter","deleteEncounterConfirmationText":"Are you sure you want to delete this encounter? This action can\'t be undone.","deleteThisEncounter":"Delete this encounter","deleteVisit":"Delete visit","deleteVisitDialogHeader":"Are you sure you want to delete this visit?","deletingVisit":"Deleting visit","diagnoses":"Diagnoses","discard":"Discard","discontinued":"Discontinued","dose":"Dose","dosingInstructions":"Dosing Instructions","editEncounter":"Edit","editThisEncounter":"Edit this encounter","editVisitDetails":"Edit visit details","emptyStateText":"There are no {{displayText}} to display for this patient","enable":"Enable","encounter":"Encounter","encounterDeleted":"Encounter deleted","encounters_title":"Encounters","encountersForThisVisit":"encounters for this visit","encounterSuccessfullyDeleted":"The encounter has been deleted successfully","encounterTableActionsMenu":"Encounter table actions menu","encounterType":"Encounter type","encounterWithError":"The encounter could not be deleted successfully. If the error persists, please contact your system administrator.","endActiveVisit":"End active visit","endActiveVisitConfirmation":"Are you sure you want to end this active visit?","endDate":"End date","endDate_title":"End date","endDateTimeRequired":"End date and time are required","ended":"Ended","endTime":"End time","endTimeFormat":"End time format","endTimeMustBeAfterMostRecentEncounter":"End time must be on or after {{lastEncounterDatetime}}","endTimeMustBeAfterStartTime":"End time must be after start time","endVisit_title":"End Visit","enterNonCodedCauseOfDeath":"Enter non-coded cause of death","error":"Error","errorCopy":"Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above.","errorCreatingVisitAttribute":"Could not delete {{attributeName}} attribute","errorDeletingVisit":"Error deleting visit","errorDeletingVisitAttribute":"Could not delete {{attributeName}} attribute","errorEndingVisit":"Error ending visit","errorMarkingPatientAlive":"Error marking patient alive","errorMarkingPatientDeceased":"Error marking patient deceased","errorOccurredDeletingVisit":"An error occurred when deleting visit","errorStartingVisit":"Error starting visit","errorStartingVisitDescription":"An error occurred while starting the visit","errorUpdatingVisitAttribute":"Could not update {{attributeName}} attribute","errorUpdatingVisitDetails":"Error updating visit details","errorWhenRestoringVisit":"Error occurred when restoring {{visit}}","failedToLoadCurrentVisit":"Failed loading current visit","fieldRequired":"This field is required","filterByEncounterType":"Filter by encounter type","form":"Form name","fromDateToDate":"{{fromDate}} - {{toDate}}","futureEndTime":"End time cannot be in the future","futureStartTime":"Start time cannot be in the future","indication":"Indication","inThePast":"In the past","loading":"Loading","loadingVisit":"Loading current visit...","markAliveSuccessfully":"Patient marked alive successfully","markDeceasedWarning":"Marking the patient as deceased will end any active visits for this patient","markPatientAlive":"Mark patient alive","markPatientAliveConfirmation":"Are you sure you want to mark this patient alive?","markPatientDeceased":"Mark patient deceased","medications":"Medications","medications__lower":"medications","missingVisitType":"Missing visit type","modifyVisitDate":"Modify visit date","new":"New","nextPage":"Next page","no":"No","noActiveVisit":"No Active Visit","noActiveVisitMessage":"active visit","noActiveVisitNoRDEText":"You can\'t add data to the patient chart without an active visit. Would you like to start a new visit?","noDiagnosesFound":"No diagnoses found","noEncountersToDisplay":"No encounters to display","noMatchingCodedCausesOfDeath":"No matching coded causes of death","nonCodedCauseOfDeath":"Non-coded cause of death","nonCodedCauseOfDeathRequired":"Please enter the non-coded cause of death","noObservationsFound":"No observations found","noProvider":"No provider","notes":"Notes","notes__lower":"notes","noVisitsToDisplay":"No visits to display","noVisitTypesToDisplay":"No visit types to display","offlineVisit":"Offline Visit","On scheduled date":"On scheduled date","ongoing":"Ongoing","optional":"optional","orderDurationAndUnit":"for {{duration}} {{durationUnit}}","orderIndefiniteDuration":"Indefinite duration","paginationItemsCount_one":"{{pageItemsCount}} / {{count}} item","paginationItemsCount_other":"{{pageItemsCount}} / {{count}} items","paginationPageText_one":"of {{count}} page","paginationPageText_other":"of {{count}} pages","partOfFormDidntLoad":"Part of the form did not load","pastVisits":"Past visits","Patient Summary":"Patient summary","PM":"PM","previousPage":"Previous page","program":"Program","provider":"Provider","quantity":"Quantity","recommended":"Recommended","record":"Record","refills":"Refills","refreshToTryAgain":"Please refresh to try again","required":"Required","Routine":"Routine","saveAndClose":"Save and close","saving":"Saving","searchForAVisitType":"Search for a visit type","searchForCauseOfDeath":"Search for a cause of death","seeAll":"See all","selectAnOption":"Select an option","selectAVisit":"Select a visit","selectLocation":"Select a location","selectProgramType":"Select program type","selectVisitType":"Please select a visit type","showVisitWithStartDateOnOrPriorTo":"Show visit with start date on or prior to:","startDate":"Start date","startingVisit":"Starting visit","startNewVisit":"Start new visit","startTime":"Start time","startTimeFormat":"Start time format","startVisit":"Start visit","startVisitError":"Error starting visit","startVisitWorkspaceTitle":"Start a visit","Stat":"Stat","tests":"Tests","theVisitIs":"The visit is","time":"Time","timeCompleted":"Time completed","timeFormat ":"Time Format","timeline":"Timeline","timeStarted":"Time started","undo":"Undo","unknownError":"Unknown error","updateVisit":"Update visit","updatingVisit":"Updating visit","viewEncounter":"View","visitAttributes":"Visit attributes","visitDeleted":"{{visit}} deleted","visitDeletedSuccessfully":"{{visit}} deleted successfully","visitDetailsUpdated":"Visit details updated","visitDetailsUpdatedSuccessfully":"{{visit}} updated successfully","visitEnded":"Visit ended","visitEndSuccessfully":"Ended current visit successfully","visitLocation":"Visit location","visitLocationRequired":"Visit location is required","visitNotRestored":"Visit couldn\'t be restored","visitRestored":"Visit restored","visitRestoredSuccessfully":"{{visit}} restored successfully","visits":"visits","Visits":"Visits","visitStartAndEndDate":"Visit start and end date","visitStartDate":"Visit start date","visitStartDateMustBeBeforeEarliestEncounter":"Start time must be on or before {{firstEncounterDatetime}}","visitStartDateTimeRequired":"Start date and time are required","visitStarted":"Visit started","visitStartedSuccessfully":"{{visit}} started successfully","visitType":"Visit type","visitType_title":"Visit Type","visitTypeRequired":"Visit type is required","warning":"Warning","yes":"Yes","youCanAddAdditionalEncounters":"You can add additional encounters to this visit in the visit summary."}')}}]);