@act-registry/esm-act-app 1.0.1-pre.295 → 1.0.1-pre.314

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/2347.js ADDED
@@ -0,0 +1 @@
1
+ (globalThis.webpackChunk_act_registry_esm_act_app=globalThis.webpackChunk_act_registry_esm_act_app||[]).push([["2347"],{4767(e,t,a){var i={"./en.json":["4300","5117"]};function s(e){if(!a.o(i,e))return Promise.resolve().then(function(){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=i[e],s=t[0];return a.e(t[1]).then(function(){return a(s)})}s.keys=()=>Object.keys(i),s.id=4767,e.exports=s},8940(e,t,a){"use strict";a.d(t,{p:()=>o});var i=a(4335),s=a.n(i),n=a(1675),r=a(2909);function o({meta:e}){return s().createElement(n.BrowserRouter,null,s().createElement(r.DashboardExtension,{path:e.name,title:e.title,basePath:`${window.spaBase}/home`}))}},1256(e,t,a){"use strict";a.d(t,{z:()=>n});var i=a(2909),s=a(7003);function n(){let{user:e}=(0,i.useSession)();return!!e&&(0,i.userHasAccess)(s.vG,e)}},8596(e,t,a){"use strict";a.d(t,{Am:()=>n,DL:()=>i,hk:()=>s});let i={name:"act-home",slot:"rhd-home-dashboard-slot",title:"actHome"},s="rhd-home-widgets-slot",n="act-home-quick-actions-slot"},5970(e,t,a){"use strict";a.d(t,{KP:()=>y,LP:()=>f});var i=a(8596),s=a(4538),n=a(2066),r=a(4372),o=a(2762),c=a(5482),d=a(7056),l=a(3394);let h="act-chart-return",p=[i.DL.name,o.J.name,l.av.name,d.d.name,c.b.name,s.SJ.name,n.E.name,r.k.name];function f(){try{return JSON.parse(window.sessionStorage.getItem(h)??"null")}catch{return null}}function y(){window.addEventListener("single-spa:before-routing-event",e=>{let{oldUrl:t,newUrl:a}=e.detail??{};t&&a&&t!==a&&function(e){try{e?window.sessionStorage.setItem(h,JSON.stringify(e)):window.sessionStorage.removeItem(h)}catch{}}(function(e,t,a){let i,s,n=new URL(t);if(i=new URL(a),!/\/patient\/[^/]+\/chart/.test(i.pathname))return null;if(/\/patient\/[^/]+\/chart/.test(n.pathname))return e;let r=(s=n.pathname.match(/\/home\/([^/]+)/)?.[1],p.find(e=>e===s)??null);return r?{screen:r,path:`${n.pathname}${n.search}`}:null}(f(),t,a))})}},4538(e,t,a){"use strict";a.d(t,{$C:()=>n,SJ:()=>i,af:()=>s});let i={name:"act-community-home",slot:"act-community-home-dashboard-slot",title:"home"},s="act-community-home-widgets-slot",n="act-community-home-quick-actions-slot"},7003(e,t,a){"use strict";a.d(t,{$N:()=>p,$O:()=>l,AZ:()=>u,Kp:()=>h,Ky:()=>d,My:()=>c,UI:()=>b,VU:()=>g,hG:()=>s,iZ:()=>f,jy:()=>m,oy:()=>y,sJ:()=>o,tg:()=>n,vG:()=>i,z$:()=>r});let i="App: act.home",s="App: act.worklists",n="App: act.screenPositive",r="Task: act.lists.export",o="Task: act.refreshFlags",c="App: act.studies",d="Task: act.manageStudies",l="Task: act.enterClinicalForms",h="View Audit Logs",p="View Read Audit Logs",f="Task: act.downloadData",y="Task: act.downloadIdentifiers",u="Task: act.downloadResearchData",m="Add Encounters",b="Edit Users",g="Manage Locations"},2066(e,t,a){"use strict";a.d(t,{E:()=>i});let i={name:"act-due-for-prophylaxis",slot:"rhd-due-for-prophylaxis-dashboard-slot",title:"dueForProphylaxis"}},4372(e,t,a){"use strict";a.d(t,{k:()=>i});let i={name:"act-enter-prophylaxis",slot:"act-enter-prophylaxis-dashboard-slot",title:"enterProphylaxis"}},6342(e,t,a){"use strict";a.r(t),a.d(t,{facilityReportsDashboardLink:()=>eT,communityHomeQuickActions:()=>eK,facilityReportsDashboard:()=>eD,prophylaxisCard:()=>H,adminNav:()=>ej,worklistsDashboard:()=>eh,enterProphylaxisQuickAction:()=>eY,cliniciansOnlyNote:()=>X,recordOralQuickAction:()=>e9,cardiacTestsDashboardLink:()=>Y,backToActLink:()=>x,downloadDashboard:()=>eH,importTranslation:()=>S,patientsOnProphylaxisDashboard:()=>eN,prophylaxisPageDashboardLink:()=>N,reportsDashboardLink:()=>ew,registryDashboardLink:()=>ec,waitingListDashboard:()=>eb,communityHomeDashboard:()=>eQ,actHomeDashboard:()=>ei,downloadDashboardLink:()=>eE,dueForProphylaxisDashboardLink:()=>eO,instanceAdminDashboard:()=>eL,instanceAdminDashboardLink:()=>eP,refreshFlagsDashboard:()=>eI,waitingListWorklist:()=>eu,formsAndSitesQuickAction:()=>e1,waitingListDashboardLink:()=>em,usersDashboard:()=>ek,actHomeWorklists:()=>en,communityHomeDashboardLink:()=>eG,flagGapsWorkspace:()=>et,registryDashboard:()=>ed,sessionTimeout:()=>I,clinicalFlags:()=>J,startupApp:()=>U,studiesDashboardLink:()=>eS,instanceAdminNav:()=>eq,refreshFlagsDashboardLink:()=>ex,cardiacTestsDashboard:()=>ee,confirmatoryEchoWorklist:()=>ef,prophylaxisPageDashboard:()=>O,dashboard:()=>eC,instanceAdminKpis:()=>ez,downloadLogDashboard:()=>eB,patientsOnProphylaxisDashboardLink:()=>eW,flagWorklist:()=>ey,researchPageDashboard:()=>M,dashboardLink:()=>eR,worklistsDashboardLink:()=>el,registerPatientQuickAction:()=>eX,dueForProphylaxisWorklist:()=>ep,reportsDashboard:()=>e_,actHomeOverdueConsultation:()=>er,instanceAdminQuickActions:()=>eJ,inrStatusFlag:()=>K,scanPatientCardDashboard:()=>B,dueForProphylaxisWidget:()=>eM,researchParticipationQuickAction:()=>e6,inrReviewsDashboardLink:()=>q,facilityReportQuickAction:()=>e5,inrReviewsDashboard:()=>Q,nextStepsCard:()=>E,findPatientQuickAction:()=>e8,dueForProphylaxisDashboard:()=>e$,consultationCard:()=>V,usersDashboardLink:()=>ev,screenPositiveDashboard:()=>eA,patientStatusFlags:()=>W,scanPatientCardDashboardLink:()=>F,consultationsDashboardLink:()=>G,contactCard:()=>Z,researchPageDashboardLink:()=>$,screenPositiveDashboardLink:()=>eg,rolePermissionsQuickAction:()=>e4,recordBpgQuickAction:()=>e0,downloadLogDashboardLink:()=>eF,actHomeCareCascade:()=>eo,actHomeDashboardLink:()=>ea,actHomeQuickActions:()=>es,consultationsDashboard:()=>j,studiesDashboard:()=>eU,inrCard:()=>z});var i=a(2909);let s=(e,t)=>({_type:i.Type.Array,_elements:{_type:i.Type.String},_default:t,_description:`Location tags that mark ${e}.`}),n=(e,t)=>({_type:i.Type.ConceptUuid,_default:t,_description:e}),r=(e,t)=>({_type:i.Type.String,_default:t,_description:e}),o={clinicLocationTags:{cardiac:s("cardiac clinics",["RHD Tertiary","RHD District"]),primaryCare:s("primary care clinics",["RHD Community"])},flagLists:{namePrefix:{_type:i.Type.String,_default:"RHD ",_description:"The registry's Flags column and filter show the flags whose names start with this, unless names is set. Each worklist names its own flag in its extension's config."},names:{_type:i.Type.Array,_elements:{_type:i.Type.String},_default:[],_description:"The flags, by name, that the registry's Flags column and filter show. When set, namePrefix is not used."},riskFlags:{_type:i.Type.Array,_elements:{_type:i.Type.String},_default:["RHD prophylaxis overdue","RHD oral prophylaxis overdue","RHD lost to follow-up"],_description:"The flags, by name, that mark a clinical risk: red in the registry. Every other flag is missing data, orange, unless earlyWarningFlags names it."},earlyWarningFlags:{_type:i.Type.Array,_elements:{_type:i.Type.String},_default:["RHD cardiology follow-up due","RHD INR review due","RHD no data for 5 months"],_description:"The flags, by name, that warn of care coming due rather than of missing data: blue in the registry, as the chart draws the distro's RHD Early Warning priority. A flag listed here and in riskFlags counts as a risk."},flagForms:{_type:i.Type.Array,_elements:{flag:{_type:i.Type.UUID,_description:"The flag, by uuid."},form:{_type:i.Type.UUID,_description:"The form to record the missing data on, by uuid."},concept:{_type:i.Type.UUID,_default:"",_description:"The question to open the form at, by concept uuid; leave it out to open the form at the top."}},_default:[{flag:"b1f7a2c0-0005-4a00-9000-000000000005",form:"4b063fc7-996f-3001-8500-8940e201be8f",concept:"668e0221-8b41-5669-9ad8-78e193d42494"}],_description:"The form a flag's missing data is recorded on when the patient has no saved form to complete. The flag's workspace offers it as a new form, also for a flag whose criteria list no missing data, such as a risk flag; a flag not listed here offers the clinical forms list."}},quickActions:{registerPatientUrl:r("Where the Register patient quick action on ACT home and on Home leads.","${openmrsSpaBase}/patient-registration"),enterProphylaxisInFastDataEntry:{_type:i.Type.Boolean,_default:!1,_description:"Whether Enter prophylaxis on ACT home leads to fast data entry (prophylaxisForms, else enterProphylaxisUrl). When false, it opens Enter prophylaxis, the registry's patients on prophylaxis with Record BPG or Record oral on each. It covers Enter prophylaxis only: Record BPG injection and Record oral prophylaxis always open the patient search."},enterProphylaxisUrl:r("Where the Enter prophylaxis quick action on ACT home leads, when enterProphylaxisInFastDataEntry is true and prophylaxisForms is empty: the fast data entry app.","${openmrsSpaBase}/forms"),prophylaxisForms:{_type:i.Type.Array,_elements:{label:{_type:i.Type.String,_description:"The choice as ACT home shows it."},url:{_type:i.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 when enterProphylaxisInFastDataEntry is true, 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."},findPatientInPanel:{_type:i.Type.Boolean,_default:!0,_description:"Whether Find a patient on ACT home and on Home opens ACT's patient search over the page. When false, it leads to findPatientUrl."},findPatientUrl:r("Where the Find a patient quick action on ACT home and on Home leads when findPatientInPanel is false. 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=")},dataClerkQuickActions:{facilityReportUrl:r("Where the Facility report quick action on Home leads (Facility reports), for a user holding App: act.dataClerk.","${openmrsSpaBase}/home/act-facility-reports")},instanceAdminQuickActions:{formsAndSitesUrl:r("Where the Forms & sites quick action on the Instance dashboard leads: OpenMRS's forms list, for a user holding App: act.instanceAdmin.","${openmrsBase}/admin/forms/form.list"),rolePermissionsUrl:r("Where the Role permissions quick action on the Instance dashboard leads: OpenMRS's user management, the same page the left nav's Users and roles opens.","${openmrsBase}/admin/users/users.list"),researchParticipationUrl:r("Where the Research participation quick action on the Instance dashboard leads: OpenMRS's module configuration, for a user holding App: act.instanceAdmin.","${openmrsBase}/admin/maintenance/settings.list")},instanceAdminKpis:{report:{_type:i.Type.String,_default:"6494be01-b4ae-46af-8d7f-058a2f95c115",_description:"The RHD Instance KPIs report, by uuid or name, run for the last seven days: one row whose encounters column is Entered this week (RHD forms dated in the range), and whose active_patients and active_complete columns give Data completeness (the patients on the registry now, and those of them on no Critical data flag's list)."}},users:{roleChoices:{_type:i.Type.Array,_elements:{_type:i.Type.Object,administratorRole:{_type:i.Type.UUID,_description:"The role, by uuid, of the administrator these roles are offered to."},roles:{_type:i.Type.Array,_elements:{_type:i.Type.UUID},_description:"The roles, by uuid, they may give."}},_default:[{administratorRole:"c95f35f4-0422-46a3-a593-a6615fab90bc",roles:["b9ab4b76-e7b9-46a7-b4ec-5b7fdd8fa540","61e9bb28-11df-4df1-965d-11ef928d5239","60625a0c-3cea-4fe5-b6ca-615c743ad9d4","a1295a20-7273-4339-b5df-2f8a3a841c77","07a7affa-b7de-46d9-9faa-aac4ef2eccba","c95f35f4-0422-46a3-a593-a6615fab90bc"]},{administratorRole:"07a7affa-b7de-46d9-9faa-aac4ef2eccba",roles:["b9ab4b76-e7b9-46a7-b4ec-5b7fdd8fa540","61e9bb28-11df-4df1-965d-11ef928d5239","60625a0c-3cea-4fe5-b6ca-615c743ad9d4","a1295a20-7273-4339-b5df-2f8a3a841c77"]},{administratorRole:"a1295a20-7273-4339-b5df-2f8a3a841c77",roles:["b9ab4b76-e7b9-46a7-b4ec-5b7fdd8fa540","61e9bb28-11df-4df1-965d-11ef928d5239","60625a0c-3cea-4fe5-b6ca-615c743ad9d4"]}],_description:"The roles the Users page offers, as ACT 2.0's: the first entry whose administrator role the signed-in user holds wins; a super user gets the first. By default a global administrator gives any ACT role, an instance administrator the clinician roles and Site Administrator, and a site administrator the clinician roles, which is also all ACT Core lets it give (actcore.users.siteAdministratorRoles)."}},adminLinks:{usersUrl:r("Where the left nav's Users and roles leads, for a user holding Edit Users: ACT's Users page, which offers each administrator the roles and clinics they may give.","${openmrsSpaBase}/home/act-users"),clinicsUrl:r("Where the left nav's Clinics leads: OpenMRS's locations, for a user holding Manage Locations.","${openmrsBase}/admin/locations/location.list"),studiesUrl:r("Where the left nav's Studies leads: the Studies dashboard in this app, for a user holding App: act.studies.","${openmrsSpaBase}/home/act-studies"),refreshFlagsUrl:r("Where the left nav's Flags and adherence leads: the page that refreshes them now, for a user holding Task: act.refreshFlags.","${openmrsSpaBase}/home/act-refresh-flags"),userActivityUrl:r("Where the left nav's User activity leads: the audit log app's page of what each user created, edited and deleted, such as forms, for a user holding View Audit Logs.","${openmrsSpaBase}/audit-logs"),patientsOpenedUrl:r("Where the left nav's Patients opened leads: the audit log module's read audit page, of the patients' records each user read, for a user holding View Read Audit Logs.","${openmrsBase}/module/auditlogweb/readauditlogs.form"),downloadUrl:r("Where the left nav's Download data leads: the download of a form's fields in this app, for a user holding Task: act.downloadData or Task: act.downloadResearchData.","${openmrsSpaBase}/home/act-download"),downloadLogUrl:r("Where the left nav's Download log leads: who downloaded which form's fields, in this app, for a user holding View Read Audit Logs.","${openmrsSpaBase}/home/act-download-log")},careCascade:{report:{_type:i.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:r("Where the care cascade widget's link to the full report leads.","${openmrsSpaBase}/reports"),steps:{_type:i.Type.Array,_elements:{_type:i.Type.Object,step:{_type:i.Type.String,_description:"The report row's step value."},label:{_type:i.Type.String,_description:"What the widget calls it."}},_default:[{step:"Active",label:"Active"},{step:"Prescribed",label:"Prescribed"},{step:"Prescribed Prophylaxis",label:"Prescribed"},{step:"Initiated",label:"Initiated"},{step:"Initiated BPG",label:"Initiated"},{step:"Covered today",label:"Covered today"},{step:"Adherent (80%+)",label:"Adherent (80%+)"},{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, so they are left out by default. The defaults also match the step names the report used before it had Covered today, so a distro on that report still draws its four steps."}},registry:{report:{_type:i.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:i.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."}},dashboard:{medicalOptimisationReport:{_type:i.Type.String,_default:"733a512c-3243-4e91-a44a-06a8e5384606",_description:"The RHD Medical Optimisation report, by uuid or name: one row per measure (its measure, done and not_done columns), for the Dashboard's Medical optimisation."},screeningCascadeReport:{_type:i.Type.String,_default:"8b257a0c-7e96-5a01-9672-975cae3b0419",_description:"The RHD Screening Cascade report, by uuid or name, for the Dashboard's screening cascade."},screeningDiagnosesReport:{_type:i.Type.String,_default:"6ddf6b36-2789-4733-8433-a877d54795cf",_description:"The RHD Screening Diagnoses report, by uuid or name: the diagnosis categories and RHD details of the screen-detected, for the Dashboard."}},consultations:{encounterType:{_type:i.Type.UUID,_default:"c2503561-c00d-5460-8157-43d594472b4a",_description:"The RHD Consultation Visit encounter type, whose encounters the Consultation visits page lists."},form:{_type:i.Type.UUID,_default:"4b063fc7-996f-3001-8500-8940e201be8f",_description:"The RHD Consultation Visit form, which Start consultation opens."},concepts:{_type:i.Type.Object,_default:{date:"c3edefd2-5777-5084-b01e-fd4ca0e40162",nyha:"2f51b894-383c-53bb-9997-583e9761d132",prophylaxis:"668e0221-8b41-5669-9ad8-78e193d42494",dateStopped:"d75edc42-3213-5a06-9228-4e5735b9594b",nextAmount:"ba4b8a87-2ce8-559e-9a30-45504a9b6c1f",nextPeriod:"1732AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",medication:"0734567e-4f0a-5090-9d74-b953921a30e6",medicationDose:"8879385e-d35e-50a3-a3d0-4333d95d4878",recommendation:"ce93d393-1df5-587f-bf11-c373eac2ccf4",completed:"1632f8dc-195d-5d67-a52e-6c7a057cb536"},_description:"The consultation's questions: Date of Consultation Visit, NYHA Classification, Secondary Antibiotic Prophylaxis (the group and its regimen share the concept), Date Stopped, Next Consultation Time Amount and Period, Cardiac Medication (group and medicine share the concept) and its Dosing, and Interventional Recommendation(s) (group and procedure share the concept) with its Completed answer."},vitaminKAntagonists:{_type:i.Type.Array,_elements:{_type:i.Type.UUID},_default:["5e97fe35-58df-4925-bba7-7c49d75268a1","3c7f8916-3ab5-5678-83c5-be7c7bb1f5e7"],_description:"The Cardiac Medication answers that put a patient on warfarin, as the INR flags read them: warfarin and the other vitamin K antagonist. A patient whose latest consultation records one, not stopped, has the INR reviews page and card."}},inrReviews:{encounterType:{_type:i.Type.UUID,_default:"b4bb88a3-9a04-5142-85bd-bb63c270f632",_description:"The RHD INR Monitoring encounter type, whose encounters the INR reviews page lists."},form:{_type:i.Type.UUID,_default:"fe4848b2-a0b4-329f-a6a3-6ffc298e09a9",_description:"The RHD INR Monitoring form, which Record INR opens."},concepts:{_type:i.Type.Object,_default:{target:"0778ce12-ddba-5e22-b5fd-92424e8747b4",group:"bd88ecf3-eac2-516a-8949-a93f90d6483b",dateTested:"be9041b1-3948-5de0-a8b1-974e84b95715",value:"161482AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",newDose:"f27f6ed2-48db-5be7-91da-3e2483915462",nextInr:"5096AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},_description:"The INR form's questions: INR Target, the INR Value group with its Date Tested, INR Value and New Anticoagulant Dose, and Next INR Date."}},contactCard:{attributeTypes:{_type:i.Type.Object,_default:{phone:"542c6fd2-05ca-53e3-a4f5-cd23bc1abd8f",phoneOwner:"ea3cb7ae-ffbe-5aee-8343-44977898f675",primaryCareClinic:"695f2990-236f-5d7c-b8aa-ddbdb22400f4",cardiacClinic:"fe261119-2911-5b36-be40-8f9827826987"},_description:"The person attribute types the Contact card shows: Primary Phone, Phone Owner Name, Primary Care Clinic and Assigned Cardiac Clinic. The village is the person's address."}},clinicianPrivilege:{_type:i.Type.String,_default:"Task: act.enterClinicalForms",_description:'The privilege that marks a clinician for the chart: the Conditions card shows only to its holders, and its non-holders read "Clinical dashboards are only visible to clinicians" under the chart\'s pages.'},waitingList:{report:{_type:i.Type.String,_default:"5b0f1c2e-9d3a-4c1b-8f6e-2a7d9e4b3c10",_description:"The Procedural Waiting List report, by uuid or name, whose rows the waiting list shows."}},dueForProphylaxis:{report:{_type:i.Type.String,_default:"f3d8b672-a8a3-47a3-8a0b-dff01de6e3a8",_description:"The Due for Prophylaxis report, by uuid or name, whose rows the Due for prophylaxis page and widget list."}},screenPositive:{report:{_type:i.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."}},studies:{participantsReport:{_type:i.Type.String,_default:"ea8687da-4bed-5e2b-bafa-7a11ad9bc3ae",_description:"The RHD Study Participants report, by uuid or name: one row per study enrolment, which Studies lists and counts."},studyParticipantIdAttributeType:{_type:i.Type.UUID,_default:"7840ba5d-d927-52d6-907b-dd070bea6626",_description:"The program attribute type that holds a participant's ID in a study, as ACT 2.0's Study ID."},researchOptInAttributeType:{_type:i.Type.UUID,_default:"a78f6ae3-faec-5db8-9493-53877985ca7f",_description:"The person attribute type, of Concept format, that records whether the patient would like to be considered for research."},consentAttributeType:{_type:i.Type.UUID,_default:"e15bf9b7-249e-5d75-907d-937b8d9b0c46",_description:"The person attribute type, of Concept format, that records registry consent at registration. A patient is enrolled in a study only after consenting, as ACT Core requires."},yesConcept:n("The Yes answer of registry consent and of the research opt-in.","1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"),noConcept:n("The No answer of the research opt-in.","1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")},programmeReport:{report:{_type:i.Type.String,_default:"c4a9e2d1-7b3f-4e58-9a16-2f0d8b5c7e31",_description:"The RHD Programme Report, by uuid or name, whose rows (one per primary care clinic) the Reports and Facility reports pages show."}},cardiacTests:{echoForm:{_type:i.Type.UUID,_default:"88e54fb0-1243-3f7a-b925-f64648ca6635",_description:"The form the chart's Cardiac tests page opens from Add."},echoEncounterType:{_type:i.Type.UUID,_default:"730f5ec2-7102-55d0-8602-2d792844f245",_description:"The encounter type of the echocardiograms the Cardiac tests page lists, the echo form's."},concepts:{date:n("Date of Echocardiogram, the date a row shows; without one, the encounter date.","911be530-9457-54be-8515-4bbcdb832ccb"),mitralRegurgitation:n("Mitral Regurgitation, the Mitral regurgitation column.","d6ab05e2-1ece-5f8f-893d-74739aa66ce5"),mitralStenosis:n("Mitral stenosis severity, the Mitral stenosis column.","ed209fc3-0138-516c-a0bd-bcd3b2697a87"),aorticRegurgitation:n("Aortic Regurgitation, the Aortic regurgitation column.","0bbc510f-1e95-5c74-bbe3-8896907fd6c1"),aorticStenosis:n("Aortic Stenosis, the Aortic stenosis column.","7586c9a6-73db-5ab2-8f23-71a3cc4bae62"),ejectionFraction:n("Left Ventricular Ejection Fraction, the Left ventricular ejection fraction column, in %.","ed630fda-8451-53c0-929e-40eafd9bca9b")},ecgForm:{_type:i.Type.UUID,_default:"3776bb8d-4741-3741-aeef-d5b760443569",_description:"The form the Cardiac tests page's Electrocardiograms card opens from Add."},ecgEncounterType:{_type:i.Type.UUID,_default:"64c3f35f-a3ec-59d6-8178-0ca9f068cda8",_description:"The encounter type of the electrocardiograms the Cardiac tests page lists, the ECG form's."},ecgConcepts:{date:n("Date of Electrocardiogram, the date a row shows; without one, the encounter date.","a85d4e63-500f-5af9-8ebd-9e1db5ddc3ed"),result:n("Electrocardiogram Result, the Result column, one answer per finding.","1c5476e4-ff12-5fbd-b2ad-53f66f9006a0"),otherFinding:n("Other Electrocardiogram Finding, the Other finding column.","67d65827-eea5-57ac-ae8b-77f91d128063")}},prophylaxisPage:{bpgEncounterType:{_type:i.Type.UUID,_default:"04cf03db-3b8e-5020-84b0-50b06338767a",_description:"The encounter type of the BPG injections the chart's Prophylaxis page lists, the BPG form's."},oralEncounterType:{_type:i.Type.UUID,_default:"55271793-ef37-58da-9d86-1d9092a5a809",_description:"The encounter type of the oral adherence entries the Prophylaxis page lists, the oral form's."},concepts:{injectionDate:n("Date of Injection, the date a BPG row shows. A BPG visit without one was withheld, so it is not listed or counted as recorded today.","183fb30e-b861-5b7c-806f-7118a40f2b51"),doseGiven:n("Dose given, the BPG dose a row shows; an injection saved before the form asked it has none.","6a52b6aa-2427-4fa2-93cb-18956f50c16a"),facility:n("Facility, a location picked on the BPG form; without one, the encounter location.","01e6dd39-b8ba-5b0a-bcd7-6b8d5973c1bc"),lateReason:n("If injection(s) late, why?, the reasons a late injection tag names.","f7cbfcdc-58bb-5e85-86ab-ffce26a08615"),estimateDate:n("Date of Adherence Estimate, the date an oral row shows; without one, the encounter date.","99512ab5-208e-5c37-8f7b-8f72abe2a0db"),adherence:n("Adherence Estimate, the percentage an oral row shows.","8edff8dc-4af6-5d0f-bf1d-8e349c7a1b15"),basedOn:n("Adherence Based On, what an oral row says the estimate was based on.","4313005d-d5b2-5d20-bf33-39aab1bf90c0"),lowAdherenceReason:n("Explanation if Adherence is Below 80%, the reason an oral row gives for low adherence.","a9fbf67b-65d7-57f6-8270-7bb65cd49469"),newPrescription:n("New Prescription Duration, the supply an oral row says was given.","cd03af00-de81-5c08-9a02-92f95c00e1ce")}},nextSteps:{enabled:{_type:i.Type.Boolean,_default:!0,_description:"Whether the patient summary shows Next steps for this visit, from ACT Core's /actcore/nextsteps. When false, the card is hidden and neither /actcore/nextsteps nor the form list is fetched."}},prophylaxisCard:{bpgForm:{_type:i.Type.UUID,_default:"0119d2e6-e2e1-391c-9b88-d59a10b0780d",_description:"The form Record BPG opens, on the patient summary's Prophylaxis card and the chart's Prophylaxis page, to record a BPG injection."},oralForm:{_type:i.Type.UUID,_default:"ba29e982-ce18-302a-9fc4-d4b2c3983465",_description:"The form Record oral opens, on the patient summary's Prophylaxis card and the chart's Prophylaxis page, to record oral prophylaxis."}},actIdentifierType:{_type:i.Type.UUID,_default:"240f85fa-46e1-540e-9234-2796c623f7ea",_description:"The identifier type ACT's patient search shows as the patient's ACT ID."},singleRecordForms:{_type:i.Type.Array,_elements:{_type:i.Type.UUID},_default:["a6646c51-130d-3b59-a442-959bea93487d","7807da80-ee71-3900-bbce-a026e4a8d54d"],_description:"Forms, by uuid, that hold one current record per patient, as ACT 2.0 kept Patient Information and Research Participation on the patient: ACT's buttons for them (Next steps, a flag's Open form) edit the patient's latest encounter of the form's type when they have one, rather than add a second. The chart's own Clinical forms list still starts a new one. By default RHD Patient Information and RHD Research Participation."},visitType:{_type:i.Type.UUID,_default:"bf86d5a7-9511-5c11-acb1-8f8718775cd5",_description:"The visit type an ACT screen starts when it opens a form for a patient with no active visit."},sessionTimeout:{idleMinutes:{_type:i.Type.Number,_default:30,_description:"Minutes a user may be idle before they are signed out, as the server's session timeout (Tomcat's default is 30). 0 switches the warning off."},warningMinutes:{_type:i.Type.Number,_default:3,_description:"Minutes before the idle time runs out that the warning opens, counting down to the sign-out."},keepAliveMinutes:{_type:i.Type.Number,_default:10,_description:"How often, in minutes, the session is asked for while the user is active, so a long form entered without saving does not let the server's clock run out. Keep it below idleMinutes."}},urgencyBands:{_type:i.Type.Array,_elements:{label:{_type:i.Type.String,_description:"What the waiting list and its Urgency filter call the band."},shortLabel:{_type:i.Type.String,_description:"What ACT home's waiting list widget calls the band; without one, it uses label."},concept:{_type:i.Type.ConceptUuid,_description:"The answer that records this band."},deadlineDays:{_type:i.Type.Number,_description:"Days allowed before a patient in this band is overdue."}},_default:[{label:"1: Emergent (24 hours)",shortLabel:"1: Emergent",concept:"1fe15210-4490-58b0-a38c-bb0386e98482",deadlineDays:1},{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:"2: Urgent (60 days)",shortLabel:"2: Urgent",concept:"33bf504a-15f2-5504-9bdc-ddded0b5eb00",deadlineDays:60},{label:"3 - within 3 months",concept:"925610f9-1c3c-5396-880f-02a5fe309d53",deadlineDays:90},{label:"3: Elective (180 days)",shortLabel:"3: Elective",concept:"2666bf97-7400-57c7-b535-7903e22ced34",deadlineDays:180},{label:"4 - within 6 months",concept:"57e3873e-018e-5ed6-b7d4-5f73ef464cbd",deadlineDays:180}],_description:"Urgency bands for the procedural waiting list, most urgent first: ACT 2.0's three urgencies, which answer the RHD Consultation Visit's Urgency, with the days allowed before a recommendation is overdue. The four answers they replaced keep their old deadlines, for recommendations saved before, and every band sits in deadline order. A recommendation whose answer no band names keeps the answer's name, is not marked overdue and is listed after the bands.",_validators:[(0,i.validator)(e=>e.every(e=>e.concept&&"number"==typeof e.deadlineDays),"Every urgency band needs a concept and a number of deadline days")]}};var c=a(4335),d=a.n(c),l=a(8940),h=a(8596),p=a(2762),f=a(3394),y=a(7003);function u(){let{user:e}=(0,i.useSession)();return!!e&&(0,i.userHasAccess)(y.hG,e)}var m=a(7056),b=a(1943),g=a(5482),A=a(1256),w=a(2066),_=a(4538);let T={name:"act-reports",slot:"act-reports-dashboard-slot",title:"reports"},D={name:"act-facility-reports",slot:"act-facility-reports-dashboard-slot",title:"facilityReports"};var P=a(8046);let L={name:"act-scan-patient-card",slot:"act-scan-patient-card-dashboard-slot",title:"scanPatientCard"};var v=a(5970);let k={"act-worklist-cardiology-follow-up":{flag:"RHD cardiology follow-up due",title:"Cardiology follow-up due",tone:"orange",dueDateColumn:"next_consultation_date"},"act-worklist-lost-to-follow-up":{flag:"RHD lost to follow-up",title:"Lost to follow-up",tone:"red"},"act-worklist-post-procedural-follow-up":{flag:"RHD 30-day follow-up due",title:"RHD 30-day post-procedural follow-up due",tone:"orange"},"act-worklist-pregnancy-outcome":{flag:"RHD delivery outcome overdue",title:"RHD pregnancy outcome due",tone:"orange"},"act-worklist-inr-review":{flag:"RHD INR review due",title:"INR review due",tone:"orange",dueDateColumn:"next_inr_date"}},R="@act-registry/esm-act-app",C={featureName:"act",moduleName:R},S=a(4767);function U(){(0,i.defineConfigSchema)(R,o),Object.entries(k).forEach(([e,t])=>(0,i.defineExtensionConfigSchema)(e,{flag:{_type:i.Type.String,_default:t.flag,_description:"The flag, by name, whose list this is. A flag that has no list in ACT Core hides the worklist."},title:{_type:i.Type.String,_default:t.title,_description:"The worklist's name on its tile."},tone:{_type:i.Type.String,_default:t.tone,_description:"The colour across the top of its tile: red for patients at risk, orange for care that is due.",_validators:[i.validators.oneOf(["red","orange"])]},dueDateColumn:{_type:i.Type.String,_default:t.dueDateColumn??"",_description:"The registry report's column holding the date the patient is due by, which says why they are on the list; without it, how long they have been on it."}})),(0,v.KP)()}let x=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("4921")]).then(a.bind(a,9472)),C),I=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("77")]).then(a.bind(a,172)),C),E=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("1944"),a.e("3683"),a.e("9880"),a.e("8405"),a.e("567"),a.e("8423")]).then(a.bind(a,4442)),C),H=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("9880"),a.e("9675"),a.e("8405"),a.e("567"),a.e("8760")]).then(a.bind(a,6795)),C),F=(0,i.getSyncLifecycle)(function(){let{t:e}=(0,b.useTranslation)();return d().createElement(l.p,{meta:{...L,title:e("scanPatientCard","Scan patient card")}})},C),B=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("9913"),a.e("4771"),a.e("9880"),a.e("50"),a.e("129")]).then(a.bind(a,6808)),C),W=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9880"),a.e("9675"),a.e("501")]).then(a.bind(a,3956)),C),N=(0,i.getSyncLifecycle)((0,i.createDashboard)({slot:"act-prophylaxis-dashboard-slot",path:"act-prophylaxis",title:"Prophylaxis",icon:"omrs-icon-medication"}),C),O=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("9880"),a.e("9675"),a.e("8405"),a.e("567"),a.e("7367")]).then(a.bind(a,6474)),C),$=(0,i.getSyncLifecycle)((0,i.createDashboard)({slot:"act-research-dashboard-slot",path:"act-research",title:"Research participation",icon:"omrs-icon-microscope"}),C),M=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("9880"),a.e("9675"),a.e("3997")]).then(a.bind(a,1708)),C),G=(0,i.getSyncLifecycle)((0,i.createDashboard)({slot:"act-consultations-dashboard-slot",path:"act-consultations",title:"Consultation visits",icon:"omrs-icon-calendar-heat-map"}),C),j=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("9880"),a.e("9675"),a.e("8405"),a.e("4071"),a.e("4009")]).then(a.bind(a,8448)),C),q=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9880"),a.e("9675"),a.e("4924")]).then(a.bind(a,23)),C),Q=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("9880"),a.e("9675"),a.e("8405"),a.e("4071"),a.e("7189")]).then(a.bind(a,4276)),C),V=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("9880"),a.e("9675"),a.e("8405"),a.e("4071"),a.e("9785")]).then(a.bind(a,688)),C),K=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9880"),a.e("9675"),a.e("5223")]).then(a.bind(a,9370)),C),J=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9880"),a.e("9675"),a.e("5174")]).then(a.bind(a,85)),C),z=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("9880"),a.e("9675"),a.e("8405"),a.e("4071"),a.e("9088")]).then(a.bind(a,3939)),C),Z=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("9880"),a.e("9675"),a.e("6008")]).then(a.bind(a,8683)),C),X=(0,i.getAsyncLifecycle)(()=>a.e("5189").then(a.bind(a,1252)),C),Y=(0,i.getSyncLifecycle)((0,i.createDashboard)({slot:"act-cardiac-tests-dashboard-slot",path:"act-cardiac-tests",title:"Cardiac tests",icon:"omrs-icon-activity"}),C),ee=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("9880"),a.e("8405"),a.e("4071"),a.e("1397")]).then(a.bind(a,6820)),C),et=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("9880"),a.e("8405"),a.e("1691")]).then(a.bind(a,1910)),C),ea=(0,i.getSyncLifecycle)(function(){return d().createElement(l.p,{meta:h.DL})},C),ei=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("9913"),a.e("7430")]).then(a.bind(a,6661)),C),es=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("841")]).then(a.bind(a,6640)).then(({ActHomeQuickActions:e})=>({default:e})),C),en=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("9708")]).then(a.bind(a,5255)),C),er=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("9880"),a.e("9675"),a.e("3000")]).then(a.bind(a,6475)),C),eo=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("9880"),a.e("9675"),a.e("6131")]).then(a.bind(a,5950)),C),ec=(0,i.getSyncLifecycle)(function(){return d().createElement(l.p,{meta:p.J})},C),ed=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("9913"),a.e("9880"),a.e("9675"),a.e("725")]).then(a.bind(a,6388)),C),el=(0,i.getSyncLifecycle)(function(){return d().createElement(l.p,{meta:f.av})},C),eh=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("3148"),a.e("9913"),a.e("27")]).then(a.bind(a,6070)),C),ep=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("9880"),a.e("9675"),a.e("8405"),a.e("50"),a.e("5511"),a.e("9835")]).then(a.bind(a,4966)),C),ef=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("9913"),a.e("9880"),a.e("9675"),a.e("8405"),a.e("5511"),a.e("2143"),a.e("9704")]).then(a.bind(a,2639)),C),ey=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("9880"),a.e("9675"),a.e("5511"),a.e("6078")]).then(a.bind(a,7094)),C),eu=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("9913"),a.e("9880"),a.e("9675"),a.e("8405"),a.e("5511"),a.e("3226"),a.e("6090")]).then(a.bind(a,5462)),C),em=(0,i.getSyncLifecycle)(function(){return u()?null:d().createElement(l.p,{meta:m.d})},C),eb=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("9913"),a.e("9880"),a.e("9675"),a.e("8405"),a.e("3226"),a.e("7770")]).then(a.bind(a,9617)),C),eg=(0,i.getSyncLifecycle)(function(){let{t:e}=(0,b.useTranslation)();return u()?null:d().createElement(l.p,{meta:{...g.b,title:e("diagnosisToConfirm","Diagnosis to confirm")}})},C),eA=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("9913"),a.e("9880"),a.e("8405"),a.e("2143"),a.e("103")]).then(a.bind(a,2866)),C),ew=(0,i.getSyncLifecycle)(function(){let{t:e}=(0,b.useTranslation)();return d().createElement(l.p,{meta:{...T,title:e("reports","Reports")}})},C),e_=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("9913"),a.e("9880"),a.e("9675"),a.e("295"),a.e("729")]).then(a.bind(a,7562)),C),eT=(0,i.getSyncLifecycle)(function(){let{t:e}=(0,b.useTranslation)();return(0,A.z)()?null:d().createElement(l.p,{meta:{...D,title:e("facilityReports","Facility reports")}})},C),eD=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("9913"),a.e("9880"),a.e("9675"),a.e("295"),a.e("2167")]).then(a.bind(a,8528)),C),eP=(0,i.getSyncLifecycle)(function(){return(0,A.z)()?null:d().createElement(l.p,{meta:P.iX})},C),eL=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("9913"),a.e("8704")]).then(a.bind(a,3235)),C),ev=(0,i.getAsyncLifecycle)(()=>a.e("497").then(a.bind(a,3016)),C),ek=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("9913"),a.e("1944"),a.e("9880"),a.e("8899")]).then(a.bind(a,8478)),C),eR=(0,i.getAsyncLifecycle)(()=>a.e("5793").then(a.bind(a,8504)),C),eC=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("9913"),a.e("9880"),a.e("9675"),a.e("295"),a.e("460")]).then(a.bind(a,1939)),C),eS=(0,i.getAsyncLifecycle)(()=>a.e("8773").then(a.bind(a,3828)),C),eU=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("9913"),a.e("9880"),a.e("9675"),a.e("7526")]).then(a.bind(a,8053)),C),ex=(0,i.getAsyncLifecycle)(()=>a.e("4945").then(a.bind(a,5272)),C),eI=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("9913"),a.e("9880"),a.e("5693")]).then(a.bind(a,3660)),C),eE=(0,i.getAsyncLifecycle)(()=>a.e("4107").then(a.bind(a,4550)),C),eH=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("9913"),a.e("9880"),a.e("9675"),a.e("4235")]).then(a.bind(a,646)),C),eF=(0,i.getAsyncLifecycle)(()=>a.e("730").then(a.bind(a,3953)),C),eB=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("9913"),a.e("9880"),a.e("6456")]).then(a.bind(a,1547)),C),eW=(0,i.getSyncLifecycle)(function(){return null},C),eN=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("9913"),a.e("9880"),a.e("9675"),a.e("8405"),a.e("50"),a.e("6244"),a.e("8361")]).then(a.bind(a,8895)),C),eO=(0,i.getSyncLifecycle)(function(){let{t:e}=(0,b.useTranslation)();return(0,A.z)()?null:d().createElement(l.p,{meta:{...w.E,title:e("dueForProphylaxis","Due for prophylaxis")}})},C),e$=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("9913"),a.e("9880"),a.e("9675"),a.e("8405"),a.e("50"),a.e("6244"),a.e("4489")]).then(a.bind(a,7868)),C),eM=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("9880"),a.e("9675"),a.e("8405"),a.e("50"),a.e("6244"),a.e("7347")]).then(a.bind(a,8041)),C),eG=(0,i.getSyncLifecycle)(function(){return(0,A.z)()?null:d().createElement(l.p,{meta:_.SJ})},C),ej=(0,i.getAsyncLifecycle)(()=>a.e("3385").then(a.bind(a,3136)),C),eq=(0,i.getAsyncLifecycle)(()=>a.e("6841").then(a.bind(a,3936)),C),eQ=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("9913"),a.e("9140")]).then(a.bind(a,5455)),C),eV=()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("841")]).then(a.bind(a,6640)),eK=(0,i.getAsyncLifecycle)(()=>eV().then(({CommunityHomeQuickActions:e})=>({default:e})),C),eJ=(0,i.getAsyncLifecycle)(()=>eV().then(({InstanceAdminQuickActions:e})=>({default:e})),C),ez=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("9880"),a.e("9675"),a.e("6020")]).then(a.bind(a,4703)).then(({InstanceAdminKpis:e})=>({default:e})),C),eZ=()=>Promise.all([a.e("5098"),a.e("3148"),a.e("1967"),a.e("1944"),a.e("9880"),a.e("9675"),a.e("50"),a.e("6612")]).then(a.bind(a,3087)),eX=(0,i.getAsyncLifecycle)(()=>eZ().then(({RegisterPatientAction:e})=>({default:e})),C),eY=(0,i.getAsyncLifecycle)(()=>eZ().then(({EnterProphylaxisAction:e})=>({default:e})),C),e0=(0,i.getAsyncLifecycle)(()=>eZ().then(({RecordBpgAction:e})=>({default:e})),C),e9=(0,i.getAsyncLifecycle)(()=>eZ().then(({RecordOralAction:e})=>({default:e})),C),e8=(0,i.getAsyncLifecycle)(()=>eZ().then(({FindPatientAction:e})=>({default:e})),C),e5=(0,i.getAsyncLifecycle)(()=>eZ().then(({FacilityReportAction:e})=>({default:e})),C),e1=(0,i.getAsyncLifecycle)(()=>eZ().then(({FormsAndSitesAction:e})=>({default:e})),C),e4=(0,i.getAsyncLifecycle)(()=>eZ().then(({RolePermissionsAction:e})=>({default:e})),C),e6=(0,i.getAsyncLifecycle)(()=>eZ().then(({ResearchParticipationAction:e})=>({default:e})),C)},8046(e,t,a){"use strict";a.d(t,{I6:()=>s,f8:()=>n,iX:()=>i});let i={name:"act-instance-admin",slot:"act-instance-admin-dashboard-slot",title:"home"},s="act-instance-admin-widgets-slot",n="act-instance-admin-quick-actions-slot"},2762(e,t,a){"use strict";a.d(t,{J:()=>i});let i={name:"act-registry",slot:"rhd-registry-dashboard-slot",title:"registry"}},5482(e,t,a){"use strict";a.d(t,{b:()=>i});let i={name:"act-screen-positive",slot:"rhd-screen-positive-dashboard-slot",title:"screenPositive"}},7056(e,t,a){"use strict";a.d(t,{d:()=>i});let i={name:"act-waiting-list",slot:"rhd-waiting-list-dashboard-slot",title:"waitingList"}},3394(e,t,a){"use strict";a.d(t,{EC:()=>n,Z6:()=>s,av:()=>i});let i={name:"act-worklists",slot:"rhd-worklists-dashboard-slot",title:"worklists"},s="act-worklists-slot",n=e=>`\${openmrsSpaBase}/home/${i.name}`+(e?`?${new URLSearchParams({list:e})}`:"")}}]);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"2347.js","sources":["webpack://@act-registry/esm-act-app/./translations|lazy|nonrecursive|/.json$/","webpack://@act-registry/esm-act-app/./src/access/act-dashboard-link.component.tsx","webpack://@act-registry/esm-act-app/./src/access/holds-act-home.ts","webpack://@act-registry/esm-act-app/./src/act-home/act-home.meta.ts","webpack://@act-registry/esm-act-app/./src/back-to-act/act-return.ts","webpack://@act-registry/esm-act-app/./src/community-home/community-home.meta.ts","webpack://@act-registry/esm-act-app/./src/constants.ts","webpack://@act-registry/esm-act-app/./src/due-for-prophylaxis/due-for-prophylaxis.meta.ts","webpack://@act-registry/esm-act-app/./src/enter-prophylaxis/patients-on-prophylaxis.meta.ts","webpack://@act-registry/esm-act-app/./src/config-schema.ts","webpack://@act-registry/esm-act-app/./src/access/holds-worklists.ts","webpack://@act-registry/esm-act-app/./src/programme-report/programme-report.meta.ts","webpack://@act-registry/esm-act-app/./src/scan-patient-card/scan-patient-card.meta.ts","webpack://@act-registry/esm-act-app/./src/worklists/flag-worklists.ts","webpack://@act-registry/esm-act-app/./src/index.ts","webpack://@act-registry/esm-act-app/./src/scan-patient-card/scan-patient-card-dashboard-link.component.tsx","webpack://@act-registry/esm-act-app/./src/prophylaxis-page/prophylaxis-page.meta.ts","webpack://@act-registry/esm-act-app/./src/research/research-page.meta.ts","webpack://@act-registry/esm-act-app/./src/consultations/consultations.meta.ts","webpack://@act-registry/esm-act-app/./src/cardiac-tests/cardiac-tests.meta.ts","webpack://@act-registry/esm-act-app/./src/act-home/act-home-dashboard-link.component.tsx","webpack://@act-registry/esm-act-app/./src/registry/registry-dashboard-link.component.tsx","webpack://@act-registry/esm-act-app/./src/worklists/worklists-dashboard-link.component.tsx","webpack://@act-registry/esm-act-app/./src/waiting-list/waiting-list-dashboard-link.component.tsx","webpack://@act-registry/esm-act-app/./src/screen-positive/screen-positive-dashboard-link.component.tsx","webpack://@act-registry/esm-act-app/./src/programme-report/reports-dashboard-link.component.tsx","webpack://@act-registry/esm-act-app/./src/programme-report/facility-reports-dashboard-link.component.tsx","webpack://@act-registry/esm-act-app/./src/instance-admin/instance-admin-dashboard-link.component.tsx","webpack://@act-registry/esm-act-app/./src/enter-prophylaxis/patients-on-prophylaxis-dashboard-link.component.tsx","webpack://@act-registry/esm-act-app/./src/due-for-prophylaxis/due-for-prophylaxis-dashboard-link.component.tsx","webpack://@act-registry/esm-act-app/./src/community-home/community-home-dashboard-link.component.tsx","webpack://@act-registry/esm-act-app/./src/instance-admin/instance-admin.meta.ts","webpack://@act-registry/esm-act-app/./src/registry/registry.meta.ts","webpack://@act-registry/esm-act-app/./src/screen-positive/screen-positive.meta.ts","webpack://@act-registry/esm-act-app/./src/waiting-list/waiting-list.meta.ts","webpack://@act-registry/esm-act-app/./src/worklists/worklists.meta.ts"],"names":["Promise","Error","Object","ActDashboardLink","meta","BrowserRouter","DashboardExtension","window","useHoldsActHome","user","useSession","Boolean","userHasAccess","PRIVILEGE_ACT_HOME","actHomeDashboardMeta","actHomeWidgetsSlot","actHomeQuickActionsSlot","storageKey","actScreens","registryDashboardMeta","worklistsDashboardMeta","waitingListDashboardMeta","screenPositiveDashboardMeta","communityHomeDashboardMeta","dueForProphylaxisDashboardMeta","patientsOnProphylaxisDashboardMeta","readActReturn","JSON","trackActReturn","event","oldUrl","newUrl","writeActReturn","value","nextActReturn","current","url","name","from","URL","screen","communityHomeWidgetsSlot","communityHomeQuickActionsSlot","PRIVILEGE_WORKLISTS","PRIVILEGE_SCREEN_POSITIVE","PRIVILEGE_EXPORT_LISTS","PRIVILEGE_REFRESH_FLAGS","PRIVILEGE_STUDIES","PRIVILEGE_MANAGE_STUDIES","PRIVILEGE_ENTER_CLINICAL_FORMS","PRIVILEGE_VIEW_AUDIT_LOGS","PRIVILEGE_VIEW_READ_AUDIT_LOGS","PRIVILEGE_DOWNLOAD_DATA","PRIVILEGE_DOWNLOAD_IDENTIFIERS","PRIVILEGE_DOWNLOAD_RESEARCH_DATA","PRIVILEGE_ADD_ENCOUNTERS","PRIVILEGE_EDIT_USERS","PRIVILEGE_MANAGE_LOCATIONS","locationTags","clinics","defaultTags","Type","concept","description","defaultUuid","link","defaultUrl","configSchema","validator","bands","band","useHoldsWorklists","reportsDashboardMeta","facilityReportsDashboardMeta","scanPatientCardDashboardMeta","flagWorklists","moduleName","options","importTranslation","require","startupApp","defineConfigSchema","defaults","defineExtensionConfigSchema","validators","backToActLink","getAsyncLifecycle","sessionTimeout","nextStepsCard","prophylaxisCard","scanPatientCardDashboardLink","getSyncLifecycle","t","useTranslation","scanPatientCardDashboard","patientStatusFlags","prophylaxisPageDashboardLink","createDashboard","prophylaxisPageDashboard","researchPageDashboardLink","researchPageDashboard","consultationsDashboardLink","consultationsDashboard","inrReviewsDashboardLink","inrReviewsDashboard","consultationCard","inrStatusFlag","clinicalFlags","inrCard","contactCard","cliniciansOnlyNote","cardiacTestsDashboardLink","cardiacTestsDashboard","flagGapsWorkspace","actHomeDashboardLink","actHomeDashboard","actHomeQuickActions","ActHomeQuickActions","actHomeWorklists","actHomeOverdueConsultation","actHomeCareCascade","registryDashboardLink","registryDashboard","worklistsDashboardLink","worklistsDashboard","dueForProphylaxisWorklist","confirmatoryEchoWorklist","flagWorklist","waitingListWorklist","waitingListDashboardLink","waitingListDashboard","screenPositiveDashboardLink","screenPositiveDashboard","reportsDashboardLink","reportsDashboard","facilityReportsDashboardLink","facilityReportsDashboard","instanceAdminDashboardLink","instanceAdminDashboardMeta","instanceAdminDashboard","usersDashboardLink","usersDashboard","dashboardLink","dashboard","studiesDashboardLink","studiesDashboard","refreshFlagsDashboardLink","refreshFlagsDashboard","downloadDashboardLink","downloadDashboard","downloadLogDashboardLink","downloadLogDashboard","patientsOnProphylaxisDashboardLink","patientsOnProphylaxisDashboard","dueForProphylaxisDashboardLink","dueForProphylaxisDashboard","dueForProphylaxisWidget","communityHomeDashboardLink","adminNav","instanceAdminNav","communityHomeDashboard","quickActions","communityHomeQuickActions","CommunityHomeQuickActions","instanceAdminQuickActions","InstanceAdminQuickActions","instanceAdminKpis","InstanceAdminKpis","quickActionTiles","registerPatientQuickAction","RegisterPatientAction","enterProphylaxisQuickAction","EnterProphylaxisAction","recordBpgQuickAction","RecordBpgAction","recordOralQuickAction","RecordOralAction","findPatientQuickAction","FindPatientAction","facilityReportQuickAction","FacilityReportAction","formsAndSitesQuickAction","FormsAndSitesAction","rolePermissionsQuickAction","RolePermissionsAction","researchParticipationQuickAction","ResearchParticipationAction","instanceAdminWidgetsSlot","instanceAdminQuickActionsSlot","worklistsSlot","worklistsUrl","worklist","URLSearchParams"],"mappings":"oIAAA,IAAI,EAAM,CACR,YAAa,CACX,OACA,OACD,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,IA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C,CACvD2K,CAAAA,EAAW,CAAC,CAAC,EAAE,IAAIC,gBAAgB,CAAE,KAAMD,CAAS,GAAG,CAAC,CAAG,EAAC,C"}
package/dist/5117.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_act_registry_esm_act_app=globalThis.webpackChunk_act_registry_esm_act_app||[]).push([["5117"],{4300(e){e.exports=JSON.parse('{"aboveRange":"Above range","acrossYourSites":"across your sites","actHome":"ACT home","actId":"ACT ID","actions":"Actions","activeCount_one":"{{count}} active","activeCount_other":"{{count}} active","activeParticipants":"Active participants","activePatients":"Active patients","activePatientsWithNoMissingData":"active patients with no missing data","activeRegistrantsCount":"Active registrants: {{count}}","add":"Add","addParticipation":"Add participation","addUser":"Add user","adherence":"Adherence","adherenceLastReport":"Adherence (last report)","adherencePercent":"Adherence {{percent}}%","admin":"Admin","age":"Age","ageSex":"Age, sex","all":"All","allDates":"All dates","allFormsCount":"All forms ({{count}})","allLists":"All lists","allParticipants":"All participants","alternateId":"Alternate ID","aorticRegurgitation":"Aortic regurgitation","aorticStenosis":"Aortic stenosis","backToActHome":"Back to ACT home","backToDiagnosisToConfirm":"Back to Diagnosis to confirm","backToDueForProphylaxis":"Back to Due for prophylaxis","backToEnterProphylaxis":"Back to Enter prophylaxis","backToHome":"Back to Home","backToRegistry":"Back to Registry","backToWaitingList":"Back to Procedural waiting list","backToWorklists":"Back to Worklists","basedOn":"Based on","belowRange":"Below range","benzathinePenicillinG":"Benzathine penicillin G","bpg":"BPG","bpgDoseRecorded":"BPG dose recorded","bpgEveryDays":"BPG \xb7 every {{days}} days","bpgEveryWeeks":"BPG \xb7 every {{weeks}} weeks","bpgInjections":"BPG injections","bpgOnHold":"BPG on hold","bpgOnTimeRate":"BPG on-time rate","bpgOrOral":"BPG or oral","bpgStatus":"BPG status","byFacility":"By facility","cameraUnavailable":"The camera is not available","cancel":"Cancel","cannotStartVisit":"You may not start a visit for this patient.","Cardiac tests":"Cardiac tests","cardiacClinic":"Cardiac clinic","cardiologyReviewDatePassed":"Cardiology review date has passed","cardiologyVisitDueOn":"Cardiology visit due {{date}}","cardiologyVisitDueToday":"Cardiology visit due today","cardiologyVisitOverdue":"Cardiology visit overdue","careCascade":"Care cascade","cascadeReportDate":"Report date: {{date}}","categoryAtDiagnosis":"Category at diagnosis","checkAll":"Check all","checkFilters":"Check the filters above","chooseAClinic":"Choose at least one clinic","chooseAForm":"Choose a form","chooseARole":"Choose at least one role","chooseAStatus":"Choose a status","chooseAStudy":"Choose a study","chooseSex":"Choose a sex","clinicalDashboardsCliniciansOnly":"Clinical dashboards are only visible to clinicians.","clinics":"Clinics","closeSearch":"Close search","completed":"Completed","completionDate":"Completion date","completionNotBeforeEnrollment":"The completion date cannot be before the enrollment date","configureInstance":"Configure instance","confirmatoryEchoNeeded":"Confirmatory echo needed","confirmDismissFlag":"Dismiss this flag? It stays dismissed until the data no longer raises it.","confirmPassword":"Confirm password","consentBeforeEnrolling":"A patient is enrolled in a study only after giving registry consent, which is recorded at registration.","consentGiven":"Consent given","Consultation visits":"Consultation visits","consultationsLastYear":"Consultations in the last year","consultationVisits":"Consultation visits","consultationVisitsLowercase":"consultation visits","contact":"Contact","contraindications":"Contraindications","couldNotDisableUser":"Could not disable the user","couldNotDismissFlag":"Could not dismiss the flag","couldNotDownload":"Could not download the data","couldNotLoadCareCascade":"Could not load the care cascade","couldNotLoadDashboard":"Could not load the dashboard","couldNotLoadDownloads":"Could not load the downloads","couldNotLoadDueForProphylaxis":"Could not load the patients due for prophylaxis","couldNotLoadFields":"Could not load the form\'s fields","couldNotLoadForms":"Could not load the forms","couldNotLoadGaps":"Could not load the missing data","couldNotLoadLastRefresh":"Could not load when they were last refreshed","couldNotLoadOverdueConsultations":"Could not load the patients overdue for consultation","couldNotLoadParticipants":"Could not load the study participants","couldNotLoadPatientsOnProphylaxis":"Could not load the patients on prophylaxis","couldNotLoadRegistry":"Could not load the registry","couldNotLoadReports":"Could not load the report","couldNotLoadRoles":"Could not load the roles","couldNotLoadScreenPositive":"Could not load the screen positive list","couldNotLoadSection":"Could not load {{section}}","couldNotLoadStudies":"Could not load the studies","couldNotLoadUsers":"Could not load the users","couldNotLoadWaitingList":"Could not load the procedural waiting list","couldNotLoadWorklist":"Could not load this list","couldNotLoadWorklistPatients":"Could not load the worklist patients","couldNotOpenForm":"Could not open the form","couldNotRefresh":"Could not refresh flags and adherence","couldNotResetPassword":"Could not reset the password","couldNotSaveOptIn":"Could not save the answer","couldNotSaveParticipation":"Could not save the participation","couldNotSaveStudy":"Could not save the study","couldNotSaveUser":"Could not save the user","couldNotSearch":"Could not search for patients","covered":"Covered","createStudy":"Create study","dashboard":"Dashboard","data":"Data","dataComplete":"Complete","dataCompleteness":"Data completeness","dataDuplicates":"Duplicates","dataReview":"Review","date":"Date","dateDaysAgo":"{{date}} ({{days}} days ago)","dateNotInFuture":"The date cannot be in the future","deceasedNotEnrolled":"The patient has died, so they cannot be enrolled in a study.","dateOfBirth":"Date of birth","daysCount_one":"{{count}} day","daysCount_other":"{{count}} days","daysOverdue":"{{days}} days overdue","daysPending":"Days pending","details":"Details","diagnosis":"Diagnosis","diagnosisCategory":"Diagnosis category","diagnosisDetails":"Diagnosis details","diagnosisToConfirm":"Diagnosis to confirm","diagnosisToConfirmDescription":"Screen-positive patients whose diagnosis has no details yet. Enter diagnosis takes a patient off this list.","disable":"Disable","disabled":"Disabled","disableUser":"Disable user","disableUserBody":"They will no longer be able to sign in. Everything they recorded stays, and an instance administrator can enable them again.","disableUserNamed":"Disable {{name}}?","diseaseCategory":"Disease category","dismiss":"Dismiss","dismissFlag":"Dismiss flag","district":"District","doneOfTotal":"{{done}} of {{total}}","downloadCsv":"Download CSV","downloadData":"Download data","downloadDeidentifiedExplanation":"A row for each saved form, without names, birth dates, ID numbers or phones. Each download is recorded.","downloadIdentifiedExplanation":"A row for each saved form, with the patient\'s names, birth date, ID numbers and phones. Each download is recorded.","downloading":"Downloading...","downloadLog":"Download log","downloadLogExplanation":"Everyone\'s latest downloads of forms\' fields, newest first.","downloadPeriod":"{{from}} to {{to}}","downloadResearchExplanation":"A row for each saved form of the patients who opted in to research, without names, birth dates, ID numbers or phones. Each download is recorded.","dueForProphylaxis":"Due for prophylaxis","dueIn48Hours":"Due in 48 h","dueInDays":"Due in {{days}} days","dueInOneDay":"Due in 1 day","dueOn":"Due {{date}}","dueThisWeek":"Due this week","dueToday":"Due today","dueWithinSevenDays":"Due within 7 days","dueWithinTwoDays":"Due in the next 48 hours, due today or overdue","echoBooked":"Echo booked","echocardiograms":"Echocardiograms","echocardiogramsLowercase":"echocardiograms","echoLast13Months":"Echocardiogram in the last 13 months","editParticipation":"Edit participation","editUser":"Edit user","electrocardiograms":"Electrocardiograms","electrocardiogramsLowercase":"electrocardiograms","enabled":"Enabled","endBeforeStart":"The end is before the start","enrollmentDate":"Enrollment date","enterAStudyName":"Enter a name for the study","enterDiagnosis":"Enter diagnosis","enteredThisWeek":"Entered this week","enterFamilyName":"Enter a family name","enterGivenName":"Enter a given name","enterPassword":"Enter a password","enterProphylaxis":"Enter prophylaxis","enterProphylaxisBanner":"Choose the patient. The form opens in their chart and a visit starts automatically.","enterProphylaxisDescription":"Choose the patient, then record what was given today","enterResult":"Enter result","enterTheCompletionDate":"Enter the completion date for an Inactive status","enterTheEnrollmentDate":"Enter the enrollment date","enterTheStudyId":"Enter the Study ID","enterUsername":"Enter a username","facility":"Facility","facilityReport":"Facility report","facilityReports":"Facility reports","familyName":"Family name","female":"Female","fields":"Fields","fieldsChosen":"{{chosen}} of {{total}} fields","findPatient":"Find a patient","flag":"Flag","flagCount":"{{number}} flags","flagDismissed":"Flag dismissed","flagOpenDays_one":"{{flag}} ({{count}} day)","flagOpenDays_other":"{{flag}} ({{count}} days)","flags":"Flags","flagsAndAdherence":"Flags and adherence","flagsRefreshed":"Flags and adherence refreshed","form":"Form","formsAndSites":"Forms & sites","formsDatedLastSevenDays":"forms dated in the last 7 days","formsShowUpWhenNeeded":"Forms show up here only when {{name}} needs them","fromDate":"From","given":"Given","givenName":"Given name","governedOffByDefault":"Governed \xb7 OFF by default","history":"History","home":"Home","identifiers":"Identifiers","inactive":"Inactive","injectionDue":"Injection due","inr":"INR","INR reviews":"INR reviews","inRange":"In range","inrDueOn":"INR due {{date}}","inrDueToday":"INR due today","inrLast90Days":"On warfarin, with an INR in the last 90 days","inrOnDate":"{{inr}} \xb7 {{date}}","inrOverdue":"INR overdue","inrReview":"INR review","inrReviews":"INR reviews","inrReviewsLowercase":"INR reviews","interventionAssigned":"Intervention assigned","interventions":"Interventions","interventionsCompleted":"Interventions completed","lastConsultation":"Last consultation","lastDose":"Last dose","lastInjection":"Last injection","lastInr":"Last INR","lastRefreshedAt":"Last refreshed {{when}}","lastReport":"Last report","late":"Late","leftVentricularEjectionFraction":"Left ventricular ejection fraction","limitedToYourClinics":"The users of your clinics","limitedToYourClinicsBody":"You can add and change the users of the clinics on your account, with the clinician roles. An instance administrator manages the others.","loading":"Loading...","male":"Male","medicalOptimisation":"Medical optimisation","missing":"Missing","missingData":"Missing data","mitralRegurgitation":"Mitral regurgitation","mitralStenosis":"Mitral stenosis","month":"Month","monthlyQuarterly":"Monthly \xb7 quarterly","name":"Name","nameOrActId":"Name or ACT ID","nationalId":"National ID","needsFollowUp":"needs follow-up","needsPrescription":"Needs prescription","new":"New","newPassword":"New password","newPrescription":"New prescription","nextCardiologyReview":"Next cardiology review","nextConsultation":"Next consultation","nextDue":"Next due","nextDueOn":"Next due {{date}}","nextInr":"Next INR","nextInrDue":"Next INR due","nextRefill":"Next refill","nextReview":"Next review","nextStepAdded":"Next step added: {{steps}}","nextStepsForThisVisit":"Next steps for this visit","no":"No","noActHomeWidgets":"No widgets have been added to ACT home yet.","noActivePatients":"There are no active patients","nobodyDueForProphylaxis":"Nobody is due for prophylaxis","nobodyDueInThisList":"No patients in this list","nobodyWaiting":"Nobody is waiting for a procedure","noBpgInjections":"There are no BPG injections to display","noCareCascadeData":"No care cascade data","noCommunityHomeWidgets":"No widgets have been added to Home yet.","noDownloads":"There are no downloads to display","noFormsToDownload":"No saved forms match","noGapList":"This flag does not list its missing data.","noGapLists":"None of this patient\'s flags lists its missing data.","none":"None","noOralReports":"There are no oral adherence reports to display","noOtherFindings":"No other findings recorded","noOverdueConsultations":"No patient is overdue for consultation","noParticipantMatches":"No participants to display","noParticipants":"There are no study participants to display","noParticipations":"There are no study participations to display","noPatientsFound":"Sorry, no patient charts were found","noPatientsOnProphylaxis":"No patients on prophylaxis to display","noPatientsToCount":"No patients to count","noPatientWithActId":"No patient with ACT ID {{actId}}.","noPrescription":"No prescription","noProceduralRecommendation":"No procedural rec.","noProphylaxisPrescription":"No prophylaxis prescription","noRegistryMatches":"No patients to display","noRegistryPatients":"There are no registry patients to display","noSavedForm":"No saved form is waiting to be completed. Record the missing data on a new form.","noScreenPositiveMatches":"No patients to display","noScreenPositivePatients":"There are no screen positive patients waiting for a diagnosis","noStudies":"There are no studies to display","notConsented":"Not consented","notConsentedLegend":"Patients marked with * have not consented to the registry","notContacted":"Not contacted","notCovered":"Not covered","notes":"Notes","notRecorded":"Not recorded","notRefreshedYet":"Not refreshed yet","noUsers":"There are no users to display","noWaitingListMatches":"No recommendations to display","noWaitingRecommendations":"There are no procedural recommendations to display","noWorklistPatients":"There are no patients on this list to display","noWorklists":"No worklists have been added yet.","nothingDueToday":"Nothing due for this patient today.","nyhaClass":"NYHA class","onHold":"On hold","onListForDays_one":"On the list for {{count}} day","onListForDays_other":"On the list for {{count}} days","onOral":"On oral","onTime":"On time","onTimeCount":"{{given}} of {{total}}","onTimeSixMonths":"On-time (6 months)","open":"Open","openBpgForm":"Open BPG form","openChart":"Open chart","openClinicalForms":"Open clinical forms","openForDays_one":"Open for {{count}} day, since {{date}}","openForDays_other":"Open for {{count}} days, since {{date}}","openForm":"Open form","openingBpgForm":"Opening the BPG form","openNamedForm":"Open {{form}}","openFormFromClinicalForms":"Open the form from Clinical forms.","openFromClinicalForms":"The visit has started. Open the form from Clinical forms.","openingChart":"Opening their chart","optInBeforeEnrolling":"A patient is enrolled in a study only after answering Yes above.","oral":"Oral","oralAdherence":"Oral adherence","otherClinicsKept":"Also at {{count}} clinic not shown here, which is kept","otherFinding":"Other finding","otherFindings":"Other findings","overdue":"Overdue","overdueForConsultation":"Overdue for consultation","overdueProphylaxis":"Overdue prophylaxis","overdueWasDue":"Overdue \xb7 was due {{date}}","participationSaved":"Participation saved","password":"Password","passwordReset":"Password reset","passwordRule":"At least 8 characters, with an upper case letter and a number","passwordsDoNotMatch":"The passwords do not match","patient":"Patient","patientCount_one":"{{count}} patient","patientCount_other":"{{count}} patients","patients":"Patients","patientsEnrolledAt":"Patients enrolled at {{clinic}}","patientsOnProphylaxis":"Patients on prophylaxis","patientsOpened":"Patients opened","period":"Period","periodLength":"Period length","phone":"Phone","phoneOwner":"Phone owner","prescription":"Prescription","primaryCareClinic":"Primary care clinic","proceduralOldRecommendation":"Procedural rec. > 12 months","proceduralRecentRecommendation":"Procedural rec. < 12 months","proceduralWaitingList":"Procedural waiting list","proceduralWaitlist":"Procedural waitlist","proceduralWaitlistCount":"Procedural waitlist: {{count}}","procedure":"Procedure","procedureType":"Type","procedureTypeFilter":"Procedure type","prophylaxis":"Prophylaxis","Prophylaxis":"Prophylaxis","prophylaxisDueOn":"Prophylaxis due {{date}}","prophylaxisDueToday":"Prophylaxis due today","prophylaxisOverdue":"Prophylaxis overdue","prophylaxisPlan":"Prophylaxis plan","prophylaxisPrescribed":"Prophylaxis prescribed","prophylaxisRegimen":"Prophylaxis regimen","prophylaxisUpToDate":"Prophylaxis up to date","quarter":"Quarter","quickActions":"Quick actions","reasonBelow80":"Reason if below 80%","recentlyViewedPatients":"Recently viewed patients","recordBpg":"Record BPG","recordBpgInjection":"Record BPG injection","recordedToday":"Recorded today","recordFollowsPrescription":"The button follows each patient\'s current prescription. Prescriptions are changed in the Consultation Visit, not here.","recordInr":"Record INR","recordOral":"Record oral","recordOralProphylaxis":"Record oral prophylaxis","refineSearch":"Showing the first {{shown}}. Add more of the name, or the ACT ID, to find the others.","refreshAlreadyRunning":"A refresh is already running","refreshAlreadyRunningDetail":"Its results show here when it finishes.","refreshExplanation":"Critical data flags, the worklists and every patient\'s prophylaxis adherence are recalculated once a day. Refresh them now to see today\'s changes.","refreshing":"Refreshing","refreshNow":"Refresh now","registerPatient":"Register patient","registrantStatus":"Registrant status","registry":"Registry","registryConsent":"Registry consent (recorded at registration):","registryDescription":"Patients enrolled in the RHD Registry programme","registryDescriptionAt":"Patients enrolled in the RHD Registry programme at {{clinic}}","renameStudy":"Rename study","report":"Report","reports":"Reports","Research participation":"Research participation","researchParticipantsWithoutIdentifiers":"Research participants, without identifiers","researchParticipation":"Research participation","resetPassword":"Reset password","resetPasswordFor":"Reset the password of {{name}}","result":"Result","retainedInCare":"Retained in care (seen in the last 7 months)","rhdFlag":"RHD flag","rolePermissions":"Role permissions","roles":"Roles","rows":"Rows","save":"Save","saving":"Saving...","scanPatientCard":"Scan patient card","scanPatientCardExplanation":"Point the camera at the barcode on the patient\'s identifier sticker to open their BPG Delivery form in their chart. The ACT ID field also takes a handheld barcode scanner.","screenDetectedDiagnoses":"Diagnoses of the screen-detected","screenDetectedRhd":"RHD details of the screen-detected","screened":"Screened","screenedPositive":"Screened positive","screenedPositiveOn":"Screened positive \xb7 {{date}}","screening":"Screening","screeningCascade":"Screening cascade","screenPositive":"Screen positive, pending confirmation","screeningSite":"Screening site","searchByNameOrActId":"Search by name or ACT ID","searchForPatient":"Search for a patient by name or ACT ID","searchRegistryWithAlternateId":"Search by name, ACT ID or alternate ID","searchResultCount_one":"{{count}} search results","searchResultCount_other":"{{count}} search results","searchUsers":"Search users","searchUsersPlaceholder":"Search by name, username or role","seenBy":"Seen by","sessionTimeoutBody":"You have been inactive for a while. To keep your records safe you will be signed out in {{remaining}}, and anything typed into an open form will be lost.","sessionTimeoutTitle":"Still there?","sex":"Sex","showDisabledUsers":"Show disabled users","shownForInstanceAdmin":"Shown for Instance Administrator","signOut":"Sign out","specificProcedure":"Specific procedure","start":"Start","startConsultation":"Start consultation","startScanning":"Start scanning","startSomeoneOnCare":"Start someone on care","status":"Status","staySignedIn":"Stay signed in","stillActiveInAStudy":"Still active in a study","stillActiveInAStudyWithout":"The patient is active in a study, which needs registry consent and a Yes to research. If they have left the study, edit its status.","stopScanning":"Stop scanning","studies":"Studies","study":"Study","studyId":"Study ID","studyName":"Study name","studyParticipants":"Study participants","studySaved":"Study saved","studyStatus":"Study status","suitableForRepair":"Suitable for repair","targetRange":"Target range","time":"Time","toDate":"To","type":"Type","typeActIdInstead":"Type the ACT ID instead. {{reason}}","uncheckAll":"Uncheck all","upToDate":"Up to date","urgency":"Urgency","urgent":"Urgent","user":"User","userActivity":"User activity","userDisabled":"User disabled","username":"Username","users":"Users","usersAndRoles":"Users and roles","userSaved":"User saved","viewChart":"View chart","village":"Village","visitStarted":"{{visitType}} started","visitStartedForForm":"Started automatically so the form can be saved","waitingCount_one":"{{count}} waiting","waitingCount_other":"{{count}} waiting","waitingList":"Procedural waiting list","waitingListDescription":"Open procedural recommendations from the latest consultation \xb7 red rows are past the deadline for their urgency","warfarinDose":"Warfarin dose","wasDue":"Was due","whoSeesWhat":"Who sees what","whyOnThisList":"Why on this list","withIdentifiers":"With identifiers","withoutIdentifiers":"Without identifiers","worklists":"Worklists","worklistsDescription":"Patients needing action, by list","wouldLikeToBeConsidered":"Would the patient like to be considered for research?","yes":"Yes"}')}}]);
1
+ "use strict";(globalThis.webpackChunk_act_registry_esm_act_app=globalThis.webpackChunk_act_registry_esm_act_app||[]).push([["5117"],{4300(e){e.exports=JSON.parse('{"aboveRange":"Above range","acrossYourSites":"across your sites","actHome":"ACT home","actId":"ACT ID","actions":"Actions","activeCount_one":"{{count}} active","activeCount_other":"{{count}} active","activeParticipants":"Active participants","activePatients":"Active patients","activePatientsWithNoMissingData":"active patients with no missing data","activeRegistrantsCount":"Active registrants: {{count}}","add":"Add","addParticipation":"Add participation","addUser":"Add user","adherence":"Adherence","adherenceLastReport":"Adherence (last report)","adherencePercent":"Adherence {{percent}}%","admin":"Admin","age":"Age","ageSex":"Age, sex","all":"All","allDates":"All dates","allFormsCount":"All forms ({{count}})","allLists":"All lists","allParticipants":"All participants","alternateId":"Alternate ID","aorticRegurgitation":"Aortic regurgitation","aorticStenosis":"Aortic stenosis","backToActHome":"Back to ACT home","backToDiagnosisToConfirm":"Back to Diagnosis to confirm","backToDueForProphylaxis":"Back to Due for prophylaxis","backToEnterProphylaxis":"Back to Enter prophylaxis","backToHome":"Back to Home","backToRegistry":"Back to Registry","backToWaitingList":"Back to Procedural waiting list","backToWorklists":"Back to Worklists","basedOn":"Based on","belowRange":"Below range","benzathinePenicillinG":"Benzathine penicillin G","bpg":"BPG","bpgDoseRecorded":"BPG dose recorded","bpgEveryDays":"BPG \xb7 every {{days}} days","bpgEveryWeeks":"BPG \xb7 every {{weeks}} weeks","bpgInjections":"BPG injections","bpgOnHold":"BPG on hold","bpgOnTimeRate":"BPG on-time rate","bpgOrOral":"BPG or oral","bpgStatus":"BPG status","byFacility":"By facility","cameraUnavailable":"The camera is not available","cancel":"Cancel","cannotStartVisit":"You may not start a visit for this patient.","Cardiac tests":"Cardiac tests","cardiacClinic":"Cardiac clinic","cardiologyReviewDatePassed":"Cardiology review date has passed","cardiologyVisitDueOn":"Cardiology visit due {{date}}","cardiologyVisitDueToday":"Cardiology visit due today","cardiologyVisitOverdue":"Cardiology visit overdue","careCascade":"Care cascade","cascadeReportDate":"Report date: {{date}}","categoryAtDiagnosis":"Category at diagnosis","checkAll":"Check all","checkFilters":"Check the filters above","chooseAClinic":"Choose at least one clinic","chooseAForm":"Choose a form","chooseARole":"Choose at least one role","chooseAStatus":"Choose a status","chooseAStudy":"Choose a study","chooseSex":"Choose a sex","clinicalDashboardsCliniciansOnly":"Clinical dashboards are only visible to clinicians.","clinics":"Clinics","closeSearch":"Close search","completed":"Completed","completionDate":"Completion date","completionNotBeforeEnrollment":"The completion date cannot be before the enrollment date","configureInstance":"Configure instance","confirmatoryEchoNeeded":"Confirmatory echo needed","confirmDismissFlag":"Dismiss this flag? It stays dismissed until the data no longer raises it.","confirmPassword":"Confirm password","consentBeforeEnrolling":"A patient is enrolled in a study only after giving registry consent, which is recorded at registration.","consentGiven":"Consent given","Consultation visits":"Consultation visits","consultationsLastYear":"Consultations in the last year","consultationVisits":"Consultation visits","consultationVisitsLowercase":"consultation visits","contact":"Contact","contraindications":"Contraindications","couldNotDisableUser":"Could not disable the user","couldNotDismissFlag":"Could not dismiss the flag","couldNotDownload":"Could not download the data","couldNotLoadCareCascade":"Could not load the care cascade","couldNotLoadDashboard":"Could not load the dashboard","couldNotLoadDownloads":"Could not load the downloads","couldNotLoadDueForProphylaxis":"Could not load the patients due for prophylaxis","couldNotLoadFields":"Could not load the form\'s fields","couldNotLoadForms":"Could not load the forms","couldNotLoadGaps":"Could not load the missing data","couldNotLoadLastRefresh":"Could not load when they were last refreshed","couldNotLoadOverdueConsultations":"Could not load the patients overdue for consultation","couldNotLoadParticipants":"Could not load the study participants","couldNotLoadPatientsOnProphylaxis":"Could not load the patients on prophylaxis","couldNotLoadRegistry":"Could not load the registry","couldNotLoadReports":"Could not load the report","couldNotLoadRoles":"Could not load the roles","couldNotLoadScreenPositive":"Could not load the screen positive list","couldNotLoadSection":"Could not load {{section}}","couldNotLoadStudies":"Could not load the studies","couldNotLoadUsers":"Could not load the users","couldNotLoadWaitingList":"Could not load the procedural waiting list","couldNotLoadWorklist":"Could not load this list","couldNotLoadWorklistPatients":"Could not load the worklist patients","couldNotOpenForm":"Could not open the form","couldNotRefresh":"Could not refresh flags and adherence","couldNotResetPassword":"Could not reset the password","couldNotSaveOptIn":"Could not save the answer","couldNotSaveParticipation":"Could not save the participation","couldNotSaveStudy":"Could not save the study","couldNotSaveUser":"Could not save the user","couldNotSearch":"Could not search for patients","covered":"Covered","createStudy":"Create study","dashboard":"Dashboard","data":"Data","dataComplete":"Complete","dataCompleteness":"Data completeness","dataDuplicates":"Duplicates","dataReview":"Review","date":"Date","dateDaysAgo":"{{date}} ({{days}} days ago)","dateNotInFuture":"The date cannot be in the future","deceasedNotEnrolled":"The patient has died, so they cannot be enrolled in a study.","dateOfBirth":"Date of birth","daysCount_one":"{{count}} day","daysCount_other":"{{count}} days","daysOverdue":"{{days}} days overdue","daysPending":"Days pending","details":"Details","diagnosis":"Diagnosis","diagnosisCategory":"Diagnosis category","diagnosisDetails":"Diagnosis details","diagnosisToConfirm":"Diagnosis to confirm","diagnosisToConfirmDescription":"Screen-positive patients whose diagnosis has no details yet. Enter diagnosis takes a patient off this list.","disable":"Disable","disabled":"Disabled","disableUser":"Disable user","disableUserBody":"They will no longer be able to sign in. Everything they recorded stays, and an instance administrator can enable them again.","disableUserNamed":"Disable {{name}}?","diseaseCategory":"Disease category","dismiss":"Dismiss","dismissFlag":"Dismiss flag","district":"District","doneOfTotal":"{{done}} of {{total}}","downloadCsv":"Download CSV","downloadData":"Download data","downloadDeidentifiedExplanation":"A row for each saved form, without names, birth dates, ID numbers or phones. Each download is recorded.","downloadIdentifiedExplanation":"A row for each saved form, with the patient\'s names, birth date, ID numbers and phones. Each download is recorded.","downloading":"Downloading...","downloadLog":"Download log","downloadLogExplanation":"Everyone\'s latest downloads of forms\' fields, newest first.","downloadPeriod":"{{from}} to {{to}}","downloadResearchExplanation":"A row for each saved form of the patients who opted in to research, without names, birth dates, ID numbers or phones. Each download is recorded.","dueForProphylaxis":"Due for prophylaxis","dueIn48Hours":"Due in 48 h","dueInDays":"Due in {{days}} days","dueInOneDay":"Due in 1 day","dueOn":"Due {{date}}","dueThisWeek":"Due this week","dueToday":"Due today","dueWithinSevenDays":"Due within 7 days","dueWithinTwoDays":"Due in the next 48 hours, due today or overdue","echoBooked":"Echo booked","echocardiograms":"Echocardiograms","echocardiogramsLowercase":"echocardiograms","echoLast13Months":"Echocardiogram in the last 13 months","editParticipation":"Edit participation","editUser":"Edit user","electrocardiograms":"Electrocardiograms","electrocardiogramsLowercase":"electrocardiograms","enabled":"Enabled","endBeforeStart":"The end is before the start","enrollmentDate":"Enrollment date","enterAStudyName":"Enter a name for the study","enterDiagnosis":"Enter diagnosis","enteredThisWeek":"Entered this week","enterFamilyName":"Enter a family name","enterGivenName":"Enter a given name","enterPassword":"Enter a password","enterProphylaxis":"Enter prophylaxis","enterProphylaxisBanner":"Choose the patient. The form opens in their chart and a visit starts automatically.","enterProphylaxisDescription":"Choose the patient, then record what was given today","enterResult":"Enter result","enterTheCompletionDate":"Enter the completion date for an Inactive status","enterTheEnrollmentDate":"Enter the enrollment date","enterTheStudyId":"Enter the Study ID","enterUsername":"Enter a username","facility":"Facility","facilityReport":"Facility report","facilityReports":"Facility reports","familyName":"Family name","female":"Female","fields":"Fields","fieldsChosen":"{{chosen}} of {{total}} fields","findPatient":"Find a patient","flag":"Flag","flagCount":"{{number}} flags","flagDismissed":"Flag dismissed","flagOpenDays_one":"{{flag}} ({{count}} day)","flagOpenDays_other":"{{flag}} ({{count}} days)","flags":"Flags","flagsAndAdherence":"Flags and adherence","flagsRefreshed":"Flags and adherence refreshed","form":"Form","formsAndSites":"Forms & sites","formsDatedLastSevenDays":"forms dated in the last 7 days","formsShowUpWhenNeeded":"Forms show up here only when {{name}} needs them","fromDate":"From","given":"Given","givenName":"Given name","governedOffByDefault":"Governed \xb7 OFF by default","history":"History","home":"Home","identifiers":"Identifiers","inactive":"Inactive","injectionDue":"Injection due","inr":"INR","INR reviews":"INR reviews","inRange":"In range","inrDueOn":"INR due {{date}}","inrDueToday":"INR due today","inrLast90Days":"On warfarin, with an INR in the last 90 days","inrOnDate":"{{inr}} \xb7 {{date}}","inrOverdue":"INR overdue","inrReview":"INR review","inrReviews":"INR reviews","inrReviewsLowercase":"INR reviews","interventionAssigned":"Intervention assigned","interventions":"Interventions","interventionsCompleted":"Interventions completed","lastConsultation":"Last consultation","lastDose":"Last dose","lastInjection":"Last injection","lastInr":"Last INR","lastRefreshedAt":"Last refreshed {{when}}","lastReport":"Last report","lastUpdated":"Last updated","late":"Late","leftVentricularEjectionFraction":"Left ventricular ejection fraction","limitedToYourClinics":"The users of your clinics","limitedToYourClinicsBody":"You can add and change the users of the clinics on your account, with the clinician roles. An instance administrator manages the others.","loading":"Loading...","male":"Male","medicalOptimisation":"Medical optimisation","missing":"Missing","missingData":"Missing data","mitralRegurgitation":"Mitral regurgitation","mitralStenosis":"Mitral stenosis","month":"Month","monthlyQuarterly":"Monthly \xb7 quarterly","name":"Name","nameOrActId":"Name or ACT ID","nationalId":"National ID","needsFollowUp":"needs follow-up","needsPrescription":"Needs prescription","new":"New","newPassword":"New password","newPrescription":"New prescription","nextCardiologyReview":"Next cardiology review","nextConsultation":"Next consultation","nextDue":"Next due","nextDueOn":"Next due {{date}}","nextInr":"Next INR","nextInrDue":"Next INR due","nextRefill":"Next refill","nextReview":"Next review","nextStepAdded":"Next step added: {{steps}}","nextStepsForThisVisit":"Next steps for this visit","no":"No","noActHomeWidgets":"No widgets have been added to ACT home yet.","noActivePatients":"There are no active patients","nobodyDueForProphylaxis":"Nobody is due for prophylaxis","nobodyDueInThisList":"No patients in this list","nobodyWaiting":"Nobody is waiting for a procedure","noBpgInjections":"There are no BPG injections to display","noCareCascadeData":"No care cascade data","noCommunityHomeWidgets":"No widgets have been added to Home yet.","noDownloads":"There are no downloads to display","noFormsToDownload":"No saved forms match","noGapList":"This flag does not list its missing data.","noGapLists":"None of this patient\'s flags lists its missing data.","none":"None","noOralReports":"There are no oral adherence reports to display","noOtherFindings":"No other findings recorded","noOverdueConsultations":"No patient is overdue for consultation","noParticipantMatches":"No participants to display","noParticipants":"There are no study participants to display","noParticipations":"There are no study participations to display","noPatientsFound":"Sorry, no patient charts were found","noPatientsOnProphylaxis":"No patients on prophylaxis to display","noPatientsToCount":"No patients to count","noPatientWithActId":"No patient with ACT ID {{actId}}.","noPrescription":"No prescription","noProceduralRecommendation":"No procedural rec.","noProphylaxisPrescription":"No prophylaxis prescription","noRegistryMatches":"No patients to display","noRegistryPatients":"There are no registry patients to display","noSavedForm":"No saved form is waiting to be completed. Record the missing data on a new form.","noScreenPositiveMatches":"No patients to display","noScreenPositivePatients":"There are no screen positive patients waiting for a diagnosis","noStudies":"There are no studies to display","notConsented":"Not consented","notConsentedLegend":"Patients marked with * have not consented to the registry","notContacted":"Not contacted","notCovered":"Not covered","notes":"Notes","notRecorded":"Not recorded","notRefreshedYet":"Not refreshed yet","noUsers":"There are no users to display","noWaitingListMatches":"No recommendations to display","noWaitingRecommendations":"There are no procedural recommendations to display","noWorklistPatients":"There are no patients on this list to display","noWorklists":"No worklists have been added yet.","nothingDueToday":"Nothing due for this patient today.","nyhaClass":"NYHA class","onHold":"On hold","onListForDays_one":"On the list for {{count}} day","onListForDays_other":"On the list for {{count}} days","onOral":"On oral","onTime":"On time","onTimeCount":"{{given}} of {{total}}","onTimeSixMonths":"On-time (6 months)","open":"Open","openBpgForm":"Open BPG form","openChart":"Open chart","openClinicalForms":"Open clinical forms","openForDays_one":"Open for {{count}} day, since {{date}}","openForDays_other":"Open for {{count}} days, since {{date}}","openForm":"Open form","openingBpgForm":"Opening the BPG form","openNamedForm":"Open {{form}}","openFormFromClinicalForms":"Open the form from Clinical forms.","openFromClinicalForms":"The visit has started. Open the form from Clinical forms.","openingChart":"Opening their chart","optInBeforeEnrolling":"A patient is enrolled in a study only after answering Yes above.","oral":"Oral","oralAdherence":"Oral adherence","otherClinicsKept":"Also at {{count}} clinic not shown here, which is kept","otherFinding":"Other finding","otherFindings":"Other findings","overdue":"Overdue","overdueForConsultation":"Overdue for consultation","overdueProphylaxis":"Overdue prophylaxis","overdueWasDue":"Overdue \xb7 was due {{date}}","participationSaved":"Participation saved","password":"Password","passwordReset":"Password reset","passwordRule":"At least 8 characters, with an upper case letter and a number","passwordsDoNotMatch":"The passwords do not match","patient":"Patient","patientCount_one":"{{count}} patient","patientCount_other":"{{count}} patients","patients":"Patients","patientsEnrolledAt":"Patients enrolled at {{clinic}}","patientsOnProphylaxis":"Patients on prophylaxis","patientsOpened":"Patients opened","period":"Period","periodLength":"Period length","phone":"Phone","phoneOwner":"Phone owner","prescription":"Prescription","primaryCareClinic":"Primary care clinic","proceduralOldRecommendation":"Procedural rec. > 12 months","proceduralRecentRecommendation":"Procedural rec. < 12 months","proceduralWaitingList":"Procedural waiting list","proceduralWaitlist":"Procedural waitlist","proceduralWaitlistCount":"Procedural waitlist: {{count}}","procedure":"Procedure","procedureDue":"Procedure due","procedureType":"Type","procedureTypeFilter":"Procedure type","prophylaxis":"Prophylaxis","Prophylaxis":"Prophylaxis","prophylaxisDueOn":"Prophylaxis due {{date}}","prophylaxisDueToday":"Prophylaxis due today","prophylaxisOverdue":"Prophylaxis overdue","prophylaxisPlan":"Prophylaxis plan","prophylaxisPrescribed":"Prophylaxis prescribed","prophylaxisRegimen":"Prophylaxis regimen","prophylaxisUpToDate":"Prophylaxis up to date","quarter":"Quarter","quickActions":"Quick actions","reasonBelow80":"Reason if below 80%","recentlyViewedPatients":"Recently viewed patients","recordBpg":"Record BPG","recordBpgInjection":"Record BPG injection","recordedToday":"Recorded today","recordFollowsPrescription":"The button follows each patient\'s current prescription. Prescriptions are changed in the Consultation Visit, not here.","recordInr":"Record INR","recordOral":"Record oral","recordOralProphylaxis":"Record oral prophylaxis","refineSearch":"Showing the first {{shown}}. Add more of the name, or the ACT ID, to find the others.","refreshAlreadyRunning":"A refresh is already running","refreshAlreadyRunningDetail":"Its results show here when it finishes.","refreshExplanation":"Critical data flags, the worklists and every patient\'s prophylaxis adherence are recalculated once a day. Refresh them now to see today\'s changes.","refreshing":"Refreshing","refreshNow":"Refresh now","registerPatient":"Register patient","registrantStatus":"Registrant status","registry":"Registry","registryConsent":"Registry consent (recorded at registration):","registryDescription":"Patients enrolled in the RHD Registry programme","registryDescriptionAt":"Patients enrolled in the RHD Registry programme at {{clinic}}","renameStudy":"Rename study","report":"Report","reports":"Reports","Research participation":"Research participation","researchParticipantsWithoutIdentifiers":"Research participants, without identifiers","researchParticipation":"Research participation","resetPassword":"Reset password","resetPasswordFor":"Reset the password of {{name}}","result":"Result","retainedInCare":"Retained in care (seen in the last 7 months)","rhdFlag":"RHD flag","rolePermissions":"Role permissions","roles":"Roles","rows":"Rows","save":"Save","saving":"Saving...","scanPatientCard":"Scan patient card","scanPatientCardExplanation":"Point the camera at the barcode on the patient\'s identifier sticker to open their BPG Delivery form in their chart. The ACT ID field also takes a handheld barcode scanner.","screenDetectedDiagnoses":"Diagnoses of the screen-detected","screenDetectedRhd":"RHD details of the screen-detected","screened":"Screened","screenedPositive":"Screened positive","screenedPositiveOn":"Screened positive \xb7 {{date}}","screening":"Screening","screeningCascade":"Screening cascade","screenPositive":"Screen positive, pending confirmation","screeningSite":"Screening site","searchByNameOrActId":"Search by name or ACT ID","searchForPatient":"Search for a patient by name or ACT ID","searchRegistryWithAlternateId":"Search by name, ACT ID or alternate ID","searchResultCount_one":"{{count}} search results","searchResultCount_other":"{{count}} search results","searchUsers":"Search users","searchUsersPlaceholder":"Search by name, username or role","seenBy":"Seen by","sessionTimeoutBody":"You have been inactive for a while. To keep your records safe you will be signed out in {{remaining}}, and anything typed into an open form will be lost.","sessionTimeoutTitle":"Still there?","sex":"Sex","showDisabledUsers":"Show disabled users","shownForInstanceAdmin":"Shown for Instance Administrator","signOut":"Sign out","specificProcedure":"Specific procedure","start":"Start","startConsultation":"Start consultation","startScanning":"Start scanning","startSomeoneOnCare":"Start someone on care","status":"Status","staySignedIn":"Stay signed in","stillActiveInAStudy":"Still active in a study","stillActiveInAStudyWithout":"The patient is active in a study, which needs registry consent and a Yes to research. If they have left the study, edit its status.","stopScanning":"Stop scanning","studies":"Studies","study":"Study","studyId":"Study ID","studyName":"Study name","studyParticipants":"Study participants","studySaved":"Study saved","studyStatus":"Study status","suitableForRepair":"Suitable for repair","targetRange":"Target range","time":"Time","toDate":"To","type":"Type","typeActIdInstead":"Type the ACT ID instead. {{reason}}","uncheckAll":"Uncheck all","upToDate":"Up to date","urgency":"Urgency","urgent":"Urgent","user":"User","userActivity":"User activity","userDisabled":"User disabled","username":"Username","users":"Users","usersAndRoles":"Users and roles","userSaved":"User saved","viewChart":"View chart","village":"Village","visitStarted":"{{visitType}} started","visitStartedForForm":"Started automatically so the form can be saved","waitingCount_one":"{{count}} waiting","waitingCount_other":"{{count}} waiting","waitingList":"Procedural waiting list","waitingListDescription":"Open procedural recommendations from the latest consultation \xb7 red rows are past the deadline for their urgency","warfarinDose":"Warfarin dose","wasDue":"Was due","whoSeesWhat":"Who sees what","whyOnThisList":"Why on this list","withIdentifiers":"With identifiers","withoutIdentifiers":"Without identifiers","worklists":"Worklists","worklistsDescription":"Patients needing action, by list","wouldLikeToBeConsidered":"Would the patient like to be considered for research?","yes":"Yes"}')}}]);
package/dist/5117.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"5117.js","sources":["webpack://@act-registry/esm-act-app/json|/home/runner/work/openmrs-esm-act-app/openmrs-esm-act-app/translations/en.json"],"names":["JSON"],"mappings":"6IAAA,EAAO,OAAO,CAAGA,KAAK,KAAK,CAAC,69pB"}
1
+ {"version":3,"file":"5117.js","sources":["webpack://@act-registry/esm-act-app/json|/home/runner/work/openmrs-esm-act-app/openmrs-esm-act-app/translations/en.json"],"names":["JSON"],"mappings":"6IAAA,EAAO,OAAO,CAAGA,KAAK,KAAK,CAAC,yhqB"}
package/dist/6841.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_act_registry_esm_act_app=globalThis.webpackChunk_act_registry_esm_act_app||[]).push([["6841"],{3936(e,s,r){r.r(s),r.d(s,{default:()=>o});var a=r(4335),i=r.n(a),t=r(1943),l=r(2909),n=r(1256);function o(){let{t:e}=(0,t.useTranslation)(),{instanceAdminQuickActions:s}=(0,l.useConfig)();if((0,n.z)())return null;let r=[{to:s.formsAndSitesUrl,label:e("formsAndSites","Forms & sites")},{to:s.rolePermissionsUrl,label:e("rolePermissions","Role permissions")},{to:s.researchParticipationUrl,label:e("researchParticipation","Research participation")}];return i().createElement("div",null,r.map(({to:e,label:s})=>i().createElement(l.ConfigurableLink,{key:e,to:e,className:"cds--side-nav__link"},s)))}}}]);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"6841.js","sources":["webpack://@act-registry/esm-act-app/./src/instance-admin/instance-admin-nav.component.tsx"],"names":["InstanceAdminNav","t","useTranslation","instanceAdminQuickActions","useConfig","useHoldsActHome","links","to","label","ConfigurableLink"],"mappings":"oOAUe,SAASA,IACtB,GAAM,CAAEC,EAAAA,CAAC,CAAE,CAAGC,AAAAA,GAAAA,EAAAA,cAAAA,AAAAA,IACR,CAAEC,0BAAAA,CAAyB,CAAE,CAAGC,AAAAA,GAAAA,EAAAA,SAAAA,AAAAA,IACtC,GAAIC,AAAAA,GAAAA,EAAAA,CAAAA,AAAAA,IACF,OAAO,KAET,IAAMC,EAAQ,CACZ,CAAE,GAAIH,EAA0B,gBAAgB,CAAE,MAAOF,EAAE,gBAAiB,gBAAiB,EAC7F,CAAE,GAAIE,EAA0B,kBAAkB,CAAE,MAAOF,EAAE,kBAAmB,mBAAoB,EACpG,CACE,GAAIE,EAA0B,wBAAwB,CACtD,MAAOF,EAAE,wBAAyB,yBACpC,EACD,CACD,OACE,kBAAC,WACEK,EAAM,GAAG,CAAC,CAAC,CAAEC,GAAAA,CAAE,CAAEC,MAAAA,CAAK,CAAE,GACvB,kBAACC,EAAAA,gBAAgBA,CAAAA,CAAC,IAAKF,EAAI,GAAIA,EAAI,UAAU,qB,EAC1CC,IAKX,C"}
package/dist/725.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_act_registry_esm_act_app=globalThis.webpackChunk_act_registry_esm_act_app||[]).push([["725"],{6354(e,t,a){a.d(t,{r:()=>d});var n=a(4335),r=a.n(n),i=a(2909),l=a(7136),s=a(3335);let c="-esm-act__session-location-and-date__metaItem___ySkhg";function o(){let{sessionLocation:e}=(0,i.useSession)();return r().createElement("div",{className:"-esm-act__session-location-and-date__headerMeta___SmcbO"},e?.display&&r().createElement("span",{className:c},r().createElement(l.aZ,{size:16,"aria-hidden":"true"}),e.display),r().createElement("span",{className:c},r().createElement(s.Vv,{size:16,"aria-hidden":"true"}),(0,i.formatDate)(new Date,{time:!1,noToday:!0})))}function d({title:e,illustration:t,actions:a}){return r().createElement(i.PageHeader,{className:"-esm-act__act-page-header__header___n9hVL","data-testid":"act-page-header"},r().createElement(i.PageHeaderContent,{title:e,illustration:t}),r().createElement("div",{className:"-esm-act__act-page-header__actions___tt4QN"},a,r().createElement(o,null)))}},645(e,t,a){a.d(t,{X3:()=>u,fU:()=>d,h6:()=>o,o2:()=>s});var n=a(4335),r=a(3483),i=a.n(r),l=a(2909);let s="actcore.clinics",c=["cardiac_clinic","primary_care_clinic","facility"];function o(e){return[...new Set((e??"").split(",").map(e=>e.trim()).filter(Boolean))]}function d(){let{user:e}=(0,l.useSession)(),t=!!e&&((0,l.userHasAccess)("Edit Users",e)||(0,l.userHasAccess)("Add Users",e))&&!(0,l.userHasAccess)("Task: act.allClinics",e),a=(0,n.useMemo)(()=>t?o(e?.userProperties?.[s]):[],[t,e?.userProperties]),{data:r,error:c}=i()(t&&a.length?["act-clinic-limit",...a]:null,()=>Promise.all(a.map(e=>(0,l.openmrsFetch)(`${l.restBaseUrl}/location/${e}?v=custom:(display)`).then(({data:e})=>e.display))));return t?a.length?r||c?{status:"ready",uuids:a,names:r??[]}:{status:"pending"}:{status:"ready",uuids:a,names:[]}:{status:"none"}}function u(e,t){return"none"===t.status?e:"pending"===t.status?[]:e.filter(e=>{let a=c.filter(t=>t in e);return!a.length||a.some(a=>t.names.includes(String(e[a]??"")))})}},7928(e,t,a){a.d(t,{m:()=>r});var n=a(2909);async function r(e){let t=t=>(0,n.openmrsFetch)(`${e}&totalCount=true&startIndex=${t}`).then(({data:e})=>e),a=await t(0),r=a.results.length,i=[];for(let e=r;r&&e<a.totalCount;e+=r)i.push(e);return[a,...await Promise.all(i.map(t))].flatMap(e=>e.results)}},9342(e,t,a){a.d(t,{z:()=>n});let n=e=>`\${openmrsSpaBase}/patient/${e}/chart`},9771(e,t,a){a.d(t,{Bn:()=>c,eJ:()=>u,ml:()=>o,mo:()=>m,uF:()=>d});var n=a(351),r=a(7343),i=a(5430),l=a(6932);let s=["status","cardiac","primaryCare","category","prophylaxis","bpg","flag","q"],c={status:"enrollment_status",cardiac:"cardiac_clinic",primaryCare:"primary_care_clinic",category:"diagnosis_category",prophylaxis:"prophylaxis_regimen",bpg:"bpg_status"};function o(){let e;return(0,l.y)(s,"pending"===(e=(0,n.uu)())?"pending":{status:"Active",...e})}function d(e,t,a=new Date){let n=String(e.rhd_flag_dates??"").split("|").find(e=>e.slice(0,e.lastIndexOf("="))===t),i=n&&(0,r.S)(n.slice(n.lastIndexOf("=")+1));if(i)return Math.round((new Date(a.getFullYear(),a.getMonth(),a.getDate()).getTime()-i.getTime())/864e5)}function u(e){return String(e.rhd_flags??"").split("|").filter(Boolean)}function m(e,t){let a=t.q.trim().toLowerCase();return e.filter(e=>(0,i.$)(e,t,c)&&(!t.flag||u(e).includes(t.flag))&&(!a||[e.full_name,e.rhd_id,e.external_id].some(e=>String(e??"").toLowerCase().includes(a))))}},6388(e,t,a){a.r(t),a.d(t,{default:()=>U});var n=a(4335),r=a.n(n),i=a(1943),l=a(3074),s=a(2909),c=a(6354),o=a(9342),d=a(4562),u=a(2199),m=a(7343),g=a(5802),_=a(313),p=a(5430),y=a(4026),h=a(9771);function f({value:e}){let{t}=(0,i.useTranslation)(),a=Math.min(100,Math.max(0,Math.round(e)));return r().createElement("svg",{className:"-esm-act__adherence-ring__ring___7WJqB",viewBox:"0 0 40 40",role:"img","aria-label":t("adherencePercent","Adherence {{percent}}%",{percent:a})},r().createElement("circle",{className:"-esm-act__adherence-ring__track___Evluf",cx:"20",cy:"20",r:17}),r().createElement("circle",{className:"-esm-act__adherence-ring__arc___n8w59","data-testid":"adherence-arc",cx:"20",cy:"20",r:17,pathLength:"100",strokeDasharray:`${a} ${100-a}`,transform:"rotate(-90 20 20)"}),r().createElement("text",{className:"-esm-act__adherence-ring__value___RA+et",x:"20",y:"20",textAnchor:"middle",dominantBaseline:"central"},a,"%"))}let v={registry:"-esm-act__registry__registry___t-3fa",description:"-esm-act__registry__description___KKWmG",row:"-esm-act__registry__row___OCXaa",message:"-esm-act__registry__message___Qg9wn",filters:"-esm-act__registry__filters___jwuzk",noPrescription:"-esm-act__registry__noPrescription___E0Jw4",dataQuality:"-esm-act__registry__dataQuality___OvBE3",name:"-esm-act__registry__name___1ew9+",actId:"-esm-act__registry__actId___cxCAm",flagsTooltip:"-esm-act__registry__flagsTooltip___q7wxr",actions:"-esm-act__registry__actions___2mcxV",notConsented:"-esm-act__registry__notConsented___IptYv",inactive:"-esm-act__registry__inactive___dZBFf",legend:"-esm-act__registry__legend___WUM0a",details:"-esm-act__registry__details___61PQW",detailFields:"-esm-act__registry__detailFields___QB8H7",detailLabel:"-esm-act__registry__detailLabel___Q5OLO",overdue:"-esm-act__registry__overdue___vdGcq"},E=["Covered","Deadline approaching","Not covered","No prescription","Oral"];function w(){let{t:e}=(0,i.useTranslation)();return t=>({Covered:e("covered","Covered"),"Deadline approaching":e("dueWithinSevenDays","Due within 7 days"),"Not covered":e("notCovered","Not covered"),"No prescription":e("noPrescription","No prescription"),Oral:e("onOral","On oral")})[t]??t}let C={Covered:"green","Deadline approaching":"blue","Not covered":"red","No prescription":"warm-gray",Oral:"gray"};function b({row:e}){let{t}=(0,i.useTranslation)(),a=w(),n=String(e.bpg_status??"");if(!(n in C))return null;let s=null==e.days_until_due?null:Number(e.days_until_due),c="Deadline approaching"!==n||null==s?a(n):0===s?t("dueToday","Due today"):1===s?t("dueInOneDay","Due in 1 day"):t("dueInDays","Due in {{days}} days",{days:s});return r().createElement(l.vwO,{as:"span","data-testid":"bpg-status",type:C[n],className:"No prescription"===n?v.noPrescription:void 0,size:"sm"},c)}let N="bottom-end",S={risk:"red",earlyWarning:"blue",dataQuality:"warm-gray"};function x({priority:e,children:t}){return r().createElement(l.vwO,{as:"span","data-testid":"registry-flag","data-priority":e,type:S[e],className:v[e],size:"sm"},t)}function D({flags:e,rowsBelow:t}){let{t:a}=(0,i.useTranslation)(),n=(0,s.isDesktop)((0,s.useLayoutType)());if(0===e.length||1===e.length&&void 0===e[0].days)return e.map(e=>r().createElement(x,{key:e.flagName,priority:e.priority},e.flagName));let c=1===e.length?e[0].flagName:a("flagCount","{{number}} flags",{number:e.length}),o=e.map(e=>void 0===e.days?e.flagName:a("flagOpenDays","{{flag}} ({{count}} days)",{flag:e.flagName,count:e.days})).join(", "),u=r().createElement(x,{priority:(0,d.TK)(e)},c),m=t<=e.length;return n?r().createElement(l.lrh,{className:v.flagsTooltip,align:N,autoAlign:m,openOnHover:!0,definition:o},u):r().createElement(l.Gff,{align:N,autoAlign:m},r().createElement(l.yvu,{label:c},u),r().createElement(l.pNg,null,o))}var T=a(8267),k=a(4842);function P(e){let t=new Date,a=new Date(t.getFullYear(),t.getMonth(),t.getDate());return Math.round((e.getTime()-a.getTime())/864e5)}let $=e=>(0,s.formatDate)(e,{time:!1,noToday:!0});function A({row:e}){let{t}=(0,i.useTranslation)(),{waitingList:a,urgencyBands:l}=(0,s.useConfig)(),{rows:c}=(0,T.y)(a.report),o=(0,n.useMemo)(()=>(0,k.x)(c.filter(t=>t.patient_uuid===e.patient_uuid),l),[c,l,e.patient_uuid]),d=t("none","None"),u=(0,m.S)(e.next_consultation_date),g=(0,m.S)(e.last_injection_date),_=(0,m.S)(e.next_due_date),p=[{id:"cardiac-clinic",label:t("cardiacClinic","Cardiac clinic"),value:String(e.cardiac_clinic??d)},{id:"primary-care-clinic",label:t("primaryCareClinic","Primary care clinic"),value:String(e.primary_care_clinic??d)},{id:"next-consultation",label:t("nextConsultation","Next consultation"),value:u?$(u):d,overdue:null!=u&&0>P(u)},{id:"last-injection",label:t("lastInjection","Last injection"),value:g?t("dateDaysAgo","{{date}} ({{days}} days ago)",{date:$(g),days:-P(g)}):d},{id:"injection-due",label:t("injectionDue","Injection due"),value:_?$(_):d,overdue:null!=_&&0>P(_)}];return r().createElement("div",{className:v.details},r().createElement("dl",{className:v.detailFields},p.map(e=>r().createElement("div",{key:e.id},r().createElement("dt",{className:v.detailLabel},e.label),r().createElement("dd",{"data-testid":`registry-${e.id}`,"data-overdue":String(!!e.overdue),className:e.overdue?v.overdue:void 0},e.value)))),r().createElement("div",null,r().createElement("h4",{className:v.detailLabel},t("interventions","Interventions")),o.length?r().createElement("ul",{"data-testid":"registry-interventions"},o.map(({row:e,daysPending:a,band:n,overdue:i})=>{let s=l[n]?.deadlineDays,c=String(e.procedure_name??e.procedure_type??""),o=null==s||null==a?"":i?t("daysOverdue","{{days}} days overdue",{days:a-s}):t("dueInDays","Due in {{days}} days",{days:s-a});return r().createElement("li",{key:String(e.recommendation_uuid),"data-overdue":String(i),className:i?v.overdue:void 0},o?`${c}: ${o}`:c)})):r().createElement("p",null,d)))}var I=a(6511),L=a(351);let O=e=>null==e||""===e?null:Number(e),j={name:e=>null==e.full_name?null:String(e.full_name),age:e=>O(e.age_years),bpg:e=>O(e.days_until_due),adherence:e=>O(e.adherence)};var B=a(7541);let F=e=>(0,o.z)(e.patient_uuid);function M(e){let t=(0,m.S)(e.next_consultation_date);return t?(0,s.formatDate)(t,{time:!1,noToday:!0}):""}function R(){let{t:e}=(0,i.useTranslation)(),{registry:t,flagLists:a}=(0,s.useConfig)(),c=(0,s.isDesktop)((0,s.useLayoutType)()),{rows:o,isLoading:m,error:C}=(0,I.PL)(),[N,S,x]=(0,h.ml)(),T=(0,L.CQ)(),k="ready"===T.status?T.kind:"none",P=(0,n.useMemo)(()=>new Set(({primaryCare:["status","primaryCare","category","prophylaxis","flag"],cardiac:["status","cardiac","primaryCare","category","bpg"],none:["status","cardiac","primaryCare","category","bpg","flag"]})[k].filter(e=>"bpg"!==e||t.showBpgColumns)),[k,t.showBpgColumns]),$=(0,n.useMemo)(()=>(0,h.mo)(o,Object.fromEntries(Object.entries(N).map(([e,t])=>[e,"q"===e||P.has(e)?t:""]))),[o,N,P]),[O,R]=(0,n.useState)(null),U=(0,n.useMemo)(()=>(function(e,t){if(!t)return e;let a=j[t.key],n="ASC"===t.direction?1:-1;return[...e].sort((e,t)=>{let[r,i]=[a(e),a(t)];return null==r||null==i?Number(null==r)-Number(null==i):n*("string"==typeof r?r.localeCompare(String(i)):r-Number(i))})})($,O),[$,O]),{results:z,paginationProps:Q}=(0,y.C)(U,N),[W,Y]=(0,n.useState)(new Set),H=w(),K=(e,t)=>r().createElement(_.J,{id:`registry-${e}`,label:t,value:N[e],options:(0,p.V)(o,h.Bn[e]),onChange:t=>S({[e]:t})}),q=e=>(0,h.eJ)(e).filter(e=>(0,d._h)(a,e)).map(t=>({flagName:t,priority:(0,d.nO)(a,t),days:(0,h.uF)(e,t)})),J=[...new Set(o.flatMap(e=>q(e).map(e=>e.flagName)))].sort(),G=e=>t=>String(t[e]??""),V=[{header:e("name","Name"),text:G("full_name")},{header:e("actId","ACT ID"),text:G("rhd_id")},{header:e("alternateId","Alternate ID"),text:G("external_id")},{header:e("nationalId","National ID"),text:G("national_id")},{header:e("age","Age"),text:G("age_years")},{header:e("sex","Sex"),text:G("sex")},{header:e("diagnosisCategory","Diagnosis category"),text:G("diagnosis_category")},{header:e("diagnosisDetails","Diagnosis details"),text:G("diagnosis_details")},{header:e("prophylaxisRegimen","Prophylaxis regimen"),text:G("prophylaxis_regimen")},{header:e("nextConsultation","Next consultation"),text:M},{header:e("cardiacClinic","Cardiac clinic"),text:G("cardiac_clinic")},{header:e("primaryCareClinic","Primary care clinic"),text:G("primary_care_clinic")},{header:e("consentGiven","Consent given"),text:G("consent_given")},{header:e("lastInjection","Last injection"),text:G("last_injection_date")},{header:e("injectionDue","Injection due"),text:G("next_due_date")},...t.showBpgColumns?[{header:e("bpgStatus","BPG status"),text:G("bpg_status")},{header:e("adherence","Adherence"),text:e=>null==e.adherence?"":`${e.adherence}%`}]:[],{header:e("flags","Flags"),text:e=>q(e).map(e=>e.flagName).join("; ")}],X=[{header:e("patient","Patient"),sortKey:"name",render:t=>r().createElement(r().Fragment,null,r().createElement(s.ConfigurableLink,{to:F(t),className:v.name},G("full_name")(t)),"Yes"!==t.consent_given&&r().createElement("span",{className:v.notConsented,title:e("notConsented","Not consented")},"*"),"Completed"===t.enrollment_status&&r().createElement(l.vwO,{as:"span",type:"gray",size:"sm",className:v.inactive},e("inactive","Inactive")),r().createElement("span",{className:v.actId},G("rhd_id")(t)))},{header:e("ageSex","Age, sex"),sortKey:"age",render:e=>[G("age_years")(e),G("sex")(e)].filter(Boolean).join(" ")},{header:e("diagnosis","Diagnosis"),render:u.C},{header:e("prophylaxis","Prophylaxis"),render:G("prophylaxis_regimen")},...t.showBpgColumns?[{header:e("bpgStatus","BPG status"),sortKey:"bpg",render:e=>r().createElement(b,{row:e})},{header:e("adherence","Adherence"),sortKey:"adherence",render:e=>null==e.adherence?null:r().createElement(f,{value:Number(e.adherence)})}]:[],{header:e("flags","Flags"),render:(e,t)=>r().createElement(D,{flags:q(e),rowsBelow:z.length-1-t})}];return C||"error"===T.status?r().createElement(l.jeF,{kind:"error",lowContrast:!0,hideCloseButton:!0,title:e("couldNotLoadRegistry","Could not load the registry")}):m||x?r().createElement(l.OOb,{role:"progressbar",columnCount:X.length,rowCount:Q.pageSize,compact:c,zebra:!0,showHeader:!1,showToolbar:!1}):o.length?r().createElement(r().Fragment,null,r().createElement("div",{className:v.filters},r().createElement(l.vji,{labelText:e("searchRegistryWithAlternateId","Search by name, ACT ID or alternate ID"),placeholder:e("searchRegistryWithAlternateId","Search by name, ACT ID or alternate ID"),value:N.q,onChange:e=>S({q:e.target.value})}),K("status",e("status","Status")),P.has("cardiac")&&K("cardiac",e("cardiacClinic","Cardiac clinic")),K("primaryCare",e("primaryCareClinic","Primary care clinic")),K("category",e("categoryAtDiagnosis","Category at diagnosis")),P.has("prophylaxis")&&K("prophylaxis",e("prophylaxis","Prophylaxis")),P.has("bpg")&&r().createElement(_.J,{id:"registry-bpg",label:e("bpgStatus","BPG status"),value:N.bpg,options:E,optionLabel:H,onChange:e=>S({bpg:e})}),P.has("flag")&&r().createElement(_.J,{id:"registry-flag",label:e("rhdFlag","RHD flag"),value:N.flag,options:J,onChange:e=>S({flag:e})})),r().createElement("div",{className:v.actions},r().createElement(g.F,{name:"registry",headers:V.map(e=>e.header),rows:()=>$.map(e=>V.map(t=>t.text(e))),disabled:!$.length})),$.length?r().createElement(r().Fragment,null,r().createElement("p",{className:v.legend},e("notConsentedLegend","Patients marked with * have not consented to the registry")),r().createElement(l.XIK,{size:c?"sm":"lg",useZebraStyles:!0},r().createElement(l.ndF,null,r().createElement(l.Hjg,null,r().createElement(l.Uwq,{"aria-label":e("details","Details")}),X.map(e=>e.sortKey?r().createElement(l.A0N,{key:e.header,isSortable:!0,sortDirection:O?.key===e.sortKey?O.direction:"NONE",onClick:()=>{var t;return R((t=e.sortKey,O?.key!==t?{key:t,direction:"ASC"}:"ASC"===O.direction?{key:t,direction:"DESC"}:null))}},e.header):r().createElement(l.A0N,{key:e.header},e.header)))),r().createElement(l.BFY,null,z.map((t,a)=>r().createElement(r().Fragment,{key:String(t.patient_uuid)},r().createElement(l.fZD,{"aria-label":e("details","Details"),isExpanded:W.has(t.patient_uuid),onExpand:()=>{let e;return e=t.patient_uuid,Y(t=>{let a=new Set(t);return a.delete(e)||a.add(e),a})},className:v.row,...{onClick:e=>e.target.closest("a, button, .cds--popover-container")||(0,s.navigate)({to:F(t)})}},X.map(e=>r().createElement(l.nA6,{key:e.header},e.render(t,a)))),W.has(t.patient_uuid)&&r().createElement(l.cwJ,{colSpan:X.length+1},r().createElement(A,{row:t}))))))):r().createElement(B.n,{message:e("noRegistryMatches","No patients to display")}),$.length>0&&r().createElement(l.dKS,Q)):r().createElement(B.D,{message:e("noRegistryPatients","There are no registry patients to display")})}function U(){let{t:e}=(0,i.useTranslation)(),t=(0,L.CQ)(),a="ready"===t.status?t.clinic?.name:null;return r().createElement(r().Fragment,null,r().createElement(c.r,{title:e("registry","Registry"),illustration:r().createElement(s.PatientListsPictogram,null)}),r().createElement("div",{className:v.registry},r().createElement("p",{className:v.description},a?e("registryDescriptionAt","Patients enrolled in the RHD Registry programme at {{clinic}}",{clinic:a}):e("registryDescription","Patients enrolled in the RHD Registry programme")),r().createElement(R,null)))}},6511(e,t,a){a.d(t,{PL:()=>o,bW:()=>u,eb:()=>m,hY:()=>d});var n=a(4335),r=a(8406),i=a.n(r),l=a(2909),s=a(8267),c=a(351);function o(e=!0){let{registry:t}=(0,l.useConfig)(),a=(0,n.useMemo)(()=>({startDate:"1900-01-01",endDate:i()().format("YYYY-MM-DD")}),[]);return(0,s.y)(e?t.report:null,a)}let d=e=>"Active"===e.enrollment_status&&!0!==e.deceased&&1!==Number(e.deceased),u=["cardiac_clinic","primary_care_clinic"];function m(e,t){let a=(0,c.CQ)(),{status:r}=a,i="ready"===r?a.column:null,l="ready"===r?a.clinic?.name:null,s=!!i&&!t.includes(i),d=o(s);return{rows:(0,n.useMemo)(()=>{if("ready"!==r)return[];if(!i)return e.rows;let t=new Map(d.rows.map(e=>[String(e.patient_uuid),e]));return e.rows.filter(e=>{let a=s?t.get(String(e.patient_uuid)):e;return String(a?.[i]??"")===l})},[r,i,l,s,e.rows,d.rows]),isLoading:e.isLoading||"pending"===r||s&&d.isLoading,error:e.error??("error"===r?Error("The session location could not be read"):void 0)??(s?d.error:void 0)}}},2199(e,t,a){a.d(t,{C:()=>n});function n(e){return String(e.diagnosis_details||e.diagnosis_category||"")}},8267(e,t,a){a.d(t,{y:()=>m});var n=a(4335),r=a(3483),i=a.n(r),l=a(2909),s=a(645);let c=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;var o=a(7928);async function d(e){let t=(await (0,o.m)(`${l.restBaseUrl}/reportingrest/reportDefinition?q=${encodeURIComponent(e)}&v=custom:(uuid,name)`)).find(t=>t.name===e);if(!t)throw Error(`No report is named "${e}"`);return t.uuid}async function u(e,t){let a=c.test(e)?e:await d(e),{data:n}=await (0,l.openmrsFetch)(`${l.restBaseUrl}/reportingrest/reportdata/${a}?${new URLSearchParams(t)}`);return n.dataSets[0]}function m(e,t={}){let{data:a,error:r,isLoading:l,mutate:c}=i()(e?["rhd-report-dataset",e,t]:null,()=>u(e,t),{shouldRetryOnError:!1}),o=(0,s.fU)(),d=(0,n.useMemo)(()=>(0,s.X3)(a?.rows??[],o),[a?.rows,o]);return{columns:a?.metadata.columns??[],rows:d,isLoading:l||!!e&&"pending"===o.status,error:r,mutate:c}}},7343(e,t,a){a.d(t,{S:()=>n});function n(e){if(Array.isArray(e)&&e.length>=3){let[t,a,n]=e.map(Number);return new Date(t,a-1,n)}let t="string"==typeof e?e.match(/^(\d{4})-(\d{2})-(\d{2})/):null;return t?new Date(Number(t[1]),Number(t[2])-1,Number(t[3])):null}},4562(e,t,a){a.d(t,{TK:()=>d,U$:()=>u,_h:()=>c,nO:()=>o});var n=a(3483),r=a.n(n),i=a(2909),l=a(7928);let s=["risk","earlyWarning","dataQuality"];function c({names:e,namePrefix:t},a){return e.length?e.includes(a):a.startsWith(t)}function o({riskFlags:e,earlyWarningFlags:t},a){return e.includes(a)?"risk":t.includes(a)?"earlyWarning":"dataQuality"}function d(e){return s.find(t=>e.some(e=>e.priority===t))??"dataQuality"}function u(e){let{data:t,error:a,isLoading:n}=r()(e?["rhd-flag-list",e]:null,async()=>{let t=(await (0,l.m)(`${i.restBaseUrl}/cohort?q=${encodeURIComponent(e)}&v=custom:(uuid,name,voided)`).then(e=>e.filter(e=>!e.voided))).find(t=>t.name===e);return t?{cohortUuid:t.uuid}:null},{revalidateIfStale:!1});return{list:t??null,isLoading:n,error:a}}},351(e,t,a){a.d(t,{CQ:()=>s,_X:()=>l,uu:()=>c});var n=a(3483),r=a.n(n),i=a(2909);function l(){let{clinicLocationTags:e}=(0,i.useConfig)(),{sessionLocation:t}=(0,i.useSession)(),{data:a,error:n}=r()(t?.uuid?`${i.restBaseUrl}/location/${t.uuid}?v=custom:(tags:(display))`:null,i.openmrsFetch);if(!t?.uuid)return"none";if(!a)return n?"error":"pending";let l=a.data?.tags?.map(e=>e.display)??[];return l.some(t=>e.cardiac.includes(t))?"cardiac":l.some(t=>e.primaryCare.includes(t))?"primaryCare":"none"}function s(){let{sessionLocation:e}=(0,i.useSession)(),t=l();return"pending"===t||"error"===t?{status:t}:"none"===t?{status:"ready",kind:t,clinic:null,column:null}:{status:"ready",kind:t,clinic:{uuid:e.uuid,name:e.display},column:"cardiac"===t?"cardiac_clinic":"primary_care_clinic"}}function c(){let e=s();return"pending"===e.status?"pending":"ready"===e.status&&e.clinic?{["cardiac"===e.kind?"cardiac":"primaryCare"]:e.clinic.name}:{}}},3531(e,t,a){function n(e){let t=/^[=+\-@\t\r]/.test(e)?`'${e}`:e;return/[",\r\n]/.test(t)?`"${t.replace(/"/g,'""')}"`:t}function r(e,t,a){let r=[t,...a].map(e=>e.map(n).join(",")).join("\r\n")+"\r\n",i=URL.createObjectURL(new Blob([r],{type:"text/csv;charset=utf-8"})),l=document.createElement("a");l.href=i,l.download=e,l.click(),URL.revokeObjectURL(i)}a.d(t,{t:()=>r})},5430(e,t,a){function n(e,t){return[...new Set(e.map(e=>e[t]).filter(Boolean).map(String))].sort()}function r(e,t,a){return Object.keys(a).every(n=>!t[n]||String(e[a[n]]??"")===t[n])}a.d(t,{$:()=>r,V:()=>n})},5802(e,t,a){a.d(t,{F:()=>g});var n=a(4335),r=a.n(n),i=a(8406),l=a.n(i),s=a(1943),c=a(3074),o=a(771),d=a(2909),u=a(7003),m=a(3531);function g({name:e,headers:t,rows:a,disabled:n,size:i="sm"}){let{t:_}=(0,s.useTranslation)();return r().createElement(d.UserHasAccess,{privilege:u.z$},r().createElement(c.$nd,{kind:"tertiary",size:i,renderIcon:o.f5,disabled:n,onClick:()=>(0,m.t)(`${e}-${l()().format("YYYY-MM-DD")}.csv`,t,a())},_("downloadCsv","Download CSV")))}},7541(e,t,a){a.d(t,{n:()=>u,D:()=>d});var n=a(4335),r=a.n(n),i=a(1943),l=a(3074),s=a(2909);let c="-esm-act__empty-state__tile___WjkRq",o="-esm-act__empty-state__content___SZy3C";function d({message:e}){return r().createElement(l.Wdr,null,r().createElement(l.FAs,{className:c,"data-testid":"table-empty-state"},r().createElement(s.EmptyCardIllustration,null),r().createElement("p",{className:o},e)))}function u({message:e}){let{t}=(0,i.useTranslation)();return r().createElement(l.Wdr,null,r().createElement(l.FAs,{className:c,"data-testid":"filter-empty-state"},r().createElement("p",{className:o},e),r().createElement("p",{className:"-esm-act__empty-state__helper___Uh5Sa"},t("checkFilters","Check the filters above"))))}},313(e,t,a){a.d(t,{J:()=>s});var n=a(4335),r=a.n(n),i=a(1943),l=a(3074);function s({id:e,label:t,value:a,options:n,onChange:c,optionLabel:o=e=>e}){let{t:d}=(0,i.useTranslation)();return r().createElement(l.l6P,{id:e,labelText:t,value:a,onChange:e=>c(e.target.value)},r().createElement(l.ebT,{value:"",text:d("all","All")}),[...n,...a&&!n.includes(a)?[a]:[]].map(e=>r().createElement(l.ebT,{key:e,value:e,text:o(e)})))}},4026(e,t,a){a.d(t,{C:()=>l});var n=a(4335),r=a(2909);let i=[10,25,50,100];function l(e,t){let[a,l]=(0,n.useState)(i[0]),{results:s,currentPage:c,goTo:o}=(0,r.usePagination)(e,a);return(0,n.useEffect)(()=>o(1),[t,o]),{results:s,paginationProps:{page:c,pageSize:a,pageSizes:i,totalItems:e.length,onChange:({page:e,pageSize:t})=>{l(t),o(e)}}}}},6932(e,t,a){a.d(t,{y:()=>l});var n=a(4335);function r(e){let t=new URLSearchParams(window.location.search);return Object.fromEntries(e.map(e=>[e,t.get(e)??""]))}let i=e=>{let t=new URLSearchParams(window.location.search);return e.every(e=>!t.has(e))};function l(e,t={}){let a="pending"!==t,s=e=>a?{...e,...t}:e,[c,o]=(0,n.useState)(()=>i(e)?s(r(e)):r(e)),d=(0,n.useRef)(!a&&i(e)),u=a?Object.keys(t):[];return(0,n.useEffect)(()=>{a&&d.current&&(d.current=!1,o(e=>({...e,...t})))},[a]),(0,n.useEffect)(()=>{if(!a)return;let t=setTimeout(()=>{let t=new URLSearchParams(window.location.search);e.forEach(e=>{c[e]?t.set(e,c[e]):u.includes(e)?t.set(e,""):t.delete(e)});let a=`${window.location.pathname}${t.size?`?${t}`:""}`;a!==`${window.location.pathname}${window.location.search}`&&window.history.replaceState(window.history.state,"",a)},300);return()=>clearTimeout(t)},[c,e,a]),(0,n.useEffect)(()=>{let t=()=>o(t=>{let a=i(e)?s(r(e)):r(e);return e.every(e=>t[e]===a[e])?t:a});return window.addEventListener("popstate",t),()=>window.removeEventListener("popstate",t)},[e,a]),[c,e=>o(t=>({...t,...e})),!a]}},4842(e,t,a){a.d(t,{U:()=>r,x:()=>i});var n=a(7343);function r(e,t,a){return e.map(e=>{let n=t.find(t=>t.concept===e.urgency_concept),r=n?.[a]??n?.label;return r?{...e,urgency:r}:e})}function i(e,t,a=new Date){return e.map(e=>{var r;let i,l=(r=e.date_added,(i=(0,n.S)(r))?Math.round((new Date(a.getFullYear(),a.getMonth(),a.getDate()).getTime()-i.getTime())/864e5):null),s=t.findIndex(t=>t.concept===e.urgency_concept),c=s>=0&&null!==l&&l>t[s].deadlineDays;return{row:e,daysPending:l,band:s>=0?s:t.length,overdue:c}}).sort((e,t)=>Number(t.overdue)-Number(e.overdue)||e.band-t.band||(t.daysPending??-1)-(e.daysPending??-1))}}}]);
1
+ "use strict";(globalThis.webpackChunk_act_registry_esm_act_app=globalThis.webpackChunk_act_registry_esm_act_app||[]).push([["725"],{6354(e,t,a){a.d(t,{r:()=>d});var r=a(4335),n=a.n(r),i=a(2909),l=a(7136),s=a(3335);let o="-esm-act__session-location-and-date__metaItem___ySkhg";function c(){let{sessionLocation:e}=(0,i.useSession)();return n().createElement("div",{className:"-esm-act__session-location-and-date__headerMeta___SmcbO"},e?.display&&n().createElement("span",{className:o},n().createElement(l.aZ,{size:16,"aria-hidden":"true"}),e.display),n().createElement("span",{className:o},n().createElement(s.Vv,{size:16,"aria-hidden":"true"}),(0,i.formatDate)(new Date,{time:!1,noToday:!0})))}function d({title:e,illustration:t,actions:a}){return n().createElement(i.PageHeader,{className:"-esm-act__act-page-header__header___n9hVL","data-testid":"act-page-header"},n().createElement(i.PageHeaderContent,{title:e,illustration:t}),n().createElement("div",{className:"-esm-act__act-page-header__actions___tt4QN"},a,n().createElement(c,null)))}},645(e,t,a){a.d(t,{X3:()=>u,fU:()=>d,h6:()=>c,o2:()=>s});var r=a(4335),n=a(3483),i=a.n(n),l=a(2909);let s="actcore.clinics",o=["cardiac_clinic","primary_care_clinic","facility"];function c(e){return[...new Set((e??"").split(",").map(e=>e.trim()).filter(Boolean))]}function d(){let{user:e}=(0,l.useSession)(),t=!!e&&((0,l.userHasAccess)("Edit Users",e)||(0,l.userHasAccess)("Add Users",e))&&!(0,l.userHasAccess)("Task: act.allClinics",e),a=(0,r.useMemo)(()=>t?c(e?.userProperties?.[s]):[],[t,e?.userProperties]),{data:n,error:o}=i()(t&&a.length?["act-clinic-limit",...a]:null,()=>Promise.all(a.map(e=>(0,l.openmrsFetch)(`${l.restBaseUrl}/location/${e}?v=custom:(display)`).then(({data:e})=>e.display))));return t?a.length?n||o?{status:"ready",uuids:a,names:n??[]}:{status:"pending"}:{status:"ready",uuids:a,names:[]}:{status:"none"}}function u(e,t){return"none"===t.status?e:"pending"===t.status?[]:e.filter(e=>{let a=o.filter(t=>t in e);return!a.length||a.some(a=>t.names.includes(String(e[a]??"")))})}},7928(e,t,a){a.d(t,{m:()=>n});var r=a(2909);async function n(e){let t=t=>(0,r.openmrsFetch)(`${e}&totalCount=true&startIndex=${t}`).then(({data:e})=>e),a=await t(0),n=a.results.length,i=[];for(let e=n;n&&e<a.totalCount;e+=n)i.push(e);return[a,...await Promise.all(i.map(t))].flatMap(e=>e.results)}},9342(e,t,a){a.d(t,{z:()=>r});let r=e=>`\${openmrsSpaBase}/patient/${e}/chart`},9771(e,t,a){a.d(t,{Bn:()=>o,eJ:()=>u,ml:()=>c,mo:()=>m,uF:()=>d});var r=a(351),n=a(7343),i=a(5430),l=a(6932);let s=["status","cardiac","primaryCare","category","prophylaxis","bpg","flag","q"],o={status:"enrollment_status",cardiac:"cardiac_clinic",primaryCare:"primary_care_clinic",category:"diagnosis_category",prophylaxis:"prophylaxis_regimen",bpg:"bpg_status"};function c(){let e;return(0,l.y)(s,"pending"===(e=(0,r.uu)())?"pending":{status:"Active",...e})}function d(e,t,a=new Date){let r=String(e.rhd_flag_dates??"").split("|").find(e=>e.slice(0,e.lastIndexOf("="))===t),i=r&&(0,n.S)(r.slice(r.lastIndexOf("=")+1));if(i)return Math.round((new Date(a.getFullYear(),a.getMonth(),a.getDate()).getTime()-i.getTime())/864e5)}function u(e){return String(e.rhd_flags??"").split("|").filter(Boolean)}function m(e,t){let a=t.q.trim().toLowerCase();return e.filter(e=>(0,i.$)(e,t,o)&&(!t.flag||u(e).includes(t.flag))&&(!a||[e.full_name,e.rhd_id,e.external_id].some(e=>String(e??"").toLowerCase().includes(a))))}},6388(e,t,a){a.r(t),a.d(t,{default:()=>K});var r=a(4335),n=a.n(r),i=a(1943),l=a(3074),s=a(2909),o=a(6354),c=a(9342),d=a(4562),u=a(2199),m=a(7343),_=a(5802),g=a(313),p=a(5430),y=a(4026),h=a(9771);function f({value:e}){let{t}=(0,i.useTranslation)(),a=Math.min(100,Math.max(0,Math.round(e)));return n().createElement("svg",{className:"-esm-act__adherence-ring__ring___7WJqB",viewBox:"0 0 40 40",role:"img","aria-label":t("adherencePercent","Adherence {{percent}}%",{percent:a})},n().createElement("circle",{className:"-esm-act__adherence-ring__track___Evluf",cx:"20",cy:"20",r:17}),n().createElement("circle",{className:"-esm-act__adherence-ring__arc___n8w59","data-testid":"adherence-arc",cx:"20",cy:"20",r:17,pathLength:"100",strokeDasharray:`${a} ${100-a}`,transform:"rotate(-90 20 20)"}),n().createElement("text",{className:"-esm-act__adherence-ring__value___RA+et",x:"20",y:"20",textAnchor:"middle",dominantBaseline:"central"},a,"%"))}let v={registry:"-esm-act__registry__registry___t-3fa",description:"-esm-act__registry__description___KKWmG",row:"-esm-act__registry__row___OCXaa",message:"-esm-act__registry__message___Qg9wn",filters:"-esm-act__registry__filters___jwuzk",noPrescription:"-esm-act__registry__noPrescription___E0Jw4",dataQuality:"-esm-act__registry__dataQuality___OvBE3",name:"-esm-act__registry__name___1ew9+",actId:"-esm-act__registry__actId___cxCAm",flagsTooltip:"-esm-act__registry__flagsTooltip___q7wxr",actions:"-esm-act__registry__actions___2mcxV",notConsented:"-esm-act__registry__notConsented___IptYv",inactive:"-esm-act__registry__inactive___dZBFf",legend:"-esm-act__registry__legend___WUM0a",details:"-esm-act__registry__details___61PQW",detailFields:"-esm-act__registry__detailFields___QB8H7",detailLabel:"-esm-act__registry__detailLabel___Q5OLO",overdue:"-esm-act__registry__overdue___vdGcq"},E=["Covered","Deadline approaching","Not covered","No prescription","Oral"];function w(){let{t:e}=(0,i.useTranslation)();return t=>({Covered:e("covered","Covered"),"Deadline approaching":e("dueWithinSevenDays","Due within 7 days"),"Not covered":e("notCovered","Not covered"),"No prescription":e("noPrescription","No prescription"),Oral:e("onOral","On oral")})[t]??t}let C={Covered:"green","Deadline approaching":"blue","Not covered":"red","No prescription":"warm-gray",Oral:"gray"};function b({row:e}){let{t}=(0,i.useTranslation)(),a=w(),r=String(e.bpg_status??"");if(!(r in C))return null;let s=null==e.days_until_due?null:Number(e.days_until_due),o="Deadline approaching"!==r||null==s?a(r):0===s?t("dueToday","Due today"):1===s?t("dueInOneDay","Due in 1 day"):t("dueInDays","Due in {{days}} days",{days:s});return n().createElement(l.vwO,{as:"span","data-testid":"bpg-status",type:C[r],className:"No prescription"===r?v.noPrescription:void 0,size:"sm"},o)}let N="bottom-end",x={risk:"red",earlyWarning:"blue",dataQuality:"warm-gray"};function S({priority:e,children:t}){return n().createElement(l.vwO,{as:"span","data-testid":"registry-flag","data-priority":e,type:x[e],className:v[e],size:"sm"},t)}function D({flags:e,rowsBelow:t}){let{t:a}=(0,i.useTranslation)(),r=(0,s.isDesktop)((0,s.useLayoutType)());if(0===e.length||1===e.length&&void 0===e[0].days)return e.map(e=>n().createElement(S,{key:e.flagName,priority:e.priority},e.flagName));let o=1===e.length?e[0].flagName:a("flagCount","{{number}} flags",{number:e.length}),c=e.map(e=>void 0===e.days?e.flagName:a("flagOpenDays","{{flag}} ({{count}} days)",{flag:e.flagName,count:e.days})).join(", "),u=n().createElement(S,{priority:(0,d.TK)(e)},o),m=t<=e.length;return r?n().createElement(l.lrh,{className:v.flagsTooltip,align:N,autoAlign:m,openOnHover:!0,definition:c},u):n().createElement(l.Gff,{align:N,autoAlign:m},n().createElement(l.yvu,{label:o},u),n().createElement(l.pNg,null,c))}var T=a(8267),k=a(4842);function P(e){let t=new Date,a=new Date(t.getFullYear(),t.getMonth(),t.getDate());return Math.round((e.getTime()-a.getTime())/864e5)}let $=e=>(0,s.formatDate)(e,{time:!1,noToday:!0});function A({row:e}){let{t}=(0,i.useTranslation)(),{waitingList:a,urgencyBands:l}=(0,s.useConfig)(),{rows:o}=(0,T.y)(a.report),c=(0,r.useMemo)(()=>(0,k.x)(o.filter(t=>t.patient_uuid===e.patient_uuid),l),[o,l,e.patient_uuid]),d=t("none","None"),u=(0,m.S)(e.next_consultation_date),_=(0,m.S)(e.last_injection_date),g=(0,m.S)(e.next_due_date),p=[{id:"cardiac-clinic",label:t("cardiacClinic","Cardiac clinic"),value:String(e.cardiac_clinic??d)},{id:"primary-care-clinic",label:t("primaryCareClinic","Primary care clinic"),value:String(e.primary_care_clinic??d)},{id:"next-consultation",label:t("nextConsultation","Next consultation"),value:u?$(u):d,overdue:null!=u&&0>P(u)},{id:"last-injection",label:t("lastInjection","Last injection"),value:_?t("dateDaysAgo","{{date}} ({{days}} days ago)",{date:$(_),days:-P(_)}):d},{id:"injection-due",label:t("injectionDue","Injection due"),value:g?$(g):d,overdue:null!=g&&0>P(g)}];return n().createElement("div",{className:v.details},n().createElement("dl",{className:v.detailFields},p.map(e=>n().createElement("div",{key:e.id},n().createElement("dt",{className:v.detailLabel},e.label),n().createElement("dd",{"data-testid":`registry-${e.id}`,"data-overdue":String(!!e.overdue),className:e.overdue?v.overdue:void 0},e.value)))),n().createElement("div",null,n().createElement("h4",{className:v.detailLabel},t("interventions","Interventions")),c.length?n().createElement("ul",{"data-testid":"registry-interventions"},c.map(({row:e,daysPending:a,band:r,overdue:i})=>{let s=l[r]?.deadlineDays,o=String(e.procedure_name??e.procedure_type??""),c=null==s||null==a?"":i?t("daysOverdue","{{days}} days overdue",{days:a-s}):t("dueInDays","Due in {{days}} days",{days:s-a});return n().createElement("li",{key:String(e.recommendation_uuid),"data-overdue":String(i),className:i?v.overdue:void 0},c?`${o}: ${c}`:o)})):n().createElement("p",null,d)))}var I=a(6511),L=a(351);let O=e=>null==e||""===e?null:Number(e),U=e=>"string"==typeof e&&e?e.slice(0,10):null,j={name:e=>null==e.full_name?null:String(e.full_name),age:e=>O(e.age_years),bpg:e=>O(e.days_until_due),adherence:e=>O(e.adherence),lastUpdated:e=>U(e.last_updated),procedureDue:e=>U(e.earliest_procedure_due)};var B=a(7541);let F=e=>(0,c.z)(e.patient_uuid);function M(e){let t=(0,m.S)(e.next_consultation_date);return t?(0,s.formatDate)(t,{time:!1,noToday:!0}):""}function R(e){let t=(0,m.S)(e);return t?(0,s.formatDate)(t,{time:!1,noToday:!0}):""}function z(){let{t:e}=(0,i.useTranslation)(),{registry:t,flagLists:a}=(0,s.useConfig)(),o=(0,s.isDesktop)((0,s.useLayoutType)()),{rows:c,isLoading:m,error:C}=(0,I.PL)(),[N,x,S]=(0,h.ml)(),T=(0,L.CQ)(),k="ready"===T.status?T.kind:"none",P=(0,r.useMemo)(()=>new Set(({primaryCare:["status","primaryCare","category","prophylaxis","flag"],cardiac:["status","cardiac","primaryCare","category","bpg"],none:["status","cardiac","primaryCare","category","bpg","flag"]})[k].filter(e=>"bpg"!==e||t.showBpgColumns)),[k,t.showBpgColumns]),$=(0,r.useMemo)(()=>(0,h.mo)(c,Object.fromEntries(Object.entries(N).map(([e,t])=>[e,"q"===e||P.has(e)?t:""]))),[c,N,P]),[O,U]=(0,r.useState)(null),z=(0,r.useMemo)(()=>(function(e,t){if(!t)return e;let a=j[t.key],r="ASC"===t.direction?1:-1;return[...e].sort((e,t)=>{let[n,i]=[a(e),a(t)];return null==n||null==i?Number(null==n)-Number(null==i):r*("string"==typeof n?n.localeCompare(String(i)):n-Number(i))})})($,O),[$,O]),{results:K,paginationProps:Q}=(0,y.C)(z,N),[W,Y]=(0,r.useState)(new Set),H=w(),q=(e,t)=>n().createElement(g.J,{id:`registry-${e}`,label:t,value:N[e],options:(0,p.V)(c,h.Bn[e]),onChange:t=>x({[e]:t})}),J=e=>(0,h.eJ)(e).filter(e=>(0,d._h)(a,e)).map(t=>({flagName:t,priority:(0,d.nO)(a,t),days:(0,h.uF)(e,t)})),G=[...new Set(c.flatMap(e=>J(e).map(e=>e.flagName)))].sort(),V=e=>t=>String(t[e]??""),X=[{header:e("name","Name"),text:V("full_name")},{header:e("actId","ACT ID"),text:V("rhd_id")},{header:e("alternateId","Alternate ID"),text:V("external_id")},{header:e("nationalId","National ID"),text:V("national_id")},{header:e("age","Age"),text:V("age_years")},{header:e("sex","Sex"),text:V("sex")},{header:e("diagnosisCategory","Diagnosis category"),text:V("diagnosis_category")},{header:e("diagnosisDetails","Diagnosis details"),text:V("diagnosis_details")},{header:e("prophylaxisRegimen","Prophylaxis regimen"),text:V("prophylaxis_regimen")},{header:e("nextConsultation","Next consultation"),text:M},{header:e("cardiacClinic","Cardiac clinic"),text:V("cardiac_clinic")},{header:e("primaryCareClinic","Primary care clinic"),text:V("primary_care_clinic")},{header:e("consentGiven","Consent given"),text:V("consent_given")},{header:e("lastInjection","Last injection"),text:V("last_injection_date")},{header:e("injectionDue","Injection due"),text:V("next_due_date")},...t.showBpgColumns?[{header:e("bpgStatus","BPG status"),text:V("bpg_status")},{header:e("adherence","Adherence"),text:e=>null==e.adherence?"":`${e.adherence}%`}]:[],{header:e("lastUpdated","Last updated"),text:e=>R(e.last_updated)},{header:e("procedureDue","Procedure due"),text:e=>R(e.earliest_procedure_due)},{header:e("flags","Flags"),text:e=>J(e).map(e=>e.flagName).join("; ")}],Z=[{header:e("patient","Patient"),sortKey:"name",render:t=>n().createElement(n().Fragment,null,n().createElement(s.ConfigurableLink,{to:F(t),className:v.name},V("full_name")(t)),"Yes"!==t.consent_given&&n().createElement("span",{className:v.notConsented,title:e("notConsented","Not consented")},"*"),"Completed"===t.enrollment_status&&n().createElement(l.vwO,{as:"span",type:"gray",size:"sm",className:v.inactive},e("inactive","Inactive")),n().createElement("span",{className:v.actId},V("rhd_id")(t)))},{header:e("ageSex","Age, sex"),sortKey:"age",render:e=>[V("age_years")(e),V("sex")(e)].filter(Boolean).join(" ")},{header:e("diagnosis","Diagnosis"),render:u.C},{header:e("prophylaxis","Prophylaxis"),render:V("prophylaxis_regimen")},...t.showBpgColumns?[{header:e("bpgStatus","BPG status"),sortKey:"bpg",render:e=>n().createElement(b,{row:e})},{header:e("adherence","Adherence"),sortKey:"adherence",render:e=>null==e.adherence?null:n().createElement(f,{value:Number(e.adherence)})}]:[],{header:e("lastUpdated","Last updated"),sortKey:"lastUpdated",render:e=>R(e.last_updated)},{header:e("procedureDue","Procedure due"),sortKey:"procedureDue",render:e=>R(e.earliest_procedure_due)},{header:e("flags","Flags"),render:(e,t)=>n().createElement(D,{flags:J(e),rowsBelow:K.length-1-t})}];return C||"error"===T.status?n().createElement(l.jeF,{kind:"error",lowContrast:!0,hideCloseButton:!0,title:e("couldNotLoadRegistry","Could not load the registry")}):m||S?n().createElement(l.OOb,{role:"progressbar",columnCount:Z.length,rowCount:Q.pageSize,compact:o,zebra:!0,showHeader:!1,showToolbar:!1}):c.length?n().createElement(n().Fragment,null,n().createElement("div",{className:v.filters},n().createElement(l.vji,{labelText:e("searchRegistryWithAlternateId","Search by name, ACT ID or alternate ID"),placeholder:e("searchRegistryWithAlternateId","Search by name, ACT ID or alternate ID"),value:N.q,onChange:e=>x({q:e.target.value})}),q("status",e("status","Status")),P.has("cardiac")&&q("cardiac",e("cardiacClinic","Cardiac clinic")),q("primaryCare",e("primaryCareClinic","Primary care clinic")),q("category",e("categoryAtDiagnosis","Category at diagnosis")),P.has("prophylaxis")&&q("prophylaxis",e("prophylaxis","Prophylaxis")),P.has("bpg")&&n().createElement(g.J,{id:"registry-bpg",label:e("bpgStatus","BPG status"),value:N.bpg,options:E,optionLabel:H,onChange:e=>x({bpg:e})}),P.has("flag")&&n().createElement(g.J,{id:"registry-flag",label:e("rhdFlag","RHD flag"),value:N.flag,options:G,onChange:e=>x({flag:e})})),n().createElement("div",{className:v.actions},n().createElement(_.F,{name:"registry",headers:X.map(e=>e.header),rows:()=>$.map(e=>X.map(t=>t.text(e))),disabled:!$.length})),$.length?n().createElement(n().Fragment,null,n().createElement("p",{className:v.legend},e("notConsentedLegend","Patients marked with * have not consented to the registry")),n().createElement(l.XIK,{size:o?"sm":"lg",useZebraStyles:!0},n().createElement(l.ndF,null,n().createElement(l.Hjg,null,n().createElement(l.Uwq,{"aria-label":e("details","Details")}),Z.map(e=>e.sortKey?n().createElement(l.A0N,{key:e.header,isSortable:!0,sortDirection:O?.key===e.sortKey?O.direction:"NONE",onClick:()=>{var t;return U((t=e.sortKey,O?.key!==t?{key:t,direction:"ASC"}:"ASC"===O.direction?{key:t,direction:"DESC"}:null))}},e.header):n().createElement(l.A0N,{key:e.header},e.header)))),n().createElement(l.BFY,null,K.map((t,a)=>n().createElement(n().Fragment,{key:String(t.patient_uuid)},n().createElement(l.fZD,{"aria-label":e("details","Details"),isExpanded:W.has(t.patient_uuid),onExpand:()=>{let e;return e=t.patient_uuid,Y(t=>{let a=new Set(t);return a.delete(e)||a.add(e),a})},className:v.row,...{onClick:e=>e.target.closest("a, button, .cds--popover-container")||(0,s.navigate)({to:F(t)})}},Z.map(e=>n().createElement(l.nA6,{key:e.header},e.render(t,a)))),W.has(t.patient_uuid)&&n().createElement(l.cwJ,{colSpan:Z.length+1},n().createElement(A,{row:t}))))))):n().createElement(B.n,{message:e("noRegistryMatches","No patients to display")}),$.length>0&&n().createElement(l.dKS,Q)):n().createElement(B.D,{message:e("noRegistryPatients","There are no registry patients to display")})}function K(){let{t:e}=(0,i.useTranslation)(),t=(0,L.CQ)(),a="ready"===t.status?t.clinic?.name:null;return n().createElement(n().Fragment,null,n().createElement(o.r,{title:e("registry","Registry"),illustration:n().createElement(s.PatientListsPictogram,null)}),n().createElement("div",{className:v.registry},n().createElement("p",{className:v.description},a?e("registryDescriptionAt","Patients enrolled in the RHD Registry programme at {{clinic}}",{clinic:a}):e("registryDescription","Patients enrolled in the RHD Registry programme")),n().createElement(z,null)))}},6511(e,t,a){a.d(t,{PL:()=>c,bW:()=>u,eb:()=>m,hY:()=>d});var r=a(4335),n=a(8406),i=a.n(n),l=a(2909),s=a(8267),o=a(351);function c(e=!0){let{registry:t}=(0,l.useConfig)(),a=(0,r.useMemo)(()=>({startDate:"1900-01-01",endDate:i()().format("YYYY-MM-DD")}),[]);return(0,s.y)(e?t.report:null,a)}let d=e=>"Active"===e.enrollment_status&&!0!==e.deceased&&1!==Number(e.deceased),u=["cardiac_clinic","primary_care_clinic"];function m(e,t){let a=(0,o.CQ)(),{status:n}=a,i="ready"===n?a.column:null,l="ready"===n?a.clinic?.name:null,s=!!i&&!t.includes(i),d=c(s);return{rows:(0,r.useMemo)(()=>{if("ready"!==n)return[];if(!i)return e.rows;let t=new Map(d.rows.map(e=>[String(e.patient_uuid),e]));return e.rows.filter(e=>{let a=s?t.get(String(e.patient_uuid)):e;return String(a?.[i]??"")===l})},[n,i,l,s,e.rows,d.rows]),isLoading:e.isLoading||"pending"===n||s&&d.isLoading,error:e.error??("error"===n?Error("The session location could not be read"):void 0)??(s?d.error:void 0)}}},2199(e,t,a){a.d(t,{C:()=>r});function r(e){return String(e.diagnosis_details||e.diagnosis_category||"")}},8267(e,t,a){a.d(t,{y:()=>m});var r=a(4335),n=a(3483),i=a.n(n),l=a(2909),s=a(645);let o=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;var c=a(7928);async function d(e){let t=(await (0,c.m)(`${l.restBaseUrl}/reportingrest/reportDefinition?q=${encodeURIComponent(e)}&v=custom:(uuid,name)`)).find(t=>t.name===e);if(!t)throw Error(`No report is named "${e}"`);return t.uuid}async function u(e,t){let a=o.test(e)?e:await d(e),{data:r}=await (0,l.openmrsFetch)(`${l.restBaseUrl}/reportingrest/reportdata/${a}?${new URLSearchParams(t)}`);return r.dataSets[0]}function m(e,t={}){let{data:a,error:n,isLoading:l,mutate:o}=i()(e?["rhd-report-dataset",e,t]:null,()=>u(e,t),{shouldRetryOnError:!1}),c=(0,s.fU)(),d=(0,r.useMemo)(()=>(0,s.X3)(a?.rows??[],c),[a?.rows,c]);return{columns:a?.metadata.columns??[],rows:d,isLoading:l||!!e&&"pending"===c.status,error:n,mutate:o}}},7343(e,t,a){a.d(t,{S:()=>r});function r(e){if(Array.isArray(e)&&e.length>=3){let[t,a,r]=e.map(Number);return new Date(t,a-1,r)}let t="string"==typeof e?e.match(/^(\d{4})-(\d{2})-(\d{2})/):null;return t?new Date(Number(t[1]),Number(t[2])-1,Number(t[3])):null}},4562(e,t,a){a.d(t,{TK:()=>d,U$:()=>u,_h:()=>o,nO:()=>c});var r=a(3483),n=a.n(r),i=a(2909),l=a(7928);let s=["risk","earlyWarning","dataQuality"];function o({names:e,namePrefix:t},a){return e.length?e.includes(a):a.startsWith(t)}function c({riskFlags:e,earlyWarningFlags:t},a){return e.includes(a)?"risk":t.includes(a)?"earlyWarning":"dataQuality"}function d(e){return s.find(t=>e.some(e=>e.priority===t))??"dataQuality"}function u(e){let{data:t,error:a,isLoading:r}=n()(e?["rhd-flag-list",e]:null,async()=>{let t=(await (0,l.m)(`${i.restBaseUrl}/cohort?q=${encodeURIComponent(e)}&v=custom:(uuid,name,voided)`).then(e=>e.filter(e=>!e.voided))).find(t=>t.name===e);return t?{cohortUuid:t.uuid}:null},{revalidateIfStale:!1});return{list:t??null,isLoading:r,error:a}}},351(e,t,a){a.d(t,{CQ:()=>s,_X:()=>l,uu:()=>o});var r=a(3483),n=a.n(r),i=a(2909);function l(){let{clinicLocationTags:e}=(0,i.useConfig)(),{sessionLocation:t}=(0,i.useSession)(),{data:a,error:r}=n()(t?.uuid?`${i.restBaseUrl}/location/${t.uuid}?v=custom:(tags:(display))`:null,i.openmrsFetch);if(!t?.uuid)return"none";if(!a)return r?"error":"pending";let l=a.data?.tags?.map(e=>e.display)??[];return l.some(t=>e.cardiac.includes(t))?"cardiac":l.some(t=>e.primaryCare.includes(t))?"primaryCare":"none"}function s(){let{sessionLocation:e}=(0,i.useSession)(),t=l();return"pending"===t||"error"===t?{status:t}:"none"===t?{status:"ready",kind:t,clinic:null,column:null}:{status:"ready",kind:t,clinic:{uuid:e.uuid,name:e.display},column:"cardiac"===t?"cardiac_clinic":"primary_care_clinic"}}function o(){let e=s();return"pending"===e.status?"pending":"ready"===e.status&&e.clinic?{["cardiac"===e.kind?"cardiac":"primaryCare"]:e.clinic.name}:{}}},3531(e,t,a){function r(e){let t=/^[=+\-@\t\r]/.test(e)?`'${e}`:e;return/[",\r\n]/.test(t)?`"${t.replace(/"/g,'""')}"`:t}function n(e,t,a){let n=[t,...a].map(e=>e.map(r).join(",")).join("\r\n")+"\r\n",i=URL.createObjectURL(new Blob([n],{type:"text/csv;charset=utf-8"})),l=document.createElement("a");l.href=i,l.download=e,l.click(),URL.revokeObjectURL(i)}a.d(t,{t:()=>n})},5430(e,t,a){function r(e,t){return[...new Set(e.map(e=>e[t]).filter(Boolean).map(String))].sort()}function n(e,t,a){return Object.keys(a).every(r=>!t[r]||String(e[a[r]]??"")===t[r])}a.d(t,{$:()=>n,V:()=>r})},5802(e,t,a){a.d(t,{F:()=>_});var r=a(4335),n=a.n(r),i=a(8406),l=a.n(i),s=a(1943),o=a(3074),c=a(771),d=a(2909),u=a(7003),m=a(3531);function _({name:e,headers:t,rows:a,disabled:r,size:i="sm"}){let{t:g}=(0,s.useTranslation)();return n().createElement(d.UserHasAccess,{privilege:u.z$},n().createElement(o.$nd,{kind:"tertiary",size:i,renderIcon:c.f5,disabled:r,onClick:()=>(0,m.t)(`${e}-${l()().format("YYYY-MM-DD")}.csv`,t,a())},g("downloadCsv","Download CSV")))}},7541(e,t,a){a.d(t,{n:()=>u,D:()=>d});var r=a(4335),n=a.n(r),i=a(1943),l=a(3074),s=a(2909);let o="-esm-act__empty-state__tile___WjkRq",c="-esm-act__empty-state__content___SZy3C";function d({message:e}){return n().createElement(l.Wdr,null,n().createElement(l.FAs,{className:o,"data-testid":"table-empty-state"},n().createElement(s.EmptyCardIllustration,null),n().createElement("p",{className:c},e)))}function u({message:e}){let{t}=(0,i.useTranslation)();return n().createElement(l.Wdr,null,n().createElement(l.FAs,{className:o,"data-testid":"filter-empty-state"},n().createElement("p",{className:c},e),n().createElement("p",{className:"-esm-act__empty-state__helper___Uh5Sa"},t("checkFilters","Check the filters above"))))}},313(e,t,a){a.d(t,{J:()=>s});var r=a(4335),n=a.n(r),i=a(1943),l=a(3074);function s({id:e,label:t,value:a,options:r,onChange:o,optionLabel:c=e=>e}){let{t:d}=(0,i.useTranslation)();return n().createElement(l.l6P,{id:e,labelText:t,value:a,onChange:e=>o(e.target.value)},n().createElement(l.ebT,{value:"",text:d("all","All")}),[...r,...a&&!r.includes(a)?[a]:[]].map(e=>n().createElement(l.ebT,{key:e,value:e,text:c(e)})))}},4026(e,t,a){a.d(t,{C:()=>l});var r=a(4335),n=a(2909);let i=[10,25,50,100];function l(e,t){let[a,l]=(0,r.useState)(i[0]),{results:s,currentPage:o,goTo:c}=(0,n.usePagination)(e,a);return(0,r.useEffect)(()=>c(1),[t,c]),{results:s,paginationProps:{page:o,pageSize:a,pageSizes:i,totalItems:e.length,onChange:({page:e,pageSize:t})=>{l(t),c(e)}}}}},6932(e,t,a){a.d(t,{y:()=>l});var r=a(4335);function n(e){let t=new URLSearchParams(window.location.search);return Object.fromEntries(e.map(e=>[e,t.get(e)??""]))}let i=e=>{let t=new URLSearchParams(window.location.search);return e.every(e=>!t.has(e))};function l(e,t={}){let a="pending"!==t,s=e=>a?{...e,...t}:e,[o,c]=(0,r.useState)(()=>i(e)?s(n(e)):n(e)),d=(0,r.useRef)(!a&&i(e)),u=a?Object.keys(t):[];return(0,r.useEffect)(()=>{a&&d.current&&(d.current=!1,c(e=>({...e,...t})))},[a]),(0,r.useEffect)(()=>{if(!a)return;let t=setTimeout(()=>{let t=new URLSearchParams(window.location.search);e.forEach(e=>{o[e]?t.set(e,o[e]):u.includes(e)?t.set(e,""):t.delete(e)});let a=`${window.location.pathname}${t.size?`?${t}`:""}`;a!==`${window.location.pathname}${window.location.search}`&&window.history.replaceState(window.history.state,"",a)},300);return()=>clearTimeout(t)},[o,e,a]),(0,r.useEffect)(()=>{let t=()=>c(t=>{let a=i(e)?s(n(e)):n(e);return e.every(e=>t[e]===a[e])?t:a});return window.addEventListener("popstate",t),()=>window.removeEventListener("popstate",t)},[e,a]),[o,e=>c(t=>({...t,...e})),!a]}},4842(e,t,a){a.d(t,{U:()=>n,x:()=>i});var r=a(7343);function n(e,t,a){return e.map(e=>{let r=t.find(t=>t.concept===e.urgency_concept),n=r?.[a]??r?.label;return n?{...e,urgency:n}:e})}function i(e,t,a=new Date){return e.map(e=>{var n;let i,l=(n=e.date_added,(i=(0,r.S)(n))?Math.round((new Date(a.getFullYear(),a.getMonth(),a.getDate()).getTime()-i.getTime())/864e5):null),s=t.findIndex(t=>t.concept===e.urgency_concept),o=s>=0&&null!==l&&l>t[s].deadlineDays;return{row:e,daysPending:l,band:s>=0?s:t.length,overdue:o}}).sort((e,t)=>Number(t.overdue)-Number(e.overdue)||e.band-t.band||(t.daysPending??-1)-(e.daysPending??-1))}}}]);