@palladium-ethiopia/esm-billing-app 5.4.2-pre.30

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 (902) hide show
  1. package/.turbo/turbo-build.log +22 -0
  2. package/README.md +5 -0
  3. package/__mocks__/bill.mock.ts +107 -0
  4. package/__mocks__/visit.mock.ts +151 -0
  5. package/dist/003671ee2a876e7614cd94390e2255b3.js +1 -0
  6. package/dist/0078b630bed2938ce03f618c2bcd1363.js +1 -0
  7. package/dist/0144de97a3c256f81447e7e7135780e5.js +1 -0
  8. package/dist/019e34e85139cfc611bf23efa096c980.js +1 -0
  9. package/dist/01b769b06e3967d7382e74f2c443ca6e.js +1 -0
  10. package/dist/02174460fe8ff6a6bc19db86543b9600.js +1 -0
  11. package/dist/022fc31e47969919bef8f04c7ceb6396.js +1 -0
  12. package/dist/029ed9161a8d24a9c2ba97124020989d.js +1 -0
  13. package/dist/029f5ee0420883bc3c38a7f143fd174a.js +1 -0
  14. package/dist/03980cb12dacd26148c22bb61fce440f.js +1 -0
  15. package/dist/03a5f5b2b97a8fc289399d92fba810d0.js +1 -0
  16. package/dist/03aae8272914723a7bf85b984385032c.js +1 -0
  17. package/dist/03f614920ec2da304abfca8b015a2b40.js +1 -0
  18. package/dist/0416c21cfe088739209926632a360e3b.js +1 -0
  19. package/dist/069a0d6b093e73e820f6a60a91fa614b.js +1 -0
  20. package/dist/06d958315fc6cdbb28576b03e43203aa.js +1 -0
  21. package/dist/07397bd479cbc34bc04576b4f15bdf18.js +1 -0
  22. package/dist/078dd0bd08c93b1512e3d1b777591b21.js +1 -0
  23. package/dist/08eb6e8d603ac500da471cc07b0cf188.js +1 -0
  24. package/dist/0972f21af3e75388ef55435c0b3b831d.js +1 -0
  25. package/dist/0973bb38b2e3efd2a879fd8e81d50fce.js +1 -0
  26. package/dist/0a1d9862d917663419ac2dd2e8193267.js +1 -0
  27. package/dist/0b06cbc7edf78b6f2810187262e7630b.js +1 -0
  28. package/dist/0bd45b2d490c48c31619072a4fb0eaea.js +1 -0
  29. package/dist/0bf319cb891a35363be356125cf61925.js +1 -0
  30. package/dist/0d5aa4cf4cd6ced22d689adc35468925.js +1 -0
  31. package/dist/0e579f8a92c87ee13f03bbb00bfd6965.js +1 -0
  32. package/dist/0e67325b9a04863301e36c0c37947069.js +1 -0
  33. package/dist/0e9edc546e19e0d70ebaeec446142d3f.js +1 -0
  34. package/dist/0f147528a6f36ca40c8b3ec796429f58.js +1 -0
  35. package/dist/0fa30731c46fe8b6a54f9752ad0ed7e0.js +1 -0
  36. package/dist/10.js +1 -0
  37. package/dist/10.js.map +1 -0
  38. package/dist/101.js +1 -0
  39. package/dist/101.js.map +1 -0
  40. package/dist/10132993df2cf9c9423b53a8a44379ab.js +1 -0
  41. package/dist/1034e3807d1bcf55cb564491950237ab.js +1 -0
  42. package/dist/10c464f3f882bfeeefbc0934c2ee9fbe.js +1 -0
  43. package/dist/111d9fdb9864abba36298d1a0807fe6d.js +1 -0
  44. package/dist/112.js +1 -0
  45. package/dist/112.js.map +1 -0
  46. package/dist/117.js +1 -0
  47. package/dist/1195816afa4a5e8183857be16a04ae6f.js +1 -0
  48. package/dist/119f6c45ea400e3c27e1ce172e4c881d.js +1 -0
  49. package/dist/11e3a2a8fb5bcb9d19298a80cafd3f5a.js +1 -0
  50. package/dist/130340e2c62b9e858f186dab5f491e55.js +1 -0
  51. package/dist/131.js +1 -0
  52. package/dist/131.js.map +1 -0
  53. package/dist/135747176621bcc94e9edd0323a81d3c.js +1 -0
  54. package/dist/1383530217ac0068c844902d24e18e08.js +1 -0
  55. package/dist/13eda3507db9cbfb400f46b9b3ff6553.js +1 -0
  56. package/dist/1495a3d68b15b8622c53f6688b64809f.js +1 -0
  57. package/dist/152.js +1 -0
  58. package/dist/152.js.map +1 -0
  59. package/dist/1533058f0ce13acdaa8d5bdc7d147bef.js +1 -0
  60. package/dist/157d1af856797eaa6a6d4517a5335299.js +1 -0
  61. package/dist/15f3800d33b854ba476c9daf1b9e0326.js +1 -0
  62. package/dist/166.js +15 -0
  63. package/dist/166.js.map +1 -0
  64. package/dist/16c2e1b50af4ba05edaa03c8c9e9d18c.js +1 -0
  65. package/dist/170487867de05784a96608617bdd544d.js +1 -0
  66. package/dist/1736cea368ae85240f34289307fdf67f.js +1 -0
  67. package/dist/17632e1e19e438f431784dfd77e01773.js +1 -0
  68. package/dist/17dc98279d24649d3ca77cbce8c44e83.js +1 -0
  69. package/dist/187.js +1 -0
  70. package/dist/187.js.map +1 -0
  71. package/dist/1875ecdf54e78b5f07ff1bd944cf794b.js +1 -0
  72. package/dist/191feb6103c36b202bc01ba262916cdf.js +1 -0
  73. package/dist/1983055014f3f7a31b72b9c24eebfe2e.js +1 -0
  74. package/dist/1a435bdf5bbc57b954136c38dea5dd56.js +1 -0
  75. package/dist/1b012b7a13787e2ab186f7bc6978af5d.js +1 -0
  76. package/dist/1b15b9f88acaf59b96e59c6b5f32da12.js +1 -0
  77. package/dist/1b399d419893e83d7aea276705c2cd46.js +1 -0
  78. package/dist/1c24a68cb472146022d0806ea2505cfb.js +1 -0
  79. package/dist/1c57b3481f295105588972ffa1305521.js +1 -0
  80. package/dist/1cc6fc3772824e2f87f10a9c3fad2dae.js +1 -0
  81. package/dist/1ce14f2cad9f3c122cb5ccfcd485ffb4.js +1 -0
  82. package/dist/1d3796180f854b5d8ab435ab0a1c2c11.js +1 -0
  83. package/dist/1f5e5fcf6311b2bee3ea3d90352d584a.js +1 -0
  84. package/dist/1ff1389501159e4846a5133e3b8992d8.js +1 -0
  85. package/dist/20545e6680e996248f667158904a6a9b.js +1 -0
  86. package/dist/209.js +1 -0
  87. package/dist/209.js.map +1 -0
  88. package/dist/210aec2722e6416a0349a987260e14a3.js +1 -0
  89. package/dist/211511e7b374f57ad31acaf49dbdccb1.js +1 -0
  90. package/dist/219.js +1 -0
  91. package/dist/219.js.map +1 -0
  92. package/dist/21ce36baab7df3edd2c728ac1a6776b7.js +1 -0
  93. package/dist/21d07d2aa7d7e54330fb3c627689a691.js +1 -0
  94. package/dist/225.js +1 -0
  95. package/dist/225.js.map +1 -0
  96. package/dist/2272c6632c52c3e402ab27b8045ab8f1.js +1 -0
  97. package/dist/2287e0a9970175f8e26f811b688d2d36.js +1 -0
  98. package/dist/228ca80abf1ae030cbfe7faaec61913f.js +1 -0
  99. package/dist/2302902e10c4afab56e1b864c96070cb.js +1 -0
  100. package/dist/2348c5ed0da81c27fa889f56e43f91a1.js +1 -0
  101. package/dist/23602ad4c88f0f19e7a0a12454ebf556.js +1 -0
  102. package/dist/23bb1a9f279e7a732bfd405350aab114.js +1 -0
  103. package/dist/245.js +1 -0
  104. package/dist/245.js.map +1 -0
  105. package/dist/24547132c0093d2bae739db169cda5a6.js +1 -0
  106. package/dist/24a3ff38afde257888d755ece9bfd704.js +1 -0
  107. package/dist/24f97ddd76026815674affbc50ad6169.js +1 -0
  108. package/dist/254.js +27 -0
  109. package/dist/254.js.map +1 -0
  110. package/dist/25718a469574ade47e23567d8c543169.js +1 -0
  111. package/dist/25be9f866b93e4ffa34f07a4fde632d4.js +1 -0
  112. package/dist/25eda4bb98e40a82cfd5b4bf9fbc06ec.js +1 -0
  113. package/dist/269732f4c5f6e82ea3246548a9631b47.js +1 -0
  114. package/dist/27730a0bdc6f430cc85049a46a73a029.js +1 -0
  115. package/dist/283970c76db99e2d0d90f0e7c45494f9.js +1 -0
  116. package/dist/28785bea435918d49b290d27bf660baa.js +1 -0
  117. package/dist/29558eac6b1d269fb491df21eb506d11.js +1 -0
  118. package/dist/29c12604c7db4a1ad67ed4d7cdb4f4ed.js +1 -0
  119. package/dist/2a8394955e047270a2a965ec67843989.js +1 -0
  120. package/dist/2aa392a501973ebfcea38239a45ed8e7.js +1 -0
  121. package/dist/2ad349208b3a727abb3c9f943865a27c.js +1 -0
  122. package/dist/2b1b8f8b9e8f1e423a69afd121fd7da9.js +1 -0
  123. package/dist/2b385abd24ebcff8a1c7de52aa2970ab.js +1 -0
  124. package/dist/2b5729e073775b8fb827fc8e4725e48a.js +1 -0
  125. package/dist/2b89e20071dd734f42b8694d7a84c264.js +1 -0
  126. package/dist/2d2a75e3d01a74b93d07db04df8abe5e.js +1 -0
  127. package/dist/2dd82c65030101b60dffccedd8741c6e.js +1 -0
  128. package/dist/2e841e8b77c2a2c00fd71940632bc1e1.js +1 -0
  129. package/dist/2f055ac4066041b9008dd6aebf9df34b.js +1 -0
  130. package/dist/2fc0239242a898632ca8aa451cb930c2.js +1 -0
  131. package/dist/318dcae1cdcd4733986a93e7a5fab7b8.js +1 -0
  132. package/dist/31c610efb1d25afc90853b52ba4cb089.js +1 -0
  133. package/dist/3219bb3283a319e7a33f7366deb7ed1b.js +1 -0
  134. package/dist/328cbf598e9711b0a87c19437b02f80d.js +1 -0
  135. package/dist/32cf6d8a099c0a653928cbc9a05af5da.js +1 -0
  136. package/dist/33b4e371d4983ab56f4db08627119f0b.js +1 -0
  137. package/dist/349237ad9565dc823ce7bcb7527ba7ee.js +1 -0
  138. package/dist/34f99cce131bd7aa65e7a924e2456006.js +1 -0
  139. package/dist/3567d1ea443427e944a6f189a0898819.js +1 -0
  140. package/dist/363d3bac8dcd9a83332c3758185ce080.js +1 -0
  141. package/dist/367def81f25c0a08527f9a4e86e70c56.js +1 -0
  142. package/dist/37172facd8a534a38f378ca2a9c7c11b.js +1 -0
  143. package/dist/378.js +1 -0
  144. package/dist/37ee3b5201ae2e2dc5dc8b1b20ad900e.js +1 -0
  145. package/dist/38105097fc2497d628f398be7db5f6e8.js +1 -0
  146. package/dist/38b1d18836e38ee7b4deaeba0c35f7b8.js +1 -0
  147. package/dist/39fea85ed7dd99d7c6c9e59b7040523f.js +1 -0
  148. package/dist/3a395ae85f6a58001cb48cc5a4e6360b.js +1 -0
  149. package/dist/3a6ca6958d003ae67bb7fefc8713ee93.js +1 -0
  150. package/dist/3ac8c7749734990e2d9f81eeca219886.js +1 -0
  151. package/dist/3b02cca9e95276a74f3ed2bbc7a64ce6.js +1 -0
  152. package/dist/3b190e5159c72fb7e27271956772bcba.js +1 -0
  153. package/dist/3b26795ad1700506b62e1171ff6fcd9b.js +1 -0
  154. package/dist/3b544bb2c5a4e7b225a4b50235a0fd6d.js +1 -0
  155. package/dist/3b6e7dc98c47eeafd851ca5072db4be6.js +1 -0
  156. package/dist/3bee0656a21a6106946d9f424fc22337.js +1 -0
  157. package/dist/3bf96f8eb1859e2724a4b769af3b5f1e.js +1 -0
  158. package/dist/3c5b59a666c5d39d9ba9cc054d36a410.js +1 -0
  159. package/dist/3e93259f04cf0b4b52cc237cfc21cb05.js +1 -0
  160. package/dist/3ea020c57c2bbf457a8497df313b2e5c.js +1 -0
  161. package/dist/3eefbe1c009cfd730b2ca6f834367c45.js +1 -0
  162. package/dist/3efaf75fa91357a71f55203c10d0562b.js +1 -0
  163. package/dist/3f896944a97f002f2146e028ff2eac63.js +1 -0
  164. package/dist/41.js +1 -0
  165. package/dist/41.js.map +1 -0
  166. package/dist/41a77c181e7d3172f53496cb25166d13.js +1 -0
  167. package/dist/41ae585cdbb9c2e8eefff5d30193029f.js +1 -0
  168. package/dist/41e8a86a20df71cb48a373b096c06cd1.js +1 -0
  169. package/dist/42e0ea6351d45d342caab13cb12f9ea4.js +1 -0
  170. package/dist/43139bfbcbce9de597b4985dc1e6a03b.js +1 -0
  171. package/dist/432a5982ba3ddf958381d780e1e9a8e2.js +1 -0
  172. package/dist/432aff60ba31a74d2120031fdc894775.js +1 -0
  173. package/dist/433.js +1 -0
  174. package/dist/433.js.map +1 -0
  175. package/dist/442.js +1 -0
  176. package/dist/442.js.map +1 -0
  177. package/dist/4430c55f023b72fb5e389cee9351b38c.js +1 -0
  178. package/dist/44599d9b6202ebebfcdd073edf3562e3.js +1 -0
  179. package/dist/44e9d75bc694599ba5a672eeec11d3b7.js +1 -0
  180. package/dist/44efcea2f84e80cc4092a89796afe886.js +1 -0
  181. package/dist/45227a487a5d1829deaf3589411c7333.js +1 -0
  182. package/dist/453d207e70a9d6fe976b60b6a20b39fb.js +1 -0
  183. package/dist/458.js +1 -0
  184. package/dist/458.js.map +1 -0
  185. package/dist/466.js +1 -0
  186. package/dist/466.js.map +1 -0
  187. package/dist/46ed21c8fbddeefacaf10d78887aa22a.js +1 -0
  188. package/dist/472ba8f81bf8cac86027cb1be4e3b9cd.js +1 -0
  189. package/dist/479.js +1 -0
  190. package/dist/479.js.map +1 -0
  191. package/dist/47e5776dff3b80ed69ab5947dba33c76.js +1 -0
  192. package/dist/48827a80c9c8a8b394a208065231dabb.js +1 -0
  193. package/dist/48e9351c5623d4da657ce7d5d0267ea6.js +1 -0
  194. package/dist/49582665262ff6179b9f3a98adf7ed5c.js +1 -0
  195. package/dist/4b692785a8a6340a89e6067274a7583c.js +1 -0
  196. package/dist/4bee3a46b8378a7b4ef84492f08abd22.js +1 -0
  197. package/dist/4bf3bc1fbdd26ac698fef1bdf26e3ff4.js +1 -0
  198. package/dist/4c1bdecbedd36a5765de184ac056822a.js +1 -0
  199. package/dist/4d0ebf4c528cee9b0cdd3e076e06570b.js +1 -0
  200. package/dist/4d156ee0485ab4b40b090a3cd7b995a9.js +1 -0
  201. package/dist/4d6d9020e7e5c8d8dee7a5e374355f05.js +1 -0
  202. package/dist/4d8cb7033879cb7fcc7a43798e2bde22.js +1 -0
  203. package/dist/4db8b05f109448d519f60cbb920dc38e.js +1 -0
  204. package/dist/4db989de49617370db449991af03f578.js +1 -0
  205. package/dist/4e389cce6fb8f78845fab249bce43c0b.js +1 -0
  206. package/dist/4ef80ee74467e0297eec3cc03092da01.js +1 -0
  207. package/dist/4f03709d8b1d52a622f0676f7a299510.js +1 -0
  208. package/dist/4f2451dd2095d05141a5c24fab1594e1.js +1 -0
  209. package/dist/4f683c6881e9f8740f5516a85b9eb9da.js +1 -0
  210. package/dist/509.js +1 -0
  211. package/dist/509.js.map +1 -0
  212. package/dist/50d61b10bebf34dab99e3025495beaa2.js +1 -0
  213. package/dist/5106411f7468a5ee5b1ee77aed12c0c7.js +1 -0
  214. package/dist/512.js +1 -0
  215. package/dist/512.js.map +1 -0
  216. package/dist/517200f13a5516e40a9ad6d9c5bcd90e.js +1 -0
  217. package/dist/51f903c5ce5284a63196247cffb5ca40.js +1 -0
  218. package/dist/52fd09d1713345d9ee64dc7daea9fd6f.js +1 -0
  219. package/dist/5348f3cfbe5a63954e7d984f197bbddb.js +1 -0
  220. package/dist/5352ecd8e5f1a2637b48e18cc406edb1.js +1 -0
  221. package/dist/5398e3b596fa15df4d84b2aa0464e5c4.js +1 -0
  222. package/dist/53e3600928916423671f3388e2d67844.js +1 -0
  223. package/dist/54560f13b36626237959e93b7771a484.js +1 -0
  224. package/dist/54a10f3bddad1e6da452fee7124fe846.js +1 -0
  225. package/dist/57e14488b13e50ebdb5fdfc7880da683.js +1 -0
  226. package/dist/57f4109bd1f06be4dc2bcb8ff7eaf1e5.js +1 -0
  227. package/dist/582e24f5ba929e358fadfc7be4c18025.js +1 -0
  228. package/dist/58598705e7012f4ca1eb1dd21d3c59a5.js +1 -0
  229. package/dist/5861dfe4f2c7823623e82d0619c5bf06.js +1 -0
  230. package/dist/58aab872dbdb5e1607076e1935130e03.js +1 -0
  231. package/dist/58c35e5c73bbc1664bbd67c570342aa0.js +1 -0
  232. package/dist/59cc05504a1c823b6d4796bf6b430822.js +1 -0
  233. package/dist/5a496ae20cc576bef1d35972548207cf.js +1 -0
  234. package/dist/5a741aab715866cb4d9a55e89dfc8420.js +1 -0
  235. package/dist/5a8ead0357e5029a2518959423dc29f3.js +1 -0
  236. package/dist/5b6a626249d0bc43e412fffa6a9ee177.js +1 -0
  237. package/dist/5c9be61a5fe851f5f37cc4de2586b096.js +1 -0
  238. package/dist/5cab33610b8d9c1aee4db4672811cb5f.js +1 -0
  239. package/dist/5cd4e1282f4409600b942819b7aa4f21.js +1 -0
  240. package/dist/5ce650c06c385f9d15621e54c60457c0.js +1 -0
  241. package/dist/5cebfc2c3495b6294dcb2a99e5174872.js +1 -0
  242. package/dist/5d312b184c1f4565f51247d3c6dbba90.js +1 -0
  243. package/dist/5d3314103b00c8ea165c6f9f6757f794.js +1 -0
  244. package/dist/5df362c9904925cdf574d9506e4be76d.js +1 -0
  245. package/dist/5e55b301888460bd06c8e26d1011e01a.js +1 -0
  246. package/dist/5e8a4f4320a07ae4bb1d8a5cd621d955.js +1 -0
  247. package/dist/5f3ce6efab3c679ec1ad25ab0b3f6b2f.js +1 -0
  248. package/dist/5f5a93ab1249b7cbdb13d9466febd3a0.js +1 -0
  249. package/dist/5fedbf948ed123687f77167fac1faf8b.js +1 -0
  250. package/dist/5ffbb9579edc192b3e268a1f47fa61ae.js +1 -0
  251. package/dist/60190285b6c2243e14184b9e57d48dbb.js +1 -0
  252. package/dist/60d2bacc2e51eabc2bb0afa982fffb56.js +1 -0
  253. package/dist/60ede8d7ffdf4c05f2ce51b6d8d2be68.js +1 -0
  254. package/dist/60f8f158539619aaf544fa35ce8daccd.js +1 -0
  255. package/dist/61.js +1 -0
  256. package/dist/61.js.map +1 -0
  257. package/dist/617ddc517c704963dc032140e80151d5.js +1 -0
  258. package/dist/622e27eec5f26148f51ccc30315a3deb.js +1 -0
  259. package/dist/6250c7594cd66ca91184b5beca293e06.js +1 -0
  260. package/dist/629e56c05a8ab32ebfd5d058ba8d242d.js +1 -0
  261. package/dist/62a96977e725e8bc809dc80afe0fedf1.js +1 -0
  262. package/dist/63596b4896732fb322ab0496b4be1e74.js +1 -0
  263. package/dist/639.js +1 -0
  264. package/dist/639.js.map +1 -0
  265. package/dist/6490772da5aecc6cb9e4c625abc74a96.js +1 -0
  266. package/dist/64a5f4d62507d032038dcd76d15188e1.js +1 -0
  267. package/dist/64d6924350bd7706850cdc0dcc76ccf6.js +1 -0
  268. package/dist/656927386f77b2620f35af391f59d5ab.js +1 -0
  269. package/dist/65abcd8e99a385bcd8f1776f160040a9.js +1 -0
  270. package/dist/65e7cf62ca9df32c18b630f31025a401.js +1 -0
  271. package/dist/663ffb67b9683a2126410325d1a5a152.js +1 -0
  272. package/dist/678f5201c1917429f334b88078ca4174.js +1 -0
  273. package/dist/689.js +1 -0
  274. package/dist/689.js.map +1 -0
  275. package/dist/69731d1754f66b8b2640df4f561a6526.js +1 -0
  276. package/dist/6a1c347ab79a93f3ac01b08c8ccfc827.js +1 -0
  277. package/dist/6a3775ac1fe6361f31918720b62c8f3d.js +1 -0
  278. package/dist/6a851f05f1f4a974e02fe23eac2bad4e.js +1 -0
  279. package/dist/6b4b87a54f673cfbb82be45329441bef.js +1 -0
  280. package/dist/6bed1b724e74e6bc80688f42bc824d70.js +1 -0
  281. package/dist/6c0a75dc5671c3f237a79f6e45b9891c.js +1 -0
  282. package/dist/6c3d5ea389d0e47cbe327673b7495701.js +1 -0
  283. package/dist/6c67587c2093ac3a19da9f2196e040b7.js +1 -0
  284. package/dist/6d38cef4a006e6cfe54a6117aba7b600.js +1 -0
  285. package/dist/6e40b726d91e9138d9eaef6fd012c740.js +1 -0
  286. package/dist/6eac646091211287dd5e5b376c755110.js +1 -0
  287. package/dist/6faa9e5f2a0122d2333fa450337a09b0.js +1 -0
  288. package/dist/70074e0c785c9a808dea76c7c7d17af3.js +1 -0
  289. package/dist/70286c33cab463fd576766adecd2d5d9.js +1 -0
  290. package/dist/7080d2a1db1608264a6d9d9fbaf2cce8.js +1 -0
  291. package/dist/711.js +1 -0
  292. package/dist/711.js.map +1 -0
  293. package/dist/712.js +1 -0
  294. package/dist/712.js.map +1 -0
  295. package/dist/714763ddd9bd466c95df7b042900bb87.js +1 -0
  296. package/dist/7222998c10fabd9c824cf8cf540b3b74.js +1 -0
  297. package/dist/724a16861717b5b4f786d24b56b62614.js +1 -0
  298. package/dist/7259bceba25ac1476fc775122a63d249.js +1 -0
  299. package/dist/725da29f1643c2263a437c08a1454aea.js +1 -0
  300. package/dist/732e6b65765e6a792f04be1fa30993a5.js +1 -0
  301. package/dist/74988a42599f1bd6a3a890e5f582da2b.js +1 -0
  302. package/dist/75182a479f7eba2798d943fa230a91ef.js +1 -0
  303. package/dist/755114145e5b97e5571a160a39e716db.js +1 -0
  304. package/dist/764b59bdd3a89e14f88c9d63020551a1.js +1 -0
  305. package/dist/771.js +1 -0
  306. package/dist/771.js.map +1 -0
  307. package/dist/77aaca51c1c32acaf32656d45f4dc017.js +1 -0
  308. package/dist/789.js +1 -0
  309. package/dist/789.js.map +1 -0
  310. package/dist/78c709e6b518df25c267f2a5116de970.js +1 -0
  311. package/dist/79241f85b016a7332f85bb66667459c2.js +1 -0
  312. package/dist/79455ab9a6cd507f5314141cc965093a.js +1 -0
  313. package/dist/7a4e3546b63a5296028f4268f96b82b3.js +1 -0
  314. package/dist/7b839a5c1f6d89538928c8a29003bbda.js +1 -0
  315. package/dist/7c488184a1ff274206e8af2c3aeeb2f6.js +1 -0
  316. package/dist/7e0c1151de4aade1c41d42a40530fc7c.js +1 -0
  317. package/dist/7e4099fc2d04c7c1cf96892b962ba4ec.js +1 -0
  318. package/dist/7e7131507a20f96834597eb2de3e880a.js +1 -0
  319. package/dist/7f007f3f67d9c856e727cec1369f8cba.js +1 -0
  320. package/dist/7f79d4bde67c8013b187889b63e25bce.js +1 -0
  321. package/dist/7f9a9efc9ab681fcbf6400e2adb368a9.js +1 -0
  322. package/dist/8024bca4a1198cc51cbffaa7a907ee99.js +1 -0
  323. package/dist/805cb6232d7a9fa46025d48a43622ecf.js +1 -0
  324. package/dist/806.js +1 -0
  325. package/dist/80ddbf4f0fdde4ddba57130e61043017.js +1 -0
  326. package/dist/81318a3530fb35d5178eb7a4a13a606f.js +1 -0
  327. package/dist/814b9f8056e54d372eefebdae282728e.js +1 -0
  328. package/dist/814fee9e631f1e4ceb9f1983c0349fa9.js +1 -0
  329. package/dist/816.js +1 -0
  330. package/dist/816.js.map +1 -0
  331. package/dist/817edb0c6f9d66f9c0027762edb1d797.js +1 -0
  332. package/dist/82ff13fbc1af95d2d76ca788fd72e607.js +1 -0
  333. package/dist/83387cb17a7680f59240e7b399e3ac2b.js +1 -0
  334. package/dist/834d28f1d0979e2614f1e8643f0b7211.js +1 -0
  335. package/dist/839e3594798c1942d3c92f9acfaa5f0b.js +1 -0
  336. package/dist/83bd353f98aa901411c82b8af58d1296.js +1 -0
  337. package/dist/83e8c44ee2a064e0eac31dbd3c876493.js +1 -0
  338. package/dist/84270e22d4439d15b0d8f392d1338d8e.js +1 -0
  339. package/dist/843c762c24f7fac628d8c62519a7b308.js +1 -0
  340. package/dist/84abf03cc94d264bb38020b4ac5f76e1.js +1 -0
  341. package/dist/852.js +1 -0
  342. package/dist/852.js.map +1 -0
  343. package/dist/875ae58e8015a6d08dbc9d0c04e24638.js +1 -0
  344. package/dist/879d6bc1ca1dde95a9a98dc7a2ab0d06.js +1 -0
  345. package/dist/87bce6f50196688852142c679227b1b9.js +1 -0
  346. package/dist/880ae94877022f7fb0458ced0825eb4c.js +1 -0
  347. package/dist/88730abfeb4a23e692ac7933882f12eb.js +1 -0
  348. package/dist/88ca2076c5882a4abcf74c2b173a9c58.js +1 -0
  349. package/dist/88e2feda80ac8cfb28f1dc0ec833b40d.js +1 -0
  350. package/dist/894052ca1f8f35cc1cf7cfb29ef75027.js +1 -0
  351. package/dist/894edcaf39c3c95818e3949d737ed459.js +1 -0
  352. package/dist/897.js +1 -0
  353. package/dist/897.js.map +1 -0
  354. package/dist/8a31266178067a316bb2503147cdb5cb.js +1 -0
  355. package/dist/8a5127228870aafabfff6111d29313d6.js +1 -0
  356. package/dist/8afd141ad70961656700a70beeb2eb05.js +1 -0
  357. package/dist/8c7616f0adba6a5ac0d2f06ba4ebd696.js +1 -0
  358. package/dist/8d9bb1799d9b98db107e84f10132e17f.js +1 -0
  359. package/dist/8ed58ed9c7e1cb1ae1f2830d29011ffb.js +1 -0
  360. package/dist/8ed5aba33ead1f94e97d5c35a5e93434.js +1 -0
  361. package/dist/8eede17ae9e4d25c3c17b8a8a7fc3c3d.js +1 -0
  362. package/dist/8f9ce72eeabbf31f2d51f4bcfc66d3b0.js +1 -0
  363. package/dist/90812d89181b698975cbb081adcbbcb0.js +1 -0
  364. package/dist/90d2a5c1cd19738e0968b86280050556.js +1 -0
  365. package/dist/90f3dc3c18d447104b63c156cb7fddb5.js +1 -0
  366. package/dist/91beb08737a1bbf071f351fb0acdbf3c.js +1 -0
  367. package/dist/926.js +17 -0
  368. package/dist/926.js.map +1 -0
  369. package/dist/92f4aab5c66f6269c7054c8fbcb3de13.js +1 -0
  370. package/dist/947d538f92dd1e146e4a3c41e4eacb92.js +1 -0
  371. package/dist/950a205e91da7e78226dd785fd6d34db.js +1 -0
  372. package/dist/961.js +1 -0
  373. package/dist/961.js.map +1 -0
  374. package/dist/962969a46fefcace3305abd4d6e14a2e.js +1 -0
  375. package/dist/9696a4229fb787eeb25b26f1274b75ee.js +1 -0
  376. package/dist/96b8d8b5efd11741639659c63a485c27.js +1 -0
  377. package/dist/9807cf1e443a7440371904b6525f37eb.js +1 -0
  378. package/dist/981bd23edacd811f9e4a583d89b544ee.js +1 -0
  379. package/dist/9827973b533de05b338533a0211d97d9.js +1 -0
  380. package/dist/983fccb9f00748c487e889f6c83aa367.js +1 -0
  381. package/dist/98e7bdab44ecb58b3b76ed8025f330c4.js +1 -0
  382. package/dist/9920e03a65566d728a73c7bf18bc5741.js +1 -0
  383. package/dist/9938f30907f64b5d1bc4b641411ff8b8.js +1 -0
  384. package/dist/9b1fd9cf4206cc32e84150c49707d811.js +1 -0
  385. package/dist/9b4de1346c73ba258736f1a3f00fdc14.js +1 -0
  386. package/dist/9b5a6ec07bb0a2daade10189696fc399.js +1 -0
  387. package/dist/9b80d1a12acd18c90e41ca92073122a7.js +1 -0
  388. package/dist/9b9578869f378f8e2afbf85a76c0ac72.js +1 -0
  389. package/dist/9d5bba46df7fb1577fec6cb90f1bb2a7.js +1 -0
  390. package/dist/9ebb9ac2c9c875649c72722bc585d445.js +1 -0
  391. package/dist/9ed8c3550b5c3c1e878d0692f0338cb7.js +1 -0
  392. package/dist/9fd3f255cfd09016ec7f4896bc51864c.js +1 -0
  393. package/dist/a0e32ba94aa4384823d768802b9486e1.js +1 -0
  394. package/dist/a1bb5b3f6078f04941c00f87171dc0ae.js +1 -0
  395. package/dist/a1c12fd9c6c9e1b151ad99a847f09006.js +1 -0
  396. package/dist/a1c8660c5bcc6b6a43a7fb3c351174d9.js +1 -0
  397. package/dist/a223748cd69094dd12b486353b22f479.js +1 -0
  398. package/dist/a2242e107926b9274a7f57b52fba4a29.js +1 -0
  399. package/dist/a2746fc96d535b19c120d4b87dc86ef1.js +1 -0
  400. package/dist/a3a941911290b143d26ceb5e776e1d18.js +1 -0
  401. package/dist/a3dfa410d90c00078f4b015410048f34.js +1 -0
  402. package/dist/a41ce517e26d17d855b7224af9ee433b.js +1 -0
  403. package/dist/a496f663a8cf2dc047e12d8a80d76510.js +1 -0
  404. package/dist/a4bedde07e392f8ebf64341b61f75df2.js +1 -0
  405. package/dist/a4d0588d199cb1afffb42e57ea40fa86.js +1 -0
  406. package/dist/a4d638b976f02f35740be031f996e088.js +1 -0
  407. package/dist/a4e021a4b5d5d65cc87fee17c1886c3f.js +1 -0
  408. package/dist/a52f9ac0e3d582ed7e488aa1dfc33eda.js +1 -0
  409. package/dist/a533e643002830be2da76c9527265860.js +1 -0
  410. package/dist/a569591af2f834ec4b58f43ab7742186.js +1 -0
  411. package/dist/a66a34e3af97cd404f0cf6a5ded342c5.js +1 -0
  412. package/dist/a6eb87af5cd7ae7e4fcba8ec606ec4ba.js +1 -0
  413. package/dist/a709bba98acec5da3ea6258e245514cb.js +1 -0
  414. package/dist/a83211eadd86ef80416334e72774ab11.js +1 -0
  415. package/dist/a8c8aa148991e4ca35ed78cd5ccfcc03.js +1 -0
  416. package/dist/a9cb92db2399f7ac97ad55fe79fe5c20.js +1 -0
  417. package/dist/aa0eee504d52a12d3a30bbd523afcc34.js +1 -0
  418. package/dist/aa5623ec68d23fedb9c9c115c7d99063.js +1 -0
  419. package/dist/ab0128ab12bcb8729032421b40f5f8dd.js +1 -0
  420. package/dist/ab237eed5fd16ab99c06f0d28d465edb.js +1 -0
  421. package/dist/af1635b600efd13f6059eb6ac9deae12.js +1 -0
  422. package/dist/af6fdb556ee3f9065578bb01f81f6216.js +1 -0
  423. package/dist/afba1f28f2baa29eae717d6cb03f5464.js +1 -0
  424. package/dist/b02d982ccb1011197a5a24800b178a0a.js +1 -0
  425. package/dist/b10accbff47791a59b8494225af07025.js +1 -0
  426. package/dist/b1170472ae4b50e3b0070eb991e502fe.js +1 -0
  427. package/dist/b13d991d1e4a016abea3fe5837261690.js +1 -0
  428. package/dist/b1e349371cb9c226905c846706ad8b93.js +1 -0
  429. package/dist/b1f3f77a9279cdb38846ebe13c3438bc.js +1 -0
  430. package/dist/b20cd9acf45420fcacfd923754185663.js +1 -0
  431. package/dist/b243eabb7cb281a20eae3523742d562f.js +1 -0
  432. package/dist/b306285dfd802d091e788de0f96b8cb2.js +1 -0
  433. package/dist/b3147425240a31fc04d7aaf7f0fbd3d3.js +1 -0
  434. package/dist/b33ef9b4202539d3690251cb8213a034.js +1 -0
  435. package/dist/b3f1431b9e6d9e6632a93c2cd89f945b.js +1 -0
  436. package/dist/b808fb222140a85b23ebbe0fffa906d9.js +1 -0
  437. package/dist/b881dca9d9a80f61d87374b4bd5a2dd5.js +1 -0
  438. package/dist/b8b6bd460e7da0ba8f3b2218327966ee.js +1 -0
  439. package/dist/b934b22e8f8a8b1ba81dbc2cf058b0cd.js +1 -0
  440. package/dist/b953ce2f19e7291598cd9c05128133c1.js +1 -0
  441. package/dist/b992b348ffb6453e4a02a60e71c5304e.js +1 -0
  442. package/dist/b9ca55e245b8bbed49058e9dada2dd14.js +1 -0
  443. package/dist/ba6b8b3e06cd9d0aee9c69278ee84647.js +1 -0
  444. package/dist/bb5476e5e0c5368b031ba774c0f23999.js +1 -0
  445. package/dist/bb5bab7a675544fe31ddb7f4a77dffb9.js +1 -0
  446. package/dist/bb75a64c7f1e8f7d792e8115710299cb.js +1 -0
  447. package/dist/bc27b2d7127da36a976f00f889810836.js +1 -0
  448. package/dist/bcfde0a9c69146bbfb702f12811a4aa4.js +1 -0
  449. package/dist/bd309bb3f23f2bfbcf914f2e71474ab5.js +1 -0
  450. package/dist/bd459306ebcabc90fabccdfbbcd199ea.js +1 -0
  451. package/dist/be75b76e74c78535966ec8aaa7d46bec.js +1 -0
  452. package/dist/bf37de323316c6ae5745fc11fd576b1c.js +1 -0
  453. package/dist/c1a1f4ba29aa2d9a0b1a1abe5cfee0c6.js +1 -0
  454. package/dist/c3832579be376308fa819b04e7b0c66f.js +1 -0
  455. package/dist/c3f345c994392d97785925e790513a9f.js +1 -0
  456. package/dist/c4c991b8f5eb242f1e220e5f568fdfbc.js +1 -0
  457. package/dist/c4e58637b4d14c303e29d3ce4b4a210f.js +1 -0
  458. package/dist/c51840077c684be0e7e13339f85cd4a9.js +1 -0
  459. package/dist/c530988d2b1966fd10a4d99fa3877e1b.js +1 -0
  460. package/dist/c64d6e1e72024bb5d3d3e9bfc19d183d.js +1 -0
  461. package/dist/c80e89199aef31e48addb2b35ea96365.js +1 -0
  462. package/dist/c81814fb2ec8bab7bb415b5a40ed93b5.js +1 -0
  463. package/dist/c8230f96396f0378d032dce2be3dce66.js +1 -0
  464. package/dist/c8803facc1e76ecd4b6ba756118f1a6d.js +1 -0
  465. package/dist/c8deee9d1d08e50285fe2b1c2897bca5.js +1 -0
  466. package/dist/c9e94edb706994da8aee83c3593cb2d0.js +1 -0
  467. package/dist/cb0d121a88477f943960f5ad60602c22.js +1 -0
  468. package/dist/cb4380c2fd4e67769f509b2be529d7b2.js +1 -0
  469. package/dist/cb4bb785934eeca9b408e892ae6b73b7.js +1 -0
  470. package/dist/cb5746e29527a2fdb9f857a121e086ed.js +1 -0
  471. package/dist/cb652f200fc3dd740b2e7f678a9272ea.js +1 -0
  472. package/dist/cb9910e014b468ada91393696fcad206.js +1 -0
  473. package/dist/cbdbd623038183a8c068dd24ecd90682.js +1 -0
  474. package/dist/cbdc4ca43a8c940a6c3f59a8b6f17df5.js +1 -0
  475. package/dist/cc65d108f0e7cfb200de1d0bcf115005.js +1 -0
  476. package/dist/cc715c90d57b30965fc297a12746d6b5.js +1 -0
  477. package/dist/cd9a17f94a922c7c88000b1b3cdd67df.js +1 -0
  478. package/dist/cf1706c8b4a4eecbc161e915a4be16ca.js +1 -0
  479. package/dist/cf188b3f83735389d47bb12fc9f7069a.js +1 -0
  480. package/dist/cf26dd07f19bcb5b7efbf057a6cfeb8f.js +1 -0
  481. package/dist/cf3f6b1c74c72cb5d02870022dbc9f94.js +1 -0
  482. package/dist/cf909ad6e321c2f98750f5c3581556f8.js +1 -0
  483. package/dist/cf9c7cbfc2b609b9ae59daeab82719c4.js +1 -0
  484. package/dist/d1db2c4677dd2ee7a0c690c58798a013.js +1 -0
  485. package/dist/d43ad5f9bad9a042b49b2592c7639c28.js +1 -0
  486. package/dist/d4f1a314cb3668f8e17f24bccf0229b6.js +1 -0
  487. package/dist/d4f5981ee5a73d8a6e19112f2ffcb72c.js +1 -0
  488. package/dist/d542dda7308361c34af2afb9b70d755a.js +1 -0
  489. package/dist/d5999827bd3af6b813a871de344b109a.js +1 -0
  490. package/dist/d5a6140d581e5c4eb200259ce372f40b.js +1 -0
  491. package/dist/d5f79987405c2169278f8de37bcc9d05.js +1 -0
  492. package/dist/d76046afaf4d32b0f0afb63b4fabc680.js +1 -0
  493. package/dist/d78d3b050ea95b068380d975fd413fd7.js +1 -0
  494. package/dist/d7d616d4aa8fd3f51d681242853dcde9.js +1 -0
  495. package/dist/d83cda12aee0c87c8b381a1234bf7798.js +1 -0
  496. package/dist/d85853bab3b213652aee023adecfb690.js +1 -0
  497. package/dist/da4a891d81f066ebf82f298c53bd4ed8.js +1 -0
  498. package/dist/da740c1b29a85b999a6874b59a1baeef.js +1 -0
  499. package/dist/db8ca5cfb6fe4aaef215f116f6991784.js +1 -0
  500. package/dist/dc7ab72407b0b44ef5dae159373de53b.js +1 -0
  501. package/dist/dc8240db39815020378555a4d80571c3.js +1 -0
  502. package/dist/dc83a73f0eb89665520bbb6672dfa3cb.js +1 -0
  503. package/dist/dc932cde2fbfca8e2901fb693968b131.js +1 -0
  504. package/dist/ddbc961769cd2ff4d4a7a136168ebf4c.js +1 -0
  505. package/dist/de0fd4fd7c2d7a4887cbc99eed91f797.js +1 -0
  506. package/dist/de73b4d2a9ed4bcb851f9141e303636d.js +1 -0
  507. package/dist/e00b330413304d60c26e164da7f9fe0c.js +1 -0
  508. package/dist/e0adad8a8579bf99f3e22f7c214a5c64.js +1 -0
  509. package/dist/e0c565aadda4787ba4ef4456c0a7ee29.js +1 -0
  510. package/dist/e0fa6a4fe8bff90d50ce812e666957ca.js +1 -0
  511. package/dist/e2b38a8393be2cf23f3894ace3efb1c3.js +1 -0
  512. package/dist/e2fe8f0d4fd950b20b30fabaea96b3f8.js +1 -0
  513. package/dist/e37ac12436bcd0536ec98ae8470a1228.js +1 -0
  514. package/dist/e4917fa7632b01d28e99304d32d989f7.js +1 -0
  515. package/dist/e61779df91186b23e7adf2d1968b2708.js +1 -0
  516. package/dist/e63fce237243190962fcc3b12b387e1b.js +1 -0
  517. package/dist/e6ad50b520736b595970c9e07029c3f1.js +1 -0
  518. package/dist/e7e1a807af3160b342e0a3550cf8f7c5.js +1 -0
  519. package/dist/e7f37e0f2b6113039c45a326264c4d36.js +1 -0
  520. package/dist/e874d975c9128dc6eb9a513d088bed9f.js +1 -0
  521. package/dist/e9382a0e67b22188c75e9418de1c9295.js +1 -0
  522. package/dist/e9c8f7e13e00284ce126890bf7ac46fd.js +1 -0
  523. package/dist/eaa55a522fb2cb2f0287711f42344984.js +1 -0
  524. package/dist/eb0b62e1895dcf7491419aa728f00c38.js +1 -0
  525. package/dist/ec7b3f184238605a5239da7559e6cff9.js +1 -0
  526. package/dist/ec901efce9bc8572f27155236a447e62.js +1 -0
  527. package/dist/ecdb4966f685f3e44b1f28fae46827a3.js +1 -0
  528. package/dist/ecff3d4bbf59ef41230960af46098e74.js +1 -0
  529. package/dist/ee41eb1fd1d1c87c45e818b5a8a65cf8.js +1 -0
  530. package/dist/ee5d36473f84db2af26d82efd69a38ec.js +1 -0
  531. package/dist/ef27f3b478f5d1558c2382b4bc0866bb.js +1 -0
  532. package/dist/ef87482c92662e8b69a21f47588474ea.js +1 -0
  533. package/dist/efc14cdf19554635e477781704353ec2.js +1 -0
  534. package/dist/eff4371180dfac54de25ed3a0105d82f.js +1 -0
  535. package/dist/ethiopia-esm-billing-app.js +6 -0
  536. package/dist/ethiopia-esm-billing-app.js.buildmanifest.json +1449 -0
  537. package/dist/ethiopia-esm-billing-app.js.map +1 -0
  538. package/dist/f15cbf0d23cba4a313f3f2acfef5370c.js +1 -0
  539. package/dist/f326f2f263b1498fedbe1d07d7254d10.js +1 -0
  540. package/dist/f694018779de5916e404c0fa902f34c1.js +1 -0
  541. package/dist/f69b43eccd9faed6d9182fac0b2a176d.js +1 -0
  542. package/dist/f6b33aded7ae7504bfcc4550925cccb0.js +1 -0
  543. package/dist/f6d7091e70dee6c74956acfef2464d08.js +1 -0
  544. package/dist/f6dc1ef066da7f1c3e5c5fc1462f7be0.js +1 -0
  545. package/dist/fa0c561bb37040fc8145e5c70ea64912.js +1 -0
  546. package/dist/fac0ce75e0690947a9e9e6f5b35c1ea8.js +1 -0
  547. package/dist/fb393a7455b47f3d4fc30cf219d5145c.js +1 -0
  548. package/dist/fd00121832e53db8249f7985d80ccd44.js +1 -0
  549. package/dist/fd3859a700b456e06c65c0cf6b0af05c.js +1 -0
  550. package/dist/fd5bc50b18c9f46380cbe5ec1ac2127b.js +1 -0
  551. package/dist/fd9645aaf1f70c8abc562be41bee25fc.js +1 -0
  552. package/dist/fe9499c0a5444f7f42843fa00fb355cb.js +1 -0
  553. package/dist/ffd3b83e8b5878f4785591ff54b1dfff.js +1 -0
  554. package/dist/main.js +32 -0
  555. package/dist/main.js.map +1 -0
  556. package/dist/routes.json +1 -0
  557. package/jest.config.js +8 -0
  558. package/package.json +52 -0
  559. package/rspack.config.js +1 -0
  560. package/src/autosuggest/autosuggest.component.tsx +203 -0
  561. package/src/autosuggest/autosuggest.scss +68 -0
  562. package/src/autosuggest/patient-search-info.component.tsx +29 -0
  563. package/src/autosuggest/patient-search-info.scss +37 -0
  564. package/src/autosuggest/search-empty-state.component.tsx +27 -0
  565. package/src/autosuggest/search-empty-state.scss +18 -0
  566. package/src/benefits-package/benefits/benefits-header.component.tsx +28 -0
  567. package/src/benefits-package/benefits/benefits.component.tsx +74 -0
  568. package/src/benefits-package/benefits/benefits.scss +61 -0
  569. package/src/benefits-package/benefits-package.component.tsx +37 -0
  570. package/src/benefits-package/benefits-package.mock.ts +145 -0
  571. package/src/benefits-package/benefits-package.resources.tsx +58 -0
  572. package/src/benefits-package/benefits-package.scss +23 -0
  573. package/src/benefits-package/empty-state/empty-state.component.tsx +23 -0
  574. package/src/benefits-package/empty-state/empty-state.scss +32 -0
  575. package/src/benefits-package/forms/benefit-pre-auth-form.workspace.tsx +292 -0
  576. package/src/benefits-package/forms/benefits-pre-auth-form.scss +66 -0
  577. package/src/benefits-package/forms/interventions-form.component.tsx +94 -0
  578. package/src/benefits-package/forms/packages-and-interventions-form.component.tsx +117 -0
  579. package/src/benefits-package/forms/preauth.resources.ts +17 -0
  580. package/src/benefits-package/table/benebfits-table.scss +53 -0
  581. package/src/benefits-package/table/benefits-table.component.tsx +90 -0
  582. package/src/benefits-package/table/generic-data-table.scss +57 -0
  583. package/src/benefits-package/table/generic_data_table.component.tsx +96 -0
  584. package/src/benefits-package/table/temporary-pre-auth-responses.json +392 -0
  585. package/src/bill-administration/bill-deposit/components/dashboard/bill-deposit-dashboard.component.tsx +35 -0
  586. package/src/bill-administration/bill-deposit/components/forms/add-deposit.workspace.scss +26 -0
  587. package/src/bill-administration/bill-deposit/components/forms/add-deposit.workspace.tsx +212 -0
  588. package/src/bill-administration/bill-deposit/components/forms/deposit-transactions/deposit-transaction.workspace.scss +33 -0
  589. package/src/bill-administration/bill-deposit/components/forms/deposit-transactions/deposit-transaction.workspace.tsx +257 -0
  590. package/src/bill-administration/bill-deposit/components/modal/delete-deposit.modal.tsx +58 -0
  591. package/src/bill-administration/bill-deposit/components/modal/reverse-transaction.modal.tsx +59 -0
  592. package/src/bill-administration/bill-deposit/components/search/bill-deposit-search.component.tsx +106 -0
  593. package/src/bill-administration/bill-deposit/components/search/bill-deposit-search.scss +107 -0
  594. package/src/bill-administration/bill-deposit/components/search/components/deposit-table.tsx +150 -0
  595. package/src/bill-administration/bill-deposit/components/search/components/patient-info.tsx +38 -0
  596. package/src/bill-administration/bill-deposit/components/search/components/patient-search.tsx +24 -0
  597. package/src/bill-administration/bill-deposit/components/search/components/transaction-list/transaction-list.component.tsx +66 -0
  598. package/src/bill-administration/bill-deposit/components/search/components/transaction-list/transaction-list.scss +5 -0
  599. package/src/bill-administration/bill-deposit/constants/bill-deposit.constants.ts +25 -0
  600. package/src/bill-administration/bill-deposit/hooks/useBillDeposit.ts +43 -0
  601. package/src/bill-administration/bill-deposit/styles/bill-deposit-dashboard.scss +11 -0
  602. package/src/bill-administration/bill-deposit/types/bill-deposit.types.ts +61 -0
  603. package/src/bill-administration/bill-deposit/utils/bill-deposit.utils.ts +92 -0
  604. package/src/bill-administration/billable-exemption/billable-exemptions/action-buttons/action-buttons.component.tsx +18 -0
  605. package/src/bill-administration/billable-exemption/billable-exemptions/action-buttons/action-buttons.scss +12 -0
  606. package/src/bill-administration/billable-exemption/billable-exemptions/billable-exemptions-viewer.component.tsx +172 -0
  607. package/src/bill-administration/billable-exemption/billable-exemptions/billable-exemptions.scss +75 -0
  608. package/src/bill-administration/billable-exemption/billable-exemptions/modals/save-schema-modal.scss +39 -0
  609. package/src/bill-administration/billable-exemption/billable-exemptions/modals/save-schema.modal.tsx +88 -0
  610. package/src/bill-administration/billable-exemption/billable-exemptions/schema-editor/schema-editor.component.tsx +179 -0
  611. package/src/bill-administration/billable-exemption/billable-exemptions/schema-editor/schema-editor.scss +36 -0
  612. package/src/bill-administration/billable-exemption/billable-exemptions/schema-editor/schema-viewer-component.tsx +93 -0
  613. package/src/bill-administration/billable-exemption/billable-exemptions/schema-editor/schema-viewer.scss +28 -0
  614. package/src/bill-administration/billable-exemption/billable-exemptions/schema-editor/schema-viewer.test.tsx +50 -0
  615. package/src/bill-administration/billable-exemption/billable-exemptions.component.tsx +16 -0
  616. package/src/bill-administration/dashboard/dashboard-container.component.tsx +26 -0
  617. package/src/bill-administration/dashboard/dashboard-container.scss +2 -0
  618. package/src/bill-administration/dashboard.meta.ts +48 -0
  619. package/src/bill-administration/home.component.tsx +26 -0
  620. package/src/bill-administration/home.scss +10 -0
  621. package/src/bill-administration/index.tsx +71 -0
  622. package/src/bill-administration/patient-billing/bill-actions/cancel-line-item.component.tsx +29 -0
  623. package/src/bill-administration/patient-billing/bill-actions/delete-bill-action-button.component.tsx +37 -0
  624. package/src/bill-administration/patient-billing/bill-actions/edit-line-item.component.tsx +31 -0
  625. package/src/bill-administration/patient-billing/bill-actions/refund-line-item.component.tsx +34 -0
  626. package/src/bill-administration/patient-billing/bill-actions/waive-bill-action-button.component.tsx +37 -0
  627. package/src/bill-administration/patient-billing/bill-line-items.component.tsx +85 -0
  628. package/src/bill-administration/patient-billing/modals/cancel-bill.scss +29 -0
  629. package/src/bill-administration/patient-billing/modals/delete-bill.modal.tsx +122 -0
  630. package/src/bill-administration/patient-billing/modals/delete-billable-service.modal.tsx +79 -0
  631. package/src/bill-administration/patient-billing/modals/delete-billable-service.test.tsx +101 -0
  632. package/src/bill-administration/patient-billing/modals/delete-services.scss +28 -0
  633. package/src/bill-administration/patient-billing/modals/refund-bill.modal.tsx +105 -0
  634. package/src/bill-administration/patient-billing/patient-billing.component.tsx +64 -0
  635. package/src/bill-administration/patient-billing/patient-billing.scss +31 -0
  636. package/src/bill-administration/patient-billing/patient-bills.component.tsx +147 -0
  637. package/src/bill-administration/patient-billing/workspaces/cancel-bill/cance-bill.resource.tsx +47 -0
  638. package/src/bill-administration/patient-billing/workspaces/cancel-bill/cancel-bill.scss +40 -0
  639. package/src/bill-administration/patient-billing/workspaces/cancel-bill/cancel-bill.workspace.tsx +128 -0
  640. package/src/bill-administration/patient-billing/workspaces/create-bill/create-bill.style.scss +40 -0
  641. package/src/bill-administration/patient-billing/workspaces/create-bill/create-bill.workspace.test.tsx +271 -0
  642. package/src/bill-administration/patient-billing/workspaces/create-bill/create-bill.workspace.tsx +295 -0
  643. package/src/bill-administration/patient-billing/workspaces/edit-bill/edit-bill-form.test.tsx +90 -0
  644. package/src/bill-administration/patient-billing/workspaces/edit-bill/edit-bill-form.workspace.tsx +190 -0
  645. package/src/bill-administration/patient-billing/workspaces/edit-bill/edit-bill-util.ts +60 -0
  646. package/src/bill-administration/patient-billing/workspaces/edit-bill/edit-bill.scss +40 -0
  647. package/src/bill-administration/patient-billing/workspaces/edit-bill/useEditBillFormSchema.tsx +92 -0
  648. package/src/bill-administration/patient-billing/workspaces/waive-bill/waive-bill-form.scss +57 -0
  649. package/src/bill-administration/patient-billing/workspaces/waive-bill/waive-bill-form.test.tsx +173 -0
  650. package/src/bill-administration/patient-billing/workspaces/waive-bill/waive-bill-form.workspace.tsx +232 -0
  651. package/src/bill-administration/payment-history/filters/bill-filter.test.ts +124 -0
  652. package/src/bill-administration/payment-history/filters/bill-filter.ts +42 -0
  653. package/src/bill-administration/payment-history/filters/cashier-filter.component.tsx +61 -0
  654. package/src/bill-administration/payment-history/filters/date-ranger-filter.component.tsx +38 -0
  655. package/src/bill-administration/payment-history/filters/filter-dashboard.scss +15 -0
  656. package/src/bill-administration/payment-history/filters/filter-dashboard.tsx +17 -0
  657. package/src/bill-administration/payment-history/filters/filter.component.tsx +15 -0
  658. package/src/bill-administration/payment-history/filters/filter.scss +5 -0
  659. package/src/bill-administration/payment-history/filters/payment-type-filter.component.tsx +61 -0
  660. package/src/bill-administration/payment-history/filters/service-type-filter.component.tsx +65 -0
  661. package/src/bill-administration/payment-history/filters/timesheets-filter.component.tsx +68 -0
  662. package/src/bill-administration/payment-history/payment-dashboard.component.tsx +39 -0
  663. package/src/bill-administration/payment-history/payment-dashboard.scss +8 -0
  664. package/src/bill-administration/payment-history/payment-history-table.component.tsx +174 -0
  665. package/src/bill-administration/payment-history/payment-history-viewer.component.tsx +40 -0
  666. package/src/bill-administration/payment-history/payment-history.component.tsx +15 -0
  667. package/src/bill-administration/payment-history/payment-history.scss +86 -0
  668. package/src/bill-administration/payment-history/payment-method-distribution.component.tsx +100 -0
  669. package/src/bill-administration/payment-history/useBillServiceTypes.tsx +15 -0
  670. package/src/bill-administration/payment-history/usePaymentFilterContext.tsx +110 -0
  671. package/src/bill-administration/payment-history/usePaymentModeGroupTotals.tsx +42 -0
  672. package/src/bill-administration/payment-history/usePaymentTransactionHistory.tsx +34 -0
  673. package/src/bill-administration/payment-modes/delete-payment-mode.modal.scss +33 -0
  674. package/src/bill-administration/payment-modes/delete-payment-mode.modal.tsx +62 -0
  675. package/src/bill-administration/payment-modes/delete-payment-mode.test.tsx +56 -0
  676. package/src/bill-administration/payment-modes/payment-attributes/payment-mode-attributes.component.tsx +156 -0
  677. package/src/bill-administration/payment-modes/payment-attributes/payment-mode-attributes.scss +10 -0
  678. package/src/bill-administration/payment-modes/payment-mode-dashboard.component.tsx +222 -0
  679. package/src/bill-administration/payment-modes/payment-mode-dashboard.scss +32 -0
  680. package/src/bill-administration/payment-modes/payment-mode-home.component.tsx +18 -0
  681. package/src/bill-administration/payment-modes/payment-mode.resource.tsx +49 -0
  682. package/src/bill-administration/payment-modes/payment-mode.workspace.scss +33 -0
  683. package/src/bill-administration/payment-modes/payment-mode.workspace.test.tsx +207 -0
  684. package/src/bill-administration/payment-modes/payment-mode.workspace.tsx +223 -0
  685. package/src/bill-administration/payment-modes/usePaymentModeFormSchema.tsx +52 -0
  686. package/src/bill-administration/payment-points/clock-in-boundary.component.tsx +35 -0
  687. package/src/bill-administration/payment-points/create-payment-point.component.tsx +104 -0
  688. package/src/bill-administration/payment-points/payment-point/clock-in.modal.tsx +162 -0
  689. package/src/bill-administration/payment-points/payment-point/clock-in.scss +11 -0
  690. package/src/bill-administration/payment-points/payment-point/clock-out.modal.tsx +65 -0
  691. package/src/bill-administration/payment-points/payment-point/payment-point.component.tsx +30 -0
  692. package/src/bill-administration/payment-points/payment-points-styles.scss +16 -0
  693. package/src/bill-administration/payment-points/payment-points-table.component.tsx +101 -0
  694. package/src/bill-administration/payment-points/payment-points.component.tsx +33 -0
  695. package/src/bill-administration/payment-points/payment-points.resource.ts +131 -0
  696. package/src/bill-administration/payment-points/use-clock-in-status.ts +14 -0
  697. package/src/bill-administration/service-catalog/billable-service.resource.tsx +78 -0
  698. package/src/bill-administration/service-catalog/bulk-import-billable-service.modal.tsx +194 -0
  699. package/src/bill-administration/service-catalog/charge-summary-table.component.test.tsx +199 -0
  700. package/src/bill-administration/service-catalog/charge-summary-table.component.tsx +236 -0
  701. package/src/bill-administration/service-catalog/charge-summary-table.scss +19 -0
  702. package/src/bill-administration/service-catalog/charge-summary.resource.tsx +42 -0
  703. package/src/bill-administration/service-catalog/clinical-charges.component.tsx +36 -0
  704. package/src/bill-administration/service-catalog/clinical-charges.scss +259 -0
  705. package/src/bill-administration/service-catalog/commodity/commodity-form.scss +61 -0
  706. package/src/bill-administration/service-catalog/commodity/commodity-form.workspace.test.tsx +307 -0
  707. package/src/bill-administration/service-catalog/commodity/commodity-form.workspace.tsx +215 -0
  708. package/src/bill-administration/service-catalog/commodity/stock-search.component.tsx +107 -0
  709. package/src/bill-administration/service-catalog/commodity/useCommodityItem.tsx +59 -0
  710. package/src/bill-administration/service-catalog/form-helper.ts +225 -0
  711. package/src/bill-administration/service-catalog/form-schemas.tsx +33 -0
  712. package/src/bill-administration/service-catalog/services/concept-search.component.tsx +67 -0
  713. package/src/bill-administration/service-catalog/services/price.component.tsx +82 -0
  714. package/src/bill-administration/service-catalog/services/service-form.scss +59 -0
  715. package/src/bill-administration/service-catalog/services/service-form.workspace.test.tsx +228 -0
  716. package/src/bill-administration/service-catalog/services/service-form.workspace.tsx +301 -0
  717. package/src/bill-history/bill-history.component.tsx +193 -0
  718. package/src/bill-history/bill-history.scss +168 -0
  719. package/src/bill-history/bill-history.test.tsx +118 -0
  720. package/src/billable-services/billable-orders/drug-order/drug-order.component.tsx +65 -0
  721. package/src/billable-services/billable-orders/drug-order/drug-order.scss +31 -0
  722. package/src/billable-services/billable-orders/order-actions/components/base-order-button.component.tsx +42 -0
  723. package/src/billable-services/billable-orders/order-actions/components/generic-button.component.tsx +64 -0
  724. package/src/billable-services/billable-orders/order-actions/components/medication-order-button.component.tsx +115 -0
  725. package/src/billable-services/billable-orders/order-actions/components/medication-order-button.scss +11 -0
  726. package/src/billable-services/billable-orders/order-actions/components/order-action-button.component.tsx +59 -0
  727. package/src/billable-services/billable-orders/order-actions/hooks/useBillStatus.ts +12 -0
  728. package/src/billable-services/billable-orders/order-actions/hooks/useLabOrderAction.ts +55 -0
  729. package/src/billable-services/billable-orders/order-actions/hooks/useMedicationOrderAction.ts +128 -0
  730. package/src/billable-services/billable-orders/order-actions/hooks/useModalHandler.ts +103 -0
  731. package/src/billable-services/billable-orders/order-actions/styles/order-action.scss +0 -0
  732. package/src/billable-services/billable-orders/test-order/dispense.resource.tsx +89 -0
  733. package/src/billable-services/billable-orders/test-order/imaging-order.component.tsx +34 -0
  734. package/src/billable-services/billable-orders/test-order/lab-order.component.tsx +34 -0
  735. package/src/billable-services/billable-orders/test-order/price-info-order.componet.tsx +60 -0
  736. package/src/billable-services/billable-orders/test-order/price-info-order.scss +20 -0
  737. package/src/billable-services/billable-orders/test-order/procedure-order.component.tsx +34 -0
  738. package/src/billable-services/billable-orders/test-order/test-order-action.resource.tsx +86 -0
  739. package/src/billable-services/billable-orders/test-order/test-order-action.scss +12 -0
  740. package/src/billable-services/billable-orders/useBillableItem.tsx +69 -0
  741. package/src/billable-services/utils.ts +60 -0
  742. package/src/billing-dashboard/billing-dashboard.component.tsx +34 -0
  743. package/src/billing-dashboard/billing-dashboard.scss +72 -0
  744. package/src/billing-dashboard/clock-in-button.component.tsx +40 -0
  745. package/src/billing-dashboard/clock-out-strip.component.tsx +63 -0
  746. package/src/billing-form/billing-checkin-form.component.tsx +153 -0
  747. package/src/billing-form/billing-checkin-form.scss +14 -0
  748. package/src/billing-form/billing-checkin-form.test.tsx +146 -0
  749. package/src/billing-form/billing-form.component.tsx +237 -0
  750. package/src/billing-form/billing-form.scss +67 -0
  751. package/src/billing-form/check-in-form.utils.tsx +13 -0
  752. package/src/billing-form/helper.ts +2 -0
  753. package/src/billing-form/hie.resource.tsx +71 -0
  754. package/src/billing-form/social-health-authority/patient-banner-sha-status.extension.tsx +93 -0
  755. package/src/billing-form/social-health-authority/patient-banner-sha-status.scss +62 -0
  756. package/src/billing-form/social-health-authority/sha-number-validity.component.tsx +125 -0
  757. package/src/billing-form/social-health-authority/sha-number-validity.scss +88 -0
  758. package/src/billing-form/visit-attributes/visit-attributes-form.component.tsx +198 -0
  759. package/src/billing-form/visit-attributes/visit-attributes-form.scss +18 -0
  760. package/src/billing-header/billing-header.component.tsx +33 -0
  761. package/src/billing-header/billing-header.scss +83 -0
  762. package/src/billing-header/billing-illustration.component.tsx +30 -0
  763. package/src/billing-tabs/billing-tabs.scss +8 -0
  764. package/src/billing-tabs/billling-tabs.component.tsx +54 -0
  765. package/src/billing.resource.ts +298 -0
  766. package/src/bills-table/bills-table.component.tsx +292 -0
  767. package/src/bills-table/bills-table.scss +189 -0
  768. package/src/bills-table/bills-table.test.tsx +135 -0
  769. package/src/claims/claims-management/generic-table/generic-table.component.tsx +165 -0
  770. package/src/claims/claims-management/generic-table/generic-table.scss +40 -0
  771. package/src/claims/claims-management/header/claims-header.component.tsx +35 -0
  772. package/src/claims/claims-management/header/claims-header.scss +70 -0
  773. package/src/claims/claims-management/header/claims-illustration.component.tsx +13 -0
  774. package/src/claims/claims-management/header/filter-header.component.tsx +75 -0
  775. package/src/claims/claims-management/header/filter-header.scss +13 -0
  776. package/src/claims/claims-management/main/claims-overview-main.component.tsx +17 -0
  777. package/src/claims/claims-management/main/claims-pre-auth-main.component.tsx +36 -0
  778. package/src/claims/claims-management/main/claims-preauth.scss +13 -0
  779. package/src/claims/claims-management/table/claim-summary-modal/claim-summary.modal.tsx +284 -0
  780. package/src/claims/claims-management/table/claim-summary-modal/claim-summary.scss +252 -0
  781. package/src/claims/claims-management/table/claim-table.component.tsx +288 -0
  782. package/src/claims/claims-management/table/claims-list-table.component.tsx +16 -0
  783. package/src/claims/claims-management/table/claims-list-table.scss +45 -0
  784. package/src/claims/claims-management/table/hook/table.resource.tsx +9 -0
  785. package/src/claims/claims-management/table/manage-claim-request.modal.tsx +184 -0
  786. package/src/claims/claims-management/table/pre-auth-table.component.tsx +81 -0
  787. package/src/claims/claims-management/table/preauth-table.tmp.component.tsx +31 -0
  788. package/src/claims/claims-management/table/table-mock-up-data.ts +112 -0
  789. package/src/claims/claims-management/table/use-facility-claims.ts +43 -0
  790. package/src/claims/claims-wrap/claims-main-component.tsx +35 -0
  791. package/src/claims/claims-wrap/claims-main.scss +28 -0
  792. package/src/claims/dashboard/claims-breakdown/claims-breakdown.component.tsx +19 -0
  793. package/src/claims/dashboard/claims-breakdown/claims-breakdown.scss +35 -0
  794. package/src/claims/dashboard/claims-dashboard.component.tsx +41 -0
  795. package/src/claims/dashboard/form/claims-explanation-and-justification-form-input.component.tsx +192 -0
  796. package/src/claims/dashboard/form/claims-form.component.tsx +719 -0
  797. package/src/claims/dashboard/form/claims-form.mocks.ts +44 -0
  798. package/src/claims/dashboard/form/claims-form.resource.ts +161 -0
  799. package/src/claims/dashboard/form/claims-form.scss +161 -0
  800. package/src/claims/dashboard/form/claims-supporting-documents-inputs.form.tsx +180 -0
  801. package/src/claims/dashboard/header/claims-header.component.tsx +23 -0
  802. package/src/claims/dashboard/header/claims-header.scss +23 -0
  803. package/src/claims/dashboard/table/claims-table.component.tsx +206 -0
  804. package/src/claims/dashboard/table/claims-table.scss +106 -0
  805. package/src/claims/make-claims.component.tsx +28 -0
  806. package/src/claims/make-claims.scss +7 -0
  807. package/src/claims/metrics/metrics-card.component.tsx +36 -0
  808. package/src/claims/metrics/metrics-card.scss +75 -0
  809. package/src/claims/metrics/metrics-header.component.tsx +16 -0
  810. package/src/claims/metrics/metrics-header.scss +16 -0
  811. package/src/claims/metrics/metrics.component.tsx +49 -0
  812. package/src/claims/metrics/metrics.scss +13 -0
  813. package/src/claims/utils.ts +50 -0
  814. package/src/config-schema.ts +248 -0
  815. package/src/constants.ts +24 -0
  816. package/src/dashboard.meta.ts +25 -0
  817. package/src/declarations.d.ts +2 -0
  818. package/src/helpers/README.md +174 -0
  819. package/src/helpers/currency.test.ts +114 -0
  820. package/src/helpers/currency.ts +137 -0
  821. package/src/helpers/excelExport.ts +31 -0
  822. package/src/helpers/functions.ts +83 -0
  823. package/src/helpers/index.ts +1 -0
  824. package/src/hooks/benefits.mock.ts +391 -0
  825. package/src/hooks/getMflCode.tsx +19 -0
  826. package/src/hooks/use-payments-reconciler.tsx +75 -0
  827. package/src/hooks/use-pre-auth-requests.ts +256 -0
  828. package/src/hooks/use-rendered-rows.ts +90 -0
  829. package/src/hooks/useBillableServices.ts +18 -0
  830. package/src/hooks/useExemptionSchema.tsx +49 -0
  831. package/src/hooks/useFacilityLevel.ts +27 -0
  832. package/src/hooks/useInterventions.ts +50 -0
  833. package/src/hooks/useOTP.ts +677 -0
  834. package/src/hooks/usePackages.ts +43 -0
  835. package/src/hooks/usePatient.ts +12 -0
  836. package/src/hooks/usePatientAttributes.tsx +26 -0
  837. package/src/hooks/usePatientDiagnosis.ts +26 -0
  838. package/src/hooks/usePatientIdentifierType.ts +26 -0
  839. package/src/hooks/usePaymentSchema.tsx +42 -0
  840. package/src/hooks/usePhoneNumber.ts +35 -0
  841. package/src/hooks/usePrintPreview.tsx +17 -0
  842. package/src/hooks/useProvider.ts +19 -0
  843. package/src/hooks/useProviderList.ts +19 -0
  844. package/src/hooks/useRequestStatus.tsx +211 -0
  845. package/src/index.ts +159 -0
  846. package/src/invoice/invoice-actions.component.tsx +240 -0
  847. package/src/invoice/invoice-table.component.tsx +202 -0
  848. package/src/invoice/invoice-table.scss +91 -0
  849. package/src/invoice/invoice.component.tsx +132 -0
  850. package/src/invoice/invoice.resource.ts +151 -0
  851. package/src/invoice/invoice.scss +186 -0
  852. package/src/invoice/invoice.test.tsx +220 -0
  853. package/src/invoice/payments/initiate-payment/initiate-payment.component.tsx +207 -0
  854. package/src/invoice/payments/initiate-payment/initiate-payment.scss +48 -0
  855. package/src/invoice/payments/invoice-breakdown/invoice-breakdown.component.tsx +17 -0
  856. package/src/invoice/payments/invoice-breakdown/invoice-breakdown.scss +29 -0
  857. package/src/invoice/payments/payment-form/payment-form.component.tsx +137 -0
  858. package/src/invoice/payments/payment-form/payment-form.scss +54 -0
  859. package/src/invoice/payments/payment-form/payment.scss +33 -0
  860. package/src/invoice/payments/payment-form/payment.workspace.tsx +195 -0
  861. package/src/invoice/payments/payment-form/use-payment-form.ts +77 -0
  862. package/src/invoice/payments/payment-history/payment-history.component.tsx +68 -0
  863. package/src/invoice/payments/payment-status-ckecker.modal.tsx +136 -0
  864. package/src/invoice/payments/payments.component.tsx +273 -0
  865. package/src/invoice/payments/payments.resource.ts +65 -0
  866. package/src/invoice/payments/payments.scss +71 -0
  867. package/src/invoice/payments/payments.test.tsx +321 -0
  868. package/src/invoice/payments/utils.ts +205 -0
  869. package/src/invoice/payments/visit-tags/visit-attribute.component.tsx +21 -0
  870. package/src/left--panel-link.test.tsx +42 -0
  871. package/src/left-panel-link.component.tsx +79 -0
  872. package/src/m-pesa/mpesa-resource.tsx +146 -0
  873. package/src/metrics-cards/card.component.tsx +11 -0
  874. package/src/metrics-cards/card.scss +20 -0
  875. package/src/metrics-cards/metrics-cards.component.tsx +58 -0
  876. package/src/metrics-cards/metrics-cards.scss +84 -0
  877. package/src/metrics-cards/metrics-cards.test.tsx +42 -0
  878. package/src/metrics-cards/metrics.resource.ts +54 -0
  879. package/src/modal/bill-action.modal.scss +7 -0
  880. package/src/modal/bill-action.modal.tsx +124 -0
  881. package/src/past-patient-bills/patient-bills-dashboard/empty-patient-bill.component.tsx +42 -0
  882. package/src/past-patient-bills/patient-bills-dashboard/empty-svg.component.tsx +566 -0
  883. package/src/past-patient-bills/patient-bills-dashboard/patient-bills-dashboard.scss +53 -0
  884. package/src/past-patient-bills/patient-bills-dashboard/patient-bills-dashboard.tsx +44 -0
  885. package/src/past-patient-bills/patient-bills-dashboard/patient-search-extension.component.tsx +25 -0
  886. package/src/past-patient-bills/patient-bills.component.tsx +157 -0
  887. package/src/past-patient-bills/patient-bills.scss +42 -0
  888. package/src/past-patient-bills/patient-bills.test.tsx +300 -0
  889. package/src/print-preview/print-preview.modal.tsx +45 -0
  890. package/src/print-preview/print-preview.scss +21 -0
  891. package/src/prompt-payment/prompt-payment-modal.component.tsx +118 -0
  892. package/src/prompt-payment/prompt-payment.modal.test.tsx +204 -0
  893. package/src/prompt-payment/prompt-payment.resource.tsx +231 -0
  894. package/src/prompt-payment/prompt-payment.scss +18 -0
  895. package/src/root.component.tsx +40 -0
  896. package/src/routes.json +426 -0
  897. package/src/types/index.ts +697 -0
  898. package/src/utils.ts +172 -0
  899. package/translations/am.json +365 -0
  900. package/translations/en.json +365 -0
  901. package/translations/sw.json +365 -0
  902. package/tsconfig.json +5 -0
@@ -0,0 +1,128 @@
1
+ import { useTranslation } from 'react-i18next';
2
+ import { useStockItemQuantity } from '../../useBillableItem';
3
+ import { useBillableServices } from '../../../../bill-administration/service-catalog/billable-service.resource';
4
+
5
+ import { useBillStatus } from './useBillStatus';
6
+ import { createMedicationDispenseProps } from '../../test-order/dispense.resource';
7
+
8
+ interface MedicationRequest {
9
+ request: fhir.MedicationRequest;
10
+ dispenses: Array<fhir.MedicationDispense>;
11
+ }
12
+
13
+ export function useMedicationOrderAction(medicationRequestBundle?: MedicationRequest) {
14
+ const { t } = useTranslation();
15
+ const request = medicationRequestBundle?.request;
16
+ const orderUuid = request?.id;
17
+ const patientUuid = request?.subject?.reference?.split('/')[1];
18
+ const drugUuid = request?.medicationReference?.reference?.split('/')[1];
19
+
20
+ const { isLoading, hasPendingPayment, itemHasBill } = useBillStatus(orderUuid, patientUuid);
21
+ const { stockItemQuantity, stockItemUuid } = useStockItemQuantity(drugUuid);
22
+ const { billableServices } = useBillableServices();
23
+
24
+ const billableItem =
25
+ billableServices?.filter((service) => {
26
+ if (service?.stockItem !== null && service?.stockItem !== undefined) {
27
+ const serviceStockItemUuid = service?.stockItem?.uuid;
28
+ return serviceStockItemUuid === stockItemUuid;
29
+ }
30
+ return false;
31
+ }) || [];
32
+ const billableItemServiceStatus = billableItem.some((item) => item.serviceStatus === 'DISABLED');
33
+
34
+ const dispenseFormProps = medicationRequestBundle ? createMedicationDispenseProps({ medicationRequestBundle }) : null;
35
+
36
+ const shouldShowBillModal =
37
+ stockItemQuantity > 0 && itemHasBill.length < 1 && billableItem.length > 0 && !billableItemServiceStatus;
38
+ const isDisabled = hasPendingPayment || (stockItemQuantity < 1 && !!drugUuid);
39
+ const isANonBillableItem = billableItem.length === 0;
40
+ const hasBeenDispensed = medicationRequestBundle?.dispenses?.length > 0;
41
+
42
+ /**
43
+ * Determines if modification of the medication order is allowed based on several conditions:
44
+ * 1. No pending payments exist
45
+ * 2. Stock item is available (quantity > 0)
46
+ * 3. Item hasn't been billed yet (no existing bills)
47
+ * 4. Item exists in billable items list
48
+ * 5. Special case: Non-billable items that haven't been dispensed can be modified
49
+ */
50
+ const shouldAllowModify = (() => {
51
+ // Special case: Non-billable items that haven't been dispensed can always be modified
52
+ if (!hasBeenDispensed && isANonBillableItem) {
53
+ return true;
54
+ }
55
+
56
+ // For all other cases, check the standard conditions
57
+ const hasNoPendingPayments = !hasPendingPayment;
58
+ const hasAvailableStock = stockItemQuantity > 0;
59
+ const hasNoExistingBills = itemHasBill.length < 1;
60
+ const isBillableItem = billableItem.length > 0;
61
+
62
+ return hasNoPendingPayments && hasAvailableStock && hasNoExistingBills && isBillableItem;
63
+ })();
64
+
65
+ const getButtonText = () => {
66
+ if (hasPendingPayment) {
67
+ return t('unsettledBill', 'Unsettled bill');
68
+ }
69
+
70
+ if (stockItemQuantity < 1 && drugUuid) {
71
+ return t('outOfStock', 'Out of Stock');
72
+ }
73
+
74
+ if (shouldShowBillModal) {
75
+ return t('bill', 'Bill');
76
+ }
77
+
78
+ return t('dispense', 'Dispense');
79
+ };
80
+ return {
81
+ isLoading,
82
+ isDisabled,
83
+ buttonText: getButtonText(),
84
+ shouldShowBillModal,
85
+ dispenseFormProps,
86
+ orderUuid,
87
+ patientUuid,
88
+ billableItem,
89
+ itemHasBill,
90
+ medicationRequestBundle,
91
+ hasPendingPayment,
92
+ shouldAllowModify,
93
+ };
94
+ }
95
+
96
+ import { useMemo } from 'react';
97
+ import { FetchResponse, openmrsFetch, restBaseUrl } from '@openmrs/esm-framework';
98
+ import { Order } from '@openmrs/esm-patient-common-lib';
99
+ import useSWR from 'swr';
100
+
101
+ const customRepresentation =
102
+ 'custom:(uuid,dosingType,orderNumber,accessionNumber,' +
103
+ 'patient:ref,action,careSetting:ref,previousOrder:ref,dateActivated,scheduledDate,dateStopped,autoExpireDate,' +
104
+ 'orderType:ref,encounter:ref,orderer:(uuid,display,person:(display)),orderReason,orderReasonNonCoded,orderType,urgency,instructions,' +
105
+ 'commentToFulfiller,drug:(uuid,display,strength,dosageForm:(display,uuid),concept),dose,doseUnits:ref,' +
106
+ 'frequency:ref,asNeeded,asNeededCondition,quantity,quantityUnits:ref,numRefills,dosingInstructions,' +
107
+ 'duration,durationUnits:ref,route:ref,brandName,dispenseAsWritten)';
108
+
109
+ /**
110
+ * Hook to get a single order by UUID.
111
+ *
112
+ * @param orderUuid The UUID of the order to fetch.
113
+ */
114
+ export function useOrderByUuid(orderUuid: string) {
115
+ const ordersUrl = useMemo(
116
+ () => (orderUuid ? `${restBaseUrl}/order/${orderUuid}?v=${customRepresentation}` : null),
117
+ [orderUuid],
118
+ );
119
+ const { data, error, isLoading, isValidating, mutate } = useSWR<FetchResponse<Order>, Error>(ordersUrl, openmrsFetch);
120
+
121
+ return {
122
+ data: data?.data,
123
+ error,
124
+ isLoading,
125
+ isValidating,
126
+ mutate,
127
+ };
128
+ }
@@ -0,0 +1,103 @@
1
+ import { launchWorkspace, navigate, getGlobalStore } from '@openmrs/esm-framework';
2
+ import { Order } from '@openmrs/esm-patient-common-lib';
3
+ import { useCallback } from 'react';
4
+ import { mutate } from 'swr';
5
+
6
+ export function useModalHandler(mutateUrl?: string) {
7
+ const handleModalClose = useCallback(() => {
8
+ if (!mutateUrl) {
9
+ return;
10
+ }
11
+
12
+ mutate((key) => typeof key === 'string' && key.startsWith(mutateUrl), undefined, {
13
+ revalidate: true,
14
+ });
15
+ }, [mutateUrl]);
16
+
17
+ return {
18
+ handleModalClose,
19
+ };
20
+ }
21
+
22
+ export const getWorkspaceStore = () => {
23
+ return getGlobalStore('workspace');
24
+ };
25
+
26
+ export const launchPrescriptionEditWorkspace = (order: Order, patientUuid: string) => {
27
+ const newItem = {
28
+ uuid: order.uuid,
29
+ display: order.drug?.display,
30
+ previousOrder: order.uuid,
31
+ startDate: new Date(),
32
+ action: 'REVISE',
33
+ drug: order.drug,
34
+ dosage: order.dose,
35
+ unit: {
36
+ value: order.doseUnits?.display,
37
+ valueCoded: order.doseUnits?.uuid,
38
+ },
39
+ frequency: {
40
+ valueCoded: order.frequency?.uuid,
41
+ value: order.frequency?.display,
42
+ },
43
+ route: {
44
+ valueCoded: order.route?.uuid,
45
+ value: order.route?.display,
46
+ },
47
+ commonMedicationName: order.drug?.display,
48
+ isFreeTextDosage: order.dosingType === 'org.openmrs.FreeTextDosingInstructions',
49
+ freeTextDosage: order.dosingType === 'org.openmrs.FreeTextDosingInstructions' ? order.dosingInstructions : '',
50
+ patientInstructions: order.dosingType !== 'org.openmrs.FreeTextDosingInstructions' ? order.dosingInstructions : '',
51
+ asNeeded: order.asNeeded,
52
+ asNeededCondition: order.asNeededCondition,
53
+ duration: order.duration,
54
+ durationUnit: {
55
+ valueCoded: order.durationUnits?.uuid,
56
+ value: order.durationUnits?.display,
57
+ },
58
+ pillsDispensed: order.quantity,
59
+ numRefills: order.numRefills,
60
+ indication: order.orderReasonNonCoded,
61
+ orderer: order.orderer?.uuid,
62
+ careSetting: order.careSetting?.uuid,
63
+ quantityUnits: {
64
+ value: order.quantityUnits?.display,
65
+ valueCoded: order.quantityUnits?.uuid,
66
+ },
67
+ };
68
+
69
+ const targetUrl = `\${openmrsSpaBase}/patient/${patientUuid}/chart/Medications`;
70
+ const workspaceName = 'add-drug-order';
71
+ const additionalProps = {
72
+ patientUuid,
73
+ order: newItem,
74
+ };
75
+
76
+ navigateAndLaunchWorkspace(targetUrl, `patient/${patientUuid}`, workspaceName, additionalProps, patientUuid);
77
+ };
78
+
79
+ export const navigateAndLaunchWorkspace = (
80
+ targetUrl: string,
81
+ contextKey: string,
82
+ workspaceName: string,
83
+ additionalProps: any,
84
+ patientUuid: string,
85
+ ) => {
86
+ const workspaceStore = getWorkspaceStore();
87
+
88
+ // Set up a one-time event listener for when navigation completes
89
+ const handleRoutingComplete = (event: Event) => {
90
+ // Remove the listener after it fires once
91
+ window.removeEventListener('single-spa:routing-event', handleRoutingComplete);
92
+
93
+ // Now that navigation is complete, change context and launch workspace
94
+ workspaceStore.setState({ context: `patient/${patientUuid}`, openWorkspaces: [], prompt: null });
95
+ launchWorkspace(workspaceName, additionalProps);
96
+ };
97
+
98
+ // Add the event listener before navigating
99
+ window.addEventListener('single-spa:routing-event', handleRoutingComplete);
100
+
101
+ // Navigate to the target URL
102
+ navigate({ to: targetUrl });
103
+ };
@@ -0,0 +1,89 @@
1
+ import dayjs from 'dayjs';
2
+
3
+ type MedicationDispense = {
4
+ resourceType: string;
5
+ status: any;
6
+ authorizingPrescription: Array<{ reference: string; type: string }>;
7
+ medicationReference: any;
8
+ medicationCodeableConcept: any;
9
+ subject: any;
10
+ performer: Array<{ actor: { reference: string } }>;
11
+ location: { reference: string };
12
+ whenHandedOver: string;
13
+ quantity?: {
14
+ value: unknown;
15
+ code: unknown;
16
+ unit: unknown;
17
+ system: unknown;
18
+ };
19
+ dosageInstruction?: Array<unknown>;
20
+ substitution?: unknown;
21
+ };
22
+
23
+ export const createMedicationDispenseProps = (props) => {
24
+ const { medicationRequestBundle, quantityRemaining, session, providers = [] } = props;
25
+ const request = medicationRequestBundle.request;
26
+ const patientUuid = request?.subject?.reference?.split('/')?.[1] || null;
27
+ const encounterUuid = request?.encounter?.reference?.split('/')?.[1] || null;
28
+
29
+ return {
30
+ patientUuid,
31
+ encounterUuid,
32
+ medicationDispense: initiateMedicationDispenseBody(medicationRequestBundle.request, session, providers, true),
33
+ medicationRequestBundle,
34
+ quantityRemaining,
35
+ mode: 'enter',
36
+ };
37
+ };
38
+
39
+ export function initiateMedicationDispenseBody(medicationRequest, session, providers, populateDispenseInformation) {
40
+ let medicationDispense: MedicationDispense = {
41
+ resourceType: 'MedicationDispense',
42
+ status: null,
43
+ authorizingPrescription: [{ reference: 'MedicationRequest/' + medicationRequest.id, type: 'MedicationRequest' }],
44
+ medicationReference: medicationRequest.medicationReference,
45
+ medicationCodeableConcept: medicationRequest.medicationCodeableConcept,
46
+ subject: medicationRequest.subject,
47
+ performer: [
48
+ {
49
+ actor: {
50
+ reference:
51
+ session?.currentProvider && providers.some((provider) => provider.uuid == session.currentProvider.uuid)
52
+ ? `Practitioner/${session.currentProvider.uuid}`
53
+ : '',
54
+ },
55
+ },
56
+ ],
57
+ location: { reference: session?.sessionLocation ? `Location/${session.sessionLocation.uuid}` : '' },
58
+ whenHandedOver: dayjs().format(),
59
+ };
60
+
61
+ if (populateDispenseInformation) {
62
+ medicationDispense = {
63
+ ...medicationDispense,
64
+ quantity: medicationRequest.dispenseRequest?.quantity,
65
+ dosageInstruction: [
66
+ {
67
+ text: [
68
+ medicationRequest.dosageInstruction[0].text,
69
+ medicationRequest.dosageInstruction[0].additionalInstruction?.[0]?.text,
70
+ ]
71
+ .filter(Boolean)
72
+ .join(' '),
73
+ timing: medicationRequest.dosageInstruction[0].timing,
74
+ asNeededBoolean: false,
75
+ route: medicationRequest.dosageInstruction[0].route,
76
+ doseAndRate: medicationRequest.dosageInstruction[0].doseAndRate || [
77
+ { doseQuantity: { value: null, code: null, unit: null } },
78
+ ],
79
+ },
80
+ ],
81
+ substitution: {
82
+ wasSubstituted: false,
83
+ reason: [{ coding: [{ code: null }] }],
84
+ type: { coding: [{ code: null }] },
85
+ },
86
+ };
87
+ }
88
+ return medicationDispense;
89
+ }
@@ -0,0 +1,34 @@
1
+ import React from 'react';
2
+ import { useBillableItem } from '../useBillableItem';
3
+ import { useTranslation } from 'react-i18next';
4
+ import { InlineLoading } from '@carbon/react';
5
+ import PriceInfoOrder from './price-info-order.componet';
6
+
7
+ type ImagingOrderProps = {
8
+ order: {
9
+ testType?: {
10
+ label: string;
11
+ conceptUuid: string;
12
+ };
13
+ };
14
+ setHasPrice: (hasPrice: boolean) => void;
15
+ };
16
+
17
+ const ImagingOrder: React.FC<ImagingOrderProps> = ({ order, setHasPrice }) => {
18
+ const { t } = useTranslation();
19
+ const { billableItem, isLoading, error } = useBillableItem(order?.testType?.conceptUuid);
20
+
21
+ if (isLoading) {
22
+ return (
23
+ <InlineLoading
24
+ status="active"
25
+ iconDescription={t('loading', 'Loading')}
26
+ description={t('loadingData', 'Loading data...')}
27
+ />
28
+ );
29
+ }
30
+
31
+ return <PriceInfoOrder billableItem={billableItem} error={error} />;
32
+ };
33
+
34
+ export default ImagingOrder;
@@ -0,0 +1,34 @@
1
+ import React from 'react';
2
+ import { useBillableItem } from '../useBillableItem';
3
+ import { useTranslation } from 'react-i18next';
4
+ import { InlineLoading } from '@carbon/react';
5
+ import PriceInfoOrder from './price-info-order.componet';
6
+
7
+ type LabOrderProps = {
8
+ order: {
9
+ testType?: {
10
+ label: string;
11
+ conceptUuid: string;
12
+ };
13
+ };
14
+ setHasPrice: (hasPrice: boolean) => void;
15
+ };
16
+
17
+ const LabOrder: React.FC<LabOrderProps> = ({ order, setHasPrice }) => {
18
+ const { t } = useTranslation();
19
+ const { billableItem, isLoading, error } = useBillableItem(order?.testType?.conceptUuid);
20
+
21
+ if (isLoading) {
22
+ return (
23
+ <InlineLoading
24
+ status="active"
25
+ iconDescription={t('loading', 'Loading')}
26
+ description={t('loadingData', 'Loading data...')}
27
+ />
28
+ );
29
+ }
30
+
31
+ return <PriceInfoOrder billableItem={billableItem} error={error} />;
32
+ };
33
+
34
+ export default LabOrder;
@@ -0,0 +1,60 @@
1
+ import React from 'react';
2
+ import { useTranslation } from 'react-i18next';
3
+ import styles from './price-info-order.scss';
4
+ import {
5
+ StructuredListWrapper,
6
+ StructuredListHead,
7
+ StructuredListRow,
8
+ StructuredListCell,
9
+ StructuredListBody,
10
+ Tile,
11
+ InlineNotification,
12
+ } from '@carbon/react';
13
+ import { useCurrencyFormatting } from '../../../helpers/currency';
14
+
15
+ type PriceInfoOrderProps = {
16
+ billableItem: any;
17
+ error?: boolean;
18
+ };
19
+
20
+ const PriceInfoOrder: React.FC<PriceInfoOrderProps> = ({ billableItem, error }) => {
21
+ const { t } = useTranslation();
22
+ const { format: formatCurrency } = useCurrencyFormatting();
23
+
24
+ const hasPrice = billableItem?.servicePrices?.length > 0;
25
+
26
+ if (error || !hasPrice) {
27
+ return (
28
+ <InlineNotification kind="warning" title={t('noprice', 'No price configured for this service')} lowContrast />
29
+ );
30
+ }
31
+
32
+ return (
33
+ <Tile id="" className={styles.prices}>
34
+ <div className={styles.listContainer}>
35
+ <StructuredListWrapper isCondensed>
36
+ <StructuredListHead>
37
+ <StructuredListRow head>
38
+ <StructuredListCell head className={styles.cell}>
39
+ {t('paymentMethods', 'Payment methods')}
40
+ </StructuredListCell>
41
+ <StructuredListCell head className={styles.cell}>
42
+ {t('prices', 'Prices (Ksh)')}
43
+ </StructuredListCell>
44
+ </StructuredListRow>
45
+ </StructuredListHead>
46
+ <StructuredListBody>
47
+ {billableItem.servicePrices.map((priceItem: any) => (
48
+ <StructuredListRow key={priceItem.uuid}>
49
+ <StructuredListCell className={styles.cell}>{priceItem.paymentMode.name}</StructuredListCell>
50
+ <StructuredListCell className={styles.cell}>{formatCurrency(priceItem.price)}</StructuredListCell>
51
+ </StructuredListRow>
52
+ ))}
53
+ </StructuredListBody>
54
+ </StructuredListWrapper>
55
+ </div>
56
+ </Tile>
57
+ );
58
+ };
59
+
60
+ export default PriceInfoOrder;
@@ -0,0 +1,20 @@
1
+ @use '@carbon/styles/scss/type';
2
+ @use '@carbon/styles/scss/spacing';
3
+ @use '@carbon/layout';
4
+ @use '@carbon/colors';
5
+
6
+ .prices {
7
+ justify-content: center;
8
+ align-items: center;
9
+ margin: layout.$spacing-03;
10
+ }
11
+
12
+ .listContainer {
13
+ display: flex;
14
+ flex-direction: column;
15
+ align-items: center;
16
+ }
17
+
18
+ .cell {
19
+ padding: spacing.$spacing-05;
20
+ }
@@ -0,0 +1,34 @@
1
+ import React from 'react';
2
+ import { useBillableItem } from '../useBillableItem';
3
+ import { useTranslation } from 'react-i18next';
4
+ import { InlineLoading } from '@carbon/react';
5
+ import PriceInfoOrder from './price-info-order.componet';
6
+
7
+ type ProcedureOrderProps = {
8
+ order: {
9
+ testType?: {
10
+ label: string;
11
+ conceptUuid: string;
12
+ };
13
+ };
14
+ setHasPrice: (hasPrice: boolean) => void;
15
+ };
16
+
17
+ const ProcedureOrder: React.FC<ProcedureOrderProps> = ({ order, setHasPrice }) => {
18
+ const { t } = useTranslation();
19
+ const { billableItem, isLoading, error } = useBillableItem(order?.testType?.conceptUuid);
20
+
21
+ if (isLoading) {
22
+ return (
23
+ <InlineLoading
24
+ status="active"
25
+ iconDescription={t('loading', 'Loading')}
26
+ description={t('loadingData', 'Loading data...')}
27
+ />
28
+ );
29
+ }
30
+
31
+ return <PriceInfoOrder billableItem={billableItem} error={error} />;
32
+ };
33
+
34
+ export default ProcedureOrder;
@@ -0,0 +1,86 @@
1
+ import { openmrsFetch, restBaseUrl, useConfig, useVisit } from '@openmrs/esm-framework';
2
+ import useSWR from 'swr';
3
+ import { QueueEntry } from '../../../types';
4
+ import { BillingConfig } from '../../../config-schema';
5
+ import { useMemo } from 'react';
6
+ import { checkPaymentMethodExclusion, usePatientBills } from '../../../prompt-payment/prompt-payment.resource';
7
+
8
+ export const useTestOrderBillStatus = (orderUuid: string, patientUuid: string) => {
9
+ const config = useConfig<BillingConfig>();
10
+ const { currentVisit, activeVisit } = useVisit(patientUuid);
11
+ const { isEmergencyPatient, isLoading: isLoadingQueue } = usePatientQueue(patientUuid);
12
+ const { isLoading, hasPendingPayment } = useOrderPendingPaymentStatus(patientUuid, orderUuid);
13
+
14
+ // We want to check if the payment method is in the excluded list this includes insurances, where patient do not need to pay immediately
15
+ const isExcludedPaymentMethod = checkPaymentMethodExclusion(
16
+ activeVisit,
17
+ config?.paymentMethodsUuidsThatShouldNotShowPrompt,
18
+ );
19
+
20
+ return useMemo(() => {
21
+ if (isLoading || isLoadingQueue) {
22
+ return { hasPendingPayment: false, isLoading: true };
23
+ }
24
+ if (activeVisit?.visitType?.uuid === config?.inPatientVisitTypeUuid || isEmergencyPatient) {
25
+ return { hasPendingPayment: false, isLoading: false };
26
+ }
27
+
28
+ if (isExcludedPaymentMethod) {
29
+ return { hasPendingPayment: false, isLoading: false };
30
+ }
31
+
32
+ return { hasPendingPayment, isLoading: false };
33
+ }, [
34
+ isLoadingQueue,
35
+ isLoading,
36
+ activeVisit?.visitType?.uuid,
37
+ config?.inPatientVisitTypeUuid,
38
+ isExcludedPaymentMethod,
39
+ isEmergencyPatient,
40
+ hasPendingPayment,
41
+ ]);
42
+ };
43
+
44
+ export const usePatientQueue = (patientUuid: string) => {
45
+ const config = useConfig<BillingConfig>();
46
+ const url = `${restBaseUrl}/visit-queue-entry?patient=${patientUuid}`;
47
+ const { data, isLoading, error } = useSWR<{
48
+ data: { results: Array<QueueEntry> };
49
+ }>(url, openmrsFetch);
50
+
51
+ return useMemo(() => {
52
+ const isEmergencyPatient =
53
+ data?.data?.results?.[0]?.queueEntry?.priority?.uuid === config?.concepts?.emergencyPriorityConceptUuid;
54
+ const isInQueue = data?.data?.results?.length > 0;
55
+ return { isInQueue, isLoading, error, isEmergencyPatient };
56
+ }, [data, isLoading, error, config?.concepts?.emergencyPriorityConceptUuid]);
57
+ };
58
+
59
+ export const useOrderPendingPaymentStatus = (patientUuid: string, orderUuid: string) => {
60
+ const { patientBills, isLoading, error } = usePatientBills(patientUuid);
61
+ const flattenedLineItems = useMemo(() => {
62
+ return patientBills
63
+ ?.map((bill) => bill.lineItems)
64
+ .flat()
65
+ .filter((lineItem) => lineItem.order && lineItem.order.uuid === orderUuid);
66
+ }, [patientBills, orderUuid]);
67
+
68
+ const hasPendingPayment = useMemo(() => {
69
+ return flattenedLineItems?.some(
70
+ (lineItem) => lineItem.paymentStatus === 'PENDING' || lineItem.paymentStatus === 'POSTED',
71
+ );
72
+ }, [flattenedLineItems]);
73
+
74
+ return useMemo(() => ({ hasPendingPayment, isLoading, error }), [hasPendingPayment, isLoading, error]);
75
+ };
76
+
77
+ export const useOrderBill = (patientUuid: string, orderUuid: string) => {
78
+ const { patientBills, isLoading, error } = usePatientBills(patientUuid);
79
+ const itemHasBill = useMemo(() => {
80
+ return patientBills
81
+ ?.map((bill) => bill.lineItems)
82
+ .flat()
83
+ .filter((lineItem) => lineItem.order && lineItem.order.uuid === orderUuid);
84
+ }, [patientBills, orderUuid]);
85
+ return { itemHasBill };
86
+ };
@@ -0,0 +1,12 @@
1
+ @use '@carbon/type';
2
+ @use '@carbon/layout';
3
+ @use '@carbon/colors';
4
+
5
+ .actionButton {
6
+ display: flex;
7
+ align-items: center;
8
+ justify-content: center;
9
+ text-align: center;
10
+ padding: 0 layout.$spacing-04;
11
+ font-size: type.type-scale(2);
12
+ }
@@ -0,0 +1,69 @@
1
+ import useSWRImmutable from 'swr/immutable';
2
+ import { openmrsFetch, restBaseUrl } from '@openmrs/esm-framework';
3
+ import useSWR from 'swr';
4
+ import first from 'lodash-es/first';
5
+
6
+ type BillableItemResponse = {
7
+ uuid: string;
8
+ name: string;
9
+ concept: {
10
+ uuid: string;
11
+ display: string;
12
+ };
13
+ servicePrices: Array<{
14
+ uuid: string;
15
+ price: number;
16
+ paymentMode: {
17
+ uuid: string;
18
+ name: string;
19
+ };
20
+ }>;
21
+ };
22
+
23
+ export const useBillableItem = (billableItemId: string, drugUuid?: string) => {
24
+ const customRepresentation = `v=custom:(uuid,name,concept:(uuid,display),servicePrices:(uuid,price,paymentMode:(uuid,name)))`;
25
+ const url = drugUuid
26
+ ? `${restBaseUrl}/cashier/billableService?${customRepresentation}&drugUuid=${drugUuid}`
27
+ : `${restBaseUrl}/cashier/billableService?${customRepresentation}`;
28
+ const { data, error, isLoading } = useSWRImmutable<{ data: { results: Array<BillableItemResponse> } }>(
29
+ url,
30
+ openmrsFetch,
31
+ );
32
+ const billableItem = drugUuid
33
+ ? first(data?.data?.results)
34
+ : data?.data?.results?.find((item) => item?.concept?.uuid === billableItemId);
35
+
36
+ return {
37
+ billableItem: billableItem,
38
+ isLoading: isLoading,
39
+ error,
40
+ };
41
+ };
42
+
43
+ export const useSockItemInventory = (stockItemId: string) => {
44
+ const url = `/ws/rest/v1/stockmanagement/stockiteminventory?v=default&limit=10&totalCount=true&drugUuid=${stockItemId}`;
45
+ const { data, error, isLoading } = useSWR<{
46
+ data: { results: Array<{ quantityUoM: string; quantity: number; partyName: string }> };
47
+ }>(url, openmrsFetch);
48
+ return {
49
+ stockItem: (data?.data?.results as Array<any>) ?? [],
50
+ isLoading: isLoading,
51
+ error,
52
+ };
53
+ };
54
+
55
+ export const useStockItemQuantity = (drugUuid: string) => {
56
+ const url = `/ws/rest/v1/stockmanagement/stockiteminventory?v=default&limit=10&totalCount=true&drugUuid=${drugUuid}`;
57
+ const { data, error, isLoading } = useSWR<{
58
+ data: {
59
+ results: Array<{ quantityUoM: string; quantity: number; partyName: string; stockItemUuid: string }>;
60
+ total: number;
61
+ };
62
+ }>(url, openmrsFetch);
63
+ return {
64
+ stockItemQuantity: data?.data?.total ?? 0,
65
+ stockItemUuid: data?.data?.results[0]?.stockItemUuid ?? '',
66
+ isLoading: isLoading,
67
+ error,
68
+ };
69
+ };