@mherman22/esm-act-app 1.0.1-pre.68 → 1.0.1-pre.70
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/117.js +1 -1
- package/dist/117.js.map +1 -1
- package/dist/284.js +1 -0
- package/dist/284.js.map +1 -0
- package/dist/991.js +1 -1
- package/dist/991.js.map +1 -1
- package/dist/mherman22-esm-act-app.js +1 -1
- package/dist/mherman22-esm-act-app.js.buildmanifest.json +30 -7
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/index.ts +5 -0
- package/src/prophylaxis/prophylaxis-status-tag.component.tsx +32 -0
- package/src/prophylaxis/prophylaxis-status-tag.test.tsx +98 -0
- package/src/prophylaxis/prophylaxis.resource.ts +26 -0
- package/src/routes.json +5 -0
- package/src/routes.test.ts +6 -0
- package/translations/en.json +1 -0
package/dist/117.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_mherman22_esm_act_app=globalThis.webpackChunk_mherman22_esm_act_app||[]).push([["117"],{4300(e){e.exports=JSON.parse('{"actHome":"ACT home","actId":"ACT ID","actions":"Actions","adherence":"Adherence","adherencePercent":"Adherence {{percent}}%","age":"Age","ageSex":"Age, sex","all":"All","allLists":"All lists","bpgStatus":"BPG status","cardiacClinic":"Cardiac clinic","careCascade":"Care cascade","cascadeReportDate":"Report date: {{date}}","categoryAtDiagnosis":"Category at diagnosis","contraindications":"Contraindications","couldNotLoadCareCascade":"Could not load the care cascade","couldNotLoadGaps":"Could not load the missing data","couldNotLoadRegistry":"Could not load the registry","couldNotLoadScreenPositive":"Could not load the screen positive list","couldNotLoadWaitingList":"Could not load the procedural waiting list","couldNotLoadWorklistPatients":"Could not load the worklist patients","couldNotLoadWorklists":"Could not load the worklists","couldNotOpenForm":"Could not open the form","covered":"Covered","date":"Date","dateOfPositiveScreen":"Date of positive screen","daysPending":"Days pending","diagnosis":"Diagnosis","diagnosisCategory":"Diagnosis category","district":"District","downloadCsv":"Download CSV","dueInDays":"Due in {{days}} days","dueInOneDay":"Due in 1 day","dueToday":"Due today","dueWithinSevenDays":"Due within 7 days","enterProphylaxis":"Enter prophylaxis","findPatient":"Find a patient","flagCount":"{{number}} flags","flags":"Flags","form":"Form","missing":"Missing","missingData":"Missing data","name":"Name","nextConsultation":"Next consultation","noAccessToActHome":"You do not have access to ACT home.","noAccessToRegistry":"You do not have access to the registry.","noAccessToScreenPositive":"You do not have access to the screen positive, pending confirmation list.","noAccessToWaitingList":"You do not have access to the procedural waiting list.","noAccessToWorklists":"You do not have access to the worklists.","noActHomeWidgets":"No widgets have been added to ACT home yet.","noCareCascadeData":"No care cascade data","noGapList":"This flag does not list its missing data.","noGapLists":"None of this patient\'s flags lists its missing data.","noPrescription":"No prescription","noRegistryMatches":"No patients match these filters.","noRegistryPatients":"No patients are enrolled in the registry.","noRhdFlagLists":"No RHD flag lists found","noSavedForm":"No saved form is waiting to be completed. Record the missing data on a new form.","noScreenPositiveMatches":"No patients match these filters.","noScreenPositivePatients":"No screen positive patients are waiting for a confirmatory echo.","notCovered":"Not covered","noWaitingListMatches":"No recommendations match these filters.","noWaitingRecommendations":"No procedural recommendations are waiting.","noWorklistPatients":"No patients are on this list.","open":"Open","openChart":"Open chart","openClinicalForms":"Open clinical forms","openForm":"Open form","patient":"Patient","primaryCareClinic":"Primary care clinic","procedure":"Procedure","procedureType":"Type","procedureTypeFilter":"Procedure type","prophylaxis":"Prophylaxis","prophylaxisRegimen":"Prophylaxis regimen","registerPatient":"Register patient","registry":"Registry","report":"Report","rhdFlag":"RHD flag","screenPositive":"Screen positive, pending confirmation","screenPositiveDescription":"Registry patients who screened positive and wait for a confirmatory echo","screenPositiveNav":"Screen positive pending","searchRegistry":"Search by name or ACT ID","sex":"Sex","specificProcedure":"Specific procedure","status":"Status","suitableForRepair":"Suitable for repair","urgency":"Urgency","waitingList":"Procedural waiting list","waitingListDescription":"Open procedural recommendations from the latest consultation \xb7 red rows are past the deadline for their urgency","waitingListMostUrgent":"Procedural waiting list, most urgent first","worklists":"Worklists","worklistsDescription":"Patients needing action, by list"}')}}]);
|
|
1
|
+
"use strict";(globalThis.webpackChunk_mherman22_esm_act_app=globalThis.webpackChunk_mherman22_esm_act_app||[]).push([["117"],{4300(e){e.exports=JSON.parse('{"actHome":"ACT home","actId":"ACT ID","actions":"Actions","adherence":"Adherence","adherencePercent":"Adherence {{percent}}%","age":"Age","ageSex":"Age, sex","all":"All","allLists":"All lists","bpgStatus":"BPG status","cardiacClinic":"Cardiac clinic","careCascade":"Care cascade","cascadeReportDate":"Report date: {{date}}","categoryAtDiagnosis":"Category at diagnosis","contraindications":"Contraindications","couldNotLoadCareCascade":"Could not load the care cascade","couldNotLoadGaps":"Could not load the missing data","couldNotLoadRegistry":"Could not load the registry","couldNotLoadScreenPositive":"Could not load the screen positive list","couldNotLoadWaitingList":"Could not load the procedural waiting list","couldNotLoadWorklistPatients":"Could not load the worklist patients","couldNotLoadWorklists":"Could not load the worklists","couldNotOpenForm":"Could not open the form","covered":"Covered","date":"Date","dateOfPositiveScreen":"Date of positive screen","daysPending":"Days pending","diagnosis":"Diagnosis","diagnosisCategory":"Diagnosis category","district":"District","downloadCsv":"Download CSV","dueInDays":"Due in {{days}} days","dueInOneDay":"Due in 1 day","dueToday":"Due today","dueWithinSevenDays":"Due within 7 days","enterProphylaxis":"Enter prophylaxis","findPatient":"Find a patient","flagCount":"{{number}} flags","flags":"Flags","form":"Form","missing":"Missing","missingData":"Missing data","name":"Name","nextConsultation":"Next consultation","noAccessToActHome":"You do not have access to ACT home.","noAccessToRegistry":"You do not have access to the registry.","noAccessToScreenPositive":"You do not have access to the screen positive, pending confirmation list.","noAccessToWaitingList":"You do not have access to the procedural waiting list.","noAccessToWorklists":"You do not have access to the worklists.","noActHomeWidgets":"No widgets have been added to ACT home yet.","noCareCascadeData":"No care cascade data","noGapList":"This flag does not list its missing data.","noGapLists":"None of this patient\'s flags lists its missing data.","noPrescription":"No prescription","noRegistryMatches":"No patients match these filters.","noRegistryPatients":"No patients are enrolled in the registry.","noRhdFlagLists":"No RHD flag lists found","noSavedForm":"No saved form is waiting to be completed. Record the missing data on a new form.","noScreenPositiveMatches":"No patients match these filters.","noScreenPositivePatients":"No screen positive patients are waiting for a confirmatory echo.","notCovered":"Not covered","noWaitingListMatches":"No recommendations match these filters.","noWaitingRecommendations":"No procedural recommendations are waiting.","noWorklistPatients":"No patients are on this list.","open":"Open","openChart":"Open chart","openClinicalForms":"Open clinical forms","openForm":"Open form","overdue":"Overdue","patient":"Patient","primaryCareClinic":"Primary care clinic","procedure":"Procedure","procedureType":"Type","procedureTypeFilter":"Procedure type","prophylaxis":"Prophylaxis","prophylaxisRegimen":"Prophylaxis regimen","registerPatient":"Register patient","registry":"Registry","report":"Report","rhdFlag":"RHD flag","screenPositive":"Screen positive, pending confirmation","screenPositiveDescription":"Registry patients who screened positive and wait for a confirmatory echo","screenPositiveNav":"Screen positive pending","searchRegistry":"Search by name or ACT ID","sex":"Sex","specificProcedure":"Specific procedure","status":"Status","suitableForRepair":"Suitable for repair","urgency":"Urgency","waitingList":"Procedural waiting list","waitingListDescription":"Open procedural recommendations from the latest consultation \xb7 red rows are past the deadline for their urgency","waitingListMostUrgent":"Procedural waiting list, most urgent first","worklists":"Worklists","worklistsDescription":"Patients needing action, by list"}')}}]);
|
package/dist/117.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"117.js","sources":["webpack://@mherman22/esm-act-app/json|/home/runner/work/openmrs-esm-act-app/openmrs-esm-act-app/translations/en.json"],"names":["JSON"],"mappings":"sIAAA,EAAO,OAAO,CAAGA,KAAK,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"117.js","sources":["webpack://@mherman22/esm-act-app/json|/home/runner/work/openmrs-esm-act-app/openmrs-esm-act-app/translations/en.json"],"names":["JSON"],"mappings":"sIAAA,EAAO,OAAO,CAAGA,KAAK,KAAK,CAAC,o0H"}
|
package/dist/284.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_mherman22_esm_act_app=globalThis.webpackChunk_mherman22_esm_act_app||[]).push([["284"],{9975(e,t,a){a.r(t),a.d(t,{default:()=>p});var s=a(4335),r=a.n(s),u=a(1943),l=a(8434),n=a(3483),d=a.n(n),o=a(2909);function p({patientUuid:e,patient:t}){let{t:a}=(0,u.useTranslation)(),{summary:s}=function(e){let{data:t}=d()(e?`${o.restBaseUrl}/actcore/prophylaxis?patient=${e}`:null,o.openmrsFetch,{shouldRetryOnError:!1});return{summary:t?.data}}(t?.deceasedBoolean||t?.deceasedDateTime?null:e);return s?.status==="overdue"?r().createElement(l.vwO,{"data-testid":"prophylaxis-status",type:"red"},a("overdue","Overdue")):s?.status==="dueToday"?r().createElement(l.vwO,{"data-testid":"prophylaxis-status",type:"blue"},a("dueToday","Due today")):null}}}]);
|
package/dist/284.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"284.js","sources":["webpack://@mherman22/esm-act-app/./src/prophylaxis/prophylaxis-status-tag.component.tsx","webpack://@mherman22/esm-act-app/./src/prophylaxis/prophylaxis.resource.ts"],"names":["ProphylaxisStatusTag","patientUuid","patient","t","useTranslation","summary","useProphylaxisSummary","data","useSWR","restBaseUrl","openmrsFetch","deceased","Tag"],"mappings":"gPAWe,SAASA,EAAqB,CAAEC,YAAAA,CAAW,CAAEC,QAAAA,CAAO,CAA6B,EAC9F,GAAM,CAAEC,EAAAA,CAAC,CAAE,CAAGC,AAAAA,GAAAA,EAAAA,cAAAA,AAAAA,IAER,CAAEC,QAAAA,CAAO,CAAE,CAAGC,ACEf,SAA+BL,CAA0B,EAC9D,GAAM,CAAEM,KAAAA,CAAI,CAAE,CAAGC,IACfP,EAAc,CAAC,EAAEQ,EAAAA,WAAWA,CAAC,6BAA6B,EAAER,EAAY,CAAC,CAAG,KAC5ES,EAAAA,YAAYA,CAEZ,CAAE,mBAAoB,EAAM,GAG9B,MAAO,CAAE,QAASH,GAAM,IAAK,CAC/B,EDX4CI,AADjBT,GAAS,iBAAmBA,GAAS,iBACT,KAAOD,UAE5D,AAAII,GAAS,SAAW,UAEpB,kBAACO,EAAAA,GAAGA,CAAAA,CAAC,cAAY,qBAAqB,KAAK,K,EACxCT,EAAE,UAAW,YAIhBE,GAAS,SAAW,WAEpB,kBAACO,EAAAA,GAAGA,CAAAA,CAAC,cAAY,qBAAqB,KAAK,M,EACxCT,EAAE,WAAY,cAId,IACT,C"}
|
package/dist/991.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.webpackChunk_mherman22_esm_act_app=globalThis.webpackChunk_mherman22_esm_act_app||[]).push([["991"],{4767(e,t,r){var s={"./en.json":["4300","117"]};function a(e){if(!r.o(s,e))return Promise.resolve().then(function(){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=s[e],a=t[0];return r.e(t[1]).then(function(){return r(a)})}a.keys=()=>Object.keys(s),a.id=4767,e.exports=a},3335(e,t,r){"use strict";r.d(t,{g:()=>n,z:()=>o});var s=r(4335),a=r.n(s),i=r(2909);function n(e){let{screenPrivileges:t}=(0,i.useConfig)(),{user:r}=(0,i.useSession)();return!!r&&(0,i.userHasAccess)(t[e],r)}function o({screen:e,children:t}){return n(e)?a().createElement(a().Fragment,null,t):null}},8596(e,t,r){"use strict";r.d(t,{D:()=>s,h:()=>a});let s={name:"act-home",slot:"rhd-home-dashboard-slot",title:"actHome"},a="rhd-home-widgets-slot"},834(e,t,r){"use strict";r.r(t),r.d(t,{screenPositiveDashboard:()=>
|
|
1
|
+
(globalThis.webpackChunk_mherman22_esm_act_app=globalThis.webpackChunk_mherman22_esm_act_app||[]).push([["991"],{4767(e,t,r){var s={"./en.json":["4300","117"]};function a(e){if(!r.o(s,e))return Promise.resolve().then(function(){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=s[e],a=t[0];return r.e(t[1]).then(function(){return r(a)})}a.keys=()=>Object.keys(s),a.id=4767,e.exports=a},3335(e,t,r){"use strict";r.d(t,{g:()=>n,z:()=>o});var s=r(4335),a=r.n(s),i=r(2909);function n(e){let{screenPrivileges:t}=(0,i.useConfig)(),{user:r}=(0,i.useSession)();return!!r&&(0,i.userHasAccess)(t[e],r)}function o({screen:e,children:t}){return n(e)?a().createElement(a().Fragment,null,t):null}},8596(e,t,r){"use strict";r.d(t,{D:()=>s,h:()=>a});let s={name:"act-home",slot:"rhd-home-dashboard-slot",title:"actHome"},a="rhd-home-widgets-slot"},834(e,t,r){"use strict";r.r(t),r.d(t,{screenPositiveDashboard:()=>q,waitingListDashboardLink:()=>W,prophylaxisStatusTag:()=>v,worklistsDashboard:()=>R,actHomeWorklists:()=>S,startupApp:()=>P,flagGapsWorkspace:()=>k,registryDashboard:()=>H,screenPositiveDashboardLink:()=>U,actHomeWaitingList:()=>C,importTranslation:()=>T,actHomeCareCascade:()=>E,actHomeDashboardLink:()=>L,actHomeQuickActions:()=>D,registryDashboardLink:()=>B,waitingListDashboard:()=>$,actHomeDashboard:()=>A,worklistsDashboardLink:()=>x});var s=r(2909);let a=e=>({_type:s.Type.String,_default:"View Patient Flags",_description:`The privilege a user needs to see ${e}, its menu entry and its widgets.`}),i=(e,t)=>({_type:s.Type.Array,_elements:{_type:s.Type.String},_default:t,_description:`Location tags that mark ${e}.`}),n=(e,t)=>({_type:s.Type.String,_default:t,_description:e}),o={screenPrivileges:{home:a("the ACT home page"),registry:a("the registry list"),worklists:a("the worklists page"),waitingList:a("the procedural waiting list"),screenPositive:a("the screen positive, pending confirmation page")},clinicLocationTags:{cardiac:i("cardiac clinics",["RHD Tertiary","RHD District"]),primaryCare:i("primary care clinics",["RHD Community"])},flagLists:{namePrefix:{_type:s.Type.String,_default:"RHD ",_description:"The worklist tiles show the lists of the flags whose names start with this, unless names is set."},names:{_type:s.Type.Array,_elements:{_type:s.Type.String},_default:[],_description:"The flags whose lists the worklist tiles show, by name. When set, namePrefix is not used."},riskFlags:{_type:s.Type.Array,_elements:{_type:s.Type.String},_default:["RHD prophylaxis overdue","RHD lost to follow-up"],_description:"The flags, by name, that mark a clinical risk. The lists of every other flag are missing data."}},quickActions:{registerPatientUrl:n("Where the Register patient quick action on ACT home leads.","${openmrsSpaBase}/patient-registration"),enterProphylaxisUrl:n("Where the Enter prophylaxis quick action on ACT home leads when prophylaxisForms is empty: the fast data entry app.","${openmrsSpaBase}/forms"),prophylaxisForms:{_type:s.Type.Array,_elements:{label:{_type:s.Type.String,_description:"The choice as ACT home shows it."},url:{_type:s.Type.String,_description:"Where the choice leads."}},_default:[{label:"Enter BPG",url:"${openmrsSpaBase}/forms/form/0119d2e6-e2e1-391c-9b88-d59a10b0780d"},{label:"Enter oral prophylaxis",url:"${openmrsSpaBase}/forms/form/ba29e982-ce18-302a-9fc4-d4b2c3983465"}],_description:"The choices the Enter prophylaxis quick action offers, as ACT 2.0 offered BPG and oral prophylaxis; by default the RHD BPG Delivery and RHD Oral Adherence forms in fast data entry. When empty, Enter prophylaxis leads to enterProphylaxisUrl."},findPatientUrl:n("Where the Find a patient quick action on ACT home leads. The empty query keeps the search page loading when it is refreshed: the patient search app of 11.1.1-pre fails on a /search page load without one.","${openmrsSpaBase}/search?query=")},careCascade:{report:{_type:s.Type.String,_default:"9c6751ae-65fc-5f25-9aa6-8c65cb1dff68",_description:"The care cascade report, by uuid or name. The ACT home widget draws its rows, one per step, from their step and patients columns."},reportUrl:n("Where the care cascade widget's link to the full report leads.","${openmrsSpaBase}/reports"),steps:{_type:s.Type.Array,_elements:{_type:s.Type.Object,step:{_type:s.Type.String,_description:"The report row's step value."},label:{_type:s.Type.String,_description:"What the widget calls it."}},_default:[{step:"Active",label:"Active"},{step:"Prescribed Prophylaxis",label:"Prescribed"},{step:"Initiated BPG",label:"Initiated"},{step:"Covered today",label:"Covered today"},{step:"Adherent",label:"Adherent (80%+)"}],_description:"The report's steps the widget draws, in this order, each by its step value and with the label it shows. A step the report does not return is left out. The report's Oral and BPG rows split Prescribed Prophylaxis, so they are left out by default."}},registry:{report:{_type:s.Type.String,_default:"f1a2b3c4-d5e6-7890-abcd-ef1234567890",_description:"The RHD Patient List report, by uuid or name, whose rows the registry lists."},showBpgColumns:{_type:s.Type.Boolean,_default:!1,_description:"Show the report's bpg_status and adherence columns and a BPG status filter. Turn on once the report returns them."}},waitingList:{report:{_type:s.Type.String,_default:"5b0f1c2e-9d3a-4c1b-8f6e-2a7d9e4b3c10",_description:"The Procedural Waiting List report, by uuid or name, whose rows the waiting list shows."}},screenPositive:{report:{_type:s.Type.String,_default:"e3b8f7a2-6c41-4d9e-8a57-1f0c2d4b9e63",_description:"The Screen Positive, Pending Confirmation report, by uuid or name, whose rows the screen positive list shows."}},urgencyBands:{_type:s.Type.Array,_elements:{label:{_type:s.Type.String,_description:"The name of the band."},concept:{_type:s.Type.ConceptUuid,_description:"The answer that records this band."},deadlineDays:{_type:s.Type.Number,_description:"Days allowed before a patient in this band is overdue."}},_default:[{label:"1 - within 1 week",concept:"406285f2-be72-5594-8664-c8568ad9bc88",deadlineDays:7},{label:"2 - within 1 month",concept:"82c5209b-c183-5bc9-941c-890eba821a44",deadlineDays:30},{label:"3 - within 3 months",concept:"925610f9-1c3c-5396-880f-02a5fe309d53",deadlineDays:90},{label:"4 - within 6 months",concept:"57e3873e-018e-5ed6-b7d4-5f73ef464cbd",deadlineDays:180}],_description:"Urgency bands for the procedural waiting list, most urgent first: the RHD Consultation Visit's Urgency answers, with the days allowed before a recommendation is overdue.",_validators:[(0,s.validator)(e=>e.every(e=>e.concept&&"number"==typeof e.deadlineDays),"Every urgency band needs a concept and a number of deadline days")]}};var l=r(4335),c=r.n(l),d=r(1675),p=r(3335);function h({screen:e,meta:t}){return c().createElement(p.z,{screen:e},c().createElement(d.BrowserRouter,null,c().createElement(s.DashboardExtension,{path:t.name,title:t.title,basePath:`${window.spaBase}/home`})))}var y=r(8596);let m={name:"act-registry",slot:"rhd-registry-dashboard-slot",title:"registry"};var u=r(3394),f=r(7056),g=r(1943),b=r(5482);let _="@mherman22/esm-act-app",w={featureName:"rhd-flag-gaps",moduleName:_},T=r(4767);function P(){(0,s.defineConfigSchema)(_,o)}let v=(0,s.getAsyncLifecycle)(()=>Promise.all([r.e("98"),r.e("943"),r.e("999"),r.e("880"),r.e("284")]).then(r.bind(r,9975)),w),k=(0,s.getAsyncLifecycle)(()=>Promise.all([r.e("98"),r.e("943"),r.e("999"),r.e("880"),r.e("136")]).then(r.bind(r,3771)),w),L=(0,s.getSyncLifecycle)(function(){return c().createElement(h,{screen:"home",meta:y.D})},w),A=(0,s.getAsyncLifecycle)(()=>Promise.all([r.e("98"),r.e("943"),r.e("999"),r.e("430")]).then(r.bind(r,6661)),w),D=(0,s.getAsyncLifecycle)(()=>Promise.all([r.e("943"),r.e("450")]).then(r.bind(r,2433)),w),S=(0,s.getAsyncLifecycle)(()=>Promise.all([r.e("98"),r.e("943"),r.e("999"),r.e("880"),r.e("708")]).then(r.bind(r,5255)),w),C=(0,s.getAsyncLifecycle)(()=>Promise.all([r.e("98"),r.e("943"),r.e("999"),r.e("880"),r.e("50")]).then(r.bind(r,841)),w),E=(0,s.getAsyncLifecycle)(()=>Promise.all([r.e("98"),r.e("943"),r.e("999"),r.e("880"),r.e("675"),r.e("527")]).then(r.bind(r,7274)),w),B=(0,s.getSyncLifecycle)(function(){return c().createElement(h,{screen:"registry",meta:m})},w),H=(0,s.getAsyncLifecycle)(()=>Promise.all([r.e("98"),r.e("943"),r.e("999"),r.e("880"),r.e("675"),r.e("507")]).then(r.bind(r,6278)),w),x=(0,s.getSyncLifecycle)(function(){return c().createElement(h,{screen:"worklists",meta:u.a})},w),R=(0,s.getAsyncLifecycle)(()=>Promise.all([r.e("98"),r.e("943"),r.e("999"),r.e("880"),r.e("675"),r.e("27")]).then(r.bind(r,6070)),w),W=(0,s.getSyncLifecycle)(function(){return c().createElement(h,{screen:"waitingList",meta:f.d})},w),$=(0,s.getAsyncLifecycle)(()=>Promise.all([r.e("98"),r.e("943"),r.e("999"),r.e("880"),r.e("675"),r.e("226")]).then(r.bind(r,9617)),w),U=(0,s.getSyncLifecycle)(function(){let{t:e}=(0,g.useTranslation)();return c().createElement(h,{screen:"screenPositive",meta:{...b.b,title:e("screenPositiveNav","Screen positive pending")}})},w),q=(0,s.getAsyncLifecycle)(()=>Promise.all([r.e("98"),r.e("943"),r.e("999"),r.e("880"),r.e("143")]).then(r.bind(r,2866)),w)},5482(e,t,r){"use strict";r.d(t,{b:()=>s});let s={name:"act-screen-positive",slot:"rhd-screen-positive-dashboard-slot",title:"screenPositive"}},7056(e,t,r){"use strict";r.d(t,{d:()=>s});let s={name:"act-waiting-list",slot:"rhd-waiting-list-dashboard-slot",title:"waitingList"}},3394(e,t,r){"use strict";r.d(t,{E:()=>a,a:()=>s});let s={name:"act-worklists",slot:"rhd-worklists-dashboard-slot",title:"worklists"},a=e=>`\${openmrsSpaBase}/home/${s.name}`+(e?`?${new URLSearchParams({flag:e})}`:"")}}]);
|
package/dist/991.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"991.js","sources":["webpack://@mherman22/esm-act-app/./translations|lazy|nonrecursive|/.json$/","webpack://@mherman22/esm-act-app/./src/access/screen-access.component.tsx","webpack://@mherman22/esm-act-app/./src/act-home/act-home.meta.ts","webpack://@mherman22/esm-act-app/./src/config-schema.ts","webpack://@mherman22/esm-act-app/./src/access/act-dashboard-link.component.tsx","webpack://@mherman22/esm-act-app/./src/registry/registry.meta.ts","webpack://@mherman22/esm-act-app/./src/index.ts","webpack://@mherman22/esm-act-app/./src/act-home/act-home-dashboard-link.component.tsx","webpack://@mherman22/esm-act-app/./src/registry/registry-dashboard-link.component.tsx","webpack://@mherman22/esm-act-app/./src/worklists/worklists-dashboard-link.component.tsx","webpack://@mherman22/esm-act-app/./src/waiting-list/waiting-list-dashboard-link.component.tsx","webpack://@mherman22/esm-act-app/./src/screen-positive/screen-positive-dashboard-link.component.tsx","webpack://@mherman22/esm-act-app/./src/screen-positive/screen-positive.meta.ts","webpack://@mherman22/esm-act-app/./src/waiting-list/waiting-list.meta.ts","webpack://@mherman22/esm-act-app/./src/worklists/worklists.meta.ts"],"names":["Promise","Error","Object","useScreenAccess","screen","screenPrivileges","useConfig","user","useSession","Boolean","userHasAccess","ScreenAccess","children","actHomeDashboardMeta","actHomeWidgetsSlot","screenPrivilege","Type","locationTags","clinics","defaultTags","link","description","defaultUrl","configSchema","validator","bands","band","ActDashboardLink","meta","BrowserRouter","DashboardExtension","window","registryDashboardMeta","moduleName","options","importTranslation","require","startupApp","defineConfigSchema","
|
|
1
|
+
{"version":3,"file":"991.js","sources":["webpack://@mherman22/esm-act-app/./translations|lazy|nonrecursive|/.json$/","webpack://@mherman22/esm-act-app/./src/access/screen-access.component.tsx","webpack://@mherman22/esm-act-app/./src/act-home/act-home.meta.ts","webpack://@mherman22/esm-act-app/./src/config-schema.ts","webpack://@mherman22/esm-act-app/./src/access/act-dashboard-link.component.tsx","webpack://@mherman22/esm-act-app/./src/registry/registry.meta.ts","webpack://@mherman22/esm-act-app/./src/index.ts","webpack://@mherman22/esm-act-app/./src/act-home/act-home-dashboard-link.component.tsx","webpack://@mherman22/esm-act-app/./src/registry/registry-dashboard-link.component.tsx","webpack://@mherman22/esm-act-app/./src/worklists/worklists-dashboard-link.component.tsx","webpack://@mherman22/esm-act-app/./src/waiting-list/waiting-list-dashboard-link.component.tsx","webpack://@mherman22/esm-act-app/./src/screen-positive/screen-positive-dashboard-link.component.tsx","webpack://@mherman22/esm-act-app/./src/screen-positive/screen-positive.meta.ts","webpack://@mherman22/esm-act-app/./src/waiting-list/waiting-list.meta.ts","webpack://@mherman22/esm-act-app/./src/worklists/worklists.meta.ts"],"names":["Promise","Error","Object","useScreenAccess","screen","screenPrivileges","useConfig","user","useSession","Boolean","userHasAccess","ScreenAccess","children","actHomeDashboardMeta","actHomeWidgetsSlot","screenPrivilege","Type","locationTags","clinics","defaultTags","link","description","defaultUrl","configSchema","validator","bands","band","ActDashboardLink","meta","BrowserRouter","DashboardExtension","window","registryDashboardMeta","moduleName","options","importTranslation","require","startupApp","defineConfigSchema","prophylaxisStatusTag","getAsyncLifecycle","flagGapsWorkspace","actHomeDashboardLink","getSyncLifecycle","actHomeDashboard","actHomeQuickActions","actHomeWorklists","actHomeWaitingList","actHomeCareCascade","registryDashboardLink","registryDashboard","worklistsDashboardLink","worklistsDashboardMeta","worklistsDashboard","waitingListDashboardLink","waitingListDashboardMeta","waitingListDashboard","screenPositiveDashboardLink","t","useTranslation","screenPositiveDashboardMeta","screenPositiveDashboard","worklistsUrl","flagName","URLSearchParams"],"mappings":"6HAAA,IAAI,EAAM,CACR,YAAa,CACX,OACA,MACD,AACH,EACA,SAAS,EAAuB,CAAG,EACjC,GAAG,CAAC,EAAoB,CAAC,CAAC,EAAK,GAC7B,OAAOA,QAAQ,OAAO,GAAG,IAAI,CAAC,WAC5B,IAAI,EAAI,AAAIC,MAAM,uBAAyB,EAAM,IAEjD,OADA,EAAE,IAAI,CAAG,mBACH,CACR,GAGF,IAAI,EAAM,CAAG,CAAC,EAAI,CAAE,EAAK,CAAG,CAAC,EAAE,CAC/B,OAAO,EAAoB,CAAC,CAAC,CAAG,CAAC,EAAE,EAAE,IAAI,CAAC,WACxC,OAAO,EAAoB,EAC7B,EACF,CAEA,EAAuB,IAAI,CAAG,IAAOC,OAAO,IAAI,CAAC,GACjD,EAAuB,EAAE,CAAG,KAC5B,EAAO,OAAO,CAAG,C,qFClBV,SAASC,EAAgBC,CAAiB,EAC/C,GAAM,CAAEC,iBAAAA,CAAgB,CAAE,CAAGC,AAAAA,GAAAA,EAAAA,SAAAA,AAAAA,IACvB,CAAEC,KAAAA,CAAI,CAAE,CAAGC,AAAAA,GAAAA,EAAAA,UAAAA,AAAAA,IACjB,MAAOC,EAAQF,GAASG,AAAAA,GAAAA,EAAAA,aAAAA,AAAAA,EAAcL,CAAgB,CAACD,EAAO,CAAEG,EAClE,CAGO,SAASI,EAAa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globalThis?globalThis:self;if(void 0===e._FEDERATION_RUNTIME_CORE||void 0===e._OPENMRS_FEDERATION_SDK||void 0===e._OPENMRS_FEDERATION_ERROR_CODES)throw Error("@mherman22/esm-act-app cannot start: the OpenMRS app shell serving this page does not provide the Module Federation runtime. This app was built with newer OpenMRS tooling than the app shell, so either upgrade @openmrs/esm-app-shell, or rebuild this app with tooling matching the app shell.");var t=e._FEDERATION_RUNTIME_CORE_FROM;t&&t.version&&"2.8"!==String(t.version).split(".").slice(0,2).join(".")&&console.warn("@mherman22/esm-act-app was built against Module Federation 2.8.x but the app shell provides "+t.version+". Shared dependencies may not de-duplicate correctly.")}(),(()=>{var e,t,r,n,o,a={5550(e,t,r){"use strict";var n,o,a,i,s,l,u,c,p,d,f,h,m=r(7032),g=r.n(m);let y=[].filter(({plugin:e})=>e).map(({plugin:e,params:t})=>e(t)),b={};if((r.initializeSharingData||r.initializeExposesData)&&r.federation){let e=(e,t,r)=>{e&&e[t]&&(e[t]=r)},t=(e,t,r)=>{let n=r();Array.isArray(n)?(null!=e[t]||(e[t]=[]),e[t].push(...n)):"object"==typeof n&&null!==n&&(null!=e[t]||(e[t]={}),Object.assign(e[t],n))},m=(e,t,r)=>{null!=e[t]||(e[t]=r())},S=null!=(n=null==(l=r.remotesLoadingData)?void 0:l.chunkMapping)?n:{},E=null!=(o=null==(u=r.remotesLoadingData)?void 0:u.moduleIdToRemoteDataMapping)?o:{},O=null!=(a=null==(c=r.initializeSharingData)?void 0:c.scopeToSharingDataMapping)?a:{},_=null!=(i=null==(p=r.consumesLoadingData)?void 0:p.chunkMapping)?i:{},M=null!=(s=null==(d=r.consumesLoadingData)?void 0:d.moduleIdToConsumeDataMapping)?s:{},v={},R=[],T={},w=null==(f=r.initializeExposesData)?void 0:f.shareScope;for(let e in g())r.federation[e]=g()[e];m(r.federation,"consumesLoadingModuleToHandlerMapping",()=>{let e={};for(let[t,r]of Object.entries(M))e[t]={getter:r.fallback,shareInfo:{shareConfig:{fixedDependencies:!1,requiredVersion:r.requiredVersion,strictVersion:r.strictVersion,singleton:r.singleton,eager:r.eager},scope:[r.shareScope]},shareKey:r.shareKey};return e}),m(r.federation,"initOptions",()=>({})),m(r.federation.initOptions,"name",()=>"@mherman22/esm-act-app"),m(r.federation.initOptions,"shareStrategy",()=>"version-first"),m(r.federation.initOptions,"shared",()=>{let e={};for(let[t,r]of Object.entries(O))for(let n of r)if("object"==typeof n&&null!==n){let{name:r,version:o,factory:a,eager:i,singleton:s,requiredVersion:l,strictVersion:u}=n,c={},p=function(e){return void 0!==e};p(s)&&(c.singleton=s),p(l)&&(c.requiredVersion=l),p(i)&&(c.eager=i),p(u)&&(c.strictVersion=u);let d={version:o,scope:[t],shareConfig:c,get:a};e[r]?e[r].push(d):e[r]=[d]}return e}),t(r.federation.initOptions,"remotes",()=>Object.values(b).flat().filter(e=>"script"===e.externalType)),t(r.federation.initOptions,"plugins",()=>y),m(r.federation,"bundlerRuntimeOptions",()=>({})),m(r.federation.bundlerRuntimeOptions,"remotes",()=>({})),m(r.federation.bundlerRuntimeOptions.remotes,"chunkMapping",()=>S),m(r.federation.bundlerRuntimeOptions.remotes,"remoteInfos",()=>b),m(r.federation.bundlerRuntimeOptions.remotes,"idToExternalAndNameMapping",()=>{let e={};for(let[t,r]of Object.entries(E))e[t]=[r.shareScope,r.name,r.externalModuleId,r.remoteName];return e}),m(r.federation.bundlerRuntimeOptions.remotes,"webpackRequire",()=>r),t(r.federation.bundlerRuntimeOptions.remotes,"idToRemoteMap",()=>{let e={};for(let[t,r]of Object.entries(E)){let n=b[r.remoteName];n&&(e[t]=n)}return e}),e(r,"S",r.federation.bundlerRuntime.S),r.federation.attachShareScopeMap&&r.federation.attachShareScopeMap(r),e(r.f,"remotes",(e,t)=>r.federation.bundlerRuntime.remotes({chunkId:e,promises:t,chunkMapping:S,idToExternalAndNameMapping:r.federation.bundlerRuntimeOptions.remotes.idToExternalAndNameMapping,idToRemoteMap:r.federation.bundlerRuntimeOptions.remotes.idToRemoteMap,webpackRequire:r})),e(r.f,"consumes",(e,t)=>r.federation.bundlerRuntime.consumes({chunkId:e,promises:t,chunkMapping:_,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping,installedModules:v,webpackRequire:r})),e(r,"I",(e,t)=>r.federation.bundlerRuntime.I({shareScopeName:e,initScope:t,initPromises:R,initTokens:T,webpackRequire:r})),e(r,"initContainer",(e,t,n)=>r.federation.bundlerRuntime.initContainerEntry({shareScope:e,initScope:t,remoteEntryInitOptions:n,shareScopeKey:w,webpackRequire:r})),e(r,"getContainer",(e,t)=>{var n=r.initializeExposesData.moduleMap;return r.R=t,t=Object.prototype.hasOwnProperty.call(n,e)?n[e]():Promise.resolve().then(()=>{throw Error('Module "'+e+'" does not exist in container.')}),r.R=void 0,t}),r.federation.instance=r.federation.runtime.init(r.federation.initOptions),(null==(h=r.consumesLoadingData)?void 0:h.initialConsumes)&&r.federation.bundlerRuntime.installInitialConsumes({webpackRequire:r,installedModules:v,initialConsumes:r.consumesLoadingData.initialConsumes,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping})}},6356(e,t,r){"use strict";r.d(t,{get:()=>r.getContainer,init:()=>r.initContainer})},3054(e){"use strict";e.exports=globalThis._FEDERATION_RUNTIME_CORE},9170(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_ERROR_CODES},1853(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_SDK},9369(e,t){var r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,i=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(i(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var i,l=a(t),u=0,c=l.length;u<c;u++)i=l[u],s.call(e,i)||void 0===i||n(e,i,{get:(e=>t[e]).bind(null,i),enumerable:!(r=o(t,i))||r.enumerable});return e})(!t&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},1222(e,t,r){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),r(9369);let n=r(1146),o=r(3054),a={...o.helpers.global,getGlobalFederationInstance:n.getGlobalFederationInstance},i=o.helpers.share,s=o.helpers.utils;t.default={global:a,share:i,utils:s},t.global=a,t.share=i,t.utils=s},7201(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),r(9369);let n=r(1146),o=r(3054),a=r(9170);function i(e){let t=new((0,o.getGlobalFederationConstructor)()||o.ModuleFederation)({id:`${e.name}@${e.version||Date.now()}`,...e});return(0,o.setGlobalFederationInstance)(t),t}let s=null;(0,o.setGlobalFederationConstructor)(o.ModuleFederation),Object.defineProperty(t,"Module",{enumerable:!0,get:function(){return o.Module}}),t.ModuleFederation=o.ModuleFederation,t.createInstance=i,t.getInstance=function(e){return e?o.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(e)||null:s},Object.defineProperty(t,"getRemoteEntry",{enumerable:!0,get:function(){return o.getRemoteEntry}}),Object.defineProperty(t,"getRemoteInfo",{enumerable:!0,get:function(){return o.getRemoteInfo}}),t.init=function(e){let t=n.getGlobalFederationInstance(e.name,e.version),r={...e,id:e.id||""};return t?(t.initOptions(r),s||(s=t),t):s=i(r)},t.loadRemote=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.loadRemote.apply(s,e)},Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return o.loadScript}}),Object.defineProperty(t,"loadScriptNode",{enumerable:!0,get:function(){return o.loadScriptNode}}),t.loadShare=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.loadShare.apply(s,e)},t.loadShareSync=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.loadShareSync.apply(s,e)},t.preloadRemote=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.preloadRemote.apply(s,e)},Object.defineProperty(t,"registerGlobalPlugins",{enumerable:!0,get:function(){return o.registerGlobalPlugins}}),t.registerPlugins=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.registerPlugins.apply(s,e)},t.registerRemotes=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.registerRemotes.apply(s,e)},t.registerShared=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.registerShared.apply(s,e)}},1146(e,t,r){r(9369);let n=r(3054);t.getGlobalFederationInstance=function(e,t){let r="@mherman22/esm-act-app:1.0.1-pre.68";return n.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(n=>!!r&&n.options.id===r||n.options.name===e&&!n.options.version&&!t||n.options.name===e&&!!t&&n.options.version===t)}},1326(e,t){var r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,i=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(i(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var i,l=a(t),u=0,c=l.length;u<c;u++)i=l[u],s.call(e,i)||void 0===i||n(e,i,{get:(e=>t[e]).bind(null,i),enumerable:!(r=o(t,i))||r.enumerable});return e})(!t&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},3026(e,t){t.attachShareScopeMap=function(e){e.S&&!e.federation.hasAttachShareScopeMap&&e.federation.instance&&e.federation.instance.shareScopeMap&&(e.S=e.federation.instance.shareScopeMap,e.federation.hasAttachShareScopeMap=!0)}},9592(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.FEDERATION_SUPPORTED_TYPES=["script"]},5769(e,t,r){let n=r(3026),o=r(9671),a=r(9864),i=r(9296),s=r(2742);t.consumes=function(e){o.updateConsumeOptions(e);let{chunkId:t,promises:r,installedModules:l,webpackRequire:u,chunkMapping:c,moduleToHandlerMapping:p}=e;n.attachShareScopeMap(u),u.o(c,t)&&c[t].forEach(e=>{if(u.o(l,e))return r.push(l[e]);let t=t=>{l[e]=0,u.m[e]=r=>{delete u.c[e];let n=t(),{shareInfo:o}=p[e];if(o?.shareConfig?.layer&&n&&"object"==typeof n)try{n.hasOwnProperty("layer")&&void 0!==n.layer||(n.layer=o.shareConfig.layer)}catch(e){}r.exports=n}},n=t=>{delete l[e],u.m[e]=r=>{throw delete u.c[e],t}};try{let o=u.federation.instance;if(!o)throw Error("Federation instance not found!");let{shareKey:c,getter:d,shareInfo:f,treeShakingGetter:h}=p[e],m=a.getUsedExports(u,c),g={...f};Array.isArray(g.scope)&&Array.isArray(g.scope[0])&&(g.scope=g.scope[0]),m&&(g.treeShaking={usedExports:m,useIn:[o.options.name]});let y=o.loadShare(c,{customShareInfo:g}).then(e=>{if(!1===e){if("function"!=typeof d)throw Error(s.getShortErrorMsg(i.RUNTIME_012,{[i.RUNTIME_012]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.'},{shareKey:c}));return h?.()||d()}return e});y.then?r.push(l[e]=y.then(t).catch(n)):t(y)}catch(e){n(e)}})}},9296(e,t){t.RUNTIME_012="RUNTIME-012"},2742(e,t){t.getShortErrorMsg=(e,t,r,n)=>{let o=[`${[t[e]]} #${e}`];return r&&o.push(`args: ${JSON.stringify(r)}`),o.push(`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`),n&&o.push(`Original Error Message:
|
|
1
|
+
var _mherman22_esm_act_app;!function(){var e="u">typeof globalThis?globalThis:self;if(void 0===e._FEDERATION_RUNTIME_CORE||void 0===e._OPENMRS_FEDERATION_SDK||void 0===e._OPENMRS_FEDERATION_ERROR_CODES)throw Error("@mherman22/esm-act-app cannot start: the OpenMRS app shell serving this page does not provide the Module Federation runtime. This app was built with newer OpenMRS tooling than the app shell, so either upgrade @openmrs/esm-app-shell, or rebuild this app with tooling matching the app shell.");var t=e._FEDERATION_RUNTIME_CORE_FROM;t&&t.version&&"2.8"!==String(t.version).split(".").slice(0,2).join(".")&&console.warn("@mherman22/esm-act-app was built against Module Federation 2.8.x but the app shell provides "+t.version+". Shared dependencies may not de-duplicate correctly.")}(),(()=>{var e,t,r,n,o,a={5550(e,t,r){"use strict";var n,o,a,i,s,l,u,c,p,d,f,h,m=r(7032),g=r.n(m);let y=[].filter(({plugin:e})=>e).map(({plugin:e,params:t})=>e(t)),b={};if((r.initializeSharingData||r.initializeExposesData)&&r.federation){let e=(e,t,r)=>{e&&e[t]&&(e[t]=r)},t=(e,t,r)=>{let n=r();Array.isArray(n)?(null!=e[t]||(e[t]=[]),e[t].push(...n)):"object"==typeof n&&null!==n&&(null!=e[t]||(e[t]={}),Object.assign(e[t],n))},m=(e,t,r)=>{null!=e[t]||(e[t]=r())},S=null!=(n=null==(l=r.remotesLoadingData)?void 0:l.chunkMapping)?n:{},E=null!=(o=null==(u=r.remotesLoadingData)?void 0:u.moduleIdToRemoteDataMapping)?o:{},O=null!=(a=null==(c=r.initializeSharingData)?void 0:c.scopeToSharingDataMapping)?a:{},_=null!=(i=null==(p=r.consumesLoadingData)?void 0:p.chunkMapping)?i:{},M=null!=(s=null==(d=r.consumesLoadingData)?void 0:d.moduleIdToConsumeDataMapping)?s:{},v={},R=[],T={},w=null==(f=r.initializeExposesData)?void 0:f.shareScope;for(let e in g())r.federation[e]=g()[e];m(r.federation,"consumesLoadingModuleToHandlerMapping",()=>{let e={};for(let[t,r]of Object.entries(M))e[t]={getter:r.fallback,shareInfo:{shareConfig:{fixedDependencies:!1,requiredVersion:r.requiredVersion,strictVersion:r.strictVersion,singleton:r.singleton,eager:r.eager},scope:[r.shareScope]},shareKey:r.shareKey};return e}),m(r.federation,"initOptions",()=>({})),m(r.federation.initOptions,"name",()=>"@mherman22/esm-act-app"),m(r.federation.initOptions,"shareStrategy",()=>"version-first"),m(r.federation.initOptions,"shared",()=>{let e={};for(let[t,r]of Object.entries(O))for(let n of r)if("object"==typeof n&&null!==n){let{name:r,version:o,factory:a,eager:i,singleton:s,requiredVersion:l,strictVersion:u}=n,c={},p=function(e){return void 0!==e};p(s)&&(c.singleton=s),p(l)&&(c.requiredVersion=l),p(i)&&(c.eager=i),p(u)&&(c.strictVersion=u);let d={version:o,scope:[t],shareConfig:c,get:a};e[r]?e[r].push(d):e[r]=[d]}return e}),t(r.federation.initOptions,"remotes",()=>Object.values(b).flat().filter(e=>"script"===e.externalType)),t(r.federation.initOptions,"plugins",()=>y),m(r.federation,"bundlerRuntimeOptions",()=>({})),m(r.federation.bundlerRuntimeOptions,"remotes",()=>({})),m(r.federation.bundlerRuntimeOptions.remotes,"chunkMapping",()=>S),m(r.federation.bundlerRuntimeOptions.remotes,"remoteInfos",()=>b),m(r.federation.bundlerRuntimeOptions.remotes,"idToExternalAndNameMapping",()=>{let e={};for(let[t,r]of Object.entries(E))e[t]=[r.shareScope,r.name,r.externalModuleId,r.remoteName];return e}),m(r.federation.bundlerRuntimeOptions.remotes,"webpackRequire",()=>r),t(r.federation.bundlerRuntimeOptions.remotes,"idToRemoteMap",()=>{let e={};for(let[t,r]of Object.entries(E)){let n=b[r.remoteName];n&&(e[t]=n)}return e}),e(r,"S",r.federation.bundlerRuntime.S),r.federation.attachShareScopeMap&&r.federation.attachShareScopeMap(r),e(r.f,"remotes",(e,t)=>r.federation.bundlerRuntime.remotes({chunkId:e,promises:t,chunkMapping:S,idToExternalAndNameMapping:r.federation.bundlerRuntimeOptions.remotes.idToExternalAndNameMapping,idToRemoteMap:r.federation.bundlerRuntimeOptions.remotes.idToRemoteMap,webpackRequire:r})),e(r.f,"consumes",(e,t)=>r.federation.bundlerRuntime.consumes({chunkId:e,promises:t,chunkMapping:_,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping,installedModules:v,webpackRequire:r})),e(r,"I",(e,t)=>r.federation.bundlerRuntime.I({shareScopeName:e,initScope:t,initPromises:R,initTokens:T,webpackRequire:r})),e(r,"initContainer",(e,t,n)=>r.federation.bundlerRuntime.initContainerEntry({shareScope:e,initScope:t,remoteEntryInitOptions:n,shareScopeKey:w,webpackRequire:r})),e(r,"getContainer",(e,t)=>{var n=r.initializeExposesData.moduleMap;return r.R=t,t=Object.prototype.hasOwnProperty.call(n,e)?n[e]():Promise.resolve().then(()=>{throw Error('Module "'+e+'" does not exist in container.')}),r.R=void 0,t}),r.federation.instance=r.federation.runtime.init(r.federation.initOptions),(null==(h=r.consumesLoadingData)?void 0:h.initialConsumes)&&r.federation.bundlerRuntime.installInitialConsumes({webpackRequire:r,installedModules:v,initialConsumes:r.consumesLoadingData.initialConsumes,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping})}},6356(e,t,r){"use strict";r.d(t,{get:()=>r.getContainer,init:()=>r.initContainer})},3054(e){"use strict";e.exports=globalThis._FEDERATION_RUNTIME_CORE},9170(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_ERROR_CODES},1853(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_SDK},9369(e,t){var r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,i=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(i(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var i,l=a(t),u=0,c=l.length;u<c;u++)i=l[u],s.call(e,i)||void 0===i||n(e,i,{get:(e=>t[e]).bind(null,i),enumerable:!(r=o(t,i))||r.enumerable});return e})(!t&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},1222(e,t,r){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),r(9369);let n=r(1146),o=r(3054),a={...o.helpers.global,getGlobalFederationInstance:n.getGlobalFederationInstance},i=o.helpers.share,s=o.helpers.utils;t.default={global:a,share:i,utils:s},t.global=a,t.share=i,t.utils=s},7201(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),r(9369);let n=r(1146),o=r(3054),a=r(9170);function i(e){let t=new((0,o.getGlobalFederationConstructor)()||o.ModuleFederation)({id:`${e.name}@${e.version||Date.now()}`,...e});return(0,o.setGlobalFederationInstance)(t),t}let s=null;(0,o.setGlobalFederationConstructor)(o.ModuleFederation),Object.defineProperty(t,"Module",{enumerable:!0,get:function(){return o.Module}}),t.ModuleFederation=o.ModuleFederation,t.createInstance=i,t.getInstance=function(e){return e?o.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(e)||null:s},Object.defineProperty(t,"getRemoteEntry",{enumerable:!0,get:function(){return o.getRemoteEntry}}),Object.defineProperty(t,"getRemoteInfo",{enumerable:!0,get:function(){return o.getRemoteInfo}}),t.init=function(e){let t=n.getGlobalFederationInstance(e.name,e.version),r={...e,id:e.id||""};return t?(t.initOptions(r),s||(s=t),t):s=i(r)},t.loadRemote=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.loadRemote.apply(s,e)},Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return o.loadScript}}),Object.defineProperty(t,"loadScriptNode",{enumerable:!0,get:function(){return o.loadScriptNode}}),t.loadShare=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.loadShare.apply(s,e)},t.loadShareSync=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.loadShareSync.apply(s,e)},t.preloadRemote=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.preloadRemote.apply(s,e)},Object.defineProperty(t,"registerGlobalPlugins",{enumerable:!0,get:function(){return o.registerGlobalPlugins}}),t.registerPlugins=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.registerPlugins.apply(s,e)},t.registerRemotes=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.registerRemotes.apply(s,e)},t.registerShared=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.registerShared.apply(s,e)}},1146(e,t,r){r(9369);let n=r(3054);t.getGlobalFederationInstance=function(e,t){let r="@mherman22/esm-act-app:1.0.1-pre.70";return n.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(n=>!!r&&n.options.id===r||n.options.name===e&&!n.options.version&&!t||n.options.name===e&&!!t&&n.options.version===t)}},1326(e,t){var r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,i=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(i(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var i,l=a(t),u=0,c=l.length;u<c;u++)i=l[u],s.call(e,i)||void 0===i||n(e,i,{get:(e=>t[e]).bind(null,i),enumerable:!(r=o(t,i))||r.enumerable});return e})(!t&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},3026(e,t){t.attachShareScopeMap=function(e){e.S&&!e.federation.hasAttachShareScopeMap&&e.federation.instance&&e.federation.instance.shareScopeMap&&(e.S=e.federation.instance.shareScopeMap,e.federation.hasAttachShareScopeMap=!0)}},9592(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.FEDERATION_SUPPORTED_TYPES=["script"]},5769(e,t,r){let n=r(3026),o=r(9671),a=r(9864),i=r(9296),s=r(2742);t.consumes=function(e){o.updateConsumeOptions(e);let{chunkId:t,promises:r,installedModules:l,webpackRequire:u,chunkMapping:c,moduleToHandlerMapping:p}=e;n.attachShareScopeMap(u),u.o(c,t)&&c[t].forEach(e=>{if(u.o(l,e))return r.push(l[e]);let t=t=>{l[e]=0,u.m[e]=r=>{delete u.c[e];let n=t(),{shareInfo:o}=p[e];if(o?.shareConfig?.layer&&n&&"object"==typeof n)try{n.hasOwnProperty("layer")&&void 0!==n.layer||(n.layer=o.shareConfig.layer)}catch(e){}r.exports=n}},n=t=>{delete l[e],u.m[e]=r=>{throw delete u.c[e],t}};try{let o=u.federation.instance;if(!o)throw Error("Federation instance not found!");let{shareKey:c,getter:d,shareInfo:f,treeShakingGetter:h}=p[e],m=a.getUsedExports(u,c),g={...f};Array.isArray(g.scope)&&Array.isArray(g.scope[0])&&(g.scope=g.scope[0]),m&&(g.treeShaking={usedExports:m,useIn:[o.options.name]});let y=o.loadShare(c,{customShareInfo:g}).then(e=>{if(!1===e){if("function"!=typeof d)throw Error(s.getShortErrorMsg(i.RUNTIME_012,{[i.RUNTIME_012]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.'},{shareKey:c}));return h?.()||d()}return e});y.then?r.push(l[e]=y.then(t).catch(n)):t(y)}catch(e){n(e)}})}},9296(e,t){t.RUNTIME_012="RUNTIME-012"},2742(e,t){t.getShortErrorMsg=(e,t,r,n)=>{let o=[`${[t[e]]} #${e}`];return r&&o.push(`args: ${JSON.stringify(r)}`),o.push(`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`),n&&o.push(`Original Error Message:
|
|
2
2
|
${n}`),o.join("\n")}},2176(e,t){t.getSharedFallbackGetter=({shareKey:e,factory:t,version:r,webpackRequire:n,libraryType:o="global"})=>{let{runtime:a,instance:i,bundlerRuntime:s,sharedFallback:l}=n.federation;if(!l)return t;let u=l[e];if(!u)return t;let c=r?u.find(e=>e[1]===r):u[0];if(!c)throw Error(`No fallback item found for shareKey: ${e} and version: ${r}`);return()=>a.getRemoteEntry({origin:n.federation.instance,remoteInfo:{name:c[2],entry:`${n.p}${c[0]}`,type:o,entryGlobalName:c[2],shareScope:"default"}}).then(t=>{if(!t)throw Error(`Failed to load fallback entry for shareKey: ${e} and version: ${r}`);return t.init(n.federation.instance,s).then(()=>t.get())})}},9864(e,t){t.getUsedExports=function(e,t){let r=e.federation.usedExports;if(r)return r[t]}},7032(e,t,r){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});let n=r(1326),o=r(3026),a=r(5313),i=r(5769),s=r(2614),l=r(8066),u=r(8593),c=r(6554),p=r(2176),d=r(7201);d=n.__toESM(d);let f={remotes:a.remotes,consumes:i.consumes,I:s.initializeSharing,S:{},installInitialConsumes:l.installInitialConsumes,initContainerEntry:u.initContainerEntry,init:c.init,getSharedFallbackGetter:p.getSharedFallbackGetter},h={runtime:d,instance:void 0,initOptions:void 0,bundlerRuntime:f,attachShareScopeMap:o.attachShareScopeMap,bundlerRuntimeOptions:{}},m=h.instance,g=h.initOptions,y=h.bundlerRuntimeOptions;t.attachShareScopeMap=o.attachShareScopeMap,t.bundlerRuntime=f,t.bundlerRuntimeOptions=y,t.default=h,t.initOptions=g,t.instance=m,Object.defineProperty(t,"runtime",{enumerable:!0,get:function(){return d}})},6554(e,t,r){let n=r(1326),o=r(7201),a=r(1222);a=n.__toESM(a),t.init=function({webpackRequire:e}){let{initOptions:t,runtime:n,sharedFallback:i,bundlerRuntime:s,libraryType:l}=e.federation;if(!t)throw Error("initOptions is required!");return t.plugins||=[],t.plugins.push({name:"tree-shake-plugin",beforeInit(t){let{userOptions:n,origin:u,options:c}=t,p=n.version||c.version;if(!i)return t;let d=n.shared||{},f=[];Object.keys(d).forEach(t=>{(Array.isArray(d[t])?d[t]:[d[t]]).forEach(r=>{f.push([t,r]),"get"in r&&(r.treeShaking||={},r.treeShaking.get=r.get,r.get=s.getSharedFallbackGetter({shareKey:t,factory:r.get,webpackRequire:e,libraryType:l,version:r.version}))})});let h=a.default.global.getGlobalSnapshotInfoByModuleInfo({name:u.name,version:p});return h&&"shared"in h&&(Object.keys(c.shared||{}).forEach(e=>{c.shared[e].forEach(t=>{f.push([e,t])})}),f.forEach(([e,t])=>{((e,t)=>{let n=h.shared.find(t=>t.sharedName===e);if(!n)return;let{treeShaking:a}=t;if(!a)return;let{secondarySharedTreeShakingName:i,secondarySharedTreeShakingEntry:s,treeShakingStatus:c}=n;a.status!==c&&(a.status=c,s&&l&&i&&(a.get=async()=>{let e=await (0,o.getRemoteEntry)({origin:u,remoteInfo:{name:i,entry:s,type:l,entryGlobalName:i,shareScope:"default"}});return await e.init(u,r.federation.bundlerRuntime),e.get()}))})(e,t)})),t}}),n.init(t)}},8593(e,t){t.initContainerEntry=function(e){let{webpackRequire:t,shareScope:r,initScope:n,shareScopeKey:o,remoteEntryInitOptions:a}=e;if(!t.S||!t.federation||!t.federation.instance||!t.federation.initOptions)return;let i=t.federation.instance;i.initOptions({name:t.federation.initOptions.name,remotes:[],...a});let s=a?.shareScopeKeys,l=a?.shareScopeMap;if(o&&"string"!=typeof o)o.forEach(e=>{if(!s||!l)return void i.initShareScopeMap(e,r,{hostShareScopeMap:a?.shareScopeMap||{}});l[e]||(l[e]={});let t=l[e];i.initShareScopeMap(e,t,{hostShareScopeMap:a?.shareScopeMap||{}})});else{let e=o||"default";Array.isArray(s)?s.forEach(e=>{l[e]||(l[e]={});let t=l[e];i.initShareScopeMap(e,t,{hostShareScopeMap:a?.shareScopeMap||{}})}):i.initShareScopeMap(e,r,{hostShareScopeMap:a?.shareScopeMap||{}})}return(t.federation.attachShareScopeMap&&t.federation.attachShareScopeMap(t),Array.isArray(o))?t.federation.initOptions.shared?t.I(o,n):Promise.all(o.map(e=>t.I(e,n))).then(()=>!0):t.I(o||"default",n)}},2614(e,t,r){let n=r(3026),o=r(9592);t.initializeSharing=function({shareScopeName:e,webpackRequire:t,initPromises:r,initTokens:a,initScope:i}){let s=Array.isArray(e)?e:[e];var l=[],u=function(s){i||(i=[]);let l=t.federation.instance;var u=a[s];if(u||(u=a[s]={from:l.name}),i.indexOf(u)>=0)return;i.push(u);let c=r[s];if(c)return c;var p=r=>{var n=e=>{let t;return t="Initialization of sharing external failed: "+e,"u">typeof console&&console.warn&&console.warn(t)};try{var o=t(r);if(!o)return;var a=r=>r&&r.init&&r.init(t.S[s],i,{shareScopeMap:t.S||{},shareScopeKeys:e});if(o.then)return d.push(o.then(a,n));var l=a(o);if(l&&"boolean"!=typeof l&&l.then)return d.push(l.catch(n))}catch(e){n(e)}};let d=l.initializeSharing(s,{strategy:l.options.shareStrategy,initScope:i,from:"build"});n.attachShareScopeMap(t);let f=t.federation.bundlerRuntimeOptions.remotes;return(f&&Object.keys(f.idToRemoteMap).forEach(e=>{let t=f.idToRemoteMap[e],r=f.idToExternalAndNameMapping[e][2];if(t.length>1)p(r);else if(1===t.length){let e=t[0];o.FEDERATION_SUPPORTED_TYPES.includes(e.externalType)||p(r)}}),d.length)?r[s]=Promise.all(d).then(()=>r[s]=!0):r[s]=!0};return s.forEach(e=>{l.push(u(e))}),Promise.all(l).then(()=>!0)}},8066(e,t,r){let n=r(9671),o=r(9864);t.installInitialConsumes=function(e){n.updateConsumeOptions(e);let{moduleToHandlerMapping:t,webpackRequire:r,installedModules:a,initialConsumes:i,asyncLoad:s}=e,l=[];i.forEach(e=>{l.push([e,()=>(function(e){let{moduleId:t,moduleToHandlerMapping:r,webpackRequire:n,asyncLoad:a}=e,i=n.federation.instance;if(!i)throw Error("Federation instance not found!");let{shareKey:s,shareInfo:l}=r[t];try{let e=o.getUsedExports(n,s),t={...l};if(e&&(t.treeShaking={usedExports:e,useIn:[i.options.name]}),a)return i.loadShare(s,{customShareInfo:t});return i.loadShareSync(s,{customShareInfo:t})}catch(e){throw console.error('loadShareSync failed! The function should not be called unless you set "eager:true". If you do not set it, and encounter this issue, you can check whether an async boundary is implemented.'),console.error("The original error message is as follows: "),e}})({moduleId:e,moduleToHandlerMapping:t,webpackRequire:r,asyncLoad:s})])});let u=(e,n)=>{r.m[e]=o=>{a[e]=0,delete r.c[e];let i=n();if("function"!=typeof i)throw Error(`Shared module is not available for eager consumption: ${e}`);let s=i(),{shareInfo:l}=t[e];if(l?.shareConfig?.layer&&s&&"object"==typeof s)try{s.hasOwnProperty("layer")&&void 0!==s.layer||(s.layer=l.shareConfig.layer)}catch(e){}o.exports=s}};if(s)return Promise.all(l.map(async([e,t])=>{let r=await t();u(e,()=>r)}));l.forEach(([e,t])=>{u(e,t)})}},5313(e,t,r){r(1326);let n=r(3026),o=r(9592),a=r(9671),i=r(1853);t.remotes=function(e){a.updateRemoteOptions(e);let{chunkId:t,promises:r,webpackRequire:s,chunkMapping:l,idToExternalAndNameMapping:u,idToRemoteMap:c}=e;n.attachShareScopeMap(s),s.o(l,t)&&l[t].forEach(e=>{let t=s.R;t||(t=[]);let n=u[e],a=c[e]||[];if(t.indexOf(n)>=0)return;if(t.push(n),n.p)return r.push(n.p);let l=t=>{t||(t=Error("Container missing")),"string"==typeof t.message&&(t.message+=`
|
|
3
3
|
while loading "${n[1]}" from ${n[2]}`),s.m[e]=()=>{throw t},n.p=0},p=(e,t,o,a,i,s)=>{try{let u=e(t,o);if(!u||!u.then)return i(u,a,s);{let e=u.then(e=>i(e,a),l);if(!s)return e;r.push(n.p=e)}}catch(e){l(e)}};var d=(e,r,o)=>p(r.get,n[1],t,0,f,o),f=t=>{n.p=1,s.m[e]=e=>{e.exports=t()}};1===a.length&&o.FEDERATION_SUPPORTED_TYPES.includes(a[0].externalType)&&a[0].name?p(()=>{try{let e=(0,i.decodeName)(a[0].name,i.ENCODE_NAME_PREFIX)+n[1].slice(1),t=s.federation.instance,r=()=>s.federation.instance.loadRemote(e,{loadFactory:!1,from:"build"});if("version-first"===t.options.shareStrategy){let e=Array.isArray(n[0])?n[0]:[n[0]];return Promise.all(e.map(e=>t.sharedHandler.initializeSharing(e))).then(()=>r())}return r()}catch(e){l(e)}},n[2],0,0,f,1):p(s,n[2],0,0,(e,t,r)=>e?p(s.I,n[0],0,e,d,r):l(),1)})}},9671(e,t){t.updateConsumeOptions=function(e){let{webpackRequire:t,moduleToHandlerMapping:r}=e,{consumesLoadingData:n,initializeSharingData:o}=t,{sharedFallback:a,bundlerRuntime:i,libraryType:s}=t.federation;if(n&&!n._updated){let{moduleIdToConsumeDataMapping:o={},initialConsumes:l=[],chunkMapping:u={}}=n;if(Object.entries(o).forEach(([e,n])=>{r[e]||(r[e]={getter:a?i?.getSharedFallbackGetter({shareKey:n.shareKey,factory:n.fallback,webpackRequire:t,libraryType:s}):n.fallback,treeShakingGetter:a?n.fallback:void 0,shareInfo:{shareConfig:{requiredVersion:n.requiredVersion,strictVersion:n.strictVersion,singleton:n.singleton,eager:n.eager,layer:n.layer},scope:Array.isArray(n.shareScope)?n.shareScope:[n.shareScope||"default"],treeShaking:a?{get:n.fallback,mode:n.treeShakingMode}:void 0},shareKey:n.shareKey})}),"initialConsumes"in e){let{initialConsumes:t=[]}=e;l.forEach(e=>{t.includes(e)||t.push(e)})}if("chunkMapping"in e){let{chunkMapping:t={}}=e;Object.entries(u).forEach(([e,r])=>{t[e]||(t[e]=[]),r.forEach(r=>{t[e].includes(r)||t[e].push(r)})})}n._updated=1}if(o&&!o._updated){let{federation:e}=t;if(!e.instance||!o.scopeToSharingDataMapping)return;let r={};for(let[e,t]of Object.entries(o.scopeToSharingDataMapping))for(let n of t)if("object"==typeof n&&null!==n){let{name:t,version:o,factory:a,eager:i,singleton:s,requiredVersion:l,strictVersion:u}=n,c={requiredVersion:`^${o}`},p=function(e){return void 0!==e};p(s)&&(c.singleton=s),p(l)&&(c.requiredVersion=l),p(i)&&(c.eager=i),p(u)&&(c.strictVersion=u);let d={version:o,scope:[e],shareConfig:c,get:a};r[t]?r[t].push(d):r[t]=[d]}e.instance.registerShared(r),o._updated=1}},t.updateRemoteOptions=function(e){let{webpackRequire:t,idToExternalAndNameMapping:r={},idToRemoteMap:n={},chunkMapping:o={}}=e,{remotesLoadingData:a}=t,i=t.federation?.bundlerRuntimeOptions?.remotes?.remoteInfos;if(!a||a._updated||!i)return;let{chunkMapping:s,moduleIdToRemoteDataMapping:l}=a;if(s&&l){for(let[e,t]of Object.entries(l))if(r[e]||(r[e]=[t.shareScope,t.name,t.externalModuleId]),!n[e]&&i[t.remoteName]){let r=i[t.remoteName];n[e]||=[],r.forEach(t=>{n[e].includes(t)||n[e].push(t)})}o&&Object.entries(s).forEach(([e,t])=>{o[e]||(o[e]=[]),t.forEach(t=>{o[e].includes(t)||o[e].push(t)})}),a._updated=1}}}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}};return a[e].call(r.exports,r,r.exports,s),r.exports}s.m=a,s.c=i,s.x=()=>s(6356),s.federation||(s.federation={chunkMatcher:function(e){return!/^(590|675|748|818|880)$/.test(e)},rootOutputDir:""}),s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},u=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,t){if(1&t&&(e=this(e)),8&t||"object"==typeof e&&e&&(4&t&&e.__esModule||16&t&&"function"==typeof e.then))return e;var r=Object.create(null);s.r(r);var n={};l=l||[null,u({}),u([]),u(u)];for(var o=2&t&&e;("object"==typeof o||"function"==typeof o)&&!~l.indexOf(o);o=u(o))Object.getOwnPropertyNames(o).forEach(t=>{n[t]=()=>e[t]});return n.default=()=>e,s.d(r,n),r},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,r)=>(s.f[r](e,t),t),[])),s.u=e=>""+e+".js",s.miniCssF=e=>""+e+".css",s.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c={},s.l=function(e,t,r,n){if(c[e])return void c[e].push(t);if(void 0!==r)for(var o,a,i=document.getElementsByTagName("script"),l=0;l<i.length;l++){var u=i[l];if(u.getAttribute("src")==e||u.getAttribute("data-rspack")=="@mherman22/esm-act-app:"+r){o=u;break}}o||(a=!0,(o=document.createElement("script")).timeout=120,s.nc&&o.setAttribute("nonce",s.nc),o.setAttribute("data-rspack","@mherman22/esm-act-app:"+r),o.src=e),c[e]=[t];var p=function(t,r){o.onerror=o.onload=null,clearTimeout(d);var n=c[e];if(delete c[e],o.parentNode&&o.parentNode.removeChild(o),n&&n.forEach(function(e){return e(r)}),t)return t(r)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=p.bind(null,o.onerror),o.onload=p.bind(null,o.onload),a&&document.head.appendChild(o)},s.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.rv=()=>"1.7.9",s.S={},s.initializeSharingData={scopeToSharingDataMapping:{default:[{name:"@openmrs/esm-framework",version:"10.0.1-pre.5518",factory:()=>Promise.all([s.e("98"),s.e("943"),s.e("999"),s.e("957"),s.e("880"),s.e("748"),s.e("675"),s.e("590"),s.e("818")]).then(()=>()=>s(7964)),eager:0,singleton:1,requiredVersion:"10.x",strictVersion:0},{name:"dayjs",version:"1.11.13",factory:()=>s.e("538").then(()=>()=>s(4353)),eager:0,singleton:1,requiredVersion:"1.x",strictVersion:0},{name:"react-i18next",version:"16.0.0",factory:()=>Promise.all([s.e("379"),s.e("748")]).then(()=>()=>s(673)),eager:0,singleton:1,requiredVersion:"16.x",strictVersion:0},{name:"react-router-dom",version:"6.30.1",factory:()=>Promise.all([s.e("98"),s.e("749"),s.e("748")]).then(()=>()=>s(6204)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"react",version:"18.3.1",factory:()=>s.e("237").then(()=>()=>s(6540)),eager:0,singleton:1,requiredVersion:"18.x",strictVersion:0},{name:"rxjs",version:"6.6.7",factory:()=>s.e("997").then(()=>()=>s(5908)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"swr/_internal",version:"2.5.1",factory:()=>Promise.all([s.e("362"),s.e("748")]).then(()=>()=>s(4993)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/immutable",version:"2.5.1",factory:()=>Promise.all([s.e("362"),s.e("977"),s.e("748"),s.e("898")]).then(()=>()=>s(4225)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/infinite",version:"2.5.1",factory:()=>Promise.all([s.e("362"),s.e("977"),s.e("748"),s.e("578")]).then(()=>()=>s(3041)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr",version:"2.5.1",factory:()=>Promise.all([s.e("362"),s.e("977"),s.e("748"),s.e("410")]).then(()=>()=>s(2177)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0}]},uniqueName:"@mherman22/esm-act-app"},s.I=s.I||function(){throw Error("should have __webpack_require__.I")},s.g.importScripts&&(p=s.g.location+"");var l,u,c,p,d=s.g.document;if(!p&&d&&(d.currentScript&&"SCRIPT"===d.currentScript.tagName.toUpperCase()&&(p=d.currentScript.src),!p)){var f=d.getElementsByTagName("script");if(f.length)for(var h=f.length-1;h>-1&&(!p||!/^http(s?):/.test(p));)p=f[h--].src}if(!p)throw Error("Automatic publicPath is not supported in this browser");if(s.p=p=p.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.consumesLoadingData={chunkMapping:{818:["1675","1943"],748:["4335"],880:["3483"],675:["8406"],991:["2909"],590:["6610","5072","676","7290"]},moduleIdToConsumeDataMapping:{5072:{shareScope:"default",shareKey:"swr/_internal",import:"swr/_internal",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("362").then(()=>()=>s(4993))},676:{shareScope:"default",shareKey:"swr/immutable",import:"swr/immutable",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("362"),s.e("977"),s.e("517")]).then(()=>()=>s(4225))},4335:{shareScope:"default",shareKey:"react",import:"react",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("237").then(()=>()=>s(6540))},7290:{shareScope:"default",shareKey:"rxjs",import:"rxjs",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("997").then(()=>()=>s(5908))},8406:{shareScope:"default",shareKey:"dayjs",import:"dayjs",requiredVersion:"1.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("538").then(()=>()=>s(4353))},3483:{shareScope:"default",shareKey:"swr",import:"swr",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("362"),s.e("977"),s.e("29")]).then(()=>()=>s(2177))},6610:{shareScope:"default",shareKey:"swr/infinite",import:"swr/infinite",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("362"),s.e("977"),s.e("197")]).then(()=>()=>s(3041))},2909:{shareScope:"default",shareKey:"@openmrs/esm-framework",import:"@openmrs/esm-framework",requiredVersion:"10.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("98"),s.e("943"),s.e("999"),s.e("957"),s.e("880"),s.e("675"),s.e("590")]).then(()=>()=>s(7964))},1943:{shareScope:"default",shareKey:"react-i18next",import:"react-i18next",requiredVersion:"16.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("379").then(()=>()=>s(673))},1675:{shareScope:"default",shareKey:"react-router-dom",import:"react-router-dom",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("98"),s.e("749")]).then(()=>()=>s(6204))}},initialConsumes:[]},s.f.consumes=s.f.consumes||function(){throw Error("should have __webpack_require__.f.consumes")},"u">typeof document){var m=function(e,t,r,n,o){var a=document.createElement("link");return a.rel="stylesheet",a.type="text/css",s.nc&&(a.nonce=s.nc),a.href=t,a.onerror=a.onload=function(r){if(a.onerror=a.onload=null,"load"===r.type)n();else{var i=r&&("load"===r.type?"missing":r.type),s=r&&r.target&&r.target.href||t,l=Error("Loading CSS chunk "+e+" failed.\\n("+s+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=i,l.request=s,a.parentNode&&a.parentNode.removeChild(a),o(l)}},r?r.parentNode.insertBefore(a,r.nextSibling):document.head.appendChild(a),a},g=function(e,t){for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var o=r[n],a=o.getAttribute("data-href")||o.getAttribute("href");if(a&&(a=a.split("?")[0]),"stylesheet"===o.rel&&(a===e||a===t))return o}for(var i=document.getElementsByTagName("style"),n=0;n<i.length;n++){var o=i[n],a=o.getAttribute("data-href");if(a===e||a===t)return o}},y={377:0};s.f.miniCss=function(e,t){if(y[e])t.push(y[e]);else 0!==y[e]&&({136:1,143:1,226:1,27:1,430:1,450:1,50:1,507:1,527:1,708:1,957:1})[e]&&t.push(y[e]=new Promise(function(t,r){var n=s.miniCssF(e),o=s.p+n;if(g(n,o))return t();m(e,o,null,t,r)}).then(function(){y[e]=0},function(t){throw delete y[e],t}))}}s.initializeExposesData={moduleMap:{"./start":()=>Promise.all([s.e("748"),s.e("818"),s.e("991")]).then(()=>()=>s(834))},shareScope:"default"},s.getContainer=s.getContainer||function(){throw Error("should have __webpack_require__.getContainer")},s.initContainer=s.initContainer||function(){throw Error("should have __webpack_require__.initContainer")},e={377:0},s.f.j=function(t,r){var n=s.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else if(/^(590|675|748|818|880)$/.test(t))e[t]=0;else{var o=new Promise((r,o)=>n=e[t]=[r,o]);r.push(n[2]=o);var a=s.p+s.u(t),i=Error();s.l(a,function(r){if(s.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;i.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}},"chunk-"+t,t)}},t=(t,r)=>{var n,o,[a,i,l]=r,u=0;if(a.some(t=>0!==e[t])){for(n in i)s.o(i,n)&&(s.m[n]=i[n]);l&&l(s)}for(t&&t(r);u<a.length;u++)o=a[u],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0},(r=globalThis.webpackChunk_mherman22_esm_act_app=globalThis.webpackChunk_mherman22_esm_act_app||[]).forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r)),s.ruid="bundler=rspack@1.7.9",n=s.x,o=!1,s.x=function(){if(o||(o=!0,s(5550)),"function"==typeof n)return n();console.warn("[MF] Invalid prevStartup")},_mherman22_esm_act_app=s.x()})();
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
"rendered": true,
|
|
6
6
|
"initial": false,
|
|
7
7
|
"entry": false,
|
|
8
|
-
"size":
|
|
8
|
+
"size": 3902,
|
|
9
9
|
"sizes": {
|
|
10
|
-
"javascript":
|
|
10
|
+
"javascript": 3902
|
|
11
11
|
},
|
|
12
12
|
"names": [],
|
|
13
13
|
"idHints": [],
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"auxiliaryFiles": [
|
|
21
21
|
"117.js.map"
|
|
22
22
|
],
|
|
23
|
-
"hash": "
|
|
23
|
+
"hash": "fd27e72f996b2eae",
|
|
24
24
|
"childrenByOrder": {}
|
|
25
25
|
},
|
|
26
26
|
{
|
|
@@ -173,6 +173,29 @@
|
|
|
173
173
|
"hash": "b75fced1553745fe",
|
|
174
174
|
"childrenByOrder": {}
|
|
175
175
|
},
|
|
176
|
+
{
|
|
177
|
+
"type": "chunk",
|
|
178
|
+
"rendered": true,
|
|
179
|
+
"initial": false,
|
|
180
|
+
"entry": false,
|
|
181
|
+
"size": 1469,
|
|
182
|
+
"sizes": {
|
|
183
|
+
"javascript": 1469
|
|
184
|
+
},
|
|
185
|
+
"names": [],
|
|
186
|
+
"idHints": [],
|
|
187
|
+
"runtime": [
|
|
188
|
+
"@mherman22/esm-act-app"
|
|
189
|
+
],
|
|
190
|
+
"files": [
|
|
191
|
+
"284.js"
|
|
192
|
+
],
|
|
193
|
+
"auxiliaryFiles": [
|
|
194
|
+
"284.js.map"
|
|
195
|
+
],
|
|
196
|
+
"hash": "d1805025100eb134",
|
|
197
|
+
"childrenByOrder": {}
|
|
198
|
+
},
|
|
176
199
|
{
|
|
177
200
|
"type": "chunk",
|
|
178
201
|
"rendered": true,
|
|
@@ -246,7 +269,7 @@
|
|
|
246
269
|
"auxiliaryFiles": [
|
|
247
270
|
"mherman22-esm-act-app.js.map"
|
|
248
271
|
],
|
|
249
|
-
"hash": "
|
|
272
|
+
"hash": "a1a8365e19b73a6a",
|
|
250
273
|
"childrenByOrder": {}
|
|
251
274
|
},
|
|
252
275
|
{
|
|
@@ -789,10 +812,10 @@
|
|
|
789
812
|
"rendered": true,
|
|
790
813
|
"initial": false,
|
|
791
814
|
"entry": false,
|
|
792
|
-
"size":
|
|
815
|
+
"size": 16085,
|
|
793
816
|
"sizes": {
|
|
794
817
|
"consume-shared": 42,
|
|
795
|
-
"javascript":
|
|
818
|
+
"javascript": 16043
|
|
796
819
|
},
|
|
797
820
|
"names": [],
|
|
798
821
|
"idHints": [],
|
|
@@ -805,7 +828,7 @@
|
|
|
805
828
|
"auxiliaryFiles": [
|
|
806
829
|
"991.js.map"
|
|
807
830
|
],
|
|
808
|
-
"hash": "
|
|
831
|
+
"hash": "cc79576b60ef412c",
|
|
809
832
|
"childrenByOrder": {}
|
|
810
833
|
},
|
|
811
834
|
{
|
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=2.40.0","actcore":">=1.0.0-0","cohort":">=3.7.3","reportingrest":">=2.0.0"},"extensions":[{"name":"act-home-dashboard-link","slot":"homepage-dashboard-slot","component":"actHomeDashboardLink","meta":{"name":"act-home","slot":"rhd-home-dashboard-slot","title":"actHome"}},{"name":"act-home-dashboard","slot":"rhd-home-dashboard-slot","component":"actHomeDashboard"},{"name":"act-home-quick-actions","slot":"rhd-home-widgets-slot","component":"actHomeQuickActions","order":1},{"name":"act-home-worklists","slot":"rhd-home-widgets-slot","component":"actHomeWorklists","order":2},{"name":"act-home-waiting-list","slot":"rhd-home-widgets-slot","component":"actHomeWaitingList","order":3},{"name":"act-home-care-cascade","slot":"rhd-home-widgets-slot","component":"actHomeCareCascade","order":4},{"name":"act-registry-dashboard-link","slot":"homepage-dashboard-slot","component":"registryDashboardLink","meta":{"name":"act-registry","slot":"rhd-registry-dashboard-slot","title":"registry"}},{"name":"act-registry-dashboard","slot":"rhd-registry-dashboard-slot","component":"registryDashboard"},{"name":"act-worklists-dashboard-link","slot":"homepage-dashboard-slot","component":"worklistsDashboardLink","meta":{"name":"act-worklists","slot":"rhd-worklists-dashboard-slot","title":"worklists"}},{"name":"act-worklists-dashboard","slot":"rhd-worklists-dashboard-slot","component":"worklistsDashboard"},{"name":"act-waiting-list-dashboard-link","slot":"homepage-dashboard-slot","component":"waitingListDashboardLink","meta":{"name":"act-waiting-list","slot":"rhd-waiting-list-dashboard-slot","title":"waitingList"}},{"name":"act-waiting-list-dashboard","slot":"rhd-waiting-list-dashboard-slot","component":"waitingListDashboard"},{"name":"act-screen-positive-dashboard-link","slot":"homepage-dashboard-slot","component":"screenPositiveDashboardLink","meta":{"name":"act-screen-positive","slot":"rhd-screen-positive-dashboard-slot","title":"screenPositive"}},{"name":"act-screen-positive-dashboard","slot":"rhd-screen-positive-dashboard-slot","component":"screenPositiveDashboard"}],"workspaceGroups2":[{"name":"act-waiting-list","scopePattern":"/home/act-waiting-list"}],"workspaceWindows2":[{"name":"act-waiting-list-form-entry","group":"act-waiting-list","width":"extra-wide","canMaximize":true}],"workspaces2":[{"name":"rhd-flag-gaps-workspace","component":"flagGapsWorkspace","window":"patient-chart-clinical-forms"},{"name":"act-waiting-list-form-entry-workspace","component":"@openmrs/esm-patient-forms-app#exportedPatientFormEntryWorkspace","window":"act-waiting-list-form-entry"}],"version":"1.0.1-pre.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=2.40.0","actcore":">=1.0.0-0","cohort":">=3.7.3","reportingrest":">=2.0.0"},"extensions":[{"name":"act-home-dashboard-link","slot":"homepage-dashboard-slot","component":"actHomeDashboardLink","meta":{"name":"act-home","slot":"rhd-home-dashboard-slot","title":"actHome"}},{"name":"act-home-dashboard","slot":"rhd-home-dashboard-slot","component":"actHomeDashboard"},{"name":"act-home-quick-actions","slot":"rhd-home-widgets-slot","component":"actHomeQuickActions","order":1},{"name":"act-home-worklists","slot":"rhd-home-widgets-slot","component":"actHomeWorklists","order":2},{"name":"act-home-waiting-list","slot":"rhd-home-widgets-slot","component":"actHomeWaitingList","order":3},{"name":"act-home-care-cascade","slot":"rhd-home-widgets-slot","component":"actHomeCareCascade","order":4},{"name":"act-registry-dashboard-link","slot":"homepage-dashboard-slot","component":"registryDashboardLink","meta":{"name":"act-registry","slot":"rhd-registry-dashboard-slot","title":"registry"}},{"name":"act-registry-dashboard","slot":"rhd-registry-dashboard-slot","component":"registryDashboard"},{"name":"act-worklists-dashboard-link","slot":"homepage-dashboard-slot","component":"worklistsDashboardLink","meta":{"name":"act-worklists","slot":"rhd-worklists-dashboard-slot","title":"worklists"}},{"name":"act-worklists-dashboard","slot":"rhd-worklists-dashboard-slot","component":"worklistsDashboard"},{"name":"act-waiting-list-dashboard-link","slot":"homepage-dashboard-slot","component":"waitingListDashboardLink","meta":{"name":"act-waiting-list","slot":"rhd-waiting-list-dashboard-slot","title":"waitingList"}},{"name":"act-waiting-list-dashboard","slot":"rhd-waiting-list-dashboard-slot","component":"waitingListDashboard"},{"name":"act-screen-positive-dashboard-link","slot":"homepage-dashboard-slot","component":"screenPositiveDashboardLink","meta":{"name":"act-screen-positive","slot":"rhd-screen-positive-dashboard-slot","title":"screenPositive"}},{"name":"act-screen-positive-dashboard","slot":"rhd-screen-positive-dashboard-slot","component":"screenPositiveDashboard"},{"name":"act-prophylaxis-status-tag","slot":"patient-banner-tags-slot","component":"prophylaxisStatusTag"}],"workspaceGroups2":[{"name":"act-waiting-list","scopePattern":"/home/act-waiting-list"}],"workspaceWindows2":[{"name":"act-waiting-list-form-entry","group":"act-waiting-list","width":"extra-wide","canMaximize":true}],"workspaces2":[{"name":"rhd-flag-gaps-workspace","component":"flagGapsWorkspace","window":"patient-chart-clinical-forms"},{"name":"act-waiting-list-form-entry-workspace","component":"@openmrs/esm-patient-forms-app#exportedPatientFormEntryWorkspace","window":"act-waiting-list-form-entry"}],"version":"1.0.1-pre.70"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mherman22/esm-act-app",
|
|
3
|
-
"version": "1.0.1-pre.
|
|
3
|
+
"version": "1.0.1-pre.70",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "ACT 3.0 screens for OpenMRS 3: ACT home, the registry and the missing data behind RHD flags",
|
|
6
6
|
"browser": "dist/mherman22-esm-act-app.js",
|
package/src/index.ts
CHANGED
|
@@ -19,6 +19,11 @@ export function startupApp() {
|
|
|
19
19
|
defineConfigSchema(moduleName, configSchema);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
export const prophylaxisStatusTag = getAsyncLifecycle(
|
|
23
|
+
() => import('./prophylaxis/prophylaxis-status-tag.component'),
|
|
24
|
+
options,
|
|
25
|
+
);
|
|
26
|
+
|
|
22
27
|
export const flagGapsWorkspace = getAsyncLifecycle(() => import('./flag-gaps/flag-gaps.workspace'), options);
|
|
23
28
|
|
|
24
29
|
export const actHomeDashboardLink = getSyncLifecycle(actHomeDashboardLinkComponent, options);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useTranslation } from 'react-i18next';
|
|
3
|
+
import { Tag } from '@carbon/react';
|
|
4
|
+
import { useProphylaxisSummary } from './prophylaxis.resource';
|
|
5
|
+
|
|
6
|
+
interface ProphylaxisStatusTagProps {
|
|
7
|
+
patientUuid: string;
|
|
8
|
+
patient?: fhir.Patient;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/** The patient banner's Overdue or Due today tag; up to date, unknown, unreadable or deceased shows none. */
|
|
12
|
+
export default function ProphylaxisStatusTag({ patientUuid, patient }: ProphylaxisStatusTagProps) {
|
|
13
|
+
const { t } = useTranslation();
|
|
14
|
+
const deceased = Boolean(patient?.deceasedBoolean || patient?.deceasedDateTime);
|
|
15
|
+
const { summary } = useProphylaxisSummary(deceased ? null : patientUuid);
|
|
16
|
+
|
|
17
|
+
if (summary?.status === 'overdue') {
|
|
18
|
+
return (
|
|
19
|
+
<Tag data-testid="prophylaxis-status" type="red">
|
|
20
|
+
{t('overdue', 'Overdue')}
|
|
21
|
+
</Tag>
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
if (summary?.status === 'dueToday') {
|
|
25
|
+
return (
|
|
26
|
+
<Tag data-testid="prophylaxis-status" type="blue">
|
|
27
|
+
{t('dueToday', 'Due today')}
|
|
28
|
+
</Tag>
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { describe, expect, it, vi } from 'vitest';
|
|
3
|
+
import { render, screen, waitFor } from '@testing-library/react';
|
|
4
|
+
import { SWRConfig } from 'swr';
|
|
5
|
+
import { openmrsFetch } from '@openmrs/esm-framework';
|
|
6
|
+
import ProphylaxisStatusTag from './prophylaxis-status-tag.component';
|
|
7
|
+
|
|
8
|
+
const mockOpenmrsFetch = vi.mocked(openmrsFetch);
|
|
9
|
+
|
|
10
|
+
function summary(status: string | null) {
|
|
11
|
+
return {
|
|
12
|
+
regimen: 'Q21 day BPG',
|
|
13
|
+
type: 'BPG',
|
|
14
|
+
intervalDays: 21,
|
|
15
|
+
lastGiven: '2026-08-22',
|
|
16
|
+
nextDue: '2026-09-12',
|
|
17
|
+
status,
|
|
18
|
+
onTime: { given: 3, total: 4, months: 6 },
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function respondWith(status: string | null) {
|
|
23
|
+
mockOpenmrsFetch.mockResolvedValue({ data: summary(status) } as never);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const patientUuid = 'patient-uuid';
|
|
27
|
+
|
|
28
|
+
// A cache per render keeps one test's answer out of the next; the 1 ms interval lets a retry happen in a test.
|
|
29
|
+
function renderTag(patient?: fhir.Patient) {
|
|
30
|
+
return render(
|
|
31
|
+
<SWRConfig value={{ provider: () => new Map(), errorRetryInterval: 1 }}>
|
|
32
|
+
<ProphylaxisStatusTag patientUuid={patientUuid} patient={patient} />
|
|
33
|
+
</SWRConfig>,
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
async function settled() {
|
|
38
|
+
await waitFor(() => expect(mockOpenmrsFetch).toHaveBeenCalled());
|
|
39
|
+
await new Promise((resolve) => setTimeout(resolve, 0));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
describe('ProphylaxisStatusTag', () => {
|
|
43
|
+
it('says Overdue in red for an overdue patient, asking about that patient', async () => {
|
|
44
|
+
respondWith('overdue');
|
|
45
|
+
|
|
46
|
+
renderTag();
|
|
47
|
+
|
|
48
|
+
const tag = await screen.findByTestId('prophylaxis-status');
|
|
49
|
+
expect(tag).toHaveTextContent('Overdue');
|
|
50
|
+
expect(tag).toHaveClass('cds--tag--red');
|
|
51
|
+
expect(mockOpenmrsFetch).toHaveBeenCalledWith(
|
|
52
|
+
expect.stringMatching(new RegExp(`/actcore/prophylaxis\\?patient=${patientUuid}$`)),
|
|
53
|
+
);
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
it('says Due today in blue for a dose due today', async () => {
|
|
57
|
+
respondWith('dueToday');
|
|
58
|
+
|
|
59
|
+
renderTag();
|
|
60
|
+
|
|
61
|
+
const tag = await screen.findByTestId('prophylaxis-status');
|
|
62
|
+
expect(tag).toHaveTextContent('Due today');
|
|
63
|
+
expect(tag).toHaveClass('cds--tag--blue');
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
it.each(['dueSoon', 'ok', 'none', null])('shows no tag for a status of %s', async (status) => {
|
|
67
|
+
respondWith(status);
|
|
68
|
+
|
|
69
|
+
const { container } = renderTag();
|
|
70
|
+
await settled();
|
|
71
|
+
|
|
72
|
+
expect(container).toBeEmptyDOMElement();
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
it('shows no tag when the summary cannot be read, asking once', async () => {
|
|
76
|
+
mockOpenmrsFetch.mockRejectedValue(new Error('Privilege required: Get Observations'));
|
|
77
|
+
|
|
78
|
+
const { container } = renderTag();
|
|
79
|
+
await waitFor(() => expect(mockOpenmrsFetch).toHaveBeenCalled());
|
|
80
|
+
await new Promise((resolve) => setTimeout(resolve, 50));
|
|
81
|
+
|
|
82
|
+
expect(container).toBeEmptyDOMElement();
|
|
83
|
+
expect(mockOpenmrsFetch).toHaveBeenCalledTimes(1);
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
it.each([{ deceasedBoolean: true }, { deceasedDateTime: '2026-09-01' }])(
|
|
87
|
+
'shows no tag for a deceased patient, without asking (%o)',
|
|
88
|
+
async (deceased) => {
|
|
89
|
+
respondWith('overdue');
|
|
90
|
+
|
|
91
|
+
const { container } = renderTag({ resourceType: 'Patient', ...deceased });
|
|
92
|
+
await new Promise((resolve) => setTimeout(resolve, 50));
|
|
93
|
+
|
|
94
|
+
expect(container).toBeEmptyDOMElement();
|
|
95
|
+
expect(mockOpenmrsFetch).not.toHaveBeenCalled();
|
|
96
|
+
},
|
|
97
|
+
);
|
|
98
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import useSWR from 'swr';
|
|
2
|
+
import { type FetchResponse, openmrsFetch, restBaseUrl } from '@openmrs/esm-framework';
|
|
3
|
+
|
|
4
|
+
/** null for an oral regimen whose supply end is unknown. */
|
|
5
|
+
export type ProphylaxisStatus = 'overdue' | 'dueToday' | 'dueSoon' | 'ok' | 'none' | null;
|
|
6
|
+
|
|
7
|
+
export interface ProphylaxisSummary {
|
|
8
|
+
regimen: string | null;
|
|
9
|
+
type: 'BPG' | 'Oral' | null;
|
|
10
|
+
intervalDays: number | null;
|
|
11
|
+
lastGiven: string | null;
|
|
12
|
+
nextDue: string | null;
|
|
13
|
+
status: ProphylaxisStatus;
|
|
14
|
+
onTime: { given: number; total: number; months: number } | null;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export function useProphylaxisSummary(patientUuid: string | null) {
|
|
18
|
+
const { data } = useSWR<FetchResponse<ProphylaxisSummary>, Error>(
|
|
19
|
+
patientUuid ? `${restBaseUrl}/actcore/prophylaxis?patient=${patientUuid}` : null,
|
|
20
|
+
openmrsFetch,
|
|
21
|
+
// A user without Get Observations is refused every time, once per banner on a search page.
|
|
22
|
+
{ shouldRetryOnError: false },
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
return { summary: data?.data };
|
|
26
|
+
}
|
package/src/routes.json
CHANGED
|
@@ -105,6 +105,11 @@
|
|
|
105
105
|
"name": "act-screen-positive-dashboard",
|
|
106
106
|
"slot": "rhd-screen-positive-dashboard-slot",
|
|
107
107
|
"component": "screenPositiveDashboard"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "act-prophylaxis-status-tag",
|
|
111
|
+
"slot": "patient-banner-tags-slot",
|
|
112
|
+
"component": "prophylaxisStatusTag"
|
|
108
113
|
}
|
|
109
114
|
],
|
|
110
115
|
"workspaceGroups2": [
|
package/src/routes.test.ts
CHANGED
|
@@ -78,4 +78,10 @@ describe('routes.json', () => {
|
|
|
78
78
|
expect(link.meta).toEqual(screenPositiveDashboardMeta);
|
|
79
79
|
expect(page.component).toBe('screenPositiveDashboard');
|
|
80
80
|
});
|
|
81
|
+
|
|
82
|
+
it("adds the prophylaxis status tag to the patient banner's tags", () => {
|
|
83
|
+
const tag = routes.extensions.find((extension) => extension.component === 'prophylaxisStatusTag');
|
|
84
|
+
|
|
85
|
+
expect(tag.slot).toBe('patient-banner-tags-slot');
|
|
86
|
+
});
|
|
81
87
|
});
|
package/translations/en.json
CHANGED