@act-registry/esm-act-app 1.0.1-pre.660 → 1.0.1-pre.663
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/1067.css +1 -1
- package/dist/1067.css.map +1 -1
- package/dist/1067.js +1 -1
- package/dist/1067.js.map +1 -1
- package/dist/1796.js +1 -1
- package/dist/1796.js.map +1 -1
- package/dist/5117.js +1 -1
- package/dist/5117.js.map +1 -1
- package/dist/5416.css +1 -1
- package/dist/5416.css.map +1 -1
- package/dist/5416.js +1 -1
- package/dist/5416.js.map +1 -1
- package/dist/5719.css +1 -1
- package/dist/5719.css.map +1 -1
- package/dist/5719.js +1 -1
- package/dist/5719.js.map +1 -1
- package/dist/7173.js +1 -1
- package/dist/7173.js.map +1 -1
- package/dist/85.css.map +1 -0
- package/dist/85.js +1 -0
- package/dist/85.js.map +1 -0
- package/dist/act-registry-esm-act-app.js +2 -2
- package/dist/act-registry-esm-act-app.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/users/user-form.workspace.test.tsx +22 -0
- package/src/users/users.component.tsx +99 -5
- package/src/users/users.resource.ts +16 -2
- package/src/users/users.scss +41 -0
- package/src/users/users.test-helper.ts +17 -3
- package/src/users/users.test.tsx +54 -5
- package/translations/en.json +9 -0
- package/dist/6020.css.map +0 -1
- package/dist/6020.js +0 -1
- package/dist/6020.js.map +0 -1
- /package/dist/{6020.css → 85.css} +0 -0
package/dist/1067.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.-esm-act__form-workspace__form___KL7Wr{flex-direction:column;justify-content:space-between;height:100%;display:flex}.-esm-act__form-workspace__fields___KQT-e{padding:1rem}.-esm-act__form-workspace__button___D3iM5{align-content:flex-start;align-items:baseline;min-width:50%;height:4rem;display:flex}:root{--brand-01:#005d5d;--brand-02:#004144;--brand-03:#007d79;--bottom-nav-height:4rem;--workspace-header-height:3rem;--tablet-workspace-window-height:calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height:calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-act__users__page___EX4Pf{grid-template-columns:minmax(0,1fr);display:grid}.-esm-act__users__content___muNb3{grid-template-columns:minmax(0,1fr);gap:1rem;padding:2rem 2rem 3rem;display:grid}.-esm-act__users__toolbar___nASZX{flex-wrap:wrap;align-items:center;gap:1rem;display:flex}.-esm-act__users__toolbar___nASZX>:first-child{flex:18rem}.-esm-act__users__tableContainer___AZQa0{overflow-x:auto}.-esm-act__users__withPanel___umJCS{grid-template-columns:minmax(0,1fr) minmax(20rem,26rem);align-items:start;gap:1rem;display:grid}.-esm-act__users__actions___xeidj{white-space:nowrap;text-align:right}.-esm-act__users__form___8-jBp{gap:1rem;display:grid}.-esm-act__users__pair___l5c0w{grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));gap:1rem;display:grid}.-esm-act__users__choices___57ZMO{grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));gap:.25rem 1rem;display:grid}.-esm-act__users__legend___ilSdj{font-size:var(--cds-label-01-font-size,.75rem);font-weight:var(--cds-label-01-font-weight,400);line-height:var(--cds-label-01-line-height,1.33333);letter-spacing:var(--cds-label-01-letter-spacing,.32px);color:#525252;grid-column:1/-1;margin-bottom:.5rem}.-esm-act__users__helper___dtL7f{font-size:var(--cds-helper-text-01-font-size,.75rem);line-height:var(--cds-helper-text-01-line-height,1.33333);letter-spacing:var(--cds-helper-text-01-letter-spacing,.32px);color:#525252;grid-column:1/-1}.-esm-act__users__invalid___vOiHq{font-size:var(--cds-helper-text-01-font-size,.75rem);line-height:var(--cds-helper-text-01-line-height,1.33333);letter-spacing:var(--cds-helper-text-01-letter-spacing,.32px);color:#da1e28;grid-column:1/-1}
|
|
1
|
+
.-esm-act__form-workspace__form___KL7Wr{flex-direction:column;justify-content:space-between;height:100%;display:flex}.-esm-act__form-workspace__fields___KQT-e{padding:1rem}.-esm-act__form-workspace__button___D3iM5{align-content:flex-start;align-items:baseline;min-width:50%;height:4rem;display:flex}:root{--brand-01:#005d5d;--brand-02:#004144;--brand-03:#007d79;--bottom-nav-height:4rem;--workspace-header-height:3rem;--tablet-workspace-window-height:calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height:calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-act__users__page___EX4Pf{grid-template-columns:minmax(0,1fr);display:grid}.-esm-act__users__content___muNb3{grid-template-columns:minmax(0,1fr);gap:1rem;padding:2rem 2rem 3rem;display:grid}.-esm-act__users__figures___sw\+vH{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;display:grid}@media (width<=600px){.-esm-act__users__figures___sw\+vH{grid-template-columns:minmax(0,1fr)}}.-esm-act__users__figureButton___rz6m\+{color:inherit;font:inherit;text-align:start;cursor:pointer;background:0 0;border:none;padding:0;display:block}.-esm-act__users__figureButton___rz6m\+>*{height:100%}.-esm-act__users__figureButton___rz6m\+:focus-visible>*{outline:2px solid var(--brand-03);outline-offset:-2px}.-esm-act__users__figureButton___rz6m\+:hover>*{background-color:#e0e0e0}.-esm-act__users__pressed___gKMF5{border-color:#005d5d;border-color:var(--brand-01);box-shadow:inset 0 0 0 1px var(--brand-01);background-color:#fff}.-esm-act__users__toolbar___nASZX{flex-wrap:wrap;align-items:center;gap:1rem;display:flex}.-esm-act__users__toolbar___nASZX>:first-child{flex:18rem}.-esm-act__users__tableContainer___AZQa0{overflow-x:auto}.-esm-act__users__withPanel___umJCS{grid-template-columns:minmax(0,1fr) minmax(20rem,26rem);align-items:start;gap:1rem;display:grid}.-esm-act__users__actions___xeidj{white-space:nowrap;text-align:right}.-esm-act__users__form___8-jBp{gap:1rem;display:grid}.-esm-act__users__pair___l5c0w{grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));gap:1rem;display:grid}.-esm-act__users__choices___57ZMO{grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));gap:.25rem 1rem;display:grid}.-esm-act__users__legend___ilSdj{font-size:var(--cds-label-01-font-size,.75rem);font-weight:var(--cds-label-01-font-weight,400);line-height:var(--cds-label-01-line-height,1.33333);letter-spacing:var(--cds-label-01-letter-spacing,.32px);color:#525252;grid-column:1/-1;margin-bottom:.5rem}.-esm-act__users__helper___dtL7f{font-size:var(--cds-helper-text-01-font-size,.75rem);line-height:var(--cds-helper-text-01-line-height,1.33333);letter-spacing:var(--cds-helper-text-01-letter-spacing,.32px);color:#525252;grid-column:1/-1}.-esm-act__users__invalid___vOiHq{font-size:var(--cds-helper-text-01-font-size,.75rem);line-height:var(--cds-helper-text-01-line-height,1.33333);letter-spacing:var(--cds-helper-text-01-letter-spacing,.32px);color:#da1e28;grid-column:1/-1}
|
package/dist/1067.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1067.css","sources":["webpack://@act-registry/esm-act-app/./src/styles/form-workspace.scss","webpack://@act-registry/esm-act-app/./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://@act-registry/esm-act-app/./src/users/users.scss"],"names":[],"mappings":"AAEA,qHAOA,uDAIA,+HCyCA,
|
|
1
|
+
{"version":3,"file":"1067.css","sources":["webpack://@act-registry/esm-act-app/./src/styles/form-workspace.scss","webpack://@act-registry/esm-act-app/./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://@act-registry/esm-act-app/./src/users/users.scss"],"names":[],"mappings":"AAEA,qHAOA,uDAIA,+HCyCA,sUCjDA,gFAKA,mHAOA,uGAKE,sBALF,wEAWA,sJAUE,sDAIA,8GAIA,yEAKF,qJAMA,0FAME,0DAKF,yDAKA,oIAOA,sEAKA,qDAKA,8GAMA,wHAMA,+RAOA,6OAMA"}
|
package/dist/1067.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_act_registry_esm_act_app=globalThis.webpackChunk_act_registry_esm_act_app||[]).push([["1067"],{3685(e,s,a){a.d(s,{A:()=>r});let r={form:"-esm-act__form-workspace__form___KL7Wr",fields:"-esm-act__form-workspace__fields___KQT-e",button:"-esm-act__form-workspace__button___D3iM5"}},171(e,s,a){a.d(s,{A:()=>r});let r={page:"-esm-act__users__page___EX4Pf",content:"-esm-act__users__content___muNb3",toolbar:"-esm-act__users__toolbar___nASZX",tableContainer:"-esm-act__users__tableContainer___AZQa0",withPanel:"-esm-act__users__withPanel___umJCS",actions:"-esm-act__users__actions___xeidj",form:"-esm-act__users__form___8-jBp",pair:"-esm-act__users__pair___l5c0w",choices:"-esm-act__users__choices___57ZMO",legend:"-esm-act__users__legend___ilSdj",helper:"-esm-act__users__helper___dtL7f",invalid:"-esm-act__users__invalid___vOiHq"}},7788(e,s,a){a.d(s,{X3:()=>c,fU:()=>u,h6:()=>d,o2:()=>o});var r=a(4335),n=a(3483),i=a.n(n),t=a(6144);let o="actcore.clinics",l=["cardiac_clinic","primary_care_clinic","facility"];function d(e){return[...new Set((e??"").split(",").map(e=>e.trim()).filter(Boolean))]}function u(){let{user:e}=(0,t.useSession)(),s=!!e&&((0,t.userHasAccess)("Edit Users",e)||(0,t.userHasAccess)("Add Users",e))&&!(0,t.userHasAccess)("Task: act.allClinics",e),a=(0,r.useMemo)(()=>s?d(e?.userProperties?.[o]):[],[s,e?.userProperties]),{data:n,error:l}=i()(s&&a.length?["act-clinic-limit",...a]:null,()=>Promise.all(a.map(e=>(0,t.openmrsFetch)(`${t.restBaseUrl}/location/${e}?v=custom:(display)`).then(({data:e})=>e.display))));return(0,r.useMemo)(()=>s?a.length?n||l?{status:"ready",uuids:a,names:n??[]}:{status:"pending"}:{status:"ready",uuids:a,names:[]}:{status:"none"},[s,a,n,l])}function c(e,s){return"none"===s.status?e:"pending"===s.status?[]:e.filter(e=>{let a=l.filter(s=>s in e);return!a.length||a.some(a=>s.names.includes(String(e[a]??"")))})}},379(e,s,a){a.d(s,{V:()=>l,i:()=>d});var r=a(3483),n=a.n(r),i=a(6144),t=a(7788),o=a(7928);function l(e){return d(e).clinics}function d(e){let s=(0,t.fU)(),{data:a,error:r}=n()(["act-clinics",...e],async()=>[...new Map((await Promise.all(e.map(e=>(0,o.m)(`${i.restBaseUrl}/location?tag=${encodeURIComponent(e)}&v=custom:(uuid,display)`)))).flat().map(e=>[e.uuid,e])).values()].sort((e,s)=>e.display.localeCompare(s.display))),l="pending"===s.status||!a&&!r,d="ready"===s.status?(a??[]).filter(e=>s.uuids.includes(e.uuid)):a??[];return{clinics:"pending"===s.status?[]:d,isLoading:l,error:r}}},4463(e,s,a){a.d(s,{Y:()=>o});var r=a(7858);a(4335);var n=a(6204),i=a(1943),t=a(6144);function o({title:e,settled:s,notFound:a}){let{t:l}=(0,i.useTranslation)();return(0,r.jsx)(t.Workspace2,{title:e,children:s?(0,r.jsx)(n.InlineNotification,{kind:"error",statusIconDescription:l("errorIcon","error icon"),lowContrast:!0,hideCloseButton:!0,title:a}):(0,r.jsx)(n.InlineLoading,{description:l("loading","Loading...")})})}},1047(e,s,a){a.d(s,{e:()=>r});function r(e){let s=e?.responseBody?.error,a=Object.values(s?.fieldErrors??{}).flat()[0];return s?.globalErrors?.[0]?.message??a?.message??s?.message??e?.message??String(e)}},854(e,s,a){a.r(s),a.d(s,{default:()=>h});var r=a(7858),n=a(4335),i=a(1943),t=a(6204),o=a(6144),l=a(4463),d=a(1047),u=a(6647),c=a(3685),m=a(171);function p({user:e,mutate:s,closeWorkspace:a}){let{t:l}=(0,i.useTranslation)(),h=(0,u.IB)(),_=(0,u.WK)(),[f,g]=(0,n.useState)({givenName:e?.person?.preferredName?.givenName??"",familyName:e?.person?.preferredName?.familyName??"",gender:e?.person?.gender??"",username:e?.username??"",password:"",roles:e?.roles.map(e=>e.uuid)??[],clinics:e?(0,u.DI)(e):[]}),[v,w]=(0,n.useState)(""),[x,N]=(0,n.useState)(!1),[y,C]=(0,n.useState)(!1),[b,j]=(0,n.useState)(null),[T,S]=(0,n.useState)(!1),P=e=>{S(!0),g(s=>({...s,...e}))},k=(e,s,a)=>P({[e]:a?[...f[e],s]:f[e].filter(e=>e!==s)}),A=new Set(h.roles.map(e=>e.uuid)),U=e?.roles.filter(e=>!A.has(e.uuid))??[],B=f.clinics.filter(e=>!_.some(s=>s.uuid===e)),$={givenName:!f.givenName.trim()&&l("enterGivenName","Enter a given name"),familyName:!f.familyName.trim()&&l("enterFamilyName","Enter a family name"),gender:!e&&!f.gender&&l("chooseSex","Choose a sex"),username:!e&&!f.username.trim()&&l("enterUsername","Enter a username"),password:!e&&!f.password&&l("enterPassword","Enter a password"),confirm:!e&&f.password!==v&&l("passwordsDoNotMatch","The passwords do not match"),roles:!f.roles.length&&l("chooseARole","Choose at least one role"),clinics:!f.clinics.length&&l("chooseAClinic","Choose at least one clinic")},I=e=>x&&$[e]||void 0,F=async()=>{if(N(!0),!Object.values($).some(Boolean)){C(!0),j(null);try{await (0,u.$c)(f,e),(0,o.showSnackbar)({kind:"success",title:l("userSaved","User saved")}),s(),a({discardUnsavedChanges:!0})}catch(e){j((0,d.e)(e))}finally{C(!1)}}};return(0,r.jsx)(o.Workspace2,{title:e?l("editUser","Edit user"):l("addUser","Add user"),hasUnsavedChanges:T,children:(0,r.jsxs)(t.Form,{className:c.A.form,onSubmit:e=>e.preventDefault(),children:[(0,r.jsxs)("div",{className:`${c.A.fields} ${m.A.form}`,children:[b&&(0,r.jsx)(t.InlineNotification,{kind:"error",statusIconDescription:l("errorIcon","error icon"),lowContrast:!0,hideCloseButton:!0,title:l("couldNotSaveUser","Could not save the user"),subtitle:b}),(0,r.jsxs)("div",{className:m.A.pair,children:[(0,r.jsx)(t.TextInput,{id:"user-given-name",labelText:l("givenName","Given name"),value:f.givenName,invalid:!!I("givenName"),invalidText:I("givenName"),onChange:e=>P({givenName:e.target.value})}),(0,r.jsx)(t.TextInput,{id:"user-family-name",labelText:l("familyName","Family name"),value:f.familyName,invalid:!!I("familyName"),invalidText:I("familyName"),onChange:e=>P({familyName:e.target.value})})]}),!e&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(t.RadioButtonGroup,{legendText:l("sex","Sex"),name:"user-sex",valueSelected:f.gender,invalid:!!I("gender"),invalidText:I("gender"),onChange:e=>P({gender:String(e)}),children:[(0,r.jsx)(t.RadioButton,{id:"user-sex-f",labelText:l("female","Female"),value:"F"}),(0,r.jsx)(t.RadioButton,{id:"user-sex-m",labelText:l("male","Male"),value:"M"})]}),(0,r.jsx)(t.TextInput,{id:"user-username",labelText:l("username","Username"),value:f.username,invalid:!!I("username"),invalidText:I("username"),onChange:e=>P({username:e.target.value})}),(0,r.jsxs)("div",{className:m.A.pair,children:[(0,r.jsx)(t.PasswordInput,{showPasswordLabel:l("showPassword","Show password"),hidePasswordLabel:l("hidePassword","Hide password"),id:"user-password",labelText:l("password","Password"),helperText:l("passwordRule","At least 8 characters, with an upper case letter and a number"),value:f.password,invalid:!!I("password"),invalidText:I("password"),onChange:e=>P({password:e.target.value})}),(0,r.jsx)(t.PasswordInput,{showPasswordLabel:l("showPassword","Show password"),hidePasswordLabel:l("hidePassword","Hide password"),id:"user-password-confirm",labelText:l("confirmPassword","Confirm password"),value:v,invalid:!!I("confirm"),invalidText:I("confirm"),onChange:e=>{S(!0),w(e.target.value)}})]})]}),(0,r.jsxs)("fieldset",{className:m.A.choices,children:[(0,r.jsx)("legend",{className:m.A.legend,children:l("roles","Roles")}),h.error&&(0,r.jsx)(t.InlineNotification,{kind:"error",statusIconDescription:l("errorIcon","error icon"),lowContrast:!0,hideCloseButton:!0,title:l("couldNotLoadRoles","Could not load the roles")}),h.roles.map(e=>(0,r.jsx)(t.Checkbox,{id:`user-role-${e.uuid}`,labelText:(0,u.bR)(e.display),checked:f.roles.includes(e.uuid),onChange:(s,{checked:a})=>k("roles",e.uuid,a)},e.uuid)),U.map(e=>(0,r.jsx)(t.Checkbox,{id:`user-role-${e.uuid}`,labelText:(0,u.bR)(e.display),checked:!0,disabled:!0},e.uuid)),I("roles")&&(0,r.jsx)("p",{className:m.A.invalid,children:I("roles")})]}),(0,r.jsxs)("fieldset",{className:m.A.choices,children:[(0,r.jsx)("legend",{className:m.A.legend,children:l("clinics","Clinics")}),_.map(e=>(0,r.jsx)(t.Checkbox,{id:`user-clinic-${e.uuid}`,labelText:e.display,checked:f.clinics.includes(e.uuid),onChange:(s,{checked:a})=>k("clinics",e.uuid,a)},e.uuid)),B.length>0&&(0,r.jsx)("p",{className:m.A.helper,children:l("otherClinicsKept","Also at {{count}} clinics not shown here, which are kept",{count:B.length})}),I("clinics")&&(0,r.jsx)("p",{className:m.A.invalid,children:I("clinics")})]})]}),(0,r.jsxs)(t.ButtonSet,{children:[(0,r.jsx)(t.Button,{className:c.A.button,kind:"secondary",onClick:()=>a(),children:l("cancel","Cancel")}),(0,r.jsx)(t.Button,{className:c.A.button,kind:"primary",disabled:y,onClick:F,children:y?l("saving","Saving..."):l("save","Save")})]})]})})}let h=({workspaceProps:e,closeWorkspace:s})=>{let{t:a}=(0,i.useTranslation)(),t=e?.userUuid,{users:o,error:d,isLoading:c,mutate:m}=(0,u.kp)(),h=o.find(e=>e.uuid===t),_=!!h?.retired;return((0,n.useEffect)(()=>{_&&s({discardUnsavedChanges:!0})},[_,s]),t&&!h)?(0,r.jsx)(l.Y,{title:a("editUser","Edit user"),settled:!!d||!c,notFound:a("couldNotLoadUser","Could not load this user")}):(0,r.jsx)(p,{user:h,mutate:m,closeWorkspace:s})}},6647(e,s,a){a.d(s,{$c:()=>f,DI:()=>m,IB:()=>h,MV:()=>v,WK:()=>_,bR:()=>p,fq:()=>c,kp:()=>u,xw:()=>g});var r=a(4335),n=a(3483),i=a.n(n),t=a(6144),o=a(7788),l=a(7928),d=a(379);function u(){let{data:e,error:s,isLoading:a,mutate:r}=i()(["act-users"],()=>(0,l.m)(`${t.restBaseUrl}/user?v=custom:(uuid,username,retired,userProperties,person:(uuid,gender,preferredName:(uuid,givenName,familyName)),roles:(uuid,display))&includeAll=true`));return{users:e??[],error:s,isLoading:a,mutate:r}}let c=e=>[e.person?.preferredName?.givenName,e.person?.preferredName?.familyName].filter(Boolean).join(" "),m=e=>(0,o.h6)(e?.userProperties?.[o.o2]),p=e=>e.replace(/^Organizational: (ACT )?/,"");function h(){let{users:e}=(0,t.useConfig)(),{user:s}=(0,t.useSession)(),a=(0,r.useMemo)(()=>{let a=new Set((s?.roles??[]).map(e=>e.uuid)),r=(s?.roles??[]).some(e=>"System Developer"===e.display)?e.roleChoices[0]:e.roleChoices.find(({administratorRole:e})=>a.has(e));return r?.roles??[]},[s,e.roleChoices]),{data:n,error:o}=i()(a.length?["act-role-choices",...a]:null,()=>Promise.all(a.map(e=>(0,t.openmrsFetch)(`${t.restBaseUrl}/role/${e}?v=custom:(uuid,display)`).then(({data:e})=>e))));return{roles:n??[],error:o,isLoading:!!a.length&&!n&&!o}}function _(){let{clinicLocationTags:e}=(0,t.useConfig)();return(0,d.V)([...e.primaryCare,...e.cardiac])}async function f(e,s){let a=e.clinics.join(",");if(!s){let{data:s}=await (0,t.openmrsFetch)(`${t.restBaseUrl}/user`,{method:"POST",headers:{"Content-Type":"application/json"},body:{username:e.username.trim(),password:e.password,person:{names:[{givenName:e.givenName.trim(),familyName:e.familyName.trim()}],gender:e.gender},roles:e.roles,userProperties:{[o.o2]:a}}});return await (0,t.openmrsFetch)(`${t.restBaseUrl}/provider`,{method:"POST",headers:{"Content-Type":"application/json"},body:{person:s.person.uuid,identifier:e.username.trim()}}),s.uuid}let r=s.person.preferredName;return r&&(r.givenName!==e.givenName.trim()||r.familyName!==e.familyName.trim())&&await (0,t.openmrsFetch)(`${t.restBaseUrl}/person/${s.person.uuid}/name/${r.uuid}`,{method:"POST",headers:{"Content-Type":"application/json"},body:{givenName:e.givenName.trim(),familyName:e.familyName.trim()}}),await (0,t.openmrsFetch)(`${t.restBaseUrl}/user/${s.uuid}`,{method:"POST",headers:{"Content-Type":"application/json"},body:{roles:e.roles,userProperties:{...s.userProperties??{},[o.o2]:a}}}),s.uuid}function g(e,s){return(0,t.openmrsFetch)(`${t.restBaseUrl}/password/${e.uuid}`,{method:"POST",headers:{"Content-Type":"application/json"},body:{newPassword:s}})}function v(e,s){return(0,t.openmrsFetch)(`${t.restBaseUrl}/user/${e.uuid}?reason=${encodeURIComponent(s)}`,{method:"DELETE"})}}}]);
|
|
1
|
+
"use strict";(globalThis.webpackChunk_act_registry_esm_act_app=globalThis.webpackChunk_act_registry_esm_act_app||[]).push([["1067"],{3685(e,s,a){a.d(s,{A:()=>r});let r={form:"-esm-act__form-workspace__form___KL7Wr",fields:"-esm-act__form-workspace__fields___KQT-e",button:"-esm-act__form-workspace__button___D3iM5"}},171(e,s,a){a.d(s,{A:()=>r});let r={page:"-esm-act__users__page___EX4Pf",content:"-esm-act__users__content___muNb3",figures:"-esm-act__users__figures___sw+vH",figureButton:"-esm-act__users__figureButton___rz6m+",pressed:"-esm-act__users__pressed___gKMF5",toolbar:"-esm-act__users__toolbar___nASZX",tableContainer:"-esm-act__users__tableContainer___AZQa0",withPanel:"-esm-act__users__withPanel___umJCS",actions:"-esm-act__users__actions___xeidj",form:"-esm-act__users__form___8-jBp",pair:"-esm-act__users__pair___l5c0w",choices:"-esm-act__users__choices___57ZMO",legend:"-esm-act__users__legend___ilSdj",helper:"-esm-act__users__helper___dtL7f",invalid:"-esm-act__users__invalid___vOiHq"}},7788(e,s,a){a.d(s,{X3:()=>c,fU:()=>u,h6:()=>d,o2:()=>o});var r=a(4335),n=a(3483),i=a.n(n),t=a(6144);let o="actcore.clinics",l=["cardiac_clinic","primary_care_clinic","facility"];function d(e){return[...new Set((e??"").split(",").map(e=>e.trim()).filter(Boolean))]}function u(){let{user:e}=(0,t.useSession)(),s=!!e&&((0,t.userHasAccess)("Edit Users",e)||(0,t.userHasAccess)("Add Users",e))&&!(0,t.userHasAccess)("Task: act.allClinics",e),a=(0,r.useMemo)(()=>s?d(e?.userProperties?.[o]):[],[s,e?.userProperties]),{data:n,error:l}=i()(s&&a.length?["act-clinic-limit",...a]:null,()=>Promise.all(a.map(e=>(0,t.openmrsFetch)(`${t.restBaseUrl}/location/${e}?v=custom:(display)`).then(({data:e})=>e.display))));return(0,r.useMemo)(()=>s?a.length?n||l?{status:"ready",uuids:a,names:n??[]}:{status:"pending"}:{status:"ready",uuids:a,names:[]}:{status:"none"},[s,a,n,l])}function c(e,s){return"none"===s.status?e:"pending"===s.status?[]:e.filter(e=>{let a=l.filter(s=>s in e);return!a.length||a.some(a=>s.names.includes(String(e[a]??"")))})}},379(e,s,a){a.d(s,{V:()=>l,i:()=>d});var r=a(3483),n=a.n(r),i=a(6144),t=a(7788),o=a(7928);function l(e){return d(e).clinics}function d(e){let s=(0,t.fU)(),{data:a,error:r}=n()(["act-clinics",...e],async()=>[...new Map((await Promise.all(e.map(e=>(0,o.m)(`${i.restBaseUrl}/location?tag=${encodeURIComponent(e)}&v=custom:(uuid,display)`)))).flat().map(e=>[e.uuid,e])).values()].sort((e,s)=>e.display.localeCompare(s.display))),l="pending"===s.status||!a&&!r,d="ready"===s.status?(a??[]).filter(e=>s.uuids.includes(e.uuid)):a??[];return{clinics:"pending"===s.status?[]:d,isLoading:l,error:r}}},4463(e,s,a){a.d(s,{Y:()=>o});var r=a(7858);a(4335);var n=a(6204),i=a(1943),t=a(6144);function o({title:e,settled:s,notFound:a}){let{t:l}=(0,i.useTranslation)();return(0,r.jsx)(t.Workspace2,{title:e,children:s?(0,r.jsx)(n.InlineNotification,{kind:"error",statusIconDescription:l("errorIcon","error icon"),lowContrast:!0,hideCloseButton:!0,title:a}):(0,r.jsx)(n.InlineLoading,{description:l("loading","Loading...")})})}},1047(e,s,a){a.d(s,{e:()=>r});function r(e){let s=e?.responseBody?.error,a=Object.values(s?.fieldErrors??{}).flat()[0];return s?.globalErrors?.[0]?.message??a?.message??s?.message??e?.message??String(e)}},854(e,s,a){a.r(s),a.d(s,{default:()=>_});var r=a(7858),n=a(4335),i=a(1943),t=a(6204),o=a(6144),l=a(4463),d=a(1047),u=a(6647),c=a(3685),m=a(171);function p({user:e,mutate:s,closeWorkspace:a}){let{t:l}=(0,i.useTranslation)(),_=(0,u.IB)(),h=(0,u.WK)(),[f,g]=(0,n.useState)({givenName:e?.person?.preferredName?.givenName??"",familyName:e?.person?.preferredName?.familyName??"",gender:e?.person?.gender??"",username:e?.username??"",password:"",roles:e?.roles.map(e=>e.uuid)??[],clinics:e?(0,u.DI)(e):[]}),[v,w]=(0,n.useState)(""),[x,N]=(0,n.useState)(!1),[y,C]=(0,n.useState)(!1),[b,j]=(0,n.useState)(null),[T,S]=(0,n.useState)(!1),P=e=>{S(!0),g(s=>({...s,...e}))},k=(e,s,a)=>P({[e]:a?[...f[e],s]:f[e].filter(e=>e!==s)}),A=new Set(_.roles.map(e=>e.uuid)),B=e?.roles.filter(e=>!A.has(e.uuid))??[],U=f.clinics.filter(e=>!h.some(s=>s.uuid===e)),$={givenName:!f.givenName.trim()&&l("enterGivenName","Enter a given name"),familyName:!f.familyName.trim()&&l("enterFamilyName","Enter a family name"),gender:!e&&!f.gender&&l("chooseSex","Choose a sex"),username:!e&&!f.username.trim()&&l("enterUsername","Enter a username"),password:!e&&!f.password&&l("enterPassword","Enter a password"),confirm:!e&&f.password!==v&&l("passwordsDoNotMatch","The passwords do not match"),roles:!f.roles.length&&l("chooseARole","Choose at least one role"),clinics:!f.clinics.length&&l("chooseAClinic","Choose at least one clinic")},I=e=>x&&$[e]||void 0,F=async()=>{if(N(!0),!Object.values($).some(Boolean)){C(!0),j(null);try{await (0,u.$c)(f,e),(0,o.showSnackbar)({kind:"success",title:l("userSaved","User saved")}),s(),a({discardUnsavedChanges:!0})}catch(e){j((0,d.e)(e))}finally{C(!1)}}};return(0,r.jsx)(o.Workspace2,{title:e?l("editUser","Edit user"):l("addUser","Add user"),hasUnsavedChanges:T,children:(0,r.jsxs)(t.Form,{className:c.A.form,onSubmit:e=>e.preventDefault(),children:[(0,r.jsxs)("div",{className:`${c.A.fields} ${m.A.form}`,children:[b&&(0,r.jsx)(t.InlineNotification,{kind:"error",statusIconDescription:l("errorIcon","error icon"),lowContrast:!0,hideCloseButton:!0,title:l("couldNotSaveUser","Could not save the user"),subtitle:b}),(0,r.jsxs)("div",{className:m.A.pair,children:[(0,r.jsx)(t.TextInput,{id:"user-given-name",labelText:l("givenName","Given name"),value:f.givenName,invalid:!!I("givenName"),invalidText:I("givenName"),onChange:e=>P({givenName:e.target.value})}),(0,r.jsx)(t.TextInput,{id:"user-family-name",labelText:l("familyName","Family name"),value:f.familyName,invalid:!!I("familyName"),invalidText:I("familyName"),onChange:e=>P({familyName:e.target.value})})]}),!e&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(t.RadioButtonGroup,{legendText:l("sex","Sex"),name:"user-sex",valueSelected:f.gender,invalid:!!I("gender"),invalidText:I("gender"),onChange:e=>P({gender:String(e)}),children:[(0,r.jsx)(t.RadioButton,{id:"user-sex-f",labelText:l("female","Female"),value:"F"}),(0,r.jsx)(t.RadioButton,{id:"user-sex-m",labelText:l("male","Male"),value:"M"})]}),(0,r.jsx)(t.TextInput,{id:"user-username",labelText:l("username","Username"),value:f.username,invalid:!!I("username"),invalidText:I("username"),onChange:e=>P({username:e.target.value})}),(0,r.jsxs)("div",{className:m.A.pair,children:[(0,r.jsx)(t.PasswordInput,{showPasswordLabel:l("showPassword","Show password"),hidePasswordLabel:l("hidePassword","Hide password"),id:"user-password",labelText:l("password","Password"),helperText:l("passwordRule","At least 8 characters, with an upper case letter and a number"),value:f.password,invalid:!!I("password"),invalidText:I("password"),onChange:e=>P({password:e.target.value})}),(0,r.jsx)(t.PasswordInput,{showPasswordLabel:l("showPassword","Show password"),hidePasswordLabel:l("hidePassword","Hide password"),id:"user-password-confirm",labelText:l("confirmPassword","Confirm password"),value:v,invalid:!!I("confirm"),invalidText:I("confirm"),onChange:e=>{S(!0),w(e.target.value)}})]})]}),(0,r.jsxs)("fieldset",{className:m.A.choices,children:[(0,r.jsx)("legend",{className:m.A.legend,children:l("roles","Roles")}),_.error&&(0,r.jsx)(t.InlineNotification,{kind:"error",statusIconDescription:l("errorIcon","error icon"),lowContrast:!0,hideCloseButton:!0,title:l("couldNotLoadRoles","Could not load the roles")}),_.roles.map(e=>(0,r.jsx)(t.Checkbox,{id:`user-role-${e.uuid}`,labelText:(0,u.bR)(e.display),checked:f.roles.includes(e.uuid),onChange:(s,{checked:a})=>k("roles",e.uuid,a)},e.uuid)),B.map(e=>(0,r.jsx)(t.Checkbox,{id:`user-role-${e.uuid}`,labelText:(0,u.bR)(e.display),checked:!0,disabled:!0},e.uuid)),I("roles")&&(0,r.jsx)("p",{className:m.A.invalid,children:I("roles")})]}),(0,r.jsxs)("fieldset",{className:m.A.choices,children:[(0,r.jsx)("legend",{className:m.A.legend,children:l("clinics","Clinics")}),h.map(e=>(0,r.jsx)(t.Checkbox,{id:`user-clinic-${e.uuid}`,labelText:e.display,checked:f.clinics.includes(e.uuid),onChange:(s,{checked:a})=>k("clinics",e.uuid,a)},e.uuid)),U.length>0&&(0,r.jsx)("p",{className:m.A.helper,children:l("otherClinicsKept","Also at {{count}} clinics not shown here, which are kept",{count:U.length})}),I("clinics")&&(0,r.jsx)("p",{className:m.A.invalid,children:I("clinics")})]})]}),(0,r.jsxs)(t.ButtonSet,{children:[(0,r.jsx)(t.Button,{className:c.A.button,kind:"secondary",onClick:()=>a(),children:l("cancel","Cancel")}),(0,r.jsx)(t.Button,{className:c.A.button,kind:"primary",disabled:y,onClick:F,children:y?l("saving","Saving..."):l("save","Save")})]})]})})}let _=({workspaceProps:e,closeWorkspace:s})=>{let{t:a}=(0,i.useTranslation)(),t=e?.userUuid,{users:o,error:d,isLoading:c,mutate:m}=(0,u.kp)(),_=o.find(e=>e.uuid===t),h=!!_?.retired;return((0,n.useEffect)(()=>{h&&s({discardUnsavedChanges:!0})},[h,s]),t&&!_)?(0,r.jsx)(l.Y,{title:a("editUser","Edit user"),settled:!!d||!c,notFound:a("couldNotLoadUser","Could not load this user")}):(0,r.jsx)(p,{user:_,mutate:m,closeWorkspace:s})}},6647(e,s,a){a.d(s,{$c:()=>g,DI:()=>m,IB:()=>h,MV:()=>w,Nf:()=>p,WK:()=>f,bR:()=>_,fq:()=>c,kp:()=>u,xw:()=>v});var r=a(4335),n=a(3483),i=a.n(n),t=a(6144),o=a(7788),l=a(7928),d=a(379);function u(){let{data:e,error:s,isLoading:a,mutate:r}=i()(["act-users"],()=>(0,l.m)(`${t.restBaseUrl}/user?v=custom:(uuid,username,retired,userProperties,person:(uuid,gender,preferredName:(uuid,givenName,familyName)),roles:(uuid,display))&includeAll=true`));return{users:e??[],error:s,isLoading:a,mutate:r}}let c=e=>[e.person?.preferredName?.givenName,e.person?.preferredName?.familyName].filter(Boolean).join(" "),m=e=>(0,o.h6)(e?.userProperties?.[o.o2]);function p(e){let s=e.userProperties?.lastLoginTimestamp,a=s?Number(s):NaN;return a>0?new Date(a):null}let _=e=>e.replace(/^Organizational: (ACT )?/,"");function h(){let{users:e}=(0,t.useConfig)(),{user:s}=(0,t.useSession)(),a=(0,r.useMemo)(()=>{let a=new Set((s?.roles??[]).map(e=>e.uuid)),r=(s?.roles??[]).some(e=>"System Developer"===e.display)?e.roleChoices[0]:e.roleChoices.find(({administratorRole:e})=>a.has(e));return r?.roles??[]},[s,e.roleChoices]),{data:n,error:o}=i()(a.length?["act-role-choices",...a]:null,()=>Promise.all(a.map(e=>(0,t.openmrsFetch)(`${t.restBaseUrl}/role/${e}?v=custom:(uuid,display)`).then(({data:e})=>e))));return{roles:n??[],error:o,isLoading:!!a.length&&!n&&!o}}function f(){let{clinicLocationTags:e}=(0,t.useConfig)();return(0,d.V)([...e.primaryCare,...e.cardiac])}async function g(e,s){let a=e.clinics.join(",");if(!s){let{data:s}=await (0,t.openmrsFetch)(`${t.restBaseUrl}/user`,{method:"POST",headers:{"Content-Type":"application/json"},body:{username:e.username.trim(),password:e.password,person:{names:[{givenName:e.givenName.trim(),familyName:e.familyName.trim()}],gender:e.gender},roles:e.roles,userProperties:{[o.o2]:a}}});return await (0,t.openmrsFetch)(`${t.restBaseUrl}/provider`,{method:"POST",headers:{"Content-Type":"application/json"},body:{person:s.person.uuid,identifier:e.username.trim()}}),s.uuid}let r=s.person.preferredName;r&&(r.givenName!==e.givenName.trim()||r.familyName!==e.familyName.trim())&&await (0,t.openmrsFetch)(`${t.restBaseUrl}/person/${s.person.uuid}/name/${r.uuid}`,{method:"POST",headers:{"Content-Type":"application/json"},body:{givenName:e.givenName.trim(),familyName:e.familyName.trim()}});let{data:n}=await (0,t.openmrsFetch)(`${t.restBaseUrl}/user/${s.uuid}?v=custom:(userProperties)`);return await (0,t.openmrsFetch)(`${t.restBaseUrl}/user/${s.uuid}`,{method:"POST",headers:{"Content-Type":"application/json"},body:{roles:e.roles,userProperties:{...n.userProperties??{},[o.o2]:a}}}),s.uuid}function v(e,s){return(0,t.openmrsFetch)(`${t.restBaseUrl}/password/${e.uuid}`,{method:"POST",headers:{"Content-Type":"application/json"},body:{newPassword:s}})}function w(e,s){return(0,t.openmrsFetch)(`${t.restBaseUrl}/user/${e.uuid}?reason=${encodeURIComponent(s)}`,{method:"DELETE"})}}}]);
|
package/dist/1067.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1067.js","sources":["webpack://@act-registry/esm-act-app/./src/styles/form-workspace.scss?6b2d","webpack://@act-registry/esm-act-app/./src/users/users.scss?84b1","webpack://@act-registry/esm-act-app/./src/clinic-limit.ts","webpack://@act-registry/esm-act-app/./src/programme-report/clinics.resource.ts","webpack://@act-registry/esm-act-app/./src/record-loading.component.tsx","webpack://@act-registry/esm-act-app/./src/rest-error-message.ts","webpack://@act-registry/esm-act-app/./src/users/user-form.workspace.tsx","webpack://@act-registry/esm-act-app/./src/users/users.resource.ts"],"names":["CLINICS_PROPERTY","clinicColumns","parseClinics","value","Set","clinic","Boolean","useClinicLimit","user","useSession","limited","userHasAccess","uuids","useMemo","data","error","useSWR","Promise","uuid","openmrsFetch","restBaseUrl","location","limitRows","rows","limit","row","columns","column","String","useClinics","tags","useClinicList","byUuid","Map","lists","tag","fetchAll","encodeURIComponent","a","b","isLoading","clinics","RecordLoading","title","settled","notFound","t","useTranslation","Workspace2","InlineNotification","InlineLoading","restErrorMessage","e","fieldError","Object","UserFormBody","mutate","closeWorkspace","roleChoices","useRoleChoices","clinicChoices","useClinicChoices","form","setForm","useState","role","clinicsOf","confirm","setConfirm","submitted","setSubmitted","saving","setSaving","saveError","setSaveError","dirty","setDirty","change","patch","current","toggle","key","checked","one","offeredRoles","otherRoles","otherClinics","errors","shown","undefined","submit","saveUser","showSnackbar","Form","formStyles","event","styles","TextInput","RadioButtonGroup","RadioButton","PasswordInput","Checkbox","roleLabel","_","ButtonSet","Button","workspaceProps","userUuid","users","useUsers","candidate","disabled","useEffect","fullName","display","useConfig","roleUuids","held","choice","superUser","administratorRole","clinicLocationTags","existing","created","name","resetPassword","newPassword","disableUser","reason"],"mappings":"kKACA,MAAe,CAAC,KAAO,yCAAyC,OAAS,2CAA2C,OAAS,0CAA0C,C,8BCAvK,MAAe,CAAC,KAAO,gCAAgC,QAAU,mCAAmC,QAAU,mCAAmC,eAAiB,0CAA0C,UAAY,qCAAqC,QAAU,mCAAmC,KAAO,gCAAgC,KAAO,gCAAgC,QAAU,mCAAmC,OAAS,kCAAkC,OAAS,kCAAkC,QAAU,kCAAkC,C,sGCKhiB,IAAMA,EAAmB,kBAM1BC,EAAgB,CAAC,iBAAkB,sBAAuB,WAAW,CAGpE,SAASC,EAAaC,CAAgC,EAC3D,MAAO,IACF,IAAIC,IACJD,AAAAA,CAAAA,GAAS,EAAC,EACR,KAAK,CAAC,KACN,GAAG,CAAC,AAACE,GAAWA,EAAO,IAAI,IAC3B,MAAM,CAACC,UAEb,AACH,CAuBO,SAASC,IACd,GAAM,CAAEC,KAAAA,CAAI,CAAE,CAAGC,AAAAA,GAAAA,EAAAA,UAAAA,AAAAA,IACXC,EAlBN,CAAI,CAkB4BF,GAfPG,CAAAA,GAAAA,EAAAA,aAAAA,AAAAA,EAAc,aAePH,IAf8BG,AAAAA,GAAAA,EAAAA,aAAAA,AAAAA,EAAc,YAe5CH,EAf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K,IAAI,CAAC,CAAC,CAAE,CAC1D,OAAQ,OACR,QAAS,CAAE,eAAgB,kBAAmB,EAC9C,KAAM,CAAEsH,YAAAA,CAAY,CACtB,EACF,CAGO,SAASC,EAAYvH,CAAa,CAAEwH,CAAc,EACvD,MAAO7G,AAAAA,GAAAA,EAAAA,YAAAA,AAAAA,EAAa,CAAC,EAAEC,EAAAA,WAAWA,CAAC,MAAM,EAAEZ,EAAK,IAAI,CAAC,QAAQ,EAAE6B,mBAAmB2F,GAAQ,CAAC,CAAE,CAAE,OAAQ,QAAS,EAClH,C"}
|
|
1
|
+
{"version":3,"file":"1067.js","sources":["webpack://@act-registry/esm-act-app/./src/styles/form-workspace.scss?6b2d","webpack://@act-registry/esm-act-app/./src/users/users.scss?84b1","webpack://@act-registry/esm-act-app/./src/clinic-limit.ts","webpack://@act-registry/esm-act-app/./src/programme-report/clinics.resource.ts","webpack://@act-registry/esm-act-app/./src/record-loading.component.tsx","webpack://@act-registry/esm-act-app/./src/rest-error-message.ts","webpack://@act-registry/esm-act-app/./src/users/user-form.workspace.tsx","webpack://@act-registry/esm-act-app/./src/users/users.resource.ts"],"names":["CLINICS_PROPERTY","clinicColumns","parseClinics","value","Set","clinic","Boolean","useClinicLimit","user","useSession","limited","userHasAccess","uuids","useMemo","data","error","useSWR","Promise","uuid","openmrsFetch","restBaseUrl","location","limitRows","rows","limit","row","columns","column","String","useClinics","tags","useClinicList","byUuid","Map","lists","tag","fetchAll","encodeURIComponent","a","b","isLoading","clinics","RecordLoading","title","settled","notFound","t","useTranslation","Workspace2","InlineNotification","InlineLoading","restErrorMessage","e","fieldError","Object","UserFormBody","mutate","closeWorkspace","roleChoices","useRoleChoices","clinicChoices","useClinicChoices","form","setForm","useState","role","clinicsOf","confirm","setConfirm","submitted","setSubmitted","saving","setSaving","saveError","setSaveError","dirty","setDirty","change","patch","current","toggle","key","checked","one","offeredRoles","otherRoles","otherClinics","errors","shown","undefined","submit","saveUser","showSnackbar","Form","formStyles","event","styles","TextInput","RadioButtonGroup","RadioButton","PasswordInput","Checkbox","roleLabel","_","ButtonSet","Button","workspaceProps","userUuid","users","useUsers","candidate","disabled","useEffect","fullName","lastSignIn","raw","stamp","Number","NaN","Date","display","useConfig","roleUuids","held","choice","superUser","administratorRole","clinicLocationTags","existing","created","name","resetPassword","newPassword","disableUser","reason"],"mappings":"kKACA,MAAe,CAAC,KAAO,yCAAyC,OAAS,2CAA2C,OAAS,0CAA0C,C,8BCAvK,MAAe,CAAC,KAAO,gCAAgC,QAAU,mCAAmC,QAAU,mCAAmC,aAAe,wCAAwC,QAAU,mCAAmC,QAAU,mCAAmC,eAAiB,0CAA0C,UAAY,qCAAqC,QAAU,mCAAmC,KAAO,gCAAgC,KAAO,gCAAgC,QAAU,mCAAmC,OAAS,kCAAkC,OAAS,kCAAkC,QAAU,kCAAkC,C,sGCKjrB,IAAMA,EAAmB,kBAM1BC,EAAgB,CAAC,iBAAkB,sBAAuB,WAAW,CAGpE,SAASC,EAAaC,CAAgC,EAC3D,MAAO,IACF,IAAIC,IACJD,AAAAA,CAAAA,GAAS,EAAC,EACR,KAAK,CAAC,KACN,GAAG,CAAC,AAACE,GAAWA,EAAO,IAAI,IAC3B,MAAM,CAACC,UAEb,AACH,CAuBO,SAASC,IACd,GAAM,CAAEC,KAAAA,CAAI,CAAE,CAAGC,AAAAA,GAAAA,EAAAA,UAAAA,AAAAA,IACXC,EAlBN,CAAI,CAkB4BF,GAfPG,CAAAA,GAAAA,EAAAA,aAAAA,AAAAA,EAAc,aAePH,IAf8BG,AAAAA,GAAAA,EAAAA,aAAAA,AAAAA,EAAc,YAe5CH,EAf6D,GAClE,CAACG,AAAAA,GAAAA,EAAAA,aAAAA,AAAAA,EA1BO,uBAwCHH,GAC1BI,EAAQC,AAAAA,GAAAA,EAAAA,OAAAA,AAAAA,EACZ,IAAOH,EAAUR,EAAaM,GAAM,gBAAgB,CAACR,EAAiB,EAAI,EAAE,CAC5E,CAACU,EAASF,GAAM,eAAe,EAE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Aa,CAAE4H,CAAmB,EAC9D,MAAOjH,AAAAA,GAAAA,EAAAA,YAAAA,AAAAA,EAAa,CAAC,EAAEC,EAAAA,WAAWA,CAAC,UAAU,EAAEZ,EAAK,IAAI,CAAC,CAAC,CAAE,CAC1D,OAAQ,OACR,QAAS,CAAE,eAAgB,kBAAmB,EAC9C,KAAM,CAAE4H,YAAAA,CAAY,CACtB,EACF,CAGO,SAASC,EAAY7H,CAAa,CAAE8H,CAAc,EACvD,MAAOnH,AAAAA,GAAAA,EAAAA,YAAAA,AAAAA,EAAa,CAAC,EAAEC,EAAAA,WAAWA,CAAC,MAAM,EAAEZ,EAAK,IAAI,CAAC,QAAQ,EAAE6B,mBAAmBiG,GAAQ,CAAC,CAAE,CAAE,OAAQ,QAAS,EAClH,C"}
|
package/dist/1796.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.webpackChunk_act_registry_esm_act_app=globalThis.webpackChunk_act_registry_esm_act_app||[]).push([["1796"],{4767(e,t,a){var i={"./en.json":["4300","5117"]};function n(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],n=t[0];return a.e(t[1]).then(function(){return a(n)})}n.keys=()=>Object.keys(i),n.id=4767,e.exports=n},8940(e,t,a){"use strict";a.d(t,{p:()=>r});var i=a(7858);a(4335);var n=a(1675),s=a(6144);function r({meta:e}){return(0,i.jsx)(n.BrowserRouter,{children:(0,i.jsx)(s.DashboardExtension,{path:e.name,title:e.title,basePath:`${window.spaBase}/home`})})}},1256(e,t,a){"use strict";a.d(t,{z:()=>s});var i=a(6144),n=a(7003);function s(){let{user:e}=(0,i.useSession)();return!!e&&(0,i.userHasAccess)(n.vG,e)}},8596(e,t,a){"use strict";a.d(t,{Am:()=>s,DL:()=>i,hk:()=>n});let i={name:"act-home",slot:"rhd-home-dashboard-slot",title:"actHome"},n="rhd-home-widgets-slot",s="act-home-quick-actions-slot"},5779(e,t,a){"use strict";a.d(t,{T6:()=>r,gx:()=>A,i2:()=>p,uI:()=>l});var i=a(6144),n=a(7539),s=a(4718);let r="Allergies unavailable",o=e=>(0,i.parseDate)(e).getTime(),c=e=>[...e.filter(e=>e.isPenicillin),...e.filter(e=>!e.isPenicillin)];function d(e,t,{consultations:a,allergies:i}){let s=a.concepts,r=i.concepts,l=[...e.map(e=>({encounter:e,form:a.form})),...t.map(e=>({encounter:e,form:i.form}))].sort((e,t)=>o(e.encounter.encounterDatetime)-o(t.encounter.encounterDatetime)),p=new Map,h=new Map,A=-1/0,u=-1/0;for(let{encounter:e,form:t}of l)for(let i of(0,n.VZ)(e.obs,s.allergy)){let[c]=(0,n.VZ)(i.groupMembers,s.allergy);if(!c)continue;let d=e=>{let[t]=(0,n.VZ)(i.groupMembers,e);return t?(0,n.yy)(t.value):""},l=(0,n.u8)(c.value)||(0,n.yy)(c.value),y=o(e.encounterDatetime);if(l===r.noKnownAllergies){A=Math.max(A,y);continue}u=Math.max(u,y);let f=d(s.dateAdded)||e.encounterDatetime,b=p.get(l),m=b&&o(b.added)<o(f)?b.added:f,g=d(r.dateResolved)||null;if(b?.resolved&&!g&&h.get(l)===y){p.set(l,{...b,added:m});continue}h.set(l,y);let _=(0,n.yy)(c.value);p.set(l,{key:l,name:_,added:m,isPenicillin:a.penicillinAllergyAnswers.includes(l)||/penicillin/i.test(_),reactions:(0,n.VZ)(i.groupMembers,r.reaction).flatMap(e=>(0,n.VZ)(e.groupMembers,r.reaction)).map(e=>(0,n.yy)(e.value)),resolved:g,encounterUuid:e.uuid,form:t})}let y=c([...p.values()].sort((e,t)=>o(t.added)-o(e.added))),f=y.filter(e=>!e.resolved);return{current:f,past:y.filter(e=>e.resolved),noKnownAllergies:!f.length&&A>u}}function l(e,t=!1){if(!e.length)return t?"No known allergies":"Allergies not recorded";let a=c(e).map(e=>e.name).join(", ");return e.some(e=>e.isPenicillin)?`PENICILLIN ALLERGY: ${a}`:`Allergies: ${a}`}function p(e,t){let a=(0,n._n)(e,t.consultations.encounterType),i=(0,n._n)(e,t.allergies.encounterType);return{...d(a.encounters,i.encounters,t),error:a.error??i.error,isLoading:a.isLoading||i.isLoading}}async function h(e){try{if(!e)throw Error("No patient");let t=await (0,i.getConfig)("@act-registry/esm-act-app"),[a,s]=await Promise.all([(0,n.R9)(e,t.consultations.encounterType),(0,n.R9)(e,t.allergies.encounterType)]),{current:r,noKnownAllergies:o}=d(a,s,t);return l(r,o)}catch{return r}}let A=()=>{(0,s.y)("actAllergies",h),(0,s.X)("act-current-allergies",()=>Promise.all([a.e("9245"),a.e("3047")]).then(a.bind(a,4618)))}},5970(e,t,a){"use strict";a.d(t,{KP:()=>y,LP:()=>u});var i=a(8596),n=a(4538),s=a(46),r=a(2066),o=a(4372),c=a(2762),d=a(5482),l=a(7056),p=a(3394);let h="act-chart-return",A=[i.DL.name,c.J.name,p.av.name,l.d.name,d.b.name,n.SJ.name,r.E.name,o.k.name,s._.name];function u(){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,n,s=new URL(t);if(i=new URL(a),!/\/patient\/[^/]+\/chart/.test(i.pathname))return null;if(/\/patient\/[^/]+\/chart/.test(s.pathname))return e;let r=(n=s.pathname.match(/\/home\/([^/]+)/)?.[1],A.find(e=>e===n)??null);return r?{screen:r,path:`${s.pathname}${s.search}`}:null}(u(),t,a))})}},4538(e,t,a){"use strict";a.d(t,{$C:()=>s,SJ:()=>i,af:()=>n});let i={name:"act-community-home",slot:"act-community-home-dashboard-slot",title:"home"},n="act-community-home-widgets-slot",s="act-community-home-quick-actions-slot"},7003(e,t,a){"use strict";a.d(t,{$N:()=>l,$O:()=>c,AZ:()=>u,Az:()=>m,Kp:()=>d,Ky:()=>o,Nd:()=>p,PI:()=>f,Td:()=>g,ZQ:()=>_,hG:()=>n,iZ:()=>h,jy:()=>b,lE:()=>y,oy:()=>A,tg:()=>s,vG:()=>i,z$:()=>r});let i="App: act.home",n="App: act.worklists",s="App: act.screenPositive",r="Task: act.lists.export",o="Task: act.manageStudies",c="Task: act.enterClinicalForms",d="View Audit Logs",l="View Read Audit Logs",p="View Security Audit Logs",h="Task: act.downloadData",A="Task: act.downloadIdentifiers",u="Task: act.downloadResearchData",y="Task: act.sendReferral",f="Task: act.enterScreeningCounts",b="Add Encounters",m="Edit Encounters",g="Edit People",_="Edit Patient Programs"},7539(e,t,a){"use strict";a.d(t,{MY:()=>f,R9:()=>A,VZ:()=>p,_n:()=>u,u8:()=>l,yy:()=>d});var i=a(3483),n=a.n(i),s=a(8406),r=a.n(s),o=a(6144),c=a(7928);let d=e=>"object"==typeof e&&null!==e?String(e.display??""):String(e??""),l=e=>"object"==typeof e&&null!==e?String(e.uuid??""):"",p=(e,t)=>(e??[]).filter(e=>e.concept.uuid===t),h=(e,t)=>`${o.restBaseUrl}/encounter?patient=${e}&encounterType=${t}&v=custom:(uuid,encounterDatetime,encounterProviders:(provider:(display)),obs:(uuid,concept:(uuid,display),value,auditInfo:(dateCreated),groupMembers:(uuid,concept:(uuid,display),value,auditInfo:(dateCreated),groupMembers:(uuid,concept:(uuid,display),value))))`,A=(e,t)=>(0,c.m)(h(e,t));function u(e,t){let a=e?h(e,t):null,{data:i,error:s,isLoading:r}=n()(a,()=>(0,c.m)(a));return{encounters:[...i??[]].sort((e,t)=>(0,o.parseDate)(t.encounterDatetime).getTime()-(0,o.parseDate)(e.encounterDatetime).getTime()),error:s,isLoading:r}}let y={"1072AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA":"day","1073AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA":"week","1074AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA":"month","1734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA":"year"};function f(e){let{consultations:t}=(0,o.useConfig)(),{encounters:a,error:i,isLoading:n}=u(e,t.encounterType);return{consultations:a.map(e=>(function(e,t){let[a]=p(e.obs,t.date),i=(0,o.parseDate)(String(a?.value??e.encounterDatetime)),n=p(e.obs,t.prophylaxis).map(e=>{let[a]=p(e.groupMembers,t.prophylaxis);return a?p(e.groupMembers,t.dateStopped).length>0?`${d(a.value)} (stopped)`:d(a.value):null}).filter(Boolean).join("; "),[s]=p(e.obs,t.nextAmount),[c]=p(e.obs,t.nextPeriod),h=c?y[l(c.value)]:void 0,A=s&&h?r()((0,o.parseDate)(e.encounterDatetime)).add(Math.round(Number(s.value)),h).toDate():null;return{uuid:e.uuid,date:i,seenBy:(e.encounterProviders??[]).map(e=>e.provider?.display?.replace(/^.* - /,"")??"").filter(Boolean).join(", "),nyha:d(p(e.obs,t.nyha)[0]?.value??""),plan:n,nextReview:A}})(e,t.concepts)),encounters:a,error:i,isLoading:n}}},46(e,t,a){"use strict";a.d(t,{_:()=>i});let i={name:"act-dashboard",slot:"act-dashboard-slot",title:"dashboard"}},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"}},7928(e,t,a){"use strict";a.d(t,{m:()=>n});var i=a(6144);async function n(e){let t=t=>(0,i.openmrsFetch)(`${e}&totalCount=true&startIndex=${t}`).then(({data:e})=>e),a=await t(0),n=a.results.length,s=[];for(let e=n;n&&e<a.totalCount;e+=n)s.push(e);return[a,...await Promise.all(s.map(t))].flatMap(e=>e.results)}},4718(e,t,a){"use strict";a.d(t,{X:()=>r,y:()=>s});var i=a(6144);let n=()=>(0,i.getGlobalStore)("forms-engine-store",{controls:[],postSubmissionActions:[],expressionHelpers:{},fieldValidators:[],fieldValueAdapters:[],dataSources:[],formSchemaTransformers:[]}).getState();function s(e,t){n().expressionHelpers[e]=t}function r(e,t){let{controls:a}=n();a.some(t=>t.name===e)||a.push({name:e,type:e,load:t})}},9471(e,t,a){"use strict";a.r(t),a.d(t,{facilityReportsDashboardLink:()=>eJ,communityHomeQuickActions:()=>tw,runChartsDashboard:()=>te,worklistsDashboard:()=>eF,enterProphylaxisQuickAction:()=>tL,recordOralQuickAction:()=>tk,cardiacTestsDashboardLink:()=>em,backToActLink:()=>O,downloadDashboard:()=>tc,patientsOnProphylaxisDashboard:()=>th,prophylaxisPageDashboardLink:()=>z,waitingListDashboard:()=>eV,communityHomeDashboard:()=>tg,userFormWorkspace:()=>eL,dueForProphylaxisDashboardLink:()=>tA,allergiesPill:()=>ed,instanceAdminDashboardLink:()=>eX,actHelpContact:()=>M,studyFormWorkspace:()=>ev,reportViewDashboard:()=>eZ,actHomeWorklists:()=>ex,communityHomeDashboardLink:()=>tf,flagGapsWorkspace:()=>eT,registryDashboard:()=>eB,enrollmentWorkspace:()=>eD,sessionTimeout:()=>N,studiesDashboardLink:()=>tt,cardiacTestsDashboard:()=>eg,confirmatoryEchoWorklist:()=>eN,dashboard:()=>e3,researchPageDashboard:()=>Y,instanceAdminKpis:()=>tD,flagWorklist:()=>eM,medicationsCard:()=>ef,clinicsDashboard:()=>e2,dueForProphylaxisWorklist:()=>eO,clinicsBanner:()=>ey,reportsDashboard:()=>eK,screeningCountsDashboardLink:()=>ts,instanceAdminQuickActions:()=>tT,updatePatientStatusWorkspace:()=>e_,rolePermissionsDashboard:()=>e6,facilityReportQuickAction:()=>tC,nextStepsCard:()=>$,proceduralRecommendationsCard:()=>eA,runChartsDashboardLink:()=>e7,findPatientQuickAction:()=>tR,screenPositiveDashboard:()=>eq,scanPatientCardDashboardLink:()=>q,allergiesDashboardLink:()=>ei,researchPageDashboardLink:()=>J,recordBpgQuickAction:()=>tS,actHomeCareCascade:()=>eH,actHomeDashboardLink:()=>eR,actHomeQuickActions:()=>eU,consultationsDashboard:()=>ee,updateProphylaxisWorkspace:()=>ew,screeningCountsDashboard:()=>tr,facilityReportsDashboard:()=>eY,prophylaxisCard:()=>V,adminNav:()=>tb,cliniciansOnlyNote:()=>eb,inrEditWorkspace:()=>eu,reportsDashboardLink:()=>eQ,importTranslation:()=>W,registryDashboardLink:()=>eE,actHomeDashboard:()=>eC,instanceAdminDashboard:()=>e0,allergiesDashboard:()=>en,downloadDashboardLink:()=>to,refreshFlagsDashboard:()=>tn,waitingListWorklist:()=>ej,reportViewDashboardLink:()=>ez,formsAndSitesQuickAction:()=>tU,waitingListDashboardLink:()=>e$,usersDashboard:()=>e4,clinicsDashboardLink:()=>e9,startupApp:()=>F,clinicalFlags:()=>ep,instanceAdminNav:()=>tm,refreshFlagsDashboardLink:()=>ti,clinicFormWorkspace:()=>eP,updatePatientStatusButton:()=>G,prophylaxisPageDashboard:()=>Z,patientsOnProphylaxisDashboardLink:()=>tp,worklistsDashboardLink:()=>eW,logsDashboard:()=>tl,dashboardLink:()=>e1,dashboardExportWorkspace:()=>ek,anaphylaxisAlert:()=>el,registerPatientQuickAction:()=>tv,actHomeOverdueConsultation:()=>eI,inrStatusFlag:()=>ec,logsDashboardLink:()=>td,scanPatientCardDashboard:()=>Q,dueForProphylaxisWidget:()=>ty,researchParticipationQuickAction:()=>tI,inrReviewsDashboardLink:()=>es,inrReviewsDashboard:()=>er,medicationsDashboardLink:()=>et,dueForProphylaxisDashboard:()=>tu,consultationCard:()=>eo,rolePermissionsDashboardLink:()=>e8,usersDashboardLink:()=>e5,patientStatusFlags:()=>K,consultationsDashboardLink:()=>X,medicationsDashboard:()=>ea,screenPositiveDashboardLink:()=>eG,resetPasswordWorkspace:()=>eS,actHelpDocs:()=>j,rolePermissionsQuickAction:()=>tx,studiesDashboard:()=>ta,inrCard:()=>eh});var i=a(6144);let n=(e,t)=>({_type:i.Type.Array,_elements:{_type:i.Type.String},_default:t,_description:`Location tags that mark ${e}.`}),s=(e,t)=>({_type:i.Type.ConceptUuid,_default:t,_description:e}),r=(e,t)=>({_type:i.Type.String,_default:t,_description:e}),o={clinicLocationTags:{cardiac:n("cardiac clinics",["RHD Tertiary","RHD District"]),primaryCare:n("primary care clinics",["RHD Community"])},clinics:{levels:{_type:i.Type.Array,_elements:{_type:i.Type.Object,tag:{_type:i.Type.String,_description:"The location tag that gives a clinic this level."},level:{_type:i.Type.String,_description:"The level as the clinic's description names it."}},_default:[{tag:"RHD Tertiary",level:"Tertiary"},{tag:"RHD District",level:"District"},{tag:"RHD Community",level:"Community"}],_description:"The levels the Clinics page offers, as ACT 2.0's, each by its location tag. A clinic's description holds its type and level, as the distro seeds them: 'Public, District level'. Keep the tags the same as clinicLocationTags, which the rest of ACT reads; a clinic's parent is one of the levels whose tag is in clinicLocationTags.cardiac."},types:{_type:i.Type.Array,_elements:{_type:i.Type.String},_default:["Public","Private Not-For-Profit","Private For-Profit"],_description:"The types the Clinics page offers, as ACT 2.0's; a clinic keeps a type of its own when edited."},newClinicTags:{_type:i.Type.Array,_elements:{_type:i.Type.String},_default:["Visit Location","Queue Location","Login Location"],_description:"Location tags a clinic added on the Clinics page gets beside its level, so users sign in and record visits there."}},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","RHD referred to a clinician"],_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: a translation key, or text shown as written."},url:{_type:i.Type.String,_description:"Where the choice leads."}},_default:[{label:"enterBpg",url:"${openmrsSpaBase}/forms/form/0119d2e6-e2e1-391c-9b88-d59a10b0780d"},{label:"enterOralProphylaxis",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 3's form builder, for a user holding App: act.instanceAdmin.","${openmrsSpaBase}/form-builder"),rolePermissionsUrl:r("Where the Role permissions quick action on the Instance dashboard leads: ACT's Role permissions page, which sets the capabilities each ACT role has.","${openmrsSpaBase}/home/act-role-permissions"),researchParticipationUrl:r("Where the Research participation quick action on the Instance dashboard leads: ACT's Studies page, where the research studies and their participants are, for a user holding App: act.instanceAdmin.","${openmrsSpaBase}/home/act-studies")},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","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","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 every ACT role but Data Clerk, an instance administrator the clinician roles and Site Administrator, and a site administrator the clinician roles and Data Clerk. Each is what ACT Core lets it give (actcore.users.globalAdministratorRoles, instanceAdministratorRoles and siteAdministratorRoles), so set both together."}},helpMenu:{contactUrl:r("Where the Help menu's Contact us leads, such as mailto:support@example.org; each site sets its own. Empty hides it.",""),docsUrl:r("Where the Help menu's Docs leads, in a new tab. Empty hides it.","")},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: ACT's Clinics page, for a user holding Manage Locations.","${openmrsSpaBase}/home/act-clinics"),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"),screeningCountsUrl:r("Where the left nav's Screening counts leads: the page where each clinic's monthly screening counts are entered, for a user holding App: act.screeningCounts.","${openmrsSpaBase}/home/act-screening-counts"),logsUrl:r("Where the left nav's Logs leads: ACT's Logs page (Activity, Patients opened, Downloads and Sign-ins), for a user holding View Audit Logs, View Read Audit Logs or View Security Audit Logs.","${openmrsSpaBase}/home/act-logs"),auditLogsUrl:r("Where the Activity tab's links to the audit module lead: the module's own Audit Logs page, which lists every revision of every entity, including the server's own setup. A row's link adds the user as its username filter.","${openmrsBase}/module/auditlogweb/auditlogs.form"),readAuditUrl:r("Where the Patients opened tab's link to the audit module leads: the module's read audit page, with every read.","${openmrsBase}/module/auditlogweb/readauditlogs.form"),securityAuditUrl:r("Where the Sign-ins tab's link to the audit module leads: the module's security log page, with locked accounts and the full security record.","${openmrsBase}/module/auditlogweb/securityauditlogs.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")},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 and the Dashboard draw 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 ACT home widget and the Dashboard call it: a translation key, or text shown as written."}},_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:"coveredToday"},{step:"Adherent (80%+)",label:"adherentEightyPercent"},{step:"Adherent",label:"adherentEightyPercent"}],_description:"The report's steps the ACT home widget and the Dashboard draw, 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."}},reportCatalogue:{_type:i.Type.Array,_elements:{_type:i.Type.Object,id:{_type:i.Type.String,_description:"What the report page's link names it by: /home/act-report?report=<id>."},report:{_type:i.Type.String,_description:"The report, by uuid or name, whose rows the page shows as a table."},label:{_type:i.Type.String,_description:"What the Reports page and the report page call it."},description:{_type:i.Type.String,_description:"A line on the Reports page saying what the report holds."},clinicColumn:{_type:i.Type.String,_default:"",_description:"The report's column naming a row's clinic, by which a user limited to clinics is held to theirs. Blank for a report with none, which such a user is not offered."}},_default:[{id:"visits",report:"b2c3d4e5-f6a7-8901-abcd-234567890abc",label:"Visits",description:"Each RHD clinic visit in a period, with its encounters and the patient.",clinicColumn:"location"},{id:"encounters",report:"d4e5f6a7-b8c9-0123-def0-456789012cde",label:"Encounters",description:"Each RHD encounter in a period, with its type, location and provider.",clinicColumn:"location"},{id:"inr-monitoring",report:"d3a1f2b4-7c8e-4f90-b123-456789abcdef",label:"INR monitoring",description:"Each INR reading of the patients on warfarin in a period, with the target range.",clinicColumn:"location"}],_description:"The reports the Reports page offers to open as a table, each with Download CSV. A report that names patients shows them as the Registry does, to whoever may open the Reports page."},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:{registrantsReport:{_type:i.Type.String,_default:"3b0a6c2e-8f41-5d7b-9e15-6a2c4d8f0b71",_description:"The RHD Dashboard Registrants report, by uuid or name: counts by status, and of the active registrants by sex, age band and disease (its breakdown, label and patients columns), for the Dashboard's registrant figures."},waitlistReport:{_type:i.Type.String,_default:"9d4e2f7a-1c63-5b08-8a2d-4f6e1b9c3a52",_description:"The RHD Dashboard Waitlist report, by uuid or name: the open recommendations by procedure and urgency, the patients waiting and the balloon valvuloplasties and surgeries performed (its breakdown, procedure, urgency, patients and recommendations columns), for the Dashboard's waitlist."},showScreening:{_type:i.Type.Boolean,_default:!0,_description:"Show the Dashboard's screening sections: the screening cascade, the monthly screening counts, and the screening from registrations. Turn it off at a site without a screening programme."},screeningReport:{_type:i.Type.String,_default:"0f4b7c2d-6a1e-5d93-8b47-2c9e1f5a3d68",_description:"The RHD Dashboard Screening report, by uuid or name: the patients registered in a period by sex, Screen +, age at registration and how the case was detected, for the Dashboard's screening from registrations."},registrantPatientsReport:{_type:i.Type.String,_default:"e8296d2d-def8-5f8e-ba2d-78c59859b9e3",_description:"The RHD Dashboard Registrant Patients report, by uuid or name: the patients behind one of the registrants report's figures, for the Dashboard's links."},waitlistPatientsReport:{_type:i.Type.String,_default:"bc987343-8b70-5f95-84a8-d017cffa14da",_description:"The RHD Dashboard Waitlist Patients report, by uuid or name: the recommendations or patients behind one of the waitlist report's figures, for the Dashboard's links."},cascadePatientsReport:{_type:i.Type.String,_default:"7c62fcfd-03b2-5d84-9cea-92a43b70ae76",_description:"The RHD Care Cascade Patients report, by uuid or name: the patients of one care cascade step, for the Dashboard's links."},optimisationPatientsReport:{_type:i.Type.String,_default:"45c646b2-f223-585e-963a-3c74fe883ae4",_description:"The RHD Medical Optimisation Patients report, by uuid or name: the patients, consultations or recommendations behind one measure, for the Dashboard's links."},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 and the two recommendation figures in its Procedural waitlist."},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."}},procedures:{form:{_type:i.Type.UUID,_default:"bf762810-2bf1-3ca3-bdbe-8bd71fd5d59a",_description:"The Procedures and Outcomes form, which Record procedure opens on the patient summary and the Procedural waiting list (AR-191)."},encounterType:{_type:i.Type.UUID,_default:"c9b87090-8768-50be-987e-8ca0a8983429",_description:"Procedures and Outcomes' encounter type. A procedure recorded there completes the matching interventional recommendation (AR-162)."},concepts:{_type:i.Type.Object,_default:{date:"6cbb5176-144a-576b-9b3d-c9e9d6bc5f5a",surgeryType:"46f4af80-b783-59f4-beb1-81144ccf3084",catheterizationType:"bb4a77ee-836a-57e7-a262-632fa22288d2"},_description:"Procedures and Outcomes' Date of Procedure, Surgery Type and Catheterization Type. The two types' answers are the consultation's Interventional Recommendation(s) answers, so a recorded procedure matches its recommendation."}},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",medicationInterval:"04d77200-fa10-5c15-b58a-609bf8eadefb",dateStarted:"5bcc7d12-b279-5955-815c-090a1f392071",dateAdded:"b8514967-2259-5a4d-9ac5-b9319144b8dc",chronicCondition:"d80478b2-4ed2-5d93-a604-6b5b50dab441",allergy:"cd73e118-64ee-5855-b276-f7cb44fdcf7e",complication:"a04d2268-a7de-589f-b4b6-92c47c13e342",recommendation:"ce93d393-1df5-587f-bf11-c373eac2ccf4",procedureType:"3a576b80-744a-59ee-9515-d9fdca06f3d7",urgency:"7b8eda07-34b6-55f2-ab6c-1b295f41918b"},_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) with its Dosing, Dosing Interval and Date Started, Date Added on the chronic condition, allergy and RHD complication lists (each group and its name share the concept), and Interventional Recommendation(s) (group and procedure share the concept) with its Procedure Type and Urgency."},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 with one active on the Medications page (recorded in a consultation or a Medication Update, not stopped) has the INR reviews page and card."},penicillinAllergyAnswers:{_type:i.Type.Array,_elements:{_type:i.Type.UUID},_default:["149071AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","b4e6c064-ab4f-5ee4-9837-094731ee23d4"],_description:"The Allergy answers, on consultations and RHD Allergies, that are an allergy to penicillin, which the patient banner and the consultation form mark: Penicillin (allergy) and Penicillin (anaphylaxis), as the patients report counts them. An answer named penicillin is marked whatever its uuid."},vitals:{_type:i.Type.Array,_elements:{_type:i.Type.Object,label:{_type:i.Type.String,_description:"The name the consultation form shows before the value."},concepts:{_type:i.Type.Array,_elements:{_type:i.Type.UUID},_description:"The concept, or concepts whose values are shown joined by '/', as blood pressure's two."},unit:{_type:i.Type.String,_description:"The unit shown after the value."}},_default:[{label:"BP",concepts:["5085AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","5086AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"],unit:"mmHg"},{label:"Pulse",concepts:["5087AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"],unit:"bpm"},{label:"Temp",concepts:["5088AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"],unit:"\xb0C"},{label:"RR",concepts:["5242AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"],unit:"/min"},{label:"SpO2",concepts:["5092AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"],unit:"%"},{label:"Weight",concepts:["5089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"],unit:"kg"},{label:"Height",concepts:["5090AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"],unit:"cm"},{label:"MUAC",concepts:["1343AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"],unit:"cm"}],_description:"The vitals and biometrics the consultation form shows at its top, read from what the Vitals & Biometrics form recorded in the consultation's visit, in this order. The concepts are the vitals app's defaults."}},medications:{encounterType:{_type:i.Type.UUID,_default:"e3f1b6a8-5c2d-4f7e-9a41-6d8b2c0e7f53",_description:"The RHD Medication Update encounter type. The Medications page reads its Cardiac Medication records with the consultations', the latest record of a medicine deciding whether it is active."},form:{_type:i.Type.UUID,_default:"6fc2cd4c-3bd8-3888-88ae-53e6eb7debb3",_description:"The RHD Medication Update form, which the Medications page's Add opens. Who may record it is its encounter type's edit privilege."}},allergies:{encounterType:{_type:i.Type.UUID,_default:"8a687651-3554-4255-941c-812d7a21312e",_description:"The RHD Allergies encounter type. Its allergies are read with the consultations', the latest record of an allergy deciding whether it is current or past."},form:{_type:i.Type.UUID,_default:"baeb5cfb-8433-3ad7-a1e6-1e7f449e9dbe",_description:"The RHD Allergies form, which the Allergies page's Add and Edit open. Who may record it is its encounter type's edit privilege."},concepts:{_type:i.Type.Object,_default:{reaction:"8200713e-8647-52f0-b93d-841e4e9687b7",dateResolved:"8fbebbea-16dd-5dc5-98f0-c522cab26e19",noKnownAllergies:"160557AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},_description:"The Allergy group's Reaction (a group and its answers share the concept) and Date Resolved, which moves an allergy to past, and the Allergy Name answer No known allergies, which is not an allergy. The allergy and its Date Added are the consultation's concepts."}},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",doseChange:"a72dadd1-27de-5578-9595-31d2b621870d",indication:"6e8ed53f-15e6-5b00-9ed0-44b11bd2d638"},_description:"The INR form's questions: Indication, INR Target, the INR Value group with its Date Tested, INR Value, Dose Change and New Anticoagulant Dose, and Next INR Date."},answers:{_type:i.Type.Object,_default:{yes:"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",no:"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",targets:[{label:"1.5-2.5",uuid:"2822a113-1cd3-510e-b5bf-95b9279b1a4f"},{label:"2.0-3.0",uuid:"d894d89a-04bd-5fc0-91a0-5dc3ddd8802b"},{label:"2.5-3.5",uuid:"ea841a3a-f9cb-5761-aac6-939ffb158d94"}]},_description:"The INR form's answers the INR editor offers: Yes and No for Dose Change, and the INR Target ranges with their labels. These uuids are copied from distro/configuration/ampathforms/rhd_inr_monitoring.json and must be kept in step with it."}},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 of the patient's contact details: Primary Phone, Phone Owner Name, Primary Care Clinic and Assigned Cardiac Clinic. The patient banner shows the two clinics and the Consultation visits card the cardiac clinic; the banner's Show more lists the phone and phone owner from the patient banner app's contactAttributeTypes."}},clinicianPrivilege:{_type:i.Type.String,_default:"Task: act.enterClinicalForms",_description:'The privilege that marks a clinician for the chart: the Prophylaxis card offers its holders both Record BPG and Record oral whatever is prescribed, 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:s("The Yes answer of registry consent and of the research opt-in.","1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"),noConcept:s("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:s("Date of Echocardiogram, the date a row shows; without one, the encounter date.","911be530-9457-54be-8515-4bbcdb832ccb"),mitralRegurgitation:s("Mitral Regurgitation, the Mitral regurgitation column.","d6ab05e2-1ece-5f8f-893d-74739aa66ce5"),mitralStenosis:s("Mitral stenosis severity, the Mitral stenosis column.","ed209fc3-0138-516c-a0bd-bcd3b2697a87"),aorticRegurgitation:s("Aortic Regurgitation, the Aortic regurgitation column.","0bbc510f-1e95-5c74-bbe3-8896907fd6c1"),aorticStenosis:s("Aortic Stenosis, the Aortic stenosis column.","7586c9a6-73db-5ab2-8f23-71a3cc4bae62"),ejectionFraction:s("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:s("Date of Electrocardiogram, the date a row shows; without one, the encounter date.","a85d4e63-500f-5af9-8ebd-9e1db5ddc3ed"),result:s("Electrocardiogram Result, the Result column, one answer per finding.","1c5476e4-ff12-5fbd-b2ad-53f66f9006a0"),otherFinding:s("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:s("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:s("Dose given, the BPG dose a row shows; an injection saved before the form asked it has none.","6a52b6aa-2427-4fa2-93cb-18956f50c16a"),facility:s("Facility, a location picked on the BPG form; without one, the encounter location.","01e6dd39-b8ba-5b0a-bcd7-6b8d5973c1bc"),lateReason:s("If injection(s) late, why?, the reasons a late injection tag names.","f7cbfcdc-58bb-5e85-86ab-ffce26a08615"),estimateDate:s("Date of Adherence Estimate, the date an oral row shows; without one, the encounter date.","99512ab5-208e-5c37-8f7b-8f72abe2a0db"),adherence:s("Adherence Estimate, the percentage an oral row shows.","8edff8dc-4af6-5d0f-bf1d-8e349c7a1b15"),basedOn:s("Adherence Based On, what an oral row says the estimate was based on.","4313005d-d5b2-5d20-bf33-39aab1bf90c0"),lowAdherenceReason:s("Explanation if Adherence is Below 80%, the reason an oral row gives for low adherence.","a9fbf67b-65d7-57f6-8270-7bb65cd49469"),newPrescription:s("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."}},prophylaxisUpdate:{encounterType:{_type:i.Type.UUID,_default:"8a51f352-5f1b-4836-a669-536e276a21db",_description:"The RHD Prophylaxis Update encounter type, which the Prophylaxis card's Update prophylaxis saves. Its edit privilege says who may."},concepts:{_type:i.Type.Object,_default:{prescription:"668e0221-8b41-5669-9ad8-78e193d42494",dateStarted:"5bcc7d12-b279-5955-815c-090a1f392071",dateStopped:"d75edc42-3213-5a06-9228-4e5735b9594b",reasonStopped:"fa21e431-e64d-5493-b18c-9a1eaf7ee16a",duration:"11117263-f71d-58e2-8363-d2e9b1dbddab",consultationDate:"c3edefd2-5777-5084-b01e-fd4ca0e40162",none:"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},_description:"The questions of a prophylaxis prescription as the consultation form records them: Secondary Antibiotic Prophylaxis (the group and its regimen share the concept) with its Date Started, Date Stopped and Reason Stopped, the encounter's Secondary Antibiotic Prophylaxis Duration, the Date of Consultation Visit that ACT Core dates a prescription by when there is one, and the None answer that prescribes nothing."},regimens:{_type:i.Type.Array,_elements:{uuid:{_type:i.Type.UUID,_description:"The regimen answer."},label:{_type:i.Type.String,_description:"The choice as the update shows it."}},_default:[{uuid:"50be4b26-6c5b-5aaa-9254-3bfd313b4522",label:"Q28 day BPG"},{uuid:"2f3ee632-dd14-51b0-a4ec-de10e7958019",label:"Q21 day BPG"},{uuid:"91230c88-6a90-5d45-af50-fa6155fe5dd7",label:"Q14 day BPG"},{uuid:"b9884219-358a-594b-94f5-f8a8863a25f3",label:"Oral Penicillin V"},{uuid:"f2e06eb2-5c25-5e53-9e01-246112d05976",label:"Oral Sulfadiazine"},{uuid:"fb8b6676-689b-5daa-83f7-1456210c587f",label:"Oral Erythromycin"},{uuid:"f6f25d63-bd1a-51cb-9596-e74a19759429",label:"Oral Clarithromycin"},{uuid:"1af922b8-acee-56c8-b184-eaef4e58e23a",label:"Oral Azithromycin"},{uuid:"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",label:"Other non-coded"}],_description:"The regimens Update prophylaxis offers, as the consultation form's Secondary Antibiotic Prophylaxis does."},durations:{_type:i.Type.Array,_elements:{uuid:{_type:i.Type.UUID,_description:"The duration answer."},label:{_type:i.Type.String,_description:"The choice as the update shows it."}},_default:[{uuid:"6f2c4ca8-a499-5851-975b-5bfb426143a9",label:"1 year and reassess"},{uuid:"a3f9bcd3-787f-58b3-ae36-c494725a67eb",label:"2 years and reassess"},{uuid:"024cdfe6-c2eb-521c-8616-4729ac35439e",label:"5 years or until age 21, whichever is longer"},{uuid:"ecc08a4c-6494-5737-b142-f59d18c07db1",label:"10 years or until age 40, whichever is longer"},{uuid:"e13a5d80-2ba1-5927-b4e6-7369473222e1",label:"Lifetime"}],_description:"The durations Update prophylaxis offers, as the consultation form's Secondary Antibiotic Prophylaxis Duration does."},reasons:{_type:i.Type.Array,_elements:{uuid:{_type:i.Type.UUID,_description:"The reason answer."},label:{_type:i.Type.String,_description:"The choice as the update shows it."}},_default:[{uuid:"121689AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",label:"Allergy"},{uuid:"148888AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",label:"Anaphylaxis"},{uuid:"eaf16fa9-03d7-5846-94c3-b02805889ed9",label:"Provider Stopped"},{uuid:"39af49bd-5dd0-5acd-8ffb-260bc83dbfd7",label:"Patient Preference"},{uuid:"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",label:"Other non-coded"}],_description:"The reasons Update prophylaxis offers for stopping, as the consultation form's Reason Stopped does."}},patientStatus:{programUuid:{_type:i.Type.UUID,_default:"7d73e143-a550-5a9d-aecd-dd771add098d",_description:"The registry programme whose enrolment holds a patient's status: Update patient status ends it in one of the terminal states of its workflow, which the registry, the worklists and the Dashboard read."},deathConcept:{_type:i.Type.UUID,_default:"159AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",_description:"The concept of the workflow's Deceased state, which also marks the person dead as Mark patient deceased did."}},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."},patientInformationForm:{_type:i.Type.UUID,_default:"a6646c51-130d-3b59-a442-959bea93487d",_description:"The RHD Patient Information form: the patient's latest is edited, when it is in singleRecordForms, as by default. A diagnosis an AR-167-interim consultation recorded is listed until one is saved on Patient Information."},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: a translation key, or text shown as written."},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:"urgencyEmergent",shortLabel:"1: Emergent",concept:"1fe15210-4490-58b0-a38c-bb0386e98482",deadlineDays:1},{label:"urgencyWithinOneWeek",concept:"406285f2-be72-5594-8664-c8568ad9bc88",deadlineDays:7},{label:"urgencyWithinOneMonth",concept:"82c5209b-c183-5bc9-941c-890eba821a44",deadlineDays:30},{label:"urgencyUrgent",shortLabel:"2: Urgent",concept:"33bf504a-15f2-5504-9bdc-ddded0b5eb00",deadlineDays:60},{label:"urgencyWithinThreeMonths",concept:"925610f9-1c3c-5396-880f-02a5fe309d53",deadlineDays:90},{label:"urgencyElective",shortLabel:"3: Elective",concept:"2666bf97-7400-57c7-b535-7903e22ced34",deadlineDays:180},{label:"urgencyWithinSixMonths",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(7858);a(4335);var d=a(8940),l=a(8596),p=a(2762),h=a(3394),A=a(7003);function u(){let{user:e}=(0,i.useSession)();return!!e&&(0,i.userHasAccess)(A.hG,e)}var y=a(7056),f=a(9218),b=a(1943),m=a(5482),g=a(1256),_=a(2066),w=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 v={name:"act-scan-patient-card",slot:"act-scan-patient-card-dashboard-slot",title:"scanPatientCard"};var L=a(5970),S=a(5779),k=a(8406),R=a.n(k),C=a(4718);async function U(e,t){if(!e||!t)return null;try{let{data:a}=await (0,i.openmrsFetch)(`${i.restBaseUrl}/actcore/prophylaxis?patient=${e}`);if(a?.type!=="BPG"||!a.intervalDays)return null;return R()(t).startOf("day").add(a.intervalDays,"day").toDate()}catch{return null}}let x="Vitals not recorded at this visit";async function I(e,t){try{var a,n;let s,r;if(!e)throw Error("No patient");if(!t)return x;let{consultations:o}=await (0,i.getConfig)("@act-registry/esm-act-app"),{data:c}=await (0,i.openmrsFetch)(`${i.restBaseUrl}/visit/${t}?v=custom:(encounters:(voided,obs:(concept:(uuid),value,obsDatetime,voided)))`);return a=(c?.encounters??[]).filter(e=>!e.voided).flatMap(e=>e.obs??[]),n=o.vitals,s=new Map,a.filter(e=>!e.voided).forEach(e=>{let t=s.get(e.concept.uuid);(!t||e.obsDatetime>t.obsDatetime)&&s.set(e.concept.uuid,e)}),(r=n.filter(e=>e.concepts.some(e=>s.has(e))).map(e=>`${e.label} ${e.concepts.map(e=>s.get(e)?.value??"–").join("/")} ${e.unit}`)).length?`Vitals at this visit: ${r.join(", ")}`:x}catch{return"Vitals unavailable"}}let H={"act-worklist-cardiology-follow-up":{flag:"RHD cardiology follow-up due",title:"cardiologyFollowUpDue",tone:"orange",dueDateColumn:"next_consultation_date"},"act-worklist-lost-to-follow-up":{flag:"RHD lost to follow-up",title:"lostToFollowUp",tone:"red"},"act-worklist-post-procedural-follow-up":{flag:"RHD 30-day follow-up due",title:"postProceduralFollowUpDue",tone:"orange"},"act-worklist-pregnancy-outcome":{flag:"RHD delivery outcome overdue",title:"pregnancyOutcomeDue",tone:"orange"},"act-worklist-referred-to-clinician":{flag:"RHD referred to a clinician",title:"referredToAClinician",tone:"orange"},"act-worklist-inr-review":{flag:"RHD INR review due",title:"inrReviewDue",tone:"orange",dueDateColumn:"next_inr_date"}},E="@act-registry/esm-act-app",B={featureName:"act",moduleName:E},W=a(4767);function F(){(0,i.defineConfigSchema)(E,o),Object.entries(H).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: a translation key, or text shown as written."},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,L.KP)(),(0,C.y)("actNextInjectionDue",U),(0,S.gx)(),(0,C.y)("actVisitVitals",I)}let O=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("4921")]).then(a.bind(a,9472)),B),N=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("77")]).then(a.bind(a,172)),B),M=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("647"),a.e("9245"),a.e("2262")]).then(a.bind(a,4508)),B),j=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("647"),a.e("9245"),a.e("8935")]).then(a.bind(a,9285)),B),$=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2889"),a.e("9314"),a.e("3106"),a.e("4718"),a.e("6449"),a.e("1617"),a.e("319"),a.e("9245"),a.e("8405"),a.e("6133")]).then(a.bind(a,8932)),B),V=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("8405"),a.e("8393"),a.e("9152"),a.e("4516")]).then(a.bind(a,611)),B),G=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("8094")]).then(a.bind(a,3517)),B),q=(0,i.getSyncLifecycle)(function(){let{t:e}=(0,b.useTranslation)();return(0,c.jsx)(d.p,{meta:{...v,title:e("scanPatientCard","Scan patient card")}})},B),Q=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("4771"),a.e("9245"),a.e("50"),a.e("129")]).then(a.bind(a,6808)),B),K=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2230"),a.e("7326")]).then(a.bind(a,3956)),B),z=(0,i.getSyncLifecycle)((0,i.createDashboard)({slot:"act-prophylaxis-dashboard-slot",path:"act-prophylaxis",title:"Prophylaxis",icon:"omrs-icon-medication"}),B),Z=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("8405"),a.e("8393"),a.e("9152"),a.e("7367")]).then(a.bind(a,6474)),B),J=(0,i.getSyncLifecycle)((0,i.createDashboard)(f.K),B),Y=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9314"),a.e("413"),a.e("9245"),a.e("7996")]).then(a.bind(a,8186)),B),X=(0,i.getSyncLifecycle)((0,i.createDashboard)({slot:"act-consultations-dashboard-slot",path:"act-consultations",title:"Consultation visits",icon:"omrs-icon-calendar-heat-map"}),B),ee=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("8405"),a.e("8393"),a.e("2325"),a.e("6204")]).then(a.bind(a,6679)),B),et=(0,i.getSyncLifecycle)((0,i.createDashboard)({slot:"act-medications-dashboard-slot",path:"act-medications",title:"Medications",icon:"omrs-icon-medication"}),B),ea=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("8405"),a.e("8393"),a.e("2325"),a.e("8549"),a.e("330")]).then(a.bind(a,3268)),B),ei=(0,i.getSyncLifecycle)((0,i.createDashboard)({slot:"act-allergies-dashboard-slot",path:"act-allergies",title:"Allergies",icon:"omrs-icon-warning"}),B),en=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("8405"),a.e("8393"),a.e("2325"),a.e("8549"),a.e("1045")]).then(a.bind(a,7991)),B),es=(0,i.getAsyncLifecycle)(()=>a.e("4924").then(a.bind(a,23)),B),er=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("8405"),a.e("8393"),a.e("7551"),a.e("7077")]).then(a.bind(a,6402)),B),eo=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("8405"),a.e("8393"),a.e("2325"),a.e("2744")]).then(a.bind(a,688)),B),ec=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2230"),a.e("9176")]).then(a.bind(a,9370)),B),ed=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("8405"),a.e("8393"),a.e("2325"),a.e("7909")]).then(a.bind(a,6420)),B),el=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("6449"),a.e("9245"),a.e("8909")]).then(a.bind(a,5367)),B),ep=(0,i.getAsyncLifecycle)(()=>a.e("197").then(a.bind(a,7796)),B),eh=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("8405"),a.e("8393"),a.e("7551"),a.e("1865")]).then(a.bind(a,3939)),B),eA=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("8405"),a.e("8346")]).then(a.bind(a,9841)),B),eu=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("2471")]).then(a.bind(a,2218)),B),ey=(0,i.getAsyncLifecycle)(()=>a.e("8759").then(a.bind(a,5914)),B),ef=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("8405"),a.e("8393"),a.e("2325"),a.e("8549"),a.e("6828")]).then(a.bind(a,2071)),B),eb=(0,i.getAsyncLifecycle)(()=>a.e("5189").then(a.bind(a,1252)),B),em=(0,i.getSyncLifecycle)((0,i.createDashboard)({slot:"act-cardiac-tests-dashboard-slot",path:"act-cardiac-tests",title:"Cardiac tests",icon:"omrs-icon-activity"}),B),eg=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("8405"),a.e("8393"),a.e("1397")]).then(a.bind(a,6820)),B),e_=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("3939")]).then(a.bind(a,6910)),B),ew=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("9498")]).then(a.bind(a,7425)),B),eT=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("8405"),a.e("1691")]).then(a.bind(a,1910)),B),eD=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("2662")]).then(a.bind(a,8165)),B),eP=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("7743")]).then(a.bind(a,6450)),B),ev=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("4710")]).then(a.bind(a,917)),B),eL=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("1067")]).then(a.bind(a,854)),B),eS=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("5416")]).then(a.bind(a,456)),B),ek=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("4480"),a.e("8100"),a.e("9245"),a.e("2869"),a.e("4259")]).then(a.bind(a,9193)),B),eR=(0,i.getSyncLifecycle)(function(){return(0,c.jsx)(d.p,{meta:l.DL})},B),eC=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("9245"),a.e("3530")]).then(a.bind(a,5626)),B),eU=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("647"),a.e("2889"),a.e("9245"),a.e("1570")]).then(a.bind(a,6640)).then(({ActHomeQuickActions:e})=>({default:e})),B),ex=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("647"),a.e("2889"),a.e("9245"),a.e("9217")]).then(a.bind(a,5255)),B),eI=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("647"),a.e("2889"),a.e("9245"),a.e("8345")]).then(a.bind(a,6475)),B),eH=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("647"),a.e("2889"),a.e("9245"),a.e("546")]).then(a.bind(a,5950)),B),eE=(0,i.getSyncLifecycle)(function(){return(0,c.jsx)(d.p,{meta:p.J})},B),eB=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("4480"),a.e("9245"),a.e("6669"),a.e("7201")]).then(a.bind(a,6388)),B),eW=(0,i.getSyncLifecycle)(function(){return(0,c.jsx)(d.p,{meta:h.av})},B),eF=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("27")]).then(a.bind(a,6070)),B),eO=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("4480"),a.e("9245"),a.e("8405"),a.e("6669"),a.e("8872"),a.e("7172")]).then(a.bind(a,4966)),B),eN=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("4480"),a.e("9245"),a.e("8405"),a.e("6669"),a.e("2143"),a.e("9921")]).then(a.bind(a,2639)),B),eM=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("4480"),a.e("9245"),a.e("6669"),a.e("5216")]).then(a.bind(a,7094)),B),ej=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("4480"),a.e("9245"),a.e("8405"),a.e("6669"),a.e("3226"),a.e("6558")]).then(a.bind(a,5462)),B),e$=(0,i.getSyncLifecycle)(function(){return u()?null:(0,c.jsx)(d.p,{meta:y.d})},B),eV=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("4480"),a.e("9245"),a.e("8405"),a.e("6669"),a.e("3226"),a.e("211")]).then(a.bind(a,9617)),B),eG=(0,i.getSyncLifecycle)(function(){let{t:e}=(0,b.useTranslation)();return u()?null:(0,c.jsx)(d.p,{meta:{...m.b,title:e("diagnosisToConfirm","Diagnosis to confirm")}})},B),eq=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("4480"),a.e("9245"),a.e("8405"),a.e("6669"),a.e("2143"),a.e("2287")]).then(a.bind(a,2866)),B),eQ=(0,i.getSyncLifecycle)(function(){let{t:e}=(0,b.useTranslation)();return(0,c.jsx)(d.p,{meta:{...T,title:e("reports","Reports")}})},B),eK=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("647"),a.e("2889"),a.e("9245"),a.e("289"),a.e("781")]).then(a.bind(a,7562)),B),ez=(0,i.getSyncLifecycle)(function(){return null},B),eZ=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("4480"),a.e("9245"),a.e("6669"),a.e("6993")]).then(a.bind(a,9972)),B),eJ=(0,i.getSyncLifecycle)(function(){let{t:e}=(0,b.useTranslation)();return(0,g.z)()?null:(0,c.jsx)(d.p,{meta:{...D,title:e("facilityReports","Facility reports")}})},B),eY=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("647"),a.e("2889"),a.e("9245"),a.e("289"),a.e("8431")]).then(a.bind(a,8528)),B),eX=(0,i.getSyncLifecycle)(function(){return(0,g.z)()?null:(0,c.jsx)(d.p,{meta:P.iX})},B),e0=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("9245"),a.e("5691")]).then(a.bind(a,3235)),B),e5=(0,i.getAsyncLifecycle)(()=>a.e("497").then(a.bind(a,3016)),B),e4=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("4480"),a.e("2889"),a.e("9314"),a.e("413"),a.e("2109"),a.e("9245"),a.e("1791"),a.e("5719")]).then(a.bind(a,4727)),B),e9=(0,i.getAsyncLifecycle)(()=>a.e("3957").then(a.bind(a,3684)),B),e2=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("9314"),a.e("413"),a.e("9245"),a.e("5521")]).then(a.bind(a,6872)),B),e8=(0,i.getAsyncLifecycle)(()=>a.e("6429").then(a.bind(a,668)),B),e6=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("9245"),a.e("7173")]).then(a.bind(a,5332)),B),e1=(0,i.getAsyncLifecycle)(()=>a.e("2122").then(a.bind(a,8449)),B),e3=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("4480"),a.e("647"),a.e("2889"),a.e("9622"),a.e("8100"),a.e("9245"),a.e("289"),a.e("2869"),a.e("4359"),a.e("8797")]).then(a.bind(a,3770)),B),e7=(0,i.getSyncLifecycle)(function(){return null},B),te=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("9622"),a.e("9245"),a.e("4359"),a.e("2393")]).then(a.bind(a,6128)),B),tt=(0,i.getAsyncLifecycle)(()=>a.e("8773").then(a.bind(a,3828)),B),ta=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("4480"),a.e("9314"),a.e("413"),a.e("9245"),a.e("7526")]).then(a.bind(a,8053)),B),ti=(0,i.getAsyncLifecycle)(()=>a.e("4945").then(a.bind(a,5272)),B),tn=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("9245"),a.e("5693")]).then(a.bind(a,3660)),B),ts=(0,i.getAsyncLifecycle)(()=>a.e("9257").then(a.bind(a,4259)),B),tr=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("9245"),a.e("808")]).then(a.bind(a,7467)),B),to=(0,i.getAsyncLifecycle)(()=>a.e("4107").then(a.bind(a,4550)),B),tc=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("4480"),a.e("9245"),a.e("5368")]).then(a.bind(a,2760)),B),td=(0,i.getAsyncLifecycle)(()=>a.e("6317").then(a.bind(a,5868)),B),tl=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("4480"),a.e("9245"),a.e("1791"),a.e("1079")]).then(a.bind(a,6695)),B),tp=(0,i.getSyncLifecycle)(function(){return null},B),th=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("4480"),a.e("8668"),a.e("9245"),a.e("8405"),a.e("8872"),a.e("2786"),a.e("9410")]).then(a.bind(a,8895)),B),tA=(0,i.getSyncLifecycle)(function(){let{t:e}=(0,b.useTranslation)();return(0,g.z)()?null:(0,c.jsx)(d.p,{meta:{..._.E,title:e("dueForProphylaxis","Due for prophylaxis")}})},B),tu=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("4480"),a.e("9245"),a.e("8405"),a.e("8872"),a.e("2786"),a.e("5634")]).then(a.bind(a,7868)),B),ty=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("4480"),a.e("647"),a.e("2889"),a.e("9245"),a.e("8405"),a.e("8872"),a.e("2786"),a.e("3741")]).then(a.bind(a,8041)),B),tf=(0,i.getSyncLifecycle)(function(){return(0,g.z)()?null:(0,c.jsx)(d.p,{meta:w.SJ})},B),tb=(0,i.getAsyncLifecycle)(()=>a.e("3385").then(a.bind(a,3136)),B),tm=(0,i.getAsyncLifecycle)(()=>a.e("6841").then(a.bind(a,3936)),B),tg=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("9245"),a.e("2379")]).then(a.bind(a,5455)),B),t_=()=>Promise.all([a.e("647"),a.e("2889"),a.e("9245"),a.e("1570")]).then(a.bind(a,6640)),tw=(0,i.getAsyncLifecycle)(()=>t_().then(({CommunityHomeQuickActions:e})=>({default:e})),B),tT=(0,i.getAsyncLifecycle)(()=>t_().then(({InstanceAdminQuickActions:e})=>({default:e})),B),tD=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("6020")]).then(a.bind(a,4703)).then(({InstanceAdminKpis:e})=>({default:e})),B),tP=()=>Promise.all([a.e("647"),a.e("2889"),a.e("3106"),a.e("4718"),a.e("1894"),a.e("9245"),a.e("2230"),a.e("50"),a.e("5608")]).then(a.bind(a,3087)),tv=(0,i.getAsyncLifecycle)(()=>tP().then(({RegisterPatientAction:e})=>({default:e})),B),tL=(0,i.getAsyncLifecycle)(()=>tP().then(({EnterProphylaxisAction:e})=>({default:e})),B),tS=(0,i.getAsyncLifecycle)(()=>tP().then(({RecordBpgAction:e})=>({default:e})),B),tk=(0,i.getAsyncLifecycle)(()=>tP().then(({RecordOralAction:e})=>({default:e})),B),tR=(0,i.getAsyncLifecycle)(()=>tP().then(({FindPatientAction:e})=>({default:e})),B),tC=(0,i.getAsyncLifecycle)(()=>tP().then(({FacilityReportAction:e})=>({default:e})),B),tU=(0,i.getAsyncLifecycle)(()=>tP().then(({FormsAndSitesAction:e})=>({default:e})),B),tx=(0,i.getAsyncLifecycle)(()=>tP().then(({RolePermissionsAction:e})=>({default:e})),B),tI=(0,i.getAsyncLifecycle)(()=>tP().then(({ResearchParticipationAction:e})=>({default:e})),B)},8046(e,t,a){"use strict";a.d(t,{I6:()=>n,f8:()=>s,iX:()=>i});let i={name:"act-instance-admin",slot:"act-instance-admin-dashboard-slot",title:"home"},n="act-instance-admin-widgets-slot",s="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"}},9218(e,t,a){"use strict";a.d(t,{K:()=>i});let i={slot:"act-research-dashboard-slot",path:"act-research",title:"Research participation",icon:"omrs-icon-microscope"}},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:()=>s,Z6:()=>n,av:()=>i});let i={name:"act-worklists",slot:"rhd-worklists-dashboard-slot",title:"worklists"},n="act-worklists-slot",s=e=>`\${openmrsSpaBase}/home/${i.name}`+(e?`?${new URLSearchParams({list:e})}`:"")}}]);
|
|
1
|
+
(globalThis.webpackChunk_act_registry_esm_act_app=globalThis.webpackChunk_act_registry_esm_act_app||[]).push([["1796"],{4767(e,t,a){var i={"./en.json":["4300","5117"]};function n(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],n=t[0];return a.e(t[1]).then(function(){return a(n)})}n.keys=()=>Object.keys(i),n.id=4767,e.exports=n},8940(e,t,a){"use strict";a.d(t,{p:()=>r});var i=a(7858);a(4335);var n=a(1675),s=a(6144);function r({meta:e}){return(0,i.jsx)(n.BrowserRouter,{children:(0,i.jsx)(s.DashboardExtension,{path:e.name,title:e.title,basePath:`${window.spaBase}/home`})})}},1256(e,t,a){"use strict";a.d(t,{z:()=>s});var i=a(6144),n=a(7003);function s(){let{user:e}=(0,i.useSession)();return!!e&&(0,i.userHasAccess)(n.vG,e)}},8596(e,t,a){"use strict";a.d(t,{Am:()=>s,DL:()=>i,hk:()=>n});let i={name:"act-home",slot:"rhd-home-dashboard-slot",title:"actHome"},n="rhd-home-widgets-slot",s="act-home-quick-actions-slot"},5779(e,t,a){"use strict";a.d(t,{T6:()=>r,gx:()=>A,i2:()=>p,uI:()=>l});var i=a(6144),n=a(7539),s=a(4718);let r="Allergies unavailable",o=e=>(0,i.parseDate)(e).getTime(),c=e=>[...e.filter(e=>e.isPenicillin),...e.filter(e=>!e.isPenicillin)];function d(e,t,{consultations:a,allergies:i}){let s=a.concepts,r=i.concepts,l=[...e.map(e=>({encounter:e,form:a.form})),...t.map(e=>({encounter:e,form:i.form}))].sort((e,t)=>o(e.encounter.encounterDatetime)-o(t.encounter.encounterDatetime)),p=new Map,h=new Map,A=-1/0,u=-1/0;for(let{encounter:e,form:t}of l)for(let i of(0,n.VZ)(e.obs,s.allergy)){let[c]=(0,n.VZ)(i.groupMembers,s.allergy);if(!c)continue;let d=e=>{let[t]=(0,n.VZ)(i.groupMembers,e);return t?(0,n.yy)(t.value):""},l=(0,n.u8)(c.value)||(0,n.yy)(c.value),y=o(e.encounterDatetime);if(l===r.noKnownAllergies){A=Math.max(A,y);continue}u=Math.max(u,y);let f=d(s.dateAdded)||e.encounterDatetime,b=p.get(l),m=b&&o(b.added)<o(f)?b.added:f,g=d(r.dateResolved)||null;if(b?.resolved&&!g&&h.get(l)===y){p.set(l,{...b,added:m});continue}h.set(l,y);let _=(0,n.yy)(c.value);p.set(l,{key:l,name:_,added:m,isPenicillin:a.penicillinAllergyAnswers.includes(l)||/penicillin/i.test(_),reactions:(0,n.VZ)(i.groupMembers,r.reaction).flatMap(e=>(0,n.VZ)(e.groupMembers,r.reaction)).map(e=>(0,n.yy)(e.value)),resolved:g,encounterUuid:e.uuid,form:t})}let y=c([...p.values()].sort((e,t)=>o(t.added)-o(e.added))),f=y.filter(e=>!e.resolved);return{current:f,past:y.filter(e=>e.resolved),noKnownAllergies:!f.length&&A>u}}function l(e,t=!1){if(!e.length)return t?"No known allergies":"Allergies not recorded";let a=c(e).map(e=>e.name).join(", ");return e.some(e=>e.isPenicillin)?`PENICILLIN ALLERGY: ${a}`:`Allergies: ${a}`}function p(e,t){let a=(0,n._n)(e,t.consultations.encounterType),i=(0,n._n)(e,t.allergies.encounterType);return{...d(a.encounters,i.encounters,t),error:a.error??i.error,isLoading:a.isLoading||i.isLoading}}async function h(e){try{if(!e)throw Error("No patient");let t=await (0,i.getConfig)("@act-registry/esm-act-app"),[a,s]=await Promise.all([(0,n.R9)(e,t.consultations.encounterType),(0,n.R9)(e,t.allergies.encounterType)]),{current:r,noKnownAllergies:o}=d(a,s,t);return l(r,o)}catch{return r}}let A=()=>{(0,s.y)("actAllergies",h),(0,s.X)("act-current-allergies",()=>Promise.all([a.e("9245"),a.e("3047")]).then(a.bind(a,4618)))}},5970(e,t,a){"use strict";a.d(t,{KP:()=>y,LP:()=>u});var i=a(8596),n=a(4538),s=a(46),r=a(2066),o=a(4372),c=a(2762),d=a(5482),l=a(7056),p=a(3394);let h="act-chart-return",A=[i.DL.name,c.J.name,p.av.name,l.d.name,d.b.name,n.SJ.name,r.E.name,o.k.name,s._.name];function u(){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,n,s=new URL(t);if(i=new URL(a),!/\/patient\/[^/]+\/chart/.test(i.pathname))return null;if(/\/patient\/[^/]+\/chart/.test(s.pathname))return e;let r=(n=s.pathname.match(/\/home\/([^/]+)/)?.[1],A.find(e=>e===n)??null);return r?{screen:r,path:`${s.pathname}${s.search}`}:null}(u(),t,a))})}},4538(e,t,a){"use strict";a.d(t,{$C:()=>s,SJ:()=>i,af:()=>n});let i={name:"act-community-home",slot:"act-community-home-dashboard-slot",title:"home"},n="act-community-home-widgets-slot",s="act-community-home-quick-actions-slot"},7003(e,t,a){"use strict";a.d(t,{$N:()=>l,$O:()=>c,AZ:()=>u,Az:()=>m,Kp:()=>d,Ky:()=>o,Nd:()=>p,PI:()=>f,Td:()=>g,ZQ:()=>_,hG:()=>n,iZ:()=>h,jy:()=>b,lE:()=>y,oy:()=>A,tg:()=>s,vG:()=>i,z$:()=>r});let i="App: act.home",n="App: act.worklists",s="App: act.screenPositive",r="Task: act.lists.export",o="Task: act.manageStudies",c="Task: act.enterClinicalForms",d="View Audit Logs",l="View Read Audit Logs",p="View Security Audit Logs",h="Task: act.downloadData",A="Task: act.downloadIdentifiers",u="Task: act.downloadResearchData",y="Task: act.sendReferral",f="Task: act.enterScreeningCounts",b="Add Encounters",m="Edit Encounters",g="Edit People",_="Edit Patient Programs"},7539(e,t,a){"use strict";a.d(t,{MY:()=>f,R9:()=>A,VZ:()=>p,_n:()=>u,u8:()=>l,yy:()=>d});var i=a(3483),n=a.n(i),s=a(8406),r=a.n(s),o=a(6144),c=a(7928);let d=e=>"object"==typeof e&&null!==e?String(e.display??""):String(e??""),l=e=>"object"==typeof e&&null!==e?String(e.uuid??""):"",p=(e,t)=>(e??[]).filter(e=>e.concept.uuid===t),h=(e,t)=>`${o.restBaseUrl}/encounter?patient=${e}&encounterType=${t}&v=custom:(uuid,encounterDatetime,encounterProviders:(provider:(display)),obs:(uuid,concept:(uuid,display),value,auditInfo:(dateCreated),groupMembers:(uuid,concept:(uuid,display),value,auditInfo:(dateCreated),groupMembers:(uuid,concept:(uuid,display),value))))`,A=(e,t)=>(0,c.m)(h(e,t));function u(e,t){let a=e?h(e,t):null,{data:i,error:s,isLoading:r}=n()(a,()=>(0,c.m)(a));return{encounters:[...i??[]].sort((e,t)=>(0,o.parseDate)(t.encounterDatetime).getTime()-(0,o.parseDate)(e.encounterDatetime).getTime()),error:s,isLoading:r}}let y={"1072AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA":"day","1073AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA":"week","1074AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA":"month","1734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA":"year"};function f(e){let{consultations:t}=(0,o.useConfig)(),{encounters:a,error:i,isLoading:n}=u(e,t.encounterType);return{consultations:a.map(e=>(function(e,t){let[a]=p(e.obs,t.date),i=(0,o.parseDate)(String(a?.value??e.encounterDatetime)),n=p(e.obs,t.prophylaxis).map(e=>{let[a]=p(e.groupMembers,t.prophylaxis);return a?p(e.groupMembers,t.dateStopped).length>0?`${d(a.value)} (stopped)`:d(a.value):null}).filter(Boolean).join("; "),[s]=p(e.obs,t.nextAmount),[c]=p(e.obs,t.nextPeriod),h=c?y[l(c.value)]:void 0,A=s&&h?r()((0,o.parseDate)(e.encounterDatetime)).add(Math.round(Number(s.value)),h).toDate():null;return{uuid:e.uuid,date:i,seenBy:(e.encounterProviders??[]).map(e=>e.provider?.display?.replace(/^.* - /,"")??"").filter(Boolean).join(", "),nyha:d(p(e.obs,t.nyha)[0]?.value??""),plan:n,nextReview:A}})(e,t.concepts)),encounters:a,error:i,isLoading:n}}},46(e,t,a){"use strict";a.d(t,{_:()=>i});let i={name:"act-dashboard",slot:"act-dashboard-slot",title:"dashboard"}},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"}},7928(e,t,a){"use strict";a.d(t,{m:()=>n});var i=a(6144);async function n(e){let t=t=>(0,i.openmrsFetch)(`${e}&totalCount=true&startIndex=${t}`).then(({data:e})=>e),a=await t(0),n=a.results.length,s=[];for(let e=n;n&&e<a.totalCount;e+=n)s.push(e);return[a,...await Promise.all(s.map(t))].flatMap(e=>e.results)}},4718(e,t,a){"use strict";a.d(t,{X:()=>r,y:()=>s});var i=a(6144);let n=()=>(0,i.getGlobalStore)("forms-engine-store",{controls:[],postSubmissionActions:[],expressionHelpers:{},fieldValidators:[],fieldValueAdapters:[],dataSources:[],formSchemaTransformers:[]}).getState();function s(e,t){n().expressionHelpers[e]=t}function r(e,t){let{controls:a}=n();a.some(t=>t.name===e)||a.push({name:e,type:e,load:t})}},9471(e,t,a){"use strict";a.r(t),a.d(t,{facilityReportsDashboardLink:()=>eJ,communityHomeQuickActions:()=>tw,runChartsDashboard:()=>te,worklistsDashboard:()=>eF,enterProphylaxisQuickAction:()=>tL,recordOralQuickAction:()=>tk,cardiacTestsDashboardLink:()=>em,backToActLink:()=>O,downloadDashboard:()=>tc,patientsOnProphylaxisDashboard:()=>th,prophylaxisPageDashboardLink:()=>z,waitingListDashboard:()=>eV,communityHomeDashboard:()=>tg,userFormWorkspace:()=>eL,dueForProphylaxisDashboardLink:()=>tA,allergiesPill:()=>ed,instanceAdminDashboardLink:()=>eX,actHelpContact:()=>M,studyFormWorkspace:()=>ev,reportViewDashboard:()=>eZ,actHomeWorklists:()=>ex,communityHomeDashboardLink:()=>tf,flagGapsWorkspace:()=>eT,registryDashboard:()=>eB,enrollmentWorkspace:()=>eD,sessionTimeout:()=>N,studiesDashboardLink:()=>tt,cardiacTestsDashboard:()=>eg,confirmatoryEchoWorklist:()=>eN,dashboard:()=>e3,researchPageDashboard:()=>Y,instanceAdminKpis:()=>tD,flagWorklist:()=>eM,medicationsCard:()=>ef,clinicsDashboard:()=>e2,dueForProphylaxisWorklist:()=>eO,clinicsBanner:()=>ey,reportsDashboard:()=>eK,screeningCountsDashboardLink:()=>ts,instanceAdminQuickActions:()=>tT,updatePatientStatusWorkspace:()=>e_,rolePermissionsDashboard:()=>e6,facilityReportQuickAction:()=>tC,nextStepsCard:()=>$,proceduralRecommendationsCard:()=>eA,runChartsDashboardLink:()=>e7,findPatientQuickAction:()=>tR,screenPositiveDashboard:()=>eq,scanPatientCardDashboardLink:()=>q,allergiesDashboardLink:()=>ei,researchPageDashboardLink:()=>J,recordBpgQuickAction:()=>tS,actHomeCareCascade:()=>eH,actHomeDashboardLink:()=>eR,actHomeQuickActions:()=>eU,consultationsDashboard:()=>ee,updateProphylaxisWorkspace:()=>ew,screeningCountsDashboard:()=>tr,facilityReportsDashboard:()=>eY,prophylaxisCard:()=>V,adminNav:()=>tb,cliniciansOnlyNote:()=>eb,inrEditWorkspace:()=>eu,reportsDashboardLink:()=>eQ,importTranslation:()=>W,registryDashboardLink:()=>eE,actHomeDashboard:()=>eC,instanceAdminDashboard:()=>e0,allergiesDashboard:()=>en,downloadDashboardLink:()=>to,refreshFlagsDashboard:()=>tn,waitingListWorklist:()=>ej,reportViewDashboardLink:()=>ez,formsAndSitesQuickAction:()=>tU,waitingListDashboardLink:()=>e$,usersDashboard:()=>e4,clinicsDashboardLink:()=>e9,startupApp:()=>F,clinicalFlags:()=>ep,instanceAdminNav:()=>tm,refreshFlagsDashboardLink:()=>ti,clinicFormWorkspace:()=>eP,updatePatientStatusButton:()=>G,prophylaxisPageDashboard:()=>Z,patientsOnProphylaxisDashboardLink:()=>tp,worklistsDashboardLink:()=>eW,logsDashboard:()=>tl,dashboardLink:()=>e1,dashboardExportWorkspace:()=>ek,anaphylaxisAlert:()=>el,registerPatientQuickAction:()=>tv,actHomeOverdueConsultation:()=>eI,inrStatusFlag:()=>ec,logsDashboardLink:()=>td,scanPatientCardDashboard:()=>Q,dueForProphylaxisWidget:()=>ty,researchParticipationQuickAction:()=>tI,inrReviewsDashboardLink:()=>es,inrReviewsDashboard:()=>er,medicationsDashboardLink:()=>et,dueForProphylaxisDashboard:()=>tu,consultationCard:()=>eo,rolePermissionsDashboardLink:()=>e8,usersDashboardLink:()=>e5,patientStatusFlags:()=>K,consultationsDashboardLink:()=>X,medicationsDashboard:()=>ea,screenPositiveDashboardLink:()=>eG,resetPasswordWorkspace:()=>eS,actHelpDocs:()=>j,rolePermissionsQuickAction:()=>tx,studiesDashboard:()=>ta,inrCard:()=>eh});var i=a(6144);let n=(e,t)=>({_type:i.Type.Array,_elements:{_type:i.Type.String},_default:t,_description:`Location tags that mark ${e}.`}),s=(e,t)=>({_type:i.Type.ConceptUuid,_default:t,_description:e}),r=(e,t)=>({_type:i.Type.String,_default:t,_description:e}),o={clinicLocationTags:{cardiac:n("cardiac clinics",["RHD Tertiary","RHD District"]),primaryCare:n("primary care clinics",["RHD Community"])},clinics:{levels:{_type:i.Type.Array,_elements:{_type:i.Type.Object,tag:{_type:i.Type.String,_description:"The location tag that gives a clinic this level."},level:{_type:i.Type.String,_description:"The level as the clinic's description names it."}},_default:[{tag:"RHD Tertiary",level:"Tertiary"},{tag:"RHD District",level:"District"},{tag:"RHD Community",level:"Community"}],_description:"The levels the Clinics page offers, as ACT 2.0's, each by its location tag. A clinic's description holds its type and level, as the distro seeds them: 'Public, District level'. Keep the tags the same as clinicLocationTags, which the rest of ACT reads; a clinic's parent is one of the levels whose tag is in clinicLocationTags.cardiac."},types:{_type:i.Type.Array,_elements:{_type:i.Type.String},_default:["Public","Private Not-For-Profit","Private For-Profit"],_description:"The types the Clinics page offers, as ACT 2.0's; a clinic keeps a type of its own when edited."},newClinicTags:{_type:i.Type.Array,_elements:{_type:i.Type.String},_default:["Visit Location","Queue Location","Login Location"],_description:"Location tags a clinic added on the Clinics page gets beside its level, so users sign in and record visits there."}},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","RHD referred to a clinician"],_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: a translation key, or text shown as written."},url:{_type:i.Type.String,_description:"Where the choice leads."}},_default:[{label:"enterBpg",url:"${openmrsSpaBase}/forms/form/0119d2e6-e2e1-391c-9b88-d59a10b0780d"},{label:"enterOralProphylaxis",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 3's form builder, for a user holding App: act.instanceAdmin.","${openmrsSpaBase}/form-builder"),rolePermissionsUrl:r("Where the Role permissions quick action on the Instance dashboard leads: ACT's Role permissions page, which sets the capabilities each ACT role has.","${openmrsSpaBase}/home/act-role-permissions"),researchParticipationUrl:r("Where the Research participation quick action on the Instance dashboard leads: ACT's Studies page, where the research studies and their participants are, for a user holding App: act.instanceAdmin.","${openmrsSpaBase}/home/act-studies")},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","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","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 every ACT role but Data Clerk, an instance administrator the clinician roles and Site Administrator, and a site administrator the clinician roles and Data Clerk. Each is what ACT Core lets it give (actcore.users.globalAdministratorRoles, instanceAdministratorRoles and siteAdministratorRoles), so set both together."}},helpMenu:{contactUrl:r("Where the Help menu's Contact us leads, such as mailto:support@example.org; each site sets its own. Empty hides it.",""),docsUrl:r("Where the Help menu's Docs leads, in a new tab. Empty hides it.","")},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: ACT's Clinics page, for a user holding Manage Locations.","${openmrsSpaBase}/home/act-clinics"),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"),screeningCountsUrl:r("Where the left nav's Screening counts leads: the page where each clinic's monthly screening counts are entered, for a user holding App: act.screeningCounts.","${openmrsSpaBase}/home/act-screening-counts"),logsUrl:r("Where the left nav's Logs leads: ACT's Logs page (Activity, Patients opened, Downloads and Sign-ins), for a user holding View Audit Logs, View Read Audit Logs or View Security Audit Logs.","${openmrsSpaBase}/home/act-logs"),auditLogsUrl:r("Where the Activity tab's links to the audit module lead: the module's own Audit Logs page, which lists every revision of every entity, including the server's own setup. A row's link adds the user as its username filter.","${openmrsBase}/module/auditlogweb/auditlogs.form"),readAuditUrl:r("Where the Patients opened tab's link to the audit module leads: the module's read audit page, with every read.","${openmrsBase}/module/auditlogweb/readauditlogs.form"),securityAuditUrl:r("Where the Sign-ins tab's link to the audit module leads: the module's security log page, with locked accounts and the full security record.","${openmrsBase}/module/auditlogweb/securityauditlogs.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")},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 and the Dashboard draw 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 ACT home widget and the Dashboard call it: a translation key, or text shown as written."}},_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:"coveredToday"},{step:"Adherent (80%+)",label:"adherentEightyPercent"},{step:"Adherent",label:"adherentEightyPercent"}],_description:"The report's steps the ACT home widget and the Dashboard draw, 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."}},reportCatalogue:{_type:i.Type.Array,_elements:{_type:i.Type.Object,id:{_type:i.Type.String,_description:"What the report page's link names it by: /home/act-report?report=<id>."},report:{_type:i.Type.String,_description:"The report, by uuid or name, whose rows the page shows as a table."},label:{_type:i.Type.String,_description:"What the Reports page and the report page call it."},description:{_type:i.Type.String,_description:"A line on the Reports page saying what the report holds."},clinicColumn:{_type:i.Type.String,_default:"",_description:"The report's column naming a row's clinic, by which a user limited to clinics is held to theirs. Blank for a report with none, which such a user is not offered."}},_default:[{id:"visits",report:"b2c3d4e5-f6a7-8901-abcd-234567890abc",label:"Visits",description:"Each RHD clinic visit in a period, with its encounters and the patient.",clinicColumn:"location"},{id:"encounters",report:"d4e5f6a7-b8c9-0123-def0-456789012cde",label:"Encounters",description:"Each RHD encounter in a period, with its type, location and provider.",clinicColumn:"location"},{id:"inr-monitoring",report:"d3a1f2b4-7c8e-4f90-b123-456789abcdef",label:"INR monitoring",description:"Each INR reading of the patients on warfarin in a period, with the target range.",clinicColumn:"location"}],_description:"The reports the Reports page offers to open as a table, each with Download CSV. A report that names patients shows them as the Registry does, to whoever may open the Reports page."},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:{registrantsReport:{_type:i.Type.String,_default:"3b0a6c2e-8f41-5d7b-9e15-6a2c4d8f0b71",_description:"The RHD Dashboard Registrants report, by uuid or name: counts by status, and of the active registrants by sex, age band and disease (its breakdown, label and patients columns), for the Dashboard's registrant figures."},waitlistReport:{_type:i.Type.String,_default:"9d4e2f7a-1c63-5b08-8a2d-4f6e1b9c3a52",_description:"The RHD Dashboard Waitlist report, by uuid or name: the open recommendations by procedure and urgency, the patients waiting and the balloon valvuloplasties and surgeries performed (its breakdown, procedure, urgency, patients and recommendations columns), for the Dashboard's waitlist."},showScreening:{_type:i.Type.Boolean,_default:!0,_description:"Show the Dashboard's screening sections: the screening cascade, the monthly screening counts, and the screening from registrations. Turn it off at a site without a screening programme."},screeningReport:{_type:i.Type.String,_default:"0f4b7c2d-6a1e-5d93-8b47-2c9e1f5a3d68",_description:"The RHD Dashboard Screening report, by uuid or name: the patients registered in a period by sex, Screen +, age at registration and how the case was detected, for the Dashboard's screening from registrations."},registrantPatientsReport:{_type:i.Type.String,_default:"e8296d2d-def8-5f8e-ba2d-78c59859b9e3",_description:"The RHD Dashboard Registrant Patients report, by uuid or name: the patients behind one of the registrants report's figures, for the Dashboard's links."},waitlistPatientsReport:{_type:i.Type.String,_default:"bc987343-8b70-5f95-84a8-d017cffa14da",_description:"The RHD Dashboard Waitlist Patients report, by uuid or name: the recommendations or patients behind one of the waitlist report's figures, for the Dashboard's links."},cascadePatientsReport:{_type:i.Type.String,_default:"7c62fcfd-03b2-5d84-9cea-92a43b70ae76",_description:"The RHD Care Cascade Patients report, by uuid or name: the patients of one care cascade step, for the Dashboard's links."},optimisationPatientsReport:{_type:i.Type.String,_default:"45c646b2-f223-585e-963a-3c74fe883ae4",_description:"The RHD Medical Optimisation Patients report, by uuid or name: the patients, consultations or recommendations behind one measure, for the Dashboard's links."},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 and the two recommendation figures in its Procedural waitlist."},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."}},procedures:{form:{_type:i.Type.UUID,_default:"bf762810-2bf1-3ca3-bdbe-8bd71fd5d59a",_description:"The Procedures and Outcomes form, which Record procedure opens on the patient summary and the Procedural waiting list (AR-191)."},encounterType:{_type:i.Type.UUID,_default:"c9b87090-8768-50be-987e-8ca0a8983429",_description:"Procedures and Outcomes' encounter type. A procedure recorded there completes the matching interventional recommendation (AR-162)."},concepts:{_type:i.Type.Object,_default:{date:"6cbb5176-144a-576b-9b3d-c9e9d6bc5f5a",surgeryType:"46f4af80-b783-59f4-beb1-81144ccf3084",catheterizationType:"bb4a77ee-836a-57e7-a262-632fa22288d2"},_description:"Procedures and Outcomes' Date of Procedure, Surgery Type and Catheterization Type. The two types' answers are the consultation's Interventional Recommendation(s) answers, so a recorded procedure matches its recommendation."}},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",medicationInterval:"04d77200-fa10-5c15-b58a-609bf8eadefb",dateStarted:"5bcc7d12-b279-5955-815c-090a1f392071",dateAdded:"b8514967-2259-5a4d-9ac5-b9319144b8dc",chronicCondition:"d80478b2-4ed2-5d93-a604-6b5b50dab441",allergy:"cd73e118-64ee-5855-b276-f7cb44fdcf7e",complication:"a04d2268-a7de-589f-b4b6-92c47c13e342",recommendation:"ce93d393-1df5-587f-bf11-c373eac2ccf4",procedureType:"3a576b80-744a-59ee-9515-d9fdca06f3d7",urgency:"7b8eda07-34b6-55f2-ab6c-1b295f41918b"},_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) with its Dosing, Dosing Interval and Date Started, Date Added on the chronic condition, allergy and RHD complication lists (each group and its name share the concept), and Interventional Recommendation(s) (group and procedure share the concept) with its Procedure Type and Urgency."},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 with one active on the Medications page (recorded in a consultation or a Medication Update, not stopped) has the INR reviews page and card."},penicillinAllergyAnswers:{_type:i.Type.Array,_elements:{_type:i.Type.UUID},_default:["149071AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","b4e6c064-ab4f-5ee4-9837-094731ee23d4"],_description:"The Allergy answers, on consultations and RHD Allergies, that are an allergy to penicillin, which the patient banner and the consultation form mark: Penicillin (allergy) and Penicillin (anaphylaxis), as the patients report counts them. An answer named penicillin is marked whatever its uuid."},vitals:{_type:i.Type.Array,_elements:{_type:i.Type.Object,label:{_type:i.Type.String,_description:"The name the consultation form shows before the value."},concepts:{_type:i.Type.Array,_elements:{_type:i.Type.UUID},_description:"The concept, or concepts whose values are shown joined by '/', as blood pressure's two."},unit:{_type:i.Type.String,_description:"The unit shown after the value."}},_default:[{label:"BP",concepts:["5085AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","5086AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"],unit:"mmHg"},{label:"Pulse",concepts:["5087AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"],unit:"bpm"},{label:"Temp",concepts:["5088AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"],unit:"\xb0C"},{label:"RR",concepts:["5242AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"],unit:"/min"},{label:"SpO2",concepts:["5092AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"],unit:"%"},{label:"Weight",concepts:["5089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"],unit:"kg"},{label:"Height",concepts:["5090AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"],unit:"cm"},{label:"MUAC",concepts:["1343AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"],unit:"cm"}],_description:"The vitals and biometrics the consultation form shows at its top, read from what the Vitals & Biometrics form recorded in the consultation's visit, in this order. The concepts are the vitals app's defaults."}},medications:{encounterType:{_type:i.Type.UUID,_default:"e3f1b6a8-5c2d-4f7e-9a41-6d8b2c0e7f53",_description:"The RHD Medication Update encounter type. The Medications page reads its Cardiac Medication records with the consultations', the latest record of a medicine deciding whether it is active."},form:{_type:i.Type.UUID,_default:"6fc2cd4c-3bd8-3888-88ae-53e6eb7debb3",_description:"The RHD Medication Update form, which the Medications page's Add opens. Who may record it is its encounter type's edit privilege."}},allergies:{encounterType:{_type:i.Type.UUID,_default:"8a687651-3554-4255-941c-812d7a21312e",_description:"The RHD Allergies encounter type. Its allergies are read with the consultations', the latest record of an allergy deciding whether it is current or past."},form:{_type:i.Type.UUID,_default:"baeb5cfb-8433-3ad7-a1e6-1e7f449e9dbe",_description:"The RHD Allergies form, which the Allergies page's Add and Edit open. Who may record it is its encounter type's edit privilege."},concepts:{_type:i.Type.Object,_default:{reaction:"8200713e-8647-52f0-b93d-841e4e9687b7",dateResolved:"8fbebbea-16dd-5dc5-98f0-c522cab26e19",noKnownAllergies:"160557AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},_description:"The Allergy group's Reaction (a group and its answers share the concept) and Date Resolved, which moves an allergy to past, and the Allergy Name answer No known allergies, which is not an allergy. The allergy and its Date Added are the consultation's concepts."}},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",doseChange:"a72dadd1-27de-5578-9595-31d2b621870d",indication:"6e8ed53f-15e6-5b00-9ed0-44b11bd2d638"},_description:"The INR form's questions: Indication, INR Target, the INR Value group with its Date Tested, INR Value, Dose Change and New Anticoagulant Dose, and Next INR Date."},answers:{_type:i.Type.Object,_default:{yes:"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",no:"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",targets:[{label:"1.5-2.5",uuid:"2822a113-1cd3-510e-b5bf-95b9279b1a4f"},{label:"2.0-3.0",uuid:"d894d89a-04bd-5fc0-91a0-5dc3ddd8802b"},{label:"2.5-3.5",uuid:"ea841a3a-f9cb-5761-aac6-939ffb158d94"}]},_description:"The INR form's answers the INR editor offers: Yes and No for Dose Change, and the INR Target ranges with their labels. These uuids are copied from distro/configuration/ampathforms/rhd_inr_monitoring.json and must be kept in step with it."}},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 of the patient's contact details: Primary Phone, Phone Owner Name, Primary Care Clinic and Assigned Cardiac Clinic. The patient banner shows the two clinics and the Consultation visits card the cardiac clinic; the banner's Show more lists the phone and phone owner from the patient banner app's contactAttributeTypes."}},clinicianPrivilege:{_type:i.Type.String,_default:"Task: act.enterClinicalForms",_description:'The privilege that marks a clinician for the chart: the Prophylaxis card offers its holders both Record BPG and Record oral whatever is prescribed, 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:s("The Yes answer of registry consent and of the research opt-in.","1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"),noConcept:s("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:s("Date of Echocardiogram, the date a row shows; without one, the encounter date.","911be530-9457-54be-8515-4bbcdb832ccb"),mitralRegurgitation:s("Mitral Regurgitation, the Mitral regurgitation column.","d6ab05e2-1ece-5f8f-893d-74739aa66ce5"),mitralStenosis:s("Mitral stenosis severity, the Mitral stenosis column.","ed209fc3-0138-516c-a0bd-bcd3b2697a87"),aorticRegurgitation:s("Aortic Regurgitation, the Aortic regurgitation column.","0bbc510f-1e95-5c74-bbe3-8896907fd6c1"),aorticStenosis:s("Aortic Stenosis, the Aortic stenosis column.","7586c9a6-73db-5ab2-8f23-71a3cc4bae62"),ejectionFraction:s("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:s("Date of Electrocardiogram, the date a row shows; without one, the encounter date.","a85d4e63-500f-5af9-8ebd-9e1db5ddc3ed"),result:s("Electrocardiogram Result, the Result column, one answer per finding.","1c5476e4-ff12-5fbd-b2ad-53f66f9006a0"),otherFinding:s("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:s("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:s("Dose given, the BPG dose a row shows; an injection saved before the form asked it has none.","6a52b6aa-2427-4fa2-93cb-18956f50c16a"),facility:s("Facility, a location picked on the BPG form; without one, the encounter location.","01e6dd39-b8ba-5b0a-bcd7-6b8d5973c1bc"),lateReason:s("If injection(s) late, why?, the reasons a late injection tag names.","f7cbfcdc-58bb-5e85-86ab-ffce26a08615"),estimateDate:s("Date of Adherence Estimate, the date an oral row shows; without one, the encounter date.","99512ab5-208e-5c37-8f7b-8f72abe2a0db"),adherence:s("Adherence Estimate, the percentage an oral row shows.","8edff8dc-4af6-5d0f-bf1d-8e349c7a1b15"),basedOn:s("Adherence Based On, what an oral row says the estimate was based on.","4313005d-d5b2-5d20-bf33-39aab1bf90c0"),lowAdherenceReason:s("Explanation if Adherence is Below 80%, the reason an oral row gives for low adherence.","a9fbf67b-65d7-57f6-8270-7bb65cd49469"),newPrescription:s("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."}},prophylaxisUpdate:{encounterType:{_type:i.Type.UUID,_default:"8a51f352-5f1b-4836-a669-536e276a21db",_description:"The RHD Prophylaxis Update encounter type, which the Prophylaxis card's Update prophylaxis saves. Its edit privilege says who may."},concepts:{_type:i.Type.Object,_default:{prescription:"668e0221-8b41-5669-9ad8-78e193d42494",dateStarted:"5bcc7d12-b279-5955-815c-090a1f392071",dateStopped:"d75edc42-3213-5a06-9228-4e5735b9594b",reasonStopped:"fa21e431-e64d-5493-b18c-9a1eaf7ee16a",duration:"11117263-f71d-58e2-8363-d2e9b1dbddab",consultationDate:"c3edefd2-5777-5084-b01e-fd4ca0e40162",none:"1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},_description:"The questions of a prophylaxis prescription as the consultation form records them: Secondary Antibiotic Prophylaxis (the group and its regimen share the concept) with its Date Started, Date Stopped and Reason Stopped, the encounter's Secondary Antibiotic Prophylaxis Duration, the Date of Consultation Visit that ACT Core dates a prescription by when there is one, and the None answer that prescribes nothing."},regimens:{_type:i.Type.Array,_elements:{uuid:{_type:i.Type.UUID,_description:"The regimen answer."},label:{_type:i.Type.String,_description:"The choice as the update shows it."}},_default:[{uuid:"50be4b26-6c5b-5aaa-9254-3bfd313b4522",label:"Q28 day BPG"},{uuid:"2f3ee632-dd14-51b0-a4ec-de10e7958019",label:"Q21 day BPG"},{uuid:"91230c88-6a90-5d45-af50-fa6155fe5dd7",label:"Q14 day BPG"},{uuid:"b9884219-358a-594b-94f5-f8a8863a25f3",label:"Oral Penicillin V"},{uuid:"f2e06eb2-5c25-5e53-9e01-246112d05976",label:"Oral Sulfadiazine"},{uuid:"fb8b6676-689b-5daa-83f7-1456210c587f",label:"Oral Erythromycin"},{uuid:"f6f25d63-bd1a-51cb-9596-e74a19759429",label:"Oral Clarithromycin"},{uuid:"1af922b8-acee-56c8-b184-eaef4e58e23a",label:"Oral Azithromycin"},{uuid:"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",label:"Other non-coded"}],_description:"The regimens Update prophylaxis offers, as the consultation form's Secondary Antibiotic Prophylaxis does."},durations:{_type:i.Type.Array,_elements:{uuid:{_type:i.Type.UUID,_description:"The duration answer."},label:{_type:i.Type.String,_description:"The choice as the update shows it."}},_default:[{uuid:"6f2c4ca8-a499-5851-975b-5bfb426143a9",label:"1 year and reassess"},{uuid:"a3f9bcd3-787f-58b3-ae36-c494725a67eb",label:"2 years and reassess"},{uuid:"024cdfe6-c2eb-521c-8616-4729ac35439e",label:"5 years or until age 21, whichever is longer"},{uuid:"ecc08a4c-6494-5737-b142-f59d18c07db1",label:"10 years or until age 40, whichever is longer"},{uuid:"e13a5d80-2ba1-5927-b4e6-7369473222e1",label:"Lifetime"}],_description:"The durations Update prophylaxis offers, as the consultation form's Secondary Antibiotic Prophylaxis Duration does."},reasons:{_type:i.Type.Array,_elements:{uuid:{_type:i.Type.UUID,_description:"The reason answer."},label:{_type:i.Type.String,_description:"The choice as the update shows it."}},_default:[{uuid:"121689AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",label:"Allergy"},{uuid:"148888AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",label:"Anaphylaxis"},{uuid:"eaf16fa9-03d7-5846-94c3-b02805889ed9",label:"Provider Stopped"},{uuid:"39af49bd-5dd0-5acd-8ffb-260bc83dbfd7",label:"Patient Preference"},{uuid:"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",label:"Other non-coded"}],_description:"The reasons Update prophylaxis offers for stopping, as the consultation form's Reason Stopped does."}},patientStatus:{programUuid:{_type:i.Type.UUID,_default:"7d73e143-a550-5a9d-aecd-dd771add098d",_description:"The registry programme whose enrolment holds a patient's status: Update patient status ends it in one of the terminal states of its workflow, which the registry, the worklists and the Dashboard read."},deathConcept:{_type:i.Type.UUID,_default:"159AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",_description:"The concept of the workflow's Deceased state, which also marks the person dead as Mark patient deceased did."}},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."},patientInformationForm:{_type:i.Type.UUID,_default:"a6646c51-130d-3b59-a442-959bea93487d",_description:"The RHD Patient Information form: the patient's latest is edited, when it is in singleRecordForms, as by default. A diagnosis an AR-167-interim consultation recorded is listed until one is saved on Patient Information."},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: a translation key, or text shown as written."},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:"urgencyEmergent",shortLabel:"1: Emergent",concept:"1fe15210-4490-58b0-a38c-bb0386e98482",deadlineDays:1},{label:"urgencyWithinOneWeek",concept:"406285f2-be72-5594-8664-c8568ad9bc88",deadlineDays:7},{label:"urgencyWithinOneMonth",concept:"82c5209b-c183-5bc9-941c-890eba821a44",deadlineDays:30},{label:"urgencyUrgent",shortLabel:"2: Urgent",concept:"33bf504a-15f2-5504-9bdc-ddded0b5eb00",deadlineDays:60},{label:"urgencyWithinThreeMonths",concept:"925610f9-1c3c-5396-880f-02a5fe309d53",deadlineDays:90},{label:"urgencyElective",shortLabel:"3: Elective",concept:"2666bf97-7400-57c7-b535-7903e22ced34",deadlineDays:180},{label:"urgencyWithinSixMonths",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(7858);a(4335);var d=a(8940),l=a(8596),p=a(2762),h=a(3394),A=a(7003);function u(){let{user:e}=(0,i.useSession)();return!!e&&(0,i.userHasAccess)(A.hG,e)}var y=a(7056),f=a(9218),b=a(1943),m=a(5482),g=a(1256),_=a(2066),w=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 v={name:"act-scan-patient-card",slot:"act-scan-patient-card-dashboard-slot",title:"scanPatientCard"};var L=a(5970),S=a(5779),k=a(8406),R=a.n(k),C=a(4718);async function U(e,t){if(!e||!t)return null;try{let{data:a}=await (0,i.openmrsFetch)(`${i.restBaseUrl}/actcore/prophylaxis?patient=${e}`);if(a?.type!=="BPG"||!a.intervalDays)return null;return R()(t).startOf("day").add(a.intervalDays,"day").toDate()}catch{return null}}let x="Vitals not recorded at this visit";async function I(e,t){try{var a,n;let s,r;if(!e)throw Error("No patient");if(!t)return x;let{consultations:o}=await (0,i.getConfig)("@act-registry/esm-act-app"),{data:c}=await (0,i.openmrsFetch)(`${i.restBaseUrl}/visit/${t}?v=custom:(encounters:(voided,obs:(concept:(uuid),value,obsDatetime,voided)))`);return a=(c?.encounters??[]).filter(e=>!e.voided).flatMap(e=>e.obs??[]),n=o.vitals,s=new Map,a.filter(e=>!e.voided).forEach(e=>{let t=s.get(e.concept.uuid);(!t||e.obsDatetime>t.obsDatetime)&&s.set(e.concept.uuid,e)}),(r=n.filter(e=>e.concepts.some(e=>s.has(e))).map(e=>`${e.label} ${e.concepts.map(e=>s.get(e)?.value??"–").join("/")} ${e.unit}`)).length?`Vitals at this visit: ${r.join(", ")}`:x}catch{return"Vitals unavailable"}}let H={"act-worklist-cardiology-follow-up":{flag:"RHD cardiology follow-up due",title:"cardiologyFollowUpDue",tone:"orange",dueDateColumn:"next_consultation_date"},"act-worklist-lost-to-follow-up":{flag:"RHD lost to follow-up",title:"lostToFollowUp",tone:"red"},"act-worklist-post-procedural-follow-up":{flag:"RHD 30-day follow-up due",title:"postProceduralFollowUpDue",tone:"orange"},"act-worklist-pregnancy-outcome":{flag:"RHD delivery outcome overdue",title:"pregnancyOutcomeDue",tone:"orange"},"act-worklist-referred-to-clinician":{flag:"RHD referred to a clinician",title:"referredToAClinician",tone:"orange"},"act-worklist-inr-review":{flag:"RHD INR review due",title:"inrReviewDue",tone:"orange",dueDateColumn:"next_inr_date"}},E="@act-registry/esm-act-app",B={featureName:"act",moduleName:E},W=a(4767);function F(){(0,i.defineConfigSchema)(E,o),Object.entries(H).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: a translation key, or text shown as written."},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,L.KP)(),(0,C.y)("actNextInjectionDue",U),(0,S.gx)(),(0,C.y)("actVisitVitals",I)}let O=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("4921")]).then(a.bind(a,9472)),B),N=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("77")]).then(a.bind(a,172)),B),M=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("647"),a.e("9245"),a.e("2262")]).then(a.bind(a,4508)),B),j=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("647"),a.e("9245"),a.e("8935")]).then(a.bind(a,9285)),B),$=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2889"),a.e("9314"),a.e("3106"),a.e("4718"),a.e("6449"),a.e("1617"),a.e("319"),a.e("9245"),a.e("8405"),a.e("6133")]).then(a.bind(a,8932)),B),V=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("8405"),a.e("8393"),a.e("9152"),a.e("4516")]).then(a.bind(a,611)),B),G=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("8094")]).then(a.bind(a,3517)),B),q=(0,i.getSyncLifecycle)(function(){let{t:e}=(0,b.useTranslation)();return(0,c.jsx)(d.p,{meta:{...v,title:e("scanPatientCard","Scan patient card")}})},B),Q=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("4771"),a.e("9245"),a.e("50"),a.e("129")]).then(a.bind(a,6808)),B),K=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2230"),a.e("7326")]).then(a.bind(a,3956)),B),z=(0,i.getSyncLifecycle)((0,i.createDashboard)({slot:"act-prophylaxis-dashboard-slot",path:"act-prophylaxis",title:"Prophylaxis",icon:"omrs-icon-medication"}),B),Z=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("8405"),a.e("8393"),a.e("9152"),a.e("7367")]).then(a.bind(a,6474)),B),J=(0,i.getSyncLifecycle)((0,i.createDashboard)(f.K),B),Y=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9314"),a.e("413"),a.e("9245"),a.e("7996")]).then(a.bind(a,8186)),B),X=(0,i.getSyncLifecycle)((0,i.createDashboard)({slot:"act-consultations-dashboard-slot",path:"act-consultations",title:"Consultation visits",icon:"omrs-icon-calendar-heat-map"}),B),ee=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("8405"),a.e("8393"),a.e("2325"),a.e("6204")]).then(a.bind(a,6679)),B),et=(0,i.getSyncLifecycle)((0,i.createDashboard)({slot:"act-medications-dashboard-slot",path:"act-medications",title:"Medications",icon:"omrs-icon-medication"}),B),ea=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("8405"),a.e("8393"),a.e("2325"),a.e("8549"),a.e("330")]).then(a.bind(a,3268)),B),ei=(0,i.getSyncLifecycle)((0,i.createDashboard)({slot:"act-allergies-dashboard-slot",path:"act-allergies",title:"Allergies",icon:"omrs-icon-warning"}),B),en=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("8405"),a.e("8393"),a.e("2325"),a.e("8549"),a.e("1045")]).then(a.bind(a,7991)),B),es=(0,i.getAsyncLifecycle)(()=>a.e("4924").then(a.bind(a,23)),B),er=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("8405"),a.e("8393"),a.e("7551"),a.e("7077")]).then(a.bind(a,6402)),B),eo=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("8405"),a.e("8393"),a.e("2325"),a.e("2744")]).then(a.bind(a,688)),B),ec=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2230"),a.e("9176")]).then(a.bind(a,9370)),B),ed=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("8405"),a.e("8393"),a.e("2325"),a.e("7909")]).then(a.bind(a,6420)),B),el=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("6449"),a.e("9245"),a.e("8909")]).then(a.bind(a,5367)),B),ep=(0,i.getAsyncLifecycle)(()=>a.e("197").then(a.bind(a,7796)),B),eh=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("8405"),a.e("8393"),a.e("7551"),a.e("1865")]).then(a.bind(a,3939)),B),eA=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("8405"),a.e("8346")]).then(a.bind(a,9841)),B),eu=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("2471")]).then(a.bind(a,2218)),B),ey=(0,i.getAsyncLifecycle)(()=>a.e("8759").then(a.bind(a,5914)),B),ef=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("8405"),a.e("8393"),a.e("2325"),a.e("8549"),a.e("6828")]).then(a.bind(a,2071)),B),eb=(0,i.getAsyncLifecycle)(()=>a.e("5189").then(a.bind(a,1252)),B),em=(0,i.getSyncLifecycle)((0,i.createDashboard)({slot:"act-cardiac-tests-dashboard-slot",path:"act-cardiac-tests",title:"Cardiac tests",icon:"omrs-icon-activity"}),B),eg=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("8405"),a.e("8393"),a.e("1397")]).then(a.bind(a,6820)),B),e_=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("3939")]).then(a.bind(a,6910)),B),ew=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("9498")]).then(a.bind(a,7425)),B),eT=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("8405"),a.e("1691")]).then(a.bind(a,1910)),B),eD=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("2662")]).then(a.bind(a,8165)),B),eP=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("7743")]).then(a.bind(a,6450)),B),ev=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("4710")]).then(a.bind(a,917)),B),eL=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("1067")]).then(a.bind(a,854)),B),eS=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("5416")]).then(a.bind(a,456)),B),ek=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("4480"),a.e("8100"),a.e("9245"),a.e("2869"),a.e("4259")]).then(a.bind(a,9193)),B),eR=(0,i.getSyncLifecycle)(function(){return(0,c.jsx)(d.p,{meta:l.DL})},B),eC=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("9245"),a.e("3530")]).then(a.bind(a,5626)),B),eU=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("647"),a.e("2889"),a.e("9245"),a.e("1570")]).then(a.bind(a,6640)).then(({ActHomeQuickActions:e})=>({default:e})),B),ex=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("647"),a.e("2889"),a.e("9245"),a.e("9217")]).then(a.bind(a,5255)),B),eI=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("647"),a.e("2889"),a.e("9245"),a.e("8345")]).then(a.bind(a,6475)),B),eH=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("647"),a.e("2889"),a.e("9245"),a.e("546")]).then(a.bind(a,5950)),B),eE=(0,i.getSyncLifecycle)(function(){return(0,c.jsx)(d.p,{meta:p.J})},B),eB=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("4480"),a.e("9245"),a.e("6669"),a.e("7201")]).then(a.bind(a,6388)),B),eW=(0,i.getSyncLifecycle)(function(){return(0,c.jsx)(d.p,{meta:h.av})},B),eF=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("27")]).then(a.bind(a,6070)),B),eO=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("4480"),a.e("9245"),a.e("8405"),a.e("6669"),a.e("8872"),a.e("7172")]).then(a.bind(a,4966)),B),eN=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("4480"),a.e("9245"),a.e("8405"),a.e("6669"),a.e("2143"),a.e("9921")]).then(a.bind(a,2639)),B),eM=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("4480"),a.e("9245"),a.e("6669"),a.e("5216")]).then(a.bind(a,7094)),B),ej=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("4480"),a.e("9245"),a.e("8405"),a.e("6669"),a.e("3226"),a.e("6558")]).then(a.bind(a,5462)),B),e$=(0,i.getSyncLifecycle)(function(){return u()?null:(0,c.jsx)(d.p,{meta:y.d})},B),eV=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("4480"),a.e("9245"),a.e("8405"),a.e("6669"),a.e("3226"),a.e("211")]).then(a.bind(a,9617)),B),eG=(0,i.getSyncLifecycle)(function(){let{t:e}=(0,b.useTranslation)();return u()?null:(0,c.jsx)(d.p,{meta:{...m.b,title:e("diagnosisToConfirm","Diagnosis to confirm")}})},B),eq=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("4480"),a.e("9245"),a.e("8405"),a.e("6669"),a.e("2143"),a.e("2287")]).then(a.bind(a,2866)),B),eQ=(0,i.getSyncLifecycle)(function(){let{t:e}=(0,b.useTranslation)();return(0,c.jsx)(d.p,{meta:{...T,title:e("reports","Reports")}})},B),eK=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("647"),a.e("2889"),a.e("9245"),a.e("289"),a.e("781")]).then(a.bind(a,7562)),B),ez=(0,i.getSyncLifecycle)(function(){return null},B),eZ=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("4480"),a.e("9245"),a.e("6669"),a.e("6993")]).then(a.bind(a,9972)),B),eJ=(0,i.getSyncLifecycle)(function(){let{t:e}=(0,b.useTranslation)();return(0,g.z)()?null:(0,c.jsx)(d.p,{meta:{...D,title:e("facilityReports","Facility reports")}})},B),eY=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("647"),a.e("2889"),a.e("9245"),a.e("289"),a.e("8431")]).then(a.bind(a,8528)),B),eX=(0,i.getSyncLifecycle)(function(){return(0,g.z)()?null:(0,c.jsx)(d.p,{meta:P.iX})},B),e0=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("9245"),a.e("5691")]).then(a.bind(a,3235)),B),e5=(0,i.getAsyncLifecycle)(()=>a.e("497").then(a.bind(a,3016)),B),e4=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("4480"),a.e("2889"),a.e("9314"),a.e("413"),a.e("2109"),a.e("9245"),a.e("1791"),a.e("5719")]).then(a.bind(a,4727)),B),e9=(0,i.getAsyncLifecycle)(()=>a.e("3957").then(a.bind(a,3684)),B),e2=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("9314"),a.e("413"),a.e("9245"),a.e("5521")]).then(a.bind(a,6872)),B),e8=(0,i.getAsyncLifecycle)(()=>a.e("6429").then(a.bind(a,668)),B),e6=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("9245"),a.e("7173")]).then(a.bind(a,5332)),B),e1=(0,i.getAsyncLifecycle)(()=>a.e("2122").then(a.bind(a,8449)),B),e3=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("4480"),a.e("647"),a.e("2889"),a.e("9622"),a.e("8100"),a.e("9245"),a.e("289"),a.e("2869"),a.e("4359"),a.e("8797")]).then(a.bind(a,3770)),B),e7=(0,i.getSyncLifecycle)(function(){return null},B),te=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("9622"),a.e("9245"),a.e("4359"),a.e("2393")]).then(a.bind(a,6128)),B),tt=(0,i.getAsyncLifecycle)(()=>a.e("8773").then(a.bind(a,3828)),B),ta=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("4480"),a.e("9314"),a.e("413"),a.e("9245"),a.e("7526")]).then(a.bind(a,8053)),B),ti=(0,i.getAsyncLifecycle)(()=>a.e("4945").then(a.bind(a,5272)),B),tn=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("9245"),a.e("5693")]).then(a.bind(a,3660)),B),ts=(0,i.getAsyncLifecycle)(()=>a.e("9257").then(a.bind(a,4259)),B),tr=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("9245"),a.e("808")]).then(a.bind(a,7467)),B),to=(0,i.getAsyncLifecycle)(()=>a.e("4107").then(a.bind(a,4550)),B),tc=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("4480"),a.e("9245"),a.e("5368")]).then(a.bind(a,2760)),B),td=(0,i.getAsyncLifecycle)(()=>a.e("6317").then(a.bind(a,5868)),B),tl=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("4480"),a.e("9245"),a.e("1791"),a.e("1079")]).then(a.bind(a,6695)),B),tp=(0,i.getSyncLifecycle)(function(){return null},B),th=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("4480"),a.e("8668"),a.e("9245"),a.e("8405"),a.e("8872"),a.e("2786"),a.e("9410")]).then(a.bind(a,8895)),B),tA=(0,i.getSyncLifecycle)(function(){let{t:e}=(0,b.useTranslation)();return(0,g.z)()?null:(0,c.jsx)(d.p,{meta:{..._.E,title:e("dueForProphylaxis","Due for prophylaxis")}})},B),tu=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("4480"),a.e("9245"),a.e("8405"),a.e("8872"),a.e("2786"),a.e("5634")]).then(a.bind(a,7868)),B),ty=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("4480"),a.e("647"),a.e("2889"),a.e("9245"),a.e("8405"),a.e("8872"),a.e("2786"),a.e("3741")]).then(a.bind(a,8041)),B),tf=(0,i.getSyncLifecycle)(function(){return(0,g.z)()?null:(0,c.jsx)(d.p,{meta:w.SJ})},B),tb=(0,i.getAsyncLifecycle)(()=>a.e("3385").then(a.bind(a,3136)),B),tm=(0,i.getAsyncLifecycle)(()=>a.e("6841").then(a.bind(a,3936)),B),tg=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("2913"),a.e("9245"),a.e("2379")]).then(a.bind(a,5455)),B),t_=()=>Promise.all([a.e("647"),a.e("2889"),a.e("9245"),a.e("1570")]).then(a.bind(a,6640)),tw=(0,i.getAsyncLifecycle)(()=>t_().then(({CommunityHomeQuickActions:e})=>({default:e})),B),tT=(0,i.getAsyncLifecycle)(()=>t_().then(({InstanceAdminQuickActions:e})=>({default:e})),B),tD=(0,i.getAsyncLifecycle)(()=>Promise.all([a.e("9245"),a.e("85")]).then(a.bind(a,6676)).then(({InstanceAdminKpis:e})=>({default:e})),B),tP=()=>Promise.all([a.e("647"),a.e("2889"),a.e("3106"),a.e("4718"),a.e("1894"),a.e("9245"),a.e("2230"),a.e("50"),a.e("5608")]).then(a.bind(a,3087)),tv=(0,i.getAsyncLifecycle)(()=>tP().then(({RegisterPatientAction:e})=>({default:e})),B),tL=(0,i.getAsyncLifecycle)(()=>tP().then(({EnterProphylaxisAction:e})=>({default:e})),B),tS=(0,i.getAsyncLifecycle)(()=>tP().then(({RecordBpgAction:e})=>({default:e})),B),tk=(0,i.getAsyncLifecycle)(()=>tP().then(({RecordOralAction:e})=>({default:e})),B),tR=(0,i.getAsyncLifecycle)(()=>tP().then(({FindPatientAction:e})=>({default:e})),B),tC=(0,i.getAsyncLifecycle)(()=>tP().then(({FacilityReportAction:e})=>({default:e})),B),tU=(0,i.getAsyncLifecycle)(()=>tP().then(({FormsAndSitesAction:e})=>({default:e})),B),tx=(0,i.getAsyncLifecycle)(()=>tP().then(({RolePermissionsAction:e})=>({default:e})),B),tI=(0,i.getAsyncLifecycle)(()=>tP().then(({ResearchParticipationAction:e})=>({default:e})),B)},8046(e,t,a){"use strict";a.d(t,{I6:()=>n,f8:()=>s,iX:()=>i});let i={name:"act-instance-admin",slot:"act-instance-admin-dashboard-slot",title:"home"},n="act-instance-admin-widgets-slot",s="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"}},9218(e,t,a){"use strict";a.d(t,{K:()=>i});let i={slot:"act-research-dashboard-slot",path:"act-research",title:"Research participation",icon:"omrs-icon-microscope"}},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:()=>s,Z6:()=>n,av:()=>i});let i={name:"act-worklists",slot:"rhd-worklists-dashboard-slot",title:"worklists"},n="act-worklists-slot",s=e=>`\${openmrsSpaBase}/home/${i.name}`+(e?`?${new URLSearchParams({list:e})}`:"")}}]);
|