@openmrs/esm-billing-app 1.0.1-pre.14

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 (167) hide show
  1. package/.editorconfig +12 -0
  2. package/.eslintignore +2 -0
  3. package/.eslintrc +57 -0
  4. package/.husky/pre-commit +7 -0
  5. package/.husky/pre-push +6 -0
  6. package/.prettierignore +14 -0
  7. package/.turbo.json +18 -0
  8. package/.yarn/plugins/@yarnpkg/plugin-outdated.cjs +35 -0
  9. package/LICENSE +401 -0
  10. package/README.md +7 -0
  11. package/__mocks__/bills.mock.ts +392 -0
  12. package/__mocks__/delivery-summary.mock.ts +87 -0
  13. package/__mocks__/encounter-observation.mock.ts +10649 -0
  14. package/__mocks__/encounter-observations.mock.ts +6187 -0
  15. package/__mocks__/hiv-summary.mock.ts +22 -0
  16. package/__mocks__/patient-summary.mock.ts +32 -0
  17. package/__mocks__/patient.mock.ts +59 -0
  18. package/__mocks__/program-summary.mock.ts +43 -0
  19. package/__mocks__/react-i18next.js +57 -0
  20. package/dist/294.js +2 -0
  21. package/dist/294.js.LICENSE.txt +9 -0
  22. package/dist/294.js.map +1 -0
  23. package/dist/319.js +1 -0
  24. package/dist/384.js +1 -0
  25. package/dist/384.js.map +1 -0
  26. package/dist/421.js +1 -0
  27. package/dist/421.js.map +1 -0
  28. package/dist/450.js +1 -0
  29. package/dist/450.js.map +1 -0
  30. package/dist/476.js +1 -0
  31. package/dist/476.js.map +1 -0
  32. package/dist/574.js +1 -0
  33. package/dist/757.js +1 -0
  34. package/dist/788.js +1 -0
  35. package/dist/800.js +2 -0
  36. package/dist/800.js.LICENSE.txt +3 -0
  37. package/dist/800.js.map +1 -0
  38. package/dist/807.js +1 -0
  39. package/dist/833.js +1 -0
  40. package/dist/935.js +2 -0
  41. package/dist/935.js.LICENSE.txt +19 -0
  42. package/dist/935.js.map +1 -0
  43. package/dist/96.js +2 -0
  44. package/dist/96.js.LICENSE.txt +47 -0
  45. package/dist/96.js.map +1 -0
  46. package/dist/main.js +2 -0
  47. package/dist/main.js.LICENSE.txt +47 -0
  48. package/dist/main.js.map +1 -0
  49. package/dist/openmrs-esm-billing-app.js +1 -0
  50. package/dist/openmrs-esm-billing-app.js.buildmanifest.json +462 -0
  51. package/dist/openmrs-esm-billing-app.js.map +1 -0
  52. package/dist/routes.json +1 -0
  53. package/e2e/README.md +115 -0
  54. package/e2e/core/global-setup.ts +32 -0
  55. package/e2e/core/index.ts +1 -0
  56. package/e2e/core/test.ts +20 -0
  57. package/e2e/fixtures/api.ts +26 -0
  58. package/e2e/fixtures/index.ts +1 -0
  59. package/e2e/pages/home-page.ts +9 -0
  60. package/e2e/pages/index.ts +1 -0
  61. package/e2e/specs/sample-test.spec.ts +11 -0
  62. package/e2e/support/github/Dockerfile +34 -0
  63. package/e2e/support/github/docker-compose.yml +24 -0
  64. package/e2e/support/github/run-e2e-docker-env.sh +49 -0
  65. package/example.env +6 -0
  66. package/i18next-parser.config.js +89 -0
  67. package/jest.config.js +34 -0
  68. package/package.json +123 -0
  69. package/playwright.config.ts +32 -0
  70. package/prettier.config.js +8 -0
  71. package/src/bill-history/bill-history.component.tsx +187 -0
  72. package/src/bill-history/bill-history.scss +151 -0
  73. package/src/bill-history/bill-history.test.tsx +122 -0
  74. package/src/billable-services/bill-waiver/bill-selection.component.tsx +72 -0
  75. package/src/billable-services/bill-waiver/bill-waiver-form.component.tsx +108 -0
  76. package/src/billable-services/bill-waiver/bill-waiver-form.scss +34 -0
  77. package/src/billable-services/bill-waiver/bill-waiver.component.tsx +32 -0
  78. package/src/billable-services/bill-waiver/bill-waiver.scss +10 -0
  79. package/src/billable-services/bill-waiver/patient-bills.component.tsx +135 -0
  80. package/src/billable-services/bill-waiver/utils.ts +41 -0
  81. package/src/billable-services/billable-service.resource.ts +71 -0
  82. package/src/billable-services/billable-services-home.component.tsx +51 -0
  83. package/src/billable-services/billable-services.component.tsx +255 -0
  84. package/src/billable-services/billable-services.scss +218 -0
  85. package/src/billable-services/billable-services.test.tsx +16 -0
  86. package/src/billable-services/create-edit/add-billable-service.component.tsx +322 -0
  87. package/src/billable-services/create-edit/add-billable-service.scss +131 -0
  88. package/src/billable-services/create-edit/add-billable-service.test.tsx +152 -0
  89. package/src/billable-services/dashboard/dashboard.component.tsx +15 -0
  90. package/src/billable-services/dashboard/dashboard.scss +27 -0
  91. package/src/billable-services/dashboard/dashboard.test.tsx +11 -0
  92. package/src/billable-services/dashboard/service-metrics.component.tsx +42 -0
  93. package/src/billable-services-admin-card-link.component.test.tsx +21 -0
  94. package/src/billable-services-admin-card-link.component.tsx +25 -0
  95. package/src/billing-dashboard/billing-dashboard.component.tsx +20 -0
  96. package/src/billing-dashboard/billing-dashboard.scss +27 -0
  97. package/src/billing-dashboard/billing-dashboard.test.tsx +13 -0
  98. package/src/billing-form/billing-checkin-form.component.tsx +131 -0
  99. package/src/billing-form/billing-checkin-form.scss +13 -0
  100. package/src/billing-form/billing-checkin-form.test.tsx +134 -0
  101. package/src/billing-form/billing-form.component.tsx +25 -0
  102. package/src/billing-form/billing-form.resource.ts +31 -0
  103. package/src/billing-form/billing-form.scss +5 -0
  104. package/src/billing-form/visit-attributes/visit-attributes-form.component.tsx +173 -0
  105. package/src/billing-form/visit-attributes/visit-attributes-form.scss +22 -0
  106. package/src/billing-header/billing-header.component.tsx +43 -0
  107. package/src/billing-header/billing-header.scss +83 -0
  108. package/src/billing-header/billing-illustration.component.tsx +30 -0
  109. package/src/billing.resource.ts +120 -0
  110. package/src/bills-table/bills-table.component.tsx +280 -0
  111. package/src/bills-table/bills-table.scss +181 -0
  112. package/src/bills-table/bills-table.test.tsx +154 -0
  113. package/src/config-schema.ts +3 -0
  114. package/src/dashboard.meta.ts +6 -0
  115. package/src/declarations.d.ts +4 -0
  116. package/src/helpers/functions.ts +63 -0
  117. package/src/helpers/index.ts +1 -0
  118. package/src/index.ts +56 -0
  119. package/src/invoice/invoice-table.component.tsx +185 -0
  120. package/src/invoice/invoice-table.scss +91 -0
  121. package/src/invoice/invoice.component.tsx +138 -0
  122. package/src/invoice/invoice.scss +93 -0
  123. package/src/invoice/invoice.test.tsx +242 -0
  124. package/src/invoice/payments/invoice-breakdown/invoice-breakdown.component.tsx +17 -0
  125. package/src/invoice/payments/invoice-breakdown/invoice-breakdown.scss +29 -0
  126. package/src/invoice/payments/payment-form/payment-form.component.tsx +105 -0
  127. package/src/invoice/payments/payment-form/payment-form.scss +54 -0
  128. package/src/invoice/payments/payment-history/payment-history.component.tsx +68 -0
  129. package/src/invoice/payments/payment.resource.ts +43 -0
  130. package/src/invoice/payments/payments.component.tsx +140 -0
  131. package/src/invoice/payments/payments.scss +46 -0
  132. package/src/invoice/payments/utils.ts +30 -0
  133. package/src/invoice/payments/visit-tags/visit-attribute.component.tsx +21 -0
  134. package/src/invoice/printable-invoice/print-receipt.component.tsx +28 -0
  135. package/src/invoice/printable-invoice/print-receipt.scss +14 -0
  136. package/src/invoice/printable-invoice/printable-footer.component.tsx +19 -0
  137. package/src/invoice/printable-invoice/printable-footer.scss +17 -0
  138. package/src/invoice/printable-invoice/printable-footer.test.tsx +30 -0
  139. package/src/invoice/printable-invoice/printable-invoice-header.component.tsx +63 -0
  140. package/src/invoice/printable-invoice/printable-invoice-header.scss +61 -0
  141. package/src/invoice/printable-invoice/printable-invoice-header.test.tsx +58 -0
  142. package/src/invoice/printable-invoice/printable-invoice.component.tsx +146 -0
  143. package/src/invoice/printable-invoice/printable-invoice.scss +50 -0
  144. package/src/left-panel-link.component.tsx +41 -0
  145. package/src/left-panel-link.test.tsx +38 -0
  146. package/src/metrics-cards/card.component.tsx +11 -0
  147. package/src/metrics-cards/card.scss +20 -0
  148. package/src/metrics-cards/metrics-cards.component.tsx +42 -0
  149. package/src/metrics-cards/metrics-cards.scss +12 -0
  150. package/src/metrics-cards/metrics-cards.test.tsx +41 -0
  151. package/src/metrics-cards/metrics.resource.ts +45 -0
  152. package/src/modal/require-payment-modal.component.tsx +81 -0
  153. package/src/modal/require-payment.scss +6 -0
  154. package/src/root.component.tsx +19 -0
  155. package/src/root.scss +30 -0
  156. package/src/routes.json +79 -0
  157. package/src/setup-tests.ts +13 -0
  158. package/src/types/index.ts +167 -0
  159. package/test-helpers.tsx +23 -0
  160. package/translations/am.json +107 -0
  161. package/translations/en.json +107 -0
  162. package/translations/es.json +107 -0
  163. package/translations/fr.json +107 -0
  164. package/translations/he.json +107 -0
  165. package/translations/km.json +107 -0
  166. package/tsconfig.json +16 -0
  167. package/webpack.config.js +1 -0
@@ -0,0 +1 @@
1
+ var _openmrs_esm_billing_app;(()=>{"use strict";var e,r,t,n,o,a,i,l,s,u,p,f,d,c,h,m,v,g,b,y={9806:(e,r,t)=>{var n={"./start":()=>Promise.all([t.e(96),t.e(384),t.e(672),t.e(977),t.e(476)]).then((()=>()=>t(5476)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},w={};function _(e){var r=w[e];if(void 0!==r)return r.exports;var t=w[e]={id:e,loaded:!1,exports:{}};return y[e].call(t.exports,t,t.exports,_),t.loaded=!0,t.exports}_.m=y,_.c=w,_.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return _.d(r,{a:r}),r},_.d=(e,r)=>{for(var t in r)_.o(r,t)&&!_.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},_.f={},_.e=e=>Promise.all(Object.keys(_.f).reduce(((r,t)=>(_.f[t](e,r),r)),[])),_.u=e=>e+".js",_.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),_.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="@openmrs/esm-billing-app:",_.l=(t,n,o,a)=>{if(e[t])e[t].push(n);else{var i,l;if(void 0!==o)for(var s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var p=s[u];if(p.getAttribute("src")==t||p.getAttribute("data-webpack")==r+o){i=p;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,_.nc&&i.setAttribute("nonce",_.nc),i.setAttribute("data-webpack",r+o),i.src=t),e[t]=[n];var f=(r,n)=>{i.onerror=i.onload=null,clearTimeout(d);var o=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),l&&document.head.appendChild(i)}},_.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},_.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{_.S={};var e={},r={};_.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];_.o(_.S,t)||(_.S[t]={});var a=_.S[t],i="@openmrs/esm-billing-app",l=(e,r,t,n)=>{var o=a[e]=a[e]||{},l=o[r];(!l||!l.loaded&&(!n!=!l.eager?n:i>l.from))&&(o[r]={get:t,from:i,eager:!!n})},s=[];return"default"===t&&(l("@openmrs/esm-framework","5.3.3-pre.1432",(()=>Promise.all([_.e(800),_.e(672)]).then((()=>()=>_(4800))))),l("@openmrs/esm-patient-common-lib","6.1.1-pre.3526",(()=>Promise.all([_.e(96),_.e(450),_.e(672),_.e(977),_.e(437)]).then((()=>()=>_(2450))))),l("react-dom","18.2.0",(()=>Promise.all([_.e(935),_.e(672)]).then((()=>()=>_(3935))))),l("react-i18next","14.0.1",(()=>Promise.all([_.e(421),_.e(672)]).then((()=>()=>_(7421))))),l("react","18.2.0",(()=>_.e(294).then((()=>()=>_(7294)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),(()=>{var e;_.g.importScripts&&(e=_.g.location+"");var r=_.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var n=t.length-1;n>-1&&!e;)e=t[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),_.p=e})(),t=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},n=(e,r)=>{e=t(e),r=t(r);for(var n=0;;){if(n>=e.length)return n<r.length&&"u"!=(typeof r[n])[0];var o=e[n],a=(typeof o)[0];if(n>=r.length)return"u"==a;var i=r[n],l=(typeof i)[0];if(a!=l)return"o"==a&&"n"==l||"s"==l||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;n++}},o=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,a=1;a<e.length;a++)n--,t+="u"==(typeof(l=e[a]))[0]?"-":(n>0?".":"")+(n=2,l);return t}var i=[];for(a=1;a<e.length;a++){var l=e[a];i.push(0===l?"not("+s()+")":1===l?"("+s()+" || "+s()+")":2===l?i.pop()+" "+i.pop():o(l))}return s();function s(){return i.pop().replace(/^\((.+)\)$/,"$1")}},a=(e,r)=>{if(0 in e){r=t(r);var n=e[0],o=n<0;o&&(n=-n-1);for(var i=0,l=1,s=!0;;l++,i++){var u,p,f=l<e.length?(typeof e[l])[0]:"";if(i>=r.length||"o"==(p=(typeof(u=r[i]))[0]))return!s||("u"==f?l>n&&!o:""==f!=o);if("u"==p){if(!s||"u"!=f)return!1}else if(s)if(f==p)if(l<=n){if(u!=e[l])return!1}else{if(o?u>e[l]:u<e[l])return!1;u!=e[l]&&(s=!1)}else if("s"!=f&&"n"!=f){if(o||l<=n)return!1;s=!1,l--}else{if(l<=n||p<f!=o)return!1;s=!1}else"s"!=f&&"n"!=f&&(s=!1,l--)}}var d=[],c=d.pop.bind(d);for(i=1;i<e.length;i++){var h=e[i];d.push(1==h?c()|c():2==h?c()&c():h?a(h,r):!c())}return!!c()},i=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&n(e,r)?r:e),0)},l=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+o(n)+")",s=(e,r,t,n)=>{var o=i(e,t);return f(e[t][o])},u=(e,r,t,n)=>{var o=i(e,t);return a(n,o)||p(l(e,t,o,n)),f(e[t][o])},p=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},f=e=>(e.loaded=1,e.get()),c=(d=e=>function(r,t,n,o){var a=_.I(r);return a&&a.then?a.then(e.bind(e,r,_.S[r],t,n,o)):e(r,_.S[r],t,n,o)})(((e,r,t,n)=>r&&_.o(r,t)?s(r,0,t):n())),h=d(((e,r,t,n,o)=>r&&_.o(r,t)?u(r,0,t,n):o())),m={},v={1672:()=>h("default","react",[1,18],(()=>_.e(294).then((()=>()=>_(7294))))),1132:()=>h("default","@openmrs/esm-framework",[0],(()=>_.e(800).then((()=>()=>_(4800))))),3397:()=>h("default","react-i18next",[1,11],(()=>_.e(421).then((()=>()=>_(7421))))),5183:()=>h("default","react-dom",[1,18],(()=>_.e(935).then((()=>()=>_(3935))))),5295:()=>h("default","@openmrs/esm-patient-common-lib",[1,6],(()=>Promise.all([_.e(450),_.e(437)]).then((()=>()=>_(2450))))),2437:()=>c("default","@openmrs/esm-framework/src/internal",(()=>_.e(800).then((()=>()=>_(4800)))))},g={437:[2437],672:[1672],977:[1132,3397,5183,5295]},b={},_.f.consumes=(e,r)=>{_.o(g,e)&&g[e].forEach((e=>{if(_.o(m,e))return r.push(m[e]);if(!b[e]){var t=r=>{m[e]=0,_.m[e]=t=>{delete _.c[e],t.exports=r()}};b[e]=!0;var n=r=>{delete m[e],_.m[e]=t=>{throw delete _.c[e],r}};try{var o=v[e]();o.then?r.push(m[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}}))},(()=>{var e={916:0};_.f.j=(r,t)=>{var n=_.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(437|672|977)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=_.p+_.u(r),i=new Error;_.l(a,(t=>{if(_.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,i,l]=t,s=0;if(a.some((r=>0!==e[r]))){for(n in i)_.o(i,n)&&(_.m[n]=i[n]);l&&l(_)}for(r&&r(t);s<a.length;s++)o=a[s],_.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=globalThis.webpackChunk_openmrs_esm_billing_app=globalThis.webpackChunk_openmrs_esm_billing_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),_.nc=void 0;var S=_(9806);_openmrs_esm_billing_app=S})();
@@ -0,0 +1,462 @@
1
+ {
2
+ "chunks": [
3
+ {
4
+ "rendered": true,
5
+ "initial": false,
6
+ "entry": false,
7
+ "recorded": false,
8
+ "reason": "split chunk (cache group: defaultVendors)",
9
+ "size": 2746202,
10
+ "sizes": {
11
+ "javascript": 2746202
12
+ },
13
+ "names": [],
14
+ "idHints": [
15
+ "vendors"
16
+ ],
17
+ "runtime": [
18
+ "@openmrs/esm-billing-app",
19
+ "main"
20
+ ],
21
+ "files": [
22
+ "96.js"
23
+ ],
24
+ "auxiliaryFiles": [
25
+ "96.js.map"
26
+ ],
27
+ "hash": "7314fb73b30bf1e7",
28
+ "childrenByOrder": {}
29
+ },
30
+ {
31
+ "rendered": true,
32
+ "initial": true,
33
+ "entry": true,
34
+ "recorded": false,
35
+ "size": 3906817,
36
+ "sizes": {
37
+ "consume-shared": 210,
38
+ "javascript": 3885901,
39
+ "share-init": 210,
40
+ "runtime": 20496
41
+ },
42
+ "names": [
43
+ "main"
44
+ ],
45
+ "idHints": [],
46
+ "runtime": [
47
+ "main"
48
+ ],
49
+ "files": [
50
+ "main.js"
51
+ ],
52
+ "auxiliaryFiles": [
53
+ "main.js.map"
54
+ ],
55
+ "hash": "afdd50abc5b46049",
56
+ "childrenByOrder": {}
57
+ },
58
+ {
59
+ "rendered": true,
60
+ "initial": false,
61
+ "entry": false,
62
+ "recorded": false,
63
+ "size": 7103,
64
+ "sizes": {
65
+ "javascript": 7103
66
+ },
67
+ "names": [],
68
+ "idHints": [],
69
+ "runtime": [
70
+ "@openmrs/esm-billing-app",
71
+ "main"
72
+ ],
73
+ "files": [
74
+ "294.js"
75
+ ],
76
+ "auxiliaryFiles": [
77
+ "294.js.map"
78
+ ],
79
+ "hash": "cced3cde053754dc",
80
+ "childrenByOrder": {}
81
+ },
82
+ {
83
+ "rendered": true,
84
+ "initial": false,
85
+ "entry": false,
86
+ "recorded": false,
87
+ "size": 3614,
88
+ "sizes": {
89
+ "javascript": 3614
90
+ },
91
+ "names": [],
92
+ "idHints": [],
93
+ "runtime": [
94
+ "@openmrs/esm-billing-app",
95
+ "main"
96
+ ],
97
+ "files": [
98
+ "319.js"
99
+ ],
100
+ "auxiliaryFiles": [],
101
+ "hash": "6ad7337ed9bedcd5",
102
+ "childrenByOrder": {}
103
+ },
104
+ {
105
+ "rendered": true,
106
+ "initial": false,
107
+ "entry": false,
108
+ "recorded": false,
109
+ "reason": "split chunk (cache group: defaultVendors)",
110
+ "size": 809603,
111
+ "sizes": {
112
+ "javascript": 809603
113
+ },
114
+ "names": [],
115
+ "idHints": [
116
+ "vendors"
117
+ ],
118
+ "runtime": [
119
+ "@openmrs/esm-billing-app"
120
+ ],
121
+ "files": [
122
+ "384.js"
123
+ ],
124
+ "auxiliaryFiles": [
125
+ "384.js.map"
126
+ ],
127
+ "hash": "e432c9e5b986215b",
128
+ "childrenByOrder": {}
129
+ },
130
+ {
131
+ "rendered": true,
132
+ "initial": false,
133
+ "entry": false,
134
+ "recorded": false,
135
+ "reason": "reused as split chunk (cache group: defaultVendors)",
136
+ "size": 29710,
137
+ "sizes": {
138
+ "javascript": 29710
139
+ },
140
+ "names": [],
141
+ "idHints": [
142
+ "vendors"
143
+ ],
144
+ "runtime": [
145
+ "@openmrs/esm-billing-app",
146
+ "main"
147
+ ],
148
+ "files": [
149
+ "421.js"
150
+ ],
151
+ "auxiliaryFiles": [
152
+ "421.js.map"
153
+ ],
154
+ "hash": "d48ab60338a416e0",
155
+ "childrenByOrder": {}
156
+ },
157
+ {
158
+ "rendered": false,
159
+ "initial": false,
160
+ "entry": false,
161
+ "recorded": false,
162
+ "reason": "reused as split chunk (cache group: default)",
163
+ "size": 42,
164
+ "sizes": {
165
+ "consume-shared": 42
166
+ },
167
+ "names": [],
168
+ "idHints": [],
169
+ "runtime": [
170
+ "@openmrs/esm-billing-app",
171
+ "main"
172
+ ],
173
+ "files": [],
174
+ "auxiliaryFiles": [],
175
+ "hash": "4fa19ec21ec4e24f",
176
+ "childrenByOrder": {}
177
+ },
178
+ {
179
+ "rendered": true,
180
+ "initial": false,
181
+ "entry": false,
182
+ "recorded": false,
183
+ "reason": "split chunk (cache group: defaultVendors)",
184
+ "size": 124386,
185
+ "sizes": {
186
+ "javascript": 124386
187
+ },
188
+ "names": [],
189
+ "idHints": [
190
+ "vendors"
191
+ ],
192
+ "runtime": [
193
+ "@openmrs/esm-billing-app",
194
+ "main"
195
+ ],
196
+ "files": [
197
+ "450.js"
198
+ ],
199
+ "auxiliaryFiles": [
200
+ "450.js.map"
201
+ ],
202
+ "hash": "38dd5cef636332ae",
203
+ "childrenByOrder": {}
204
+ },
205
+ {
206
+ "rendered": true,
207
+ "initial": false,
208
+ "entry": false,
209
+ "recorded": false,
210
+ "size": 330096,
211
+ "sizes": {
212
+ "javascript": 330096
213
+ },
214
+ "names": [],
215
+ "idHints": [],
216
+ "runtime": [
217
+ "@openmrs/esm-billing-app"
218
+ ],
219
+ "files": [
220
+ "476.js"
221
+ ],
222
+ "auxiliaryFiles": [
223
+ "476.js.map"
224
+ ],
225
+ "hash": "09e1a0c919bb034f",
226
+ "childrenByOrder": {}
227
+ },
228
+ {
229
+ "rendered": true,
230
+ "initial": false,
231
+ "entry": false,
232
+ "recorded": false,
233
+ "size": 3614,
234
+ "sizes": {
235
+ "javascript": 3614
236
+ },
237
+ "names": [],
238
+ "idHints": [],
239
+ "runtime": [
240
+ "@openmrs/esm-billing-app",
241
+ "main"
242
+ ],
243
+ "files": [
244
+ "574.js"
245
+ ],
246
+ "auxiliaryFiles": [],
247
+ "hash": "9b6221b2851d7866",
248
+ "childrenByOrder": {}
249
+ },
250
+ {
251
+ "rendered": false,
252
+ "initial": false,
253
+ "entry": false,
254
+ "recorded": false,
255
+ "reason": "reused as split chunk (cache group: default)",
256
+ "size": 42,
257
+ "sizes": {
258
+ "consume-shared": 42
259
+ },
260
+ "names": [],
261
+ "idHints": [],
262
+ "runtime": [
263
+ "@openmrs/esm-billing-app",
264
+ "main"
265
+ ],
266
+ "files": [],
267
+ "auxiliaryFiles": [],
268
+ "hash": "7449137f4ce48913",
269
+ "childrenByOrder": {}
270
+ },
271
+ {
272
+ "rendered": true,
273
+ "initial": false,
274
+ "entry": false,
275
+ "recorded": false,
276
+ "size": 3614,
277
+ "sizes": {
278
+ "javascript": 3614
279
+ },
280
+ "names": [],
281
+ "idHints": [],
282
+ "runtime": [
283
+ "@openmrs/esm-billing-app",
284
+ "main"
285
+ ],
286
+ "files": [
287
+ "757.js"
288
+ ],
289
+ "auxiliaryFiles": [],
290
+ "hash": "5984f5a8f79dcf1a",
291
+ "childrenByOrder": {}
292
+ },
293
+ {
294
+ "rendered": true,
295
+ "initial": false,
296
+ "entry": false,
297
+ "recorded": false,
298
+ "size": 3614,
299
+ "sizes": {
300
+ "javascript": 3614
301
+ },
302
+ "names": [],
303
+ "idHints": [],
304
+ "runtime": [
305
+ "@openmrs/esm-billing-app",
306
+ "main"
307
+ ],
308
+ "files": [
309
+ "788.js"
310
+ ],
311
+ "auxiliaryFiles": [],
312
+ "hash": "32d54df7923d7b15",
313
+ "childrenByOrder": {}
314
+ },
315
+ {
316
+ "rendered": true,
317
+ "initial": false,
318
+ "entry": false,
319
+ "recorded": false,
320
+ "reason": "reused as split chunk (cache group: defaultVendors)",
321
+ "size": 1213057,
322
+ "sizes": {
323
+ "javascript": 1213057
324
+ },
325
+ "names": [],
326
+ "idHints": [
327
+ "vendors"
328
+ ],
329
+ "runtime": [
330
+ "@openmrs/esm-billing-app",
331
+ "main"
332
+ ],
333
+ "files": [
334
+ "800.js"
335
+ ],
336
+ "auxiliaryFiles": [
337
+ "800.js.map"
338
+ ],
339
+ "hash": "995b6003e9529164",
340
+ "childrenByOrder": {}
341
+ },
342
+ {
343
+ "rendered": true,
344
+ "initial": false,
345
+ "entry": false,
346
+ "recorded": false,
347
+ "size": 3614,
348
+ "sizes": {
349
+ "javascript": 3614
350
+ },
351
+ "names": [],
352
+ "idHints": [],
353
+ "runtime": [
354
+ "@openmrs/esm-billing-app",
355
+ "main"
356
+ ],
357
+ "files": [
358
+ "807.js"
359
+ ],
360
+ "auxiliaryFiles": [],
361
+ "hash": "ccb5f775e9d396d7",
362
+ "childrenByOrder": {}
363
+ },
364
+ {
365
+ "rendered": true,
366
+ "initial": false,
367
+ "entry": false,
368
+ "recorded": false,
369
+ "size": 3614,
370
+ "sizes": {
371
+ "javascript": 3614
372
+ },
373
+ "names": [],
374
+ "idHints": [],
375
+ "runtime": [
376
+ "@openmrs/esm-billing-app",
377
+ "main"
378
+ ],
379
+ "files": [
380
+ "833.js"
381
+ ],
382
+ "auxiliaryFiles": [],
383
+ "hash": "d5fbb32182bd05cc",
384
+ "childrenByOrder": {}
385
+ },
386
+ {
387
+ "rendered": true,
388
+ "initial": true,
389
+ "entry": true,
390
+ "recorded": false,
391
+ "size": 20305,
392
+ "sizes": {
393
+ "javascript": 42,
394
+ "share-init": 210,
395
+ "runtime": 20053
396
+ },
397
+ "names": [
398
+ "@openmrs/esm-billing-app"
399
+ ],
400
+ "idHints": [],
401
+ "runtime": [
402
+ "@openmrs/esm-billing-app"
403
+ ],
404
+ "files": [
405
+ "openmrs-esm-billing-app.js"
406
+ ],
407
+ "auxiliaryFiles": [
408
+ "openmrs-esm-billing-app.js.map"
409
+ ],
410
+ "hash": "8fb9f60010469b61",
411
+ "childrenByOrder": {}
412
+ },
413
+ {
414
+ "rendered": true,
415
+ "initial": false,
416
+ "entry": false,
417
+ "recorded": false,
418
+ "reason": "reused as split chunk (cache group: defaultVendors)",
419
+ "size": 137533,
420
+ "sizes": {
421
+ "javascript": 137533
422
+ },
423
+ "names": [],
424
+ "idHints": [
425
+ "vendors"
426
+ ],
427
+ "runtime": [
428
+ "@openmrs/esm-billing-app",
429
+ "main"
430
+ ],
431
+ "files": [
432
+ "935.js"
433
+ ],
434
+ "auxiliaryFiles": [
435
+ "935.js.map"
436
+ ],
437
+ "hash": "fa24aa8d33b258b8",
438
+ "childrenByOrder": {}
439
+ },
440
+ {
441
+ "rendered": false,
442
+ "initial": false,
443
+ "entry": false,
444
+ "recorded": false,
445
+ "reason": "split chunk (cache group: default)",
446
+ "size": 168,
447
+ "sizes": {
448
+ "consume-shared": 168
449
+ },
450
+ "names": [],
451
+ "idHints": [],
452
+ "runtime": [
453
+ "@openmrs/esm-billing-app",
454
+ "main"
455
+ ],
456
+ "files": [],
457
+ "auxiliaryFiles": [],
458
+ "hash": "2d58b8a41db44a9e",
459
+ "childrenByOrder": {}
460
+ }
461
+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KAAkB,UAAYX,EAAMW,MAChEwD,EAAUnE,GAASA,EAAMY,QAAUZ,EAAMY,OAAOf,IACpD+D,EAAMQ,QAAU,iBAAmBvG,EAAU,cAAgBqG,EAAY,KAAOC,EAAU,IAC1FP,EAAMvH,KAAO,iBACbuH,EAAMjD,KAAOuD,EACbN,EAAMS,QAAUF,EAChBJ,EAAmB,GAAGH,EACvB,CACD,GAEwC,SAAW/F,EAASA,EAC9D,CAEF,EAcF,IAAIyG,EAAuB,CAACC,EAA4BC,KACvD,IAGI7H,EAAUkB,GAHT4G,EAAUC,EAAaC,GAAWH,EAGhBpF,EAAI,EAC3B,GAAGqF,EAASG,MAAM/H,GAAgC,IAAxBgH,EAAgBhH,KAAa,CACtD,IAAIF,KAAY+H,EACZlJ,EAAoBM,EAAE4I,EAAa/H,KACrCnB,EAAoByB,EAAEN,GAAY+H,EAAY/H,IAG7CgI,GAAsBA,EAAQnJ,EAClC,CAEA,IADG+I,GAA4BA,EAA2BC,GACrDpF,EAAIqF,EAASpF,OAAQD,IACzBvB,EAAU4G,EAASrF,GAChB5D,EAAoBM,EAAE+H,EAAiBhG,IAAYgG,EAAgBhG,IACrEgG,EAAgBhG,GAAS,KAE1BgG,EAAgBhG,GAAW,CAC5B,EAIGgH,EAAqB1G,WAAiD,qCAAIA,WAAiD,sCAAK,GACpI0G,EAAmBtE,QAAQ+D,EAAqB5D,KAAK,KAAM,IAC3DmE,EAAmB/F,KAAOwF,EAAqB5D,KAAK,KAAMmE,EAAmB/F,KAAK4B,KAAKmE,G,KCrFvFrJ,EAAoBmE,QAAK1D,ECGzB,IAAI6I,EAAsBtJ,EAAoB,M","sources":["webpack://@openmrs/esm-billing-app/webpack/runtime/load script","webpack://@openmrs/esm-billing-app/webpack/runtime/consumes","webpack://@openmrs/esm-billing-app/webpack/container-entry","webpack://@openmrs/esm-billing-app/webpack/bootstrap","webpack://@openmrs/esm-billing-app/webpack/runtime/compat get default export","webpack://@openmrs/esm-billing-app/webpack/runtime/define property getters","webpack://@openmrs/esm-billing-app/webpack/runtime/ensure chunk","webpack://@openmrs/esm-billing-app/webpack/runtime/get javascript chunk filename","webpack://@openmrs/esm-billing-app/webpack/runtime/global","webpack://@openmrs/esm-billing-app/webpack/runtime/hasOwnProperty shorthand","webpack://@openmrs/esm-billing-app/webpack/runtime/make namespace object","webpack://@openmrs/esm-billing-app/webpack/runtime/node module decorator","webpack://@openmrs/esm-billing-app/webpack/runtime/sharing","webpack://@openmrs/esm-billing-app/webpack/runtime/publicPath","webpack://@openmrs/esm-billing-app/webpack/runtime/jsonp chunk loading","webpack://@openmrs/esm-billing-app/webpack/runtime/nonce","webpack://@openmrs/esm-billing-app/webpack/startup"],"names":["inProgress","dataWebpackPrefix","parseVersion","versionLt","rangeToString","satisfy","findSingletonVersionKey","getInvalidSingletonVersionMessage","getSingleton","getSingletonVersion","warn","get","init","loadSingletonFallback","loadSingletonVersionCheckFallback","installedModules","moduleToHandlerMapping","chunkMapping","startedInstallModules","moduleMap","Promise","all","__webpack_require__","e","then","module","getScope","R","o","resolve","Error","undefined","shareScope","initScope","S","name","oldScope","I","d","exports","__webpack_module_cache__","moduleId","cachedModule","id","loaded","__webpack_modules__","call","m","c","n","getter","__esModule","a","definition","key","Object","defineProperty","enumerable","f","chunkId","keys","reduce","promises","u","g","globalThis","this","Function","window","obj","prop","prototype","hasOwnProperty","l","url","done","push","script","needAttach","scripts","document","getElementsByTagName","i","length","s","getAttribute","createElement","charset","timeout","nc","setAttribute","src","onScriptComplete","prev","event","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","forEach","fn","setTimeout","bind","type","target","head","appendChild","r","Symbol","toStringTag","value","nmd","paths","children","initPromises","initTokens","initToken","indexOf","scope","uniqueName","register","version","factory","eager","versions","activeVersion","from","scriptUrl","importScripts","location","currentScript","replace","p","str","split","map","exec","apply","b","t","range","pop","requiredVersion","scopeName","msg","console","entry","promise","fallback","consumes","onFactory","onError","error","installedChunks","j","installedChunkData","test","reject","errorType","realSrc","message","request","webpackJsonpCallback","parentChunkLoadingFunction","data","chunkIds","moreModules","runtime","some","chunkLoadingGlobal","__webpack_exports__"],"sourceRoot":""}
@@ -0,0 +1 @@
1
+ {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"kenyaemr":"^18.2.0"},"pages":[{"component":"billableServicesHome","route":"billable-services"}],"extensions":[{"component":"billingDashboardLink","name":"billing-dashboard-link","slot":"homepage-dashboard-slot","meta":{"name":"billing","title":"billing","slot":"billing-dashboard-slot"}},{"component":"root","name":"billing-dashboard-root","slot":"billing-dashboard-slot"},{"name":"billing-patient-summary","component":"billingPatientSummary","slot":"patient-chart-billing-dashboard-slot","order":10,"meta":{"columnSpan":4}},{"name":"billing-summary-dashboard-link","component":"billingSummaryDashboardLink","slot":"patient-chart-dashboard-slot","order":11,"meta":{"columns":1,"columnSpan":1,"slot":"patient-chart-billing-dashboard-slot","path":"Billing history"}},{"name":"billing-checkin-form","slot":"billing-checkin-slot","component":"billingCheckInForm"},{"slot":"system-admin-page-card-link-slot","component":"billableServicesCardLink","name":"billable-services-admin-card-link"},{"name":"billing-form","component":"billingForm"},{"name":"require-billing-modal","component":"requirePaymentModal"},{"name":"patient-banner-billing-tags","component":"visitAttributeTags","slot":"patient-banner-tags-slot","order":2},{"name":"billing-home-tiles-ext","slot":"billing-home-tiles-slot","component":"billingServicesTiles"}],"version":"1.0.1-pre.14"}
package/e2e/README.md ADDED
@@ -0,0 +1,115 @@
1
+ # E2E Tests
2
+
3
+ This directory contains an E2E test suite using the [Playwright](https://playwright.dev)
4
+ framework.
5
+
6
+ ## Getting Started
7
+
8
+ Please ensure that you have followed the basic installation guide in the
9
+ [root README](../README.md).
10
+ Once everything is set up, make sure the dev server is running by using:
11
+
12
+ ```sh
13
+ yarn start --sources 'packages/esm-*-app/'
14
+ ```
15
+ Then, in a separate terminal, run:
16
+
17
+ ```sh
18
+ yarn test-e2e --headed
19
+ ```
20
+
21
+ By default, the test suite will run against the http://localhost:8080.
22
+ You can override this by exporting `E2E_BASE_URL` environment variables beforehand:
23
+
24
+ ```sh
25
+ # Ex: Set the server URL to dev3:
26
+ export E2E_BASE_URL=https://dev3.openmrs.org/openmrs
27
+
28
+ # Run all e2e tests:
29
+ yarn test-e2e --headed
30
+ ```
31
+ To run a specific test by title:
32
+ ```sh
33
+ yarn test-e2e --headed -g "title of the test"
34
+ ```
35
+ Check [this documentation](https://playwright.dev/docs/running-tests#command-line) for more running options.
36
+
37
+ It is also highly recommended to install the companion VS Code extension:
38
+ https://playwright.dev/docs/getting-started-vscode
39
+
40
+
41
+ ## Writing New Tests
42
+
43
+ In general, it is recommended to read through the official [Playwright docs](https://playwright.dev/docs/intro)
44
+ before writing new test cases. The project uses the official Playwright test runner and,
45
+ generally, follows a very simple project structure:
46
+
47
+ ```
48
+ e2e
49
+ |__ commands
50
+ | ^ Contains "commands" (simple reusable functions) that can be used in test cases/specs,
51
+ | e.g. generate a random patient.
52
+ |__ core
53
+ | ^ Contains code related to the test runner itself, e.g. setting up the custom fixtures.
54
+ | You probably need to touch this infrequently.
55
+ |__ fixtures
56
+ | ^ Contains fixtures (https://playwright.dev/docs/test-fixtures) which are used
57
+ | to run reusable setup/teardown tasks
58
+ |__ pages
59
+ | ^ Contains page object model classes for interacting with the frontend.
60
+ | See https://playwright.dev/docs/test-pom for details.
61
+ |__ specs
62
+ | ^ Contains the actual test cases/specs. New tests should be placed in this folder.
63
+ |__ support
64
+ ^ Contains support files that requires to run e2e tests, e.g. docker compose files.
65
+ ```
66
+
67
+ When you want to write a new test case, start by creating a new spec in `./specs`.
68
+ Depending on what you want to achieve, you might want to create new fixtures and/or
69
+ page object models. To see examples, have a look at the existing code to see how these
70
+ different concepts play together.
71
+
72
+ ## Open reports from GitHub Actions / Bamboo
73
+
74
+ To download the report from the GitHub action/Bamboo plan, follow these steps:
75
+
76
+ 1. Go to the artifact section of the action/plan and locate the report file.
77
+ 2. Download the report file and unzip it using a tool of your choice.
78
+ 3. Open the index.html file in a web browser to view the report.
79
+
80
+ The report will show you a full summary of your tests, including information on which
81
+ tests passed, failed, were skipped, or were flaky. You can filter the report by browser
82
+ and explore the details of individual tests, including any errors or failures, video
83
+ recordings, and the steps involved in each test. Simply click on a test to view its details.
84
+
85
+ ## Debugging Tests
86
+
87
+ Refer to [this documentation](https://playwright.dev/docs/debug) on how to debug a test.
88
+
89
+ ## Configuration
90
+
91
+ This is very much underdeveloped/WIP. At the moment, there exists a (git-shared) `example.env`
92
+ file which can be used for configuring certain test attributes. This is most likely
93
+ about to change in the future. Stay tuned for updates!
94
+
95
+
96
+ ## Github Action integration
97
+ The e2e.yml workflow is made up of two jobs: one for running on pull requests (PRs) and
98
+ one for running on commits.
99
+
100
+ 1. When running on PRs, the workflow will start the dev server, use dev3.openmrs.org as the backend,
101
+ and run tests only on chromium. This is done in order to quickly provide feedback to the developer.
102
+ The tests are designed to generate their own data and clean up after themselves once they are finished.
103
+ This ensures that the tests will have minimum effect from changes made to dev3 by other developers.
104
+ In the future, we plan to use a docker container to run the tests in an isolated environment once we
105
+ figure out a way to spin up the container within a small amount of time.
106
+ 2. When running on commits, the workflow will spin up a docker container and run the dev server against
107
+ it in order to provide a known and isolated environment. In addition, tests will be run on multiple
108
+ browsers (chromium, firefox, and WebKit) to ensure compatibility.
109
+
110
+ ## Troubleshooting tips
111
+
112
+ On MacOS, you might run into the following error:
113
+ ```browserType.launch: Executable doesn't exist at /Users/<user>/Library/Caches/ms-playwright/chromium-1015/chrome-mac/Chromium.app/Contents/MacOS/Chromium```
114
+ In order to fix this, you can attempt to force the browser reinstallation by running:
115
+ ```PLAYWRIGHT_BROWSERS_PATH=/Users/$USER/Library/Caches/ms-playwright npx playwright install```
@@ -0,0 +1,32 @@
1
+ import { request } from '@playwright/test';
2
+ import * as dotenv from 'dotenv';
3
+
4
+ dotenv.config();
5
+
6
+ /**
7
+ * This configuration is to reuse the signed-in state in the tests
8
+ * by log in only once using the API and then skip the log in step for all the tests.
9
+ *
10
+ * https://playwright.dev/docs/auth#reuse-signed-in-state
11
+ */
12
+
13
+ async function globalSetup() {
14
+ const requestContext = await request.newContext();
15
+ const token = Buffer.from(`${process.env.E2E_USER_ADMIN_USERNAME}:${process.env.E2E_USER_ADMIN_PASSWORD}`).toString(
16
+ 'base64',
17
+ );
18
+ await requestContext.post(`${process.env.E2E_BASE_URL}/ws/rest/v1/session`, {
19
+ data: {
20
+ sessionLocation: process.env.E2E_LOGIN_DEFAULT_LOCATION_UUID,
21
+ locale: 'en',
22
+ },
23
+ headers: {
24
+ 'Content-Type': 'application/json',
25
+ Authorization: `Basic ${token}`,
26
+ },
27
+ });
28
+ await requestContext.storageState({ path: 'e2e/storageState.json' });
29
+ await requestContext.dispose();
30
+ }
31
+
32
+ export default globalSetup;
@@ -0,0 +1 @@
1
+ export * from './test';