@ampath/esm-dha-workflow-app 4.0.0-next.154 → 4.0.0-next.156
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/dist/182.js +1 -1
- package/dist/182.js.map +1 -1
- package/dist/1826.js +1 -1
- package/dist/2333.js +1 -1
- package/dist/4517.js +1 -1
- package/dist/4517.js.map +1 -1
- package/dist/8778.js +1 -0
- package/dist/8778.js.map +1 -0
- package/dist/esm-dha-workflow-app.js.buildmanifest.json +25 -25
- package/dist/main.js +1 -1
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/registry/eligibility/eligibility-details/eligibility-details.scss +38 -0
- package/src/registry/eligibility/eligibility-details/eligibility-details.tsx +101 -0
- package/src/registry/eligibility/eliigibility-tags/eligibility-tags.tsx +0 -17
- package/src/registry/eligibility/modal/eligibility-details.modal.scss +0 -38
- package/src/registry/eligibility/modal/eligibility-details.modal.tsx +4 -90
- package/src/registry/modal/client-details-modal/client-details-modal.tsx +61 -6
- package/src/registry/modal/otp-verification-modal/otp-verification-modal.tsx +2 -1
- package/src/registry/registry.component.tsx +4 -5
- package/src/registry/types/index.ts +0 -1
- package/src/registry/utils/phone-number-formatter.ts +11 -0
- package/dist/8235.js +0 -1
- package/dist/8235.js.map +0 -1
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
"initial": false,
|
|
6
6
|
"entry": false,
|
|
7
7
|
"recorded": false,
|
|
8
|
-
"size":
|
|
8
|
+
"size": 98948,
|
|
9
9
|
"sizes": {
|
|
10
|
-
"javascript":
|
|
10
|
+
"javascript": 98948
|
|
11
11
|
},
|
|
12
12
|
"names": [],
|
|
13
13
|
"idHints": [],
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"auxiliaryFiles": [
|
|
22
22
|
"182.js.map"
|
|
23
23
|
],
|
|
24
|
-
"hash": "
|
|
24
|
+
"hash": "9e86217e0c6b21fb",
|
|
25
25
|
"childrenByOrder": {}
|
|
26
26
|
},
|
|
27
27
|
{
|
|
@@ -265,7 +265,7 @@
|
|
|
265
265
|
"auxiliaryFiles": [
|
|
266
266
|
"1826.js.map"
|
|
267
267
|
],
|
|
268
|
-
"hash": "
|
|
268
|
+
"hash": "540fb2dbb85888e9",
|
|
269
269
|
"childrenByOrder": {}
|
|
270
270
|
},
|
|
271
271
|
{
|
|
@@ -485,7 +485,7 @@
|
|
|
485
485
|
"auxiliaryFiles": [
|
|
486
486
|
"2333.js.map"
|
|
487
487
|
],
|
|
488
|
-
"hash": "
|
|
488
|
+
"hash": "a3e412173935e31e",
|
|
489
489
|
"childrenByOrder": {}
|
|
490
490
|
},
|
|
491
491
|
{
|
|
@@ -782,9 +782,9 @@
|
|
|
782
782
|
"initial": false,
|
|
783
783
|
"entry": false,
|
|
784
784
|
"recorded": false,
|
|
785
|
-
"size":
|
|
785
|
+
"size": 55765,
|
|
786
786
|
"sizes": {
|
|
787
|
-
"javascript":
|
|
787
|
+
"javascript": 55765
|
|
788
788
|
},
|
|
789
789
|
"names": [],
|
|
790
790
|
"idHints": [],
|
|
@@ -798,7 +798,7 @@
|
|
|
798
798
|
"auxiliaryFiles": [
|
|
799
799
|
"4517.js.map"
|
|
800
800
|
],
|
|
801
|
-
"hash": "
|
|
801
|
+
"hash": "109f5fa5000cd3c6",
|
|
802
802
|
"childrenByOrder": {}
|
|
803
803
|
},
|
|
804
804
|
{
|
|
@@ -1296,10 +1296,9 @@
|
|
|
1296
1296
|
"initial": false,
|
|
1297
1297
|
"entry": false,
|
|
1298
1298
|
"recorded": false,
|
|
1299
|
-
"
|
|
1300
|
-
"size": 264605,
|
|
1299
|
+
"size": 7964,
|
|
1301
1300
|
"sizes": {
|
|
1302
|
-
"javascript":
|
|
1301
|
+
"javascript": 7964
|
|
1303
1302
|
},
|
|
1304
1303
|
"names": [],
|
|
1305
1304
|
"idHints": [],
|
|
@@ -1308,12 +1307,12 @@
|
|
|
1308
1307
|
"main"
|
|
1309
1308
|
],
|
|
1310
1309
|
"files": [
|
|
1311
|
-
"
|
|
1310
|
+
"8339.js"
|
|
1312
1311
|
],
|
|
1313
1312
|
"auxiliaryFiles": [
|
|
1314
|
-
"
|
|
1313
|
+
"8339.js.map"
|
|
1315
1314
|
],
|
|
1316
|
-
"hash": "
|
|
1315
|
+
"hash": "8c0eac4b3c1a820e",
|
|
1317
1316
|
"childrenByOrder": {}
|
|
1318
1317
|
},
|
|
1319
1318
|
{
|
|
@@ -1321,9 +1320,9 @@
|
|
|
1321
1320
|
"initial": false,
|
|
1322
1321
|
"entry": false,
|
|
1323
1322
|
"recorded": false,
|
|
1324
|
-
"size":
|
|
1323
|
+
"size": 1469,
|
|
1325
1324
|
"sizes": {
|
|
1326
|
-
"javascript":
|
|
1325
|
+
"javascript": 1469
|
|
1327
1326
|
},
|
|
1328
1327
|
"names": [],
|
|
1329
1328
|
"idHints": [],
|
|
@@ -1332,12 +1331,12 @@
|
|
|
1332
1331
|
"main"
|
|
1333
1332
|
],
|
|
1334
1333
|
"files": [
|
|
1335
|
-
"
|
|
1334
|
+
"8558.js"
|
|
1336
1335
|
],
|
|
1337
1336
|
"auxiliaryFiles": [
|
|
1338
|
-
"
|
|
1337
|
+
"8558.js.map"
|
|
1339
1338
|
],
|
|
1340
|
-
"hash": "
|
|
1339
|
+
"hash": "2e16d64c8449822f",
|
|
1341
1340
|
"childrenByOrder": {}
|
|
1342
1341
|
},
|
|
1343
1342
|
{
|
|
@@ -1345,9 +1344,10 @@
|
|
|
1345
1344
|
"initial": false,
|
|
1346
1345
|
"entry": false,
|
|
1347
1346
|
"recorded": false,
|
|
1348
|
-
"
|
|
1347
|
+
"reason": "split chunk (cache group: default)",
|
|
1348
|
+
"size": 272646,
|
|
1349
1349
|
"sizes": {
|
|
1350
|
-
"javascript":
|
|
1350
|
+
"javascript": 272646
|
|
1351
1351
|
},
|
|
1352
1352
|
"names": [],
|
|
1353
1353
|
"idHints": [],
|
|
@@ -1356,12 +1356,12 @@
|
|
|
1356
1356
|
"main"
|
|
1357
1357
|
],
|
|
1358
1358
|
"files": [
|
|
1359
|
-
"
|
|
1359
|
+
"8778.js"
|
|
1360
1360
|
],
|
|
1361
1361
|
"auxiliaryFiles": [
|
|
1362
|
-
"
|
|
1362
|
+
"8778.js.map"
|
|
1363
1363
|
],
|
|
1364
|
-
"hash": "
|
|
1364
|
+
"hash": "3de47d7b596081db",
|
|
1365
1365
|
"childrenByOrder": {}
|
|
1366
1366
|
},
|
|
1367
1367
|
{
|
|
@@ -1389,7 +1389,7 @@
|
|
|
1389
1389
|
"auxiliaryFiles": [
|
|
1390
1390
|
"main.js.map"
|
|
1391
1391
|
],
|
|
1392
|
-
"hash": "
|
|
1392
|
+
"hash": "644f70aad9501bfc",
|
|
1393
1393
|
"childrenByOrder": {}
|
|
1394
1394
|
},
|
|
1395
1395
|
{
|
package/dist/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var e,t,n,r,o={42333:(e,t,n)=>{"use strict";n.d(t,{moduleName:()=>w});var r=n(25987),o=(r.Type.ConceptUuid,r.Type.ConceptUuid,r.Type.ConceptUuid,r.Type.ConceptUuid,r.Type.ConceptUuid,r.Type.ConceptUuid,r.Type.ConceptUuid,r.Type.ConceptUuid,r.Type.Array,r.Type.ConceptUuid,r.Type.ConceptUuid,r.Type.ConceptUuid,r.Type.ConceptUuid,r.Type.ConceptUuid,r.Type.ConceptUuid,r.Type.ConceptUuid,r.Type.ConceptUuid,r.Type.String,r.Type.String,r.Type.String,r.Type.String,r.Type.String,r.Type.String,r.Type.String,r.Type.String,r.Type.String,r.Type.String,r.Type.String,r.Type.String,r.Type.Array,r.Type.Array,r.Type.Array,{path:"registry",slot:"client-registry-dashboard-slot",title:"Registry",basePath:"".concat(window.spaBase,"/home")}),i=n(16072),a=n.n(i),s=n(27114),c=function(e){return function(){return a().createElement(s.BrowserRouter,null,a().createElement(r.DashboardExtension,{path:e.path,title:e.title,basePath:e.basePath,icon:e.icon}))}},l=n(51354),u={path:"dashboard",slot:"queue-dashboard-slot",title:"Dashboard",basePath:"".concat(window.spaBase,"/home")},d={path:"dispensing",slot:"dispensing-dashboard-slot",title:"Pharmacy",basePath:"".concat(window.spaBase,"/home")},f={path:"triage",slot:"triage-queue-dashboard-slot",title:"Triage",basePath:"".concat(window.spaBase,"/home")},p={path:"consultation",slot:"consultation-dashboard-slot",title:"Consultation",basePath:"".concat(window.spaBase,"/home")},h={path:"dashboard",slot:"dha-workflow-dashboard-slot",title:"Dashboard",basePath:"".concat(window.spaBase,"/home")},y={path:"accounting",slot:"accounting-dashboard-slot",title:"Accounting",basePath:"".concat(window.spaBase,"/home")},m={path:"bookings",slot:"bookings-dashboard-slot",title:"Bookings",basePath:"".concat(window.spaBase,"/home")},g={path:"admissions-dashboard",slot:"admissions-dashboard-slot",title:"Admissions",basePath:"".concat(window.spaBase,"/home")},b={path:"billing",slot:"ampath-billing-dashboard-slot",title:"Accounting",basePath:"".concat(window.spaBase,"/home")},w="@ampath/esm-dha-workflow-app",v={featureName:"Consulation Workflow",moduleName:w};n(84767),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(9093)]).then(n.bind(n,69093))}),{featureName:"side-nav-workflow-link",moduleName:w}),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(1277),n.e(3654),n.e(6991),n.e(231),n.e(2076),n.e(1925),n.e(9117),n.e(8235),n.e(9091),n.e(9037),n.e(5851),n.e(1826)]).then(n.bind(n,21826))}),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(231),n.e(8235),n.e(8114)]).then(n.bind(n,68235))}),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(231),n.e(2076),n.e(5752),n.e(5015)]).then(n.bind(n,45015))}),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(231),n.e(2076),n.e(5752),n.e(8339)]).then(n.bind(n,88339))}),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(231),n.e(2076),n.e(5752),n.e(1833)]).then(n.bind(n,41833))}),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(231),n.e(2076),n.e(5752),n.e(1729)]).then(n.bind(n,71729))}),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(2076),n.e(7420)]).then(n.bind(n,27420))}),{featureName:"workflow-registry-link",moduleName:w}),(0,r.getSyncLifecycle)(c(o),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(231),n.e(8235),n.e(8114)]).then(n.bind(n,68235))}),v),(0,r.getSyncLifecycle)(c(u),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(1277),n.e(6991),n.e(5851),n.e(2801)]).then(n.bind(n,85851))}),v),(0,r.getSyncLifecycle)(c(d),v),(0,r.getSyncLifecycle)(c(f),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(231),n.e(1925),n.e(9117),n.e(693)]).then(n.bind(n,81321))}),v),(0,r.getSyncLifecycle)(c(p),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(231),n.e(1925),n.e(9117),n.e(5428)]).then(n.bind(n,76744))}),v),(0,r.getSyncLifecycle)(c(h),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(1277),n.e(6991),n.e(5851),n.e(2801)]).then(n.bind(n,85851))}),v),(0,r.getSyncLifecycle)(c(y),v),(0,r.getAsyncLifecycle)((function(){return n.e(8895).then(n.bind(n,8895))}),v),(0,r.getSyncLifecycle)(c(m),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(6264)]).then(n.bind(n,16264))}),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(8558)]).then(n.bind(n,78558))}),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(231),n.e(1925),n.e(9117),n.e(6260)]).then(n.bind(n,46260))}),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(3654),n.e(231),n.e(9091),n.e(9721)]).then(n.bind(n,49091))}),v),(0,r.getSyncLifecycle)(c({path:"service-queue-admin",slot:"service-queue-admin-dashboard-slot",title:"Service Queue Admin",basePath:"dha-workflow"}),v),(0,r.getSyncLifecycle)(c(g),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(9037),n.e(4947)]).then(n.bind(n,19037))}),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(231),n.e(1925),n.e(2021)]).then(n.bind(n,52021))}),v),(0,r.getSyncLifecycle)((0,l.createDashboardLink)({path:"Admissions",slot:"patient-chart-admissions-summary-dashboard-slot",title:"Admissions",icon:"omrs-icon-hospital-bed"}),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(4205)]).then(n.bind(n,64205))}),v),(0,r.getSyncLifecycle)(c(b),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(1277),n.e(8865),n.e(4674)]).then(n.bind(n,4674))}),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(1277),n.e(3654),n.e(8865),n.e(4674),n.e(182)]).then(n.bind(n,70182))}),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(2177),n.e(7199),n.e(231),n.e(2076),n.e(7258)]).then(n.bind(n,67258))}),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(4517)]).then(n.bind(n,54517))}),v)},84767:(e,t,n)=>{var r={"./am.json":[81197,1197],"./en.json":[34300,4300],"./es.json":[93099,3099],"./fr.json":[94055,4055],"./he.json":[84652,4652],"./km.json":[54335,4335]};function o(e){if(!n.o(r,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],o=t[0];return n.e(t[1]).then((()=>n(o)))}o.keys=()=>Object.keys(r),o.id=84767,e.exports=o}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,exports:{}};return o[e].call(n.exports,n,n.exports,a),n.exports}a.m=o,a.c=i,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var o=Object.create(null);a.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>n[e]));return i.default=()=>n,a.d(o,i),o},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,n)=>(a.f[n](e,t),t)),[])),a.u=e=>e+".js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="@ampath/esm-dha-workflow-app:",a.l=(e,t,o,i)=>{if(n[e])n[e].push(t);else{var s,c;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var d=l[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==r+o){s=d;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",r+o),s.src=e),n[e]=[t];var f=(t,r)=>{s.onerror=s.onload=null,clearTimeout(p);var o=n[e];if(delete n[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(r))),t)return t(r)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),c&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{a.S={};var e={},t={};a.I=(n,r)=>{r||(r=[]);var o=t[n];if(o||(o=t[n]={}),!(r.indexOf(o)>=0)){if(r.push(o),e[n])return e[n];a.o(a.S,n)||(a.S[n]={});var i=a.S[n],s="@ampath/esm-dha-workflow-app",c=(e,t,n,r)=>{var o=i[e]=i[e]||{},a=o[t];(!a||!a.loaded&&(!r!=!a.eager?r:s>a.from))&&(o[t]={get:n,from:s,eager:!!r})},l=[];return"default"===n&&(c("@openmrs/esm-framework","8.0.1-pre.3529",(()=>Promise.all([a.e(961),a.e(2364),a.e(2177),a.e(1558),a.e(1856),a.e(231),a.e(2076),a.e(6072),a.e(1997),a.e(1304)]).then((()=>()=>a(41856))))),c("@openmrs/esm-patient-common-lib","11.3.1-pre.9418",(()=>Promise.all([a.e(961),a.e(2364),a.e(2177),a.e(1558),a.e(2054),a.e(231),a.e(2076),a.e(6072),a.e(1997),a.e(1304)]).then((()=>()=>a(32054))))),c("dayjs","1.11.13",(()=>a.e(4353).then((()=>()=>a(74353))))),c("react-i18next","16.0.0",(()=>Promise.all([a.e(7255),a.e(6072)]).then((()=>()=>a(77255))))),c("react-router-dom","6.30.1",(()=>Promise.all([a.e(961),a.e(282),a.e(6072)]).then((()=>()=>a(20282))))),c("react","18.3.1",(()=>a.e(6540).then((()=>()=>a(96540))))),c("rxjs","6.6.7",(()=>a.e(3184).then((()=>()=>a(63184))))),c("swr/immutable","2.4.1",(()=>Promise.all([a.e(2177),a.e(6072),a.e(4225)]).then((()=>()=>a(54225))))),c("swr/infinite","2.4.1",(()=>Promise.all([a.e(2177),a.e(6072),a.e(3041)]).then((()=>()=>a(23041)))))),e[n]=l.length?Promise.all(l).then((()=>e[n]=1)):1}}})(),(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{var e=e=>{var t=e=>e.split(".").map((e=>+e==e?+e:e)),n=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),r=n[1]?t(n[1]):[];return n[2]&&(r.length++,r.push.apply(r,t(n[2]))),n[3]&&(r.push([]),r.push.apply(r,t(n[3]))),r},t=e=>{var n=e[0],r="";if(1===e.length)return"*";if(n+.5){r+=0==n?">=":-1==n?"<":1==n?"^":2==n?"~":n>0?"=":"!=";for(var o=1,i=1;i<e.length;i++)o--,r+="u"==(typeof(s=e[i]))[0]?"-":(o>0?".":"")+(o=2,s);return r}var a=[];for(i=1;i<e.length;i++){var s=e[i];a.push(0===s?"not("+c()+")":1===s?"("+c()+" || "+c()+")":2===s?a.pop()+" "+a.pop():t(s))}return c();function c(){return a.pop().replace(/^\((.+)\)$/,"$1")}},n=(t,r)=>{if(0 in t){r=e(r);var o=t[0],i=o<0;i&&(o=-o-1);for(var a=0,s=1,c=!0;;s++,a++){var l,u,d=s<t.length?(typeof t[s])[0]:"";if(a>=r.length||"o"==(u=(typeof(l=r[a]))[0]))return!c||("u"==d?s>o&&!i:""==d!=i);if("u"==u){if(!c||"u"!=d)return!1}else if(c)if(d==u)if(s<=o){if(l!=t[s])return!1}else{if(i?l>t[s]:l<t[s])return!1;l!=t[s]&&(c=!1)}else if("s"!=d&&"n"!=d){if(i||s<=o)return!1;c=!1,s--}else{if(s<=o||u<d!=i)return!1;c=!1}else"s"!=d&&"n"!=d&&(c=!1,s--)}}var f=[],p=f.pop.bind(f);for(a=1;a<t.length;a++){var h=t[a];f.push(1==h?p()|p():2==h?p()&p():h?n(h,r):!p())}return!!p()},r=(t,n,r)=>{var o=r?(e=>Object.keys(e).reduce(((t,n)=>(e[n].eager&&(t[n]=e[n]),t)),{}))(t[n]):t[n];return Object.keys(o).reduce(((t,n)=>!t||!o[t].loaded&&((t,n)=>{t=e(t),n=e(n);for(var r=0;;){if(r>=t.length)return r<n.length&&"u"!=(typeof n[r])[0];var o=t[r],i=(typeof o)[0];if(r>=n.length)return"u"==i;var a=n[r],s=(typeof a)[0];if(i!=s)return"o"==i&&"n"==s||"s"==s||"u"==i;if("o"!=i&&"u"!=i&&o!=a)return o<a;r++}})(t,n)?n:t),0)},o=(e,t,n)=>n?n():((e,t)=>(e=>{throw new Error(e)})("Shared module "+t+" doesn't exist in shared scope "+e))(e,t),i=(e=>function(t,n,r,o,i){var s=a.I(t);return s&&s.then&&!r?s.then(e.bind(e,t,a.S[t],n,!1,o,i)):e(t,a.S[t],n,r,o,i)})(((e,i,s,c,l,u)=>{if(!((e,t)=>e&&a.o(e,t))(i,s))return o(e,s,u);var d,f,p=r(i,s,c);return n(l,p)||(f=((e,n,r,o)=>"Unsatisfied version "+r+" from "+(r&&e[n][r].from)+" of shared singleton module "+n+" (required "+t(o)+")")(i,s,p,l),"undefined"!=typeof console&&console.warn&&console.warn(f)),(d=i[s][p]).loaded=1,d.get()})),s={},c={25987:()=>i("default","@openmrs/esm-framework",!1,[0],(()=>Promise.all([a.e(961),a.e(2364),a.e(2177),a.e(1558),a.e(1856),a.e(231),a.e(2076),a.e(1997)]).then((()=>()=>a(41856))))),16072:()=>i("default","react",!1,[1,18],(()=>a.e(6540).then((()=>()=>a(96540))))),27114:()=>i("default","react-router-dom",!1,[1,6],(()=>Promise.all([a.e(961),a.e(282)]).then((()=>()=>a(20282))))),51354:()=>i("default","@openmrs/esm-patient-common-lib",!1,[0],(()=>Promise.all([a.e(961),a.e(2364),a.e(2177),a.e(1558),a.e(2054),a.e(231),a.e(2076),a.e(1997)]).then((()=>()=>a(32054))))),70231:()=>i("default","dayjs",!1,[1,1],(()=>a.e(4353).then((()=>()=>a(74353))))),2076:()=>i("default","react-i18next",!1,[1,16],(()=>a.e(7255).then((()=>()=>a(77255))))),44209:()=>i("default","swr/immutable",!1,[1,2],(()=>a.e(6606).then((()=>()=>a(54225))))),53083:()=>i("default","rxjs",!1,[1,6],(()=>a.e(3184).then((()=>()=>a(63184))))),56339:()=>i("default","swr/infinite",!1,[1,2],(()=>a.e(5422).then((()=>()=>a(23041)))))};[25987,16072,27114,51354].forEach((e=>{a.m[e]=t=>{s[e]=0,delete a.c[e];var n=c[e]();if("function"!=typeof n)throw new Error("Shared module is not available for eager consumption: "+e);t.exports=n()}}));var l={231:[70231],1304:[25987,27114],1997:[44209,53083,56339],2076:[2076],6072:[16072],8792:[25987,16072,27114,51354]},u={};a.f.consumes=(e,t)=>{a.o(l,e)&&l[e].forEach((e=>{if(a.o(s,e))return t.push(s[e]);if(!u[e]){var n=t=>{s[e]=0,a.m[e]=n=>{delete a.c[e],n.exports=t()}};u[e]=!0;var r=t=>{delete s[e],a.m[e]=n=>{throw delete a.c[e],t}};try{var o=c[e]();o.then?t.push(s[e]=o.then(n).catch(r)):n(o)}catch(e){r(e)}}}))}})(),(()=>{var e={1304:0,2333:0,6072:0,8792:0};a.f.j=(t,n)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else if(/^(1304|1997|2076|231|6072)$/.test(t))e[t]=0;else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=a.p+a.u(t),s=new Error;a.l(i,(n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,r[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,s,c]=n,l=0;if(i.some((t=>0!==e[t]))){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);c&&c(a)}for(t&&t(n);l<i.length;l++)o=i[l],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=globalThis.webpackChunk_ampath_esm_dha_workflow_app=globalThis.webpackChunk_ampath_esm_dha_workflow_app||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),a.nc=void 0,a(42333)})();
|
|
1
|
+
(()=>{var e,t,n,r,o={42333:(e,t,n)=>{"use strict";n.d(t,{moduleName:()=>w});var r=n(25987),o=(r.Type.ConceptUuid,r.Type.ConceptUuid,r.Type.ConceptUuid,r.Type.ConceptUuid,r.Type.ConceptUuid,r.Type.ConceptUuid,r.Type.ConceptUuid,r.Type.ConceptUuid,r.Type.Array,r.Type.ConceptUuid,r.Type.ConceptUuid,r.Type.ConceptUuid,r.Type.ConceptUuid,r.Type.ConceptUuid,r.Type.ConceptUuid,r.Type.ConceptUuid,r.Type.ConceptUuid,r.Type.String,r.Type.String,r.Type.String,r.Type.String,r.Type.String,r.Type.String,r.Type.String,r.Type.String,r.Type.String,r.Type.String,r.Type.String,r.Type.String,r.Type.Array,r.Type.Array,r.Type.Array,{path:"registry",slot:"client-registry-dashboard-slot",title:"Registry",basePath:"".concat(window.spaBase,"/home")}),i=n(16072),a=n.n(i),s=n(27114),c=function(e){return function(){return a().createElement(s.BrowserRouter,null,a().createElement(r.DashboardExtension,{path:e.path,title:e.title,basePath:e.basePath,icon:e.icon}))}},l=n(51354),u={path:"dashboard",slot:"queue-dashboard-slot",title:"Dashboard",basePath:"".concat(window.spaBase,"/home")},d={path:"dispensing",slot:"dispensing-dashboard-slot",title:"Pharmacy",basePath:"".concat(window.spaBase,"/home")},f={path:"triage",slot:"triage-queue-dashboard-slot",title:"Triage",basePath:"".concat(window.spaBase,"/home")},p={path:"consultation",slot:"consultation-dashboard-slot",title:"Consultation",basePath:"".concat(window.spaBase,"/home")},h={path:"dashboard",slot:"dha-workflow-dashboard-slot",title:"Dashboard",basePath:"".concat(window.spaBase,"/home")},y={path:"accounting",slot:"accounting-dashboard-slot",title:"Accounting",basePath:"".concat(window.spaBase,"/home")},m={path:"bookings",slot:"bookings-dashboard-slot",title:"Bookings",basePath:"".concat(window.spaBase,"/home")},g={path:"admissions-dashboard",slot:"admissions-dashboard-slot",title:"Admissions",basePath:"".concat(window.spaBase,"/home")},b={path:"billing",slot:"ampath-billing-dashboard-slot",title:"Accounting",basePath:"".concat(window.spaBase,"/home")},w="@ampath/esm-dha-workflow-app",v={featureName:"Consulation Workflow",moduleName:w};n(84767),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(9093)]).then(n.bind(n,69093))}),{featureName:"side-nav-workflow-link",moduleName:w}),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(1277),n.e(3654),n.e(6991),n.e(231),n.e(2076),n.e(1925),n.e(9117),n.e(8778),n.e(9091),n.e(9037),n.e(5851),n.e(1826)]).then(n.bind(n,21826))}),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(231),n.e(8778),n.e(8114)]).then(n.bind(n,78778))}),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(231),n.e(2076),n.e(5752),n.e(5015)]).then(n.bind(n,45015))}),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(231),n.e(2076),n.e(5752),n.e(8339)]).then(n.bind(n,88339))}),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(231),n.e(2076),n.e(5752),n.e(1833)]).then(n.bind(n,41833))}),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(231),n.e(2076),n.e(5752),n.e(1729)]).then(n.bind(n,71729))}),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(2076),n.e(7420)]).then(n.bind(n,27420))}),{featureName:"workflow-registry-link",moduleName:w}),(0,r.getSyncLifecycle)(c(o),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(231),n.e(8778),n.e(8114)]).then(n.bind(n,78778))}),v),(0,r.getSyncLifecycle)(c(u),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(1277),n.e(6991),n.e(5851),n.e(2801)]).then(n.bind(n,85851))}),v),(0,r.getSyncLifecycle)(c(d),v),(0,r.getSyncLifecycle)(c(f),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(231),n.e(1925),n.e(9117),n.e(693)]).then(n.bind(n,81321))}),v),(0,r.getSyncLifecycle)(c(p),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(231),n.e(1925),n.e(9117),n.e(5428)]).then(n.bind(n,76744))}),v),(0,r.getSyncLifecycle)(c(h),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(1277),n.e(6991),n.e(5851),n.e(2801)]).then(n.bind(n,85851))}),v),(0,r.getSyncLifecycle)(c(y),v),(0,r.getAsyncLifecycle)((function(){return n.e(8895).then(n.bind(n,8895))}),v),(0,r.getSyncLifecycle)(c(m),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(6264)]).then(n.bind(n,16264))}),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(8558)]).then(n.bind(n,78558))}),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(231),n.e(1925),n.e(9117),n.e(6260)]).then(n.bind(n,46260))}),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(3654),n.e(231),n.e(9091),n.e(9721)]).then(n.bind(n,49091))}),v),(0,r.getSyncLifecycle)(c({path:"service-queue-admin",slot:"service-queue-admin-dashboard-slot",title:"Service Queue Admin",basePath:"dha-workflow"}),v),(0,r.getSyncLifecycle)(c(g),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(9037),n.e(4947)]).then(n.bind(n,19037))}),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(231),n.e(1925),n.e(2021)]).then(n.bind(n,52021))}),v),(0,r.getSyncLifecycle)((0,l.createDashboardLink)({path:"Admissions",slot:"patient-chart-admissions-summary-dashboard-slot",title:"Admissions",icon:"omrs-icon-hospital-bed"}),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(4205)]).then(n.bind(n,64205))}),v),(0,r.getSyncLifecycle)(c(b),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(1277),n.e(8865),n.e(4674)]).then(n.bind(n,4674))}),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(1277),n.e(3654),n.e(8865),n.e(4674),n.e(182)]).then(n.bind(n,70182))}),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(2177),n.e(7199),n.e(231),n.e(2076),n.e(7258)]).then(n.bind(n,67258))}),v),(0,r.getAsyncLifecycle)((function(){return Promise.all([n.e(961),n.e(2364),n.e(4517)]).then(n.bind(n,54517))}),v)},84767:(e,t,n)=>{var r={"./am.json":[81197,1197],"./en.json":[34300,4300],"./es.json":[93099,3099],"./fr.json":[94055,4055],"./he.json":[84652,4652],"./km.json":[54335,4335]};function o(e){if(!n.o(r,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],o=t[0];return n.e(t[1]).then((()=>n(o)))}o.keys=()=>Object.keys(r),o.id=84767,e.exports=o}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,exports:{}};return o[e].call(n.exports,n,n.exports,a),n.exports}a.m=o,a.c=i,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var o=Object.create(null);a.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>n[e]));return i.default=()=>n,a.d(o,i),o},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,n)=>(a.f[n](e,t),t)),[])),a.u=e=>e+".js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="@ampath/esm-dha-workflow-app:",a.l=(e,t,o,i)=>{if(n[e])n[e].push(t);else{var s,c;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var d=l[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==r+o){s=d;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",r+o),s.src=e),n[e]=[t];var f=(t,r)=>{s.onerror=s.onload=null,clearTimeout(p);var o=n[e];if(delete n[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(r))),t)return t(r)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),c&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{a.S={};var e={},t={};a.I=(n,r)=>{r||(r=[]);var o=t[n];if(o||(o=t[n]={}),!(r.indexOf(o)>=0)){if(r.push(o),e[n])return e[n];a.o(a.S,n)||(a.S[n]={});var i=a.S[n],s="@ampath/esm-dha-workflow-app",c=(e,t,n,r)=>{var o=i[e]=i[e]||{},a=o[t];(!a||!a.loaded&&(!r!=!a.eager?r:s>a.from))&&(o[t]={get:n,from:s,eager:!!r})},l=[];return"default"===n&&(c("@openmrs/esm-framework","8.0.1-pre.3529",(()=>Promise.all([a.e(961),a.e(2364),a.e(2177),a.e(1558),a.e(1856),a.e(231),a.e(2076),a.e(6072),a.e(1997),a.e(1304)]).then((()=>()=>a(41856))))),c("@openmrs/esm-patient-common-lib","11.3.1-pre.9418",(()=>Promise.all([a.e(961),a.e(2364),a.e(2177),a.e(1558),a.e(2054),a.e(231),a.e(2076),a.e(6072),a.e(1997),a.e(1304)]).then((()=>()=>a(32054))))),c("dayjs","1.11.13",(()=>a.e(4353).then((()=>()=>a(74353))))),c("react-i18next","16.0.0",(()=>Promise.all([a.e(7255),a.e(6072)]).then((()=>()=>a(77255))))),c("react-router-dom","6.30.1",(()=>Promise.all([a.e(961),a.e(282),a.e(6072)]).then((()=>()=>a(20282))))),c("react","18.3.1",(()=>a.e(6540).then((()=>()=>a(96540))))),c("rxjs","6.6.7",(()=>a.e(3184).then((()=>()=>a(63184))))),c("swr/immutable","2.4.1",(()=>Promise.all([a.e(2177),a.e(6072),a.e(4225)]).then((()=>()=>a(54225))))),c("swr/infinite","2.4.1",(()=>Promise.all([a.e(2177),a.e(6072),a.e(3041)]).then((()=>()=>a(23041)))))),e[n]=l.length?Promise.all(l).then((()=>e[n]=1)):1}}})(),(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{var e=e=>{var t=e=>e.split(".").map((e=>+e==e?+e:e)),n=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),r=n[1]?t(n[1]):[];return n[2]&&(r.length++,r.push.apply(r,t(n[2]))),n[3]&&(r.push([]),r.push.apply(r,t(n[3]))),r},t=e=>{var n=e[0],r="";if(1===e.length)return"*";if(n+.5){r+=0==n?">=":-1==n?"<":1==n?"^":2==n?"~":n>0?"=":"!=";for(var o=1,i=1;i<e.length;i++)o--,r+="u"==(typeof(s=e[i]))[0]?"-":(o>0?".":"")+(o=2,s);return r}var a=[];for(i=1;i<e.length;i++){var s=e[i];a.push(0===s?"not("+c()+")":1===s?"("+c()+" || "+c()+")":2===s?a.pop()+" "+a.pop():t(s))}return c();function c(){return a.pop().replace(/^\((.+)\)$/,"$1")}},n=(t,r)=>{if(0 in t){r=e(r);var o=t[0],i=o<0;i&&(o=-o-1);for(var a=0,s=1,c=!0;;s++,a++){var l,u,d=s<t.length?(typeof t[s])[0]:"";if(a>=r.length||"o"==(u=(typeof(l=r[a]))[0]))return!c||("u"==d?s>o&&!i:""==d!=i);if("u"==u){if(!c||"u"!=d)return!1}else if(c)if(d==u)if(s<=o){if(l!=t[s])return!1}else{if(i?l>t[s]:l<t[s])return!1;l!=t[s]&&(c=!1)}else if("s"!=d&&"n"!=d){if(i||s<=o)return!1;c=!1,s--}else{if(s<=o||u<d!=i)return!1;c=!1}else"s"!=d&&"n"!=d&&(c=!1,s--)}}var f=[],p=f.pop.bind(f);for(a=1;a<t.length;a++){var h=t[a];f.push(1==h?p()|p():2==h?p()&p():h?n(h,r):!p())}return!!p()},r=(t,n,r)=>{var o=r?(e=>Object.keys(e).reduce(((t,n)=>(e[n].eager&&(t[n]=e[n]),t)),{}))(t[n]):t[n];return Object.keys(o).reduce(((t,n)=>!t||!o[t].loaded&&((t,n)=>{t=e(t),n=e(n);for(var r=0;;){if(r>=t.length)return r<n.length&&"u"!=(typeof n[r])[0];var o=t[r],i=(typeof o)[0];if(r>=n.length)return"u"==i;var a=n[r],s=(typeof a)[0];if(i!=s)return"o"==i&&"n"==s||"s"==s||"u"==i;if("o"!=i&&"u"!=i&&o!=a)return o<a;r++}})(t,n)?n:t),0)},o=(e,t,n)=>n?n():((e,t)=>(e=>{throw new Error(e)})("Shared module "+t+" doesn't exist in shared scope "+e))(e,t),i=(e=>function(t,n,r,o,i){var s=a.I(t);return s&&s.then&&!r?s.then(e.bind(e,t,a.S[t],n,!1,o,i)):e(t,a.S[t],n,r,o,i)})(((e,i,s,c,l,u)=>{if(!((e,t)=>e&&a.o(e,t))(i,s))return o(e,s,u);var d,f,p=r(i,s,c);return n(l,p)||(f=((e,n,r,o)=>"Unsatisfied version "+r+" from "+(r&&e[n][r].from)+" of shared singleton module "+n+" (required "+t(o)+")")(i,s,p,l),"undefined"!=typeof console&&console.warn&&console.warn(f)),(d=i[s][p]).loaded=1,d.get()})),s={},c={25987:()=>i("default","@openmrs/esm-framework",!1,[0],(()=>Promise.all([a.e(961),a.e(2364),a.e(2177),a.e(1558),a.e(1856),a.e(231),a.e(2076),a.e(1997)]).then((()=>()=>a(41856))))),16072:()=>i("default","react",!1,[1,18],(()=>a.e(6540).then((()=>()=>a(96540))))),27114:()=>i("default","react-router-dom",!1,[1,6],(()=>Promise.all([a.e(961),a.e(282)]).then((()=>()=>a(20282))))),51354:()=>i("default","@openmrs/esm-patient-common-lib",!1,[0],(()=>Promise.all([a.e(961),a.e(2364),a.e(2177),a.e(1558),a.e(2054),a.e(231),a.e(2076),a.e(1997)]).then((()=>()=>a(32054))))),70231:()=>i("default","dayjs",!1,[1,1],(()=>a.e(4353).then((()=>()=>a(74353))))),2076:()=>i("default","react-i18next",!1,[1,16],(()=>a.e(7255).then((()=>()=>a(77255))))),44209:()=>i("default","swr/immutable",!1,[1,2],(()=>a.e(6606).then((()=>()=>a(54225))))),53083:()=>i("default","rxjs",!1,[1,6],(()=>a.e(3184).then((()=>()=>a(63184))))),56339:()=>i("default","swr/infinite",!1,[1,2],(()=>a.e(5422).then((()=>()=>a(23041)))))};[25987,16072,27114,51354].forEach((e=>{a.m[e]=t=>{s[e]=0,delete a.c[e];var n=c[e]();if("function"!=typeof n)throw new Error("Shared module is not available for eager consumption: "+e);t.exports=n()}}));var l={231:[70231],1304:[25987,27114],1997:[44209,53083,56339],2076:[2076],6072:[16072],8792:[25987,16072,27114,51354]},u={};a.f.consumes=(e,t)=>{a.o(l,e)&&l[e].forEach((e=>{if(a.o(s,e))return t.push(s[e]);if(!u[e]){var n=t=>{s[e]=0,a.m[e]=n=>{delete a.c[e],n.exports=t()}};u[e]=!0;var r=t=>{delete s[e],a.m[e]=n=>{throw delete a.c[e],t}};try{var o=c[e]();o.then?t.push(s[e]=o.then(n).catch(r)):n(o)}catch(e){r(e)}}}))}})(),(()=>{var e={1304:0,2333:0,6072:0,8792:0};a.f.j=(t,n)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else if(/^(1304|1997|2076|231|6072)$/.test(t))e[t]=0;else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=a.p+a.u(t),s=new Error;a.l(i,(n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,r[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,s,c]=n,l=0;if(i.some((t=>0!==e[t]))){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);c&&c(a)}for(t&&t(n);l<i.length;l++)o=i[l],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=globalThis.webpackChunk_ampath_esm_dha_workflow_app=globalThis.webpackChunk_ampath_esm_dha_workflow_app||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),a.nc=void 0,a(42333)})();
|
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{},"pages":[{"component":"root","route":"dha-workflow","online":true,"offline":true}],"extensions":[{"component":"navLinks","name":"side-nav-workflow-links","slot":"dha-workflow-slot","online":true,"offline":true},{"name":"dha-workflow-dashboard-link","component":"dhaWorkflowDashboardLink","slot":"homepage-dashboard-slot","meta":{"name":"dashboard","slot":"dha-workflow-dashboard-slot","title":"Dashboard"},"online":true,"offline":true,"order":0},{"component":"dhaWorkflowDashboard","name":"dashboardExt","slot":"dha-workflow-dashboard-slot"},{"name":"registry-dashboard-link","component":"registryDashboardLink","slot":"homepage-dashboard-slot","privileges":["O3 View Client Registry Dashboard"],"meta":{"name":"registry","slot":"client-registry-dashboard-slot","title":"Registry"},"online":true,"offline":true,"order":1},{"component":"registryExtension","name":"registry","slot":"client-registry-dashboard-slot","privileges":["O3 View Client Registry Dashboard"]},{"name":"triage-dashboard-link","component":"triageDashboardLink","slot":"homepage-dashboard-slot","privileges":["O3 View Triage Dashboard"],"meta":{"name":"triage","slot":"triage-queue-dashboard-slot","title":"Triage"},"online":true,"offline":false},{"component":"triageQueueExtension","name":"triage","slot":"triage-queue-dashboard-slot","privileges":["O3 View Triage Dashboard"]},{"name":"consultation-dashboard-link","component":"consultationDashboardLink","slot":"homepage-dashboard-slot","privileges":["O3 View Consultation Dashboard"],"meta":{"name":"consultation","slot":"consultation-dashboard-slot","title":"Consultation"},"online":true,"offline":false},{"component":"consultationQueue","name":"consultation","slot":"consultation-dashboard-slot","privileges":["O3 View Consultation Dashboard"]},{"name":"mnch-dashboard-link","component":"mnchQueueDashboardLink","slot":"homepage-dashboard-slot","privileges":["O3 View MNCH Dashboard"],"meta":{"name":"mnch","slot":"mnch-dashboard-slot","title":"MNCH"},"online":true,"offline":true},{"component":"MNCHRoot","name":"mnch","slot":"mnch-dashboard-slot","privileges":["O3 View MNCH Dashboard"]},{"name":"pharmacy-dashboard-link","component":"pharmacyDashboardLink","slot":"homepage-dashboard-slot","privileges":["O3 View Pharmacy Dashboard"],"meta":{"name":"dispensing","slot":"dispensing-dashboard-slot","title":"Pharmacy"},"online":true,"offline":true},{"name":"bookings-dashboard-link","component":"bookingsDashboardLink","slot":"homepage-dashboard-slot","privileges":["O3 View Bookings Dashboard"],"meta":{"name":"bookings","slot":"bookings-dashboard-slot","title":"Bookings"},"online":true,"offline":true},{"component":"bookings","name":"bookings","slot":"bookings-dashboard-slot","privileges":["O3 View Bookings Dashboard"]},{"name":"service-queue-admin-dashboard-link","component":"serviceQueuesAdminLink","privileges":["O3 View Service Queue Admin Panel"],"slot":"app-menu-slot","meta":{"name":"service-queue-admin","slot":"service-queue-admin-dashboard-slot","title":"Service Queue Admin"},"online":true,"offline":true},{"component":"serviceQueueAdmin","name":"service-queue-admin","slot":"service-queue-admin-dashboard-slot","privileges":["O3 View Service Queue Admin Panel"]},{"name":"admissions-dashboard-link","component":"admissionsDashboardLink","slot":"homepage-dashboard-slot","privileges":["O3 View Admissions Dashboard"],"meta":{"name":"admissions-dashboard","slot":"admissions-dashboard-slot","title":"Admissions Dashboard"},"online":true,"offline":true},{"component":"admissionsDashboard","name":"admissions-dashboard","slot":"admissions-dashboard-slot","privileges":["O3 View Admissions Dashboard"]},{"component":"serviceQueueBannerComponent","name":"service-queue-banne","slot":"patient-banner-tags-slot"},{"name":"admissions-summary-dashboard","slot":"patient-chart-dashboard-slot","component":"patientChartAdmissionsLink","meta":{"slot":"patient-chart-admissions-summary-dashboard-slot","path":"Admissions","layoutMode":"anchored"},"online":true,"offline":true},{"name":"admission-details","slot":"patient-chart-admissions-summary-dashboard-slot","component":"patientAdmissionSummary","order":1,"meta":{"title":"Admissions","view":"admissions"},"online":true,"offline":true},{"name":"ampath-billing-dashboard-link","component":"billingDashboardLink","slot":"homepage-dashboard-slot","privileges":["O3 View Accounting Dashboard"],"meta":{"name":"billing","slot":"ampath-billing-dashboard-slot","title":"Accounting"},"online":true,"offline":true},{"component":"billingRoot","name":"billing","slot":"ampath-billing-dashboard-slot","privileges":["O3 View Accounting Dashboard"]},{"name":"ampath-billing-checkin-form","slot":"extra-visit-attribute-slot","component":"visitBillingForm"}],"workspaces":[{"name":"create-order-bill-form-workspace","component":"createOrderBillFormWorkspace","title":"Create order Bill","type":"other-form"}],"modals":[{"name":"sign-off-queue-entry-modal","component":"signOffModal"}],"version":"4.0.0-next.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{},"pages":[{"component":"root","route":"dha-workflow","online":true,"offline":true}],"extensions":[{"component":"navLinks","name":"side-nav-workflow-links","slot":"dha-workflow-slot","online":true,"offline":true},{"name":"dha-workflow-dashboard-link","component":"dhaWorkflowDashboardLink","slot":"homepage-dashboard-slot","meta":{"name":"dashboard","slot":"dha-workflow-dashboard-slot","title":"Dashboard"},"online":true,"offline":true,"order":0},{"component":"dhaWorkflowDashboard","name":"dashboardExt","slot":"dha-workflow-dashboard-slot"},{"name":"registry-dashboard-link","component":"registryDashboardLink","slot":"homepage-dashboard-slot","privileges":["O3 View Client Registry Dashboard"],"meta":{"name":"registry","slot":"client-registry-dashboard-slot","title":"Registry"},"online":true,"offline":true,"order":1},{"component":"registryExtension","name":"registry","slot":"client-registry-dashboard-slot","privileges":["O3 View Client Registry Dashboard"]},{"name":"triage-dashboard-link","component":"triageDashboardLink","slot":"homepage-dashboard-slot","privileges":["O3 View Triage Dashboard"],"meta":{"name":"triage","slot":"triage-queue-dashboard-slot","title":"Triage"},"online":true,"offline":false},{"component":"triageQueueExtension","name":"triage","slot":"triage-queue-dashboard-slot","privileges":["O3 View Triage Dashboard"]},{"name":"consultation-dashboard-link","component":"consultationDashboardLink","slot":"homepage-dashboard-slot","privileges":["O3 View Consultation Dashboard"],"meta":{"name":"consultation","slot":"consultation-dashboard-slot","title":"Consultation"},"online":true,"offline":false},{"component":"consultationQueue","name":"consultation","slot":"consultation-dashboard-slot","privileges":["O3 View Consultation Dashboard"]},{"name":"mnch-dashboard-link","component":"mnchQueueDashboardLink","slot":"homepage-dashboard-slot","privileges":["O3 View MNCH Dashboard"],"meta":{"name":"mnch","slot":"mnch-dashboard-slot","title":"MNCH"},"online":true,"offline":true},{"component":"MNCHRoot","name":"mnch","slot":"mnch-dashboard-slot","privileges":["O3 View MNCH Dashboard"]},{"name":"pharmacy-dashboard-link","component":"pharmacyDashboardLink","slot":"homepage-dashboard-slot","privileges":["O3 View Pharmacy Dashboard"],"meta":{"name":"dispensing","slot":"dispensing-dashboard-slot","title":"Pharmacy"},"online":true,"offline":true},{"name":"bookings-dashboard-link","component":"bookingsDashboardLink","slot":"homepage-dashboard-slot","privileges":["O3 View Bookings Dashboard"],"meta":{"name":"bookings","slot":"bookings-dashboard-slot","title":"Bookings"},"online":true,"offline":true},{"component":"bookings","name":"bookings","slot":"bookings-dashboard-slot","privileges":["O3 View Bookings Dashboard"]},{"name":"service-queue-admin-dashboard-link","component":"serviceQueuesAdminLink","privileges":["O3 View Service Queue Admin Panel"],"slot":"app-menu-slot","meta":{"name":"service-queue-admin","slot":"service-queue-admin-dashboard-slot","title":"Service Queue Admin"},"online":true,"offline":true},{"component":"serviceQueueAdmin","name":"service-queue-admin","slot":"service-queue-admin-dashboard-slot","privileges":["O3 View Service Queue Admin Panel"]},{"name":"admissions-dashboard-link","component":"admissionsDashboardLink","slot":"homepage-dashboard-slot","privileges":["O3 View Admissions Dashboard"],"meta":{"name":"admissions-dashboard","slot":"admissions-dashboard-slot","title":"Admissions Dashboard"},"online":true,"offline":true},{"component":"admissionsDashboard","name":"admissions-dashboard","slot":"admissions-dashboard-slot","privileges":["O3 View Admissions Dashboard"]},{"component":"serviceQueueBannerComponent","name":"service-queue-banne","slot":"patient-banner-tags-slot"},{"name":"admissions-summary-dashboard","slot":"patient-chart-dashboard-slot","component":"patientChartAdmissionsLink","meta":{"slot":"patient-chart-admissions-summary-dashboard-slot","path":"Admissions","layoutMode":"anchored"},"online":true,"offline":true},{"name":"admission-details","slot":"patient-chart-admissions-summary-dashboard-slot","component":"patientAdmissionSummary","order":1,"meta":{"title":"Admissions","view":"admissions"},"online":true,"offline":true},{"name":"ampath-billing-dashboard-link","component":"billingDashboardLink","slot":"homepage-dashboard-slot","privileges":["O3 View Accounting Dashboard"],"meta":{"name":"billing","slot":"ampath-billing-dashboard-slot","title":"Accounting"},"online":true,"offline":true},{"component":"billingRoot","name":"billing","slot":"ampath-billing-dashboard-slot","privileges":["O3 View Accounting Dashboard"]},{"name":"ampath-billing-checkin-form","slot":"extra-visit-attribute-slot","component":"visitBillingForm"}],"workspaces":[{"name":"create-order-bill-form-workspace","component":"createOrderBillFormWorkspace","title":"Create order Bill","type":"other-form"}],"modals":[{"name":"sign-off-queue-entry-modal","component":"signOffModal"}],"version":"4.0.0-next.156"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
.clientEligibilityDetailsLayout{
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
row-gap: 10px;
|
|
5
|
+
width: 100%;
|
|
6
|
+
padding: 15px 15px;
|
|
7
|
+
.sectionHeader{
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: row;
|
|
10
|
+
width: 100%;
|
|
11
|
+
}
|
|
12
|
+
.sectionContent{
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
row-gap: 10px;
|
|
16
|
+
width: 100%;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.clientDetails{
|
|
21
|
+
display: grid;
|
|
22
|
+
grid-template-columns: 1fr 1fr;
|
|
23
|
+
gap: 1rem;
|
|
24
|
+
}
|
|
25
|
+
.detailData{
|
|
26
|
+
display: flex;
|
|
27
|
+
gap: 1rem;
|
|
28
|
+
margin-bottom: 0.75rem
|
|
29
|
+
}
|
|
30
|
+
.detailText{
|
|
31
|
+
min-width: 150px;
|
|
32
|
+
}
|
|
33
|
+
.schemeTable{
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: row;
|
|
36
|
+
min-width: 80vw;
|
|
37
|
+
overflow-x: scroll;
|
|
38
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type HieClientEligibility } from "../../types";
|
|
3
|
+
import styles from './eligibility-details.scss';
|
|
4
|
+
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Tag } from "@carbon/react";
|
|
5
|
+
import { getTagType } from "../../../shared/utils/get-tag-type";
|
|
6
|
+
|
|
7
|
+
interface EligibilityDetailsProps{
|
|
8
|
+
hieClientEligibility: HieClientEligibility
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const EligibilityDetails: React.FC<EligibilityDetailsProps> = ({hieClientEligibility})=>{
|
|
12
|
+
return <>
|
|
13
|
+
<div className={styles.clientEligibilityDetailsLayout}>
|
|
14
|
+
<div className={styles.sectionHeader}>
|
|
15
|
+
<h4 className={styles.sectionTitle}>Patient Eligibilty Details</h4>
|
|
16
|
+
</div>
|
|
17
|
+
<div className={styles.sectionContent}>
|
|
18
|
+
<div className={styles.clientDetails}>
|
|
19
|
+
<div>
|
|
20
|
+
<div className={styles.detailData}>
|
|
21
|
+
<strong className={styles.detailText}>Full Name</strong>
|
|
22
|
+
<span>{hieClientEligibility.fullName}</span>
|
|
23
|
+
</div>
|
|
24
|
+
<div className={styles.detailData}>
|
|
25
|
+
<strong className={styles.detailText}>CR No</strong>
|
|
26
|
+
<span>{hieClientEligibility.memberCrNumber}</span>
|
|
27
|
+
</div>
|
|
28
|
+
<div className={styles.detailData}>
|
|
29
|
+
<strong className={styles.detailText}>Status</strong>
|
|
30
|
+
<span>{hieClientEligibility.statusDesc}</span>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
<div className={styles.schemeSection}>
|
|
35
|
+
<div className={styles.sectionHeader}>
|
|
36
|
+
<h4 className={styles.sectionTitle}>Scheme Details</h4>
|
|
37
|
+
</div>
|
|
38
|
+
<div className={styles.schemeTable}>
|
|
39
|
+
<Table>
|
|
40
|
+
<TableHead>
|
|
41
|
+
<TableRow>
|
|
42
|
+
<TableHeader>No</TableHeader>
|
|
43
|
+
<TableHeader>Name</TableHeader>
|
|
44
|
+
<TableHeader>Member Type</TableHeader>
|
|
45
|
+
<TableHeader>Policy</TableHeader>
|
|
46
|
+
<TableHeader>Coverage</TableHeader>
|
|
47
|
+
<TableHeader>Coverage Period</TableHeader>
|
|
48
|
+
<TableHeader>Coverage Status</TableHeader>
|
|
49
|
+
<TableHeader>Coverage Reason</TableHeader>
|
|
50
|
+
<TableHeader>Principal Contributor</TableHeader>
|
|
51
|
+
<TableHeader>Principal Contributor Employment Type</TableHeader>
|
|
52
|
+
</TableRow>
|
|
53
|
+
</TableHead>
|
|
54
|
+
<TableBody>
|
|
55
|
+
{hieClientEligibility.schemes.map((scheme, id) => {
|
|
56
|
+
return (
|
|
57
|
+
<TableRow key={id}>
|
|
58
|
+
<TableCell>{id + 1}</TableCell>
|
|
59
|
+
<TableCell>{scheme.schemeName}</TableCell>
|
|
60
|
+
<TableCell>{scheme.memberType}</TableCell>
|
|
61
|
+
<TableCell>
|
|
62
|
+
{scheme.policy ? (
|
|
63
|
+
<>
|
|
64
|
+
{scheme.policy.number} ({scheme.policy.startDate} - {scheme.policy.endDate})
|
|
65
|
+
</>
|
|
66
|
+
) : (
|
|
67
|
+
<></>
|
|
68
|
+
)}
|
|
69
|
+
</TableCell>
|
|
70
|
+
<TableCell>
|
|
71
|
+
<Tag
|
|
72
|
+
className="some-class"
|
|
73
|
+
size="lg"
|
|
74
|
+
title="Status"
|
|
75
|
+
type={getTagType(scheme.coverage.status)}
|
|
76
|
+
>
|
|
77
|
+
{scheme.coverage.status === '1' ? 'Active' : 'Not Active'}
|
|
78
|
+
</Tag>
|
|
79
|
+
</TableCell>
|
|
80
|
+
<TableCell>
|
|
81
|
+
{scheme.coverage.startDate} - {scheme.coverage.endDate}
|
|
82
|
+
</TableCell>
|
|
83
|
+
<TableCell>{scheme.coverage.message}</TableCell>
|
|
84
|
+
<TableCell>{scheme.coverage.reason}</TableCell>
|
|
85
|
+
<TableCell>
|
|
86
|
+
{scheme.principalContributor.crNumber}
|
|
87
|
+
</TableCell>
|
|
88
|
+
<TableCell>{scheme.principalContributor.employmentType}</TableCell>
|
|
89
|
+
</TableRow>
|
|
90
|
+
);
|
|
91
|
+
})}
|
|
92
|
+
</TableBody>
|
|
93
|
+
</Table>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
</div>
|
|
98
|
+
</>
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export default EligibilityDetails;
|
|
@@ -99,11 +99,6 @@ const EligibilityTags: React.FC<EligibilityTags> = ({ crId, locationUuid }) => {
|
|
|
99
99
|
</div>
|
|
100
100
|
);
|
|
101
101
|
})}
|
|
102
|
-
<div>
|
|
103
|
-
<Button kind="ghost" size="sm" onClick={showEligibilityDetailsModal}>
|
|
104
|
-
View
|
|
105
|
-
</Button>
|
|
106
|
-
</div>
|
|
107
102
|
</>
|
|
108
103
|
) : (
|
|
109
104
|
<div>
|
|
@@ -118,18 +113,6 @@ const EligibilityTags: React.FC<EligibilityTags> = ({ crId, locationUuid }) => {
|
|
|
118
113
|
)}
|
|
119
114
|
</>
|
|
120
115
|
)}
|
|
121
|
-
{displayEligibilityDetailsModal ? (
|
|
122
|
-
<>
|
|
123
|
-
<ClientEligibilityDetailsModal
|
|
124
|
-
onModalClose={handleModalClose}
|
|
125
|
-
onSubmit={handleModalClose}
|
|
126
|
-
open={displayEligibilityDetailsModal}
|
|
127
|
-
hieClientEligibility={clientEligibility}
|
|
128
|
-
/>
|
|
129
|
-
</>
|
|
130
|
-
) : (
|
|
131
|
-
<></>
|
|
132
|
-
)}
|
|
133
116
|
</div>
|
|
134
117
|
</>
|
|
135
118
|
);
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
.clientEligibilityDetailsLayout{
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
row-gap: 10px;
|
|
5
|
-
width: 100%;
|
|
6
|
-
padding: 15px 15px;
|
|
7
|
-
.sectionHeader{
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-direction: row;
|
|
10
|
-
width: 100%;
|
|
11
|
-
}
|
|
12
|
-
.sectionContent{
|
|
13
|
-
display: flex;
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
row-gap: 10px;
|
|
16
|
-
width: 100%;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.clientDetails{
|
|
21
|
-
display: grid;
|
|
22
|
-
grid-template-columns: 1fr 1fr;
|
|
23
|
-
gap: 1rem;
|
|
24
|
-
}
|
|
25
|
-
.detailData{
|
|
26
|
-
display: flex;
|
|
27
|
-
gap: 1rem;
|
|
28
|
-
margin-bottom: 0.75rem
|
|
29
|
-
}
|
|
30
|
-
.detailText{
|
|
31
|
-
min-width: 150px;
|
|
32
|
-
}
|
|
33
|
-
.schemeTable{
|
|
34
|
-
display: flex;
|
|
35
|
-
flex-direction: row;
|
|
36
|
-
min-width: 80vw;
|
|
37
|
-
overflow-x: scroll;
|
|
38
|
-
}
|
|
@@ -3,6 +3,7 @@ import { type HieClientEligibility } from '../../types';
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import styles from './eligibility-details.modal.scss';
|
|
5
5
|
import { getTagType } from '../../../shared/utils/get-tag-type';
|
|
6
|
+
import EligibilityDetails from '../eligibility-details/eligibility-details';
|
|
6
7
|
|
|
7
8
|
interface ClientEligibilityDetailsModalProps {
|
|
8
9
|
hieClientEligibility: HieClientEligibility;
|
|
@@ -32,96 +33,9 @@ const ClientEligibilityDetailsModal: React.FC<ClientEligibilityDetailsModalProps
|
|
|
32
33
|
secondaryButtonText="Cancel"
|
|
33
34
|
>
|
|
34
35
|
<ModalBody>
|
|
35
|
-
<
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</div>
|
|
39
|
-
<div className={styles.sectionContent}>
|
|
40
|
-
<div className={styles.clientDetails}>
|
|
41
|
-
<div>
|
|
42
|
-
<div className={styles.detailData}>
|
|
43
|
-
<strong className={styles.detailText}>Full Name</strong>
|
|
44
|
-
<span>{hieClientEligibility.fullName}</span>
|
|
45
|
-
</div>
|
|
46
|
-
<div className={styles.detailData}>
|
|
47
|
-
<strong className={styles.detailText}>ID Number</strong>
|
|
48
|
-
<span>{hieClientEligibility.requestIdNumber}</span>
|
|
49
|
-
</div>
|
|
50
|
-
<div className={styles.detailData}>
|
|
51
|
-
<strong className={styles.detailText}>CR No</strong>
|
|
52
|
-
<span>{hieClientEligibility.memberCrNumber}</span>
|
|
53
|
-
</div>
|
|
54
|
-
<div className={styles.detailData}>
|
|
55
|
-
<strong className={styles.detailText}>Status</strong>
|
|
56
|
-
<span>{hieClientEligibility.statusDesc}</span>
|
|
57
|
-
</div>
|
|
58
|
-
</div>
|
|
59
|
-
</div>
|
|
60
|
-
<div className={styles.schemeSection}>
|
|
61
|
-
<div className={styles.sectionHeader}>
|
|
62
|
-
<h4 className={styles.sectionTitle}>Scheme Details</h4>
|
|
63
|
-
</div>
|
|
64
|
-
<div className={styles.schemeTable}>
|
|
65
|
-
<Table>
|
|
66
|
-
<TableHead>
|
|
67
|
-
<TableRow>
|
|
68
|
-
<TableHeader>No</TableHeader>
|
|
69
|
-
<TableHeader>Name</TableHeader>
|
|
70
|
-
<TableHeader>Member Type</TableHeader>
|
|
71
|
-
<TableHeader>Policy</TableHeader>
|
|
72
|
-
<TableHeader>Coverage</TableHeader>
|
|
73
|
-
<TableHeader>Coverage Period</TableHeader>
|
|
74
|
-
<TableHeader>Coverage Status</TableHeader>
|
|
75
|
-
<TableHeader>Coverage Reason</TableHeader>
|
|
76
|
-
<TableHeader>Principal Contributor</TableHeader>
|
|
77
|
-
<TableHeader>Principal Contributor Employment Type</TableHeader>
|
|
78
|
-
</TableRow>
|
|
79
|
-
</TableHead>
|
|
80
|
-
<TableBody>
|
|
81
|
-
{hieClientEligibility.schemes.map((scheme, id) => {
|
|
82
|
-
return (
|
|
83
|
-
<TableRow key={id}>
|
|
84
|
-
<TableCell>{id + 1}</TableCell>
|
|
85
|
-
<TableCell>{scheme.schemeName}</TableCell>
|
|
86
|
-
<TableCell>{scheme.memberType}</TableCell>
|
|
87
|
-
<TableCell>
|
|
88
|
-
{scheme.policy ? (
|
|
89
|
-
<>
|
|
90
|
-
{scheme.policy.number} ({scheme.policy.startDate} - {scheme.policy.endDate})
|
|
91
|
-
</>
|
|
92
|
-
) : (
|
|
93
|
-
<></>
|
|
94
|
-
)}
|
|
95
|
-
</TableCell>
|
|
96
|
-
<TableCell>
|
|
97
|
-
<Tag
|
|
98
|
-
className="some-class"
|
|
99
|
-
size="lg"
|
|
100
|
-
title="Status"
|
|
101
|
-
type={getTagType(scheme.coverage.status)}
|
|
102
|
-
>
|
|
103
|
-
{scheme.coverage.status === '1' ? 'Active' : 'Not Active'}
|
|
104
|
-
</Tag>
|
|
105
|
-
</TableCell>
|
|
106
|
-
<TableCell>
|
|
107
|
-
{scheme.coverage.startDate} - {scheme.coverage.endDate}
|
|
108
|
-
</TableCell>
|
|
109
|
-
<TableCell>{scheme.coverage.message}</TableCell>
|
|
110
|
-
<TableCell>{scheme.coverage.reason}</TableCell>
|
|
111
|
-
<TableCell>
|
|
112
|
-
{scheme.principalContributor.crNumber} : {scheme.principalContributor.name},
|
|
113
|
-
{scheme.principalContributor.relationship}
|
|
114
|
-
</TableCell>
|
|
115
|
-
<TableCell>{scheme.principalContributor.employmentType}</TableCell>
|
|
116
|
-
</TableRow>
|
|
117
|
-
);
|
|
118
|
-
})}
|
|
119
|
-
</TableBody>
|
|
120
|
-
</Table>
|
|
121
|
-
</div>
|
|
122
|
-
</div>
|
|
123
|
-
</div>
|
|
124
|
-
</div>
|
|
36
|
+
<EligibilityDetails
|
|
37
|
+
hieClientEligibility={hieClientEligibility}
|
|
38
|
+
/>
|
|
125
39
|
</ModalBody>
|
|
126
40
|
</Modal>
|
|
127
41
|
</>
|