@ampath/esm-dha-workflow-app 4.0.0-next.33 → 4.0.0-next.331

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 (758) hide show
  1. package/README.md +19 -0
  2. package/dist/1149.js +1 -0
  3. package/dist/1149.js.map +1 -0
  4. package/dist/1197.js +1 -0
  5. package/dist/1362.js +1 -0
  6. package/dist/1362.js.map +1 -0
  7. package/dist/1551.js +1 -0
  8. package/dist/1551.js.map +1 -0
  9. package/dist/1925.js +1 -0
  10. package/dist/1925.js.map +1 -0
  11. package/dist/1927.js +1 -0
  12. package/dist/1927.js.map +1 -0
  13. package/dist/203.js +1 -0
  14. package/dist/203.js.map +1 -0
  15. package/dist/2054.js +1 -0
  16. package/dist/2054.js.map +1 -0
  17. package/dist/2093.js +1 -0
  18. package/dist/2093.js.map +1 -0
  19. package/dist/2177.js +2 -0
  20. package/dist/2177.js.map +1 -0
  21. package/dist/2200.js +1 -0
  22. package/dist/2200.js.map +1 -0
  23. package/dist/2230.js +1 -0
  24. package/dist/2230.js.map +1 -0
  25. package/dist/2493.js +1 -0
  26. package/dist/2493.js.map +1 -0
  27. package/dist/262.js +2 -0
  28. package/dist/262.js.map +1 -0
  29. package/dist/2914.js +1 -0
  30. package/dist/2914.js.map +1 -0
  31. package/dist/2936.js +1 -0
  32. package/dist/2936.js.map +1 -0
  33. package/dist/2988.js +1 -0
  34. package/dist/2988.js.map +1 -0
  35. package/dist/3041.js +1 -0
  36. package/dist/3041.js.map +1 -0
  37. package/dist/307.js +1 -0
  38. package/dist/307.js.map +1 -0
  39. package/dist/3099.js +1 -0
  40. package/dist/3184.js +2 -0
  41. package/dist/3184.js.map +1 -0
  42. package/dist/3202.js +1 -0
  43. package/dist/3202.js.map +1 -0
  44. package/dist/3222.js +1 -0
  45. package/dist/3222.js.map +1 -0
  46. package/dist/3406.js +1 -0
  47. package/dist/3406.js.map +1 -0
  48. package/dist/347.js +1 -0
  49. package/dist/347.js.map +1 -0
  50. package/dist/3654.js +1 -0
  51. package/dist/3654.js.map +1 -0
  52. package/dist/4003.js +1 -0
  53. package/dist/4003.js.map +1 -0
  54. package/dist/4008.js +1 -0
  55. package/dist/4008.js.map +1 -0
  56. package/dist/4055.js +1 -0
  57. package/dist/4205.js +1 -0
  58. package/dist/4205.js.map +1 -0
  59. package/dist/4225.js +1 -0
  60. package/dist/4225.js.map +1 -0
  61. package/dist/4231.js +1 -0
  62. package/dist/4231.js.map +1 -0
  63. package/dist/4300.js +1 -0
  64. package/dist/4335.js +1 -0
  65. package/dist/4353.js +1 -0
  66. package/dist/4353.js.map +1 -0
  67. package/dist/4431.js +1 -0
  68. package/dist/4431.js.map +1 -0
  69. package/dist/4454.js +1 -0
  70. package/dist/4454.js.map +1 -0
  71. package/dist/4457.js +2 -0
  72. package/dist/4457.js.LICENSE.txt +282 -0
  73. package/dist/4457.js.map +1 -0
  74. package/dist/446.js +1 -0
  75. package/dist/446.js.map +1 -0
  76. package/dist/4611.js +1 -0
  77. package/dist/4611.js.map +1 -0
  78. package/dist/4652.js +1 -0
  79. package/dist/4674.js +1 -0
  80. package/dist/4674.js.map +1 -0
  81. package/dist/4755.js +1 -0
  82. package/dist/4755.js.map +1 -0
  83. package/dist/4986.js +1 -0
  84. package/dist/4986.js.map +1 -0
  85. package/dist/5097.js +1 -0
  86. package/dist/5097.js.map +1 -0
  87. package/dist/5119.js +1 -0
  88. package/dist/5119.js.map +1 -0
  89. package/dist/5167.js +1 -0
  90. package/dist/5167.js.map +1 -0
  91. package/dist/5380.js +1 -0
  92. package/dist/5380.js.map +1 -0
  93. package/dist/5422.js +1 -0
  94. package/dist/5422.js.map +1 -0
  95. package/dist/5576.js +1 -0
  96. package/dist/5576.js.map +1 -0
  97. package/dist/5851.js +1 -0
  98. package/dist/5851.js.map +1 -0
  99. package/dist/5961.js +1 -0
  100. package/dist/5961.js.map +1 -0
  101. package/dist/6264.js +1 -0
  102. package/dist/6264.js.map +1 -0
  103. package/dist/6540.js +2 -0
  104. package/dist/6540.js.map +1 -0
  105. package/dist/6606.js +1 -0
  106. package/dist/6606.js.map +1 -0
  107. package/dist/6720.js +1 -0
  108. package/dist/6720.js.map +1 -0
  109. package/dist/6824.js +1 -0
  110. package/dist/6824.js.map +1 -0
  111. package/dist/6942.js +1 -0
  112. package/dist/6942.js.map +1 -0
  113. package/dist/71.js +1 -0
  114. package/dist/71.js.map +1 -0
  115. package/dist/7207.js +1 -0
  116. package/dist/7207.js.map +1 -0
  117. package/dist/7240.js +1 -0
  118. package/dist/7240.js.map +1 -0
  119. package/dist/7255.js +1 -0
  120. package/dist/7255.js.map +1 -0
  121. package/dist/7271.js +1 -0
  122. package/dist/7271.js.map +1 -0
  123. package/dist/7420.js +1 -0
  124. package/dist/7420.js.map +1 -0
  125. package/dist/7521.js +1 -0
  126. package/dist/7521.js.map +1 -0
  127. package/dist/7557.js +1 -0
  128. package/dist/7557.js.map +1 -0
  129. package/dist/7717.js +1 -0
  130. package/dist/7717.js.map +1 -0
  131. package/dist/7830.js +2 -0
  132. package/dist/7830.js.map +1 -0
  133. package/dist/7879.js +1 -0
  134. package/dist/7879.js.map +1 -0
  135. package/dist/7941.js +1 -0
  136. package/dist/7941.js.map +1 -0
  137. package/dist/8091.js +1 -0
  138. package/dist/8091.js.map +1 -0
  139. package/dist/810.js +1 -2
  140. package/dist/810.js.map +1 -1
  141. package/dist/8558.js +1 -0
  142. package/dist/8558.js.map +1 -0
  143. package/dist/8733.js +1 -0
  144. package/dist/8733.js.map +1 -0
  145. package/dist/874.js +1 -0
  146. package/dist/874.js.map +1 -0
  147. package/dist/8895.js +1 -0
  148. package/dist/8895.js.map +1 -0
  149. package/dist/9070.js +1 -0
  150. package/dist/9070.js.map +1 -0
  151. package/dist/9091.js +1 -0
  152. package/dist/9091.js.map +1 -0
  153. package/dist/9093.js +1 -0
  154. package/dist/9093.js.map +1 -0
  155. package/dist/9249.js +1 -0
  156. package/dist/9249.js.map +1 -0
  157. package/dist/9338.js +1 -0
  158. package/dist/9338.js.map +1 -0
  159. package/dist/9418.js +2 -0
  160. package/dist/9418.js.LICENSE.txt +1 -0
  161. package/dist/9418.js.map +1 -0
  162. package/dist/9428.js +1 -0
  163. package/dist/9428.js.map +1 -0
  164. package/dist/9721.js +1 -0
  165. package/dist/9721.js.map +1 -0
  166. package/dist/esm-dha-workflow-app.js +1 -1
  167. package/dist/esm-dha-workflow-app.js.buildmanifest.json +1675 -210
  168. package/dist/esm-dha-workflow-app.js.map +1 -1
  169. package/dist/main.js +1 -1
  170. package/dist/main.js.map +1 -1
  171. package/dist/routes.json +1 -1
  172. package/local-config.json +5 -0
  173. package/package.json +16 -6
  174. package/src/admissions/admission-request-list/admission-request-list.scss +0 -0
  175. package/src/admissions/admission-request-list/admission-request-list.tsx +263 -0
  176. package/src/admissions/admissions-dashboard.component.scss +15 -0
  177. package/src/admissions/admissions-dashboard.component.tsx +277 -0
  178. package/src/admissions/admissions.resource.ts +233 -0
  179. package/src/admissions/admitted-list/admitted-patients-list.tsx +206 -0
  180. package/src/admissions/awaiting-discharge-list/awaiting-discharge-list.tsx +197 -0
  181. package/src/admissions/bed-assigment-request/bed-assignment-request-list.tsx +134 -0
  182. package/src/admissions/constants/index.ts +33 -0
  183. package/src/admissions/discharged-list/discharged-list.scss +0 -0
  184. package/src/admissions/discharged-list/discharged-list.tsx +67 -0
  185. package/src/admissions/form-entry-workspace/form-entry-workspace.tsx +62 -0
  186. package/src/admissions/inpatient/admission-history/patient-admission-history.tsx +76 -0
  187. package/src/admissions/inpatient/admission-requests/patient-admission-requests.scss +19 -0
  188. package/src/admissions/inpatient/admission-requests/patient-admission-requests.tsx +72 -0
  189. package/src/admissions/inpatient/inpatient-admissions.component.scss +7 -0
  190. package/src/admissions/inpatient/inpatient-admissions.component.tsx +46 -0
  191. package/src/admissions/modal/add-bill-items/add-bill-items.modal.scss +17 -0
  192. package/src/admissions/modal/add-bill-items/add-bill-items.modal.tsx +233 -0
  193. package/src/admissions/modal/admit-elsewhere/admit-elsewhere.modal.scss +23 -0
  194. package/src/admissions/modal/admit-elsewhere/admit-elsewhere.modal.tsx +156 -0
  195. package/src/admissions/modal/admit-patient/admit-patient.modal.scss +0 -0
  196. package/src/admissions/modal/admit-patient/admit-patient.modal.tsx +111 -0
  197. package/src/admissions/modal/bed-swap/bed-swap.modal.scss +0 -0
  198. package/src/admissions/modal/bed-swap/bed-swap.modal.tsx +102 -0
  199. package/src/admissions/modal/cancel-admission-request/cancel-admission-request.scss +11 -0
  200. package/src/admissions/modal/cancel-admission-request/cancel-admission-request.tsx +105 -0
  201. package/src/admissions/modal/discharge/discharge-patient.modal.scss +13 -0
  202. package/src/admissions/modal/discharge/discharge-patient.modal.tsx +86 -0
  203. package/src/admissions/types/index.ts +263 -0
  204. package/src/appointments/appointments.component.scss +6 -0
  205. package/src/appointments/appointments.component.tsx +8 -1
  206. package/src/billing/api/billing.api.ts +139 -0
  207. package/src/billing/billing-claims.resource.ts +900 -0
  208. package/src/billing/billing-dashboard-link.component.tsx +31 -0
  209. package/src/billing/billing-dashboard-reset.ts +27 -0
  210. package/src/billing/billing-root.tsx +42 -0
  211. package/src/billing/dashboard/billingDashboard.component.scss +0 -0
  212. package/src/billing/dashboard/billingDashboard.component.tsx +25 -0
  213. package/src/billing/dashboard/v2/active-visits/active-visits.component.tsx +257 -0
  214. package/src/billing/dashboard/v2/active-visits/active-visits.resource.ts +85 -0
  215. package/src/billing/dashboard/v2/active-visits/active-visits.scss +15 -0
  216. package/src/billing/dashboard/v2/active-visits.component.tsx +102 -0
  217. package/src/billing/dashboard/v2/admissions/admission-requests-tab.component.tsx +79 -0
  218. package/src/billing/dashboard/v2/billing-claims-dashboard.component.scss +209 -0
  219. package/src/billing/dashboard/v2/billing-claims-dashboard.component.tsx +347 -0
  220. package/src/billing/dashboard/v2/cash-checklist/bill-document.component.scss +90 -0
  221. package/src/billing/dashboard/v2/cash-checklist/bill-document.component.tsx +101 -0
  222. package/src/billing/dashboard/v2/cash-checklist/cash-checklist.component.scss +199 -0
  223. package/src/billing/dashboard/v2/cash-checklist/cash-checklist.component.tsx +361 -0
  224. package/src/billing/dashboard/v2/cash-checklist/cash-checklist.resource.ts +239 -0
  225. package/src/billing/dashboard/v2/cash-checklist/payment-drawer.component.scss +246 -0
  226. package/src/billing/dashboard/v2/cash-checklist/payment-drawer.component.tsx +182 -0
  227. package/src/billing/dashboard/v2/claim-statuses.ts +143 -0
  228. package/src/billing/dashboard/v2/claim-visits/claim-diagnosis-details/claim-diagnosis-details.component.scss +0 -0
  229. package/src/billing/dashboard/v2/claim-visits/claim-diagnosis-details/claim-diagnosis-details.component.tsx +35 -0
  230. package/src/billing/dashboard/v2/claim-visits/claim-diagnosis-details/claim-diagnosis-panel.component.scss +67 -0
  231. package/src/billing/dashboard/v2/claim-visits/claim-diagnosis-details/claim-diagnosis-panel.component.tsx +90 -0
  232. package/src/billing/dashboard/v2/claim-visits/claim-doctors/claim-doctors.scss +28 -0
  233. package/src/billing/dashboard/v2/claim-visits/claim-doctors/claim-doctors.tsx +36 -0
  234. package/src/billing/dashboard/v2/claim-visits/claim-history/claim-history.component.scss +119 -0
  235. package/src/billing/dashboard/v2/claim-visits/claim-history/claim-history.component.tsx +198 -0
  236. package/src/billing/dashboard/v2/claim-visits/claim-intervention-details/claim-intervention-details.component.scss +5 -0
  237. package/src/billing/dashboard/v2/claim-visits/claim-intervention-details/claim-intervention-details.component.tsx +160 -0
  238. package/src/billing/dashboard/v2/claim-visits/claim-intervention-details/claim-intervention-panel.component.scss +105 -0
  239. package/src/billing/dashboard/v2/claim-visits/claim-intervention-details/claim-intervention-panel.component.tsx +184 -0
  240. package/src/billing/dashboard/v2/claim-visits/claim-intervention-details/intervention-attachments.component.scss +161 -0
  241. package/src/billing/dashboard/v2/claim-visits/claim-intervention-details/intervention-attachments.component.tsx +328 -0
  242. package/src/billing/dashboard/v2/claim-visits/claim-invoice-details/claim-invoice-details.component.tsx +96 -0
  243. package/src/billing/dashboard/v2/claim-visits/claim-invoice-details/claim-invoice-document.component.tsx +236 -0
  244. package/src/billing/dashboard/v2/claim-visits/claim-invoice-details/claim-invoice-panel.component.scss +98 -0
  245. package/src/billing/dashboard/v2/claim-visits/claim-invoice-details/claim-invoice-panel.component.tsx +292 -0
  246. package/src/billing/dashboard/v2/claim-visits/claim-invoice-line-details/claim-invoice-line-details.component.scss +133 -0
  247. package/src/billing/dashboard/v2/claim-visits/claim-invoice-line-details/claim-invoice-line-details.component.tsx +217 -0
  248. package/src/billing/dashboard/v2/claim-visits/claim-visit-details/claim-details-by-token.component.tsx +150 -0
  249. package/src/billing/dashboard/v2/claim-visits/claim-visit-details/claim-details-page.component.scss +13 -0
  250. package/src/billing/dashboard/v2/claim-visits/claim-visit-details/claim-details-page.component.tsx +116 -0
  251. package/src/billing/dashboard/v2/claim-visits/claim-visit-details/claim-visit-details.component.scss +338 -0
  252. package/src/billing/dashboard/v2/claim-visits/claim-visit-details/claim-visit-details.component.tsx +616 -0
  253. package/src/billing/dashboard/v2/claim-visits/claim-visits.component.scss +5 -0
  254. package/src/billing/dashboard/v2/claim-visits/claim-visits.component.tsx +133 -0
  255. package/src/billing/dashboard/v2/claim-visits/modal/claim-doctors/add-claim-doctor/add-claim-doctor.modal.scss +5 -0
  256. package/src/billing/dashboard/v2/claim-visits/modal/claim-doctors/add-claim-doctor/add-claim-doctor.modal.tsx +49 -0
  257. package/src/billing/dashboard/v2/claim-visits/modal/claim-visit-details/claim-visit-details.modal.scss +17 -0
  258. package/src/billing/dashboard/v2/claim-visits/modal/claim-visit-details/claim-visit-details.modal.tsx +56 -0
  259. package/src/billing/dashboard/v2/claim-visits/modal/close-claim/close-claim.modal.scss +0 -0
  260. package/src/billing/dashboard/v2/claim-visits/modal/close-claim/close-claim.modal.tsx +129 -0
  261. package/src/billing/dashboard/v2/claim-visits/modal/submit-claim/submit-claim.modal.tsx +204 -0
  262. package/src/billing/dashboard/v2/claim-visits/shared/_empty-state.scss +28 -0
  263. package/src/billing/dashboard/v2/claim-visits/shared/record-cards.component.scss +298 -0
  264. package/src/billing/dashboard/v2/claim-visits/shared/record-cards.component.tsx +252 -0
  265. package/src/billing/dashboard/v2/claim-visits/shared/record-details.workspace.scss +42 -0
  266. package/src/billing/dashboard/v2/claim-visits/shared/record-details.workspace.tsx +54 -0
  267. package/src/billing/dashboard/v2/claim-visits/shared/record-table.component.scss +61 -0
  268. package/src/billing/dashboard/v2/claim-visits/shared/record-table.component.tsx +150 -0
  269. package/src/billing/dashboard/v2/claim-visits/switch-intervention/switch-intervention.resource.ts +51 -0
  270. package/src/billing/dashboard/v2/claim-visits/switch-intervention/switch-intervention.workspace.scss +191 -0
  271. package/src/billing/dashboard/v2/claim-visits/switch-intervention/switch-intervention.workspace.tsx +648 -0
  272. package/src/billing/dashboard/v2/claim-workspace/claim-workspace.component.scss +595 -0
  273. package/src/billing/dashboard/v2/claim-workspace/claim-workspace.component.tsx +810 -0
  274. package/src/billing/dashboard/v2/claim-workspace/claim-workspace.resource.ts +282 -0
  275. package/src/billing/dashboard/v2/claims-accounting/bill-utils.ts +134 -0
  276. package/src/billing/dashboard/v2/claims-accounting/claim-detail.component.tsx +346 -0
  277. package/src/billing/dashboard/v2/claims-accounting/claims-accounting.component.scss +546 -0
  278. package/src/billing/dashboard/v2/claims-accounting/claims-accounting.component.tsx +206 -0
  279. package/src/billing/dashboard/v2/claims-accounting/claims-accounting.resource.ts +337 -0
  280. package/src/billing/dashboard/v2/claims-accounting/invoice-document.component.scss +90 -0
  281. package/src/billing/dashboard/v2/claims-accounting/invoice-document.component.tsx +90 -0
  282. package/src/billing/dashboard/v2/claims-accounting/remittances.component.tsx +169 -0
  283. package/src/billing/dashboard/v2/claims-accounting/remittances.resource.ts +46 -0
  284. package/src/billing/dashboard/v2/claims-accounting/status-meta.ts +25 -0
  285. package/src/billing/dashboard/v2/clearance/cash-patients.scss +18 -0
  286. package/src/billing/dashboard/v2/clearance/cash.component.tsx +149 -0
  287. package/src/billing/dashboard/v2/clearance/clearance.component.scss +84 -0
  288. package/src/billing/dashboard/v2/clearance/clearance.component.tsx +225 -0
  289. package/src/billing/dashboard/v2/clearance/pay-cash.component.tsx +176 -0
  290. package/src/billing/dashboard/v2/clearance/pay-cash.scss +28 -0
  291. package/src/billing/dashboard/v2/clearance/prepaid-services.component.tsx +112 -0
  292. package/src/billing/dashboard/v2/facility-bills/claim-status.ts +249 -0
  293. package/src/billing/dashboard/v2/facility-bills/facility-bills.component.scss +140 -0
  294. package/src/billing/dashboard/v2/facility-bills/facility-bills.component.tsx +687 -0
  295. package/src/billing/dashboard/v2/facility-bills/preauths-datatables/pending-preauths.component.tsx +132 -0
  296. package/src/billing/dashboard/v2/facility-bills/preauths-datatables/preauth-preview-table.component.tsx +267 -0
  297. package/src/billing/dashboard/v2/facility-bills/preauths.component.tsx +124 -0
  298. package/src/billing/dashboard/v2/inpatient-requests/inpatient-requests.component.scss +22 -0
  299. package/src/billing/dashboard/v2/inpatient-requests/inpatient-requests.component.tsx +389 -0
  300. package/src/billing/dashboard/v2/inpatient-requests/modal/start-inpatient-claim/start-inpatient-claim.component.scss +0 -0
  301. package/src/billing/dashboard/v2/inpatient-requests/modal/start-inpatient-claim/start-inpatient-claim.component.tsx +0 -0
  302. package/src/billing/dashboard/v2/new-facility-bills/bills-table.component.tsx +78 -0
  303. package/src/billing/dashboard/v2/new-facility-bills/bills-table.scss +18 -0
  304. package/src/billing/dashboard/v2/new-facility-bills/new-facility-bills.component.tsx +64 -0
  305. package/src/billing/dashboard/v2/new-facility-bills/new-facility-bills.scss +146 -0
  306. package/src/billing/dashboard/v2/patient-bill-details/attachments/add-attachments.component.tsx +223 -0
  307. package/src/billing/dashboard/v2/patient-bill-details/attachments/attachment.component.tsx +157 -0
  308. package/src/billing/dashboard/v2/patient-bill-details/attachments/attachments.scss +92 -0
  309. package/src/billing/dashboard/v2/patient-bill-details/attachments/case-summary/case-summary.scss +295 -0
  310. package/src/billing/dashboard/v2/patient-bill-details/attachments/case-summary/case-summary.tsx +326 -0
  311. package/src/billing/dashboard/v2/patient-bill-details/attachments/dialysis/dialysis-chart.scss +238 -0
  312. package/src/billing/dashboard/v2/patient-bill-details/attachments/dialysis/dialysis-chart.tsx +269 -0
  313. package/src/billing/dashboard/v2/patient-bill-details/attachments/discharge-summary/discharge-summary.scss +96 -0
  314. package/src/billing/dashboard/v2/patient-bill-details/attachments/discharge-summary/discharge-summary.tsx +124 -0
  315. package/src/billing/dashboard/v2/patient-bill-details/attachments/final-bill.component.tsx +152 -0
  316. package/src/billing/dashboard/v2/patient-bill-details/attachments/final-bill.scss +225 -0
  317. package/src/billing/dashboard/v2/patient-bill-details/attachments/general-discharge-summary/general-discharge-summary.scss +182 -0
  318. package/src/billing/dashboard/v2/patient-bill-details/attachments/general-discharge-summary/general-discharge-summary.tsx +173 -0
  319. package/src/billing/dashboard/v2/patient-bill-details/attachments/generate-attachments.component.tsx +360 -0
  320. package/src/billing/dashboard/v2/patient-bill-details/attachments/invoice.component.tsx +151 -0
  321. package/src/billing/dashboard/v2/patient-bill-details/attachments/invoice.scss +225 -0
  322. package/src/billing/dashboard/v2/patient-bill-details/attachments/type.ts +44 -0
  323. package/src/billing/dashboard/v2/patient-bill-details/bill-details/bill-details.scss +107 -0
  324. package/src/billing/dashboard/v2/patient-bill-details/bill-details/bill-details.tsx +508 -0
  325. package/src/billing/dashboard/v2/patient-bill-details/bill-details-page.component.scss +30 -0
  326. package/src/billing/dashboard/v2/patient-bill-details/bill-details-page.component.tsx +94 -0
  327. package/src/billing/dashboard/v2/patient-bill-details/claim-details/claim-details-skeleton.component.scss +89 -0
  328. package/src/billing/dashboard/v2/patient-bill-details/claim-details/claim-details-skeleton.component.tsx +53 -0
  329. package/src/billing/dashboard/v2/patient-bill-details/claim-details/patient-claim-details.component.scss +32 -0
  330. package/src/billing/dashboard/v2/patient-bill-details/claim-details/patient-claim-details.component.tsx +215 -0
  331. package/src/billing/dashboard/v2/patient-bill-details/modals/add-claim-diagnosis/add-claim-diagnosis.modal.scss +0 -0
  332. package/src/billing/dashboard/v2/patient-bill-details/modals/add-claim-diagnosis/add-claim-diagnosis.modal.tsx +99 -0
  333. package/src/billing/dashboard/v2/patient-bill-details/modals/add-claim-line/add-claim-line.modal.tsx +186 -0
  334. package/src/billing/dashboard/v2/patient-bill-details/patient-bill-details.scss +153 -0
  335. package/src/billing/dashboard/v2/patient-bill-details/patient-bill-details.tsx +458 -0
  336. package/src/billing/dashboard/v2/patient-bill-details/payment-mode.ts +124 -0
  337. package/src/billing/dashboard/v2/patient-bill-details/workspaces/add-claim-line/add-claim-line.workspace.scss +27 -0
  338. package/src/billing/dashboard/v2/patient-bill-details/workspaces/add-claim-line/add-claim-line.workspace.tsx +222 -0
  339. package/src/billing/dashboard/v2/patient-bill-details/workspaces/bill-item-payment/bill-item-payment.workspace.scss +27 -0
  340. package/src/billing/dashboard/v2/patient-bill-details/workspaces/bill-item-payment/bill-item-payment.workspace.tsx +109 -0
  341. package/src/billing/dashboard/v2/preauth/preauth-attachments.component.tsx +389 -0
  342. package/src/billing/dashboard/v2/preauth/preauth-list.component.scss +38 -0
  343. package/src/billing/dashboard/v2/preauth/preauth-list.component.tsx +226 -0
  344. package/src/billing/dashboard/v2/preauth/preauth-status-tag.component.tsx +75 -0
  345. package/src/billing/dashboard/v2/preauth/preauth-typed-fields.md +125 -0
  346. package/src/billing/dashboard/v2/preauth/preauth.resource.ts +1067 -0
  347. package/src/billing/dashboard/v2/preauth/preauth.workspace.scss +91 -0
  348. package/src/billing/dashboard/v2/preauth/preauth.workspace.tsx +1802 -0
  349. package/src/billing/dashboard/v2/preauth/preauthorizations-tab.component.tsx +45 -0
  350. package/src/billing/dashboard/v2/sha-claims/sha-claims-table.component.tsx +36 -0
  351. package/src/billing/dashboard/v2/sha-claims/sha-claims.component.tsx +60 -0
  352. package/src/billing/dashboard/v2/sha-claims/sha-claims.scss +8 -0
  353. package/src/billing/dashboard/v2/shared/dash-board-card/dash-board-card.component.scss +17 -0
  354. package/src/billing/dashboard/v2/shared/dash-board-card/dash-board-card.component.tsx +15 -0
  355. package/src/billing/dashboard/v2/shared/empty-state.component.scss +24 -0
  356. package/src/billing/dashboard/v2/shared/empty-state.component.tsx +13 -0
  357. package/src/billing/dashboard/v2/shared/scroll-to-top.component.scss +54 -0
  358. package/src/billing/dashboard/v2/shared/scroll-to-top.component.tsx +54 -0
  359. package/src/billing/dashboard/v2/shared/table-toolbar.component.scss +77 -0
  360. package/src/billing/dashboard/v2/shared/table-toolbar.component.tsx +48 -0
  361. package/src/billing/dashboard/v2/types/index.ts +507 -0
  362. package/src/billing/dashboard/v3/active-visits/active-visits.component.tsx +256 -0
  363. package/src/billing/dashboard/v3/active-visits/active-visits.resource.ts +57 -0
  364. package/src/billing/dashboard/v3/active-visits/active-visits.scss +15 -0
  365. package/src/billing/dashboard/v3/cash-checklist/bill-document.component.scss +90 -0
  366. package/src/billing/dashboard/v3/cash-checklist/bill-document.component.tsx +101 -0
  367. package/src/billing/dashboard/v3/cash-checklist/cash-checklist.component.scss +199 -0
  368. package/src/billing/dashboard/v3/cash-checklist/cash-checklist.component.tsx +361 -0
  369. package/src/billing/dashboard/v3/cash-checklist/cash-checklist.resource.ts +240 -0
  370. package/src/billing/dashboard/v3/cash-checklist/payment-drawer.component.scss +246 -0
  371. package/src/billing/dashboard/v3/cash-checklist/payment-drawer.component.tsx +182 -0
  372. package/src/billing/dashboard/v3/claim-visits/claim-diagnosis-details/claim-diagnosis-details.component.scss +0 -0
  373. package/src/billing/dashboard/v3/claim-visits/claim-diagnosis-details/claim-diagnosis-details.component.tsx +44 -0
  374. package/src/billing/dashboard/v3/claim-visits/claim-doctors/claim-doctors.scss +5 -0
  375. package/src/billing/dashboard/v3/claim-visits/claim-doctors/claim-doctors.tsx +42 -0
  376. package/src/billing/dashboard/v3/claim-visits/claim-documents/claim-documents.scss +10 -0
  377. package/src/billing/dashboard/v3/claim-visits/claim-documents/claim-documents.tsx +25 -0
  378. package/src/billing/dashboard/v3/claim-visits/claim-intervention-details/claim-intervention-details.component.tsx +223 -0
  379. package/src/billing/dashboard/v3/claim-visits/claim-invoice-details/claim-invoice-details.component.scss +6 -0
  380. package/src/billing/dashboard/v3/claim-visits/claim-invoice-details/claim-invoice-details.component.tsx +85 -0
  381. package/src/billing/dashboard/v3/claim-visits/claim-invoice-line-details/claim-invoice-line-details.component.scss +0 -0
  382. package/src/billing/dashboard/v3/claim-visits/claim-invoice-line-details/claim-invoice-line-details.component.tsx +109 -0
  383. package/src/billing/dashboard/v3/claim-visits/claim-visit-details/claim-visit-details.component.scss +104 -0
  384. package/src/billing/dashboard/v3/claim-visits/claim-visit-details/claim-visit-details.component.tsx +336 -0
  385. package/src/billing/dashboard/v3/claim-visits/claim-visits.component.scss +5 -0
  386. package/src/billing/dashboard/v3/claim-visits/claim-visits.component.tsx +139 -0
  387. package/src/billing/dashboard/v3/claim-visits/modal/claim-doctors/add-claim-doctor/add-claim-doctor.modal.scss +5 -0
  388. package/src/billing/dashboard/v3/claim-visits/modal/claim-doctors/add-claim-doctor/add-claim-doctor.modal.tsx +49 -0
  389. package/src/billing/dashboard/v3/claim-visits/modal/claim-invoice-lines/claim-invoice-lines.modal.scss +7 -0
  390. package/src/billing/dashboard/v3/claim-visits/modal/claim-invoice-lines/claim-invoice-lines.modal.tsx +35 -0
  391. package/src/billing/dashboard/v3/claim-visits/modal/claim-visit-details/claim-visit-details.modal.scss +6 -0
  392. package/src/billing/dashboard/v3/claim-visits/modal/claim-visit-details/claim-visit-details.modal.tsx +33 -0
  393. package/src/billing/dashboard/v3/claim-visits/modal/close-claim/close-claim.modal.scss +0 -0
  394. package/src/billing/dashboard/v3/claim-visits/modal/close-claim/close-claim.modal.tsx +129 -0
  395. package/src/billing/dashboard/v3/claim-visits/modal/submit-claim/submit-claim.modal.tsx +204 -0
  396. package/src/billing/dashboard/v3/claim-visits/payer-preview/index.scss +140 -0
  397. package/src/billing/dashboard/v3/claim-visits/payer-preview/payer-preview-tile.component.tsx +55 -0
  398. package/src/billing/dashboard/v3/claim-visits/payer-preview/payer-preview-workspace.component.tsx +157 -0
  399. package/src/billing/dashboard/v3/claim-visits/payer-preview/tables/payer-claim-doctors.component.tsx +54 -0
  400. package/src/billing/dashboard/v3/claim-visits/payer-preview/tables/payer-claim-lines.component.tsx +48 -0
  401. package/src/billing/dashboard/v3/claim-visits/payer-preview/tables/payer-claim-notes.component.tsx +47 -0
  402. package/src/billing/dashboard/v3/claim-visits/payer-preview/tables/payer-diagnoses.component.tsx +44 -0
  403. package/src/billing/dashboard/v3/claim-visits/payer-preview/tables/payer-interventions.component.tsx +44 -0
  404. package/src/billing/dashboard/v3/claim-visits/switch-intervention/switch-intervention.resource.ts +51 -0
  405. package/src/billing/dashboard/v3/claim-visits/switch-intervention/switch-intervention.workspace.scss +191 -0
  406. package/src/billing/dashboard/v3/claim-visits/switch-intervention/switch-intervention.workspace.tsx +648 -0
  407. package/src/billing/dashboard/v3/claim-workspace/claim-workspace.component.scss +595 -0
  408. package/src/billing/dashboard/v3/claim-workspace/claim-workspace.component.tsx +810 -0
  409. package/src/billing/dashboard/v3/claim-workspace/claim-workspace.resource.ts +282 -0
  410. package/src/billing/dashboard/v3/claims-accounting/bill-utils.ts +134 -0
  411. package/src/billing/dashboard/v3/claims-accounting/claim-detail.component.tsx +346 -0
  412. package/src/billing/dashboard/v3/claims-accounting/claims-accounting.component.scss +546 -0
  413. package/src/billing/dashboard/v3/claims-accounting/claims-accounting.component.tsx +206 -0
  414. package/src/billing/dashboard/v3/claims-accounting/claims-accounting.resource.ts +337 -0
  415. package/src/billing/dashboard/v3/claims-accounting/invoice-document.component.scss +90 -0
  416. package/src/billing/dashboard/v3/claims-accounting/invoice-document.component.tsx +90 -0
  417. package/src/billing/dashboard/v3/claims-accounting/remittances.component.tsx +169 -0
  418. package/src/billing/dashboard/v3/claims-accounting/remittances.resource.ts +46 -0
  419. package/src/billing/dashboard/v3/claims-accounting/status-meta.ts +25 -0
  420. package/src/billing/dashboard/v3/clearance/clearance.component.scss +100 -0
  421. package/src/billing/dashboard/v3/clearance/clearance.component.tsx +0 -0
  422. package/src/billing/dashboard/v3/clearance/prepaid-services.component.tsx +112 -0
  423. package/src/billing/dashboard/v3/facility-bills/claim-status.ts +243 -0
  424. package/src/billing/dashboard/v3/facility-bills/facility-bills.component.scss +9 -0
  425. package/src/billing/dashboard/v3/facility-bills/facility-bills.component.tsx +172 -0
  426. package/src/billing/dashboard/v3/facility-bills/preauths-datatables/pending-preauths.component.tsx +132 -0
  427. package/src/billing/dashboard/v3/facility-bills/preauths-datatables/preauth-preview-table.component.tsx +232 -0
  428. package/src/billing/dashboard/v3/facility-bills/preauths.component.tsx +124 -0
  429. package/src/billing/dashboard/v3/patient-bill-details/attachments/add-attachments.component.tsx +223 -0
  430. package/src/billing/dashboard/v3/patient-bill-details/attachments/attachment.component.tsx +157 -0
  431. package/src/billing/dashboard/v3/patient-bill-details/attachments/attachments.scss +92 -0
  432. package/src/billing/dashboard/v3/patient-bill-details/attachments/case-summary/case-summary-helper.ts +58 -0
  433. package/src/billing/dashboard/v3/patient-bill-details/attachments/case-summary/case-summary.scss +295 -0
  434. package/src/billing/dashboard/v3/patient-bill-details/attachments/case-summary/case-summary.tsx +273 -0
  435. package/src/billing/dashboard/v3/patient-bill-details/attachments/dialysis/dialysis-chart.scss +238 -0
  436. package/src/billing/dashboard/v3/patient-bill-details/attachments/dialysis/dialysis-chart.tsx +314 -0
  437. package/src/billing/dashboard/v3/patient-bill-details/attachments/discharge-summary/discharge-summary.scss +96 -0
  438. package/src/billing/dashboard/v3/patient-bill-details/attachments/discharge-summary/discharge-summary.tsx +126 -0
  439. package/src/billing/dashboard/v3/patient-bill-details/attachments/final-bill.component.tsx +75 -0
  440. package/src/billing/dashboard/v3/patient-bill-details/attachments/general-discharge-summary/general-discharge-summary.scss +182 -0
  441. package/src/billing/dashboard/v3/patient-bill-details/attachments/general-discharge-summary/general-discharge-summary.tsx +253 -0
  442. package/src/billing/dashboard/v3/patient-bill-details/attachments/generate-attachments.component.tsx +343 -0
  443. package/src/billing/dashboard/v3/patient-bill-details/attachments/invoice.component.tsx +150 -0
  444. package/src/billing/dashboard/v3/patient-bill-details/attachments/invoice.scss +225 -0
  445. package/src/billing/dashboard/v3/patient-bill-details/attachments/type.ts +259 -0
  446. package/src/billing/dashboard/v3/patient-bill-details/bill-details/bill-details.scss +13 -0
  447. package/src/billing/dashboard/v3/patient-bill-details/bill-details/bill-details.tsx +205 -0
  448. package/src/billing/dashboard/v3/patient-bill-details/claim-details/patient-claim-details.component.scss +0 -0
  449. package/src/billing/dashboard/v3/patient-bill-details/claim-details/patient-claim-details.component.tsx +61 -0
  450. package/src/billing/dashboard/v3/patient-bill-details/modals/add-claim-diagnosis/add-claim-diagnosis.modal.scss +0 -0
  451. package/src/billing/dashboard/v3/patient-bill-details/modals/add-claim-diagnosis/add-claim-diagnosis.modal.tsx +99 -0
  452. package/src/billing/dashboard/v3/patient-bill-details/modals/add-claim-line/add-claim-line.modal.scss +14 -0
  453. package/src/billing/dashboard/v3/patient-bill-details/modals/add-claim-line/add-claim-line.modal.tsx +111 -0
  454. package/src/billing/dashboard/v3/patient-bill-details/modals/bill-item-payment/bill-item-payment.modal.scss +6 -0
  455. package/src/billing/dashboard/v3/patient-bill-details/modals/bill-item-payment/bill-item-payment.modal.tsx +139 -0
  456. package/src/billing/dashboard/v3/patient-bill-details/patient-bill-details.scss +20 -0
  457. package/src/billing/dashboard/v3/patient-bill-details/patient-bill-details.tsx +254 -0
  458. package/src/billing/dashboard/v3/patient-bill-details/visit-diagnosis-details/visit-diagnosis-details.component.scss +0 -0
  459. package/src/billing/dashboard/v3/patient-bill-details/visit-diagnosis-details/visit-diagnosis-details.component.tsx +80 -0
  460. package/src/billing/dashboard/v3/preauth/preauth-attachments.component.tsx +389 -0
  461. package/src/billing/dashboard/v3/preauth/preauth-list.component.scss +34 -0
  462. package/src/billing/dashboard/v3/preauth/preauth-list.component.tsx +281 -0
  463. package/src/billing/dashboard/v3/preauth/preauth-status-tag.component.tsx +75 -0
  464. package/src/billing/dashboard/v3/preauth/preauth-typed-fields.md +125 -0
  465. package/src/billing/dashboard/v3/preauth/preauth.resource.ts +1072 -0
  466. package/src/billing/dashboard/v3/preauth/preauth.workspace.scss +91 -0
  467. package/src/billing/dashboard/v3/preauth/preauth.workspace.tsx +1806 -0
  468. package/src/billing/dashboard/v3/preauth/preauthorizations-tab.component.tsx +45 -0
  469. package/src/billing/dashboard/v3/shared/empty-state.component.scss +25 -0
  470. package/src/billing/dashboard/v3/shared/empty-state.component.tsx +13 -0
  471. package/src/billing/dashboard/v3/shared/table-toolbar.component.scss +64 -0
  472. package/src/billing/dashboard/v3/shared/table-toolbar.component.tsx +48 -0
  473. package/src/billing/dashboard/v3/types/index.ts +381 -0
  474. package/src/billing/extensions/generate-order-bill-button/generate-order-bill-button.extension.tsx +55 -0
  475. package/src/billing/extensions/generate-order-bill-button/generate-order-bill-button.scss +16 -0
  476. package/src/billing/extensions/visit-billing/visit-billing.extension.scss +0 -0
  477. package/src/billing/extensions/visit-billing/visit-billing.extension.tsx +509 -0
  478. package/src/billing/invoice/bill.resource.ts +47 -0
  479. package/src/billing/invoice/invoice-header/header-card/header-card.scss +17 -0
  480. package/src/billing/invoice/invoice-header/header-card/header-card.tsx +21 -0
  481. package/src/billing/invoice/invoice.scss +113 -0
  482. package/src/billing/invoice/invoice.tsx +1441 -0
  483. package/src/billing/invoice/line-items/line-items.scss +0 -0
  484. package/src/billing/invoice/line-items/line-items.tsx +120 -0
  485. package/src/billing/invoice/modal/delete-bill-item/delete-bill-item.modal.scss +23 -0
  486. package/src/billing/invoice/modal/delete-bill-item/delete-bill-item.modal.tsx +114 -0
  487. package/src/billing/invoice/modal/edit-bill-item/edit-bill-item.modal.scss +0 -0
  488. package/src/billing/invoice/modal/edit-bill-item/edit-bill-item.modal.tsx +122 -0
  489. package/src/billing/invoice/payment-details/payment-details.scss +0 -0
  490. package/src/billing/invoice/payment-details/payment-details.tsx +43 -0
  491. package/src/billing/invoice/print-invoice/print-receipt.component.tsx +44 -0
  492. package/src/billing/invoice/print-invoice/print-receipt.scss +14 -0
  493. package/src/billing/maternity-discharge.resource.ts +21 -0
  494. package/src/billing/types/index.ts +354 -0
  495. package/src/billing/utils/index.ts +17 -0
  496. package/src/billing/widgets/billingTotalsRow.component.scss +0 -0
  497. package/src/billing/widgets/billingTotalsRow.component.tsx +712 -0
  498. package/src/billing/workspaces/create-order-bill-form-workspace/create-order-bill-form.resource.ts +130 -0
  499. package/src/billing/workspaces/create-order-bill-form-workspace/create-order-bill-form.scss +58 -0
  500. package/src/billing/workspaces/create-order-bill-form-workspace/create-order-bill-form.workspace.tsx +645 -0
  501. package/src/billing/workspaces/create-order-bill-form-workspace/schema.ts +12 -0
  502. package/src/bookings/bookings.component.scss +7 -0
  503. package/src/bookings/bookings.component.tsx +35 -0
  504. package/src/bookings/daily/daily-bookings.resource.ts +2 -1
  505. package/src/case-summary/case-summary.extension.scss +13 -0
  506. package/src/case-summary/case-summary.extension.tsx +40 -0
  507. package/src/case-summary/case-summary.resource.test.ts +69 -0
  508. package/src/case-summary/case-summary.resource.ts +52 -0
  509. package/src/case-summary/components/case-summary-printable.component.scss +174 -0
  510. package/src/case-summary/components/case-summary-printable.component.tsx +288 -0
  511. package/src/case-summary/components/case-summary-printable.utils.ts +51 -0
  512. package/src/case-summary/types/case-summary.types.ts +152 -0
  513. package/src/claims/claims.component.scss +70 -0
  514. package/src/claims/claims.component.tsx +713 -0
  515. package/src/claims/claims.resource.ts +1274 -0
  516. package/src/claims/index.ts +340 -0
  517. package/src/claims/interventions.resource.ts +131 -0
  518. package/src/claims/utils.ts +64 -0
  519. package/src/config-schema.ts +114 -1
  520. package/src/context/patient-context.tsx +27 -0
  521. package/src/createDashboardLink.tsx +9 -0
  522. package/src/dashboard/charts/chart.component.scss +24 -0
  523. package/src/dashboard/charts/chart.component.tsx +56 -0
  524. package/src/dashboard/dashboard.component.scss +48 -3
  525. package/src/dashboard/dashboard.component.tsx +26 -36
  526. package/src/dashboard/overview/overview.component.scss +40 -59
  527. package/src/dashboard/overview/overview.component.tsx +53 -41
  528. package/src/dashboard-meta/accounting-dashboard.meta.ts +6 -0
  529. package/src/dashboard-meta/admissions-dashboard.meta.ts +6 -0
  530. package/src/dashboard-meta/billing-dashboard.meta.ts +6 -0
  531. package/src/dashboard-meta/bookings-dashboard.meta.ts +6 -0
  532. package/src/dashboard-meta/case-summary.meta.ts +6 -0
  533. package/src/dashboard-meta/consultation-dashboard.meta.ts +6 -0
  534. package/src/dashboard-meta/dha-workflow-dashboard.meta.ts +6 -0
  535. package/src/dashboard-meta/inpatient-admissions.meta.ts +6 -0
  536. package/src/dashboard-meta/maternity-dashboard.meta.ts +6 -0
  537. package/src/dashboard-meta/mch-dashboard.meta.ts +6 -0
  538. package/src/dashboard-meta/pharmacy-dashboard.meta.ts +6 -0
  539. package/src/dashboard-meta/queue-dashboard.meta.ts +6 -0
  540. package/src/dashboard-meta/registers-dashboard.meta.ts +6 -0
  541. package/src/dashboard-meta/registry-dashboard.meta.ts +6 -0
  542. package/src/dashboard-meta/service-queue-admin.meta.ts +6 -0
  543. package/src/dashboard-meta/specialized-clinics-dashboard.meta.ts +6 -0
  544. package/src/dashboard-meta/triage-dashboard.meta.ts +6 -0
  545. package/src/index.ts +177 -6
  546. package/src/mnch/maternity/maternity-queues.component.scss +7 -0
  547. package/src/mnch/maternity/maternity-queues.component.tsx +32 -0
  548. package/src/mnch/maternity/queues/triage/maternity-triage.tsx +15 -0
  549. package/src/mnch/mch/mch-queues.component.scss +10 -0
  550. package/src/mnch/mch/mch-queues.component.tsx +36 -0
  551. package/src/mnch/mch/queues/consultation/mch-consultation.tsx +18 -0
  552. package/src/mnch/mch/queues/triage/mch-triage.tsx +15 -0
  553. package/src/mnch/mnch-root.tsx +17 -0
  554. package/src/mortuary/mortuary.component.tsx +13 -0
  555. package/src/pharmacy/pharmacy.component.scss +16 -0
  556. package/src/pharmacy/pharmacy.component.tsx +11 -6
  557. package/src/registers/registers.component.tsx +8 -0
  558. package/src/registry/drawer/emr-compare.component.scss +263 -0
  559. package/src/registry/drawer/emr-compare.component.tsx +302 -0
  560. package/src/registry/drawer/emr-compare.resource.ts +181 -0
  561. package/src/registry/drawer/emr-create-preview.component.tsx +123 -0
  562. package/src/registry/drawer/otp-verification-step.component.tsx +398 -0
  563. package/src/registry/drawer/pomsf-balance.util.test.ts +177 -0
  564. package/src/registry/drawer/pomsf-balance.util.ts +79 -0
  565. package/src/registry/drawer/verification.resource.ts +60 -0
  566. package/src/registry/drawer/workflow-drawer.component.scss +1242 -0
  567. package/src/registry/drawer/workflow-drawer.component.tsx +1476 -0
  568. package/src/registry/eligibility/eligibility-details/eligibility-details.scss +38 -0
  569. package/src/registry/eligibility/eligibility-details/eligibility-details.tsx +101 -0
  570. package/src/registry/eligibility/eliigibility-tags/eligibility-tags.scss +16 -0
  571. package/src/registry/eligibility/eliigibility-tags/eligibility-tags.tsx +120 -0
  572. package/src/registry/eligibility/modal/eligibility-details.modal.scss +0 -0
  573. package/src/registry/eligibility/modal/eligibility-details.modal.tsx +45 -0
  574. package/src/registry/hie.resource.ts +408 -0
  575. package/src/registry/hie.types.ts +57 -0
  576. package/src/registry/modal/biometrics-verification-modal/biometrics-verification-modal.scss +277 -0
  577. package/src/registry/modal/biometrics-verification-modal/biometrics-verification-modal.tsx +218 -0
  578. package/src/registry/modal/biometrics-verification-modal/type.ts +39 -0
  579. package/src/registry/modal/client-details-modal/client-details-modal.tsx +65 -29
  580. package/src/registry/modal/otp-modal/otp-whitlisting-modal.component.tsx +815 -0
  581. package/src/registry/modal/otp-modal/otp-whitlisting-modal.scss +354 -0
  582. package/src/registry/modal/otp-modal/otp-whitlisting.scss +0 -0
  583. package/src/registry/modal/otp-verification-modal/claims-consent.scss +72 -0
  584. package/src/registry/modal/otp-verification-modal/claims-consent.tsx +135 -0
  585. package/src/registry/modal/otp-verification-modal/extension/claims-consent.extension.tsx +124 -0
  586. package/src/registry/modal/otp-verification-modal/otp-verification-modal.scss +30 -0
  587. package/src/registry/modal/otp-verification-modal/otp-verification-modal.tsx +154 -54
  588. package/src/registry/modal/send-to-triage/payment-details.tsx +120 -0
  589. package/src/registry/modal/send-to-triage/payment-method.component.tsx +54 -0
  590. package/src/registry/modal/send-to-triage/send-to-queue.modal.tsx +980 -0
  591. package/src/registry/modal/send-to-triage/send-to-triage.modal.scss +156 -3
  592. package/src/registry/modal/send-to-triage/send-to-triage.modal.tsx +1101 -131
  593. package/src/registry/modal/start-patient-visit/start-patient-visit.modal.scss +34 -0
  594. package/src/registry/modal/start-patient-visit/start-patient-visit.modal.tsx +231 -0
  595. package/src/registry/payment-details/payment-options/payment-options.scss +13 -0
  596. package/src/registry/payment-details/payment-options/payment-options.tsx +61 -14
  597. package/src/registry/registration-list/registration-list.component.scss +32 -0
  598. package/src/registry/registration-list/registration-list.component.tsx +103 -0
  599. package/src/registry/registry-entry.tsx +11 -0
  600. package/src/registry/registry.component.scss +402 -78
  601. package/src/registry/registry.component.tsx +547 -221
  602. package/src/registry/registry.resource.ts +22 -3
  603. package/src/registry/types/index.ts +117 -8
  604. package/src/registry/utils/error-handler.ts +54 -0
  605. package/src/registry/utils/format-dependant-display-data.ts +1 -1
  606. package/src/registry/utils/hie-client-adapter.ts +6 -3
  607. package/src/registry/utils/mask-data.ts +40 -0
  608. package/src/registry/utils/phone-number-formatter.ts +11 -0
  609. package/src/resources/dashboard.resource.ts +20 -0
  610. package/src/resources/identifier-types.ts +2 -0
  611. package/src/resources/patient-resource.ts +6 -1
  612. package/src/resources/queue.resource.ts +24 -1
  613. package/src/resources/superset.resource.ts +21 -0
  614. package/src/resources/visit.resource.ts +19 -1
  615. package/src/root.component.tsx +8 -5
  616. package/src/routes.json +417 -23
  617. package/src/service-queues/admin/queue/modal/create-queue/create-queue.modal.scss +31 -0
  618. package/src/service-queues/admin/queue/modal/create-queue/create-queue.modal.tsx +153 -0
  619. package/src/service-queues/admin/queue/modal/edit-queue/edit-queue.modal.scss +0 -0
  620. package/src/service-queues/admin/queue/modal/edit-queue/edit-queue.modal.tsx +182 -0
  621. package/src/service-queues/admin/queue/queue-list/queue-list.scss +33 -0
  622. package/src/service-queues/admin/queue/queue-list/queue-list.tsx +113 -0
  623. package/src/service-queues/admin/queue-entry/queue-entry-list.component.scss +6 -0
  624. package/src/service-queues/admin/queue-entry/queue-entry-list.component.tsx +137 -0
  625. package/src/service-queues/admin/queue-room/modal/create-queue-room/create-queue-room.modal.scss +31 -0
  626. package/src/service-queues/admin/queue-room/modal/create-queue-room/create-queue-room.modal.tsx +137 -0
  627. package/src/service-queues/admin/queue-room/modal/edit-queue-room/edit-queue-room.modal.scss +0 -0
  628. package/src/service-queues/admin/queue-room/modal/edit-queue-room/edit-queue-room.modal.tsx +146 -0
  629. package/src/service-queues/admin/queue-room/queue-room-list/queue-room-list.scss +22 -0
  630. package/src/service-queues/admin/queue-room/queue-room-list/queue-room-list.tsx +120 -0
  631. package/src/service-queues/admin/service-queue-admin-dashboard.component.scss +6 -0
  632. package/src/service-queues/admin/service-queue-admin-dashboard.component.tsx +34 -0
  633. package/src/service-queues/consultation/consultation.component.tsx +9 -0
  634. package/src/service-queues/extensions/service-queue-patient-banner/service-queue-patient-banner.scss +30 -0
  635. package/src/service-queues/extensions/service-queue-patient-banner/service-queue-patient-banner.tsx +108 -0
  636. package/src/service-queues/modals/daily-report-patient-list/daily-report-patient-list.scss +26 -0
  637. package/src/service-queues/modals/daily-report-patient-list/daily-report-patient-list.tsx +110 -0
  638. package/src/service-queues/modals/move/move-patient.component.scss +1 -1
  639. package/src/service-queues/modals/move/move-patient.component.tsx +31 -17
  640. package/src/service-queues/queue-list/check-in.service.ts +26 -0
  641. package/src/service-queues/queue-list/queue-list.component.scss +37 -0
  642. package/src/service-queues/queue-list/queue-list.component.tsx +256 -56
  643. package/src/service-queues/service-queue/service-queue.component.tsx +151 -8
  644. package/src/service-queues/service-queue/stats/stat-details/stat-details.component.scss +5 -0
  645. package/src/service-queues/service-queue/stats/stat-details/stat-details.component.tsx +36 -7
  646. package/src/service-queues/service-queue.tsx +22 -16
  647. package/src/service-queues/service-queues.resource.ts +197 -1
  648. package/src/service-queues/service.resource.ts +1 -1
  649. package/src/shared/constants/concepts.ts +50 -0
  650. package/src/shared/constants/patient-category.ts +6 -0
  651. package/src/shared/constants/patient-type.ts +10 -0
  652. package/src/shared/constants/visit-types.ts +7 -0
  653. package/src/shared/services/billing.resource.ts +75 -0
  654. package/src/shared/services/claims.resource.ts +47 -0
  655. package/src/shared/services/client-payment-mode.resource.ts +27 -0
  656. package/src/shared/services/client-payment.resource.ts +17 -0
  657. package/src/shared/services/consultation-clearance.resource.ts +210 -0
  658. package/src/shared/services/eligibility.resource.ts +20 -0
  659. package/src/shared/services/encounters.resource.ts +33 -0
  660. package/src/shared/services/location.resource.ts +9 -0
  661. package/src/shared/types/index.ts +156 -0
  662. package/src/shared/ui/aggregate-stat-card/aggregate-stat-card.scss +42 -0
  663. package/src/shared/ui/aggregate-stat-card/aggregate-stat-card.tsx +42 -0
  664. package/src/shared/ui/confirm-modal/confirm.modal.scss +18 -0
  665. package/src/shared/ui/confirm-modal/confirm.modal.tsx +38 -0
  666. package/src/shared/ui/facility-worker-slot/facility-worker.component-slot.component.scss +39 -0
  667. package/src/shared/ui/facility-worker-slot/facility-worker.component-slot.component.tsx +19 -0
  668. package/src/shared/ui/otp-input/otp-input.component.scss +14 -0
  669. package/src/shared/ui/otp-input/otp-input.component.tsx +97 -0
  670. package/src/{service-queues/service-queue/stats → shared/ui}/stat-card/stat-card.component.tsx +6 -3
  671. package/src/shared/ui/timer/timer.component.scss +5 -0
  672. package/src/shared/ui/timer/timer.component.tsx +40 -0
  673. package/src/shared/utils/get-base-url.ts +10 -0
  674. package/src/shared/utils/get-tag-type.ts +75 -0
  675. package/src/side-nav-menu/mnch-nav-link-config.ts +16 -0
  676. package/src/side-nav-menu/mnch-nav-links.tsx +42 -0
  677. package/src/side-nav-menu/nav-link-config.ts +1 -5
  678. package/src/side-nav-menu/specialized-clinics-nav-link-config.ts +36 -0
  679. package/src/side-nav-menu/specialized-clinics-nav-links.tsx +42 -0
  680. package/src/specialized-clinics/critital-care-unit/critical-care-unit-queues.component.scss +7 -0
  681. package/src/specialized-clinics/critital-care-unit/critical-care-unit-queues.component.tsx +36 -0
  682. package/src/specialized-clinics/critital-care-unit/queues/consultation/critical-care-unit-consultation.tsx +15 -0
  683. package/src/specialized-clinics/critital-care-unit/queues/triage/critical-care-unit-triage.tsx +15 -0
  684. package/src/specialized-clinics/dental/dental-queues.component.scss +7 -0
  685. package/src/specialized-clinics/dental/dental-queues.component.tsx +36 -0
  686. package/src/specialized-clinics/dental/queues/consultation/dental-consultation.tsx +15 -0
  687. package/src/specialized-clinics/dental/queues/triage/dental-triage.tsx +15 -0
  688. package/src/specialized-clinics/diagnostic-and-imaging/diagnostic-and-imaging.component.scss +7 -0
  689. package/src/specialized-clinics/diagnostic-and-imaging/diagnostic-and-imaging.component.tsx +36 -0
  690. package/src/specialized-clinics/diagnostic-and-imaging/queues/consultation/diagnosis-and-imaging-consultation.tsx +15 -0
  691. package/src/specialized-clinics/diagnostic-and-imaging/queues/triage/diagnosis-and-imaging-triage.tsx +15 -0
  692. package/src/specialized-clinics/oncology/oncology-queues.component.scss +7 -0
  693. package/src/specialized-clinics/oncology/oncology-queues.component.tsx +36 -0
  694. package/src/specialized-clinics/oncology/queues/consultation/oncology-consultation.tsx +15 -0
  695. package/src/specialized-clinics/oncology/queues/triage/oncology-triage.tsx +15 -0
  696. package/src/specialized-clinics/ophthalmology/ophthalmology-queues.component.scss +7 -0
  697. package/src/specialized-clinics/ophthalmology/ophthalmology-queues.component.tsx +36 -0
  698. package/src/specialized-clinics/ophthalmology/queues/consultation/ophthalmology-consultation.tsx +15 -0
  699. package/src/specialized-clinics/ophthalmology/queues/triage/ophthalmology-triage.tsx +15 -0
  700. package/src/specialized-clinics/psychiatry/psychiatry-queues.component.scss +7 -0
  701. package/src/specialized-clinics/psychiatry/psychiatry-queues.component.tsx +36 -0
  702. package/src/specialized-clinics/psychiatry/queues/consultation/psychiatry-consultation.tsx +15 -0
  703. package/src/specialized-clinics/psychiatry/queues/triage/psychiatry-triage.tsx +15 -0
  704. package/src/specialized-clinics/renal/queues/consultation/dialysis-consultation.tsx +15 -0
  705. package/src/specialized-clinics/renal/queues/triage/renal-triage.tsx +15 -0
  706. package/src/specialized-clinics/renal/renal-queues.component.scss +7 -0
  707. package/src/specialized-clinics/renal/renal-queues.component.tsx +36 -0
  708. package/src/specialized-clinics/specialized-clinics-root.tsx +27 -0
  709. package/src/triage/triage.component.scss +6 -0
  710. package/src/triage/triage.component.tsx +4 -0
  711. package/src/types/types.ts +56 -1
  712. package/webpack.config.js +54 -1
  713. package/dist/104.js +0 -2
  714. package/dist/104.js.map +0 -1
  715. package/dist/15.js +0 -1
  716. package/dist/15.js.map +0 -1
  717. package/dist/184.js +0 -2
  718. package/dist/184.js.map +0 -1
  719. package/dist/197.js +0 -1
  720. package/dist/255.js +0 -1
  721. package/dist/255.js.map +0 -1
  722. package/dist/300.js +0 -1
  723. package/dist/335.js +0 -1
  724. package/dist/339.js +0 -1
  725. package/dist/339.js.map +0 -1
  726. package/dist/353.js +0 -1
  727. package/dist/353.js.map +0 -1
  728. package/dist/420.js +0 -1
  729. package/dist/420.js.map +0 -1
  730. package/dist/540.js +0 -2
  731. package/dist/540.js.map +0 -1
  732. package/dist/55.js +0 -1
  733. package/dist/652.js +0 -1
  734. package/dist/709.js +0 -1
  735. package/dist/709.js.map +0 -1
  736. package/dist/710.js +0 -2
  737. package/dist/710.js.map +0 -1
  738. package/dist/729.js +0 -1
  739. package/dist/729.js.map +0 -1
  740. package/dist/752.js +0 -1
  741. package/dist/752.js.map +0 -1
  742. package/dist/833.js +0 -1
  743. package/dist/833.js.map +0 -1
  744. package/dist/907.js +0 -1
  745. package/dist/907.js.map +0 -1
  746. package/dist/91.js +0 -1
  747. package/dist/91.js.map +0 -1
  748. package/dist/93.js +0 -1
  749. package/dist/93.js.map +0 -1
  750. package/dist/943.js +0 -1
  751. package/dist/943.js.map +0 -1
  752. package/dist/99.js +0 -1
  753. /package/dist/{104.js.LICENSE.txt → 2177.js.LICENSE.txt} +0 -0
  754. /package/dist/{810.js.LICENSE.txt → 262.js.LICENSE.txt} +0 -0
  755. /package/dist/{184.js.LICENSE.txt → 3184.js.LICENSE.txt} +0 -0
  756. /package/dist/{540.js.LICENSE.txt → 6540.js.LICENSE.txt} +0 -0
  757. /package/dist/{710.js.LICENSE.txt → 7830.js.LICENSE.txt} +0 -0
  758. /package/src/{service-queues/service-queue/stats → shared/ui}/stat-card/stat-card.component.scss +0 -0
package/dist/3202.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_ampath_esm_dha_workflow_app=globalThis.webpackChunk_ampath_esm_dha_workflow_app||[]).push([[3202],{10540:e=>{e.exports=function(e){var n=document.createElement("style");return e.setAttributes(n,e.attributes),e.insert(n,e.options),n}},28318:(e,n,t)=>{t.d(n,{A:()=>l});var r=t(72996),i=t.n(r),o=t(70159),a=t.n(o)()(i());a.push([e.id,".-esm-dha-workflow__claims-component__claimFields___Yb0kh{display:flex;flex-direction:column;gap:1rem}.-esm-dha-workflow__claims-component__preExistingInterventionsHeader___seEV6{display:flex;flex-direction:column;gap:.25rem}.-esm-dha-workflow__claims-component__tableWrapper___xuakj{overflow-x:auto}.-esm-dha-workflow__claims-component__field___eqY8g{position:relative}.-esm-dha-workflow__claims-component__interventionRow___VeK16{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .75rem}.-esm-dha-workflow__claims-component__interventionRow___VeK16 .-esm-dha-workflow__claims-component__field___eqY8g{flex:1 1 100%}.-esm-dha-workflow__claims-component__checkingEligibility___zvDOi{width:auto;min-width:0}.-esm-dha-workflow__claims-component__fieldSpinner___ExsND{position:absolute;inset-inline-end:2.5rem;inset-block-end:.75rem;z-index:1;width:1rem;height:1rem}.-esm-dha-workflow__claims-component__field___eqY8g:has(.-esm-dha-workflow__claims-component__fieldSpinner___ExsND) .cds--text-input,.-esm-dha-workflow__claims-component__field___eqY8g:has(.-esm-dha-workflow__claims-component__fieldSpinner___ExsND) .cds--list-box__field input{padding-inline-end:4.25rem;text-overflow:ellipsis}","",{version:3,sources:["webpack://./src/claims/claims.component.scss"],names:[],mappings:"AACA,0DACE,YAAA,CACA,qBAAA,CACA,QAAA,CAGF,6EACE,YAAA,CACA,qBAAA,CACA,UAAA,CAGF,2DACE,eAAA,CAGF,oDACE,iBAAA,CAKF,8DACE,YAAA,CACA,cAAA,CACA,kBAAA,CACA,gBAAA,CAEA,kHACE,aAAA,CAMJ,kEACE,UAAA,CACA,WAAA,CAYF,2DACE,iBAAA,CACA,uBAAA,CACA,sBAAA,CACA,SAAA,CACA,UAAA,CACA,WAAA,CAQA,qRAEE,0BAAA,CACA,sBAAA",sourcesContent:["// Stack the claim fields with clear spacing between them.\n.claimFields {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n}\n\n.preExistingInterventionsHeader {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n}\n\n.tableWrapper {\n overflow-x: auto;\n}\n\n.field {\n position: relative;\n}\n\n// Interventions field with its eligibility / preauth tags: field on its own row,\n// tags wrapping neatly below with breathing room.\n.interventionRow {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 0.5rem 0.75rem;\n\n .field {\n flex: 1 1 100%;\n }\n}\n\n// Keep the eligibility spinner inline (Carbon defaults it to full width) so it\n// sits on the same row as the Needs Preauth tag.\n.checkingEligibility {\n width: auto;\n min-width: 0;\n}\n\n// A small spinner sitting inside the ComboBox's input row, just left of its chevron.\n//\n// The field is the containing block and the input is the last thing in it, so anchoring\n// to the bottom puts the spinner on the input row whatever the label above does — it\n// stays put if the label wraps to two lines, which it does in a narrow panel. 0.75rem up\n// from that edge centres a 1rem spinner on the 2.5rem row.\n//\n// z-index because the list-box paints its own background and border over anything sharing\n// its space; without it the spinner sits behind the field it is meant to be inside.\n.fieldSpinner {\n position: absolute;\n inset-inline-end: 2.5rem;\n inset-block-end: 0.75rem;\n z-index: 1;\n width: 1rem;\n height: 1rem;\n}\n\n// The spinner floats over the input, so the placeholder underneath has to stop short of\n// it — 2.5rem to clear the chevron, 1rem for the spinner, and a little air. Without this\n// the loading text ran under the spinner and the field read as garbled. Only applied\n// while the spinner is actually there.\n.field:has(.fieldSpinner) {\n :global(.cds--text-input),\n :global(.cds--list-box__field input) {\n padding-inline-end: 4.25rem;\n text-overflow: ellipsis;\n }\n}\n"],sourceRoot:""}]),a.locals={claimFields:"-esm-dha-workflow__claims-component__claimFields___Yb0kh",preExistingInterventionsHeader:"-esm-dha-workflow__claims-component__preExistingInterventionsHeader___seEV6",tableWrapper:"-esm-dha-workflow__claims-component__tableWrapper___xuakj",field:"-esm-dha-workflow__claims-component__field___eqY8g",interventionRow:"-esm-dha-workflow__claims-component__interventionRow___VeK16",checkingEligibility:"-esm-dha-workflow__claims-component__checkingEligibility___zvDOi",fieldSpinner:"-esm-dha-workflow__claims-component__fieldSpinner___ExsND"};const l=a},28599:(e,n,t)=>{t.d(n,{K8:()=>r,YY:()=>o,w1:()=>i});var r=function(e){var n,t,r;return null!==(r=null==e||null===(t=e.attributes)||void 0===t||null===(n=t.find((function(e){var n;return"4962a633-c4f8-474c-857c-5c68c72fbbe3"===(null==e||null===(n=e.attributeType)||void 0===n?void 0:n.uuid)})))||void 0===n?void 0:n.value)&&void 0!==r?r:""},i=function(e){var n,t,r;return null!==(r=null==e||null===(t=e.attributes)||void 0===t||null===(n=t.find((function(e){var n;return"8553afa0-bdb9-4d3c-8a98-05fa9350aa85"===(null==e||null===(n=e.attributeType)||void 0===n?void 0:n.uuid)})))||void 0===n?void 0:n.value)&&void 0!==r?r:""},o=function(e,n){var t,r,i,o=null!==(r=null!==(t=null==e?void 0:e.paymentMechanism)&&void 0!==t?t:null==e?void 0:e.intervention_payment_mechanism)&&void 0!==r?r:"",a=null!==(i=null==e?void 0:e.accessPoint)&&void 0!==i?i:"",l="string"==typeof o?o.toUpperCase():"",u="string"==typeof a?a.toUpperCase():"";return"CAPITATION"===l.trim().toUpperCase()?"CAPITATION":["PER DIEM","PER_DIEM"].includes(l.trim().toUpperCase())||"IP"===u.trim().toUpperCase()?"INPATIENT":"OP"===u.trim().toUpperCase()?"OUTPATIENT":(u.trim().toUpperCase(),n)}},29477:(e,n,t)=>{t.d(n,{gc:()=>c,o4:()=>d,xm:()=>s});var r=t(25987),i=t(23492);function o(e,n,t,r,i,o,a){try{var l=e[o](a),u=l.value}catch(e){return void t(e)}l.done?n(u):Promise.resolve(u).then(r,i)}function a(e){return function(){var n=this,t=arguments;return new Promise((function(r,i){var a=e.apply(n,t);function l(e){o(a,r,i,l,u,"next",e)}function u(e){o(a,r,i,l,u,"throw",e)}l(void 0)}))}}function l(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function u(e,n){var t,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(u){return function(l){if(t)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(o=0)),o;)try{if(t=1,r&&(i=2&l[0]?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==l[0]&&2!==l[0])){o=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){o.label=l[1];break}if(6===l[0]&&o.label<i[1]){o.label=i[1],i=l;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(l);break}i[2]&&o.ops.pop(),o.trys.pop();continue}l=n.call(e,o)}catch(e){l=[6,e],r=0}finally{t=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,u])}}}function s(e,n,t){return a((function(){var o,a,s,c,d;return u(this,(function(u){switch(u.label){case 0:return[4,(0,i.getHieBaseUrl)()];case 1:return o=u.sent().hieBaseUrl,a="".concat(o,"/interventions"),s={locationUuid:t,consentToken:e,interventionCode:n},[4,(0,r.openmrsFetch)(a,{method:"POST",headers:{"Content-Type":"application/json"},body:s}).catch((function(e){var n,t,r=null!==(t=null==e||null===(n=e.responseBody)||void 0===n?void 0:n.message)&&void 0!==t?t:"";if("object"===(void 0===r?"undefined":l(r)))throw"".concat(null==r?void 0:r.join(","));throw r}))];case 2:if((null==(c=u.sent())?void 0:c.data)&&"error"in c.data&&"message"in c.data)throw null!==(d=c.data.message)&&void 0!==d?d:"";return[2,null==c?void 0:c.data]}}))}))()}function c(e,n){return a((function(){var t,o,a,s;return u(this,(function(u){switch(u.label){case 0:return[4,(0,i.getHieBaseUrl)()];case 1:return t=u.sent().hieBaseUrl,o="".concat(t,"/interventions/check-intervention-exists?consentToken=").concat(encodeURIComponent(e),"&interventionCode=").concat(encodeURIComponent(n)),[4,(0,r.openmrsFetch)(o)];case 2:return a=u.sent(),"boolean"==typeof(s=null==a?void 0:a.data)?[2,s]:s&&"object"===(void 0===s?"undefined":l(s))&&"exists"in s?[2,Boolean(s.exists)]:[2,Boolean(s)]}}))}))()}function d(e,n,t,r){return a((function(){var i,o;return u(this,(function(a){switch(a.label){case 0:if(!e||!n||!t)throw"Missing consent token, intervention code, or location.";if(null==r?void 0:r.alreadyOnVisit)return[2,"exists"];a.label=1;case 1:return a.trys.push([1,3,,8]),[4,s(e,n,t)];case 2:return a.sent(),[2,"added"];case 3:if(i=a.sent(),(o=String(null!=i?i:"").toLowerCase()).includes("already")||o.includes("exist")||o.includes("duplicate"))return[2,"exists"];a.label=4;case 4:return a.trys.push([4,6,,7]),[4,c(e,n)];case 5:return a.sent()?[2,"exists"]:[3,7];case 6:return a.sent(),[3,7];case 7:throw i;case 8:return[2]}}))}))()}},41113:e=>{e.exports=function(e,n){if(n.styleSheet)n.styleSheet.cssText=e;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(e))}}},53202:(e,n,t)=>{t.r(n),t.d(n,{default:()=>U});var r=t(50262),i=t(85072),o=t.n(i),a=t(97825),l=t.n(a),u=t(77659),s=t.n(u),c=t(55056),d=t.n(c),p=t(10540),f=t.n(p),m=t(41113),h=t.n(m),v=t(28318),_={};_.styleTagTransform=h(),_.setAttributes=d(),_.insert=s().bind(null,"head"),_.domAPI=l(),_.insertStyleElement=f(),o()(v.A,_);const b=v.A&&v.A.locals?v.A.locals:void 0;var y=t(16072),g=t.n(y),A=t(15344),w=t(29477),E=t(25987),C=t(2076),k=t(29428),x=t(28599),S=t(73837);function P(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function T(e,n,t,r,i,o,a){try{var l=e[o](a),u=l.value}catch(e){return void t(e)}l.done?n(u):Promise.resolve(u).then(r,i)}function I(e){return function(){var n=this,t=arguments;return new Promise((function(r,i){var o=e.apply(n,t);function a(e){T(o,r,i,a,l,"next",e)}function l(e){T(o,r,i,a,l,"throw",e)}a(void 0)}))}}function q(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o=[],a=!0,l=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);a=!0);}catch(e){l=!0,i=e}finally{try{a||null==t.return||t.return()}finally{if(l)throw i}}return o}}(e,n)||N(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e){return function(e){if(Array.isArray(e))return P(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||N(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,n){if(e){if("string"==typeof e)return P(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)?P(e,n):void 0}}function j(e,n){var t,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(u){return function(l){if(t)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(o=0)),o;)try{if(t=1,r&&(i=2&l[0]?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==l[0]&&2!==l[0])){o=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){o.label=l[1];break}if(6===l[0]&&o.label<i[1]){o.label=i[1],i=l;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(l);break}i[2]&&o.ops.pop(),o.trys.pop();continue}l=n.call(e,o)}catch(e){l=[6,e],r=0}finally{t=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,u])}}}const U=function(e){var n,t=e.clientRegistryId,i=e.patientUuid,o=e.visitType,a=e.isNewVisit,l=void 0===a||a,u=e.triggerCreateVisit,s=void 0!==u&&u,c=e.triggerAddIntervention,d=void 0!==c&&c,p=e.otp,f=void 0===p?null:p,m=e.authGuid,h=void 0===m?null:m,v=e.onSelectChange,_=e.onClaimsVisitStart,P=e.onAddIntervention,T=e.onInterventionChange,N=e.onError,U=e.hasPreExistingInterventions,D=(0,E.useVisit)(i).activeVisit,R=q((0,y.useState)(),2),B=R[0],F=R[1],M=q((0,y.useState)(),2),L=M[0],z=M[1],V=q((0,y.useState)(!1),2),H=V[0],Y=V[1],K=q((0,y.useState)(),2),W=K[0],G=K[1],J=(0,y.useRef)(!1),Q=(0,A.zo)(t),X=Q.clientSubBenefits,$=Q.isLoadingClientSubBenefits,Z=(0,A.qX)(t,null==L?void 0:L.code),ee=Z.interventions,ne=Z.isLoadingInterventions,te=(0,A.TJ)(i),re=te.preExistingInterventions,ie=te.isLoadingPreExistingIntervention,oe=(0,E.useSession)().sessionLocation,ae=(0,E.useConfig)().pmfSchemeNames,le=(0,y.useMemo)((function(){var e,n,t;if(D)return null!==(t=null===(n=D.attributes)||void 0===n||null===(e=n.find((function(e){var n;return"4962a633-c4f8-474c-857c-5c68c72fbbe3"===(null==e||null===(n=e.attributeType)||void 0===n?void 0:n.uuid)})))||void 0===e?void 0:e.value)&&void 0!==t?t:""}),[D]),ue=(0,k.pG)(le,null==oe?void 0:oe.uuid).claimVisit,se=(0,C.useTranslation)().t,ce=(0,y.useMemo)((function(){if(!W||!ae)return!1;var e=new Set(ae.map((function(e){return e.trim().toUpperCase()})));return W.some((function(n){var t=n.schemeName.split("-")[0].trim().toUpperCase();return e.has(t)}))}),[W,ae]),de=(0,A.mt)(t,null==B?void 0:B.code,"CAPITATION"===(null==B||null===(n=B.paymentMechanism)||void 0===n?void 0:n.toUpperCase()),ce),pe=de.benefitUtilizations,fe=de.isLoadingBenefitUtilization,me=(0,A.jk)(t,ce),he=me.pomsfBalance,ve=me.isLoadingPomsfBalances,_e=(0,y.useMemo)((function(){var e=0;return!ve&&he&&L&&B&&he.memberPolicies.map((function(n){n.benefit.map((function(n){var t,r=null===(t=n.subBenefit.find((function(e){return e.subBenefitCode===L.code})))||void 0===t?void 0:t.balance;r&&(null==r?void 0:r.length)&&(e=r[0].balance)}))})),e}),[he,ve,L,B]);(0,y.useEffect)((function(){var e,n,r;pe&&Y(null!==(r=null==pe||null===(n=pe[0])||void 0===n||null===(e=n.computationalDetail)||void 0===e?void 0:e.eligibility)&&void 0!==r&&r),t&&oe&&I((function(){var e;return j(this,(function(n){switch(n.label){case 0:return[4,(0,S.E)({requestIdNumber:t,requestIdType:"3",locationUuid:null==oe?void 0:oe.uuid})];case 1:return(e=n.sent())&&G(null==e?void 0:e.schemes),[2]}}))}))()}),[pe,t,oe]),(0,y.useEffect)((function(){s&&I((function(){return j(this,(function(e){switch(e.label){case 0:return[4,ye()];case 1:return e.sent(),[2]}}))}))()}),[s]),(0,y.useEffect)((function(){d&&I((function(){return j(this,(function(e){switch(e.label){case 0:return[4,Ae()];case 1:return e.sent(),[2]}}))}))()}),[d]),(0,y.useEffect)((function(){if(!J.current&&!ie&&(null==re?void 0:re.length)&&(X||ee)){var e=re[0];if(X){var n=X.find((function(n){return n.code===e.sub_benefit_code}));n&&z(n)}if(ee){var t=ee.find((function(n){return n.code===e.intervention_code}));t&&F(t),J.current=!0}}}),[re,ie,X,ee]),(0,y.useEffect)((function(){!ie&&re&&re.length&&U(re)}),[re,ie]);var be=(0,y.useCallback)((function(){if(B){var e,n,r,o,a=Boolean(B.needsPreauth)&&Boolean(B.needsManualPreauthApproval),l=(0,x.K8)(D);a||l?(0,E.launchWorkspace)("preauth-form-workspace",{consentToken:l||"",patientUuid:i,locationUuid:null==oe?void 0:oe.uuid,isElective:a,billItem:{patient_uuid:i,patient_name:"",intervention_code:B.code,billable_service:B.name,item_price:Number(B.overallTariff)||0,item_quantity:1,cr_no:t,requires_preauth:!0,normal_preauth:!a,elective_preauth:a,required_preauth_document_types:(null!==(e=B.requiredPreauthDocumentTypes)&&void 0!==e?e:[]).join(","),applicable_document_types:(null!==(n=B.applicableDocumentTypes)&&void 0!==n?n:[]).join(","),requires_surgical_preauth:B.requiresSurgicalPreauth,requires_renal_preauth:B.requiresRenalPreauth,requires_oncology_preauth:B.requiresOncologyPreauth,requires_radiology_preauth:B.requiresRadiologyPreauth,requires_optical_preauth:B.requiresOpticalPreauth},intervention:{code:B.code,name:B.name,requiresSurgicalPreauth:B.requiresSurgicalPreauth,requiresRenalPreauth:B.requiresRenalPreauth,requiresOncologyPreauth:B.requiresOncologyPreauth,requiresRadiologyPreauth:B.requiresRadiologyPreauth,requiresOpticalPreauth:B.requiresOpticalPreauth,requiredPreauthDocumentTypes:null!==(r=B.requiredPreauthDocumentTypes)&&void 0!==r?r:[],applicableDocumentTypes:null!==(o=B.applicableDocumentTypes)&&void 0!==o?o:[]}}):(0,E.showSnackbar)({kind:"error",title:se("missingConsentToken","No claim token on visit"),subtitle:se("missingConsentTokenDetail","Start a claim visit first, then raise normal preauth from facility bill Claim details.")})}}),[B,D,i,oe,t,se]),ye=function(){return I((function(){var e,n,r,i,a,u,s,c,d,p,m;return j(this,(function(v){switch(v.label){case 0:return v.trys.push([0,5,,6]),l?(e=(0,A.YY)(B,o),n=[],B&&n.push(B.code),re&&re.length&&(i=re.map((function(e){return e.intervention_code})),(r=n).push.apply(r,O(i))),n=Array.from(new Set(n)),[4,(0,A.zE)(B.code,t,e,null==oe?void 0:oe.uuid,{otp:f,auth_guid:h})]):[2];case 1:return a=v.sent(),re&&re.length?(u=a.authorization_code,s=[],re.some((function(e){return e.intervention_code===B.code}))?(c=s).push.apply(c,O(re.map((function(e){return(0,A.uM)(e.id,a.authorization_code)})))):(p=re.filter((function(e){return e.intervention_code!=B.code})),(d=s).push.apply(d,O(p.map((function(e){return(0,A.uM)(e.id,a.authorization_code)}))))),u&&s.push(n.map((function(e){var n;if(!(null==a||null===(n=a.interventions)||void 0===n?void 0:n.some((function(n){return(null==n?void 0:n.intervention_code)===e}))))return(0,w.xm)(u,e,null==oe?void 0:oe.uuid)}))),[4,Promise.all(s)]):[3,3];case 2:return v.sent(),re.some((function(e){return e.intervention_code===B.code}))?_(a,null,null,!0):_(a,B,L,!1),[3,4];case 3:_(a,B,L,!1),v.label=4;case 4:return(0,E.showSnackbar)({title:se("startClaimVisitSuccess","Claim visit started successfully"),subtitle:se("createdClaimVisitSuccess","Claim visit has been created successfully"),kind:"success"}),[3,6];case 5:return m=v.sent(),N(m),(0,E.showSnackbar)({title:se("startingVisitError","Error starting visit"),subtitle:"Error: ".concat(m),kind:"error"}),[3,6];case 6:return[2]}}))}))()},ge=function(e){if(e){if("intervention_code"in e){var n,t,r,i,o,a,l=e;return{id:Number(l.id)||0,accessPoint:null!==(n=l.access_point)&&void 0!==n?n:"",name:l.intervention_name,code:l.intervention_code,paymentMechanism:l.intervention_payment_mechanism,needsPreauth:!!l.needs_preauth,needsManualPreauthApproval:!!l.needs_manual_preauth,overallTariff:null!==(t=l.accrued_per_diem_amount)&&void 0!==t?t:"",kephLevelTarriff:null!==(r=l.keph_level_tarrif)&&void 0!==r?r:"",fund:null!==(i=l.intervention_fund)&&void 0!==i?i:"",fallBackOverallTariff:"",tariffPerAdditionalKilometer:"",level2Tariff:"",level3Tariff:"",level4Tariff:"",level5Tariff:"",level6Tariff:"",requiresSurgicalPreauth:!!l.requires_surgical_preauth,requiresRenalPreauth:!!l.requires_renal_preauth,requiresOncologyPreauth:!!l.requires_oncology_preauth,requiresRadiologyPreauth:!!l.requires_radiology_preauth,requiresOpticalPreauth:!!l.requires_optical_preauth,applicableSchemes:l.supported_scheme?[l.supported_scheme]:[],requiredPreauthDocumentTypes:null!==(o=l.required_preauth_document_types)&&void 0!==o?o:[],applicableDocumentTypes:null!==(a=l.applicable_document_types)&&void 0!==a?a:[]}}var u,s,c,d,p,f,m=e;return{id:String(null!==(u=m.id)&&void 0!==u?u:""),intervention_code:m.code,intervention_name:m.name,intervention_payment_mechanism:m.paymentMechanism,keph_level_tarrif:null!==(s=m.kephLevelTarriff)&&void 0!==s?s:"",accrued_per_diem_amount:null!==(c=m.overallTariff)&&void 0!==c?c:"",accrued_per_diem_days:0,workflow_state:"",preauth_exist:!1,is_switched_intervention:!1,supported_scheme:m.applicableSchemes&&m.applicableSchemes[0]||"",switched_lines_retained:!1,sub_benefit_code:"",active_for_uhc:!1,intervention_fund:null!==(d=m.fund)&&void 0!==d?d:"",requires_surgical_preauth:!!m.requiresSurgicalPreauth,requires_renal_preauth:!!m.requiresRenalPreauth,requires_oncology_preauth:!!m.requiresOncologyPreauth,requires_radiology_preauth:!!m.requiresRadiologyPreauth,requires_optical_preauth:!!m.requiresOpticalPreauth,optional_document_type:null,required_preauth_document_types:null!==(p=m.requiredPreauthDocumentTypes)&&void 0!==p?p:null,optional_preauth_document_types:null,applicable_document_types:null!==(f=m.applicableDocumentTypes)&&void 0!==f?f:[],needs_preauth:!!m.needsPreauth,needs_manual_preauth:!!m.needsManualPreauthApproval}}},Ae=function(){return I((function(){var e,n,t,r,i;return j(this,(function(o){switch(o.label){case 0:return o.trys.push([0,5,,6]),l?[2]:(n=(0,x.K8)(D))?[4,(0,w.gc)(n,B.code)]:(P(ge(B),L),[2]);case 1:return t=o.sent(),r=null==ue||null===(e=ue.interventions)||void 0===e?void 0:e.some((function(e){return(null==e?void 0:e.intervention_code)===B.code})),t||r?(P(ge(B),L),[3,4]):[3,2];case 2:return[4,(0,w.xm)(n,B.code,null==oe?void 0:oe.uuid)];case 3:o.sent(),P(ge(B),L),o.label=4;case 4:return(0,E.showSnackbar)({title:se("addInterventionSuccess","Intervention added successfully"),subtitle:se("createdInterventionSuccess","Intervention created successfully"),kind:"success"}),[3,6];case 5:return i=o.sent(),N(i),(0,E.showSnackbar)({title:se("addInterventionError","Error adding intervention"),subtitle:"Error: ".concat(i),kind:"error"}),[3,6];case 6:return[2]}}))}))()},we=function(e,n){return function(t){!e||t.ctrlKey||t.metaKey||t.altKey||("Backspace"===t.key||"Delete"===t.key?(t.preventDefault(),t.stopPropagation(),n()):1===t.key.length&&(t.preventDefault(),t.stopPropagation()))}};return g().createElement(g().Fragment,null,ie?g().createElement(r.OuH,{className:b.checkingEligibility,description:"Loading existing interventions"}):re&&re.length?g().createElement("div",{className:b.claimFields},g().createElement("div",{className:b.preExistingInterventionsHeader},g().createElement("h6",null,se("preExistingInterventionsHeading","Existing interventions"))),g().createElement("div",{className:b.tableWrapper},g().createElement(r.XIK,{size:"sm"},g().createElement(r.ndF,null,g().createElement(r.Hjg,null,g().createElement(r.A0N,null,se("orderNumber","Order #")),g().createElement(r.A0N,null,se("subBenefit","Sub-benefit")),g().createElement(r.A0N,null,se("interventionCode","Intervention")),g().createElement(r.A0N,null,se("preauthRequired","Preauth")),g().createElement(r.A0N,null,se("createdAt","Created")))),g().createElement(r.BFY,null,re.map((function(e){return g().createElement(r.Hjg,{key:e.id},g().createElement(r.nA6,null,e.order_no||"-"),g().createElement(r.nA6,null,e.sub_benefit_code||"-"),g().createElement(r.nA6,null,e.intervention_code||"-"),g().createElement(r.nA6,null,function(e){return e.normal_preauth?se("normalPreauth","Normal"):e.elective_preauth?se("electivePreauth","Elective"):se("noPreauth","None")}(e)),g().createElement(r.nA6,null,(n=e.createdAt)?new Date(n).toLocaleDateString():"-"));var n})))))):g().createElement(g().Fragment,null),g().createElement("div",{className:b.claimFields},g().createElement("div",{className:b.field,onKeyDownCapture:we(L,(function(){z(void 0),F(void 0),null==T||T(void 0),v("client-sub-benefits","")}))},g().createElement(r.a32,{id:"client-sub-benefits",autoAlign:!0,titleText:"Client sub benefits",placeholder:$?"Loading…":"Search sub-benefit",disabled:$,items:null!=X?X:[],itemToString:function(e){return e?"".concat(e.name," (").concat(e.code,")"):""},shouldFilterItem:function(e){var n,t,r=e.item,i=e.inputValue,o=L?"".concat(L.name," (").concat(L.code,")"):"";return!i||i===o||"".concat(null!==(n=null==r?void 0:r.name)&&void 0!==n?n:""," ").concat(null!==(t=null==r?void 0:r.code)&&void 0!==t?t:"").toLowerCase().includes(i.toLowerCase())},selectedItem:null!=L?L:null,onChange:function(e){var n,t=e.selectedItem;return z(null!=t?t:void 0),F(void 0),null==T||T(void 0),v("client-sub-benefits",null!==(n=null==t?void 0:t.code)&&void 0!==n?n:"")}}),$?g().createElement(r.Rhj,{small:!0,withOverlay:!1,className:b.fieldSpinner,description:"Loading sub-benefits"}):null),g().createElement("div",{className:b.interventionRow},g().createElement("div",{className:b.field,onKeyDownCapture:we(B,(function(){F(void 0),null==T||T(void 0),v("interventions","")}))},g().createElement(r.a32,{id:"interventions",autoAlign:!0,titleText:"Interventions",placeholder:L?ne?"Loading…":"Search intervention":"Select a sub-benefit first",disabled:!L||ne,items:null!=ee?ee:[],itemToString:function(e){return e?"".concat(e.name," (").concat(e.code,")"):""},shouldFilterItem:function(e){var n,t,r=e.item,i=e.inputValue,o=B?"".concat(B.name," (").concat(B.code,")"):"";return!i||i===o||"".concat(null!==(n=null==r?void 0:r.name)&&void 0!==n?n:""," ").concat(null!==(t=null==r?void 0:r.code)&&void 0!==t?t:"").toLowerCase().includes(i.toLowerCase())},selectedItem:null!=B?B:null,onChange:function(e){var n,t=e.selectedItem;return F(null!=t?t:void 0),null==T||T(null!=t?t:void 0),v("interventions",null!==(n=null==t?void 0:t.code)&&void 0!==n?n:"")}}),ne?g().createElement(r.Rhj,{small:!0,withOverlay:!1,className:b.fieldSpinner,description:"Loading interventions"}):null),ce?g().createElement(g().Fragment,null):fe?g().createElement(r.OuH,{className:b.checkingEligibility,description:"Checking eligibility"}):(null==pe?void 0:pe.length)?H?g().createElement(r.vwO,{size:"sm",type:"green"},"Eligible"):g().createElement(r.vwO,{size:"sm",type:"red"},"Not Eligible"):g().createElement(g().Fragment,null),ce?ve?g().createElement(r.OuH,{className:b.checkingEligibility,description:"Loading POMSF balance"}):_e?g().createElement(r.vwO,{size:"sm",type:"green"},_e):g().createElement(g().Fragment,null):g().createElement(g().Fragment,null),B?g().createElement(g().Fragment,null,B.needsPreauth&&!B.needsManualPreauthApproval?g().createElement(r.vwO,{size:"sm",type:"blue",onClick:be},"Needs Preauth"):B.needsPreauth&&B.needsManualPreauthApproval?g().createElement(r.vwO,{size:"sm",type:"blue",onClick:be},"Needs Elective Preauth"):g().createElement(g().Fragment,null),g().createElement(r.vwO,{size:"sm",type:"teal"},B.accessPoint)):g().createElement(g().Fragment,null))))}},55056:(e,n,t)=>{e.exports=function(e){var n=t.nc;n&&e.setAttribute("nonce",n)}},70159:e=>{e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var t=e(n);return n[2]?"@media ".concat(n[2]," {").concat(t,"}"):t})).join("")},n.i=function(e,t,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var l=0;l<e.length;l++){var u=[].concat(e[l]);r&&i[u[0]]||(t&&(u[2]?u[2]="".concat(t," and ").concat(u[2]):u[2]=t),n.push(u))}},n}},72996:e=>{function n(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}e.exports=function(e){var t,r,i=(r=4,function(e){if(Array.isArray(e))return e}(t=e)||function(e,n){var t=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=t){var r,i,o=[],a=!0,l=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);a=!0);}catch(e){l=!0,i=e}finally{try{a||null==t.return||t.return()}finally{if(l)throw i}}return o}}(t,r)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(t,r)||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.")}()),o=i[1],a=i[3];if(!a)return o;if("function"==typeof btoa){var l=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l),s="/*# ".concat(u," */"),c=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[o].concat(c).concat([s]).join("\n")}return[o].join("\n")}},73837:(e,n,t)=>{t.d(n,{E:()=>a});var r=t(25987),i=t(62801);function o(e,n,t,r,i,o,a){try{var l=e[o](a),u=l.value}catch(e){return void t(e)}l.done?n(u):Promise.resolve(u).then(r,i)}function a(e){return(n=function(){var n,t;return function(e,n){var t,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(u){return function(l){if(t)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(o=0)),o;)try{if(t=1,r&&(i=2&l[0]?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==l[0]&&2!==l[0])){o=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){o.label=l[1];break}if(6===l[0]&&o.label<i[1]){o.label=i[1],i=l;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(l);break}i[2]&&o.ops.pop(),o.trys.pop();continue}l=n.call(e,o)}catch(e){l=[6,e],r=0}finally{t=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,u])}}}(this,(function(o){switch(o.label){case 0:return[4,(0,i.bo)()];case 1:return n=o.sent(),t="".concat(n,"/eligibility"),[4,(0,r.openmrsFetch)(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})];case 2:return[2,o.sent().json()]}}))},function(){var e=this,t=arguments;return new Promise((function(r,i){var a=n.apply(e,t);function l(e){o(a,r,i,l,u,"next",e)}function u(e){o(a,r,i,l,u,"throw",e)}l(void 0)}))})();var n}},77659:e=>{var n={};e.exports=function(e,t){var r=function(e){if(void 0===n[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}n[e]=t}return n[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(t)}},85072:e=>{var n=[];function t(e){for(var t=-1,r=0;r<n.length;r++)if(n[r].identifier===e){t=r;break}return t}function r(e,r){for(var o={},a=[],l=0;l<e.length;l++){var u=e[l],s=r.base?u[0]+r.base:u[0],c=o[s]||0,d="".concat(s," ").concat(c);o[s]=c+1;var p=t(d),f={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==p)n[p].references++,n[p].updater(f);else{var m=i(f,r);r.byIndex=l,n.splice(l,0,{identifier:d,updater:m,references:1})}a.push(d)}return a}function i(e,n){var t=n.domAPI(n);return t.update(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap&&n.supports===e.supports&&n.layer===e.layer)return;t.update(e=n)}else t.remove()}}e.exports=function(e,i){var o=r(e=e||[],i=i||{});return function(e){e=e||[];for(var a=0;a<o.length;a++){var l=t(o[a]);n[l].references--}for(var u=r(e,i),s=0;s<o.length;s++){var c=t(o[s]);0===n[c].references&&(n[c].updater(),n.splice(c,1))}o=u}}},97825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var n=e.insertStyleElement(e);return{update:function(t){!function(e,n,t){var r="";t.supports&&(r+="@supports (".concat(t.supports,") {")),t.media&&(r+="@media ".concat(t.media," {"));var i=void 0!==t.layer;i&&(r+="@layer".concat(t.layer.length>0?" ".concat(t.layer):""," {")),r+=t.css,i&&(r+="}"),t.media&&(r+="}"),t.supports&&(r+="}");var o=t.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),n.styleTagTransform(r,e,n.options)}(n,e,t)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)}}}}}]);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"3202.js","mappings":"mJASAA,EAAOC,QANP,SAA4BC,GAC1B,IAAIC,EAAUC,SAASC,cAAc,SAGrC,OAFAH,EAAQI,cAAcH,EAASD,EAAQK,YACvCL,EAAQM,OAAOL,EAASD,EAAQA,SACzBC,CACT,C,sECLIM,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACV,EAAOW,GAAI,grCAAirC,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,gDAAgD,MAAQ,GAAG,SAAW,wSAAwS,eAAiB,CAAC,0/DAA0/D,WAAa,MAE5nHF,EAAwBG,OAAS,CAChC,YAAe,2DACf,+BAAkC,8EAClC,aAAgB,4DAChB,MAAS,qDACT,gBAAmB,+DACnB,oBAAuB,mEACvB,aAAgB,6DAEjB,S,sDCbO,IAAMC,EAAkB,SAACC,G,IAE5BA,EAAAA,EAAAA,EAEF,OAFoH,QAAlHA,EAAAA,SAAuB,QAAvBA,EAAAA,EAAaP,kBAAbO,IAAAA,G,QAAAA,EAAAA,EAAyBC,MAAK,SAACC,G,IAAQA,E,MAA6B,0CAA7BA,SAAkB,QAAlBA,EAAAA,EAAKC,qBAALD,IAAAA,OAAAA,EAAAA,EAAoBE,K,WAA3DJ,IAAAA,OAAAA,EAAAA,EAA6GK,aAA7GL,IAAAA,EAAAA,EACA,EAEJ,EAEaM,EAAiB,SAACN,G,IAE3BA,EAAAA,EAAAA,EAEF,OAFoH,QAA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AAY2B,GAAQb,aACtBd,EAAY2B,GAAQZ,UACpBf,EAAYkB,OAAOS,EAAQ,GAE/B,CACAJ,EAAkBG,CACpB,CACF,C,YCvBAvY,EAAOC,QAjBP,SAAgBC,GACd,GAAwB,oBAAbE,SACT,MAAO,CACL6X,OAAQ,WAAmB,EAC3BE,OAAQ,WAAmB,GAG/B,IAAIpU,EAAe7D,EAAQsE,mBAAmBtE,GAC9C,MAAO,CACL+X,OAAQ,SAAgBX,IAjD5B,SAAevT,EAAc7D,EAASoX,GACpC,IAAIxT,EAAM,GACNwT,EAAIG,WACN3T,GAAO,cAAcoP,OAAOoE,EAAIG,SAAU,QAExCH,EAAIC,QACNzT,GAAO,UAAUoP,OAAOoE,EAAIC,MAAO,OAErC,IAAIkB,OAAiC,IAAdnB,EAAII,MACvBe,IACF3U,GAAO,SAASoP,OAAOoE,EAAII,MAAM5O,OAAS,EAAI,IAAIoK,OAAOoE,EAAII,OAAS,GAAI,OAE5E5T,GAAOwT,EAAIxT,IACP2U,IACF3U,GAAO,KAELwT,EAAIC,QACNzT,GAAO,KAELwT,EAAIG,WACN3T,GAAO,KAET,IAAI0T,EAAYF,EAAIE,UAChBA,GAA6B,oBAATlC,OACtBxR,GAAO,uDAAuDoP,OAAOoC,KAAKE,SAASnS,mBAAmBoS,KAAKC,UAAU8B,MAAe,QAKtItX,EAAQoE,kBAAkBR,EAAKC,EAAc7D,EAAQA,QACvD,CAoBMwY,CAAM3U,EAAc7D,EAASoX,EAC/B,EACAa,OAAQ,YArBZ,SAA4BpU,GAE1B,GAAgC,OAA5BA,EAAa4U,WACf,OAAO,EAET5U,EAAa4U,WAAWxU,YAAYJ,EACtC,CAgBM6U,CAAmB7U,EACrB,EAEJ,C","sources":["webpack://@ampath/esm-dha-workflow-app/./node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://@ampath/esm-dha-workflow-app/./src/claims/claims.component.scss","webpack://@ampath/esm-dha-workflow-app/./src/shared/services/claims.resource.ts","webpack://@ampath/esm-dha-workflow-app/./src/claims/interventions.resource.ts","webpack://@ampath/esm-dha-workflow-app/./node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack://@ampath/esm-dha-workflow-app/./src/claims/claims.component.scss?cc05","webpack://@ampath/esm-dha-workflow-app/./src/claims/claims.component.tsx","webpack://@ampath/esm-dha-workflow-app/./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://@ampath/esm-dha-workflow-app/./node_modules/@openmrs/webpack-config/node_modules/css-loader/dist/runtime/api.js","webpack://@ampath/esm-dha-workflow-app/./node_modules/@openmrs/webpack-config/node_modules/css-loader/dist/runtime/cssWithMappingToString.js","webpack://@ampath/esm-dha-workflow-app/./src/shared/services/eligibility.resource.ts","webpack://@ampath/esm-dha-workflow-app/./node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://@ampath/esm-dha-workflow-app/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://@ampath/esm-dha-workflow-app/./node_modules/style-loader/dist/runtime/styleDomAPI.js"],"names":["module","exports","options","element","document","createElement","setAttributes","attributes","insert","___CSS_LOADER_EXPORT___","push","id","locals","getConsentToken","activeVisit","find","atr","attributeType","uuid","value","getPaymentMode","getServiceType","selectedIntervention","visitType","rawPm","paymentMechanism","intervention_payment_mechanism","rawAp","accessPoint","toUpperCase","trim","includes","addIntervention","consentToken","interventionCode","locationUuid","hieBaseUrl","url","payload","result","getHieBaseUrl","openmrsFetch","method","headers","body","catch","error","message","responseBody","join","data","checkInterventionExists","response","encodeURIComponent","Boolean","exists","ensureInterventionOnVisit","err","msg","alreadyOnVisit","String","toLowerCase","css","styleElement","styleSheet","cssText","firstChild","removeChild","appendChild","createTextNode","styleTagTransform","domAPI","insertStyleElement","undefined","clientRegistryId","patientUuid","isNewVisit","triggerCreateVisit","triggerAddIntervention","otp","authGuid","onSelectChange","onClaimsVisitStart","onAddIntervention","onInterventionChange","onError","hasPreExistingInterventions","useVisit","useState","setSelectedIntervention","selectedSubBenefitCode","setSelectedSubBenefitCode","isBenefitEligible","setIsBenefitEligible","schemes","setSchemes","didAutoPreselect","useRef","useClientSubBenefits","clientSubBenefits","isLoadingClientSubBenefits","useInterventions","code","interventions","isLoadingInterventions","usePreExistingIntervention","preExistingInterventions","isLoadingPreExistingIntervention","useSession","sessionLocation","useConfig","pmfSchemeNames","loadedConsentToken","useMemo","claimVisit","useProviderClaimPreview","useTranslation","t","isPmsf","pmfSet","Set","map","name","some","baseName","schemeName","split","has","useBenefitUtilizations","benefitUtilizations","isLoadingBenefitUtilization","usePomsfBalance","pomsfBalance","isLoadingPomsfBalances","pmfBalance","pBalance","memberPolicies","memberPolicy","benefit","balance","subBenefit","subBenefitCode","length","useEffect","computationalDetail","eligibility","getClientEligibityStatus","requestIdNumber","requestIdType","handleStartVisit","handleAddIntervention","current","preExistingIntervention","preSelected","v","sub_benefit_code","intervention_code","launchPreauthsModal","useCallback","elective","needsPreauth","needsManualPreauthApproval","token","getVisitConsentToken","launchWorkspace","isElective","billItem","patient_uuid","patient_name","billable_service","item_price","Number","overallTariff","item_quantity","cr_no","requires_preauth","normal_preauth","elective_preauth","required_preauth_document_types","requiredPreauthDocumentTypes","applicable_document_types","applicableDocumentTypes","requires_surgical_preauth","requiresSurgicalPreauth","requires_renal_preauth","requiresRenalPreauth","requires_oncology_preauth","requiresOncologyPreauth","requires_radiology_preauth","requiresRadiologyPreauth","requires_optical_preauth","requiresOpticalPreauth","intervention","showSnackbar","kind","title","subtitle","serviceType","interventionCodes","preExistingCodes","promises","filteredPreExistingInterventions","Array","from","createClaimsVisit","auth_guid","authorization_code","updateBillOrderConsentToken","filter","i","Promise","all","p","mapIntervention","ci","access_point","intervention_name","needs_preauth","needs_manual_preauth","accrued_per_diem_amount","kephLevelTarriff","keph_level_tarrif","fund","intervention_fund","fallBackOverallTariff","tariffPerAdditionalKilometer","level2Tariff","level3Tariff","level4Tariff","level5Tariff","level6Tariff","applicableSchemes","supported_scheme","accrued_per_diem_days","workflow_state","preauth_exist","is_switched_intervention","switched_lines_retained","active_for_uhc","optional_document_type","optional_preauth_document_types","existingClaimVisit","interventionExists","interventionExistsInProviderPreview","lockSelection","selected","onClear","e","ctrlKey","metaKey","altKey","key","preventDefault","stopPropagation","InlineLoading","className","styles","checkingEligibility","description","div","claimFields","preExistingInterventionsHeader","h6","tableWrapper","Table","size","TableHead","TableRow","TableHeader","TableBody","TableCell","order_no","formatPreauthType","createdAt","Date","toLocaleDateString","field","onKeyDownCapture","ComboBox","autoAlign","titleText","placeholder","disabled","items","itemToString","item","shouldFilterItem","inputValue","selectedLabel","selectedItem","onChange","Loading","small","withOverlay","fieldSpinner","interventionRow","Tag","type","onClick","nonce","setAttribute","cssWithMappingToString","list","toString","this","content","concat","modules","mediaQuery","dedupe","alreadyImportedModules","_i","_arrayLikeToArray","arr","len","arr2","_item","isArray","_arrayWithHoles","Symbol","iterator","_s","_e","_arr","_n","_d","call","next","done","_iterableToArrayLimit","o","minLen","n","Object","prototype","slice","constructor","test","_unsupportedIterableToArray","TypeError","_nonIterableRest","cssMapping","btoa","base64","unescape","JSON","stringify","sourceMapping","sourceURLs","sources","source","sourceRoot","eligibilityFilterDto","json","memo","style","target","styleTarget","querySelector","window","HTMLIFrameElement","contentDocument","head","getTarget","Error","stylesInDOM","getIndexByIdentifier","identifier","modulesToDom","idCountMap","identifiers","base","count","indexByIdentifier","obj","media","sourceMap","supports","layer","references","updater","addElementStyle","byIndex","splice","api","update","newObj","remove","lastIdentifiers","newList","index","newLastIdentifiers","_index","needLayer","apply","parentNode","removeStyleElement"],"sourceRoot":""}
package/dist/3222.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_ampath_esm_dha_workflow_app=globalThis.webpackChunk_ampath_esm_dha_workflow_app||[]).push([[3222],{3222:(e,r,t)=>{t.d(r,{$$:()=>l.$$,ER:()=>y,EZ:()=>w,Er:()=>m,M2:()=>O,TY:()=>U,XL:()=>b,Yy:()=>P,b1:()=>g,oG:()=>I,rU:()=>S,wN:()=>v,xW:()=>D});var n=t(25987),u=t(70231),i=t.n(u),a=t(29428),l=t(15344),o=(t(96622),t(28599));function c(e,r,t,n,u,i,a){try{var l=e[i](a),o=l.value}catch(e){return void t(e)}l.done?r(o):Promise.resolve(o).then(n,u)}function f(e){return function(){var r=this,t=arguments;return new Promise((function(n,u){var i=e.apply(r,t);function a(e){c(i,n,u,a,l,"next",e)}function l(e){c(i,n,u,a,l,"throw",e)}a(void 0)}))}}function s(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function p(e,r){var t,n,u,i={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(o){return function(l){if(t)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(t=1,n&&(u=2&l[0]?n.return:l[0]?n.throw||((u=n.return)&&u.call(n),0):n.next)&&!(u=u.call(n,l[1])).done)return u;switch(n=0,u&&(l=[2&l[0],u.value]),l[0]){case 0:case 1:u=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,n=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((u=(u=i.trys).length>0&&u[u.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!u||l[1]>u[0]&&l[1]<u[3])){i.label=l[1];break}if(6===l[0]&&i.label<u[1]){i.label=u[1],u=l;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(l);break}u[2]&&i.ops.pop(),i.trys.pop();continue}l=r.call(e,i)}catch(e){l=[6,e],n=0}finally{t=u=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,o])}}}var d="ampath.preauthCode",b=function(e){if("boolean"==typeof e)return e;if("number"==typeof e)return 1===e;if("string"==typeof e){var r=e.trim().toLowerCase();return"true"===r||"1"===r||"yes"===r}return!1};function h(e,r){var t=(null!=e?e:"").toLowerCase().trim(),n=(null!=r?r:"").toLowerCase().trim();if(!t||!n)return 0;if(t===n)return 100;if(t.includes(n)||n.includes(t))return 80;var u=t.split(/[^a-z0-9]+/).filter((function(e){return e.length>2})),i=n.split(/[^a-z0-9]+/).filter((function(e){return e.length>2}));return u.length&&i.length?15*u.filter((function(e){return i.includes(e)})).length:0}function _(e){if(!e)return"";var r,t=null!==(r=e.item_price)&&void 0!==r?r:e.item_total_price;if(null==t||""===t)return"";var n=Number(t);return Number.isFinite(n)?String(n):String(t).trim()}var v=function(e){return!!(null==e?void 0:e.intervention_code)&&!b(e.preauth_approved)&&null!=e.elective_preauth&&b(e.elective_preauth)},y=function(e,r){return!!(null==e?void 0:e.intervention_code)&&!b(e.preauth_approved)&&!b(e.elective_preauth)&&(null!=e.requires_preauth?b(e.requires_preauth)&&!b(e.elective_preauth):null!=e.normal_preauth?b(e.normal_preauth):!!r&&Boolean(r.needsPreauth)&&!Boolean(r.needsManualPreauthApproval))};function m(e,r){return f((function(){var t,u,a,l,o;return p(this,(function(c){switch(c.label){case 0:return e?(u=new URLSearchParams({patient:e,includeInactive:"false",fromStartDate:i()().startOf("day").toISOString(),v:"full",limit:"1"}),r&&u.set("location",r),[4,(0,n.openmrsFetch)("".concat(n.restBaseUrl,"/visit?").concat(u.toString()))]):[2,null];case 1:return a=c.sent(),l=null==a||null===(t=a.data)||void 0===t?void 0:t.results,[2,null!==(o=null==l?void 0:l[0])&&void 0!==o?o:null]}}))}))()}function g(e,r){return f((function(){var t;return p(this,(function(n){switch(n.label){case 0:return[4,(0,a.xk)({locationUuid:e,billingDate:r})];case 1:return[2,(null!=(t=n.sent())?t:[]).filter((function(e){return!!(null==e?void 0:e.intervention_code)&&!b(e.preauth_approved)&&(!!b(e.elective_preauth)||null==e.requires_preauth&&null==e.normal_preauth||y(e))}))]}}))}))()}function I(e){return e?(0,o.K8)(e):""}function O(e,r){try{var t=sessionStorage.getItem(d);if(!t)return;return JSON.parse(t)["".concat(e,"::").concat(r)]}catch(e){return}}function U(e){return e?e.split(",").map((function(e){return e.trim()})).filter(Boolean):[]}function D(e){return r=function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),n.forEach((function(r){s(e,r,t[r])}))}return e}({code:e.intervention_code},P(e)),t=null!=(t={requiredPreauthDocumentTypes:U(e.required_preauth_document_types),applicableDocumentTypes:U(e.applicable_document_types)})?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):function(e){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r.push.apply(r,t)}return r}(Object(t)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(t,e))})),r;var r,t}function P(e){var r,t,n,u,i,a=null!=e?e:{};return{requiresSurgicalPreauth:b(null!==(r=a.requiresSurgicalPreauth)&&void 0!==r?r:a.requires_surgical_preauth),requiresRenalPreauth:b(null!==(t=a.requiresRenalPreauth)&&void 0!==t?t:a.requires_renal_preauth),requiresOncologyPreauth:b(null!==(n=a.requiresOncologyPreauth)&&void 0!==n?n:a.requires_oncology_preauth),requiresRadiologyPreauth:b(null!==(u=a.requiresRadiologyPreauth)&&void 0!==u?u:a.requires_radiology_preauth),requiresOpticalPreauth:b(null!==(i=a.requiresOpticalPreauth)&&void 0!==i?i:a.requires_optical_preauth)}}function w(e){return e.requiresSurgicalPreauth?"Surgical":e.requiresRenalPreauth?"Renal":e.requiresOncologyPreauth?"Oncology":e.requiresRadiologyPreauth?"Imaging":e.requiresOpticalPreauth?"Optical":"Normal"}function S(e){return f((function(){var r,t,n,u,l,o,c,f,s;return p(this,(function(p){switch(p.label){case 0:if(t=(null!==(r=e.patientUuid)&&void 0!==r?r:"").trim(),u=(null!==(n=e.locationUuid)&&void 0!==n?n:"").trim(),o=(null!==(l=e.interventionCode)&&void 0!==l?l:"").trim(),!t||!u||!o)return[2,{unitPrice:"",billLine:null}];p.label=1;case 1:return p.trys.push([1,3,,4]),c=function(e){if(!e)return i()().format("YYYY-MM-DD");var r=i()(e);return r.isValid()?r.format("YYYY-MM-DD"):i()().format("YYYY-MM-DD")}(e.billingDate),[4,(0,a.eT)({patientUuid:t,locationUuid:u,billingDate:c})];case 2:return f=p.sent(),s=function(e,r,t){var n=(null!=r?r:"").trim();if(!n||!(null==e?void 0:e.length))return null;var u=e.filter((function(e){var r;return(null!==(r=e.intervention_code)&&void 0!==r?r:"").trim()===n}));if(!u.length)return null;var i=u[0],a=-1,l=!0,o=!1,c=void 0;try{for(var f,s=u[Symbol.iterator]();!(l=(f=s.next()).done);l=!0){var p,d=f.value,b=1e6*h(d.billable_service,t)+(Number(null!==(p=d.item_price)&&void 0!==p?p:0)||0);b>a&&(a=b,i=d)}}catch(e){o=!0,c=e}finally{try{l||null==s.return||s.return()}finally{if(o)throw c}}return i}(null!=f?f:[],o,e.serviceHint),[2,{unitPrice:_(s),billLine:s}];case 3:return p.sent(),[2,{unitPrice:"",billLine:null}];case 4:return[2]}}))}))()}new Set(["DISCHARGE_SUMMARY","INVOICE","FINAL_BILL"])},96622:(e,r,t)=>{t.d(r,{N:()=>n});var n={HOUSE_HOLD_NUMBER_UUID:"bb74b20e-dcee-4f59-bdf1-2dffc3abf106",SHA_UUID:"cf5362b2-8049-4442-b3c6-36f870e320cb",CLIENT_REGISTRY_NO_UUID:"e88dc246-3614-4ee3-8141-1f2a83054e72",NATIONAL_ID_UUID:"58a47054-1359-11df-a1f1-0026b9348838",PROVIDER_NATIONAL_ID_UUID:"4550df92-c684-4597-8ab8-d6b10eabdcfb",REFUGEE_ID_UUID:"465e81af-8d69-47e9-9127-53a94adc75fb",MANDATE_NUMBER_UUID:"aae2d097-20ba-43ca-9b71-fd8296068f39",ALIEN_ID_UUID:"12f5b147-3403-4a73-913d-7ded9ffec094",TEMPORARY_DEPENDANT_ID_UUID:"a3d34214-93e8-4faf-bf4d-0272eee079eb",AMRS_UNIVERSAL_ID_UUID:"58a4732e-1359-11df-a1f1-0026b9348838",UPI_NUMBER_UUID:"cba702b9-4664-4b43-83f1-9ab473cbd64d",BIRTH_CERTIFICATE_NUMBER_UUID:"7924e13b-131a-4da8-8efa-e294184a1b0d",BIRTH_NOTIFICATION_UUID:"10a4349d-dd1b-4b0c-bd35-a00a22394266"}}}]);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"3222.js","mappings":"g6DASA,IAAMA,EAAmB,qBAEZC,EAAS,SAACC,GACrB,GAAiB,kBAANA,EAAiB,OAAOA,EACnC,GAAiB,iBAANA,EAAgB,OAAa,IAANA,EAClC,GAAiB,iBAANA,EAAgB,CACzB,IAAMC,EAAID,EAAEE,OAAOC,cACnB,MAAa,SAANF,GAAsB,MAANA,GAAmB,QAANA,CACtC,CACA,OAAO,CACT,EAGA,SAASG,EAA0BC,EAA4CC,GAC7E,IAAMC,GAAKF,QAAAA,EAAmB,IAAIF,cAAcD,OAC1CM,GAAKF,QAAAA,EAAQ,IAAIH,cAAcD,OACrC,IAAKK,IAAMC,EAAG,OAAO,EACrB,GAAID,IAAMC,EAAG,OAAO,IACpB,GAAID,EAAEE,SAASD,IAAMA,EAAEC,SAASF,GAAI,OAAO,GAC3C,IAAMG,EAAUH,EAAEI,MAAM,cAAcC,QAAO,SAACC,G,OAAMA,EAAEC,OAAS,C,IACzDC,EAAUP,EAAEG,MAAM,cAAcC,QAAO,SAACC,G,OAAMA,EAAEC,OAAS,C,IAC/D,OAAKJ,EAAQI,QAAWC,EAAQD,OAEf,GADDJ,EAAQE,QAAO,SAACC,G,OAAME,EAAQN,SAASI,E,IAAIC,OADZ,CAGjD,CAiCO,SAASE,EAAsBC,GACpC,IAAKA,EAAM,MAAO,G,I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AAO,KAEpC,IAAM0F,EAASV,EAAMlF,QAAO,SAACJ,G,IAAOA,E,OAAmB,QAAnBA,EAAAA,EAAEmB,yBAAFnB,IAAAA,EAAAA,EAAuB,IAAIN,SAAWwE,C,IAC1E,IAAK8B,EAAO1F,OAAQ,OAAO,KAE3B,IAAI2F,EAAmCD,EAAO,GAC1CE,GAAc,EACb,mB,IAAL,QAAK,IAAcF,EAAAA,OAAAA,cAAd,0BAAsB,CAAtB,IAEkBvF,EAFZA,EAAN,QAIG0F,EAAiB,IAHTvG,EAA0Ba,EAAK2F,iBAAkBL,IACjDjF,OAAsB,QAAfL,EAAAA,EAAKE,kBAALF,IAAAA,EAAAA,EAAmB,IAAM,GAG1C0F,EAASD,IACXA,EAAaC,EACbF,EAAOxF,EAEX,C,UATK,Q,aAAA,6B,YAAA,E,MAAA,C,EAUL,OAAOwF,CACT,CAsdiBI,CAA4Bf,QAAAA,EAAAA,GAAa9B,EAAkBvB,EAAO8D,aACxE,C,EAAA,CAAER,UAAW/E,EAAsBC,GAAO+E,SAAU/E,I,OAE3D,O,SAAO,C,EAAA,CAAE8E,UAAW,GAAIC,SAAU,O,oBAEtC,G,GA3MqC,IAAIc,IAAI,CAAC,oBAAqB,UAAW,c,mCChV9E,IAcaC,EAAuB,CAClCC,uBAf6B,uCAgB7BC,SAfe,uCAgBfC,wBAf8B,uCAgB9BC,iBAfuB,uCAgBvBC,0BAfgC,uCAgBhCC,gBAfsB,uCAgBtBC,oBAf0B,uCAgB1BC,cAfoB,uCAgBpBC,4BAfkC,uCAgBlCC,uBAf6B,uCAgB7BC,gBAfsB,uCAgBtBC,8BAfoC,uCAgBpCC,wBAf8B,uC","sources":["webpack://@ampath/esm-dha-workflow-app/./src/billing/dashboard/v2/preauth/preauth.resource.ts","webpack://@ampath/esm-dha-workflow-app/./src/resources/identifier-types.ts"],"names":["PREAUTH_CODE_KEY","asBool","v","s","trim","toLowerCase","scoreBillableServiceMatch","billableService","hint","a","b","includes","tokensA","split","filter","t","length","tokensB","unitPriceFromBillLine","line","price","item_price","item_total_price","n","Number","isFinite","String","needsElectivePreauth","item","intervention_code","preauth_approved","elective_preauth","needsNormalPreauth","sha","requires_preauth","normal_preauth","Boolean","needsPreauth","needsManualPreauthApproval","fetchActiveVisitForPatient","patientUuid","locationUuid","response","params","results","URLSearchParams","patient","includeInactive","fromStartDate","dayjs","startOf","toISOString","limit","set","openmrsFetch","restBaseUrl","toString","data","fetchPreauthBillItems","billingDate","fetchFacilityPreauthBills","resolveConsentTokenForVisit","visit","getConsentToken","getStoredPreauthCode","consentToken","interventionCode","raw","sessionStorage","getItem","JSON","parse","parseDocTypes","csv","map","interventionFlagsFromBillItem","code","readSpecialtyFlags","requiredPreauthDocumentTypes","required_preauth_document_types","applicableDocumentTypes","applicable_document_types","source","requiresSurgicalPreauth","requires_surgical_preauth","requiresRenalPreauth","requires_renal_preauth","requiresOncologyPreauth","requires_oncology_preauth","requiresRadiologyPreauth","requires_radiology_preauth","requiresOpticalPreauth","requires_optical_preauth","preauthFormLabel","flags","resolveUnitPriceFromPatientBills","bills","unitPrice","billLine","billDate","format","d","isValid","billingDateToVisitDate","fetchPatientFacilityBillDetails","serviceHint","byCode","best","bestRanked","ranked","billable_service","pickBillLineForIntervention","Set","IdentifierTypesUuids","HOUSE_HOLD_NUMBER_UUID","SHA_UUID","CLIENT_REGISTRY_NO_UUID","NATIONAL_ID_UUID","PROVIDER_NATIONAL_ID_UUID","REFUGEE_ID_UUID","MANDATE_NUMBER_UUID","ALIEN_ID_UUID","TEMPORARY_DEPENDANT_ID_UUID","AMRS_UNIVERSAL_ID_UUID","UPI_NUMBER_UUID","BIRTH_CERTIFICATE_NUMBER_UUID","BIRTH_NOTIFICATION_UUID"],"sourceRoot":""}
package/dist/3406.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_ampath_esm_dha_workflow_app=globalThis.webpackChunk_ampath_esm_dha_workflow_app||[]).push([[3406],{10540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},41113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},49564:(e,t,r)=>{r.d(t,{TA:()=>v,cU:()=>V,pl:()=>w,wM:()=>H,xj:()=>m});var n,a,o,i,c,u,s,l,f,p=r(16072),h=r.n(p),d=r(60428);const m=h().forwardRef((function({children:e,size:t=16,...r},a){return h().createElement(d.A,{width:t,height:t,ref:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},n||(n=h().createElement("path",{d:"M28,9H25V3H7V9H4a2,2,0,0,0-2,2V21a2,2,0,0,0,2,2H7v6H25V23h3a2,2,0,0,0,2-2V11A2,2,0,0,0,28,9ZM9,5H23V9H9ZM23,27H9V17H23Zm5-6H25V15H7v6H4V11H28Z"})),e)})),v=h().forwardRef((function({children:e,size:t=16,...r},n){return h().createElement(d.A,{width:t,height:t,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},a||(a=h().createElement("path",{d:"M21 16H23V18H21zM9 16H17V18H9zM21 12H23V14H21zM9 12H17V14H9zM9 8H23V10H9z"})),o||(o=h().createElement("path",{d:"M25,2H7A2.002,2.002,0,0,0,5,4V29a1,1,0,0,0,1,1H7a.9987.9987,0,0,0,.8-.4L10,26.667,12.2,29.6a1.0353,1.0353,0,0,0,1.6,0L16,26.667,18.2,29.6a1.0353,1.0353,0,0,0,1.6,0L22,26.667,24.2,29.6a.9993.9993,0,0,0,.8.4h1a1,1,0,0,0,1-1V4A2.0023,2.0023,0,0,0,25,2Zm0,25.333L22.8,24.4a1.0353,1.0353,0,0,0-1.6,0L19,27.333,16.8,24.4a1.0353,1.0353,0,0,0-1.6,0L13,27.333,10.8,24.4a1.0353,1.0353,0,0,0-1.6,0L7,27.333V4H25Z"})),e)})),H=h().forwardRef((function({children:e,size:t=16,...r},n){return h().createElement(d.A,{width:t,height:t,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},i||(i=h().createElement("path",{d:"M12 10H6.78A11 11 0 0127 16h2A13 13 0 006 7.68V4H4v8h8zM20 22h5.22A11 11 0 015 16H3a13 13 0 0023 8.32V28h2V20H20z"})),e)})),w=h().forwardRef((function({children:e,size:t=16,...r},n){return h().createElement(d.A,{width:t,height:t,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},c||(c=h().createElement("path",{d:"M10 18H18V20H10zM10 13H22V15H10zM10 23H15V25H10z"})),u||(u=h().createElement("path",{d:"M25,5H22V4a2,2,0,0,0-2-2H12a2,2,0,0,0-2,2V5H7A2,2,0,0,0,5,7V28a2,2,0,0,0,2,2H25a2,2,0,0,0,2-2V7A2,2,0,0,0,25,5ZM12,4h8V8H12ZM25,28H7V7h3v3H22V7h3Z"})),e)})),V=h().forwardRef((function({children:e,size:t=16,...r},n){return h().createElement(d.A,{width:t,height:t,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},s||(s=h().createElement("circle",{cx:"26",cy:"26",r:"4"})),l||(l=h().createElement("path",{d:"M10 13H12V15H10zM10 18H12V20H10zM10 23H12V25H10zM14 13H22V15H14zM14 18H22V20H14zM14 23H18V25H14z"})),f||(f=h().createElement("path",{d:"M7,28V7h3v3H22V7h3V18h2V7a2,2,0,0,0-2-2H22V4a2,2,0,0,0-2-2H12a2,2,0,0,0-2,2V5H7A2,2,0,0,0,5,7V28a2,2,0,0,0,2,2H18V28ZM12,4h8V8H12Z"})),e)}))},55056:(e,t,r)=>{e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},70159:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=e(t);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(n)for(var o=0;o<this.length;o++){var i=this[o][0];null!=i&&(a[i]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);n&&a[u[0]]||(r&&(u[2]?u[2]="".concat(r," and ").concat(u[2]):u[2]=r),t.push(u))}},t}},72996:e=>{function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}e.exports=function(e){var r,n,a=(n=4,function(e){if(Array.isArray(e))return e}(r=e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,a,o=[],i=!0,c=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){c=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(c)throw a}}return o}}(r,n)||function(e,r){if(e){if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,r):void 0}}(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=a[1],i=a[3];if(!i)return o;if("function"==typeof btoa){var c=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),s="/*# ".concat(u," */"),l=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[o].concat(l).concat([s]).join("\n")}return[o].join("\n")}},77659:e=>{var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},85072:e=>{var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var o={},i=[],c=0;c<e.length;c++){var u=e[c],s=n.base?u[0]+n.base:u[0],l=o[s]||0,f="".concat(s," ").concat(l);o[s]=l+1;var p=r(f),h={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==p)t[p].references++,t[p].updater(h);else{var d=a(h,n);n.byIndex=c,t.splice(c,0,{identifier:f,updater:d,references:1})}i.push(f)}return i}function a(e,t){var r=t.domAPI(t);return r.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,a){var o=n(e=e||[],a=a||{});return function(e){e=e||[];for(var i=0;i<o.length;i++){var c=r(o[i]);t[c].references--}for(var u=n(e,a),s=0;s<o.length;s++){var l=r(o[s]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}o=u}}},97825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,a&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var o=r.sourceMap;o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}}}]);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"3406.js","mappings":"mJASAA,EAAOC,QANP,SAA4BC,GAC1B,IAAIC,EAAUC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II,OAAS,GAAI,OAE5EhI,GAAO4H,EAAI5H,IACPiJ,IACFjJ,GAAO,KAEL4H,EAAIC,QACN7H,GAAO,KAEL4H,EAAIG,WACN/H,GAAO,KAET,IAAI8H,EAAYF,EAAIE,UAChBA,GAA6B,oBAATpC,OACtB1F,GAAO,uDAAuD4C,OAAO8C,KAAKE,SAASC,mBAAmBC,KAAKC,UAAU+B,MAAe,QAKtIrI,EAAQyJ,kBAAkBlJ,EAAKC,EAAcR,EAAQA,QACvD,CAoBM0J,CAAMlJ,EAAcR,EAASmI,EAC/B,EACAc,OAAQ,YArBZ,SAA4BzI,GAE1B,GAAgC,OAA5BA,EAAamJ,WACf,OAAO,EAETnJ,EAAamJ,WAAW/I,YAAYJ,EACtC,CAgBMoJ,CAAmBpJ,EACrB,EAEJ,C","sources":["webpack://@ampath/esm-dha-workflow-app/./node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://@ampath/esm-dha-workflow-app/./node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack://@ampath/esm-dha-workflow-app/./node_modules/@carbon/icons-react/es/generated/bucket-14.js","webpack://@ampath/esm-dha-workflow-app/./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://@ampath/esm-dha-workflow-app/./node_modules/@openmrs/webpack-config/node_modules/css-loader/dist/runtime/api.js","webpack://@ampath/esm-dha-workflow-app/./node_modules/@openmrs/webpack-config/node_modules/css-loader/dist/runtime/cssWithMappingToString.js","webpack://@ampath/esm-dha-workflow-app/./node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://@ampath/esm-dha-workflow-app/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://@ampath/esm-dha-workflow-app/./node_modules/style-loader/dist/runtime/styleDomAPI.js"],"names":["module","exports","options","element","document","createElement","setAttributes","attributes","insert","css","styleElement","styleSheet","cssText","firstChild","removeChild","appendChild","createTextNode","_path17","_path94","_path95","_path125","_path137","_path138","_circle21","_path159","_path160","Printer","children","size","rest","ref","width","height","xmlns","viewBox","fill","d","Receipt","Renew","Report","ResultNew","cx","cy","r","nonce","setAttribute","cssWithMappingToString","list","toString","this","map","item","content","concat","join","i","modules","mediaQuery","dedupe","alreadyImportedModules","length","id","_i","push","_arrayLikeToArray","arr","len","arr2","Array","_item","isArray","_arrayWithHoles","Symbol","iterator","_s","_e","_arr","_n","_d","call","next","done","value","err","_iterableToArrayLimit","o","minLen","n","Object","prototype","slice","constructor","name","from","test","_unsupportedIterableToArray","TypeError","_nonIterableRest","cssMapping","btoa","base64","unescape","encodeURIComponent","JSON","stringify","data","sourceMapping","sourceURLs","sources","source","sourceRoot","memo","style","target","styleTarget","querySelector","window","HTMLIFrameElement","contentDocument","head","e","getTarget","Error","stylesInDOM","getIndexByIdentifier","identifier","result","modulesToDom","idCountMap","identifiers","base","count","indexByIdentifier","obj","media","sourceMap","supports","layer","references","updater","addElementStyle","byIndex","splice","api","domAPI","update","newObj","remove","lastIdentifiers","newList","index","newLastIdentifiers","_index","insertStyleElement","needLayer","styleTagTransform","apply","parentNode","removeStyleElement"],"sourceRoot":""}