@openmrs/esm-fast-data-entry-app 1.0.0-pre.17 → 1.0.0-pre.23
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/147.js +2 -0
- package/dist/{767.js.LICENSE.txt → 147.js.LICENSE.txt} +0 -0
- package/dist/247.js +1 -0
- package/dist/508.js +1 -0
- package/dist/536.js +2 -0
- package/dist/{338.js.LICENSE.txt → 536.js.LICENSE.txt} +0 -0
- package/dist/574.js +1 -1
- package/dist/595.js +1 -1
- package/dist/595.js.LICENSE.txt +2 -0
- package/dist/634.js +2 -0
- package/dist/634.js.LICENSE.txt +5 -0
- package/dist/671.js +1 -0
- package/dist/804.js +1 -1
- package/dist/906.js +1 -2
- package/dist/openmrs-esm-fast-data-entry-app.js +1 -1
- package/dist/openmrs-esm-fast-data-entry-app.js.buildmanifest.json +74 -113
- package/dist/openmrs-esm-fast-data-entry-app.old +1 -1
- package/package.json +1 -3
- package/src/FormBootstrap.tsx +142 -0
- package/src/Root.tsx +4 -4
- package/src/empty-state/EmptyDataIllustration.tsx +51 -0
- package/src/empty-state/EmptyState.tsx +29 -0
- package/src/empty-state/styles.scss +55 -0
- package/src/form-entry-workflow/FormEntryWorkflow.tsx +98 -0
- package/src/form-entry-workflow/index.ts +3 -0
- package/src/form-entry-workflow/styles.scss +59 -0
- package/src/forms-page/FormsPage.tsx +54 -0
- package/src/forms-page/index.ts +3 -0
- package/src/forms-page/styles.scss +11 -0
- package/src/{forms → forms-table}/FormsTable.tsx +51 -23
- package/src/forms-table/index.ts +3 -0
- package/src/forms-table/styles.scss +20 -0
- package/src/hooks/index.ts +4 -0
- package/src/hooks/useGetAllForms.ts +31 -0
- package/src/{forms → hooks}/useGetPatient.ts +0 -0
- package/src/{forms/PatientInfo.test.tsx → patient-banner/PatientBanner.test.tsx} +3 -3
- package/src/{forms/PatientInfo.tsx → patient-banner/PatientBanner.tsx} +2 -2
- package/src/patient-banner/index.ts +3 -0
- package/src/{forms/patient-info.scss → patient-banner/styles.scss} +0 -0
- package/src/{forms → patient-card}/PatientCard.tsx +1 -1
- package/src/patient-card/index.ts +3 -0
- package/src/patient-search-header/PatientSearchHeader.tsx +49 -0
- package/src/patient-search-header/index.ts +3 -0
- package/src/patient-search-header/styles.scss +17 -0
- package/translations/en.json +13 -4
- package/dist/338.js +0 -2
- package/dist/350.js +0 -1
- package/dist/418.js +0 -1
- package/dist/482.js +0 -1
- package/dist/666.js +0 -1
- package/dist/767.js +0 -2
- package/dist/906.js.LICENSE.txt +0 -27
- package/src/FormEntry.tsx +0 -42
- package/src/Loader.tsx +0 -16
- package/src/forms/FormWorkflow.tsx +0 -135
- package/src/forms/FormsRoot.tsx +0 -73
- package/src/forms/mockData.ts +0 -20
- package/src/forms/styles.scss +0 -13
- package/src/loader.scss +0 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register("@openmrs/esm-fast-data-entry-app",[],function(a,b){var c=void 0;return{execute:function(){a((()=>{function g(a){var b=m[a];if(void 0!==b)return b.exports;var c=m[a]={id:a,loaded:!1,exports:{}};return G[a].call(c.exports,c,c.exports,g),c.loaded=!0,c.exports}var j,k,q,w,x,y,z,A,B,C,r,D,E,F,G={1858:(a,b,c)=>{(0,c(2722).s)(1)},2722:(a,b,c)=>{const d=c(3905).R;b.s=function(a){if(a||(a=1),!c.y.meta||!c.y.meta.url)throw console.error("__system_context__",c.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");c.p=d(c.y.meta.url,a)}},5356:(a,b,c)=>{c(1858)},3905:(a,b)=>{b.R=function(b,c){var d=document.createElement("a");d.href=b;for(var e="/"===d.pathname[0]?d.pathname:"/"+d.pathname,f=0,g=e.length;f!==c&&0<=g;)"/"===e[--g]&&f++;if(f!==c)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+c+") is greater than the number of directories ("+f+") in the URL path "+b);var h=e.slice(0,g+1);return d.protocol+"//"+d.host+h},Number.isInteger},6751:(b,d,f)=>{var g={app:()=>(c||((self.webpackChunk_openmrs_esm_fast_data_entry_app=self.webpackChunk_openmrs_esm_fast_data_entry_app||[]).push([[132],{8132:(b,c,d)=>{function e(){var a={featureName:"fast-data-entry",moduleName:"@openmrs/esm-fast-data-entry"};return(0,f.defineConfigSchema)("@openmrs/esm-fast-data-entry",g),(0,f.registerBreadcrumbs)([{path:"".concat(window.spaBase,"/forms"),title:"Forms",parent:"".concat(window.spaBase,"/home")}]),{pages:[{load:(0,f.getAsyncLifecycle)(function(){return Promise.all([d.e(211),d.e(804)]).then(d.bind(d,9804))},a),route:"forms"}],extensions:[{name:"forms-app-link",slot:"app-menu-slot",load:(0,f.getAsyncLifecycle)(function(){return Promise.all([d.e(211),d.e(397),d.e(776)]).then(d.bind(d,5776))},a),online:!0,offline:!0}]}}d.r(c),d.d(c,{backendDependencies:()=>h,importTranslation:()=>a,setupOpenMRS:()=>e,assets:()=>["
|
|
1
|
+
System.register("@openmrs/esm-fast-data-entry-app",[],function(a,b){var c=void 0;return{execute:function(){a((()=>{function g(a){var b=m[a];if(void 0!==b)return b.exports;var c=m[a]={id:a,loaded:!1,exports:{}};return G[a].call(c.exports,c,c.exports,g),c.loaded=!0,c.exports}var j,k,q,w,x,y,z,A,B,C,r,D,E,F,G={1858:(a,b,c)=>{(0,c(2722).s)(1)},2722:(a,b,c)=>{const d=c(3905).R;b.s=function(a){if(a||(a=1),!c.y.meta||!c.y.meta.url)throw console.error("__system_context__",c.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");c.p=d(c.y.meta.url,a)}},5356:(a,b,c)=>{c(1858)},3905:(a,b)=>{b.R=function(b,c){var d=document.createElement("a");d.href=b;for(var e="/"===d.pathname[0]?d.pathname:"/"+d.pathname,f=0,g=e.length;f!==c&&0<=g;)"/"===e[--g]&&f++;if(f!==c)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+c+") is greater than the number of directories ("+f+") in the URL path "+b);var h=e.slice(0,g+1);return d.protocol+"//"+d.host+h},Number.isInteger},6751:(b,d,f)=>{var g={app:()=>(c||((self.webpackChunk_openmrs_esm_fast_data_entry_app=self.webpackChunk_openmrs_esm_fast_data_entry_app||[]).push([[132],{8132:(b,c,d)=>{function e(){var a={featureName:"fast-data-entry",moduleName:"@openmrs/esm-fast-data-entry"};return(0,f.defineConfigSchema)("@openmrs/esm-fast-data-entry",g),(0,f.registerBreadcrumbs)([{path:"".concat(window.spaBase,"/forms"),title:"Forms",parent:"".concat(window.spaBase,"/home")}]),{pages:[{load:(0,f.getAsyncLifecycle)(function(){return Promise.all([d.e(211),d.e(804)]).then(d.bind(d,9804))},a),route:"forms"}],extensions:[{name:"forms-app-link",slot:"app-menu-slot",load:(0,f.getAsyncLifecycle)(function(){return Promise.all([d.e(211),d.e(397),d.e(776)]).then(d.bind(d,5776))},a),online:!0,offline:!0}]}}d.r(c),d.d(c,{backendDependencies:()=>h,importTranslation:()=>a,setupOpenMRS:()=>e,assets:()=>["147.js","247.js","294.js","openmrs-esm-fast-data-entry-app.js","508.js","536.js","574.js","595.js","634.js","671.js","776.js","804.js","906.js","935.js"]});var f=d(311),g={formCategories:{_type:f.Type.Array,_description:"Organize forms into categories. A form can belong to multiple categories.",_elements:{name:{_type:f.Type.String,_description:"Category name"},forms:{_type:f.Type.Array,_description:"List of forms for this category.",_elements:{formUUID:{_type:f.Type.UUID,_description:"UUID of form"},name:{_type:f.Type.String,_description:"Name of form"}}}},_default:[{name:"ICRC Forms",forms:[{formUUID:"0cefb866-110c-4f16-af58-560932a1db1f",name:"Adult Triage"}]},{name:"Distress Scales",forms:[{formUUID:"9f26aad4-244a-46ca-be49-1196df1a8c9a",name:"POC Sample Form 1"}]}]},formCategoriesToShow:{_type:f.Type.Array,_description:"Forms to show by default on the forms app home page.",_elements:{_type:f.Type.String,_description:"Name of category"},_default:["ICRC Forms","Distress Scales"]}},a=d(3979),h={fhir2:"^1.2.0","webservices.rest":"^2.2.0"}},3979:(b,c,d)=>{function e(b){if(!d.o(f,b))return Promise.resolve().then(()=>{var a=new Error("Cannot find module '"+b+"'");throw a.code="MODULE_NOT_FOUND",a});var c=f[b],e=c[0];return d.e(c[1]).then(()=>d(e))}var f={"./en.json":[3574,574]};e.keys=()=>Object.keys(f),e.id=3979,b.exports=e}}]),c=f.e(132).then(()=>()=>f(8132))),c)},e=(a,b)=>(f.R=b,b=f.o(g,a)?g[a]():Promise.resolve().then(()=>{throw new Error("Module \""+a+"\" does not exist in container.")}),f.R=void 0,b),h=(a,b)=>{if(f.S){var c=f.S["default"];if(c&&c!==a)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return f.S["default"]=a,f.I("default",b)}};f.d(d,{get:()=>e,init:()=>h})}},m={};return g.m=G,g.c=m,g.y=b,g.n=a=>{var b=a&&a.__esModule?()=>a.default:()=>a;return g.d(b,{a:b}),b},g.d=(a,b)=>{for(var c in b)g.o(b,c)&&!g.o(a,c)&&Object.defineProperty(a,c,{enumerable:!0,get:b[c]})},g.f={},g.e=a=>Promise.all(Object.keys(g.f).reduce((b,c)=>(g.f[c](a,b),b),[])),g.u=a=>a+".js",g.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(a){if("object"==typeof window)return window}}(),g.o=(a,b)=>Object.prototype.hasOwnProperty.call(a,b),j={},k="@openmrs/esm-fast-data-entry-app:",g.l=(a,b,c)=>{if(j[a])j[a].push(b);else{var e,h;if(void 0!==c)for(var m,n=document.getElementsByTagName("script"),o=0;o<n.length;o++)if(m=n[o],m.getAttribute("src")==a||m.getAttribute("data-webpack")==k+c){e=m;break}e||(h=!0,(e=document.createElement("script")).charset="utf-8",e.timeout=120,g.nc&&e.setAttribute("nonce",g.nc),e.setAttribute("data-webpack",k+c),e.src=a),j[a]=[b];var q=(b,c)=>{e.onerror=e.onload=null,clearTimeout(d);var f=j[a];if(delete j[a],e.parentNode&&e.parentNode.removeChild(e),f&&f.forEach(a=>a(c)),b)return b(c)},d=setTimeout(q.bind(null,void 0,{type:"timeout",target:e}),12e4);e.onerror=q.bind(null,e.onerror),e.onload=q.bind(null,e.onload),h&&document.head.appendChild(e)}},g.r=a=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},g.nmd=a=>(a.paths=[],a.children||(a.children=[]),a),(()=>{g.S={};var b={},c={};g.I=(d,e)=>{e||(e=[]);var f=c[d];if(f||(f=c[d]={}),!(0<=e.indexOf(f))){if(e.push(f),b[d])return b[d];g.o(g.S,d)||(g.S[d]={});var h=g.S[d],a=(a,b,c,d)=>{var e=h[a]=h[a]||{},f=e[b];f&&(f.loaded||(!d==!f.eager?!("@openmrs/esm-fast-data-entry-app">f.from):!d))||(e[b]={get:c,from:"@openmrs/esm-fast-data-entry-app",eager:!!d})},i=[];return"default"===d&&(a("@openmrs/esm-framework","3.4.1-pre.122",()=>Promise.all([g.e(595),g.e(211)]).then(()=>()=>g(595))),a("carbon-icons","7.0.7",()=>g.e(906).then(()=>()=>g(906))),a("react-dom","16.14.0",()=>Promise.all([g.e(935),g.e(211)]).then(()=>()=>g(3935))),a("react-i18next","11.18.0",()=>Promise.all([g.e(247),g.e(211)]).then(()=>()=>g(8247))),a("react-router-dom","5.3.3",()=>Promise.all([g.e(536),g.e(211)]).then(()=>()=>g(536))),a("react","16.14.0",()=>g.e(294).then(()=>()=>g(7294)))),b[d]=i.length?Promise.all(i).then(()=>b[d]=1):1}}})(),g.p="",q=a=>{var b=a=>a.split(".").map(a=>+a==a?+a:a),c=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(a),d=c[1]?b(c[1]):[];return c[2]&&(d.length++,d.push.apply(d,b(c[2]))),c[3]&&(d.push([]),d.push.apply(d,b(c[3]))),d},w=(b,c)=>{b=q(b),c=q(c);for(var d=0;;){if(d>=b.length)return d<c.length&&"u"!=(typeof c[d])[0];var f=b[d],g=(typeof f)[0];if(d>=c.length)return"u"==g;var a=c[d],h=(typeof a)[0];if(g!=h)return"o"==g&&"n"==h||"s"==h||"u"==g;if("o"!=g&&"u"!=g&&f!=a)return f<a;d++}},x=a=>{function b(){return g.pop().replace(/^\((.+)\)$/,"$1")}var c=a[0],d="";if(1===a.length)return"*";if(c+.5){d+=0==c?">=":-1==c?"<":1==c?"^":2==c?"~":0<c?"=":"!=";for(var e=1,f=1;f<a.length;f++)e--,d+="u"==(typeof(h=a[f]))[0]?"-":(0<e?".":"")+(e=2,h);return d}var g=[];for(f=1;f<a.length;f++){var h=a[f];g.push(0===h?"not("+b()+")":1===h?"("+b()+" || "+b()+")":2===h?g.pop()+" "+g.pop():x(h))}return b()},y=(b,e)=>{if(0 in b){e=q(e);var g=b[0],i=0>g;i&&(g=-g-1);for(var j=0,k=1,m=!0;;k++,j++){var n,o,v=k<b.length?(typeof b[k])[0]:"";if(j>=e.length||"o"==(o=(typeof(n=e[j]))[0]))return!m||("u"==v?k>g&&!i:""==v!=i);if("u"==o){if(!m||"u"!=v)return!1;}else if(!m)"s"!=v&&"n"!=v&&(m=!1,k--);else if(v==o){if(!(k<=g)){if(i?n>b[k]:n<b[k])return!1;n!=b[k]&&(m=!1)}else if(n!=b[k])return!1;}else if("s"!=v&&"n"!=v){if(i||k<=g)return!1;m=!1,k--}else{if(k<=g||o<v!=i)return!1;m=!1}}}var d=[],p=d.pop.bind(d);for(j=1;j<b.length;j++){var c=b[j];d.push(1==c?p()|p():2==c?p()&p():c?y(c,e):!p())}return!!p()},z=(a,b)=>{var c=a[b];return Object.keys(c).reduce((a,b)=>a&&(c[a].loaded||!w(a,b))?a:b,0)},A=(a,b,c,d)=>"Unsatisfied version "+c+" from "+(c&&a[b][c].from)+" of shared singleton module "+b+" (required "+x(d)+")",B=(a,b,c,d)=>{var e=z(a,c);return y(d,e)||"undefined"!=typeof console&&console.warn&&console.warn(A(a,c,e,d)),C(a[c][e])},C=a=>(a.loaded=1,a.get()),r=(b=>function(c,d,e,f){var h=g.I(c);return h&&h.then?h.then(b.bind(b,c,g.S[c],d,e,f)):b(0,g.S[c],d,e,f)})((a,b,c,d,e)=>b&&g.o(b,c)?B(b,0,c,d):e()),D={},E={311:()=>r("default","@openmrs/esm-framework",[1,"next"],()=>Promise.all([g.e(595),g.e(211)]).then(()=>()=>g(595))),4211:()=>r("default","react",[1,16,14],()=>g.e(294).then(()=>()=>g(7294))),2221:()=>r("default","react-router-dom",[1,5,0,0],()=>g.e(536).then(()=>()=>g(536))),3397:()=>r("default","react-i18next",[1,11],()=>g.e(247).then(()=>()=>g(8247))),8408:()=>r("default","react-dom",[1,16,0],()=>g.e(935).then(()=>()=>g(3935)))},F={132:[311],211:[4211],397:[3397],508:[8408],804:[2221]},g.f.consumes=(a,b)=>{g.o(F,a)&&F[a].forEach(a=>{if(g.o(D,a))return b.push(D[a]);var c=b=>{D[a]=0,g.m[a]=c=>{delete g.c[a],c.exports=b()}},d=b=>{delete D[a],g.m[a]=()=>{throw delete g.c[a],b}};try{var e=E[a]();e.then?b.push(D[a]=e.then(c).catch(d)):c(e)}catch(a){d(a)}})},(()=>{var b={447:0};g.f.j=(c,d)=>{var e=g.o(b,c)?b[c]:void 0;if(0!==e)if(e)d.push(e[2]);else if(/^(211|397)$/.test(c))b[c]=0;else{var f=new Promise((a,d)=>e=b[c]=[a,d]);d.push(e[2]=f);var h=g.p+g.u(c),j=new Error;g.l(h,d=>{if(g.o(b,c)&&(0!==(e=b[c])&&(b[c]=void 0),e)){var f=d&&("load"===d.type?"missing":d.type),h=d&&d.target&&d.target.src;j.message="Loading chunk "+c+" failed.\n("+f+": "+h+")",j.name="ChunkLoadError",j.type=f,j.request=h,e[1](j)}},"chunk-"+c,c)}};var a=(c,d)=>{var e,f,[h,a,i]=d,j=0;if(h.some(a=>0!==b[a])){for(e in a)g.o(a,e)&&(g.m[e]=a[e]);i&&i(g)}for(c&&c(d);j<h.length;j++)f=h[j],g.o(b,f)&&b[f]&&b[f][0](),b[f]=0},c=self.webpackChunk_openmrs_esm_fast_data_entry_app=self.webpackChunk_openmrs_esm_fast_data_entry_app||[];c.forEach(a.bind(null,0)),c.push=a.bind(null,c.push.bind(c))})(),g.nc=void 0,g(5356),g(6751)})())}}});
|
|
@@ -19,48 +19,51 @@
|
|
|
19
19
|
"132.js"
|
|
20
20
|
],
|
|
21
21
|
"auxiliaryFiles": [],
|
|
22
|
-
"hash": "
|
|
22
|
+
"hash": "928c770aa6d50e4b6950",
|
|
23
23
|
"childrenByOrder": {}
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
|
-
"rendered":
|
|
26
|
+
"rendered": true,
|
|
27
27
|
"initial": false,
|
|
28
28
|
"entry": false,
|
|
29
29
|
"recorded": false,
|
|
30
|
-
"reason": "
|
|
31
|
-
"size":
|
|
30
|
+
"reason": "split chunk (cache group: defaultVendors)",
|
|
31
|
+
"size": 1228188,
|
|
32
32
|
"sizes": {
|
|
33
|
-
"
|
|
33
|
+
"javascript": 1228188
|
|
34
34
|
},
|
|
35
35
|
"names": [],
|
|
36
|
-
"idHints": [
|
|
36
|
+
"idHints": [
|
|
37
|
+
"vendors"
|
|
38
|
+
],
|
|
37
39
|
"runtime": [
|
|
38
40
|
"@openmrs/esm-fast-data-entry-app"
|
|
39
41
|
],
|
|
40
|
-
"files": [
|
|
42
|
+
"files": [
|
|
43
|
+
"147.js"
|
|
44
|
+
],
|
|
41
45
|
"auxiliaryFiles": [],
|
|
42
|
-
"hash": "
|
|
46
|
+
"hash": "c9d28f347985c9a204a4",
|
|
43
47
|
"childrenByOrder": {}
|
|
44
48
|
},
|
|
45
49
|
{
|
|
46
|
-
"rendered":
|
|
50
|
+
"rendered": false,
|
|
47
51
|
"initial": false,
|
|
48
52
|
"entry": false,
|
|
49
53
|
"recorded": false,
|
|
50
|
-
"
|
|
54
|
+
"reason": "reused as split chunk (cache group: default)",
|
|
55
|
+
"size": 42,
|
|
51
56
|
"sizes": {
|
|
52
|
-
"
|
|
57
|
+
"consume-shared": 42
|
|
53
58
|
},
|
|
54
59
|
"names": [],
|
|
55
60
|
"idHints": [],
|
|
56
61
|
"runtime": [
|
|
57
62
|
"@openmrs/esm-fast-data-entry-app"
|
|
58
63
|
],
|
|
59
|
-
"files": [
|
|
60
|
-
"294.js"
|
|
61
|
-
],
|
|
64
|
+
"files": [],
|
|
62
65
|
"auxiliaryFiles": [],
|
|
63
|
-
"hash": "
|
|
66
|
+
"hash": "d9de6f848675d3310391",
|
|
64
67
|
"childrenByOrder": {}
|
|
65
68
|
},
|
|
66
69
|
{
|
|
@@ -69,9 +72,9 @@
|
|
|
69
72
|
"entry": false,
|
|
70
73
|
"recorded": false,
|
|
71
74
|
"reason": "reused as split chunk (cache group: defaultVendors)",
|
|
72
|
-
"size":
|
|
75
|
+
"size": 39074,
|
|
73
76
|
"sizes": {
|
|
74
|
-
"javascript":
|
|
77
|
+
"javascript": 39074
|
|
75
78
|
},
|
|
76
79
|
"names": [],
|
|
77
80
|
"idHints": [
|
|
@@ -81,10 +84,10 @@
|
|
|
81
84
|
"@openmrs/esm-fast-data-entry-app"
|
|
82
85
|
],
|
|
83
86
|
"files": [
|
|
84
|
-
"
|
|
87
|
+
"247.js"
|
|
85
88
|
],
|
|
86
89
|
"auxiliaryFiles": [],
|
|
87
|
-
"hash": "
|
|
90
|
+
"hash": "e58495a1886888541cfc",
|
|
88
91
|
"childrenByOrder": {}
|
|
89
92
|
},
|
|
90
93
|
{
|
|
@@ -92,9 +95,9 @@
|
|
|
92
95
|
"initial": false,
|
|
93
96
|
"entry": false,
|
|
94
97
|
"recorded": false,
|
|
95
|
-
"size":
|
|
98
|
+
"size": 8973,
|
|
96
99
|
"sizes": {
|
|
97
|
-
"javascript":
|
|
100
|
+
"javascript": 8973
|
|
98
101
|
},
|
|
99
102
|
"names": [],
|
|
100
103
|
"idHints": [],
|
|
@@ -102,10 +105,10 @@
|
|
|
102
105
|
"@openmrs/esm-fast-data-entry-app"
|
|
103
106
|
],
|
|
104
107
|
"files": [
|
|
105
|
-
"
|
|
108
|
+
"294.js"
|
|
106
109
|
],
|
|
107
110
|
"auxiliaryFiles": [],
|
|
108
|
-
"hash": "
|
|
111
|
+
"hash": "7efcd7e76a6f72bc2fe2",
|
|
109
112
|
"childrenByOrder": {}
|
|
110
113
|
},
|
|
111
114
|
{
|
|
@@ -125,76 +128,54 @@
|
|
|
125
128
|
],
|
|
126
129
|
"files": [],
|
|
127
130
|
"auxiliaryFiles": [],
|
|
128
|
-
"hash": "
|
|
129
|
-
"childrenByOrder": {}
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
"rendered": false,
|
|
133
|
-
"initial": false,
|
|
134
|
-
"entry": false,
|
|
135
|
-
"recorded": false,
|
|
136
|
-
"reason": "reused as split chunk (cache group: default)",
|
|
137
|
-
"size": 42,
|
|
138
|
-
"sizes": {
|
|
139
|
-
"consume-shared": 42
|
|
140
|
-
},
|
|
141
|
-
"names": [],
|
|
142
|
-
"idHints": [],
|
|
143
|
-
"runtime": [
|
|
144
|
-
"@openmrs/esm-fast-data-entry-app"
|
|
145
|
-
],
|
|
146
|
-
"files": [],
|
|
147
|
-
"auxiliaryFiles": [],
|
|
148
|
-
"hash": "a9bde334a4e1f3957e2e",
|
|
131
|
+
"hash": "3952d5edf3deacded55e",
|
|
149
132
|
"childrenByOrder": {}
|
|
150
133
|
},
|
|
151
134
|
{
|
|
152
135
|
"rendered": true,
|
|
153
|
-
"initial":
|
|
154
|
-
"entry":
|
|
136
|
+
"initial": true,
|
|
137
|
+
"entry": true,
|
|
155
138
|
"recorded": false,
|
|
156
|
-
"
|
|
157
|
-
"size": 40335,
|
|
139
|
+
"size": 22637,
|
|
158
140
|
"sizes": {
|
|
159
|
-
"javascript":
|
|
141
|
+
"javascript": 3409,
|
|
142
|
+
"share-init": 252,
|
|
143
|
+
"runtime": 18976
|
|
160
144
|
},
|
|
161
|
-
"names": [
|
|
162
|
-
|
|
163
|
-
"vendors"
|
|
145
|
+
"names": [
|
|
146
|
+
"@openmrs/esm-fast-data-entry-app"
|
|
164
147
|
],
|
|
148
|
+
"idHints": [],
|
|
165
149
|
"runtime": [
|
|
166
150
|
"@openmrs/esm-fast-data-entry-app"
|
|
167
151
|
],
|
|
168
152
|
"files": [
|
|
169
|
-
"
|
|
153
|
+
"openmrs-esm-fast-data-entry-app.js"
|
|
170
154
|
],
|
|
171
155
|
"auxiliaryFiles": [],
|
|
172
|
-
"hash": "
|
|
156
|
+
"hash": "498682b99b8634a77387",
|
|
173
157
|
"childrenByOrder": {}
|
|
174
158
|
},
|
|
175
159
|
{
|
|
176
160
|
"rendered": true,
|
|
177
|
-
"initial":
|
|
178
|
-
"entry":
|
|
161
|
+
"initial": false,
|
|
162
|
+
"entry": false,
|
|
179
163
|
"recorded": false,
|
|
180
|
-
"size":
|
|
164
|
+
"size": 37129,
|
|
181
165
|
"sizes": {
|
|
182
|
-
"javascript":
|
|
183
|
-
"
|
|
184
|
-
"runtime": 19314
|
|
166
|
+
"javascript": 37087,
|
|
167
|
+
"consume-shared": 42
|
|
185
168
|
},
|
|
186
|
-
"names": [
|
|
187
|
-
"@openmrs/esm-fast-data-entry-app"
|
|
188
|
-
],
|
|
169
|
+
"names": [],
|
|
189
170
|
"idHints": [],
|
|
190
171
|
"runtime": [
|
|
191
172
|
"@openmrs/esm-fast-data-entry-app"
|
|
192
173
|
],
|
|
193
174
|
"files": [
|
|
194
|
-
"
|
|
175
|
+
"508.js"
|
|
195
176
|
],
|
|
196
177
|
"auxiliaryFiles": [],
|
|
197
|
-
"hash": "
|
|
178
|
+
"hash": "3906243ac28524f4b4ba",
|
|
198
179
|
"childrenByOrder": {}
|
|
199
180
|
},
|
|
200
181
|
{
|
|
@@ -202,10 +183,10 @@
|
|
|
202
183
|
"initial": false,
|
|
203
184
|
"entry": false,
|
|
204
185
|
"recorded": false,
|
|
205
|
-
"reason": "split chunk (cache group: defaultVendors)",
|
|
206
|
-
"size":
|
|
186
|
+
"reason": "reused as split chunk (cache group: defaultVendors)",
|
|
187
|
+
"size": 93908,
|
|
207
188
|
"sizes": {
|
|
208
|
-
"javascript":
|
|
189
|
+
"javascript": 93908
|
|
209
190
|
},
|
|
210
191
|
"names": [],
|
|
211
192
|
"idHints": [
|
|
@@ -215,10 +196,10 @@
|
|
|
215
196
|
"@openmrs/esm-fast-data-entry-app"
|
|
216
197
|
],
|
|
217
198
|
"files": [
|
|
218
|
-
"
|
|
199
|
+
"536.js"
|
|
219
200
|
],
|
|
220
201
|
"auxiliaryFiles": [],
|
|
221
|
-
"hash": "
|
|
202
|
+
"hash": "83caa9d52579792daa04",
|
|
222
203
|
"childrenByOrder": {}
|
|
223
204
|
},
|
|
224
205
|
{
|
|
@@ -226,9 +207,9 @@
|
|
|
226
207
|
"initial": false,
|
|
227
208
|
"entry": false,
|
|
228
209
|
"recorded": false,
|
|
229
|
-
"size":
|
|
210
|
+
"size": 500,
|
|
230
211
|
"sizes": {
|
|
231
|
-
"javascript":
|
|
212
|
+
"javascript": 500
|
|
232
213
|
},
|
|
233
214
|
"names": [],
|
|
234
215
|
"idHints": [],
|
|
@@ -239,7 +220,7 @@
|
|
|
239
220
|
"574.js"
|
|
240
221
|
],
|
|
241
222
|
"auxiliaryFiles": [],
|
|
242
|
-
"hash": "
|
|
223
|
+
"hash": "c5a7695ed51807ec8d05",
|
|
243
224
|
"childrenByOrder": {}
|
|
244
225
|
},
|
|
245
226
|
{
|
|
@@ -248,9 +229,9 @@
|
|
|
248
229
|
"entry": false,
|
|
249
230
|
"recorded": false,
|
|
250
231
|
"reason": "split chunk (cache group: defaultVendors)",
|
|
251
|
-
"size":
|
|
232
|
+
"size": 808915,
|
|
252
233
|
"sizes": {
|
|
253
|
-
"javascript":
|
|
234
|
+
"javascript": 808915
|
|
254
235
|
},
|
|
255
236
|
"names": [],
|
|
256
237
|
"idHints": [
|
|
@@ -263,7 +244,7 @@
|
|
|
263
244
|
"595.js"
|
|
264
245
|
],
|
|
265
246
|
"auxiliaryFiles": [],
|
|
266
|
-
"hash": "
|
|
247
|
+
"hash": "c1f90cacb57dc560fd74",
|
|
267
248
|
"childrenByOrder": {}
|
|
268
249
|
},
|
|
269
250
|
{
|
|
@@ -272,9 +253,9 @@
|
|
|
272
253
|
"entry": false,
|
|
273
254
|
"recorded": false,
|
|
274
255
|
"reason": "split chunk (cache group: defaultVendors)",
|
|
275
|
-
"size":
|
|
256
|
+
"size": 529929,
|
|
276
257
|
"sizes": {
|
|
277
|
-
"javascript":
|
|
258
|
+
"javascript": 529929
|
|
278
259
|
},
|
|
279
260
|
"names": [],
|
|
280
261
|
"idHints": [
|
|
@@ -284,30 +265,10 @@
|
|
|
284
265
|
"@openmrs/esm-fast-data-entry-app"
|
|
285
266
|
],
|
|
286
267
|
"files": [
|
|
287
|
-
"
|
|
268
|
+
"634.js"
|
|
288
269
|
],
|
|
289
270
|
"auxiliaryFiles": [],
|
|
290
|
-
"hash": "
|
|
291
|
-
"childrenByOrder": {}
|
|
292
|
-
},
|
|
293
|
-
{
|
|
294
|
-
"rendered": false,
|
|
295
|
-
"initial": false,
|
|
296
|
-
"entry": false,
|
|
297
|
-
"recorded": false,
|
|
298
|
-
"reason": "split chunk (cache group: default)",
|
|
299
|
-
"size": 42,
|
|
300
|
-
"sizes": {
|
|
301
|
-
"consume-shared": 42
|
|
302
|
-
},
|
|
303
|
-
"names": [],
|
|
304
|
-
"idHints": [],
|
|
305
|
-
"runtime": [
|
|
306
|
-
"@openmrs/esm-fast-data-entry-app"
|
|
307
|
-
],
|
|
308
|
-
"files": [],
|
|
309
|
-
"auxiliaryFiles": [],
|
|
310
|
-
"hash": "995915f269d61ac42558",
|
|
271
|
+
"hash": "f6c4311960529dc0ffea",
|
|
311
272
|
"childrenByOrder": {}
|
|
312
273
|
},
|
|
313
274
|
{
|
|
@@ -315,9 +276,9 @@
|
|
|
315
276
|
"initial": false,
|
|
316
277
|
"entry": false,
|
|
317
278
|
"recorded": false,
|
|
318
|
-
"size":
|
|
279
|
+
"size": 49527,
|
|
319
280
|
"sizes": {
|
|
320
|
-
"javascript":
|
|
281
|
+
"javascript": 49527
|
|
321
282
|
},
|
|
322
283
|
"names": [],
|
|
323
284
|
"idHints": [],
|
|
@@ -325,10 +286,10 @@
|
|
|
325
286
|
"@openmrs/esm-fast-data-entry-app"
|
|
326
287
|
],
|
|
327
288
|
"files": [
|
|
328
|
-
"
|
|
289
|
+
"671.js"
|
|
329
290
|
],
|
|
330
291
|
"auxiliaryFiles": [],
|
|
331
|
-
"hash": "
|
|
292
|
+
"hash": "03f8840f35eaaf6f8eb6",
|
|
332
293
|
"childrenByOrder": {}
|
|
333
294
|
},
|
|
334
295
|
{
|
|
@@ -349,7 +310,7 @@
|
|
|
349
310
|
"776.js"
|
|
350
311
|
],
|
|
351
312
|
"auxiliaryFiles": [],
|
|
352
|
-
"hash": "
|
|
313
|
+
"hash": "ccd2ed819fc89f5e3711",
|
|
353
314
|
"childrenByOrder": {}
|
|
354
315
|
},
|
|
355
316
|
{
|
|
@@ -357,10 +318,10 @@
|
|
|
357
318
|
"initial": false,
|
|
358
319
|
"entry": false,
|
|
359
320
|
"recorded": false,
|
|
360
|
-
"size":
|
|
321
|
+
"size": 1110,
|
|
361
322
|
"sizes": {
|
|
362
323
|
"consume-shared": 42,
|
|
363
|
-
"javascript":
|
|
324
|
+
"javascript": 1068
|
|
364
325
|
},
|
|
365
326
|
"names": [],
|
|
366
327
|
"idHints": [],
|
|
@@ -371,7 +332,7 @@
|
|
|
371
332
|
"804.js"
|
|
372
333
|
],
|
|
373
334
|
"auxiliaryFiles": [],
|
|
374
|
-
"hash": "
|
|
335
|
+
"hash": "62a55c8a5a90d2a45e75",
|
|
375
336
|
"childrenByOrder": {}
|
|
376
337
|
},
|
|
377
338
|
{
|
|
@@ -379,10 +340,10 @@
|
|
|
379
340
|
"initial": false,
|
|
380
341
|
"entry": false,
|
|
381
342
|
"recorded": false,
|
|
382
|
-
"reason": "split chunk (cache group: defaultVendors)",
|
|
383
|
-
"size":
|
|
343
|
+
"reason": "reused as split chunk (cache group: defaultVendors)",
|
|
344
|
+
"size": 109242,
|
|
384
345
|
"sizes": {
|
|
385
|
-
"javascript":
|
|
346
|
+
"javascript": 109242
|
|
386
347
|
},
|
|
387
348
|
"names": [],
|
|
388
349
|
"idHints": [
|
|
@@ -395,7 +356,7 @@
|
|
|
395
356
|
"906.js"
|
|
396
357
|
],
|
|
397
358
|
"auxiliaryFiles": [],
|
|
398
|
-
"hash": "
|
|
359
|
+
"hash": "3f85c596eb5c7ccd1e8d",
|
|
399
360
|
"childrenByOrder": {}
|
|
400
361
|
},
|
|
401
362
|
{
|
|
@@ -419,7 +380,7 @@
|
|
|
419
380
|
"935.js"
|
|
420
381
|
],
|
|
421
382
|
"auxiliaryFiles": [],
|
|
422
|
-
"hash": "
|
|
383
|
+
"hash": "209a54cedfc25d5fe3f0",
|
|
423
384
|
"childrenByOrder": {}
|
|
424
385
|
}
|
|
425
386
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register("@openmrs/esm-fast-data-entry-app",[],(function(e,r){return{execute:function(){e((()=>{var e,t,n,o,a,i,s,l,
|
|
1
|
+
System.register("@openmrs/esm-fast-data-entry-app",[],(function(e,r){return{execute:function(){e((()=>{var e,t,n,o,a,i,s,u,l,f,d,p,c,h,m={1858:(e,r,t)=>{(0,t(2722).s)(1)},2722:(e,r,t)=>{const n=t(3905).R;r.s=function(e){if(e||(e=1),!t.y.meta||!t.y.meta.url)throw console.error("__system_context__",t.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");t.p=n(t.y.meta.url,e)}},5356:(e,r,t)=>{t(1858)},3905:(e,r,t)=>{r.R=function(e,r){var t=document.createElement("a");t.href=e;for(var n="/"===t.pathname[0]?t.pathname:"/"+t.pathname,o=0,a=n.length;o!==r&&a>=0;)"/"===n[--a]&&o++;if(o!==r)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+r+") is greater than the number of directories ("+o+") in the URL path "+e);var i=n.slice(0,a+1);return t.protocol+"//"+t.host+i};Number.isInteger},6751:(e,r,t)=>{"use strict";var n={app:()=>t.e(132).then((()=>()=>t(8132)))},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})}},v={};function y(e){var r=v[e];if(void 0!==r)return r.exports;var t=v[e]={id:e,loaded:!1,exports:{}};return m[e].call(t.exports,t,t.exports,y),t.loaded=!0,t.exports}return y.m=m,y.c=v,y.y=r,y.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return y.d(r,{a:r}),r},y.d=(e,r)=>{for(var t in r)y.o(r,t)&&!y.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},y.f={},y.e=e=>Promise.all(Object.keys(y.f).reduce(((r,t)=>(y.f[t](e,r),r)),[])),y.u=e=>e+".js",y.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),y.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},t="@openmrs/esm-fast-data-entry-app:",y.l=(r,n,o,a)=>{if(e[r])e[r].push(n);else{var i,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var f=u[l];if(f.getAttribute("src")==r||f.getAttribute("data-webpack")==t+o){i=f;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,y.nc&&i.setAttribute("nonce",y.nc),i.setAttribute("data-webpack",t+o),i.src=r),e[r]=[n];var d=(t,n)=>{i.onerror=i.onload=null,clearTimeout(p);var o=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),s&&document.head.appendChild(i)}},y.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},y.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{y.S={};var e={},r={};y.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];y.o(y.S,t)||(y.S[t]={});var a=y.S[t],i="@openmrs/esm-fast-data-entry-app",s=(e,r,t,n)=>{var o=a[e]=a[e]||{},s=o[r];(!s||!s.loaded&&(!n!=!s.eager?n:i>s.from))&&(o[r]={get:t,from:i,eager:!!n})},u=[];return"default"===t&&(s("@openmrs/esm-framework","3.4.1-pre.122",(()=>Promise.all([y.e(595),y.e(211)]).then((()=>()=>y(595))))),s("carbon-icons","7.0.7",(()=>y.e(906).then((()=>()=>y(906))))),s("react-dom","16.14.0",(()=>Promise.all([y.e(935),y.e(211)]).then((()=>()=>y(3935))))),s("react-i18next","11.18.0",(()=>Promise.all([y.e(247),y.e(211)]).then((()=>()=>y(8247))))),s("react-router-dom","5.3.3",(()=>Promise.all([y.e(536),y.e(211)]).then((()=>()=>y(536))))),s("react","16.14.0",(()=>y.e(294).then((()=>()=>y(7294)))))),e[t]=u.length?Promise.all(u).then((()=>e[t]=1)):1}}})(),y.p="",n=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},o=(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],s=(typeof i)[0];if(a!=s)return"o"==a&&"n"==s||"s"==s||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;t++}},a=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,o=1;o<e.length;o++)n--,t+="u"==(typeof(s=e[o]))[0]?"-":(n>0?".":"")+(n=2,s);return t}var i=[];for(o=1;o<e.length;o++){var s=e[o];i.push(0===s?"not("+u()+")":1===s?"("+u()+" || "+u()+")":2===s?i.pop()+" "+i.pop():a(s))}return u();function u(){return i.pop().replace(/^\((.+)\)$/,"$1")}},i=(e,r)=>{if(0 in e){r=n(r);var t=e[0],o=t<0;o&&(t=-t-1);for(var a=0,s=1,u=!0;;s++,a++){var l,f,d=s<e.length?(typeof e[s])[0]:"";if(a>=r.length||"o"==(f=(typeof(l=r[a]))[0]))return!u||("u"==d?s>t&&!o:""==d!=o);if("u"==f){if(!u||"u"!=d)return!1}else if(u)if(d==f)if(s<=t){if(l!=e[s])return!1}else{if(o?l>e[s]:l<e[s])return!1;l!=e[s]&&(u=!1)}else if("s"!=d&&"n"!=d){if(o||s<=t)return!1;u=!1,s--}else{if(s<=t||f<d!=o)return!1;u=!1}else"s"!=d&&"n"!=d&&(u=!1,s--)}}var p=[],c=p.pop.bind(p);for(a=1;a<e.length;a++){var h=e[a];p.push(1==h?c()|c():2==h?c()&c():h?i(h,r):!c())}return!!c()},s=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&o(e,r)?r:e),0)},u=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+a(n)+")",l=(e,r,t,n)=>{var o=s(e,t);return i(n,o)||"undefined"!=typeof console&&console.warn&&console.warn(u(e,t,o,n)),f(e[t][o])},f=e=>(e.loaded=1,e.get()),d=(e=>function(r,t,n,o){var a=y.I(r);return a&&a.then?a.then(e.bind(e,r,y.S[r],t,n,o)):e(0,y.S[r],t,n,o)})(((e,r,t,n,o)=>r&&y.o(r,t)?l(r,0,t,n):o())),p={},c={311:()=>d("default","@openmrs/esm-framework",[1,"next"],(()=>Promise.all([y.e(595),y.e(211)]).then((()=>()=>y(595))))),4211:()=>d("default","react",[1,16,14],(()=>y.e(294).then((()=>()=>y(7294))))),2221:()=>d("default","react-router-dom",[1,5,0,0],(()=>y.e(536).then((()=>()=>y(536))))),3397:()=>d("default","react-i18next",[1,11],(()=>y.e(247).then((()=>()=>y(8247))))),8408:()=>d("default","react-dom",[1,16,0],(()=>y.e(935).then((()=>()=>y(3935)))))},h={132:[311],211:[4211],397:[3397],508:[8408],804:[2221]},y.f.consumes=(e,r)=>{y.o(h,e)&&h[e].forEach((e=>{if(y.o(p,e))return r.push(p[e]);var t=r=>{p[e]=0,y.m[e]=t=>{delete y.c[e],t.exports=r()}},n=r=>{delete p[e],y.m[e]=t=>{throw delete y.c[e],r}};try{var o=c[e]();o.then?r.push(p[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},(()=>{var e={447:0};y.f.j=(r,t)=>{var n=y.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(211|397)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=y.p+y.u(r),i=new Error;y.l(a,(t=>{if(y.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,s]=t,u=0;if(a.some((r=>0!==e[r]))){for(n in i)y.o(i,n)&&(y.m[n]=i[n]);s&&s(y)}for(r&&r(t);u<a.length;u++)o=a[u],y.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunk_openmrs_esm_fast_data_entry_app=self.webpackChunk_openmrs_esm_fast_data_entry_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),y.nc=void 0,y(5356),y(6751)})())}}}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-fast-data-entry-app",
|
|
3
|
-
"version": "1.0.0-pre.
|
|
3
|
+
"version": "1.0.0-pre.23",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "An OpenMRS 3.x microfrontend",
|
|
6
6
|
"browser": "dist/openmrs-esm-fast-data-entry-app.js",
|
|
@@ -48,7 +48,6 @@
|
|
|
48
48
|
"dependencies": {},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@openmrs/esm-framework": "next",
|
|
51
|
-
"carbon-components-react": "^8.6.0",
|
|
52
51
|
"carbon-icons": "7.x",
|
|
53
52
|
"dayjs": "1.x",
|
|
54
53
|
"react": "^16.14",
|
|
@@ -80,7 +79,6 @@
|
|
|
80
79
|
"babel-eslint": "^10.1.0",
|
|
81
80
|
"babel-jest": "^27.0.2",
|
|
82
81
|
"babel-preset-minify": "^0.5.1",
|
|
83
|
-
"carbon-components-react": "^8.6.0",
|
|
84
82
|
"concurrently": "^6.2.0",
|
|
85
83
|
"eslint": "^7.27.0",
|
|
86
84
|
"eslint-config-prettier": "^8.3.0",
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ExtensionSlot } from "@openmrs/esm-framework";
|
|
3
|
+
import useGetPatient from "./hooks/useGetPatient";
|
|
4
|
+
|
|
5
|
+
export interface Order {
|
|
6
|
+
uuid: string;
|
|
7
|
+
dateActivated: string;
|
|
8
|
+
dose: number;
|
|
9
|
+
doseUnits: {
|
|
10
|
+
uuid: string;
|
|
11
|
+
display: string;
|
|
12
|
+
};
|
|
13
|
+
orderNumber: number;
|
|
14
|
+
display: string;
|
|
15
|
+
drug: {
|
|
16
|
+
uuid: string;
|
|
17
|
+
name: string;
|
|
18
|
+
strength: string;
|
|
19
|
+
};
|
|
20
|
+
duration: number;
|
|
21
|
+
durationUnits: {
|
|
22
|
+
uuid: string;
|
|
23
|
+
display: string;
|
|
24
|
+
};
|
|
25
|
+
frequency: {
|
|
26
|
+
uuid: string;
|
|
27
|
+
display: string;
|
|
28
|
+
};
|
|
29
|
+
numRefills: number;
|
|
30
|
+
orderer: {
|
|
31
|
+
uuid: string;
|
|
32
|
+
person: {
|
|
33
|
+
uuid: string;
|
|
34
|
+
display: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
orderType: {
|
|
38
|
+
uuid: string;
|
|
39
|
+
display: string;
|
|
40
|
+
};
|
|
41
|
+
route: {
|
|
42
|
+
uuid: string;
|
|
43
|
+
display: string;
|
|
44
|
+
};
|
|
45
|
+
auditInfo: {
|
|
46
|
+
dateVoided: string;
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface Observation {
|
|
51
|
+
uuid: string;
|
|
52
|
+
concept: {
|
|
53
|
+
uuid: string;
|
|
54
|
+
display: string;
|
|
55
|
+
conceptClass: {
|
|
56
|
+
uuid: string;
|
|
57
|
+
display: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
display: string;
|
|
61
|
+
groupMembers: null | Array<{
|
|
62
|
+
uuid: string;
|
|
63
|
+
concept: {
|
|
64
|
+
uuid: string;
|
|
65
|
+
display: string;
|
|
66
|
+
};
|
|
67
|
+
value: {
|
|
68
|
+
uuid: string;
|
|
69
|
+
display: string;
|
|
70
|
+
};
|
|
71
|
+
}>;
|
|
72
|
+
value: any;
|
|
73
|
+
obsDatetime: string;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export interface Encounter {
|
|
77
|
+
uuid: string;
|
|
78
|
+
encounterDatetime: string;
|
|
79
|
+
encounterProviders: Array<{
|
|
80
|
+
uuid: string;
|
|
81
|
+
display: string;
|
|
82
|
+
encounterRole: {
|
|
83
|
+
uuid: string;
|
|
84
|
+
display: string;
|
|
85
|
+
};
|
|
86
|
+
provider: {
|
|
87
|
+
uuid: string;
|
|
88
|
+
person: {
|
|
89
|
+
uuid: string;
|
|
90
|
+
display: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
}>;
|
|
94
|
+
encounterType: {
|
|
95
|
+
uuid: string;
|
|
96
|
+
display: string;
|
|
97
|
+
};
|
|
98
|
+
obs: Array<Observation>;
|
|
99
|
+
orders: Array<Order>;
|
|
100
|
+
}
|
|
101
|
+
interface FormParams {
|
|
102
|
+
formUuid: string;
|
|
103
|
+
patientUuid: string;
|
|
104
|
+
visitUuid?: string;
|
|
105
|
+
visitTypeUuid?: string;
|
|
106
|
+
encounterUuid?: string;
|
|
107
|
+
handlePostResponse?: (Encounter) => void;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
const FormBootstrap = ({
|
|
111
|
+
formUuid,
|
|
112
|
+
patientUuid,
|
|
113
|
+
visitUuid,
|
|
114
|
+
visitTypeUuid,
|
|
115
|
+
encounterUuid,
|
|
116
|
+
handlePostResponse,
|
|
117
|
+
}: FormParams) => {
|
|
118
|
+
const patient = useGetPatient(patientUuid);
|
|
119
|
+
|
|
120
|
+
return (
|
|
121
|
+
<div>
|
|
122
|
+
{formUuid && patientUuid && patient && (
|
|
123
|
+
<ExtensionSlot
|
|
124
|
+
extensionSlotName="form-widget-slot"
|
|
125
|
+
state={{
|
|
126
|
+
view: "form",
|
|
127
|
+
formUuid,
|
|
128
|
+
visitUuid: visitUuid ?? "",
|
|
129
|
+
visitTypeUuid: visitTypeUuid ?? "",
|
|
130
|
+
patientUuid,
|
|
131
|
+
patient,
|
|
132
|
+
encounterUuid: encounterUuid ?? "",
|
|
133
|
+
closeWorkspace: () => {},
|
|
134
|
+
handlePostResponse,
|
|
135
|
+
}}
|
|
136
|
+
/>
|
|
137
|
+
)}
|
|
138
|
+
</div>
|
|
139
|
+
);
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
export default FormBootstrap;
|