@ampath/esm-dha-workflow-app 4.0.0-next.34 → 4.0.0-next.35
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/246.js +2 -0
- package/dist/246.js.map +1 -0
- package/dist/710.js +1 -1
- package/dist/752.js +1 -1
- package/dist/907.js +1 -1
- package/dist/907.js.map +1 -1
- package/dist/91.js +1 -1
- package/dist/93.js +1 -1
- package/dist/943.js +1 -1
- package/dist/esm-dha-workflow-app.js +1 -1
- package/dist/esm-dha-workflow-app.js.buildmanifest.json +38 -38
- package/dist/main.js +1 -1
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/registry/modal/send-to-triage/send-to-triage.modal.scss +1 -1
- package/src/registry/modal/send-to-triage/send-to-triage.modal.tsx +23 -12
- package/dist/810.js +0 -2
- package/dist/810.js.map +0 -1
- /package/dist/{810.js.LICENSE.txt → 246.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
var _ampath_esm_dha_workflow_app;(()=>{"use strict";var e,r,t,o,n,a,i,l,u,s,f,p,d,h,c,m,v,g,b,w,y,_={23620:(e,r,t)=>{var o={"./start":()=>Promise.all([t.e(987),t.e(91)]).then((()=>()=>t(38091)))},n=(e,r)=>(t.R=r,r=t.o(o,e)?o[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 o="default",n=t.S[o];if(n&&n!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[o]=e,t.I(o,r)}};t.d(r,{get:()=>n,init:()=>a})}},j={};function k(e){var r=j[e];if(void 0!==r)return r.exports;var t=j[e]={id:e,exports:{}};return _[e].call(t.exports,t,t.exports,k),t.exports}k.m=_,k.c=j,k.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return k.d(r,{a:r}),r},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,k.t=function(t,o){if(1&o&&(t=this(t)),8&o)return t;if("object"==typeof t&&t){if(4&o&&t.__esModule)return t;if(16&o&&"function"==typeof t.then)return t}var n=Object.create(null);k.r(n);var a={};e=e||[null,r({}),r([]),r(r)];for(var i=2&o&&t;"object"==typeof i&&!~e.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach((e=>a[e]=()=>t[e]));return a.default=()=>t,k.d(n,a),n},k.d=(e,r)=>{for(var t in r)k.o(r,t)&&!k.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},k.f={},k.e=e=>Promise.all(Object.keys(k.f).reduce(((r,t)=>(k.f[t](e,r),r)),[])),k.u=e=>e+".js",k.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),k.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},o="@ampath/esm-dha-workflow-app:",k.l=(e,r,n,a)=>{if(t[e])t[e].push(r);else{var i,l;if(void 0!==n)for(var u=document.getElementsByTagName("script"),s=0;s<u.length;s++){var f=u[s];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==o+n){i=f;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,k.nc&&i.setAttribute("nonce",k.nc),i.setAttribute("data-webpack",o+n),i.src=e),t[e]=[r];var p=(r,o)=>{i.onerror=i.onload=null,clearTimeout(d);var n=t[e];if(delete t[e],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach((e=>e(o))),r)return r(o)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),l&&document.head.appendChild(i)}},k.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{k.S={};var e={},r={};k.I=(t,o)=>{o||(o=[]);var n=r[t];if(n||(n=r[t]={}),!(o.indexOf(n)>=0)){if(o.push(n),e[t])return e[t];k.o(k.S,t)||(k.S[t]={});var a=k.S[t],i="@ampath/esm-dha-workflow-app",l=(e,r,t,o)=>{var n=a[e]=a[e]||{},l=n[r];(!l||!l.loaded&&(!o!=!l.eager?o:i>l.from))&&(n[r]={get:t,from:i,eager:!!o})},u=[];return"default"===t&&(l("@openmrs/esm-framework","8.0.1-pre.3529",(()=>Promise.all([k.e(961),k.e(
|
|
1
|
+
var _ampath_esm_dha_workflow_app;(()=>{"use strict";var e,r,t,o,n,a,i,l,u,s,f,p,d,h,c,m,v,g,b,w,y,_={23620:(e,r,t)=>{var o={"./start":()=>Promise.all([t.e(987),t.e(91)]).then((()=>()=>t(38091)))},n=(e,r)=>(t.R=r,r=t.o(o,e)?o[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 o="default",n=t.S[o];if(n&&n!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[o]=e,t.I(o,r)}};t.d(r,{get:()=>n,init:()=>a})}},j={};function k(e){var r=j[e];if(void 0!==r)return r.exports;var t=j[e]={id:e,exports:{}};return _[e].call(t.exports,t,t.exports,k),t.exports}k.m=_,k.c=j,k.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return k.d(r,{a:r}),r},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,k.t=function(t,o){if(1&o&&(t=this(t)),8&o)return t;if("object"==typeof t&&t){if(4&o&&t.__esModule)return t;if(16&o&&"function"==typeof t.then)return t}var n=Object.create(null);k.r(n);var a={};e=e||[null,r({}),r([]),r(r)];for(var i=2&o&&t;"object"==typeof i&&!~e.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach((e=>a[e]=()=>t[e]));return a.default=()=>t,k.d(n,a),n},k.d=(e,r)=>{for(var t in r)k.o(r,t)&&!k.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},k.f={},k.e=e=>Promise.all(Object.keys(k.f).reduce(((r,t)=>(k.f[t](e,r),r)),[])),k.u=e=>e+".js",k.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),k.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},o="@ampath/esm-dha-workflow-app:",k.l=(e,r,n,a)=>{if(t[e])t[e].push(r);else{var i,l;if(void 0!==n)for(var u=document.getElementsByTagName("script"),s=0;s<u.length;s++){var f=u[s];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==o+n){i=f;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,k.nc&&i.setAttribute("nonce",k.nc),i.setAttribute("data-webpack",o+n),i.src=e),t[e]=[r];var p=(r,o)=>{i.onerror=i.onload=null,clearTimeout(d);var n=t[e];if(delete t[e],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach((e=>e(o))),r)return r(o)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),l&&document.head.appendChild(i)}},k.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{k.S={};var e={},r={};k.I=(t,o)=>{o||(o=[]);var n=r[t];if(n||(n=r[t]={}),!(o.indexOf(n)>=0)){if(o.push(n),e[t])return e[t];k.o(k.S,t)||(k.S[t]={});var a=k.S[t],i="@ampath/esm-dha-workflow-app",l=(e,r,t,o)=>{var n=a[e]=a[e]||{},l=n[r];(!l||!l.loaded&&(!o!=!l.eager?o:i>l.from))&&(n[r]={get:t,from:i,eager:!!o})},u=[];return"default"===t&&(l("@openmrs/esm-framework","8.0.1-pre.3529",(()=>Promise.all([k.e(961),k.e(246),k.e(104),k.e(710),k.e(72),k.e(76),k.e(231),k.e(114),k.e(83),k.e(987)]).then((()=>()=>k(48710))))),l("dayjs","1.11.13",(()=>k.e(353).then((()=>()=>k(74353))))),l("react-i18next","16.0.0",(()=>Promise.all([k.e(255),k.e(72)]).then((()=>()=>k(77255))))),l("react-router-dom","6.30.1",(()=>Promise.all([k.e(961),k.e(282),k.e(72)]).then((()=>()=>k(20282))))),l("react","18.3.1",(()=>k.e(540).then((()=>()=>k(96540))))),l("rxjs","6.6.7",(()=>k.e(184).then((()=>()=>k(63184)))))),e[t]=u.length?Promise.all(u).then((()=>e[t]=1)):1}}})(),(()=>{var e;k.g.importScripts&&(e=k.g.location+"");var r=k.g.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var o=t.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=t[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),k.p=e})(),n=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),o=t[1]?r(t[1]):[];return t[2]&&(o.length++,o.push.apply(o,r(t[2]))),t[3]&&(o.push([]),o.push.apply(o,r(t[3]))),o},a=(e,r)=>{e=n(e),r=n(r);for(var t=0;;){if(t>=e.length)return t<r.length&&"u"!=(typeof r[t])[0];var o=e[t],a=(typeof o)[0];if(t>=r.length)return"u"==a;var i=r[t],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;t++}},i=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 o=1,n=1;n<e.length;n++)o--,t+="u"==(typeof(l=e[n]))[0]?"-":(o>0?".":"")+(o=2,l);return t}var a=[];for(n=1;n<e.length;n++){var l=e[n];a.push(0===l?"not("+u()+")":1===l?"("+u()+" || "+u()+")":2===l?a.pop()+" "+a.pop():i(l))}return u();function u(){return a.pop().replace(/^\((.+)\)$/,"$1")}},l=(e,r)=>{if(0 in e){r=n(r);var t=e[0],o=t<0;o&&(t=-t-1);for(var a=0,i=1,u=!0;;i++,a++){var s,f,p=i<e.length?(typeof e[i])[0]:"";if(a>=r.length||"o"==(f=(typeof(s=r[a]))[0]))return!u||("u"==p?i>t&&!o:""==p!=o);if("u"==f){if(!u||"u"!=p)return!1}else if(u)if(p==f)if(i<=t){if(s!=e[i])return!1}else{if(o?s>e[i]:s<e[i])return!1;s!=e[i]&&(u=!1)}else if("s"!=p&&"n"!=p){if(o||i<=t)return!1;u=!1,i--}else{if(i<=t||f<p!=o)return!1;u=!1}else"s"!=p&&"n"!=p&&(u=!1,i--)}}var d=[],h=d.pop.bind(d);for(a=1;a<e.length;a++){var c=e[a];d.push(1==c?h()|h():2==c?h()&h():c?l(c,r):!h())}return!!h()},u=(e,r)=>e&&k.o(e,r),s=e=>(e.loaded=1,e.get()),f=e=>Object.keys(e).reduce(((r,t)=>(e[t].eager&&(r[t]=e[t]),r)),{}),p=(e,r,t)=>{var o=t?f(e[r]):e[r];return Object.keys(o).reduce(((e,r)=>!e||!o[e].loaded&&a(e,r)?r:e),0)},d=(e,r,t,o)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+i(o)+")",h=e=>{throw new Error(e)},c=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},m=(e,r,t)=>t?t():((e,r)=>h("Shared module "+r+" doesn't exist in shared scope "+e))(e,r),v=(e=>function(r,t,o,n,a){var i=k.I(r);return i&&i.then&&!o?i.then(e.bind(e,r,k.S[r],t,!1,n,a)):e(r,k.S[r],t,o,n,a)})(((e,r,t,o,n,a)=>{if(!u(r,t))return m(e,t,a);var i=p(r,t,o);return l(n,i)||c(d(r,t,i,n)),s(r[t][i])})),g={},b={16072:()=>v("default","react",!1,[1,18],(()=>k.e(540).then((()=>()=>k(96540))))),2076:()=>v("default","react-i18next",!1,[1,16],(()=>k.e(255).then((()=>()=>k(77255))))),70231:()=>v("default","dayjs",!1,[1,1],(()=>k.e(353).then((()=>()=>k(74353))))),27114:()=>v("default","react-router-dom",!1,[1,6],(()=>k.e(282).then((()=>()=>k(20282))))),53083:()=>v("default","rxjs",!1,[1,6],(()=>k.e(184).then((()=>()=>k(63184))))),25987:()=>v("default","@openmrs/esm-framework",!1,[0],(()=>Promise.all([k.e(961),k.e(246),k.e(104),k.e(710),k.e(72),k.e(76),k.e(231),k.e(114),k.e(83)]).then((()=>()=>k(48710)))))},w={72:[16072],76:[2076],83:[53083],114:[27114],231:[70231],987:[25987]},y={},k.f.consumes=(e,r)=>{k.o(w,e)&&w[e].forEach((e=>{if(k.o(g,e))return r.push(g[e]);if(!y[e]){var t=r=>{g[e]=0,k.m[e]=t=>{delete k.c[e],t.exports=r()}};y[e]=!0;var o=r=>{delete g[e],k.m[e]=t=>{throw delete k.c[e],r}};try{var n=b[e]();n.then?r.push(g[e]=n.then(t).catch(o)):t(n)}catch(e){o(e)}}}))},(()=>{var e={896:0};k.f.j=(r,t)=>{var o=k.o(e,r)?e[r]:void 0;if(0!==o)if(o)t.push(o[2]);else if(/^(114|231|72|76|83|987)$/.test(r))e[r]=0;else{var n=new Promise(((t,n)=>o=e[r]=[t,n]));t.push(o[2]=n);var a=k.p+k.u(r),i=new Error;k.l(a,(t=>{if(k.o(e,r)&&(0!==(o=e[r])&&(e[r]=void 0),o)){var n=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+n+": "+a+")",i.name="ChunkLoadError",i.type=n,i.request=a,o[1](i)}}),"chunk-"+r,r)}};var r=(r,t)=>{var o,n,[a,i,l]=t,u=0;if(a.some((r=>0!==e[r]))){for(o in i)k.o(i,o)&&(k.m[o]=i[o]);l&&l(k)}for(r&&r(t);u<a.length;u++)n=a[u],k.o(e,n)&&e[n]&&e[n][0](),e[n]=0},t=globalThis.webpackChunk_ampath_esm_dha_workflow_app=globalThis.webpackChunk_ampath_esm_dha_workflow_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),k.nc=void 0;var S=k(23620);_ampath_esm_dha_workflow_app=S})();
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
"auxiliaryFiles": [
|
|
130
130
|
"91.js.map"
|
|
131
131
|
],
|
|
132
|
-
"hash": "
|
|
132
|
+
"hash": "30fa78ae12085c2a",
|
|
133
133
|
"childrenByOrder": {}
|
|
134
134
|
},
|
|
135
135
|
{
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
"auxiliaryFiles": [
|
|
154
154
|
"93.js.map"
|
|
155
155
|
],
|
|
156
|
-
"hash": "
|
|
156
|
+
"hash": "03b458dcd0ad6567",
|
|
157
157
|
"childrenByOrder": {}
|
|
158
158
|
},
|
|
159
159
|
{
|
|
@@ -296,6 +296,33 @@
|
|
|
296
296
|
"hash": "a3d3db7d0845cb2e",
|
|
297
297
|
"childrenByOrder": {}
|
|
298
298
|
},
|
|
299
|
+
{
|
|
300
|
+
"rendered": true,
|
|
301
|
+
"initial": false,
|
|
302
|
+
"entry": false,
|
|
303
|
+
"recorded": false,
|
|
304
|
+
"reason": "split chunk (cache group: defaultVendors)",
|
|
305
|
+
"size": 2853932,
|
|
306
|
+
"sizes": {
|
|
307
|
+
"javascript": 2853932
|
|
308
|
+
},
|
|
309
|
+
"names": [],
|
|
310
|
+
"idHints": [
|
|
311
|
+
"vendors"
|
|
312
|
+
],
|
|
313
|
+
"runtime": [
|
|
314
|
+
"@ampath/esm-dha-workflow-app",
|
|
315
|
+
"main"
|
|
316
|
+
],
|
|
317
|
+
"files": [
|
|
318
|
+
"246.js"
|
|
319
|
+
],
|
|
320
|
+
"auxiliaryFiles": [
|
|
321
|
+
"246.js.map"
|
|
322
|
+
],
|
|
323
|
+
"hash": "28d9b7f03aa733fa",
|
|
324
|
+
"childrenByOrder": {}
|
|
325
|
+
},
|
|
299
326
|
{
|
|
300
327
|
"rendered": true,
|
|
301
328
|
"initial": false,
|
|
@@ -560,7 +587,7 @@
|
|
|
560
587
|
"auxiliaryFiles": [
|
|
561
588
|
"710.js.map"
|
|
562
589
|
],
|
|
563
|
-
"hash": "
|
|
590
|
+
"hash": "2e90f30458b1d9b9",
|
|
564
591
|
"childrenByOrder": {}
|
|
565
592
|
},
|
|
566
593
|
{
|
|
@@ -609,7 +636,7 @@
|
|
|
609
636
|
"auxiliaryFiles": [
|
|
610
637
|
"752.js.map"
|
|
611
638
|
],
|
|
612
|
-
"hash": "
|
|
639
|
+
"hash": "3678dcc01b4f9a5a",
|
|
613
640
|
"childrenByOrder": {}
|
|
614
641
|
},
|
|
615
642
|
{
|
|
@@ -637,34 +664,7 @@
|
|
|
637
664
|
"auxiliaryFiles": [
|
|
638
665
|
"main.js.map"
|
|
639
666
|
],
|
|
640
|
-
"hash": "
|
|
641
|
-
"childrenByOrder": {}
|
|
642
|
-
},
|
|
643
|
-
{
|
|
644
|
-
"rendered": true,
|
|
645
|
-
"initial": false,
|
|
646
|
-
"entry": false,
|
|
647
|
-
"recorded": false,
|
|
648
|
-
"reason": "split chunk (cache group: defaultVendors)",
|
|
649
|
-
"size": 2807818,
|
|
650
|
-
"sizes": {
|
|
651
|
-
"javascript": 2807818
|
|
652
|
-
},
|
|
653
|
-
"names": [],
|
|
654
|
-
"idHints": [
|
|
655
|
-
"vendors"
|
|
656
|
-
],
|
|
657
|
-
"runtime": [
|
|
658
|
-
"@ampath/esm-dha-workflow-app",
|
|
659
|
-
"main"
|
|
660
|
-
],
|
|
661
|
-
"files": [
|
|
662
|
-
"810.js"
|
|
663
|
-
],
|
|
664
|
-
"auxiliaryFiles": [
|
|
665
|
-
"810.js.map"
|
|
666
|
-
],
|
|
667
|
-
"hash": "af50cb19783ab0a8",
|
|
667
|
+
"hash": "2706d8655c6784a9",
|
|
668
668
|
"childrenByOrder": {}
|
|
669
669
|
},
|
|
670
670
|
{
|
|
@@ -715,7 +715,7 @@
|
|
|
715
715
|
"auxiliaryFiles": [
|
|
716
716
|
"esm-dha-workflow-app.js.map"
|
|
717
717
|
],
|
|
718
|
-
"hash": "
|
|
718
|
+
"hash": "6e062cdfe933c84f",
|
|
719
719
|
"childrenByOrder": {}
|
|
720
720
|
},
|
|
721
721
|
{
|
|
@@ -724,9 +724,9 @@
|
|
|
724
724
|
"entry": false,
|
|
725
725
|
"recorded": false,
|
|
726
726
|
"reason": "split chunk (cache group: default)",
|
|
727
|
-
"size":
|
|
727
|
+
"size": 156228,
|
|
728
728
|
"sizes": {
|
|
729
|
-
"javascript":
|
|
729
|
+
"javascript": 156228
|
|
730
730
|
},
|
|
731
731
|
"names": [],
|
|
732
732
|
"idHints": [],
|
|
@@ -740,7 +740,7 @@
|
|
|
740
740
|
"auxiliaryFiles": [
|
|
741
741
|
"907.js.map"
|
|
742
742
|
],
|
|
743
|
-
"hash": "
|
|
743
|
+
"hash": "f5ff98719f24babb",
|
|
744
744
|
"childrenByOrder": {}
|
|
745
745
|
},
|
|
746
746
|
{
|
|
@@ -764,7 +764,7 @@
|
|
|
764
764
|
"auxiliaryFiles": [
|
|
765
765
|
"943.js.map"
|
|
766
766
|
],
|
|
767
|
-
"hash": "
|
|
767
|
+
"hash": "1a052c0f42ed7e8f",
|
|
768
768
|
"childrenByOrder": {}
|
|
769
769
|
},
|
|
770
770
|
{
|
|
@@ -812,7 +812,7 @@
|
|
|
812
812
|
],
|
|
813
813
|
"files": [],
|
|
814
814
|
"auxiliaryFiles": [],
|
|
815
|
-
"hash": "
|
|
815
|
+
"hash": "8fdc2d68503de3c1",
|
|
816
816
|
"childrenByOrder": {}
|
|
817
817
|
}
|
|
818
818
|
]
|
package/dist/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var e,r,t,n,o={38091:(e,r,t)=>{"use strict";t.d(r,{moduleName:()=>o});var n=t(25987),o=(n.Type.ConceptUuid,n.Type.ConceptUuid,n.Type.ConceptUuid,n.Type.ConceptUuid,n.Type.ConceptUuid,n.Type.ConceptUuid,n.Type.ConceptUuid,n.Type.ConceptUuid,n.Type.Array,n.Type.ConceptUuid,n.Type.ConceptUuid,n.Type.ConceptUuid,n.Type.ConceptUuid,n.Type.ConceptUuid,n.Type.ConceptUuid,n.Type.ConceptUuid,n.Type.ConceptUuid,n.Type.String,n.Type.String,n.Type.String,"@ampath/esm-dha-workflow-app"),a={featureName:"Consulation Workflow",moduleName:o};t(84767),(0,n.getAsyncLifecycle)((function(){return Promise.all([t.e(961),t.e(
|
|
1
|
+
(()=>{var e,r,t,n,o={38091:(e,r,t)=>{"use strict";t.d(r,{moduleName:()=>o});var n=t(25987),o=(n.Type.ConceptUuid,n.Type.ConceptUuid,n.Type.ConceptUuid,n.Type.ConceptUuid,n.Type.ConceptUuid,n.Type.ConceptUuid,n.Type.ConceptUuid,n.Type.ConceptUuid,n.Type.Array,n.Type.ConceptUuid,n.Type.ConceptUuid,n.Type.ConceptUuid,n.Type.ConceptUuid,n.Type.ConceptUuid,n.Type.ConceptUuid,n.Type.ConceptUuid,n.Type.ConceptUuid,n.Type.String,n.Type.String,n.Type.String,"@ampath/esm-dha-workflow-app"),a={featureName:"Consulation Workflow",moduleName:o};t(84767),(0,n.getAsyncLifecycle)((function(){return Promise.all([t.e(961),t.e(246),t.e(72),t.e(93)]).then(t.bind(t,69093))}),{featureName:"side-nav-workflow-link",moduleName:o}),(0,n.getAsyncLifecycle)((function(){return Promise.all([t.e(961),t.e(246),t.e(104),t.e(72),t.e(76),t.e(231),t.e(114),t.e(907),t.e(943)]).then(t.bind(t,76943))}),a),(0,n.getAsyncLifecycle)((function(){return Promise.all([t.e(961),t.e(246),t.e(72),t.e(114),t.e(907),t.e(709)]).then(t.bind(t,28907))}),a),(0,n.getAsyncLifecycle)((function(){return Promise.all([t.e(961),t.e(246),t.e(104),t.e(72),t.e(76),t.e(231),t.e(752),t.e(15)]).then(t.bind(t,45015))}),a),(0,n.getAsyncLifecycle)((function(){return Promise.all([t.e(961),t.e(246),t.e(104),t.e(72),t.e(76),t.e(231),t.e(752),t.e(339)]).then(t.bind(t,88339))}),a),(0,n.getAsyncLifecycle)((function(){return Promise.all([t.e(961),t.e(246),t.e(104),t.e(72),t.e(76),t.e(231),t.e(752),t.e(833)]).then(t.bind(t,41833))}),a),(0,n.getAsyncLifecycle)((function(){return Promise.all([t.e(961),t.e(246),t.e(104),t.e(72),t.e(76),t.e(231),t.e(752),t.e(729)]).then(t.bind(t,71729))}),a),(0,n.getAsyncLifecycle)((function(){return Promise.all([t.e(72),t.e(76),t.e(420)]).then(t.bind(t,27420))}),{featureName:"workflow-registry-link",moduleName:o})},84767:(e,r,t)=>{var n={"./am.json":[81197,197],"./en.json":[34300,300],"./es.json":[93099,99],"./fr.json":[94055,55],"./he.json":[84652,652],"./km.json":[54335,335]};function o(e){if(!t.o(n,e))return Promise.resolve().then((()=>{var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}));var r=n[e],o=r[0];return t.e(r[1]).then((()=>t(o)))}o.keys=()=>Object.keys(n),o.id=84767,e.exports=o}},a={};function i(e){var r=a[e];if(void 0!==r)return r.exports;var t=a[e]={id:e,exports:{}};return o[e].call(t.exports,t,t.exports,i),t.exports}i.m=o,i.c=a,i.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return i.d(r,{a:r}),r},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(t,n){if(1&n&&(t=this(t)),8&n)return t;if("object"==typeof t&&t){if(4&n&&t.__esModule)return t;if(16&n&&"function"==typeof t.then)return t}var o=Object.create(null);i.r(o);var a={};e=e||[null,r({}),r([]),r(r)];for(var u=2&n&&t;"object"==typeof u&&!~e.indexOf(u);u=r(u))Object.getOwnPropertyNames(u).forEach((e=>a[e]=()=>t[e]));return a.default=()=>t,i.d(o,a),o},i.d=(e,r)=>{for(var t in r)i.o(r,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((r,t)=>(i.f[t](e,r),r)),[])),i.u=e=>e+".js",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},n="@ampath/esm-dha-workflow-app:",i.l=(e,r,o,a)=>{if(t[e])t[e].push(r);else{var u,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),p=0;p<c.length;p++){var s=c[p];if(s.getAttribute("src")==e||s.getAttribute("data-webpack")==n+o){u=s;break}}u||(l=!0,(u=document.createElement("script")).charset="utf-8",u.timeout=120,i.nc&&u.setAttribute("nonce",i.nc),u.setAttribute("data-webpack",n+o),u.src=e),t[e]=[r];var f=(r,n)=>{u.onerror=u.onload=null,clearTimeout(d);var o=t[e];if(delete t[e],u.parentNode&&u.parentNode.removeChild(u),o&&o.forEach((e=>e(n))),r)return r(n)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:u}),12e4);u.onerror=f.bind(null,u.onerror),u.onload=f.bind(null,u.onload),l&&document.head.appendChild(u)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{i.S={};var e={},r={};i.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];i.o(i.S,t)||(i.S[t]={});var a=i.S[t],u="@ampath/esm-dha-workflow-app",l=(e,r,t,n)=>{var o=a[e]=a[e]||{},i=o[r];(!i||!i.loaded&&(!n!=!i.eager?n:u>i.from))&&(o[r]={get:t,from:u,eager:!!n})},c=[];return"default"===t&&(l("@openmrs/esm-framework","8.0.1-pre.3529",(()=>Promise.all([i.e(961),i.e(246),i.e(104),i.e(710),i.e(72),i.e(76),i.e(231),i.e(114),i.e(83),i.e(987)]).then((()=>()=>i(48710))))),l("dayjs","1.11.13",(()=>i.e(353).then((()=>()=>i(74353))))),l("react-i18next","16.0.0",(()=>Promise.all([i.e(255),i.e(72)]).then((()=>()=>i(77255))))),l("react-router-dom","6.30.1",(()=>Promise.all([i.e(961),i.e(282),i.e(72)]).then((()=>()=>i(20282))))),l("react","18.3.1",(()=>i.e(540).then((()=>()=>i(96540))))),l("rxjs","6.6.7",(()=>i.e(184).then((()=>()=>i(63184)))))),e[t]=c.length?Promise.all(c).then((()=>e[t]=1)):1}}})(),(()=>{var e;i.g.importScripts&&(e=i.g.location+"");var r=i.g.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e})(),(()=>{var e=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},r=e=>{var t=e[0],n="";if(1===e.length)return"*";if(t+.5){n+=0==t?">=":-1==t?"<":1==t?"^":2==t?"~":t>0?"=":"!=";for(var o=1,a=1;a<e.length;a++)o--,n+="u"==(typeof(u=e[a]))[0]?"-":(o>0?".":"")+(o=2,u);return n}var i=[];for(a=1;a<e.length;a++){var u=e[a];i.push(0===u?"not("+l()+")":1===u?"("+l()+" || "+l()+")":2===u?i.pop()+" "+i.pop():r(u))}return l();function l(){return i.pop().replace(/^\((.+)\)$/,"$1")}},t=(r,n)=>{if(0 in r){n=e(n);var o=r[0],a=o<0;a&&(o=-o-1);for(var i=0,u=1,l=!0;;u++,i++){var c,p,s=u<r.length?(typeof r[u])[0]:"";if(i>=n.length||"o"==(p=(typeof(c=n[i]))[0]))return!l||("u"==s?u>o&&!a:""==s!=a);if("u"==p){if(!l||"u"!=s)return!1}else if(l)if(s==p)if(u<=o){if(c!=r[u])return!1}else{if(a?c>r[u]:c<r[u])return!1;c!=r[u]&&(l=!1)}else if("s"!=s&&"n"!=s){if(a||u<=o)return!1;l=!1,u--}else{if(u<=o||p<s!=a)return!1;l=!1}else"s"!=s&&"n"!=s&&(l=!1,u--)}}var f=[],d=f.pop.bind(f);for(i=1;i<r.length;i++){var h=r[i];f.push(1==h?d()|d():2==h?d()&d():h?t(h,n):!d())}return!!d()},n=(r,t,n)=>{var o=n?(e=>Object.keys(e).reduce(((r,t)=>(e[t].eager&&(r[t]=e[t]),r)),{}))(r[t]):r[t];return Object.keys(o).reduce(((r,t)=>!r||!o[r].loaded&&((r,t)=>{r=e(r),t=e(t);for(var n=0;;){if(n>=r.length)return n<t.length&&"u"!=(typeof t[n])[0];var o=r[n],a=(typeof o)[0];if(n>=t.length)return"u"==a;var i=t[n],u=(typeof i)[0];if(a!=u)return"o"==a&&"n"==u||"s"==u||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;n++}})(r,t)?t:r),0)},o=(e,r,t)=>t?t():((e,r)=>(e=>{throw new Error(e)})("Shared module "+r+" doesn't exist in shared scope "+e))(e,r),a=(e=>function(r,t,n,o,a){var u=i.I(r);return u&&u.then&&!n?u.then(e.bind(e,r,i.S[r],t,!1,o,a)):e(r,i.S[r],t,n,o,a)})(((e,a,u,l,c,p)=>{if(!((e,r)=>e&&i.o(e,r))(a,u))return o(e,u,p);var s,f,d=n(a,u,l);return t(c,d)||(f=((e,t,n,o)=>"Unsatisfied version "+n+" from "+(n&&e[t][n].from)+" of shared singleton module "+t+" (required "+r(o)+")")(a,u,d,c),"undefined"!=typeof console&&console.warn&&console.warn(f)),(s=a[u][d]).loaded=1,s.get()})),u={},l={25987:()=>a("default","@openmrs/esm-framework",!1,[0],(()=>Promise.all([i.e(961),i.e(246),i.e(104),i.e(710),i.e(72),i.e(76),i.e(231),i.e(114),i.e(83)]).then((()=>()=>i(48710))))),16072:()=>a("default","react",!1,[1,18],(()=>i.e(540).then((()=>()=>i(96540))))),2076:()=>a("default","react-i18next",!1,[1,16],(()=>i.e(255).then((()=>()=>i(77255))))),70231:()=>a("default","dayjs",!1,[1,1],(()=>i.e(353).then((()=>()=>i(74353))))),27114:()=>a("default","react-router-dom",!1,[1,6],(()=>i.e(282).then((()=>()=>i(20282))))),53083:()=>a("default","rxjs",!1,[1,6],(()=>i.e(184).then((()=>()=>i(63184)))))};[25987].forEach((e=>{i.m[e]=r=>{u[e]=0,delete i.c[e];var t=l[e]();if("function"!=typeof t)throw new Error("Shared module is not available for eager consumption: "+e);r.exports=t()}}));var c={72:[16072],76:[2076],83:[53083],114:[27114],231:[70231],792:[25987],987:[25987]},p={};i.f.consumes=(e,r)=>{i.o(c,e)&&c[e].forEach((e=>{if(i.o(u,e))return r.push(u[e]);if(!p[e]){var t=r=>{u[e]=0,i.m[e]=t=>{delete i.c[e],t.exports=r()}};p[e]=!0;var n=r=>{delete u[e],i.m[e]=t=>{throw delete i.c[e],r}};try{var o=l[e]();o.then?r.push(u[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}}))}})(),(()=>{var e={91:0,792:0,987:0};i.f.j=(r,t)=>{var n=i.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(114|231|72|76|83|987)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=i.p+i.u(r),u=new Error;i.l(a,(t=>{if(i.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;u.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",u.name="ChunkLoadError",u.type=o,u.request=a,n[1](u)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,u,l]=t,c=0;if(a.some((r=>0!==e[r]))){for(n in u)i.o(u,n)&&(i.m[n]=u[n]);l&&l(i)}for(r&&r(t);c<a.length;c++)o=a[c],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=globalThis.webpackChunk_ampath_esm_dha_workflow_app=globalThis.webpackChunk_ampath_esm_dha_workflow_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),i.nc=void 0,i(38091)})();
|
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{},"pages":[{"component":"root","route":"home","online":true,"offline":true}],"extensions":[{"component":"workflowRegistryLink","name":"workflow-registry-link","slot":"app-menu-slot","online":true,"offline":true},{"component":"navLinks","name":"side-nav-workflow-links","slot":"dha-workflow-slot","online":true,"offline":true},{"name":"metrics-card-patients-in-waiting","component":"waitingPatientsExtension","slot":"clinic-metrics-slot","order":1},{"name":"metrics-card-patients-attended-to","component":"attendedToPatientsExtension","slot":"clinic-metrics-slot","order":2},{"name":"metrics-card-patients-in-waiting","component":"triageWaitingPatientsExtension","slot":"triage-metrics-slot","order":1},{"name":"metrics-card-patients-attended-to","component":"triageAttendedToPatientsExtension","slot":"triage-metrics-slot","order":2}],"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":"home","online":true,"offline":true}],"extensions":[{"component":"workflowRegistryLink","name":"workflow-registry-link","slot":"app-menu-slot","online":true,"offline":true},{"component":"navLinks","name":"side-nav-workflow-links","slot":"dha-workflow-slot","online":true,"offline":true},{"name":"metrics-card-patients-in-waiting","component":"waitingPatientsExtension","slot":"clinic-metrics-slot","order":1},{"name":"metrics-card-patients-attended-to","component":"attendedToPatientsExtension","slot":"clinic-metrics-slot","order":2},{"name":"metrics-card-patients-in-waiting","component":"triageWaitingPatientsExtension","slot":"triage-metrics-slot","order":1},{"name":"metrics-card-patients-attended-to","component":"triageAttendedToPatientsExtension","slot":"triage-metrics-slot","order":2}],"modals":[{"name":"sign-off-queue-entry-modal","component":"signOffModal"}],"version":"4.0.0-next.35"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import React, { useEffect, useState } from 'react';
|
|
1
|
+
import React, { useEffect, useMemo, useState } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Button,
|
|
4
4
|
Checkbox,
|
|
5
|
+
ComboBox,
|
|
5
6
|
InlineLoading,
|
|
6
7
|
Modal,
|
|
7
8
|
ModalBody,
|
|
@@ -15,7 +16,7 @@ import {
|
|
|
15
16
|
TableRow,
|
|
16
17
|
} from '@carbon/react';
|
|
17
18
|
import styles from './send-to-triage.modal.scss';
|
|
18
|
-
import { type Patient, useVisitTypes, useSession, showSnackbar } from '@openmrs/esm-framework';
|
|
19
|
+
import { type Patient, useVisitTypes, useSession, showSnackbar, type VisitType } from '@openmrs/esm-framework';
|
|
19
20
|
import { type HieClient, type CreateVisitDto, type QueueEntryDto, type ServiceQueue } from '../../types';
|
|
20
21
|
import { createQueueEntry, fetchServiceQueuesByLocationUuid } from '../../../resources/queue.resource';
|
|
21
22
|
import { QUEUE_PRIORITIES_UUIDS, QUEUE_STATUS_UUIDS } from '../../../shared/constants/concepts';
|
|
@@ -49,6 +50,7 @@ const SendToTriageModal: React.FC<SendToTriageModalProps> = ({
|
|
|
49
50
|
const visitTypes = useVisitTypes();
|
|
50
51
|
const session = useSession();
|
|
51
52
|
const locationUuid = session.sessionLocation.uuid;
|
|
53
|
+
const visitTypeOptions = useMemo(() => generateVisitTypeOptions(), [visitTypes]);
|
|
52
54
|
useEffect(() => {
|
|
53
55
|
getServiceQueues();
|
|
54
56
|
}, [patients]);
|
|
@@ -109,8 +111,8 @@ const SendToTriageModal: React.FC<SendToTriageModalProps> = ({
|
|
|
109
111
|
setServiceQueues(resp.results);
|
|
110
112
|
}
|
|
111
113
|
};
|
|
112
|
-
const visitTypeChangeHandler = (
|
|
113
|
-
const vt =
|
|
114
|
+
const visitTypeChangeHandler = (selectedVisitType: { selectedItem: { id: string; text: string } }) => {
|
|
115
|
+
const vt = selectedVisitType.selectedItem.id;
|
|
114
116
|
setSelectedVisitType(vt);
|
|
115
117
|
};
|
|
116
118
|
const serviceChangeHandler = ($event: any) => {
|
|
@@ -168,6 +170,15 @@ const SendToTriageModal: React.FC<SendToTriageModalProps> = ({
|
|
|
168
170
|
});
|
|
169
171
|
};
|
|
170
172
|
|
|
173
|
+
function generateVisitTypeOptions() {
|
|
174
|
+
return visitTypes.map((vt: VisitType) => {
|
|
175
|
+
return {
|
|
176
|
+
id: vt.uuid,
|
|
177
|
+
text: vt.display,
|
|
178
|
+
};
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
|
|
171
182
|
return (
|
|
172
183
|
<>
|
|
173
184
|
<Modal
|
|
@@ -184,7 +195,7 @@ const SendToTriageModal: React.FC<SendToTriageModalProps> = ({
|
|
|
184
195
|
<div className={styles.sectionHeader}>
|
|
185
196
|
<h4 className={styles.sectionTitle}>Send To Triage</h4>
|
|
186
197
|
</div>
|
|
187
|
-
{patients.length
|
|
198
|
+
{patients.length === 0 ? (
|
|
188
199
|
<div className={styles.sectionContent}>
|
|
189
200
|
<div className={styles.patientSelect}>
|
|
190
201
|
<Table>
|
|
@@ -213,13 +224,13 @@ const SendToTriageModal: React.FC<SendToTriageModalProps> = ({
|
|
|
213
224
|
<div className={styles.formSection}>
|
|
214
225
|
<div className={styles.formRow}>
|
|
215
226
|
<div className={styles.formControl}>
|
|
216
|
-
<
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
227
|
+
<ComboBox
|
|
228
|
+
onChange={visitTypeChangeHandler}
|
|
229
|
+
id="visit-type-combobox"
|
|
230
|
+
items={visitTypeOptions}
|
|
231
|
+
itemToString={(item) => (item ? item.text : '')}
|
|
232
|
+
titleText="Select a Visit Type"
|
|
233
|
+
/>
|
|
223
234
|
</div>
|
|
224
235
|
<div className={styles.formControl}>
|
|
225
236
|
<Select id="service" labelText="Select a Service" onChange={serviceChangeHandler}>
|