@ampath/esm-patient-registration-app 9.2.0-next.16 → 9.2.0-next.18
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/2498.js +2 -0
- package/dist/2498.js.map +1 -0
- package/dist/4395.js +1 -1
- package/dist/4395.js.map +1 -1
- package/dist/5239.js +1 -1
- package/dist/5239.js.map +1 -1
- package/dist/6276.js +1 -1
- package/dist/6276.js.map +1 -1
- package/dist/6741.js +1 -0
- package/dist/6741.js.map +1 -0
- package/dist/7821.js +1 -1
- package/dist/7821.js.map +1 -1
- package/dist/8414.js +1 -1
- package/dist/8414.js.map +1 -1
- package/dist/8434.js +1 -1
- package/dist/8434.js.map +1 -1
- package/dist/8882.js +1 -1
- package/dist/8882.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-patient-registration-app.js +1 -1
- package/dist/openmrs-esm-patient-registration-app.js.buildmanifest.json +56 -56
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/patient-registration/client-registry/client-dependants/list/client-depandants.component.tsx +55 -0
- package/src/patient-registration/client-registry/client-details/client-details.tsx +42 -0
- package/src/patient-registration/client-registry/client-registry-search.component.tsx +156 -69
- package/src/patient-registration/client-registry/client-registry-search.scss +26 -0
- package/src/patient-registration/client-registry/client-registry.resource.ts +1 -1
- package/src/patient-registration/client-registry/hie-client-adapter.ts +56 -0
- package/src/patient-registration/client-registry/types/index.ts +200 -0
- package/src/patient-registration/client-registry-search/client-registry.resource.ts +1 -1
- package/src/patient-registration/custom-patient-registration.scss +6 -0
- package/src/patient-registration/patient-registration.component.tsx +23 -12
- package/src/patient-registration/patient-registration.resource.ts +4 -5
- package/dist/6996.js +0 -1
- package/dist/6996.js.map +0 -1
- package/dist/9933.js +0 -2
- package/dist/9933.js.map +0 -1
- /package/dist/{9933.js.LICENSE.txt → 2498.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
var _ampath_esm_patient_registration_app;(()=>{"use strict";var e,r,t,n,a,o,i,l,s,u,f,p,d,h,c,m,v,g,b,y,w,_={3174:(e,r,t)=>{var n={"./start":()=>Promise.all([t.e(3144),t.e(
|
|
1
|
+
var _ampath_esm_patient_registration_app;(()=>{"use strict";var e,r,t,n,a,o,i,l,s,u,f,p,d,h,c,m,v,g,b,y,w,_={3174:(e,r,t)=>{var n={"./start":()=>Promise.all([t.e(3144),t.e(2498),t.e(1343),t.e(7243),t.e(7821)]).then(()=>()=>t(87821))},a=(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),o=(e,r)=>{if(t.S){var n="default",a=t.S[n];if(a&&a!==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:()=>a,init:()=>o})}},P={};function S(e){var r=P[e];if(void 0!==r)return r.exports;var t=P[e]={id:e,loaded:!1,exports:{}};return _[e].call(t.exports,t,t.exports,S),t.loaded=!0,t.exports}S.m=_,S.c=P,S.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return S.d(r,{a:r}),r},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,S.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 a=Object.create(null);S.r(a);var o={};e=e||[null,r({}),r([]),r(r)];for(var i=2&n&&t;"object"==typeof i&&!~e.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach(e=>o[e]=()=>t[e]);return o.default=()=>t,S.d(a,o),a},S.d=(e,r)=>{for(var t in r)S.o(r,t)&&!S.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},S.f={},S.e=e=>Promise.all(Object.keys(S.f).reduce((r,t)=>(S.f[t](e,r),r),[])),S.u=e=>e+".js",S.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),S.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},n="@ampath/esm-patient-registration-app:",S.l=(e,r,a,o)=>{if(t[e])t[e].push(r);else{var i,l;if(void 0!==a)for(var s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var f=s[u];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==n+a){i=f;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,S.nc&&i.setAttribute("nonce",S.nc),i.setAttribute("data-webpack",n+a),i.src=e),t[e]=[r];var p=(r,n)=>{i.onerror=i.onload=null,clearTimeout(d);var a=t[e];if(delete t[e],i.parentNode&&i.parentNode.removeChild(i),a&&a.forEach(e=>e(n)),r)return r(n)},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)}},S.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},S.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{S.S={};var e={},r={};S.I=(t,n)=>{n||(n=[]);var a=r[t];if(a||(a=r[t]={}),!(n.indexOf(a)>=0)){if(n.push(a),e[t])return e[t];S.o(S.S,t)||(S.S[t]={});var o=S.S[t],i="@ampath/esm-patient-registration-app",l=(e,r,t,n)=>{var a=o[e]=o[e]||{},l=a[r];(!l||!l.loaded&&(!n!=!l.eager?n:i>l.from))&&(a[r]={get:t,from:i,eager:!!n})},s=[];return"default"===t&&(l("@openmrs/esm-framework","8.0.1-pre.3444",()=>Promise.all([S.e(9898),S.e(3144),S.e(5239),S.e(2498),S.e(1343),S.e(5434),S.e(2086),S.e(7243),S.e(8394)]).then(()=>()=>S(15239))),l("dayjs","1.11.13",()=>S.e(3464).then(()=>()=>S(23464))),l("react-i18next","16.0.0",()=>Promise.all([S.e(6336),S.e(1343)]).then(()=>()=>S(16336))),l("react-router-dom","6.30.1",()=>Promise.all([S.e(3144),S.e(2913),S.e(1343)]).then(()=>()=>S(52913))),l("react","18.3.1",()=>S.e(4041).then(()=>()=>S(14041))),l("swr/_internal","2.2.5",()=>Promise.all([S.e(2372),S.e(1343)]).then(()=>()=>S(42372))),l("swr/immutable","2.2.5",()=>Promise.all([S.e(1343),S.e(5434),S.e(7495)]).then(()=>()=>S(29876))),l("swr/infinite","2.2.5",()=>Promise.all([S.e(1343),S.e(5434),S.e(89)]).then(()=>()=>S(52470)))),e[t]=s.length?Promise.all(s).then(()=>e[t]=1):1}}})(),(()=>{var e;S.g.importScripts&&(e=S.g.location+"");var r=S.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(/\/[^\/]+$/,"/"),S.p=e})(),a=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=a(e),r=a(r);for(var t=0;;){if(t>=e.length)return t<r.length&&"u"!=(typeof r[t])[0];var n=e[t],o=(typeof n)[0];if(t>=r.length)return"u"==o;var i=r[t],l=(typeof i)[0];if(o!=l)return"o"==o&&"n"==l||"s"==l||"u"==o;if("o"!=o&&"u"!=o&&n!=i)return n<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 n=1,a=1;a<e.length;a++)n--,t+="u"==(typeof(l=e[a]))[0]?"-":(n>0?".":"")+(n=2,l);return t}var o=[];for(a=1;a<e.length;a++){var l=e[a];o.push(0===l?"not("+s()+")":1===l?"("+s()+" || "+s()+")":2===l?o.pop()+" "+o.pop():i(l))}return s();function s(){return o.pop().replace(/^\((.+)\)$/,"$1")}},l=(e,r)=>{if(0 in e){r=a(r);var t=e[0],n=t<0;n&&(t=-t-1);for(var o=0,i=1,s=!0;;i++,o++){var u,f,p=i<e.length?(typeof e[i])[0]:"";if(o>=r.length||"o"==(f=(typeof(u=r[o]))[0]))return!s||("u"==p?i>t&&!n:""==p!=n);if("u"==f){if(!s||"u"!=p)return!1}else if(s)if(p==f)if(i<=t){if(u!=e[i])return!1}else{if(n?u>e[i]:u<e[i])return!1;u!=e[i]&&(s=!1)}else if("s"!=p&&"n"!=p){if(n||i<=t)return!1;s=!1,i--}else{if(i<=t||f<p!=n)return!1;s=!1}else"s"!=p&&"n"!=p&&(s=!1,i--)}}var d=[],h=d.pop.bind(d);for(o=1;o<e.length;o++){var c=e[o];d.push(1==c?h()|h():2==c?h()&h():c?l(c,r):!h())}return!!h()},s=(e,r)=>e&&S.o(e,r),u=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 n=t?f(e[r]):e[r];return Object.keys(n).reduce((e,r)=>!e||!n[e].loaded&&o(e,r)?r:e,0)},d=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+i(n)+")",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,n,a,o){var i=S.I(r);return i&&i.then&&!n?i.then(e.bind(e,r,S.S[r],t,!1,a,o)):e(r,S.S[r],t,n,a,o)})((e,r,t,n,a,o)=>{if(!s(r,t))return m(e,t,o);var i=p(r,t,n);return l(a,i)||c(d(r,t,i,a)),u(r[t][i])}),g={},b={1343:()=>v("default","react",!1,[1,18],()=>S.e(4041).then(()=>()=>S(14041))),55434:()=>v("default","swr/_internal",!1,[1,2],()=>S.e(2372).then(()=>()=>S(42372))),8877:()=>v("default","react-router-dom",!1,[1,6],()=>S.e(2913).then(()=>()=>S(52913))),88010:()=>v("default","swr/immutable",!1,[1,2],()=>S.e(9876).then(()=>()=>S(29876))),46372:()=>v("default","dayjs",!1,[1,1],()=>S.e(3464).then(()=>()=>S(23464))),54440:()=>v("default","@openmrs/esm-framework",!1,[1,8],()=>Promise.all([S.e(9898),S.e(5239),S.e(5434),S.e(2086),S.e(8394)]).then(()=>()=>S(15239))),72339:()=>v("default","react-i18next",!1,[1,16],()=>S.e(6336).then(()=>()=>S(16336))),98394:()=>v("default","swr/infinite",!1,[1,2],()=>S.e(2470).then(()=>()=>S(52470)))},y={1343:[1343],2086:[8877,88010],5434:[55434],7243:[46372,54440,72339],8394:[98394]},w={},S.f.consumes=(e,r)=>{S.o(y,e)&&y[e].forEach(e=>{if(S.o(g,e))return r.push(g[e]);if(!w[e]){var t=r=>{g[e]=0,S.m[e]=t=>{delete S.c[e],t.exports=r()}};w[e]=!0;var n=r=>{delete g[e],S.m[e]=t=>{throw delete S.c[e],r}};try{var a=b[e]();a.then?r.push(g[e]=a.then(t).catch(n)):t(a)}catch(e){n(e)}}})},(()=>{var e={5898:0};S.f.j=(r,t)=>{var n=S.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^((13|72)43|2086|5434|8394)$/.test(r))e[r]=0;else{var a=new Promise((t,a)=>n=e[r]=[t,a]);t.push(n[2]=a);var o=S.p+S.u(r),i=new Error;S.l(o,t=>{if(S.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+a+": "+o+")",i.name="ChunkLoadError",i.type=a,i.request=o,n[1](i)}},"chunk-"+r,r)}};var r=(r,t)=>{var n,a,[o,i,l]=t,s=0;if(o.some(r=>0!==e[r])){for(n in i)S.o(i,n)&&(S.m[n]=i[n]);l&&l(S)}for(r&&r(t);s<o.length;s++)a=o[s],S.o(e,a)&&e[a]&&e[a][0](),e[a]=0},t=globalThis.webpackChunk_ampath_esm_patient_registration_app=globalThis.webpackChunk_ampath_esm_patient_registration_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),S.nc=void 0;var j=S(3174);_ampath_esm_patient_registration_app=j})();
|
|
@@ -271,6 +271,33 @@
|
|
|
271
271
|
"hash": "c49aaded432ec875",
|
|
272
272
|
"childrenByOrder": {}
|
|
273
273
|
},
|
|
274
|
+
{
|
|
275
|
+
"rendered": true,
|
|
276
|
+
"initial": false,
|
|
277
|
+
"entry": false,
|
|
278
|
+
"recorded": false,
|
|
279
|
+
"reason": "split chunk (cache group: defaultVendors)",
|
|
280
|
+
"size": 2381537,
|
|
281
|
+
"sizes": {
|
|
282
|
+
"javascript": 2381537
|
|
283
|
+
},
|
|
284
|
+
"names": [],
|
|
285
|
+
"idHints": [
|
|
286
|
+
"vendors"
|
|
287
|
+
],
|
|
288
|
+
"runtime": [
|
|
289
|
+
"@ampath/esm-patient-registration-app",
|
|
290
|
+
"main"
|
|
291
|
+
],
|
|
292
|
+
"files": [
|
|
293
|
+
"2498.js"
|
|
294
|
+
],
|
|
295
|
+
"auxiliaryFiles": [
|
|
296
|
+
"2498.js.map"
|
|
297
|
+
],
|
|
298
|
+
"hash": "a8b5c0ea2ff5d96f",
|
|
299
|
+
"childrenByOrder": {}
|
|
300
|
+
},
|
|
274
301
|
{
|
|
275
302
|
"rendered": true,
|
|
276
303
|
"initial": false,
|
|
@@ -572,7 +599,7 @@
|
|
|
572
599
|
"auxiliaryFiles": [
|
|
573
600
|
"4395.js.map"
|
|
574
601
|
],
|
|
575
|
-
"hash": "
|
|
602
|
+
"hash": "3c7d9adcd5a22b91",
|
|
576
603
|
"childrenByOrder": {}
|
|
577
604
|
},
|
|
578
605
|
{
|
|
@@ -711,7 +738,7 @@
|
|
|
711
738
|
"auxiliaryFiles": [
|
|
712
739
|
"5239.js.map"
|
|
713
740
|
],
|
|
714
|
-
"hash": "
|
|
741
|
+
"hash": "0d6137a4e7951538",
|
|
715
742
|
"childrenByOrder": {}
|
|
716
743
|
},
|
|
717
744
|
{
|
|
@@ -825,7 +852,7 @@
|
|
|
825
852
|
"auxiliaryFiles": [
|
|
826
853
|
"openmrs-esm-patient-registration-app.js.map"
|
|
827
854
|
],
|
|
828
|
-
"hash": "
|
|
855
|
+
"hash": "f530ee8dde6cf5d5",
|
|
829
856
|
"childrenByOrder": {}
|
|
830
857
|
},
|
|
831
858
|
{
|
|
@@ -871,7 +898,7 @@
|
|
|
871
898
|
"auxiliaryFiles": [
|
|
872
899
|
"6276.js.map"
|
|
873
900
|
],
|
|
874
|
-
"hash": "
|
|
901
|
+
"hash": "bb44fcc65c06c93f",
|
|
875
902
|
"childrenByOrder": {}
|
|
876
903
|
},
|
|
877
904
|
{
|
|
@@ -977,9 +1004,9 @@
|
|
|
977
1004
|
"initial": false,
|
|
978
1005
|
"entry": false,
|
|
979
1006
|
"recorded": false,
|
|
980
|
-
"size":
|
|
1007
|
+
"size": 614105,
|
|
981
1008
|
"sizes": {
|
|
982
|
-
"javascript":
|
|
1009
|
+
"javascript": 614105
|
|
983
1010
|
},
|
|
984
1011
|
"names": [],
|
|
985
1012
|
"idHints": [],
|
|
@@ -988,10 +1015,12 @@
|
|
|
988
1015
|
"main"
|
|
989
1016
|
],
|
|
990
1017
|
"files": [
|
|
991
|
-
"
|
|
1018
|
+
"6741.js"
|
|
992
1019
|
],
|
|
993
|
-
"auxiliaryFiles": [
|
|
994
|
-
|
|
1020
|
+
"auxiliaryFiles": [
|
|
1021
|
+
"6741.js.map"
|
|
1022
|
+
],
|
|
1023
|
+
"hash": "2c75af39c28a4d59",
|
|
995
1024
|
"childrenByOrder": {}
|
|
996
1025
|
},
|
|
997
1026
|
{
|
|
@@ -1010,10 +1039,10 @@
|
|
|
1010
1039
|
"main"
|
|
1011
1040
|
],
|
|
1012
1041
|
"files": [
|
|
1013
|
-
"
|
|
1042
|
+
"6840.js"
|
|
1014
1043
|
],
|
|
1015
1044
|
"auxiliaryFiles": [],
|
|
1016
|
-
"hash": "
|
|
1045
|
+
"hash": "b4bd4e2d67c8aa87",
|
|
1017
1046
|
"childrenByOrder": {}
|
|
1018
1047
|
},
|
|
1019
1048
|
{
|
|
@@ -1021,9 +1050,9 @@
|
|
|
1021
1050
|
"initial": false,
|
|
1022
1051
|
"entry": false,
|
|
1023
1052
|
"recorded": false,
|
|
1024
|
-
"size":
|
|
1053
|
+
"size": 6021,
|
|
1025
1054
|
"sizes": {
|
|
1026
|
-
"javascript":
|
|
1055
|
+
"javascript": 6021
|
|
1027
1056
|
},
|
|
1028
1057
|
"names": [],
|
|
1029
1058
|
"idHints": [],
|
|
@@ -1032,12 +1061,10 @@
|
|
|
1032
1061
|
"main"
|
|
1033
1062
|
],
|
|
1034
1063
|
"files": [
|
|
1035
|
-
"
|
|
1036
|
-
],
|
|
1037
|
-
"auxiliaryFiles": [
|
|
1038
|
-
"6996.js.map"
|
|
1064
|
+
"6859.js"
|
|
1039
1065
|
],
|
|
1040
|
-
"
|
|
1066
|
+
"auxiliaryFiles": [],
|
|
1067
|
+
"hash": "c7a1883334928490",
|
|
1041
1068
|
"childrenByOrder": {}
|
|
1042
1069
|
},
|
|
1043
1070
|
{
|
|
@@ -1183,9 +1210,9 @@
|
|
|
1183
1210
|
"initial": false,
|
|
1184
1211
|
"entry": false,
|
|
1185
1212
|
"recorded": false,
|
|
1186
|
-
"size":
|
|
1213
|
+
"size": 145342,
|
|
1187
1214
|
"sizes": {
|
|
1188
|
-
"javascript":
|
|
1215
|
+
"javascript": 145342
|
|
1189
1216
|
},
|
|
1190
1217
|
"names": [],
|
|
1191
1218
|
"idHints": [],
|
|
@@ -1198,7 +1225,7 @@
|
|
|
1198
1225
|
"auxiliaryFiles": [
|
|
1199
1226
|
"7821.js.map"
|
|
1200
1227
|
],
|
|
1201
|
-
"hash": "
|
|
1228
|
+
"hash": "08bda2df07bbd3a4",
|
|
1202
1229
|
"childrenByOrder": {}
|
|
1203
1230
|
},
|
|
1204
1231
|
{
|
|
@@ -1287,7 +1314,7 @@
|
|
|
1287
1314
|
"auxiliaryFiles": [
|
|
1288
1315
|
"8414.js.map"
|
|
1289
1316
|
],
|
|
1290
|
-
"hash": "
|
|
1317
|
+
"hash": "ef5001bdf57ce99e",
|
|
1291
1318
|
"childrenByOrder": {}
|
|
1292
1319
|
},
|
|
1293
1320
|
{
|
|
@@ -1311,7 +1338,7 @@
|
|
|
1311
1338
|
"auxiliaryFiles": [
|
|
1312
1339
|
"8434.js.map"
|
|
1313
1340
|
],
|
|
1314
|
-
"hash": "
|
|
1341
|
+
"hash": "24d788ed851b0a74",
|
|
1315
1342
|
"childrenByOrder": {}
|
|
1316
1343
|
},
|
|
1317
1344
|
{
|
|
@@ -1341,10 +1368,10 @@
|
|
|
1341
1368
|
"initial": true,
|
|
1342
1369
|
"entry": true,
|
|
1343
1370
|
"recorded": false,
|
|
1344
|
-
"size":
|
|
1371
|
+
"size": 2686896,
|
|
1345
1372
|
"sizes": {
|
|
1346
1373
|
"consume-shared": 168,
|
|
1347
|
-
"javascript":
|
|
1374
|
+
"javascript": 2664360,
|
|
1348
1375
|
"share-init": 336,
|
|
1349
1376
|
"runtime": 22032
|
|
1350
1377
|
},
|
|
@@ -1361,7 +1388,7 @@
|
|
|
1361
1388
|
"auxiliaryFiles": [
|
|
1362
1389
|
"main.js.map"
|
|
1363
1390
|
],
|
|
1364
|
-
"hash": "
|
|
1391
|
+
"hash": "53586bd43e22a588",
|
|
1365
1392
|
"childrenByOrder": {}
|
|
1366
1393
|
},
|
|
1367
1394
|
{
|
|
@@ -1370,9 +1397,9 @@
|
|
|
1370
1397
|
"entry": false,
|
|
1371
1398
|
"recorded": false,
|
|
1372
1399
|
"reason": "split chunk (cache group: default)",
|
|
1373
|
-
"size":
|
|
1400
|
+
"size": 116185,
|
|
1374
1401
|
"sizes": {
|
|
1375
|
-
"javascript":
|
|
1402
|
+
"javascript": 116185
|
|
1376
1403
|
},
|
|
1377
1404
|
"names": [],
|
|
1378
1405
|
"idHints": [],
|
|
@@ -1386,7 +1413,7 @@
|
|
|
1386
1413
|
"auxiliaryFiles": [
|
|
1387
1414
|
"8882.js.map"
|
|
1388
1415
|
],
|
|
1389
|
-
"hash": "
|
|
1416
|
+
"hash": "04d2462c0d9d01e6",
|
|
1390
1417
|
"childrenByOrder": {}
|
|
1391
1418
|
},
|
|
1392
1419
|
{
|
|
@@ -1593,33 +1620,6 @@
|
|
|
1593
1620
|
"auxiliaryFiles": [],
|
|
1594
1621
|
"hash": "c31b082d3fd3243f",
|
|
1595
1622
|
"childrenByOrder": {}
|
|
1596
|
-
},
|
|
1597
|
-
{
|
|
1598
|
-
"rendered": true,
|
|
1599
|
-
"initial": false,
|
|
1600
|
-
"entry": false,
|
|
1601
|
-
"recorded": false,
|
|
1602
|
-
"reason": "split chunk (cache group: defaultVendors)",
|
|
1603
|
-
"size": 2353875,
|
|
1604
|
-
"sizes": {
|
|
1605
|
-
"javascript": 2353875
|
|
1606
|
-
},
|
|
1607
|
-
"names": [],
|
|
1608
|
-
"idHints": [
|
|
1609
|
-
"vendors"
|
|
1610
|
-
],
|
|
1611
|
-
"runtime": [
|
|
1612
|
-
"@ampath/esm-patient-registration-app",
|
|
1613
|
-
"main"
|
|
1614
|
-
],
|
|
1615
|
-
"files": [
|
|
1616
|
-
"9933.js"
|
|
1617
|
-
],
|
|
1618
|
-
"auxiliaryFiles": [
|
|
1619
|
-
"9933.js.map"
|
|
1620
|
-
],
|
|
1621
|
-
"hash": "65e8cfc6afd4743c",
|
|
1622
|
-
"childrenByOrder": {}
|
|
1623
1623
|
}
|
|
1624
1624
|
]
|
|
1625
1625
|
}
|
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=2.2.0"},"pages":[{"component":"root","route":"patient-registration","online":true,"offline":true},{"component":"editPatient","routeRegex":"patient\\/([a-zA-Z0-9\\-]+)\\/edit","online":true,"offline":true}],"extensions":[{"component":"addPatientLink","name":"add-patient-action","slot":"top-nav-actions-slot","online":true,"offline":true,"order":30},{"component":"patientPhotoExtension","name":"patient-photo-widget","slot":"patient-photo-slot","online":true,"offline":true},{"component":"editPatientDetailsButton","name":"edit-patient-details-button","slot":"patient-actions-slot","online":true,"offline":true},{"component":"editPatientDetailsButton","name":"edit-patient-details-button","slot":"patient-search-actions-slot","online":true,"offline":true},{"component":"clientRegistryVerificationTag","name":"client-registry-verification-tag","slot":"patient-banner-tags-slot","online":true,"offline":true}],"modals":[{"name":"cancel-patient-edit-modal","component":"cancelPatientEditModal"},{"name":"delete-identifier-confirmation-modal","component":"deleteIdentifierConfirmationModal"},{"name":"client-registry-verification-modal","component":"clientRegistryVerificationModal"}],"version":"9.2.0-next.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=2.2.0"},"pages":[{"component":"root","route":"patient-registration","online":true,"offline":true},{"component":"editPatient","routeRegex":"patient\\/([a-zA-Z0-9\\-]+)\\/edit","online":true,"offline":true}],"extensions":[{"component":"addPatientLink","name":"add-patient-action","slot":"top-nav-actions-slot","online":true,"offline":true,"order":30},{"component":"patientPhotoExtension","name":"patient-photo-widget","slot":"patient-photo-slot","online":true,"offline":true},{"component":"editPatientDetailsButton","name":"edit-patient-details-button","slot":"patient-actions-slot","online":true,"offline":true},{"component":"editPatientDetailsButton","name":"edit-patient-details-button","slot":"patient-search-actions-slot","online":true,"offline":true},{"component":"clientRegistryVerificationTag","name":"client-registry-verification-tag","slot":"patient-banner-tags-slot","online":true,"offline":true}],"modals":[{"name":"cancel-patient-edit-modal","component":"cancelPatientEditModal"},{"name":"delete-identifier-confirmation-modal","component":"deleteIdentifierConfirmationModal"},{"name":"client-registry-verification-modal","component":"clientRegistryVerificationModal"}],"version":"9.2.0-next.18"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
|
+
import { HieClient, type HieDependant } from '../../types';
|
|
3
|
+
import { Table, TableHead, TableRow, TableHeader, TableBody, TableCell } from '@carbon/react';
|
|
4
|
+
|
|
5
|
+
interface ClientDependantsListProps {
|
|
6
|
+
hieDependants: HieDependant[];
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const ClientDependantList: React.FC<ClientDependantsListProps> = ({ hieDependants }) => {
|
|
10
|
+
const dependants = useMemo(() => generateDependantList(hieDependants), [hieDependants]);
|
|
11
|
+
if (!hieDependants) {
|
|
12
|
+
return <>No dependants</>;
|
|
13
|
+
}
|
|
14
|
+
function generateDependantList(hieDependants: HieDependant[]) {
|
|
15
|
+
const dependants = [];
|
|
16
|
+
hieDependants.forEach((dep) => {
|
|
17
|
+
dependants.push({
|
|
18
|
+
...dep.result[0],
|
|
19
|
+
relationship: dep.relationship,
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
return dependants;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
return (
|
|
26
|
+
<>
|
|
27
|
+
<Table>
|
|
28
|
+
<TableHead>
|
|
29
|
+
<TableRow>
|
|
30
|
+
<TableHeader>No</TableHeader>
|
|
31
|
+
<TableHeader>CR</TableHeader>
|
|
32
|
+
<TableHeader>Relationship</TableHeader>
|
|
33
|
+
<TableHeader>Full Name</TableHeader>
|
|
34
|
+
<TableHeader>Gender</TableHeader>
|
|
35
|
+
<TableHeader>Date of Birth</TableHeader>
|
|
36
|
+
</TableRow>
|
|
37
|
+
</TableHead>
|
|
38
|
+
<TableBody>
|
|
39
|
+
{dependants.map((dep, index) => (
|
|
40
|
+
<TableRow id={dep.id}>
|
|
41
|
+
<TableCell>{index + 1}</TableCell>
|
|
42
|
+
<TableCell>{dep.id}</TableCell>
|
|
43
|
+
<TableCell>{dep.relationship}</TableCell>
|
|
44
|
+
<TableCell>{`${dep.first_name} ${dep.middle_name} ${dep.last_name}`}</TableCell>
|
|
45
|
+
<TableCell>{dep.gender}</TableCell>
|
|
46
|
+
<TableCell>{dep.date_of_birth}</TableCell>
|
|
47
|
+
</TableRow>
|
|
48
|
+
))}
|
|
49
|
+
</TableBody>
|
|
50
|
+
</Table>
|
|
51
|
+
</>
|
|
52
|
+
);
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export default ClientDependantList;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
|
+
import { type HieClient } from '../types';
|
|
3
|
+
import { DataTable, Table, TableHead, TableRow, TableHeader, TableBody, TableCell } from '@carbon/react';
|
|
4
|
+
import { generateHieClientDetails } from '../hie-client-adapter';
|
|
5
|
+
|
|
6
|
+
interface ClientdetailsProps {
|
|
7
|
+
client: HieClient;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const ClientDetails: React.FC<ClientdetailsProps> = ({ client }) => {
|
|
11
|
+
const clientDetails = useMemo(() => generateHieClientDetails(client), [client]);
|
|
12
|
+
|
|
13
|
+
if (!client || !clientDetails) {
|
|
14
|
+
return (
|
|
15
|
+
<>
|
|
16
|
+
<h4>No patient Data to Display</h4>
|
|
17
|
+
</>
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
return (
|
|
21
|
+
<>
|
|
22
|
+
<Table>
|
|
23
|
+
<TableHead>
|
|
24
|
+
<TableRow>
|
|
25
|
+
<TableHeader>Field</TableHeader>
|
|
26
|
+
<TableHeader>Value</TableHeader>
|
|
27
|
+
</TableRow>
|
|
28
|
+
</TableHead>
|
|
29
|
+
<TableBody>
|
|
30
|
+
{Object.keys(clientDetails).map((key) => (
|
|
31
|
+
<TableRow>
|
|
32
|
+
<TableCell>{key}</TableCell>
|
|
33
|
+
<TableCell>{clientDetails[key]}</TableCell>
|
|
34
|
+
</TableRow>
|
|
35
|
+
))}
|
|
36
|
+
</TableBody>
|
|
37
|
+
</Table>
|
|
38
|
+
</>
|
|
39
|
+
);
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export default ClientDetails;
|