@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.
- package/.turbo/turbo-build.log +22 -0
- package/README.md +5 -0
- package/__mocks__/bill.mock.ts +107 -0
- package/__mocks__/visit.mock.ts +151 -0
- package/dist/003671ee2a876e7614cd94390e2255b3.js +1 -0
- package/dist/0078b630bed2938ce03f618c2bcd1363.js +1 -0
- package/dist/0144de97a3c256f81447e7e7135780e5.js +1 -0
- package/dist/019e34e85139cfc611bf23efa096c980.js +1 -0
- package/dist/01b769b06e3967d7382e74f2c443ca6e.js +1 -0
- package/dist/02174460fe8ff6a6bc19db86543b9600.js +1 -0
- package/dist/022fc31e47969919bef8f04c7ceb6396.js +1 -0
- package/dist/029ed9161a8d24a9c2ba97124020989d.js +1 -0
- package/dist/029f5ee0420883bc3c38a7f143fd174a.js +1 -0
- package/dist/03980cb12dacd26148c22bb61fce440f.js +1 -0
- package/dist/03a5f5b2b97a8fc289399d92fba810d0.js +1 -0
- package/dist/03aae8272914723a7bf85b984385032c.js +1 -0
- package/dist/03f614920ec2da304abfca8b015a2b40.js +1 -0
- package/dist/0416c21cfe088739209926632a360e3b.js +1 -0
- package/dist/069a0d6b093e73e820f6a60a91fa614b.js +1 -0
- package/dist/06d958315fc6cdbb28576b03e43203aa.js +1 -0
- package/dist/07397bd479cbc34bc04576b4f15bdf18.js +1 -0
- package/dist/078dd0bd08c93b1512e3d1b777591b21.js +1 -0
- package/dist/08eb6e8d603ac500da471cc07b0cf188.js +1 -0
- package/dist/0972f21af3e75388ef55435c0b3b831d.js +1 -0
- package/dist/0973bb38b2e3efd2a879fd8e81d50fce.js +1 -0
- package/dist/0a1d9862d917663419ac2dd2e8193267.js +1 -0
- package/dist/0b06cbc7edf78b6f2810187262e7630b.js +1 -0
- package/dist/0bd45b2d490c48c31619072a4fb0eaea.js +1 -0
- package/dist/0bf319cb891a35363be356125cf61925.js +1 -0
- package/dist/0d5aa4cf4cd6ced22d689adc35468925.js +1 -0
- package/dist/0e579f8a92c87ee13f03bbb00bfd6965.js +1 -0
- package/dist/0e67325b9a04863301e36c0c37947069.js +1 -0
- package/dist/0e9edc546e19e0d70ebaeec446142d3f.js +1 -0
- package/dist/0f147528a6f36ca40c8b3ec796429f58.js +1 -0
- package/dist/0fa30731c46fe8b6a54f9752ad0ed7e0.js +1 -0
- package/dist/10.js +1 -0
- package/dist/10.js.map +1 -0
- package/dist/101.js +1 -0
- package/dist/101.js.map +1 -0
- package/dist/10132993df2cf9c9423b53a8a44379ab.js +1 -0
- package/dist/1034e3807d1bcf55cb564491950237ab.js +1 -0
- package/dist/10c464f3f882bfeeefbc0934c2ee9fbe.js +1 -0
- package/dist/111d9fdb9864abba36298d1a0807fe6d.js +1 -0
- package/dist/112.js +1 -0
- package/dist/112.js.map +1 -0
- package/dist/117.js +1 -0
- package/dist/1195816afa4a5e8183857be16a04ae6f.js +1 -0
- package/dist/119f6c45ea400e3c27e1ce172e4c881d.js +1 -0
- package/dist/11e3a2a8fb5bcb9d19298a80cafd3f5a.js +1 -0
- package/dist/130340e2c62b9e858f186dab5f491e55.js +1 -0
- package/dist/131.js +1 -0
- package/dist/131.js.map +1 -0
- package/dist/135747176621bcc94e9edd0323a81d3c.js +1 -0
- package/dist/1383530217ac0068c844902d24e18e08.js +1 -0
- package/dist/13eda3507db9cbfb400f46b9b3ff6553.js +1 -0
- package/dist/1495a3d68b15b8622c53f6688b64809f.js +1 -0
- package/dist/152.js +1 -0
- package/dist/152.js.map +1 -0
- package/dist/1533058f0ce13acdaa8d5bdc7d147bef.js +1 -0
- package/dist/157d1af856797eaa6a6d4517a5335299.js +1 -0
- package/dist/15f3800d33b854ba476c9daf1b9e0326.js +1 -0
- package/dist/166.js +15 -0
- package/dist/166.js.map +1 -0
- package/dist/16c2e1b50af4ba05edaa03c8c9e9d18c.js +1 -0
- package/dist/170487867de05784a96608617bdd544d.js +1 -0
- package/dist/1736cea368ae85240f34289307fdf67f.js +1 -0
- package/dist/17632e1e19e438f431784dfd77e01773.js +1 -0
- package/dist/17dc98279d24649d3ca77cbce8c44e83.js +1 -0
- package/dist/187.js +1 -0
- package/dist/187.js.map +1 -0
- package/dist/1875ecdf54e78b5f07ff1bd944cf794b.js +1 -0
- package/dist/191feb6103c36b202bc01ba262916cdf.js +1 -0
- package/dist/1983055014f3f7a31b72b9c24eebfe2e.js +1 -0
- package/dist/1a435bdf5bbc57b954136c38dea5dd56.js +1 -0
- package/dist/1b012b7a13787e2ab186f7bc6978af5d.js +1 -0
- package/dist/1b15b9f88acaf59b96e59c6b5f32da12.js +1 -0
- package/dist/1b399d419893e83d7aea276705c2cd46.js +1 -0
- package/dist/1c24a68cb472146022d0806ea2505cfb.js +1 -0
- package/dist/1c57b3481f295105588972ffa1305521.js +1 -0
- package/dist/1cc6fc3772824e2f87f10a9c3fad2dae.js +1 -0
- package/dist/1ce14f2cad9f3c122cb5ccfcd485ffb4.js +1 -0
- package/dist/1d3796180f854b5d8ab435ab0a1c2c11.js +1 -0
- package/dist/1f5e5fcf6311b2bee3ea3d90352d584a.js +1 -0
- package/dist/1ff1389501159e4846a5133e3b8992d8.js +1 -0
- package/dist/20545e6680e996248f667158904a6a9b.js +1 -0
- package/dist/209.js +1 -0
- package/dist/209.js.map +1 -0
- package/dist/210aec2722e6416a0349a987260e14a3.js +1 -0
- package/dist/211511e7b374f57ad31acaf49dbdccb1.js +1 -0
- package/dist/219.js +1 -0
- package/dist/219.js.map +1 -0
- package/dist/21ce36baab7df3edd2c728ac1a6776b7.js +1 -0
- package/dist/21d07d2aa7d7e54330fb3c627689a691.js +1 -0
- package/dist/225.js +1 -0
- package/dist/225.js.map +1 -0
- package/dist/2272c6632c52c3e402ab27b8045ab8f1.js +1 -0
- package/dist/2287e0a9970175f8e26f811b688d2d36.js +1 -0
- package/dist/228ca80abf1ae030cbfe7faaec61913f.js +1 -0
- package/dist/2302902e10c4afab56e1b864c96070cb.js +1 -0
- package/dist/2348c5ed0da81c27fa889f56e43f91a1.js +1 -0
- package/dist/23602ad4c88f0f19e7a0a12454ebf556.js +1 -0
- package/dist/23bb1a9f279e7a732bfd405350aab114.js +1 -0
- package/dist/245.js +1 -0
- package/dist/245.js.map +1 -0
- package/dist/24547132c0093d2bae739db169cda5a6.js +1 -0
- package/dist/24a3ff38afde257888d755ece9bfd704.js +1 -0
- package/dist/24f97ddd76026815674affbc50ad6169.js +1 -0
- package/dist/254.js +27 -0
- package/dist/254.js.map +1 -0
- package/dist/25718a469574ade47e23567d8c543169.js +1 -0
- package/dist/25be9f866b93e4ffa34f07a4fde632d4.js +1 -0
- package/dist/25eda4bb98e40a82cfd5b4bf9fbc06ec.js +1 -0
- package/dist/269732f4c5f6e82ea3246548a9631b47.js +1 -0
- package/dist/27730a0bdc6f430cc85049a46a73a029.js +1 -0
- package/dist/283970c76db99e2d0d90f0e7c45494f9.js +1 -0
- package/dist/28785bea435918d49b290d27bf660baa.js +1 -0
- package/dist/29558eac6b1d269fb491df21eb506d11.js +1 -0
- package/dist/29c12604c7db4a1ad67ed4d7cdb4f4ed.js +1 -0
- package/dist/2a8394955e047270a2a965ec67843989.js +1 -0
- package/dist/2aa392a501973ebfcea38239a45ed8e7.js +1 -0
- package/dist/2ad349208b3a727abb3c9f943865a27c.js +1 -0
- package/dist/2b1b8f8b9e8f1e423a69afd121fd7da9.js +1 -0
- package/dist/2b385abd24ebcff8a1c7de52aa2970ab.js +1 -0
- package/dist/2b5729e073775b8fb827fc8e4725e48a.js +1 -0
- package/dist/2b89e20071dd734f42b8694d7a84c264.js +1 -0
- package/dist/2d2a75e3d01a74b93d07db04df8abe5e.js +1 -0
- package/dist/2dd82c65030101b60dffccedd8741c6e.js +1 -0
- package/dist/2e841e8b77c2a2c00fd71940632bc1e1.js +1 -0
- package/dist/2f055ac4066041b9008dd6aebf9df34b.js +1 -0
- package/dist/2fc0239242a898632ca8aa451cb930c2.js +1 -0
- package/dist/318dcae1cdcd4733986a93e7a5fab7b8.js +1 -0
- package/dist/31c610efb1d25afc90853b52ba4cb089.js +1 -0
- package/dist/3219bb3283a319e7a33f7366deb7ed1b.js +1 -0
- package/dist/328cbf598e9711b0a87c19437b02f80d.js +1 -0
- package/dist/32cf6d8a099c0a653928cbc9a05af5da.js +1 -0
- package/dist/33b4e371d4983ab56f4db08627119f0b.js +1 -0
- package/dist/349237ad9565dc823ce7bcb7527ba7ee.js +1 -0
- package/dist/34f99cce131bd7aa65e7a924e2456006.js +1 -0
- package/dist/3567d1ea443427e944a6f189a0898819.js +1 -0
- package/dist/363d3bac8dcd9a83332c3758185ce080.js +1 -0
- package/dist/367def81f25c0a08527f9a4e86e70c56.js +1 -0
- package/dist/37172facd8a534a38f378ca2a9c7c11b.js +1 -0
- package/dist/378.js +1 -0
- package/dist/37ee3b5201ae2e2dc5dc8b1b20ad900e.js +1 -0
- package/dist/38105097fc2497d628f398be7db5f6e8.js +1 -0
- package/dist/38b1d18836e38ee7b4deaeba0c35f7b8.js +1 -0
- package/dist/39fea85ed7dd99d7c6c9e59b7040523f.js +1 -0
- package/dist/3a395ae85f6a58001cb48cc5a4e6360b.js +1 -0
- package/dist/3a6ca6958d003ae67bb7fefc8713ee93.js +1 -0
- package/dist/3ac8c7749734990e2d9f81eeca219886.js +1 -0
- package/dist/3b02cca9e95276a74f3ed2bbc7a64ce6.js +1 -0
- package/dist/3b190e5159c72fb7e27271956772bcba.js +1 -0
- package/dist/3b26795ad1700506b62e1171ff6fcd9b.js +1 -0
- package/dist/3b544bb2c5a4e7b225a4b50235a0fd6d.js +1 -0
- package/dist/3b6e7dc98c47eeafd851ca5072db4be6.js +1 -0
- package/dist/3bee0656a21a6106946d9f424fc22337.js +1 -0
- package/dist/3bf96f8eb1859e2724a4b769af3b5f1e.js +1 -0
- package/dist/3c5b59a666c5d39d9ba9cc054d36a410.js +1 -0
- package/dist/3e93259f04cf0b4b52cc237cfc21cb05.js +1 -0
- package/dist/3ea020c57c2bbf457a8497df313b2e5c.js +1 -0
- package/dist/3eefbe1c009cfd730b2ca6f834367c45.js +1 -0
- package/dist/3efaf75fa91357a71f55203c10d0562b.js +1 -0
- package/dist/3f896944a97f002f2146e028ff2eac63.js +1 -0
- package/dist/41.js +1 -0
- package/dist/41.js.map +1 -0
- package/dist/41a77c181e7d3172f53496cb25166d13.js +1 -0
- package/dist/41ae585cdbb9c2e8eefff5d30193029f.js +1 -0
- package/dist/41e8a86a20df71cb48a373b096c06cd1.js +1 -0
- package/dist/42e0ea6351d45d342caab13cb12f9ea4.js +1 -0
- package/dist/43139bfbcbce9de597b4985dc1e6a03b.js +1 -0
- package/dist/432a5982ba3ddf958381d780e1e9a8e2.js +1 -0
- package/dist/432aff60ba31a74d2120031fdc894775.js +1 -0
- package/dist/433.js +1 -0
- package/dist/433.js.map +1 -0
- package/dist/442.js +1 -0
- package/dist/442.js.map +1 -0
- package/dist/4430c55f023b72fb5e389cee9351b38c.js +1 -0
- package/dist/44599d9b6202ebebfcdd073edf3562e3.js +1 -0
- package/dist/44e9d75bc694599ba5a672eeec11d3b7.js +1 -0
- package/dist/44efcea2f84e80cc4092a89796afe886.js +1 -0
- package/dist/45227a487a5d1829deaf3589411c7333.js +1 -0
- package/dist/453d207e70a9d6fe976b60b6a20b39fb.js +1 -0
- package/dist/458.js +1 -0
- package/dist/458.js.map +1 -0
- package/dist/466.js +1 -0
- package/dist/466.js.map +1 -0
- package/dist/46ed21c8fbddeefacaf10d78887aa22a.js +1 -0
- package/dist/472ba8f81bf8cac86027cb1be4e3b9cd.js +1 -0
- package/dist/479.js +1 -0
- package/dist/479.js.map +1 -0
- package/dist/47e5776dff3b80ed69ab5947dba33c76.js +1 -0
- package/dist/48827a80c9c8a8b394a208065231dabb.js +1 -0
- package/dist/48e9351c5623d4da657ce7d5d0267ea6.js +1 -0
- package/dist/49582665262ff6179b9f3a98adf7ed5c.js +1 -0
- package/dist/4b692785a8a6340a89e6067274a7583c.js +1 -0
- package/dist/4bee3a46b8378a7b4ef84492f08abd22.js +1 -0
- package/dist/4bf3bc1fbdd26ac698fef1bdf26e3ff4.js +1 -0
- package/dist/4c1bdecbedd36a5765de184ac056822a.js +1 -0
- package/dist/4d0ebf4c528cee9b0cdd3e076e06570b.js +1 -0
- package/dist/4d156ee0485ab4b40b090a3cd7b995a9.js +1 -0
- package/dist/4d6d9020e7e5c8d8dee7a5e374355f05.js +1 -0
- package/dist/4d8cb7033879cb7fcc7a43798e2bde22.js +1 -0
- package/dist/4db8b05f109448d519f60cbb920dc38e.js +1 -0
- package/dist/4db989de49617370db449991af03f578.js +1 -0
- package/dist/4e389cce6fb8f78845fab249bce43c0b.js +1 -0
- package/dist/4ef80ee74467e0297eec3cc03092da01.js +1 -0
- package/dist/4f03709d8b1d52a622f0676f7a299510.js +1 -0
- package/dist/4f2451dd2095d05141a5c24fab1594e1.js +1 -0
- package/dist/4f683c6881e9f8740f5516a85b9eb9da.js +1 -0
- package/dist/509.js +1 -0
- package/dist/509.js.map +1 -0
- package/dist/50d61b10bebf34dab99e3025495beaa2.js +1 -0
- package/dist/5106411f7468a5ee5b1ee77aed12c0c7.js +1 -0
- package/dist/512.js +1 -0
- package/dist/512.js.map +1 -0
- package/dist/517200f13a5516e40a9ad6d9c5bcd90e.js +1 -0
- package/dist/51f903c5ce5284a63196247cffb5ca40.js +1 -0
- package/dist/52fd09d1713345d9ee64dc7daea9fd6f.js +1 -0
- package/dist/5348f3cfbe5a63954e7d984f197bbddb.js +1 -0
- package/dist/5352ecd8e5f1a2637b48e18cc406edb1.js +1 -0
- package/dist/5398e3b596fa15df4d84b2aa0464e5c4.js +1 -0
- package/dist/53e3600928916423671f3388e2d67844.js +1 -0
- package/dist/54560f13b36626237959e93b7771a484.js +1 -0
- package/dist/54a10f3bddad1e6da452fee7124fe846.js +1 -0
- package/dist/57e14488b13e50ebdb5fdfc7880da683.js +1 -0
- package/dist/57f4109bd1f06be4dc2bcb8ff7eaf1e5.js +1 -0
- package/dist/582e24f5ba929e358fadfc7be4c18025.js +1 -0
- package/dist/58598705e7012f4ca1eb1dd21d3c59a5.js +1 -0
- package/dist/5861dfe4f2c7823623e82d0619c5bf06.js +1 -0
- package/dist/58aab872dbdb5e1607076e1935130e03.js +1 -0
- package/dist/58c35e5c73bbc1664bbd67c570342aa0.js +1 -0
- package/dist/59cc05504a1c823b6d4796bf6b430822.js +1 -0
- package/dist/5a496ae20cc576bef1d35972548207cf.js +1 -0
- package/dist/5a741aab715866cb4d9a55e89dfc8420.js +1 -0
- package/dist/5a8ead0357e5029a2518959423dc29f3.js +1 -0
- package/dist/5b6a626249d0bc43e412fffa6a9ee177.js +1 -0
- package/dist/5c9be61a5fe851f5f37cc4de2586b096.js +1 -0
- package/dist/5cab33610b8d9c1aee4db4672811cb5f.js +1 -0
- package/dist/5cd4e1282f4409600b942819b7aa4f21.js +1 -0
- package/dist/5ce650c06c385f9d15621e54c60457c0.js +1 -0
- package/dist/5cebfc2c3495b6294dcb2a99e5174872.js +1 -0
- package/dist/5d312b184c1f4565f51247d3c6dbba90.js +1 -0
- package/dist/5d3314103b00c8ea165c6f9f6757f794.js +1 -0
- package/dist/5df362c9904925cdf574d9506e4be76d.js +1 -0
- package/dist/5e55b301888460bd06c8e26d1011e01a.js +1 -0
- package/dist/5e8a4f4320a07ae4bb1d8a5cd621d955.js +1 -0
- package/dist/5f3ce6efab3c679ec1ad25ab0b3f6b2f.js +1 -0
- package/dist/5f5a93ab1249b7cbdb13d9466febd3a0.js +1 -0
- package/dist/5fedbf948ed123687f77167fac1faf8b.js +1 -0
- package/dist/5ffbb9579edc192b3e268a1f47fa61ae.js +1 -0
- package/dist/60190285b6c2243e14184b9e57d48dbb.js +1 -0
- package/dist/60d2bacc2e51eabc2bb0afa982fffb56.js +1 -0
- package/dist/60ede8d7ffdf4c05f2ce51b6d8d2be68.js +1 -0
- package/dist/60f8f158539619aaf544fa35ce8daccd.js +1 -0
- package/dist/61.js +1 -0
- package/dist/61.js.map +1 -0
- package/dist/617ddc517c704963dc032140e80151d5.js +1 -0
- package/dist/622e27eec5f26148f51ccc30315a3deb.js +1 -0
- package/dist/6250c7594cd66ca91184b5beca293e06.js +1 -0
- package/dist/629e56c05a8ab32ebfd5d058ba8d242d.js +1 -0
- package/dist/62a96977e725e8bc809dc80afe0fedf1.js +1 -0
- package/dist/63596b4896732fb322ab0496b4be1e74.js +1 -0
- package/dist/639.js +1 -0
- package/dist/639.js.map +1 -0
- package/dist/6490772da5aecc6cb9e4c625abc74a96.js +1 -0
- package/dist/64a5f4d62507d032038dcd76d15188e1.js +1 -0
- package/dist/64d6924350bd7706850cdc0dcc76ccf6.js +1 -0
- package/dist/656927386f77b2620f35af391f59d5ab.js +1 -0
- package/dist/65abcd8e99a385bcd8f1776f160040a9.js +1 -0
- package/dist/65e7cf62ca9df32c18b630f31025a401.js +1 -0
- package/dist/663ffb67b9683a2126410325d1a5a152.js +1 -0
- package/dist/678f5201c1917429f334b88078ca4174.js +1 -0
- package/dist/689.js +1 -0
- package/dist/689.js.map +1 -0
- package/dist/69731d1754f66b8b2640df4f561a6526.js +1 -0
- package/dist/6a1c347ab79a93f3ac01b08c8ccfc827.js +1 -0
- package/dist/6a3775ac1fe6361f31918720b62c8f3d.js +1 -0
- package/dist/6a851f05f1f4a974e02fe23eac2bad4e.js +1 -0
- package/dist/6b4b87a54f673cfbb82be45329441bef.js +1 -0
- package/dist/6bed1b724e74e6bc80688f42bc824d70.js +1 -0
- package/dist/6c0a75dc5671c3f237a79f6e45b9891c.js +1 -0
- package/dist/6c3d5ea389d0e47cbe327673b7495701.js +1 -0
- package/dist/6c67587c2093ac3a19da9f2196e040b7.js +1 -0
- package/dist/6d38cef4a006e6cfe54a6117aba7b600.js +1 -0
- package/dist/6e40b726d91e9138d9eaef6fd012c740.js +1 -0
- package/dist/6eac646091211287dd5e5b376c755110.js +1 -0
- package/dist/6faa9e5f2a0122d2333fa450337a09b0.js +1 -0
- package/dist/70074e0c785c9a808dea76c7c7d17af3.js +1 -0
- package/dist/70286c33cab463fd576766adecd2d5d9.js +1 -0
- package/dist/7080d2a1db1608264a6d9d9fbaf2cce8.js +1 -0
- package/dist/711.js +1 -0
- package/dist/711.js.map +1 -0
- package/dist/712.js +1 -0
- package/dist/712.js.map +1 -0
- package/dist/714763ddd9bd466c95df7b042900bb87.js +1 -0
- package/dist/7222998c10fabd9c824cf8cf540b3b74.js +1 -0
- package/dist/724a16861717b5b4f786d24b56b62614.js +1 -0
- package/dist/7259bceba25ac1476fc775122a63d249.js +1 -0
- package/dist/725da29f1643c2263a437c08a1454aea.js +1 -0
- package/dist/732e6b65765e6a792f04be1fa30993a5.js +1 -0
- package/dist/74988a42599f1bd6a3a890e5f582da2b.js +1 -0
- package/dist/75182a479f7eba2798d943fa230a91ef.js +1 -0
- package/dist/755114145e5b97e5571a160a39e716db.js +1 -0
- package/dist/764b59bdd3a89e14f88c9d63020551a1.js +1 -0
- package/dist/771.js +1 -0
- package/dist/771.js.map +1 -0
- package/dist/77aaca51c1c32acaf32656d45f4dc017.js +1 -0
- package/dist/789.js +1 -0
- package/dist/789.js.map +1 -0
- package/dist/78c709e6b518df25c267f2a5116de970.js +1 -0
- package/dist/79241f85b016a7332f85bb66667459c2.js +1 -0
- package/dist/79455ab9a6cd507f5314141cc965093a.js +1 -0
- package/dist/7a4e3546b63a5296028f4268f96b82b3.js +1 -0
- package/dist/7b839a5c1f6d89538928c8a29003bbda.js +1 -0
- package/dist/7c488184a1ff274206e8af2c3aeeb2f6.js +1 -0
- package/dist/7e0c1151de4aade1c41d42a40530fc7c.js +1 -0
- package/dist/7e4099fc2d04c7c1cf96892b962ba4ec.js +1 -0
- package/dist/7e7131507a20f96834597eb2de3e880a.js +1 -0
- package/dist/7f007f3f67d9c856e727cec1369f8cba.js +1 -0
- package/dist/7f79d4bde67c8013b187889b63e25bce.js +1 -0
- package/dist/7f9a9efc9ab681fcbf6400e2adb368a9.js +1 -0
- package/dist/8024bca4a1198cc51cbffaa7a907ee99.js +1 -0
- package/dist/805cb6232d7a9fa46025d48a43622ecf.js +1 -0
- package/dist/806.js +1 -0
- package/dist/80ddbf4f0fdde4ddba57130e61043017.js +1 -0
- package/dist/81318a3530fb35d5178eb7a4a13a606f.js +1 -0
- package/dist/814b9f8056e54d372eefebdae282728e.js +1 -0
- package/dist/814fee9e631f1e4ceb9f1983c0349fa9.js +1 -0
- package/dist/816.js +1 -0
- package/dist/816.js.map +1 -0
- package/dist/817edb0c6f9d66f9c0027762edb1d797.js +1 -0
- package/dist/82ff13fbc1af95d2d76ca788fd72e607.js +1 -0
- package/dist/83387cb17a7680f59240e7b399e3ac2b.js +1 -0
- package/dist/834d28f1d0979e2614f1e8643f0b7211.js +1 -0
- package/dist/839e3594798c1942d3c92f9acfaa5f0b.js +1 -0
- package/dist/83bd353f98aa901411c82b8af58d1296.js +1 -0
- package/dist/83e8c44ee2a064e0eac31dbd3c876493.js +1 -0
- package/dist/84270e22d4439d15b0d8f392d1338d8e.js +1 -0
- package/dist/843c762c24f7fac628d8c62519a7b308.js +1 -0
- package/dist/84abf03cc94d264bb38020b4ac5f76e1.js +1 -0
- package/dist/852.js +1 -0
- package/dist/852.js.map +1 -0
- package/dist/875ae58e8015a6d08dbc9d0c04e24638.js +1 -0
- package/dist/879d6bc1ca1dde95a9a98dc7a2ab0d06.js +1 -0
- package/dist/87bce6f50196688852142c679227b1b9.js +1 -0
- package/dist/880ae94877022f7fb0458ced0825eb4c.js +1 -0
- package/dist/88730abfeb4a23e692ac7933882f12eb.js +1 -0
- package/dist/88ca2076c5882a4abcf74c2b173a9c58.js +1 -0
- package/dist/88e2feda80ac8cfb28f1dc0ec833b40d.js +1 -0
- package/dist/894052ca1f8f35cc1cf7cfb29ef75027.js +1 -0
- package/dist/894edcaf39c3c95818e3949d737ed459.js +1 -0
- package/dist/897.js +1 -0
- package/dist/897.js.map +1 -0
- package/dist/8a31266178067a316bb2503147cdb5cb.js +1 -0
- package/dist/8a5127228870aafabfff6111d29313d6.js +1 -0
- package/dist/8afd141ad70961656700a70beeb2eb05.js +1 -0
- package/dist/8c7616f0adba6a5ac0d2f06ba4ebd696.js +1 -0
- package/dist/8d9bb1799d9b98db107e84f10132e17f.js +1 -0
- package/dist/8ed58ed9c7e1cb1ae1f2830d29011ffb.js +1 -0
- package/dist/8ed5aba33ead1f94e97d5c35a5e93434.js +1 -0
- package/dist/8eede17ae9e4d25c3c17b8a8a7fc3c3d.js +1 -0
- package/dist/8f9ce72eeabbf31f2d51f4bcfc66d3b0.js +1 -0
- package/dist/90812d89181b698975cbb081adcbbcb0.js +1 -0
- package/dist/90d2a5c1cd19738e0968b86280050556.js +1 -0
- package/dist/90f3dc3c18d447104b63c156cb7fddb5.js +1 -0
- package/dist/91beb08737a1bbf071f351fb0acdbf3c.js +1 -0
- package/dist/926.js +17 -0
- package/dist/926.js.map +1 -0
- package/dist/92f4aab5c66f6269c7054c8fbcb3de13.js +1 -0
- package/dist/947d538f92dd1e146e4a3c41e4eacb92.js +1 -0
- package/dist/950a205e91da7e78226dd785fd6d34db.js +1 -0
- package/dist/961.js +1 -0
- package/dist/961.js.map +1 -0
- package/dist/962969a46fefcace3305abd4d6e14a2e.js +1 -0
- package/dist/9696a4229fb787eeb25b26f1274b75ee.js +1 -0
- package/dist/96b8d8b5efd11741639659c63a485c27.js +1 -0
- package/dist/9807cf1e443a7440371904b6525f37eb.js +1 -0
- package/dist/981bd23edacd811f9e4a583d89b544ee.js +1 -0
- package/dist/9827973b533de05b338533a0211d97d9.js +1 -0
- package/dist/983fccb9f00748c487e889f6c83aa367.js +1 -0
- package/dist/98e7bdab44ecb58b3b76ed8025f330c4.js +1 -0
- package/dist/9920e03a65566d728a73c7bf18bc5741.js +1 -0
- package/dist/9938f30907f64b5d1bc4b641411ff8b8.js +1 -0
- package/dist/9b1fd9cf4206cc32e84150c49707d811.js +1 -0
- package/dist/9b4de1346c73ba258736f1a3f00fdc14.js +1 -0
- package/dist/9b5a6ec07bb0a2daade10189696fc399.js +1 -0
- package/dist/9b80d1a12acd18c90e41ca92073122a7.js +1 -0
- package/dist/9b9578869f378f8e2afbf85a76c0ac72.js +1 -0
- package/dist/9d5bba46df7fb1577fec6cb90f1bb2a7.js +1 -0
- package/dist/9ebb9ac2c9c875649c72722bc585d445.js +1 -0
- package/dist/9ed8c3550b5c3c1e878d0692f0338cb7.js +1 -0
- package/dist/9fd3f255cfd09016ec7f4896bc51864c.js +1 -0
- package/dist/a0e32ba94aa4384823d768802b9486e1.js +1 -0
- package/dist/a1bb5b3f6078f04941c00f87171dc0ae.js +1 -0
- package/dist/a1c12fd9c6c9e1b151ad99a847f09006.js +1 -0
- package/dist/a1c8660c5bcc6b6a43a7fb3c351174d9.js +1 -0
- package/dist/a223748cd69094dd12b486353b22f479.js +1 -0
- package/dist/a2242e107926b9274a7f57b52fba4a29.js +1 -0
- package/dist/a2746fc96d535b19c120d4b87dc86ef1.js +1 -0
- package/dist/a3a941911290b143d26ceb5e776e1d18.js +1 -0
- package/dist/a3dfa410d90c00078f4b015410048f34.js +1 -0
- package/dist/a41ce517e26d17d855b7224af9ee433b.js +1 -0
- package/dist/a496f663a8cf2dc047e12d8a80d76510.js +1 -0
- package/dist/a4bedde07e392f8ebf64341b61f75df2.js +1 -0
- package/dist/a4d0588d199cb1afffb42e57ea40fa86.js +1 -0
- package/dist/a4d638b976f02f35740be031f996e088.js +1 -0
- package/dist/a4e021a4b5d5d65cc87fee17c1886c3f.js +1 -0
- package/dist/a52f9ac0e3d582ed7e488aa1dfc33eda.js +1 -0
- package/dist/a533e643002830be2da76c9527265860.js +1 -0
- package/dist/a569591af2f834ec4b58f43ab7742186.js +1 -0
- package/dist/a66a34e3af97cd404f0cf6a5ded342c5.js +1 -0
- package/dist/a6eb87af5cd7ae7e4fcba8ec606ec4ba.js +1 -0
- package/dist/a709bba98acec5da3ea6258e245514cb.js +1 -0
- package/dist/a83211eadd86ef80416334e72774ab11.js +1 -0
- package/dist/a8c8aa148991e4ca35ed78cd5ccfcc03.js +1 -0
- package/dist/a9cb92db2399f7ac97ad55fe79fe5c20.js +1 -0
- package/dist/aa0eee504d52a12d3a30bbd523afcc34.js +1 -0
- package/dist/aa5623ec68d23fedb9c9c115c7d99063.js +1 -0
- package/dist/ab0128ab12bcb8729032421b40f5f8dd.js +1 -0
- package/dist/ab237eed5fd16ab99c06f0d28d465edb.js +1 -0
- package/dist/af1635b600efd13f6059eb6ac9deae12.js +1 -0
- package/dist/af6fdb556ee3f9065578bb01f81f6216.js +1 -0
- package/dist/afba1f28f2baa29eae717d6cb03f5464.js +1 -0
- package/dist/b02d982ccb1011197a5a24800b178a0a.js +1 -0
- package/dist/b10accbff47791a59b8494225af07025.js +1 -0
- package/dist/b1170472ae4b50e3b0070eb991e502fe.js +1 -0
- package/dist/b13d991d1e4a016abea3fe5837261690.js +1 -0
- package/dist/b1e349371cb9c226905c846706ad8b93.js +1 -0
- package/dist/b1f3f77a9279cdb38846ebe13c3438bc.js +1 -0
- package/dist/b20cd9acf45420fcacfd923754185663.js +1 -0
- package/dist/b243eabb7cb281a20eae3523742d562f.js +1 -0
- package/dist/b306285dfd802d091e788de0f96b8cb2.js +1 -0
- package/dist/b3147425240a31fc04d7aaf7f0fbd3d3.js +1 -0
- package/dist/b33ef9b4202539d3690251cb8213a034.js +1 -0
- package/dist/b3f1431b9e6d9e6632a93c2cd89f945b.js +1 -0
- package/dist/b808fb222140a85b23ebbe0fffa906d9.js +1 -0
- package/dist/b881dca9d9a80f61d87374b4bd5a2dd5.js +1 -0
- package/dist/b8b6bd460e7da0ba8f3b2218327966ee.js +1 -0
- package/dist/b934b22e8f8a8b1ba81dbc2cf058b0cd.js +1 -0
- package/dist/b953ce2f19e7291598cd9c05128133c1.js +1 -0
- package/dist/b992b348ffb6453e4a02a60e71c5304e.js +1 -0
- package/dist/b9ca55e245b8bbed49058e9dada2dd14.js +1 -0
- package/dist/ba6b8b3e06cd9d0aee9c69278ee84647.js +1 -0
- package/dist/bb5476e5e0c5368b031ba774c0f23999.js +1 -0
- package/dist/bb5bab7a675544fe31ddb7f4a77dffb9.js +1 -0
- package/dist/bb75a64c7f1e8f7d792e8115710299cb.js +1 -0
- package/dist/bc27b2d7127da36a976f00f889810836.js +1 -0
- package/dist/bcfde0a9c69146bbfb702f12811a4aa4.js +1 -0
- package/dist/bd309bb3f23f2bfbcf914f2e71474ab5.js +1 -0
- package/dist/bd459306ebcabc90fabccdfbbcd199ea.js +1 -0
- package/dist/be75b76e74c78535966ec8aaa7d46bec.js +1 -0
- package/dist/bf37de323316c6ae5745fc11fd576b1c.js +1 -0
- package/dist/c1a1f4ba29aa2d9a0b1a1abe5cfee0c6.js +1 -0
- package/dist/c3832579be376308fa819b04e7b0c66f.js +1 -0
- package/dist/c3f345c994392d97785925e790513a9f.js +1 -0
- package/dist/c4c991b8f5eb242f1e220e5f568fdfbc.js +1 -0
- package/dist/c4e58637b4d14c303e29d3ce4b4a210f.js +1 -0
- package/dist/c51840077c684be0e7e13339f85cd4a9.js +1 -0
- package/dist/c530988d2b1966fd10a4d99fa3877e1b.js +1 -0
- package/dist/c64d6e1e72024bb5d3d3e9bfc19d183d.js +1 -0
- package/dist/c80e89199aef31e48addb2b35ea96365.js +1 -0
- package/dist/c81814fb2ec8bab7bb415b5a40ed93b5.js +1 -0
- package/dist/c8230f96396f0378d032dce2be3dce66.js +1 -0
- package/dist/c8803facc1e76ecd4b6ba756118f1a6d.js +1 -0
- package/dist/c8deee9d1d08e50285fe2b1c2897bca5.js +1 -0
- package/dist/c9e94edb706994da8aee83c3593cb2d0.js +1 -0
- package/dist/cb0d121a88477f943960f5ad60602c22.js +1 -0
- package/dist/cb4380c2fd4e67769f509b2be529d7b2.js +1 -0
- package/dist/cb4bb785934eeca9b408e892ae6b73b7.js +1 -0
- package/dist/cb5746e29527a2fdb9f857a121e086ed.js +1 -0
- package/dist/cb652f200fc3dd740b2e7f678a9272ea.js +1 -0
- package/dist/cb9910e014b468ada91393696fcad206.js +1 -0
- package/dist/cbdbd623038183a8c068dd24ecd90682.js +1 -0
- package/dist/cbdc4ca43a8c940a6c3f59a8b6f17df5.js +1 -0
- package/dist/cc65d108f0e7cfb200de1d0bcf115005.js +1 -0
- package/dist/cc715c90d57b30965fc297a12746d6b5.js +1 -0
- package/dist/cd9a17f94a922c7c88000b1b3cdd67df.js +1 -0
- package/dist/cf1706c8b4a4eecbc161e915a4be16ca.js +1 -0
- package/dist/cf188b3f83735389d47bb12fc9f7069a.js +1 -0
- package/dist/cf26dd07f19bcb5b7efbf057a6cfeb8f.js +1 -0
- package/dist/cf3f6b1c74c72cb5d02870022dbc9f94.js +1 -0
- package/dist/cf909ad6e321c2f98750f5c3581556f8.js +1 -0
- package/dist/cf9c7cbfc2b609b9ae59daeab82719c4.js +1 -0
- package/dist/d1db2c4677dd2ee7a0c690c58798a013.js +1 -0
- package/dist/d43ad5f9bad9a042b49b2592c7639c28.js +1 -0
- package/dist/d4f1a314cb3668f8e17f24bccf0229b6.js +1 -0
- package/dist/d4f5981ee5a73d8a6e19112f2ffcb72c.js +1 -0
- package/dist/d542dda7308361c34af2afb9b70d755a.js +1 -0
- package/dist/d5999827bd3af6b813a871de344b109a.js +1 -0
- package/dist/d5a6140d581e5c4eb200259ce372f40b.js +1 -0
- package/dist/d5f79987405c2169278f8de37bcc9d05.js +1 -0
- package/dist/d76046afaf4d32b0f0afb63b4fabc680.js +1 -0
- package/dist/d78d3b050ea95b068380d975fd413fd7.js +1 -0
- package/dist/d7d616d4aa8fd3f51d681242853dcde9.js +1 -0
- package/dist/d83cda12aee0c87c8b381a1234bf7798.js +1 -0
- package/dist/d85853bab3b213652aee023adecfb690.js +1 -0
- package/dist/da4a891d81f066ebf82f298c53bd4ed8.js +1 -0
- package/dist/da740c1b29a85b999a6874b59a1baeef.js +1 -0
- package/dist/db8ca5cfb6fe4aaef215f116f6991784.js +1 -0
- package/dist/dc7ab72407b0b44ef5dae159373de53b.js +1 -0
- package/dist/dc8240db39815020378555a4d80571c3.js +1 -0
- package/dist/dc83a73f0eb89665520bbb6672dfa3cb.js +1 -0
- package/dist/dc932cde2fbfca8e2901fb693968b131.js +1 -0
- package/dist/ddbc961769cd2ff4d4a7a136168ebf4c.js +1 -0
- package/dist/de0fd4fd7c2d7a4887cbc99eed91f797.js +1 -0
- package/dist/de73b4d2a9ed4bcb851f9141e303636d.js +1 -0
- package/dist/e00b330413304d60c26e164da7f9fe0c.js +1 -0
- package/dist/e0adad8a8579bf99f3e22f7c214a5c64.js +1 -0
- package/dist/e0c565aadda4787ba4ef4456c0a7ee29.js +1 -0
- package/dist/e0fa6a4fe8bff90d50ce812e666957ca.js +1 -0
- package/dist/e2b38a8393be2cf23f3894ace3efb1c3.js +1 -0
- package/dist/e2fe8f0d4fd950b20b30fabaea96b3f8.js +1 -0
- package/dist/e37ac12436bcd0536ec98ae8470a1228.js +1 -0
- package/dist/e4917fa7632b01d28e99304d32d989f7.js +1 -0
- package/dist/e61779df91186b23e7adf2d1968b2708.js +1 -0
- package/dist/e63fce237243190962fcc3b12b387e1b.js +1 -0
- package/dist/e6ad50b520736b595970c9e07029c3f1.js +1 -0
- package/dist/e7e1a807af3160b342e0a3550cf8f7c5.js +1 -0
- package/dist/e7f37e0f2b6113039c45a326264c4d36.js +1 -0
- package/dist/e874d975c9128dc6eb9a513d088bed9f.js +1 -0
- package/dist/e9382a0e67b22188c75e9418de1c9295.js +1 -0
- package/dist/e9c8f7e13e00284ce126890bf7ac46fd.js +1 -0
- package/dist/eaa55a522fb2cb2f0287711f42344984.js +1 -0
- package/dist/eb0b62e1895dcf7491419aa728f00c38.js +1 -0
- package/dist/ec7b3f184238605a5239da7559e6cff9.js +1 -0
- package/dist/ec901efce9bc8572f27155236a447e62.js +1 -0
- package/dist/ecdb4966f685f3e44b1f28fae46827a3.js +1 -0
- package/dist/ecff3d4bbf59ef41230960af46098e74.js +1 -0
- package/dist/ee41eb1fd1d1c87c45e818b5a8a65cf8.js +1 -0
- package/dist/ee5d36473f84db2af26d82efd69a38ec.js +1 -0
- package/dist/ef27f3b478f5d1558c2382b4bc0866bb.js +1 -0
- package/dist/ef87482c92662e8b69a21f47588474ea.js +1 -0
- package/dist/efc14cdf19554635e477781704353ec2.js +1 -0
- package/dist/eff4371180dfac54de25ed3a0105d82f.js +1 -0
- package/dist/ethiopia-esm-billing-app.js +6 -0
- package/dist/ethiopia-esm-billing-app.js.buildmanifest.json +1449 -0
- package/dist/ethiopia-esm-billing-app.js.map +1 -0
- package/dist/f15cbf0d23cba4a313f3f2acfef5370c.js +1 -0
- package/dist/f326f2f263b1498fedbe1d07d7254d10.js +1 -0
- package/dist/f694018779de5916e404c0fa902f34c1.js +1 -0
- package/dist/f69b43eccd9faed6d9182fac0b2a176d.js +1 -0
- package/dist/f6b33aded7ae7504bfcc4550925cccb0.js +1 -0
- package/dist/f6d7091e70dee6c74956acfef2464d08.js +1 -0
- package/dist/f6dc1ef066da7f1c3e5c5fc1462f7be0.js +1 -0
- package/dist/fa0c561bb37040fc8145e5c70ea64912.js +1 -0
- package/dist/fac0ce75e0690947a9e9e6f5b35c1ea8.js +1 -0
- package/dist/fb393a7455b47f3d4fc30cf219d5145c.js +1 -0
- package/dist/fd00121832e53db8249f7985d80ccd44.js +1 -0
- package/dist/fd3859a700b456e06c65c0cf6b0af05c.js +1 -0
- package/dist/fd5bc50b18c9f46380cbe5ec1ac2127b.js +1 -0
- package/dist/fd9645aaf1f70c8abc562be41bee25fc.js +1 -0
- package/dist/fe9499c0a5444f7f42843fa00fb355cb.js +1 -0
- package/dist/ffd3b83e8b5878f4785591ff54b1dfff.js +1 -0
- package/dist/main.js +32 -0
- package/dist/main.js.map +1 -0
- package/dist/routes.json +1 -0
- package/jest.config.js +8 -0
- package/package.json +52 -0
- package/rspack.config.js +1 -0
- package/src/autosuggest/autosuggest.component.tsx +203 -0
- package/src/autosuggest/autosuggest.scss +68 -0
- package/src/autosuggest/patient-search-info.component.tsx +29 -0
- package/src/autosuggest/patient-search-info.scss +37 -0
- package/src/autosuggest/search-empty-state.component.tsx +27 -0
- package/src/autosuggest/search-empty-state.scss +18 -0
- package/src/benefits-package/benefits/benefits-header.component.tsx +28 -0
- package/src/benefits-package/benefits/benefits.component.tsx +74 -0
- package/src/benefits-package/benefits/benefits.scss +61 -0
- package/src/benefits-package/benefits-package.component.tsx +37 -0
- package/src/benefits-package/benefits-package.mock.ts +145 -0
- package/src/benefits-package/benefits-package.resources.tsx +58 -0
- package/src/benefits-package/benefits-package.scss +23 -0
- package/src/benefits-package/empty-state/empty-state.component.tsx +23 -0
- package/src/benefits-package/empty-state/empty-state.scss +32 -0
- package/src/benefits-package/forms/benefit-pre-auth-form.workspace.tsx +292 -0
- package/src/benefits-package/forms/benefits-pre-auth-form.scss +66 -0
- package/src/benefits-package/forms/interventions-form.component.tsx +94 -0
- package/src/benefits-package/forms/packages-and-interventions-form.component.tsx +117 -0
- package/src/benefits-package/forms/preauth.resources.ts +17 -0
- package/src/benefits-package/table/benebfits-table.scss +53 -0
- package/src/benefits-package/table/benefits-table.component.tsx +90 -0
- package/src/benefits-package/table/generic-data-table.scss +57 -0
- package/src/benefits-package/table/generic_data_table.component.tsx +96 -0
- package/src/benefits-package/table/temporary-pre-auth-responses.json +392 -0
- package/src/bill-administration/bill-deposit/components/dashboard/bill-deposit-dashboard.component.tsx +35 -0
- package/src/bill-administration/bill-deposit/components/forms/add-deposit.workspace.scss +26 -0
- package/src/bill-administration/bill-deposit/components/forms/add-deposit.workspace.tsx +212 -0
- package/src/bill-administration/bill-deposit/components/forms/deposit-transactions/deposit-transaction.workspace.scss +33 -0
- package/src/bill-administration/bill-deposit/components/forms/deposit-transactions/deposit-transaction.workspace.tsx +257 -0
- package/src/bill-administration/bill-deposit/components/modal/delete-deposit.modal.tsx +58 -0
- package/src/bill-administration/bill-deposit/components/modal/reverse-transaction.modal.tsx +59 -0
- package/src/bill-administration/bill-deposit/components/search/bill-deposit-search.component.tsx +106 -0
- package/src/bill-administration/bill-deposit/components/search/bill-deposit-search.scss +107 -0
- package/src/bill-administration/bill-deposit/components/search/components/deposit-table.tsx +150 -0
- package/src/bill-administration/bill-deposit/components/search/components/patient-info.tsx +38 -0
- package/src/bill-administration/bill-deposit/components/search/components/patient-search.tsx +24 -0
- package/src/bill-administration/bill-deposit/components/search/components/transaction-list/transaction-list.component.tsx +66 -0
- package/src/bill-administration/bill-deposit/components/search/components/transaction-list/transaction-list.scss +5 -0
- package/src/bill-administration/bill-deposit/constants/bill-deposit.constants.ts +25 -0
- package/src/bill-administration/bill-deposit/hooks/useBillDeposit.ts +43 -0
- package/src/bill-administration/bill-deposit/styles/bill-deposit-dashboard.scss +11 -0
- package/src/bill-administration/bill-deposit/types/bill-deposit.types.ts +61 -0
- package/src/bill-administration/bill-deposit/utils/bill-deposit.utils.ts +92 -0
- package/src/bill-administration/billable-exemption/billable-exemptions/action-buttons/action-buttons.component.tsx +18 -0
- package/src/bill-administration/billable-exemption/billable-exemptions/action-buttons/action-buttons.scss +12 -0
- package/src/bill-administration/billable-exemption/billable-exemptions/billable-exemptions-viewer.component.tsx +172 -0
- package/src/bill-administration/billable-exemption/billable-exemptions/billable-exemptions.scss +75 -0
- package/src/bill-administration/billable-exemption/billable-exemptions/modals/save-schema-modal.scss +39 -0
- package/src/bill-administration/billable-exemption/billable-exemptions/modals/save-schema.modal.tsx +88 -0
- package/src/bill-administration/billable-exemption/billable-exemptions/schema-editor/schema-editor.component.tsx +179 -0
- package/src/bill-administration/billable-exemption/billable-exemptions/schema-editor/schema-editor.scss +36 -0
- package/src/bill-administration/billable-exemption/billable-exemptions/schema-editor/schema-viewer-component.tsx +93 -0
- package/src/bill-administration/billable-exemption/billable-exemptions/schema-editor/schema-viewer.scss +28 -0
- package/src/bill-administration/billable-exemption/billable-exemptions/schema-editor/schema-viewer.test.tsx +50 -0
- package/src/bill-administration/billable-exemption/billable-exemptions.component.tsx +16 -0
- package/src/bill-administration/dashboard/dashboard-container.component.tsx +26 -0
- package/src/bill-administration/dashboard/dashboard-container.scss +2 -0
- package/src/bill-administration/dashboard.meta.ts +48 -0
- package/src/bill-administration/home.component.tsx +26 -0
- package/src/bill-administration/home.scss +10 -0
- package/src/bill-administration/index.tsx +71 -0
- package/src/bill-administration/patient-billing/bill-actions/cancel-line-item.component.tsx +29 -0
- package/src/bill-administration/patient-billing/bill-actions/delete-bill-action-button.component.tsx +37 -0
- package/src/bill-administration/patient-billing/bill-actions/edit-line-item.component.tsx +31 -0
- package/src/bill-administration/patient-billing/bill-actions/refund-line-item.component.tsx +34 -0
- package/src/bill-administration/patient-billing/bill-actions/waive-bill-action-button.component.tsx +37 -0
- package/src/bill-administration/patient-billing/bill-line-items.component.tsx +85 -0
- package/src/bill-administration/patient-billing/modals/cancel-bill.scss +29 -0
- package/src/bill-administration/patient-billing/modals/delete-bill.modal.tsx +122 -0
- package/src/bill-administration/patient-billing/modals/delete-billable-service.modal.tsx +79 -0
- package/src/bill-administration/patient-billing/modals/delete-billable-service.test.tsx +101 -0
- package/src/bill-administration/patient-billing/modals/delete-services.scss +28 -0
- package/src/bill-administration/patient-billing/modals/refund-bill.modal.tsx +105 -0
- package/src/bill-administration/patient-billing/patient-billing.component.tsx +64 -0
- package/src/bill-administration/patient-billing/patient-billing.scss +31 -0
- package/src/bill-administration/patient-billing/patient-bills.component.tsx +147 -0
- package/src/bill-administration/patient-billing/workspaces/cancel-bill/cance-bill.resource.tsx +47 -0
- package/src/bill-administration/patient-billing/workspaces/cancel-bill/cancel-bill.scss +40 -0
- package/src/bill-administration/patient-billing/workspaces/cancel-bill/cancel-bill.workspace.tsx +128 -0
- package/src/bill-administration/patient-billing/workspaces/create-bill/create-bill.style.scss +40 -0
- package/src/bill-administration/patient-billing/workspaces/create-bill/create-bill.workspace.test.tsx +271 -0
- package/src/bill-administration/patient-billing/workspaces/create-bill/create-bill.workspace.tsx +295 -0
- package/src/bill-administration/patient-billing/workspaces/edit-bill/edit-bill-form.test.tsx +90 -0
- package/src/bill-administration/patient-billing/workspaces/edit-bill/edit-bill-form.workspace.tsx +190 -0
- package/src/bill-administration/patient-billing/workspaces/edit-bill/edit-bill-util.ts +60 -0
- package/src/bill-administration/patient-billing/workspaces/edit-bill/edit-bill.scss +40 -0
- package/src/bill-administration/patient-billing/workspaces/edit-bill/useEditBillFormSchema.tsx +92 -0
- package/src/bill-administration/patient-billing/workspaces/waive-bill/waive-bill-form.scss +57 -0
- package/src/bill-administration/patient-billing/workspaces/waive-bill/waive-bill-form.test.tsx +173 -0
- package/src/bill-administration/patient-billing/workspaces/waive-bill/waive-bill-form.workspace.tsx +232 -0
- package/src/bill-administration/payment-history/filters/bill-filter.test.ts +124 -0
- package/src/bill-administration/payment-history/filters/bill-filter.ts +42 -0
- package/src/bill-administration/payment-history/filters/cashier-filter.component.tsx +61 -0
- package/src/bill-administration/payment-history/filters/date-ranger-filter.component.tsx +38 -0
- package/src/bill-administration/payment-history/filters/filter-dashboard.scss +15 -0
- package/src/bill-administration/payment-history/filters/filter-dashboard.tsx +17 -0
- package/src/bill-administration/payment-history/filters/filter.component.tsx +15 -0
- package/src/bill-administration/payment-history/filters/filter.scss +5 -0
- package/src/bill-administration/payment-history/filters/payment-type-filter.component.tsx +61 -0
- package/src/bill-administration/payment-history/filters/service-type-filter.component.tsx +65 -0
- package/src/bill-administration/payment-history/filters/timesheets-filter.component.tsx +68 -0
- package/src/bill-administration/payment-history/payment-dashboard.component.tsx +39 -0
- package/src/bill-administration/payment-history/payment-dashboard.scss +8 -0
- package/src/bill-administration/payment-history/payment-history-table.component.tsx +174 -0
- package/src/bill-administration/payment-history/payment-history-viewer.component.tsx +40 -0
- package/src/bill-administration/payment-history/payment-history.component.tsx +15 -0
- package/src/bill-administration/payment-history/payment-history.scss +86 -0
- package/src/bill-administration/payment-history/payment-method-distribution.component.tsx +100 -0
- package/src/bill-administration/payment-history/useBillServiceTypes.tsx +15 -0
- package/src/bill-administration/payment-history/usePaymentFilterContext.tsx +110 -0
- package/src/bill-administration/payment-history/usePaymentModeGroupTotals.tsx +42 -0
- package/src/bill-administration/payment-history/usePaymentTransactionHistory.tsx +34 -0
- package/src/bill-administration/payment-modes/delete-payment-mode.modal.scss +33 -0
- package/src/bill-administration/payment-modes/delete-payment-mode.modal.tsx +62 -0
- package/src/bill-administration/payment-modes/delete-payment-mode.test.tsx +56 -0
- package/src/bill-administration/payment-modes/payment-attributes/payment-mode-attributes.component.tsx +156 -0
- package/src/bill-administration/payment-modes/payment-attributes/payment-mode-attributes.scss +10 -0
- package/src/bill-administration/payment-modes/payment-mode-dashboard.component.tsx +222 -0
- package/src/bill-administration/payment-modes/payment-mode-dashboard.scss +32 -0
- package/src/bill-administration/payment-modes/payment-mode-home.component.tsx +18 -0
- package/src/bill-administration/payment-modes/payment-mode.resource.tsx +49 -0
- package/src/bill-administration/payment-modes/payment-mode.workspace.scss +33 -0
- package/src/bill-administration/payment-modes/payment-mode.workspace.test.tsx +207 -0
- package/src/bill-administration/payment-modes/payment-mode.workspace.tsx +223 -0
- package/src/bill-administration/payment-modes/usePaymentModeFormSchema.tsx +52 -0
- package/src/bill-administration/payment-points/clock-in-boundary.component.tsx +35 -0
- package/src/bill-administration/payment-points/create-payment-point.component.tsx +104 -0
- package/src/bill-administration/payment-points/payment-point/clock-in.modal.tsx +162 -0
- package/src/bill-administration/payment-points/payment-point/clock-in.scss +11 -0
- package/src/bill-administration/payment-points/payment-point/clock-out.modal.tsx +65 -0
- package/src/bill-administration/payment-points/payment-point/payment-point.component.tsx +30 -0
- package/src/bill-administration/payment-points/payment-points-styles.scss +16 -0
- package/src/bill-administration/payment-points/payment-points-table.component.tsx +101 -0
- package/src/bill-administration/payment-points/payment-points.component.tsx +33 -0
- package/src/bill-administration/payment-points/payment-points.resource.ts +131 -0
- package/src/bill-administration/payment-points/use-clock-in-status.ts +14 -0
- package/src/bill-administration/service-catalog/billable-service.resource.tsx +78 -0
- package/src/bill-administration/service-catalog/bulk-import-billable-service.modal.tsx +194 -0
- package/src/bill-administration/service-catalog/charge-summary-table.component.test.tsx +199 -0
- package/src/bill-administration/service-catalog/charge-summary-table.component.tsx +236 -0
- package/src/bill-administration/service-catalog/charge-summary-table.scss +19 -0
- package/src/bill-administration/service-catalog/charge-summary.resource.tsx +42 -0
- package/src/bill-administration/service-catalog/clinical-charges.component.tsx +36 -0
- package/src/bill-administration/service-catalog/clinical-charges.scss +259 -0
- package/src/bill-administration/service-catalog/commodity/commodity-form.scss +61 -0
- package/src/bill-administration/service-catalog/commodity/commodity-form.workspace.test.tsx +307 -0
- package/src/bill-administration/service-catalog/commodity/commodity-form.workspace.tsx +215 -0
- package/src/bill-administration/service-catalog/commodity/stock-search.component.tsx +107 -0
- package/src/bill-administration/service-catalog/commodity/useCommodityItem.tsx +59 -0
- package/src/bill-administration/service-catalog/form-helper.ts +225 -0
- package/src/bill-administration/service-catalog/form-schemas.tsx +33 -0
- package/src/bill-administration/service-catalog/services/concept-search.component.tsx +67 -0
- package/src/bill-administration/service-catalog/services/price.component.tsx +82 -0
- package/src/bill-administration/service-catalog/services/service-form.scss +59 -0
- package/src/bill-administration/service-catalog/services/service-form.workspace.test.tsx +228 -0
- package/src/bill-administration/service-catalog/services/service-form.workspace.tsx +301 -0
- package/src/bill-history/bill-history.component.tsx +193 -0
- package/src/bill-history/bill-history.scss +168 -0
- package/src/bill-history/bill-history.test.tsx +118 -0
- package/src/billable-services/billable-orders/drug-order/drug-order.component.tsx +65 -0
- package/src/billable-services/billable-orders/drug-order/drug-order.scss +31 -0
- package/src/billable-services/billable-orders/order-actions/components/base-order-button.component.tsx +42 -0
- package/src/billable-services/billable-orders/order-actions/components/generic-button.component.tsx +64 -0
- package/src/billable-services/billable-orders/order-actions/components/medication-order-button.component.tsx +115 -0
- package/src/billable-services/billable-orders/order-actions/components/medication-order-button.scss +11 -0
- package/src/billable-services/billable-orders/order-actions/components/order-action-button.component.tsx +59 -0
- package/src/billable-services/billable-orders/order-actions/hooks/useBillStatus.ts +12 -0
- package/src/billable-services/billable-orders/order-actions/hooks/useLabOrderAction.ts +55 -0
- package/src/billable-services/billable-orders/order-actions/hooks/useMedicationOrderAction.ts +128 -0
- package/src/billable-services/billable-orders/order-actions/hooks/useModalHandler.ts +103 -0
- package/src/billable-services/billable-orders/order-actions/styles/order-action.scss +0 -0
- package/src/billable-services/billable-orders/test-order/dispense.resource.tsx +89 -0
- package/src/billable-services/billable-orders/test-order/imaging-order.component.tsx +34 -0
- package/src/billable-services/billable-orders/test-order/lab-order.component.tsx +34 -0
- package/src/billable-services/billable-orders/test-order/price-info-order.componet.tsx +60 -0
- package/src/billable-services/billable-orders/test-order/price-info-order.scss +20 -0
- package/src/billable-services/billable-orders/test-order/procedure-order.component.tsx +34 -0
- package/src/billable-services/billable-orders/test-order/test-order-action.resource.tsx +86 -0
- package/src/billable-services/billable-orders/test-order/test-order-action.scss +12 -0
- package/src/billable-services/billable-orders/useBillableItem.tsx +69 -0
- package/src/billable-services/utils.ts +60 -0
- package/src/billing-dashboard/billing-dashboard.component.tsx +34 -0
- package/src/billing-dashboard/billing-dashboard.scss +72 -0
- package/src/billing-dashboard/clock-in-button.component.tsx +40 -0
- package/src/billing-dashboard/clock-out-strip.component.tsx +63 -0
- package/src/billing-form/billing-checkin-form.component.tsx +153 -0
- package/src/billing-form/billing-checkin-form.scss +14 -0
- package/src/billing-form/billing-checkin-form.test.tsx +146 -0
- package/src/billing-form/billing-form.component.tsx +237 -0
- package/src/billing-form/billing-form.scss +67 -0
- package/src/billing-form/check-in-form.utils.tsx +13 -0
- package/src/billing-form/helper.ts +2 -0
- package/src/billing-form/hie.resource.tsx +71 -0
- package/src/billing-form/social-health-authority/patient-banner-sha-status.extension.tsx +93 -0
- package/src/billing-form/social-health-authority/patient-banner-sha-status.scss +62 -0
- package/src/billing-form/social-health-authority/sha-number-validity.component.tsx +125 -0
- package/src/billing-form/social-health-authority/sha-number-validity.scss +88 -0
- package/src/billing-form/visit-attributes/visit-attributes-form.component.tsx +198 -0
- package/src/billing-form/visit-attributes/visit-attributes-form.scss +18 -0
- package/src/billing-header/billing-header.component.tsx +33 -0
- package/src/billing-header/billing-header.scss +83 -0
- package/src/billing-header/billing-illustration.component.tsx +30 -0
- package/src/billing-tabs/billing-tabs.scss +8 -0
- package/src/billing-tabs/billling-tabs.component.tsx +54 -0
- package/src/billing.resource.ts +298 -0
- package/src/bills-table/bills-table.component.tsx +292 -0
- package/src/bills-table/bills-table.scss +189 -0
- package/src/bills-table/bills-table.test.tsx +135 -0
- package/src/claims/claims-management/generic-table/generic-table.component.tsx +165 -0
- package/src/claims/claims-management/generic-table/generic-table.scss +40 -0
- package/src/claims/claims-management/header/claims-header.component.tsx +35 -0
- package/src/claims/claims-management/header/claims-header.scss +70 -0
- package/src/claims/claims-management/header/claims-illustration.component.tsx +13 -0
- package/src/claims/claims-management/header/filter-header.component.tsx +75 -0
- package/src/claims/claims-management/header/filter-header.scss +13 -0
- package/src/claims/claims-management/main/claims-overview-main.component.tsx +17 -0
- package/src/claims/claims-management/main/claims-pre-auth-main.component.tsx +36 -0
- package/src/claims/claims-management/main/claims-preauth.scss +13 -0
- package/src/claims/claims-management/table/claim-summary-modal/claim-summary.modal.tsx +284 -0
- package/src/claims/claims-management/table/claim-summary-modal/claim-summary.scss +252 -0
- package/src/claims/claims-management/table/claim-table.component.tsx +288 -0
- package/src/claims/claims-management/table/claims-list-table.component.tsx +16 -0
- package/src/claims/claims-management/table/claims-list-table.scss +45 -0
- package/src/claims/claims-management/table/hook/table.resource.tsx +9 -0
- package/src/claims/claims-management/table/manage-claim-request.modal.tsx +184 -0
- package/src/claims/claims-management/table/pre-auth-table.component.tsx +81 -0
- package/src/claims/claims-management/table/preauth-table.tmp.component.tsx +31 -0
- package/src/claims/claims-management/table/table-mock-up-data.ts +112 -0
- package/src/claims/claims-management/table/use-facility-claims.ts +43 -0
- package/src/claims/claims-wrap/claims-main-component.tsx +35 -0
- package/src/claims/claims-wrap/claims-main.scss +28 -0
- package/src/claims/dashboard/claims-breakdown/claims-breakdown.component.tsx +19 -0
- package/src/claims/dashboard/claims-breakdown/claims-breakdown.scss +35 -0
- package/src/claims/dashboard/claims-dashboard.component.tsx +41 -0
- package/src/claims/dashboard/form/claims-explanation-and-justification-form-input.component.tsx +192 -0
- package/src/claims/dashboard/form/claims-form.component.tsx +719 -0
- package/src/claims/dashboard/form/claims-form.mocks.ts +44 -0
- package/src/claims/dashboard/form/claims-form.resource.ts +161 -0
- package/src/claims/dashboard/form/claims-form.scss +161 -0
- package/src/claims/dashboard/form/claims-supporting-documents-inputs.form.tsx +180 -0
- package/src/claims/dashboard/header/claims-header.component.tsx +23 -0
- package/src/claims/dashboard/header/claims-header.scss +23 -0
- package/src/claims/dashboard/table/claims-table.component.tsx +206 -0
- package/src/claims/dashboard/table/claims-table.scss +106 -0
- package/src/claims/make-claims.component.tsx +28 -0
- package/src/claims/make-claims.scss +7 -0
- package/src/claims/metrics/metrics-card.component.tsx +36 -0
- package/src/claims/metrics/metrics-card.scss +75 -0
- package/src/claims/metrics/metrics-header.component.tsx +16 -0
- package/src/claims/metrics/metrics-header.scss +16 -0
- package/src/claims/metrics/metrics.component.tsx +49 -0
- package/src/claims/metrics/metrics.scss +13 -0
- package/src/claims/utils.ts +50 -0
- package/src/config-schema.ts +248 -0
- package/src/constants.ts +24 -0
- package/src/dashboard.meta.ts +25 -0
- package/src/declarations.d.ts +2 -0
- package/src/helpers/README.md +174 -0
- package/src/helpers/currency.test.ts +114 -0
- package/src/helpers/currency.ts +137 -0
- package/src/helpers/excelExport.ts +31 -0
- package/src/helpers/functions.ts +83 -0
- package/src/helpers/index.ts +1 -0
- package/src/hooks/benefits.mock.ts +391 -0
- package/src/hooks/getMflCode.tsx +19 -0
- package/src/hooks/use-payments-reconciler.tsx +75 -0
- package/src/hooks/use-pre-auth-requests.ts +256 -0
- package/src/hooks/use-rendered-rows.ts +90 -0
- package/src/hooks/useBillableServices.ts +18 -0
- package/src/hooks/useExemptionSchema.tsx +49 -0
- package/src/hooks/useFacilityLevel.ts +27 -0
- package/src/hooks/useInterventions.ts +50 -0
- package/src/hooks/useOTP.ts +677 -0
- package/src/hooks/usePackages.ts +43 -0
- package/src/hooks/usePatient.ts +12 -0
- package/src/hooks/usePatientAttributes.tsx +26 -0
- package/src/hooks/usePatientDiagnosis.ts +26 -0
- package/src/hooks/usePatientIdentifierType.ts +26 -0
- package/src/hooks/usePaymentSchema.tsx +42 -0
- package/src/hooks/usePhoneNumber.ts +35 -0
- package/src/hooks/usePrintPreview.tsx +17 -0
- package/src/hooks/useProvider.ts +19 -0
- package/src/hooks/useProviderList.ts +19 -0
- package/src/hooks/useRequestStatus.tsx +211 -0
- package/src/index.ts +159 -0
- package/src/invoice/invoice-actions.component.tsx +240 -0
- package/src/invoice/invoice-table.component.tsx +202 -0
- package/src/invoice/invoice-table.scss +91 -0
- package/src/invoice/invoice.component.tsx +132 -0
- package/src/invoice/invoice.resource.ts +151 -0
- package/src/invoice/invoice.scss +186 -0
- package/src/invoice/invoice.test.tsx +220 -0
- package/src/invoice/payments/initiate-payment/initiate-payment.component.tsx +207 -0
- package/src/invoice/payments/initiate-payment/initiate-payment.scss +48 -0
- package/src/invoice/payments/invoice-breakdown/invoice-breakdown.component.tsx +17 -0
- package/src/invoice/payments/invoice-breakdown/invoice-breakdown.scss +29 -0
- package/src/invoice/payments/payment-form/payment-form.component.tsx +137 -0
- package/src/invoice/payments/payment-form/payment-form.scss +54 -0
- package/src/invoice/payments/payment-form/payment.scss +33 -0
- package/src/invoice/payments/payment-form/payment.workspace.tsx +195 -0
- package/src/invoice/payments/payment-form/use-payment-form.ts +77 -0
- package/src/invoice/payments/payment-history/payment-history.component.tsx +68 -0
- package/src/invoice/payments/payment-status-ckecker.modal.tsx +136 -0
- package/src/invoice/payments/payments.component.tsx +273 -0
- package/src/invoice/payments/payments.resource.ts +65 -0
- package/src/invoice/payments/payments.scss +71 -0
- package/src/invoice/payments/payments.test.tsx +321 -0
- package/src/invoice/payments/utils.ts +205 -0
- package/src/invoice/payments/visit-tags/visit-attribute.component.tsx +21 -0
- package/src/left--panel-link.test.tsx +42 -0
- package/src/left-panel-link.component.tsx +79 -0
- package/src/m-pesa/mpesa-resource.tsx +146 -0
- package/src/metrics-cards/card.component.tsx +11 -0
- package/src/metrics-cards/card.scss +20 -0
- package/src/metrics-cards/metrics-cards.component.tsx +58 -0
- package/src/metrics-cards/metrics-cards.scss +84 -0
- package/src/metrics-cards/metrics-cards.test.tsx +42 -0
- package/src/metrics-cards/metrics.resource.ts +54 -0
- package/src/modal/bill-action.modal.scss +7 -0
- package/src/modal/bill-action.modal.tsx +124 -0
- package/src/past-patient-bills/patient-bills-dashboard/empty-patient-bill.component.tsx +42 -0
- package/src/past-patient-bills/patient-bills-dashboard/empty-svg.component.tsx +566 -0
- package/src/past-patient-bills/patient-bills-dashboard/patient-bills-dashboard.scss +53 -0
- package/src/past-patient-bills/patient-bills-dashboard/patient-bills-dashboard.tsx +44 -0
- package/src/past-patient-bills/patient-bills-dashboard/patient-search-extension.component.tsx +25 -0
- package/src/past-patient-bills/patient-bills.component.tsx +157 -0
- package/src/past-patient-bills/patient-bills.scss +42 -0
- package/src/past-patient-bills/patient-bills.test.tsx +300 -0
- package/src/print-preview/print-preview.modal.tsx +45 -0
- package/src/print-preview/print-preview.scss +21 -0
- package/src/prompt-payment/prompt-payment-modal.component.tsx +118 -0
- package/src/prompt-payment/prompt-payment.modal.test.tsx +204 -0
- package/src/prompt-payment/prompt-payment.resource.tsx +231 -0
- package/src/prompt-payment/prompt-payment.scss +18 -0
- package/src/root.component.tsx +40 -0
- package/src/routes.json +426 -0
- package/src/types/index.ts +697 -0
- package/src/utils.ts +172 -0
- package/translations/am.json +365 -0
- package/translations/en.json +365 -0
- package/translations/sw.json +365 -0
- package/tsconfig.json +5 -0
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import { ConfigSchema, Type } from '@openmrs/esm-framework';
|
|
2
|
+
|
|
3
|
+
export interface BillingConfig {
|
|
4
|
+
visitAttributeTypes: {
|
|
5
|
+
isPatientExempted: string;
|
|
6
|
+
paymentMethods: string;
|
|
7
|
+
insuranceScheme: string;
|
|
8
|
+
policyNumber: string;
|
|
9
|
+
exemptionCategory: string;
|
|
10
|
+
billPaymentStatus: string;
|
|
11
|
+
shaBenefitPackagesAndInterventions: string;
|
|
12
|
+
};
|
|
13
|
+
insurancePaymentMethod: string;
|
|
14
|
+
inPatientVisitTypeUuid: string;
|
|
15
|
+
patientExemptionCategories: Array<{ value: string; label: string }>;
|
|
16
|
+
excludedPaymentMode: Array<{ uuid: string; label: string }>;
|
|
17
|
+
enforceBillPayment: boolean;
|
|
18
|
+
billingStatusQueryUrl: string;
|
|
19
|
+
mpesaAPIBaseUrl: string;
|
|
20
|
+
hieBaseUrl: string;
|
|
21
|
+
insuranceSchemes: Array<string>;
|
|
22
|
+
shaIdentificationNumberUUID: string;
|
|
23
|
+
cashPointUuid: string;
|
|
24
|
+
cashierUuid: string;
|
|
25
|
+
patientBillsUrl: string;
|
|
26
|
+
nationalIdUUID: string;
|
|
27
|
+
isPDSLFacility: boolean;
|
|
28
|
+
mobileMoneyPaymentModeUUID: string;
|
|
29
|
+
concepts: {
|
|
30
|
+
emergencyPriorityConceptUuid: string;
|
|
31
|
+
};
|
|
32
|
+
paymentMethodsUuidsThatShouldNotShowPrompt: Array<string>;
|
|
33
|
+
promptDuration: {
|
|
34
|
+
enable: boolean;
|
|
35
|
+
duration: number;
|
|
36
|
+
};
|
|
37
|
+
localeCurrencyMapping: Record<string, string>;
|
|
38
|
+
phoneNumberAttributeTypeUUID: string;
|
|
39
|
+
nationalIdIdentifierTypeUUID: string;
|
|
40
|
+
enableClaims: boolean;
|
|
41
|
+
enablePreAuth: boolean;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export const configSchema: ConfigSchema = {
|
|
45
|
+
isPDSLFacility: {
|
|
46
|
+
_type: Type.Boolean,
|
|
47
|
+
_description: 'A flag for PDSL facilities',
|
|
48
|
+
_default: false,
|
|
49
|
+
},
|
|
50
|
+
mobileMoneyPaymentModeUUID: {
|
|
51
|
+
_type: Type.UUID,
|
|
52
|
+
_description: 'Mobile money payment method uuid',
|
|
53
|
+
_default: '28989582-e8c3-46b0-96d0-c249cb06d5c6',
|
|
54
|
+
},
|
|
55
|
+
shaIdentificationNumberUUID: {
|
|
56
|
+
_type: Type.String,
|
|
57
|
+
_description: 'Social Health Authority Identification Number',
|
|
58
|
+
_default: '24aedd37-b5be-4e08-8311-3721b8d5100d',
|
|
59
|
+
},
|
|
60
|
+
nationalIdUUID: {
|
|
61
|
+
_type: Type.String,
|
|
62
|
+
_description: 'National Identification Number',
|
|
63
|
+
_default: '49af6cdc-7968-4abb-bf46-de10d7f4859f',
|
|
64
|
+
},
|
|
65
|
+
inPatientVisitTypeUuid: {
|
|
66
|
+
_type: Type.String,
|
|
67
|
+
_description: 'The visit type uuid for in-patient',
|
|
68
|
+
_default: 'a73e2ac6-263b-47fc-99fc-e0f2c09fc914',
|
|
69
|
+
},
|
|
70
|
+
mpesaAPIBaseUrl: {
|
|
71
|
+
_type: Type.String,
|
|
72
|
+
_description: 'The base url that will be used to make any backend calls related to mpesa.',
|
|
73
|
+
_default: 'https://billing.kenyahmis.org',
|
|
74
|
+
},
|
|
75
|
+
phoneNumberAttributeTypeUUID: {
|
|
76
|
+
_type: Type.String,
|
|
77
|
+
_description: 'The person attribute type uuid for phone number',
|
|
78
|
+
_default: 'b2c38640-2603-4629-aebd-3b54f33f1e3a',
|
|
79
|
+
},
|
|
80
|
+
nationalIdIdentifierTypeUUID: {
|
|
81
|
+
_type: Type.String,
|
|
82
|
+
_description: 'The person attribute type uuid for national id',
|
|
83
|
+
_default: '49af6cdc-7968-4abb-bf46-de10d7f4859f',
|
|
84
|
+
},
|
|
85
|
+
hieBaseUrl: {
|
|
86
|
+
_type: Type.String,
|
|
87
|
+
_description: 'HIE Base URL for getting interventions and benefit packages',
|
|
88
|
+
_default: 'https://payers.apeiro-digital.com/api/v1',
|
|
89
|
+
},
|
|
90
|
+
visitAttributeTypes: {
|
|
91
|
+
isPatientExempted: {
|
|
92
|
+
_type: Type.String,
|
|
93
|
+
_default: '3b9dfac8-9e4d-11ee-8c90-0242ac120002',
|
|
94
|
+
_description: 'Whether the patient should be exempted from paying for service i.e Prisoners',
|
|
95
|
+
},
|
|
96
|
+
paymentMethods: {
|
|
97
|
+
_type: Type.String,
|
|
98
|
+
_description: 'The payment methods visit attribute uuid',
|
|
99
|
+
_default: 'e6cb0c3b-04b0-4117-9bc6-ce24adbda802',
|
|
100
|
+
},
|
|
101
|
+
insuranceScheme: {
|
|
102
|
+
_type: Type.String,
|
|
103
|
+
_description: 'The insurance scheme visit attribute uuid',
|
|
104
|
+
_default: '2d0fa959-6780-41f1-85b1-402045935068',
|
|
105
|
+
},
|
|
106
|
+
policyNumber: {
|
|
107
|
+
_type: Type.String,
|
|
108
|
+
_description: 'The policy number visit attribute uuid',
|
|
109
|
+
_default: '0f4f3306-f01b-43c6-af5b-fdb60015cb02',
|
|
110
|
+
},
|
|
111
|
+
exemptionCategory: {
|
|
112
|
+
_type: Type.String,
|
|
113
|
+
_description: 'The exemption category visit attribute uuid',
|
|
114
|
+
_default: 'df0362f9-782e-4d92-8bb2-3112e9e9eb3c',
|
|
115
|
+
},
|
|
116
|
+
billPaymentStatus: {
|
|
117
|
+
_type: Type.String,
|
|
118
|
+
_description: 'The bill payment status visit attribute uuid',
|
|
119
|
+
_default: '919b51c9-8e2e-468f-8354-181bf3e55786',
|
|
120
|
+
},
|
|
121
|
+
shaBenefitPackagesAndInterventions: {
|
|
122
|
+
_type: Type.String,
|
|
123
|
+
_description: 'JSON String of SHA Benefit Packages and Interventions for this visit',
|
|
124
|
+
_default: '338725fa-3790-4679-98b9-be623214ee29',
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
insurancePaymentMethod: {
|
|
128
|
+
_type: Type.String,
|
|
129
|
+
_description: 'Insurance Payment method UUID',
|
|
130
|
+
_default: 'beac329b-f1dc-4a33-9e7c-d95821a137a6',
|
|
131
|
+
},
|
|
132
|
+
patientExemptionCategories: {
|
|
133
|
+
_type: Type.Array,
|
|
134
|
+
_elements: {
|
|
135
|
+
value: {
|
|
136
|
+
_type: Type.String,
|
|
137
|
+
_description: 'The value of the exemption category',
|
|
138
|
+
},
|
|
139
|
+
label: {
|
|
140
|
+
_type: Type.String,
|
|
141
|
+
_default: null,
|
|
142
|
+
_description: 'The label of the exemption category',
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
_default: [{ value: 'IN_PRISON', label: 'In Prison' }],
|
|
146
|
+
},
|
|
147
|
+
excludedPaymentMode: {
|
|
148
|
+
_type: Type.Array,
|
|
149
|
+
_elements: {
|
|
150
|
+
uuid: {
|
|
151
|
+
_type: Type.UUID,
|
|
152
|
+
_description: 'The value of the payment mode to be excluded',
|
|
153
|
+
},
|
|
154
|
+
label: {
|
|
155
|
+
_type: Type.String,
|
|
156
|
+
_default: null,
|
|
157
|
+
_description: 'The label of the payment mode to be excluded',
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
_default: [
|
|
161
|
+
{
|
|
162
|
+
uuid: 'eb6173cb-9678-4614-bbe1-0ccf7ed9d1d4',
|
|
163
|
+
label: 'Waiver',
|
|
164
|
+
},
|
|
165
|
+
],
|
|
166
|
+
},
|
|
167
|
+
enforceBillPayment: {
|
|
168
|
+
_type: Type.Boolean,
|
|
169
|
+
_default: true,
|
|
170
|
+
_description: 'Whether to enforce bill payment or not for patient to receive service',
|
|
171
|
+
},
|
|
172
|
+
billingStatusQueryUrl: {
|
|
173
|
+
_type: Type.String,
|
|
174
|
+
_default: '${restBaseUrl}/cashier/billLineItem?orderUuid=${orderUuid}&v=full',
|
|
175
|
+
_description: 'URL to query billing status',
|
|
176
|
+
},
|
|
177
|
+
insuranceSchemes: {
|
|
178
|
+
_type: Type.Array,
|
|
179
|
+
_elements: {
|
|
180
|
+
_type: Type.String,
|
|
181
|
+
},
|
|
182
|
+
_default: ['SHA', 'Jubilee Insurance', 'AAR Insurance', 'Old Mutual Insurance'],
|
|
183
|
+
_description: 'List of insurance schemes',
|
|
184
|
+
},
|
|
185
|
+
cashPointUuid: {
|
|
186
|
+
_type: Type.String,
|
|
187
|
+
_description: 'Where bill is generated from',
|
|
188
|
+
_default: '54065383-b4d4-42d2-af4d-d250a1fd2590',
|
|
189
|
+
},
|
|
190
|
+
cashierUuid: {
|
|
191
|
+
_type: Type.String,
|
|
192
|
+
_description: 'Who Generated the bill',
|
|
193
|
+
_default: '54065383-b4d4-42d2-af4d-d250a1fd2590',
|
|
194
|
+
},
|
|
195
|
+
patientBillsUrl: {
|
|
196
|
+
_type: Type.String,
|
|
197
|
+
_description: 'The url to fetch patient bills',
|
|
198
|
+
_default:
|
|
199
|
+
'${restBaseUrl}/cashier/bill?v=custom:(uuid,display,voided,voidReason,adjustedBy,cashPoint:(uuid,name),cashier:(uuid,display),dateCreated,lineItems,patient:(uuid,display))',
|
|
200
|
+
},
|
|
201
|
+
concepts: {
|
|
202
|
+
emergencyPriorityConceptUuid: {
|
|
203
|
+
_type: Type.String,
|
|
204
|
+
_description: 'The concept uuid for emergency priority',
|
|
205
|
+
_default: '037446f4-adfc-40b3-928c-a39a4826b1bf',
|
|
206
|
+
},
|
|
207
|
+
},
|
|
208
|
+
paymentMethodsUuidsThatShouldNotShowPrompt: {
|
|
209
|
+
_type: Type.Array,
|
|
210
|
+
_description: 'The payment methods that should not show the billing prompt',
|
|
211
|
+
_elements: {
|
|
212
|
+
_type: Type.String,
|
|
213
|
+
},
|
|
214
|
+
_default: ['beac329b-f1dc-4a33-9e7c-d95821a137a6'],
|
|
215
|
+
},
|
|
216
|
+
promptDuration: {
|
|
217
|
+
_type: Type.Object,
|
|
218
|
+
_description:
|
|
219
|
+
'The duration in hours for the prompt to be shown, if the duration is less than this, the prompt will be shown',
|
|
220
|
+
_default: {
|
|
221
|
+
enable: true,
|
|
222
|
+
duration: 24,
|
|
223
|
+
},
|
|
224
|
+
},
|
|
225
|
+
localeCurrencyMapping: {
|
|
226
|
+
_type: Type.Object,
|
|
227
|
+
_description: 'Mapping of locale codes to currency codes for internationalization',
|
|
228
|
+
_default: {
|
|
229
|
+
en: 'KES',
|
|
230
|
+
sw: 'KES',
|
|
231
|
+
am: 'ETB',
|
|
232
|
+
'en-KE': 'KES',
|
|
233
|
+
'sw-KE': 'KES',
|
|
234
|
+
'am-ET': 'ETB',
|
|
235
|
+
'en-GB': 'KES',
|
|
236
|
+
},
|
|
237
|
+
},
|
|
238
|
+
enableClaims: {
|
|
239
|
+
_type: Type.Boolean,
|
|
240
|
+
_default: false,
|
|
241
|
+
_description: 'Whether to enable claims or not',
|
|
242
|
+
},
|
|
243
|
+
enablePreAuth: {
|
|
244
|
+
_type: Type.Boolean,
|
|
245
|
+
_default: false,
|
|
246
|
+
_description: 'Whether to enable pre-auth or not',
|
|
247
|
+
},
|
|
248
|
+
};
|
package/src/constants.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export const PENDING_PAYMENT_STATUS = 'PENDING';
|
|
2
|
+
export const EXEMPTED_PAYMENT_STATUS = 'EXEMPTED';
|
|
3
|
+
export const spaBasePath = `${window.spaBase}/home`;
|
|
4
|
+
export const billingAdminBasePath = `${window.spaBase}/billing-admin`;
|
|
5
|
+
|
|
6
|
+
export const colorsArray = [
|
|
7
|
+
'red',
|
|
8
|
+
'magenta',
|
|
9
|
+
'purple',
|
|
10
|
+
'blue',
|
|
11
|
+
'cyan',
|
|
12
|
+
'teal',
|
|
13
|
+
'green',
|
|
14
|
+
'gray',
|
|
15
|
+
'cool-gray',
|
|
16
|
+
'warm-gray',
|
|
17
|
+
'high-contrast',
|
|
18
|
+
'outline',
|
|
19
|
+
];
|
|
20
|
+
|
|
21
|
+
// Size in MegaBits
|
|
22
|
+
export const MAX_ALLOWED_FILE_SIZE = 2097152;
|
|
23
|
+
export const PAYMENT_MODE_ATTRIBUTE_FORMATS = ['java.lang.String', 'java.lang.Integer', 'java.lang.Double'];
|
|
24
|
+
export const SHA_INSURANCE_SCHEME = 'SHA';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export const dashboardMeta = {
|
|
2
|
+
slot: 'patient-chart-billing-dashboard-slot',
|
|
3
|
+
columns: 1,
|
|
4
|
+
title: 'Billing',
|
|
5
|
+
path: 'Billing',
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const shrSummaryDashboardMeta = {
|
|
9
|
+
slot: 'patient-chart-shr-summary-dashboard-slot',
|
|
10
|
+
columns: 1,
|
|
11
|
+
title: 'SHR Summary',
|
|
12
|
+
path: 'SHR Summary',
|
|
13
|
+
};
|
|
14
|
+
export const benefitsPackageDashboardMeta = {
|
|
15
|
+
slot: 'patient-chart-benefits-dashboard-slot',
|
|
16
|
+
columns: 2,
|
|
17
|
+
title: 'Insurance benefits',
|
|
18
|
+
path: 'insurance-benefits',
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const accountingDashboardMeta = {
|
|
22
|
+
name: 'accounting',
|
|
23
|
+
title: 'Accounting',
|
|
24
|
+
path: 'accounting',
|
|
25
|
+
};
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
# Currency Localization
|
|
2
|
+
|
|
3
|
+
This module provides locale-based currency formatting for the billing application. It automatically detects the user's locale and formats currency amounts accordingly.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- **Locale-based currency mapping**: Automatically maps locales to appropriate currencies
|
|
8
|
+
- **Configurable currency mapping**: Supports custom currency mappings via configuration
|
|
9
|
+
- **Consistent formatting**: Provides standardized currency formatting across the application
|
|
10
|
+
- **Fallback support**: Gracefully handles unknown locales with sensible defaults
|
|
11
|
+
|
|
12
|
+
## Supported Locales and Currencies
|
|
13
|
+
|
|
14
|
+
| Locale | Currency | Description |
|
|
15
|
+
|--------|----------|-------------|
|
|
16
|
+
| `en` | KES | English - Kenyan Shilling |
|
|
17
|
+
| `sw` | KES | Swahili - Kenyan Shilling |
|
|
18
|
+
| `am` | ETB | Amharic - Ethiopian Birr |
|
|
19
|
+
| `en-KE` | KES | English Kenya |
|
|
20
|
+
| `sw-KE` | KES | Swahili Kenya |
|
|
21
|
+
| `am-ET` | ETB | Amharic Ethiopia |
|
|
22
|
+
|
|
23
|
+
## Usage
|
|
24
|
+
|
|
25
|
+
### Basic Currency Formatting
|
|
26
|
+
|
|
27
|
+
```typescript
|
|
28
|
+
import { formatCurrency, formatCurrencySimple } from './helpers/currency';
|
|
29
|
+
|
|
30
|
+
// Format with negative sign handling
|
|
31
|
+
const amount = formatCurrency(1234.56); // Returns: "KSh 1,234.56"
|
|
32
|
+
|
|
33
|
+
// Format without negative sign handling
|
|
34
|
+
const simpleAmount = formatCurrencySimple(1234.56); // Returns: "KSh 1,234.56"
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Using the Hook (with config support)
|
|
38
|
+
|
|
39
|
+
```typescript
|
|
40
|
+
import { useCurrencyFormatting } from './helpers/currency';
|
|
41
|
+
|
|
42
|
+
const MyComponent = () => {
|
|
43
|
+
const { format, formatSimple, getCurrency, getLocale } = useCurrencyFormatting();
|
|
44
|
+
|
|
45
|
+
const amount = format(1234.56);
|
|
46
|
+
const currency = getCurrency(); // Returns current currency code
|
|
47
|
+
|
|
48
|
+
return <div>Amount: {amount}</div>;
|
|
49
|
+
};
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Direct Currency/Locale Access
|
|
53
|
+
|
|
54
|
+
```typescript
|
|
55
|
+
import { getCurrencyForLocale, getCurrentLocale } from './helpers/currency';
|
|
56
|
+
|
|
57
|
+
const currency = getCurrencyForLocale(); // Returns: "KES", "ETB", etc.
|
|
58
|
+
const locale = getCurrentLocale(); // Returns: "en", "sw", "am", etc.
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Configuration
|
|
62
|
+
|
|
63
|
+
You can customize the locale-to-currency mapping by adding a `localeCurrencyMapping` configuration to your billing config:
|
|
64
|
+
|
|
65
|
+
```json
|
|
66
|
+
{
|
|
67
|
+
"localeCurrencyMapping": {
|
|
68
|
+
"en": "USD",
|
|
69
|
+
"sw": "KES",
|
|
70
|
+
"am": "ETB",
|
|
71
|
+
"fr": "EUR"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## Functions
|
|
77
|
+
|
|
78
|
+
### `formatCurrency(amount, options?)`
|
|
79
|
+
Formats a number as currency with negative sign handling.
|
|
80
|
+
|
|
81
|
+
**Parameters:**
|
|
82
|
+
- `amount` (number): The amount to format
|
|
83
|
+
- `options` (Intl.NumberFormatOptions, optional): Additional formatting options
|
|
84
|
+
|
|
85
|
+
**Returns:** Formatted currency string
|
|
86
|
+
|
|
87
|
+
### `formatCurrencySimple(amount, options?)`
|
|
88
|
+
Formats a number as currency without negative sign handling.
|
|
89
|
+
|
|
90
|
+
**Parameters:**
|
|
91
|
+
- `amount` (number): The amount to format
|
|
92
|
+
- `options` (Intl.NumberFormatOptions, optional): Additional formatting options
|
|
93
|
+
|
|
94
|
+
**Returns:** Formatted currency string
|
|
95
|
+
|
|
96
|
+
### `getCurrencyForLocale()`
|
|
97
|
+
Gets the currency code for the current locale.
|
|
98
|
+
|
|
99
|
+
**Returns:** Currency code string (e.g., "KES", "ETB")
|
|
100
|
+
|
|
101
|
+
### `getCurrentLocale()`
|
|
102
|
+
Gets the current locale from localStorage.
|
|
103
|
+
|
|
104
|
+
**Returns:** Locale string (e.g., "en", "sw", "am")
|
|
105
|
+
|
|
106
|
+
### `useCurrencyFormatting()`
|
|
107
|
+
React hook that provides currency formatting with config support.
|
|
108
|
+
|
|
109
|
+
**Returns:** Object with formatting functions and utilities
|
|
110
|
+
|
|
111
|
+
## Migration from Hardcoded Currency
|
|
112
|
+
|
|
113
|
+
If you have existing code using hardcoded currency formatting, replace it with the new utilities:
|
|
114
|
+
|
|
115
|
+
**Before:**
|
|
116
|
+
```typescript
|
|
117
|
+
const formatter = new Intl.NumberFormat('en-US', {
|
|
118
|
+
style: 'currency',
|
|
119
|
+
currency: 'KES',
|
|
120
|
+
}).format(amount);
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
**After:**
|
|
124
|
+
```typescript
|
|
125
|
+
import { formatCurrency } from './helpers/currency';
|
|
126
|
+
|
|
127
|
+
const formattedAmount = formatCurrency(amount);
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
## Testing
|
|
131
|
+
|
|
132
|
+
Run the currency utility tests:
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
npm test -- currency.test.ts
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
## Examples
|
|
139
|
+
|
|
140
|
+
### In Components
|
|
141
|
+
|
|
142
|
+
```typescript
|
|
143
|
+
import React from 'react';
|
|
144
|
+
import { formatCurrency } from './helpers/currency';
|
|
145
|
+
|
|
146
|
+
const BillItem = ({ price, quantity }) => {
|
|
147
|
+
const total = price * quantity;
|
|
148
|
+
|
|
149
|
+
return (
|
|
150
|
+
<div>
|
|
151
|
+
<span>Price: {formatCurrency(price)}</span>
|
|
152
|
+
<span>Total: {formatCurrency(total)}</span>
|
|
153
|
+
</div>
|
|
154
|
+
);
|
|
155
|
+
};
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
### In Utilities
|
|
159
|
+
|
|
160
|
+
```typescript
|
|
161
|
+
import { formatCurrencySimple } from './helpers/currency';
|
|
162
|
+
|
|
163
|
+
export const createReceipt = (items) => {
|
|
164
|
+
const total = items.reduce((sum, item) => sum + item.price, 0);
|
|
165
|
+
|
|
166
|
+
return {
|
|
167
|
+
items: items.map(item => ({
|
|
168
|
+
...item,
|
|
169
|
+
formattedPrice: formatCurrencySimple(item.price)
|
|
170
|
+
})),
|
|
171
|
+
total: formatCurrency(total)
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
```
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DEFAULT_LOCALE_CURRENCY_MAP,
|
|
3
|
+
getCurrencyForLocale,
|
|
4
|
+
getCurrentLocale,
|
|
5
|
+
formatCurrency,
|
|
6
|
+
formatCurrencySimple,
|
|
7
|
+
} from './currency';
|
|
8
|
+
|
|
9
|
+
// Mock localStorage
|
|
10
|
+
const mockLocalStorage = {
|
|
11
|
+
getItem: jest.fn(),
|
|
12
|
+
setItem: jest.fn(),
|
|
13
|
+
removeItem: jest.fn(),
|
|
14
|
+
clear: jest.fn(),
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
Object.defineProperty(window, 'localStorage', {
|
|
18
|
+
value: mockLocalStorage,
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
describe('Currency Utilities', () => {
|
|
22
|
+
beforeEach(() => {
|
|
23
|
+
jest.clearAllMocks();
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
describe('DEFAULT_LOCALE_CURRENCY_MAP', () => {
|
|
27
|
+
it('should have correct currency mappings', () => {
|
|
28
|
+
expect(DEFAULT_LOCALE_CURRENCY_MAP.en).toBe('KES');
|
|
29
|
+
expect(DEFAULT_LOCALE_CURRENCY_MAP.sw).toBe('KES');
|
|
30
|
+
expect(DEFAULT_LOCALE_CURRENCY_MAP.am).toBe('ETB');
|
|
31
|
+
expect(DEFAULT_LOCALE_CURRENCY_MAP['en-KE']).toBe('KES');
|
|
32
|
+
expect(DEFAULT_LOCALE_CURRENCY_MAP['sw-KE']).toBe('KES');
|
|
33
|
+
expect(DEFAULT_LOCALE_CURRENCY_MAP['am-ET']).toBe('ETB');
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
describe('getCurrentLocale', () => {
|
|
38
|
+
it('should return locale from localStorage', () => {
|
|
39
|
+
mockLocalStorage.getItem.mockReturnValue('sw');
|
|
40
|
+
expect(getCurrentLocale()).toBe('sw');
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
it('should return default locale when localStorage is empty', () => {
|
|
44
|
+
mockLocalStorage.getItem.mockReturnValue(null);
|
|
45
|
+
expect(getCurrentLocale()).toBe('en');
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
describe('getCurrencyForLocale', () => {
|
|
50
|
+
it('should return correct currency for English locale', () => {
|
|
51
|
+
mockLocalStorage.getItem.mockReturnValue('en');
|
|
52
|
+
expect(getCurrencyForLocale()).toBe('KES');
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
it('should return correct currency for Swahili locale', () => {
|
|
56
|
+
mockLocalStorage.getItem.mockReturnValue('sw');
|
|
57
|
+
expect(getCurrencyForLocale()).toBe('KES');
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
it('should return correct currency for Amharic locale', () => {
|
|
61
|
+
mockLocalStorage.getItem.mockReturnValue('am');
|
|
62
|
+
expect(getCurrencyForLocale()).toBe('ETB');
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
it('should return KES as fallback for unknown locale', () => {
|
|
66
|
+
mockLocalStorage.getItem.mockReturnValue('fr');
|
|
67
|
+
expect(getCurrencyForLocale()).toBe('KES');
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
describe('formatCurrency', () => {
|
|
72
|
+
beforeEach(() => {
|
|
73
|
+
// Mock Intl.NumberFormat
|
|
74
|
+
const mockFormatter = {
|
|
75
|
+
format: jest.fn((value) => `$${value.toFixed(2)}`),
|
|
76
|
+
};
|
|
77
|
+
jest.spyOn(Intl, 'NumberFormat').mockImplementation(() => mockFormatter as any);
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
it('should format positive amounts correctly', () => {
|
|
81
|
+
mockLocalStorage.getItem.mockReturnValue('en');
|
|
82
|
+
const result = formatCurrency(1234.56);
|
|
83
|
+
expect(result).toBe('$1234.56');
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
it('should format negative amounts with minus sign', () => {
|
|
87
|
+
mockLocalStorage.getItem.mockReturnValue('en');
|
|
88
|
+
const result = formatCurrency(-1234.56);
|
|
89
|
+
expect(result).toBe('- $1234.56');
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
describe('formatCurrencySimple', () => {
|
|
94
|
+
beforeEach(() => {
|
|
95
|
+
// Mock Intl.NumberFormat
|
|
96
|
+
const mockFormatter = {
|
|
97
|
+
format: jest.fn((value) => `$${value.toFixed(2)}`),
|
|
98
|
+
};
|
|
99
|
+
jest.spyOn(Intl, 'NumberFormat').mockImplementation(() => mockFormatter as any);
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
it('should format amounts without negative sign handling', () => {
|
|
103
|
+
mockLocalStorage.getItem.mockReturnValue('en');
|
|
104
|
+
const result = formatCurrencySimple(1234.56);
|
|
105
|
+
expect(result).toBe('$1234.56');
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
it('should format negative amounts without special handling', () => {
|
|
109
|
+
mockLocalStorage.getItem.mockReturnValue('en');
|
|
110
|
+
const result = formatCurrencySimple(-1234.56);
|
|
111
|
+
expect(result).toBe('$-1234.56');
|
|
112
|
+
});
|
|
113
|
+
});
|
|
114
|
+
});
|