@openmrs/esm-patient-immunizations-app 11.3.1-patch.9310 → 11.3.1-patch.9508

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/.turbo/turbo-build.log +20 -23
  2. package/README.md +170 -1
  3. package/dist/3606.js +1 -1
  4. package/dist/3606.js.map +1 -1
  5. package/dist/3677.js +1 -1
  6. package/dist/3677.js.map +1 -1
  7. package/dist/4055.js +1 -1
  8. package/dist/439.js +1 -0
  9. package/dist/5134.js +2 -0
  10. package/dist/5134.js.map +1 -0
  11. package/dist/5670.js +1 -1
  12. package/dist/5670.js.map +1 -1
  13. package/dist/5858.js +1 -0
  14. package/dist/5858.js.map +1 -0
  15. package/dist/6589.js +1 -0
  16. package/dist/795.js +1 -1
  17. package/dist/795.js.map +1 -1
  18. package/dist/8371.js +1 -0
  19. package/dist/main.js +1 -1
  20. package/dist/main.js.map +1 -1
  21. package/dist/openmrs-esm-patient-immunizations-app.js +1 -1
  22. package/dist/openmrs-esm-patient-immunizations-app.js.buildmanifest.json +122 -56
  23. package/dist/routes.json +1 -1
  24. package/package.json +2 -2
  25. package/src/immunizations/immunization-history-dashboard.component.tsx +12 -10
  26. package/src/immunizations/immunizations-detailed-summary.component.tsx +2 -2
  27. package/src/immunizations/immunizations-detailed-summary.test.tsx +8 -24
  28. package/src/immunizations/immunizations-form.test.tsx +8 -14
  29. package/src/immunizations/immunizations-form.workspace.tsx +162 -157
  30. package/src/immunizations/immunizations-overview.component.tsx +2 -2
  31. package/src/routes.json +6 -12
  32. package/translations/cs.json +47 -0
  33. package/translations/fr.json +4 -4
  34. package/translations/sq.json +47 -0
  35. package/translations/zh_TW.json +47 -0
  36. package/dist/1268.js +0 -2
  37. package/dist/1268.js.map +0 -1
  38. package/dist/7955.js +0 -1
  39. package/dist/7955.js.map +0 -1
  40. /package/dist/{1268.js.LICENSE.txt → 5134.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- var _openmrs_esm_patient_immunizations_app;(()=>{"use strict";var e,r,t,n,o,a,i,s,l,u,p,f,d,c,m,h,v,g,b,y,w,_={1674:(e,r,t)=>{var n={"./start":()=>Promise.all([t.e(795),t.e(7575),t.e(1343),t.e(9152),t.e(3677)]).then((()=>()=>t(93677)))},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})}},P={};function j(e){var r=P[e];if(void 0!==r)return r.exports;var t=P[e]={id:e,exports:{}};return _[e].call(t.exports,t,t.exports,j),t.exports}j.m=_,j.c=P,j.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return j.d(r,{a:r}),r},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,j.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);j.r(o);var a={};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=>a[e]=()=>t[e]));return a.default=()=>t,j.d(o,a),o},j.d=(e,r)=>{for(var t in r)j.o(r,t)&&!j.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},j.f={},j.e=e=>Promise.all(Object.keys(j.f).reduce(((r,t)=>(j.f[t](e,r),r)),[])),j.u=e=>e+".js",j.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),j.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},n="@openmrs/esm-patient-immunizations-app:",j.l=(e,r,o,a)=>{if(t[e])t[e].push(r);else{var i,s;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var p=l[u];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==n+o){i=p;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,j.nc&&i.setAttribute("nonce",j.nc),i.setAttribute("data-webpack",n+o),i.src=e),t[e]=[r];var f=(r,n)=>{i.onerror=i.onload=null,clearTimeout(d);var o=t[e];if(delete t[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),s&&document.head.appendChild(i)}},j.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{j.S={};var e={},r={};j.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];j.o(j.S,t)||(j.S[t]={});var a=j.S[t],i="@openmrs/esm-patient-immunizations-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})},l=[];return"default"===t&&(s("@openmrs/esm-framework","8.0.1-pre.3485",(()=>Promise.all([j.e(1123),j.e(1268),j.e(795),j.e(5670),j.e(5434),j.e(1343),j.e(7109),j.e(9152)]).then((()=>()=>j(55670))))),s("@openmrs/esm-patient-common-lib","11.3.1-patch.9310",(()=>Promise.all([j.e(1123),j.e(1268),j.e(795),j.e(5434),j.e(1343),j.e(7109),j.e(9152),j.e(7955),j.e(3833)]).then((()=>()=>j(27955))))),s("dayjs","1.11.13",(()=>j.e(3464).then((()=>()=>j(23464))))),s("react-i18next","16.0.0",(()=>Promise.all([j.e(6336),j.e(1343)]).then((()=>()=>j(16336))))),s("react-router-dom","6.16.0",(()=>Promise.all([j.e(2913),j.e(1343)]).then((()=>()=>j(52913))))),s("react","18.3.1",(()=>j.e(4041).then((()=>()=>j(14041))))),s("rxjs","6.6.7",(()=>j.e(2457).then((()=>()=>j(82457))))),s("swr/_internal","2.2.5",(()=>Promise.all([j.e(2372),j.e(1343)]).then((()=>()=>j(42372))))),s("swr/immutable","2.2.5",(()=>Promise.all([j.e(5434),j.e(1343),j.e(7495)]).then((()=>()=>j(29876))))),s("swr/infinite","2.2.5",(()=>Promise.all([j.e(5434),j.e(1343),j.e(89)]).then((()=>()=>j(52470)))))),e[t]=l.length?Promise.all(l).then((()=>e[t]=1)):1}}})(),(()=>{var e;j.g.importScripts&&(e=j.g.location+"");var r=j.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(/\/[^\/]+$/,"/"),j.p=e})(),o=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},a=(e,r)=>{e=o(e),r=o(r);for(var t=0;;){if(t>=e.length)return t<r.length&&"u"!=(typeof r[t])[0];var n=e[t],a=(typeof n)[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&&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,o=1;o<e.length;o++)n--,t+="u"==(typeof(s=e[o]))[0]?"-":(n>0?".":"")+(n=2,s);return t}var a=[];for(o=1;o<e.length;o++){var s=e[o];a.push(0===s?"not("+l()+")":1===s?"("+l()+" || "+l()+")":2===s?a.pop()+" "+a.pop():i(s))}return l();function l(){return a.pop().replace(/^\((.+)\)$/,"$1")}},s=(e,r)=>{if(0 in e){r=o(r);var t=e[0],n=t<0;n&&(t=-t-1);for(var a=0,i=1,l=!0;;i++,a++){var u,p,f=i<e.length?(typeof e[i])[0]:"";if(a>=r.length||"o"==(p=(typeof(u=r[a]))[0]))return!l||("u"==f?i>t&&!n:""==f!=n);if("u"==p){if(!l||"u"!=f)return!1}else if(l)if(f==p)if(i<=t){if(u!=e[i])return!1}else{if(n?u>e[i]:u<e[i])return!1;u!=e[i]&&(l=!1)}else if("s"!=f&&"n"!=f){if(n||i<=t)return!1;l=!1,i--}else{if(i<=t||p<f!=n)return!1;l=!1}else"s"!=f&&"n"!=f&&(l=!1,i--)}}var d=[],c=d.pop.bind(d);for(a=1;a<e.length;a++){var m=e[a];d.push(1==m?c()|c():2==m?c()&c():m?s(m,r):!c())}return!!c()},l=(e,r)=>e&&j.o(e,r),u=e=>(e.loaded=1,e.get()),p=e=>Object.keys(e).reduce(((r,t)=>(e[t].eager&&(r[t]=e[t]),r)),{}),f=(e,r,t)=>{var n=t?p(e[r]):e[r];return Object.keys(n).reduce(((e,r)=>!e||!n[e].loaded&&a(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)+")",c=e=>{throw new Error(e)},m=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},h=(e,r,t)=>t?t():((e,r)=>c("Shared module "+r+" doesn't exist in shared scope "+e))(e,r),v=(e=>function(r,t,n,o,a){var i=j.I(r);return i&&i.then&&!n?i.then(e.bind(e,r,j.S[r],t,!1,o,a)):e(r,j.S[r],t,n,o,a)})(((e,r,t,n,o,a)=>{if(!l(r,t))return h(e,t,a);var i=f(r,t,n);return s(o,i)||m(d(r,t,i,o)),u(r[t][i])})),g={},b={55434:()=>v("default","swr/_internal",!1,[1,2],(()=>j.e(2372).then((()=>()=>j(42372))))),1343:()=>v("default","react",!1,[1,18],(()=>j.e(4041).then((()=>()=>j(14041))))),8877:()=>v("default","react-router-dom",!1,[1,6],(()=>j.e(2913).then((()=>()=>j(52913))))),88010:()=>v("default","swr/immutable",!1,[1,2],(()=>j.e(9876).then((()=>()=>j(29876))))),98394:()=>v("default","swr/infinite",!1,[1,2],(()=>j.e(2470).then((()=>()=>j(52470))))),24818:()=>v("default","rxjs",!1,[1,6],(()=>j.e(2457).then((()=>()=>j(82457))))),46372:()=>v("default","dayjs",!1,[1,1],(()=>j.e(3464).then((()=>()=>j(23464))))),54440:()=>v("default","@openmrs/esm-framework",!1,[1,8],(()=>Promise.all([j.e(1123),j.e(1268),j.e(5670),j.e(5434),j.e(7109)]).then((()=>()=>j(55670))))),72339:()=>v("default","react-i18next",!1,[1,16],(()=>j.e(6336).then((()=>()=>j(16336))))),36274:()=>v("default","@openmrs/esm-patient-common-lib",!1,[1,11],(()=>Promise.all([j.e(1123),j.e(1268),j.e(5434),j.e(7109),j.e(7955)]).then((()=>()=>j(27955)))))},y={1343:[1343],3677:[36274],5434:[55434],7109:[8877,88010,98394],9152:[24818,46372,54440,72339]},w={},j.f.consumes=(e,r)=>{j.o(y,e)&&y[e].forEach((e=>{if(j.o(g,e))return r.push(g[e]);if(!w[e]){var t=r=>{g[e]=0,j.m[e]=t=>{delete j.c[e],t.exports=r()}};w[e]=!0;var n=r=>{delete g[e],j.m[e]=t=>{throw delete j.c[e],r}};try{var o=b[e]();o.then?r.push(g[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}}))},(()=>{var e={9271:0};j.f.j=(r,t)=>{var n=j.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(1343|5434|7109|9152)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=j.p+j.u(r),i=new Error;j.l(a,(t=>{if(j.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,l=0;if(a.some((r=>0!==e[r]))){for(n in i)j.o(i,n)&&(j.m[n]=i[n]);s&&s(j)}for(r&&r(t);l<a.length;l++)o=a[l],j.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=globalThis.webpackChunk_openmrs_esm_patient_immunizations_app=globalThis.webpackChunk_openmrs_esm_patient_immunizations_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),j.nc=void 0;var S=j(1674);_openmrs_esm_patient_immunizations_app=S})();
1
+ var _openmrs_esm_patient_immunizations_app;(()=>{"use strict";var e,r,t,n,o,a,i,s,l,u,p,f,d,c,m,h,v,g,b,y,w,_={1674:(e,r,t)=>{var n={"./start":()=>Promise.all([t.e(795),t.e(7575),t.e(1343),t.e(9152),t.e(3677)]).then((()=>()=>t(93677)))},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})}},P={};function j(e){var r=P[e];if(void 0!==r)return r.exports;var t=P[e]={id:e,exports:{}};return _[e].call(t.exports,t,t.exports,j),t.exports}j.m=_,j.c=P,j.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return j.d(r,{a:r}),r},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,j.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);j.r(o);var a={};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=>a[e]=()=>t[e]));return a.default=()=>t,j.d(o,a),o},j.d=(e,r)=>{for(var t in r)j.o(r,t)&&!j.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},j.f={},j.e=e=>Promise.all(Object.keys(j.f).reduce(((r,t)=>(j.f[t](e,r),r)),[])),j.u=e=>e+".js",j.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),j.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},n="@openmrs/esm-patient-immunizations-app:",j.l=(e,r,o,a)=>{if(t[e])t[e].push(r);else{var i,s;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var p=l[u];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==n+o){i=p;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,j.nc&&i.setAttribute("nonce",j.nc),i.setAttribute("data-webpack",n+o),i.src=e),t[e]=[r];var f=(r,n)=>{i.onerror=i.onload=null,clearTimeout(d);var o=t[e];if(delete t[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),s&&document.head.appendChild(i)}},j.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{j.S={};var e={},r={};j.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];j.o(j.S,t)||(j.S[t]={});var a=j.S[t],i="@openmrs/esm-patient-immunizations-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})},l=[];return"default"===t&&(s("@openmrs/esm-framework","8.0.1-pre.3554",(()=>Promise.all([j.e(1123),j.e(5134),j.e(795),j.e(5670),j.e(5434),j.e(1343),j.e(7109),j.e(9152)]).then((()=>()=>j(55670))))),s("@openmrs/esm-patient-common-lib","11.3.1-patch.9508",(()=>Promise.all([j.e(1123),j.e(5134),j.e(795),j.e(5434),j.e(1343),j.e(7109),j.e(9152),j.e(5858),j.e(3833)]).then((()=>()=>j(75858))))),s("dayjs","1.11.13",(()=>j.e(3464).then((()=>()=>j(23464))))),s("react-i18next","16.0.0",(()=>Promise.all([j.e(6336),j.e(1343)]).then((()=>()=>j(16336))))),s("react-router-dom","6.16.0",(()=>Promise.all([j.e(2913),j.e(1343)]).then((()=>()=>j(52913))))),s("react","18.3.1",(()=>j.e(4041).then((()=>()=>j(14041))))),s("rxjs","6.6.7",(()=>j.e(2457).then((()=>()=>j(82457))))),s("swr/_internal","2.2.5",(()=>Promise.all([j.e(2372),j.e(1343)]).then((()=>()=>j(42372))))),s("swr/immutable","2.2.5",(()=>Promise.all([j.e(5434),j.e(1343),j.e(7495)]).then((()=>()=>j(29876))))),s("swr/infinite","2.2.5",(()=>Promise.all([j.e(5434),j.e(1343),j.e(89)]).then((()=>()=>j(52470)))))),e[t]=l.length?Promise.all(l).then((()=>e[t]=1)):1}}})(),(()=>{var e;j.g.importScripts&&(e=j.g.location+"");var r=j.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(/\/[^\/]+$/,"/"),j.p=e})(),o=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},a=(e,r)=>{e=o(e),r=o(r);for(var t=0;;){if(t>=e.length)return t<r.length&&"u"!=(typeof r[t])[0];var n=e[t],a=(typeof n)[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&&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,o=1;o<e.length;o++)n--,t+="u"==(typeof(s=e[o]))[0]?"-":(n>0?".":"")+(n=2,s);return t}var a=[];for(o=1;o<e.length;o++){var s=e[o];a.push(0===s?"not("+l()+")":1===s?"("+l()+" || "+l()+")":2===s?a.pop()+" "+a.pop():i(s))}return l();function l(){return a.pop().replace(/^\((.+)\)$/,"$1")}},s=(e,r)=>{if(0 in e){r=o(r);var t=e[0],n=t<0;n&&(t=-t-1);for(var a=0,i=1,l=!0;;i++,a++){var u,p,f=i<e.length?(typeof e[i])[0]:"";if(a>=r.length||"o"==(p=(typeof(u=r[a]))[0]))return!l||("u"==f?i>t&&!n:""==f!=n);if("u"==p){if(!l||"u"!=f)return!1}else if(l)if(f==p)if(i<=t){if(u!=e[i])return!1}else{if(n?u>e[i]:u<e[i])return!1;u!=e[i]&&(l=!1)}else if("s"!=f&&"n"!=f){if(n||i<=t)return!1;l=!1,i--}else{if(i<=t||p<f!=n)return!1;l=!1}else"s"!=f&&"n"!=f&&(l=!1,i--)}}var d=[],c=d.pop.bind(d);for(a=1;a<e.length;a++){var m=e[a];d.push(1==m?c()|c():2==m?c()&c():m?s(m,r):!c())}return!!c()},l=(e,r)=>e&&j.o(e,r),u=e=>(e.loaded=1,e.get()),p=e=>Object.keys(e).reduce(((r,t)=>(e[t].eager&&(r[t]=e[t]),r)),{}),f=(e,r,t)=>{var n=t?p(e[r]):e[r];return Object.keys(n).reduce(((e,r)=>!e||!n[e].loaded&&a(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)+")",c=e=>{throw new Error(e)},m=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},h=(e,r,t)=>t?t():((e,r)=>c("Shared module "+r+" doesn't exist in shared scope "+e))(e,r),v=(e=>function(r,t,n,o,a){var i=j.I(r);return i&&i.then&&!n?i.then(e.bind(e,r,j.S[r],t,!1,o,a)):e(r,j.S[r],t,n,o,a)})(((e,r,t,n,o,a)=>{if(!l(r,t))return h(e,t,a);var i=f(r,t,n);return s(o,i)||m(d(r,t,i,o)),u(r[t][i])})),g={},b={55434:()=>v("default","swr/_internal",!1,[1,2],(()=>j.e(2372).then((()=>()=>j(42372))))),1343:()=>v("default","react",!1,[1,18],(()=>j.e(4041).then((()=>()=>j(14041))))),8877:()=>v("default","react-router-dom",!1,[1,6],(()=>j.e(2913).then((()=>()=>j(52913))))),88010:()=>v("default","swr/immutable",!1,[1,2],(()=>j.e(9876).then((()=>()=>j(29876))))),98394:()=>v("default","swr/infinite",!1,[1,2],(()=>j.e(2470).then((()=>()=>j(52470))))),24818:()=>v("default","rxjs",!1,[1,6],(()=>j.e(2457).then((()=>()=>j(82457))))),46372:()=>v("default","dayjs",!1,[1,1],(()=>j.e(3464).then((()=>()=>j(23464))))),54440:()=>v("default","@openmrs/esm-framework",!1,[1,8],(()=>Promise.all([j.e(1123),j.e(5134),j.e(5670),j.e(5434),j.e(7109)]).then((()=>()=>j(55670))))),72339:()=>v("default","react-i18next",!1,[1,16],(()=>j.e(6336).then((()=>()=>j(16336))))),36274:()=>v("default","@openmrs/esm-patient-common-lib",!1,[1,11],(()=>Promise.all([j.e(1123),j.e(5134),j.e(5434),j.e(7109),j.e(5858)]).then((()=>()=>j(75858)))))},y={1343:[1343],3677:[36274],5434:[55434],7109:[8877,88010,98394],9152:[24818,46372,54440,72339]},w={},j.f.consumes=(e,r)=>{j.o(y,e)&&y[e].forEach((e=>{if(j.o(g,e))return r.push(g[e]);if(!w[e]){var t=r=>{g[e]=0,j.m[e]=t=>{delete j.c[e],t.exports=r()}};w[e]=!0;var n=r=>{delete g[e],j.m[e]=t=>{throw delete j.c[e],r}};try{var o=b[e]();o.then?r.push(g[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}}))},(()=>{var e={9271:0};j.f.j=(r,t)=>{var n=j.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(1343|5434|7109|9152)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=j.p+j.u(r),i=new Error;j.l(a,(t=>{if(j.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,l=0;if(a.some((r=>0!==e[r]))){for(n in i)j.o(i,n)&&(j.m[n]=i[n]);s&&s(j)}for(r&&r(t);l<a.length;l++)o=a[l],j.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=globalThis.webpackChunk_openmrs_esm_patient_immunizations_app=globalThis.webpackChunk_openmrs_esm_patient_immunizations_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),j.nc=void 0;var S=j(1674);_openmrs_esm_patient_immunizations_app=S})();
@@ -24,6 +24,28 @@
24
24
  "hash": "bce97062630faf52",
25
25
  "childrenByOrder": {}
26
26
  },
27
+ {
28
+ "rendered": true,
29
+ "initial": false,
30
+ "entry": false,
31
+ "recorded": false,
32
+ "size": 1740,
33
+ "sizes": {
34
+ "javascript": 1740
35
+ },
36
+ "names": [],
37
+ "idHints": [],
38
+ "runtime": [
39
+ "@openmrs/esm-patient-immunizations-app",
40
+ "main"
41
+ ],
42
+ "files": [
43
+ "439.js"
44
+ ],
45
+ "auxiliaryFiles": [],
46
+ "hash": "029f2dd9cf653e5b",
47
+ "childrenByOrder": {}
48
+ },
27
49
  {
28
50
  "rendered": true,
29
51
  "initial": false,
@@ -70,7 +92,7 @@
70
92
  "auxiliaryFiles": [
71
93
  "795.js.map"
72
94
  ],
73
- "hash": "831dbfbc0f57629c",
95
+ "hash": "047014571aeac188",
74
96
  "childrenByOrder": {}
75
97
  },
76
98
  {
@@ -188,33 +210,6 @@
188
210
  "hash": "e7b5c99d526bc9f8",
189
211
  "childrenByOrder": {}
190
212
  },
191
- {
192
- "rendered": true,
193
- "initial": false,
194
- "entry": false,
195
- "recorded": false,
196
- "reason": "split chunk (cache group: defaultVendors)",
197
- "size": 4237949,
198
- "sizes": {
199
- "javascript": 4237949
200
- },
201
- "names": [],
202
- "idHints": [
203
- "vendors"
204
- ],
205
- "runtime": [
206
- "@openmrs/esm-patient-immunizations-app",
207
- "main"
208
- ],
209
- "files": [
210
- "1268.js"
211
- ],
212
- "auxiliaryFiles": [
213
- "1268.js.map"
214
- ],
215
- "hash": "dc71c011cfbe62ed",
216
- "childrenByOrder": {}
217
- },
218
213
  {
219
214
  "rendered": false,
220
215
  "initial": false,
@@ -480,9 +475,9 @@
480
475
  "initial": false,
481
476
  "entry": false,
482
477
  "recorded": false,
483
- "size": 64085,
478
+ "size": 64175,
484
479
  "sizes": {
485
- "javascript": 64085
480
+ "javascript": 64175
486
481
  },
487
482
  "names": [],
488
483
  "idHints": [],
@@ -496,7 +491,7 @@
496
491
  "auxiliaryFiles": [
497
492
  "3606.js.map"
498
493
  ],
499
- "hash": "d4009957d341043f",
494
+ "hash": "25bb5441d6a8dd15",
500
495
  "childrenByOrder": {}
501
496
  },
502
497
  {
@@ -504,9 +499,9 @@
504
499
  "initial": false,
505
500
  "entry": false,
506
501
  "recorded": false,
507
- "size": 127979,
502
+ "size": 128086,
508
503
  "sizes": {
509
- "javascript": 127937,
504
+ "javascript": 128044,
510
505
  "consume-shared": 42
511
506
  },
512
507
  "names": [],
@@ -520,7 +515,7 @@
520
515
  "auxiliaryFiles": [
521
516
  "3677.js.map"
522
517
  ],
523
- "hash": "67dd04e64be2e535",
518
+ "hash": "e5d1dea04404f517",
524
519
  "childrenByOrder": {}
525
520
  },
526
521
  {
@@ -544,7 +539,7 @@
544
539
  "auxiliaryFiles": [
545
540
  "3679.js.map"
546
541
  ],
547
- "hash": "9619efca14c898ad",
542
+ "hash": "2b2a8c3ae0686034",
548
543
  "childrenByOrder": {}
549
544
  },
550
545
  {
@@ -600,9 +595,9 @@
600
595
  "initial": false,
601
596
  "entry": false,
602
597
  "recorded": false,
603
- "size": 1956,
598
+ "size": 1964,
604
599
  "sizes": {
605
- "javascript": 1956
600
+ "javascript": 1964
606
601
  },
607
602
  "names": [],
608
603
  "idHints": [],
@@ -614,7 +609,7 @@
614
609
  "4055.js"
615
610
  ],
616
611
  "auxiliaryFiles": [],
617
- "hash": "2d84845a864925a6",
612
+ "hash": "76dc35954ef7de0c",
618
613
  "childrenByOrder": {}
619
614
  },
620
615
  {
@@ -749,6 +744,33 @@
749
744
  "hash": "39fdc2791f0786e1",
750
745
  "childrenByOrder": {}
751
746
  },
747
+ {
748
+ "rendered": true,
749
+ "initial": false,
750
+ "entry": false,
751
+ "recorded": false,
752
+ "reason": "split chunk (cache group: defaultVendors)",
753
+ "size": 4246416,
754
+ "sizes": {
755
+ "javascript": 4246416
756
+ },
757
+ "names": [],
758
+ "idHints": [
759
+ "vendors"
760
+ ],
761
+ "runtime": [
762
+ "@openmrs/esm-patient-immunizations-app",
763
+ "main"
764
+ ],
765
+ "files": [
766
+ "5134.js"
767
+ ],
768
+ "auxiliaryFiles": [
769
+ "5134.js.map"
770
+ ],
771
+ "hash": "745f248edbad2212",
772
+ "childrenByOrder": {}
773
+ },
752
774
  {
753
775
  "rendered": true,
754
776
  "initial": false,
@@ -882,7 +904,32 @@
882
904
  "auxiliaryFiles": [
883
905
  "5670.js.map"
884
906
  ],
885
- "hash": "c439cdd9c913e7bd",
907
+ "hash": "9b40df7991c769a0",
908
+ "childrenByOrder": {}
909
+ },
910
+ {
911
+ "rendered": true,
912
+ "initial": false,
913
+ "entry": false,
914
+ "recorded": false,
915
+ "reason": "reused as split chunk (cache group: default)",
916
+ "size": 240774,
917
+ "sizes": {
918
+ "javascript": 240774
919
+ },
920
+ "names": [],
921
+ "idHints": [],
922
+ "runtime": [
923
+ "@openmrs/esm-patient-immunizations-app",
924
+ "main"
925
+ ],
926
+ "files": [
927
+ "5858.js"
928
+ ],
929
+ "auxiliaryFiles": [
930
+ "5858.js.map"
931
+ ],
932
+ "hash": "6d712540bc8daebc",
886
933
  "childrenByOrder": {}
887
934
  },
888
935
  {
@@ -956,6 +1003,28 @@
956
1003
  "hash": "9440f060a2880ba1",
957
1004
  "childrenByOrder": {}
958
1005
  },
1006
+ {
1007
+ "rendered": true,
1008
+ "initial": false,
1009
+ "entry": false,
1010
+ "recorded": false,
1011
+ "size": 1740,
1012
+ "sizes": {
1013
+ "javascript": 1740
1014
+ },
1015
+ "names": [],
1016
+ "idHints": [],
1017
+ "runtime": [
1018
+ "@openmrs/esm-patient-immunizations-app",
1019
+ "main"
1020
+ ],
1021
+ "files": [
1022
+ "6589.js"
1023
+ ],
1024
+ "auxiliaryFiles": [],
1025
+ "hash": "e1a457386251ba05",
1026
+ "childrenByOrder": {}
1027
+ },
959
1028
  {
960
1029
  "rendered": true,
961
1030
  "initial": false,
@@ -1191,10 +1260,9 @@
1191
1260
  "initial": false,
1192
1261
  "entry": false,
1193
1262
  "recorded": false,
1194
- "reason": "reused as split chunk (cache group: default)",
1195
- "size": 245358,
1263
+ "size": 1740,
1196
1264
  "sizes": {
1197
- "javascript": 245358
1265
+ "javascript": 1740
1198
1266
  },
1199
1267
  "names": [],
1200
1268
  "idHints": [],
@@ -1203,12 +1271,10 @@
1203
1271
  "main"
1204
1272
  ],
1205
1273
  "files": [
1206
- "7955.js"
1207
- ],
1208
- "auxiliaryFiles": [
1209
- "7955.js.map"
1274
+ "8163.js"
1210
1275
  ],
1211
- "hash": "f6dfd0c189369e04",
1276
+ "auxiliaryFiles": [],
1277
+ "hash": "e1b20649a68393db",
1212
1278
  "childrenByOrder": {}
1213
1279
  },
1214
1280
  {
@@ -1227,10 +1293,10 @@
1227
1293
  "main"
1228
1294
  ],
1229
1295
  "files": [
1230
- "8163.js"
1296
+ "8349.js"
1231
1297
  ],
1232
1298
  "auxiliaryFiles": [],
1233
- "hash": "e1b20649a68393db",
1299
+ "hash": "234d929415f0aa49",
1234
1300
  "childrenByOrder": {}
1235
1301
  },
1236
1302
  {
@@ -1249,10 +1315,10 @@
1249
1315
  "main"
1250
1316
  ],
1251
1317
  "files": [
1252
- "8349.js"
1318
+ "8371.js"
1253
1319
  ],
1254
1320
  "auxiliaryFiles": [],
1255
- "hash": "234d929415f0aa49",
1321
+ "hash": "f4ee32ee19f0d9fb",
1256
1322
  "childrenByOrder": {}
1257
1323
  },
1258
1324
  {
@@ -1282,10 +1348,10 @@
1282
1348
  "initial": true,
1283
1349
  "entry": true,
1284
1350
  "recorded": false,
1285
- "size": 3086846,
1351
+ "size": 3086953,
1286
1352
  "sizes": {
1287
1353
  "consume-shared": 252,
1288
- "javascript": 3063297,
1354
+ "javascript": 3063404,
1289
1355
  "share-init": 420,
1290
1356
  "runtime": 22877
1291
1357
  },
@@ -1302,7 +1368,7 @@
1302
1368
  "auxiliaryFiles": [
1303
1369
  "main.js.map"
1304
1370
  ],
1305
- "hash": "991a4e17fa21399b",
1371
+ "hash": "3c056f62533b864a",
1306
1372
  "childrenByOrder": {}
1307
1373
  },
1308
1374
  {
@@ -1323,7 +1389,7 @@
1323
1389
  ],
1324
1390
  "files": [],
1325
1391
  "auxiliaryFiles": [],
1326
- "hash": "687ded843ecb688f",
1392
+ "hash": "18f4680cc449f39e",
1327
1393
  "childrenByOrder": {}
1328
1394
  },
1329
1395
  {
@@ -1372,7 +1438,7 @@
1372
1438
  "auxiliaryFiles": [
1373
1439
  "openmrs-esm-patient-immunizations-app.js.map"
1374
1440
  ],
1375
- "hash": "d3f02ffe25cd5521",
1441
+ "hash": "d3b25a59be0a06c2",
1376
1442
  "childrenByOrder": {}
1377
1443
  },
1378
1444
  {
package/dist/routes.json CHANGED
@@ -1 +1 @@
1
- {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=2.2.0"},"extensions":[{"name":"immunization-overview-widget","component":"immunizationsOverview","order":8},{"name":"immunization-detailed-history-card","component":"immunizationHistorySummary","slot":"patient-chart-immunizations-dashboard-slot","meta":{"fullWidth":true}},{"name":"immunization-details-widget","component":"immunizationsDetailedSummary","slot":"patient-chart-immunizations-dashboard-slot","meta":{"fullWidth":true}},{"name":"immunization-summary-dashboard","component":"immunizationsDashboardLink","slot":"patient-chart-dashboard-slot","meta":{"slot":"patient-chart-immunizations-dashboard-slot","path":"Immunizations"},"order":8}],"pages":[],"modals":[{"name":"immunization-delete-confirmation-modal","component":"deleteImmunizationConfirmationModal"}],"workspaces2":[{"name":"immunization-form-workspace","component":"immunizationFormWorkspace","window":"immunization-form-window"}],"workspaceWindows2":[{"name":"immunization-form-window","group":"patient-chart"}],"version":"11.3.1-patch.9310"}
1
+ {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=2.2.0"},"extensions":[{"name":"immunization-overview-widget","component":"immunizationsOverview","order":8},{"name":"immunization-detailed-history-card","component":"immunizationHistorySummary","slot":"patient-chart-immunizations-dashboard-slot","meta":{"fullWidth":true}},{"name":"immunization-details-widget","component":"immunizationsDetailedSummary","slot":"patient-chart-immunizations-dashboard-slot","meta":{"fullWidth":true}},{"name":"immunization-summary-dashboard","component":"immunizationsDashboardLink","slot":"patient-chart-dashboard-slot","meta":{"slot":"patient-chart-immunizations-dashboard-slot","path":"Immunizations"},"order":8}],"pages":[],"workspaces":[{"name":"immunization-form-workspace","title":"immunizationWorkspaceTitle","component":"immunizationFormWorkspace"}],"modals":[{"name":"immunization-delete-confirmation-modal","component":"deleteImmunizationConfirmationModal"}],"version":"11.3.1-patch.9508"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-patient-immunizations-app",
3
- "version": "11.3.1-patch.9310",
3
+ "version": "11.3.1-patch.9508",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Patient immunizations microfrontend for the OpenMRS SPA",
6
6
  "browser": "dist/openmrs-esm-patient-immunizations-app.js",
@@ -54,7 +54,7 @@
54
54
  "swr": "2.x"
55
55
  },
56
56
  "devDependencies": {
57
- "@openmrs/esm-patient-common-lib": "11.3.1-patch.9310",
57
+ "@openmrs/esm-patient-common-lib": "11.3.1-patch.9508",
58
58
  "webpack": "^5.99.9"
59
59
  },
60
60
  "stableVersion": "11.3.0"
@@ -14,18 +14,20 @@ const ImmunizationHistoryDashboard: React.FC<ImmunizationHistoryDashboardProps>
14
14
  const { data, error } = useImmunizations(patientUuid);
15
15
  const headerTitle = t('immunizationsHistory', 'Immunizations history');
16
16
 
17
- if (data?.length > 0) {
18
- return (
19
- <div className={styles.widgetCard}>
20
- <CardHeader title={headerTitle}>{null}</CardHeader>
21
- <div className={styles.content}>
22
- <ImmunizationHistoryCard error={error} immunizations={data} />
23
- </div>
24
- </div>
25
- );
17
+ // Return null when empty to avoid duplicate empty states.
18
+ // The main ImmunizationsDetailedSummary widget will show the empty state instead.
19
+ if (!data?.length) {
20
+ return null;
26
21
  }
27
22
 
28
- return null;
23
+ return (
24
+ <div className={styles.widgetCard}>
25
+ <CardHeader title={headerTitle}>{null}</CardHeader>
26
+ <div className={styles.content}>
27
+ <ImmunizationHistoryCard error={error} immunizations={data} />
28
+ </div>
29
+ </div>
30
+ );
29
31
  };
30
32
 
31
33
  export default ImmunizationHistoryDashboard;
@@ -20,11 +20,11 @@ import { orderBy } from 'lodash-es';
20
20
  import {
21
21
  AddIcon,
22
22
  formatDate,
23
+ launchWorkspace,
23
24
  parseDate,
24
25
  useConfig,
25
26
  useLayoutType,
26
27
  usePagination,
27
- launchWorkspace2,
28
28
  } from '@openmrs/esm-framework';
29
29
  import {
30
30
  CardHeader,
@@ -66,7 +66,7 @@ const ImmunizationsDetailedSummary: React.FC<ImmunizationsDetailedSummaryProps>
66
66
  launchStartVisitPrompt();
67
67
  return;
68
68
  }
69
- launchWorkspace2('immunization-form-workspace');
69
+ launchWorkspace('immunization-form-workspace');
70
70
  }, [visitContext, launchStartVisitPrompt]);
71
71
 
72
72
  const sortedImmunizations = useMemo(() => {
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import userEvent from '@testing-library/user-event';
3
3
  import { screen } from '@testing-library/react';
4
- import { getDefaultsFromConfigSchema, launchWorkspace2, useVisit, type VisitReturnType } from '@openmrs/esm-framework';
4
+ import { getDefaultsFromConfigSchema, launchWorkspace, useVisit, type VisitReturnType } from '@openmrs/esm-framework';
5
5
  import { configSchema } from '../config-schema';
6
6
  import { mockPatient, renderWithSwr, waitForLoadingToFinish } from 'tools';
7
7
  import ImmunizationsDetailedSummary from './immunizations-detailed-summary.component';
@@ -16,14 +16,8 @@ jest.mock('@openmrs/esm-patient-common-lib', () => ({
16
16
  usePatientChartStore: jest.fn(),
17
17
  }));
18
18
 
19
- jest.mock('@openmrs/esm-patient-common-lib', () => ({
20
- ...jest.requireActual('@openmrs/esm-patient-common-lib'),
21
- usePatientChartStore: jest.fn(),
22
- }));
23
-
24
19
  const mockUseImmunizations = jest.mocked(require('../hooks/useImmunizations').useImmunizations);
25
- const mockLaunchWorkspace = launchWorkspace2 as jest.Mock;
26
- const mockUseVisit = jest.mocked(useVisit);
20
+ const mockLaunchWorkspace = launchWorkspace as jest.Mock;
27
21
  const mockUseConfig = jest.mocked(require('@openmrs/esm-framework').useConfig);
28
22
  const mockUsePatientChartStore = jest.mocked(usePatientChartStore);
29
23
 
@@ -86,12 +80,12 @@ describe('ImmunizationsDetailedSummary', () => {
86
80
  ],
87
81
  },
88
82
  });
89
- mockUseVisit.mockReturnValue({ currentVisit: null } as VisitReturnType);
83
+
90
84
  mockUsePatientChartStore.mockReturnValue({
91
- patientUuid: 'patient-123',
92
- patient: null,
93
- visitContext: null,
94
- mutateVisitContext: jest.fn(),
85
+ patientUuid: mockPatient.id,
86
+ patient: mockPatient,
87
+ visitContext: mockCurrentVisit,
88
+ mutateVisitContext: null,
95
89
  setPatient: jest.fn(),
96
90
  setVisitContext: jest.fn(),
97
91
  });
@@ -185,19 +179,9 @@ describe('ImmunizationsDetailedSummary', () => {
185
179
  });
186
180
 
187
181
  it('opens immunization form when add button is clicked during an active visit', async () => {
188
- mockUsePatientChartStore.mockReturnValue({
189
- patientUuid: 'patient-123',
190
- patient: null,
191
- visitContext: mockCurrentVisit,
192
- mutateVisitContext: jest.fn(),
193
- setPatient: jest.fn(),
194
- setVisitContext: jest.fn(),
195
- });
196
-
197
182
  const user = userEvent.setup();
198
183
  const mockLaunchStartVisitPrompt = jest.fn();
199
- mockUseVisit.mockReturnValue({ currentVisit: { uuid: 'visit-uuid' } } as VisitReturnType);
200
- mockUseImmunizations.mockReturnValue({
184
+ mockUseImmunizations.mockReturnValueOnce({
201
185
  data: mockImmunizationData,
202
186
  isLoading: false,
203
187
  error: null,
@@ -10,7 +10,6 @@ import {
10
10
  useConfig,
11
11
  useSession,
12
12
  } from '@openmrs/esm-framework';
13
- import { type PatientWorkspace2DefinitionProps } from '@openmrs/esm-patient-common-lib';
14
13
  import { configSchema, type ImmunizationConfigObject } from '../config-schema';
15
14
  import { immunizationFormSub } from './utils';
16
15
  import { mockCurrentVisit, mockSessionDataResponse } from '__mocks__';
@@ -65,20 +64,15 @@ jest.mock('./immunizations.resource', () => ({
65
64
  savePatientImmunization: jest.fn(),
66
65
  }));
67
66
 
68
- const testProps: PatientWorkspace2DefinitionProps<{}, {}> = {
67
+ const testProps = {
68
+ patientUuid: mockPatient.id,
69
+ patient: mockPatient,
69
70
  closeWorkspace: mockCloseWorkspace,
70
- groupProps: {
71
- patientUuid: mockPatient.id,
72
- patient: mockPatient,
73
- visitContext: mockCurrentVisit,
74
- mutateVisitContext: null,
75
- },
76
- workspaceName: '',
77
- launchChildWorkspace: jest.fn(),
78
- workspaceProps: {},
79
- windowProps: {},
80
- windowName: '',
81
- isRootWorkspace: false,
71
+ closeWorkspaceWithSavedChanges: mockCloseWorkspaceWithSavedChanges,
72
+ promptBeforeClosing: mockPromptBeforeClosing,
73
+ setTitle: mockSetTitle,
74
+ visitContext: mockCurrentVisit,
75
+ mutateVisitContext: null,
82
76
  };
83
77
 
84
78
  mockUseConfig.mockReturnValue({