@bahmni/widgets 0.0.1-dev.247 → 0.0.1-dev.256
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/{DocumentsTable-BAVNcor9.js → DocumentsTable-Ccz-PfO3.js} +10 -10
- package/dist/{FormsTable-D_0WlGE7.js → FormsTable-_7HeX2Z4.js} +25 -25
- package/dist/{Observations-CL6xx-_f.js → Observations-B0lIYNHb.js} +26 -26
- package/dist/conditions/utils.d.ts.map +1 -1
- package/dist/{index-B9vjxIp3.js → index-Dis2HQ87.js} +433 -431
- package/dist/index.css +1 -1
- package/dist/index.js +15 -15
- package/package.json +1 -1
|
@@ -36873,7 +36873,7 @@ function Ms({
|
|
|
36873
36873
|
}, s), a));
|
|
36874
36874
|
}
|
|
36875
36875
|
const {
|
|
36876
|
-
open:
|
|
36876
|
+
open: Kht,
|
|
36877
36877
|
...sUe
|
|
36878
36878
|
} = s2.propTypes ?? {};
|
|
36879
36879
|
Ms.propTypes = {
|
|
@@ -62710,7 +62710,7 @@ const tXe = ({
|
|
|
62710
62710
|
container: rXe,
|
|
62711
62711
|
accordion: nXe,
|
|
62712
62712
|
rows: oXe
|
|
62713
|
-
},
|
|
62713
|
+
}, Ght = ({
|
|
62714
62714
|
title: t,
|
|
62715
62715
|
rows: e,
|
|
62716
62716
|
children: r,
|
|
@@ -65112,23 +65112,23 @@ Gt.getAdapter = Xfe.getAdapter;
|
|
|
65112
65112
|
Gt.HttpStatusCode = K3;
|
|
65113
65113
|
Gt.default = Gt;
|
|
65114
65114
|
const {
|
|
65115
|
-
Axios:
|
|
65116
|
-
AxiosError:
|
|
65117
|
-
CanceledError:
|
|
65118
|
-
isCancel:
|
|
65119
|
-
CancelToken:
|
|
65120
|
-
VERSION:
|
|
65121
|
-
all:
|
|
65122
|
-
Cancel:
|
|
65123
|
-
isAxiosError:
|
|
65124
|
-
spread:
|
|
65125
|
-
toFormData:
|
|
65126
|
-
AxiosHeaders:
|
|
65127
|
-
HttpStatusCode:
|
|
65128
|
-
formToJSON:
|
|
65129
|
-
getAdapter:
|
|
65130
|
-
mergeConfig:
|
|
65131
|
-
create:
|
|
65115
|
+
Axios: Jht,
|
|
65116
|
+
AxiosError: Qht,
|
|
65117
|
+
CanceledError: Xht,
|
|
65118
|
+
isCancel: ept,
|
|
65119
|
+
CancelToken: tpt,
|
|
65120
|
+
VERSION: rpt,
|
|
65121
|
+
all: npt,
|
|
65122
|
+
Cancel: opt,
|
|
65123
|
+
isAxiosError: apt,
|
|
65124
|
+
spread: ipt,
|
|
65125
|
+
toFormData: spt,
|
|
65126
|
+
AxiosHeaders: lpt,
|
|
65127
|
+
HttpStatusCode: cpt,
|
|
65128
|
+
formToJSON: dpt,
|
|
65129
|
+
getAdapter: upt,
|
|
65130
|
+
mergeConfig: hpt,
|
|
65131
|
+
create: ppt
|
|
65132
65132
|
} = Gt, wtt = (t) => typeof t == "object" && t !== null && "resourceType" in t && t.resourceType === "OperationOutcome", gtt = (t) => {
|
|
65133
65133
|
if (!t.issue || !Array.isArray(t.issue))
|
|
65134
65134
|
return null;
|
|
@@ -68557,7 +68557,7 @@ const pnt = () => {
|
|
|
68557
68557
|
}
|
|
68558
68558
|
};
|
|
68559
68559
|
}, x9e = pnt(), fnt = (t) => `${Sr}/concept?s=byFullySpecifiedName&name=${encodeURIComponent(t)}`, mnt = "SHORT", wnt = "FULLY_SPECIFIED";
|
|
68560
|
-
async function
|
|
68560
|
+
async function fpt(t) {
|
|
68561
68561
|
const e = fnt(t), r = await Dt(e);
|
|
68562
68562
|
return !r.results || r.results.length === 0 ? null : r.results[0];
|
|
68563
68563
|
}
|
|
@@ -68607,7 +68607,7 @@ async function Hnt(t) {
|
|
|
68607
68607
|
return Vnt(e);
|
|
68608
68608
|
}
|
|
68609
68609
|
var Q3 = /* @__PURE__ */ ((t) => (t.Active = "Active", t.Inactive = "Inactive", t))(Q3 || {}), hi = /* @__PURE__ */ ((t) => (t.mild = "mild", t.moderate = "moderate", t.severe = "severe", t))(hi || {});
|
|
68610
|
-
const bnt = "problem-list-item", Mnt = "encounter-diagnosis", xnt = "http://fhir.bahmni.org/ext/lab-order-concept-type",
|
|
68610
|
+
const bnt = "problem-list-item", Mnt = "encounter-diagnosis", xnt = "http://fhir.bahmni.org/ext/lab-order-concept-type", mpt = "http://fhir.bahmni.org/ext/observation/form-namespace-path", Nnt = (t, e = 10, r = 0) => $r + `/Condition?category=${bnt}&patient=${t}&_count=${e}&_getpagesoffset=${r}&_sort=-_lastUpdated`;
|
|
68611
68611
|
async function znt(t, e = 10, r = 1) {
|
|
68612
68612
|
const n = (r - 1) * e, a = await Dt(
|
|
68613
68613
|
Nnt(t, e, n)
|
|
@@ -73426,7 +73426,7 @@ const f2t = (t) => Sr + `/form/${t}?v=custom:(resources:(value))`, m2t = (t) =>
|
|
|
73426
73426
|
const r = e.join(",");
|
|
73427
73427
|
return `${$r}/Observation?patient=${t}&code=${r}&_include=Observation:has-member&_include=Observation:encounter&_sort=-_lastUpdated`;
|
|
73428
73428
|
};
|
|
73429
|
-
async function
|
|
73429
|
+
async function wpt(t, e) {
|
|
73430
73430
|
const r = v2t(t, e);
|
|
73431
73431
|
return await Dt(r);
|
|
73432
73432
|
}
|
|
@@ -73438,7 +73438,7 @@ async function y2t(t) {
|
|
|
73438
73438
|
return !e.results || e.results.length === 0 ? null : e.results[0];
|
|
73439
73439
|
}
|
|
73440
73440
|
const V2t = (t) => `${$r}/Observation/$fetch-all?encounter=${t}`;
|
|
73441
|
-
async function
|
|
73441
|
+
async function gpt(t) {
|
|
73442
73442
|
return await Dt(
|
|
73443
73443
|
V2t(t)
|
|
73444
73444
|
);
|
|
@@ -73488,12 +73488,12 @@ const ul = (t, e) => t?.length === 0 ? !1 : e?.length === 0, H2t = async () => {
|
|
|
73488
73488
|
editable: n.editable
|
|
73489
73489
|
}))
|
|
73490
73490
|
};
|
|
73491
|
-
},
|
|
73491
|
+
}, vpt = async (t) => {
|
|
73492
73492
|
const e = await b2t(), r = i9e();
|
|
73493
73493
|
return e.map(
|
|
73494
73494
|
(n) => x2t(n, r)
|
|
73495
73495
|
);
|
|
73496
|
-
},
|
|
73496
|
+
}, Ept = async (t) => {
|
|
73497
73497
|
const e = await fetch(f2t(t));
|
|
73498
73498
|
if (!e.ok)
|
|
73499
73499
|
throw new Error(
|
|
@@ -73527,7 +73527,7 @@ const ul = (t, e) => t?.length === 0 ? !1 : e?.length === 0, H2t = async () => {
|
|
|
73527
73527
|
schema: n,
|
|
73528
73528
|
translations: u
|
|
73529
73529
|
};
|
|
73530
|
-
},
|
|
73530
|
+
}, ypt = async (t, e, r) => {
|
|
73531
73531
|
const n = g2t(t, r), a = await Dt(n);
|
|
73532
73532
|
return Array.isArray(a) ? a : [];
|
|
73533
73533
|
}, N2t = Sr + "/bahmnicore/diseaseSummaryData?", z2t = async (t, e, r, n) => {
|
|
@@ -73623,7 +73623,7 @@ function D2t(t) {
|
|
|
73623
73623
|
};
|
|
73624
73624
|
});
|
|
73625
73625
|
}
|
|
73626
|
-
async function
|
|
73626
|
+
async function Vpt(t, e, r = 10, n = 1) {
|
|
73627
73627
|
const a = (n - 1) * r, i = L2t(
|
|
73628
73628
|
t,
|
|
73629
73629
|
e,
|
|
@@ -81115,7 +81115,7 @@ function Ect(t, e) {
|
|
|
81115
81115
|
ageDetails: vct(t.birthDate, e)
|
|
81116
81116
|
};
|
|
81117
81117
|
}
|
|
81118
|
-
const
|
|
81118
|
+
const Hpt = () => {
|
|
81119
81119
|
const { t } = Zt(), e = c1(), {
|
|
81120
81120
|
data: r,
|
|
81121
81121
|
isLoading: n,
|
|
@@ -81188,7 +81188,7 @@ const Vpt = () => {
|
|
|
81188
81188
|
"useNotification must be used within a NotificationProvider"
|
|
81189
81189
|
);
|
|
81190
81190
|
return t;
|
|
81191
|
-
},
|
|
81191
|
+
}, bpt = () => {
|
|
81192
81192
|
const { addNotification: t } = d1();
|
|
81193
81193
|
return le(() => {
|
|
81194
81194
|
x9e.register((e) => {
|
|
@@ -83077,7 +83077,7 @@ gr.setDefaultNamespace;
|
|
|
83077
83077
|
gr.hasLoadedNamespace;
|
|
83078
83078
|
gr.loadNamespaces;
|
|
83079
83079
|
gr.loadLanguages;
|
|
83080
|
-
const O3t = "active", L3t = "inactive", D3t = (t) => !!
|
|
83080
|
+
const O3t = "active", L3t = "inactive", D3t = "http://fhir.openmrs.org/ext/non-coded-condition", R3t = (t) => !!t.id, $3t = (t) => {
|
|
83081
83081
|
switch (t.clinicalStatus?.coding?.[0]?.code) {
|
|
83082
83082
|
case O3t:
|
|
83083
83083
|
return S0.Active;
|
|
@@ -83087,27 +83087,29 @@ const O3t = "active", L3t = "inactive", D3t = (t) => !!(t.id && t.code && t.reco
|
|
|
83087
83087
|
return S0.Inactive;
|
|
83088
83088
|
}
|
|
83089
83089
|
};
|
|
83090
|
-
function
|
|
83090
|
+
function S3t(t) {
|
|
83091
83091
|
return t.map((e) => {
|
|
83092
|
-
if (!
|
|
83092
|
+
if (!R3t(e))
|
|
83093
83093
|
throw new Error(gr.t("ERROR_CONDITION_MISSING_REQUIRED_FIELDS"));
|
|
83094
|
-
const r =
|
|
83095
|
-
|
|
83096
|
-
|
|
83094
|
+
const r = $3t(e), n = e.code?.coding?.[0], a = e.code?.text ?? n?.display, i = e.extension?.find(
|
|
83095
|
+
(s) => s.url === D3t && s.valueString
|
|
83096
|
+
)?.valueString;
|
|
83097
|
+
if (!a?.trim() && !i?.trim())
|
|
83098
|
+
throw new Error(gr.t("ERROR_CONDITION_MISSING_DISPLAY_INFORMATION"));
|
|
83097
83099
|
return {
|
|
83098
83100
|
id: e.id,
|
|
83099
|
-
display:
|
|
83101
|
+
display: a ?? i ?? "",
|
|
83100
83102
|
status: r,
|
|
83101
83103
|
onsetDate: e.onsetDateTime,
|
|
83102
83104
|
recordedDate: e.recordedDate,
|
|
83103
83105
|
recorder: e.recorder?.display,
|
|
83104
|
-
code: n
|
|
83105
|
-
codeDisplay: n
|
|
83106
|
-
note: e.note?.map((
|
|
83106
|
+
code: n?.code ?? "",
|
|
83107
|
+
codeDisplay: n?.display ?? i ?? "",
|
|
83108
|
+
note: e.note?.map((s) => s.text).filter(Boolean)
|
|
83107
83109
|
};
|
|
83108
83110
|
});
|
|
83109
83111
|
}
|
|
83110
|
-
const
|
|
83112
|
+
const I3t = ({ config: t }) => {
|
|
83111
83113
|
const e = Number(t?.pageSize) || 5, r = c1(), { t: n } = Zt(), { addNotification: a } = d1(), [i, s] = ue(1), [l, c] = ue(e), { data: u, isLoading: p, isError: m, error: g, refetch: v } = Kt({
|
|
83112
83114
|
queryKey: ["conditions", r, i, l],
|
|
83113
83115
|
enabled: !!r,
|
|
@@ -83119,7 +83121,7 @@ const S3t = ({ config: t }) => {
|
|
|
83119
83121
|
i
|
|
83120
83122
|
);
|
|
83121
83123
|
return {
|
|
83122
|
-
conditions:
|
|
83124
|
+
conditions: S3t(M.conditions),
|
|
83123
83125
|
total: M.total
|
|
83124
83126
|
};
|
|
83125
83127
|
}
|
|
@@ -83206,16 +83208,16 @@ const S3t = ({ config: t }) => {
|
|
|
83206
83208
|
}
|
|
83207
83209
|
) })
|
|
83208
83210
|
] });
|
|
83209
|
-
},
|
|
83211
|
+
}, Z3t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
83210
83212
|
__proto__: null,
|
|
83211
|
-
default:
|
|
83212
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
83213
|
-
diagnosesTableTitle:
|
|
83214
|
-
diagnosisName:
|
|
83215
|
-
diagnosesTableBody:
|
|
83216
|
-
confirmedCell:
|
|
83217
|
-
provisionalCell:
|
|
83218
|
-
},
|
|
83213
|
+
default: I3t
|
|
83214
|
+
}, Symbol.toStringTag, { value: "Module" })), k3t = "_diagnosesTableTitle_6tiek_1", B3t = "_diagnosisName_6tiek_14", P3t = "_diagnosesTableBody_6tiek_24", j3t = "_confirmedCell_6tiek_42", F3t = "_provisionalCell_6tiek_47", C2 = {
|
|
83215
|
+
diagnosesTableTitle: k3t,
|
|
83216
|
+
diagnosisName: B3t,
|
|
83217
|
+
diagnosesTableBody: P3t,
|
|
83218
|
+
confirmedCell: j3t,
|
|
83219
|
+
provisionalCell: F3t
|
|
83220
|
+
}, U3t = ({ config: t }) => {
|
|
83219
83221
|
const e = Number(t?.pageSize) || 5, { t: r } = Zt(), n = c1(), { addNotification: a } = d1(), [i, s] = ue(1), [l, c] = ue(e), { data: u, isLoading: p, isError: m, error: g, refetch: v } = Kt({
|
|
83220
83222
|
queryKey: ["diagnoses", n, i, l],
|
|
83221
83223
|
enabled: !!n,
|
|
@@ -83302,9 +83304,9 @@ const S3t = ({ config: t }) => {
|
|
|
83302
83304
|
}
|
|
83303
83305
|
) })
|
|
83304
83306
|
] });
|
|
83305
|
-
},
|
|
83307
|
+
}, q3t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
83306
83308
|
__proto__: null,
|
|
83307
|
-
default:
|
|
83309
|
+
default: U3t
|
|
83308
83310
|
}, Symbol.toStringTag, { value: "Module" })), xme = Nr(void 0), Uu = () => {
|
|
83309
83311
|
const t = dt(xme);
|
|
83310
83312
|
if (!t)
|
|
@@ -83318,7 +83320,7 @@ const S3t = ({ config: t }) => {
|
|
|
83318
83320
|
detail: { encounterType: t.encounterType, basedOn: e }
|
|
83319
83321
|
})
|
|
83320
83322
|
);
|
|
83321
|
-
},
|
|
83323
|
+
}, W3t = ({ actions: t, medication: e }) => {
|
|
83322
83324
|
const { t: r } = Zt(), { userPrivileges: n } = Uu();
|
|
83323
83325
|
if (t.length === 1) {
|
|
83324
83326
|
const a = t[0];
|
|
@@ -83356,24 +83358,24 @@ const S3t = ({ config: t }) => {
|
|
|
83356
83358
|
))
|
|
83357
83359
|
}
|
|
83358
83360
|
);
|
|
83359
|
-
},
|
|
83360
|
-
medicationTableEmpty:
|
|
83361
|
-
medicationTabList:
|
|
83362
|
-
medicationTabs:
|
|
83363
|
-
columnDataBold:
|
|
83364
|
-
medicationName:
|
|
83365
|
-
medicineDetails:
|
|
83366
|
-
PRN:
|
|
83367
|
-
STAT:
|
|
83368
|
-
activeStatus:
|
|
83369
|
-
scheduledStatus:
|
|
83370
|
-
cancelledStatus:
|
|
83371
|
-
completedStatus:
|
|
83372
|
-
stoppedStatus:
|
|
83373
|
-
unknownStatus:
|
|
83374
|
-
rowSeperator:
|
|
83375
|
-
medicationsTableBody:
|
|
83376
|
-
customAccordianItem:
|
|
83361
|
+
}, K3t = "_medicationTableEmpty_1uyri_1", Y3t = "_medicationTabList_1uyri_12", G3t = "_medicationTabs_1uyri_16", J3t = "_columnDataBold_1uyri_20", Q3t = "_medicationName_1uyri_27", X3t = "_medicineDetails_1uyri_37", e4t = "_PRN_1uyri_45", t4t = "_STAT_1uyri_50", r4t = "_activeStatus_1uyri_55", n4t = "_scheduledStatus_1uyri_59", o4t = "_cancelledStatus_1uyri_63", a4t = "_completedStatus_1uyri_67", i4t = "_stoppedStatus_1uyri_71", s4t = "_unknownStatus_1uyri_75", l4t = "_rowSeperator_1uyri_79", c4t = "_medicationsTableBody_1uyri_83", d4t = "_customAccordianItem_1uyri_90", Jt = {
|
|
83362
|
+
medicationTableEmpty: K3t,
|
|
83363
|
+
medicationTabList: Y3t,
|
|
83364
|
+
medicationTabs: G3t,
|
|
83365
|
+
columnDataBold: J3t,
|
|
83366
|
+
medicationName: Q3t,
|
|
83367
|
+
medicineDetails: X3t,
|
|
83368
|
+
PRN: e4t,
|
|
83369
|
+
STAT: t4t,
|
|
83370
|
+
activeStatus: r4t,
|
|
83371
|
+
scheduledStatus: n4t,
|
|
83372
|
+
cancelledStatus: o4t,
|
|
83373
|
+
completedStatus: a4t,
|
|
83374
|
+
stoppedStatus: i4t,
|
|
83375
|
+
unknownStatus: s4t,
|
|
83376
|
+
rowSeperator: l4t,
|
|
83377
|
+
medicationsTableBody: c4t,
|
|
83378
|
+
customAccordianItem: d4t
|
|
83377
83379
|
}, Nme = 6e4, zme = 36e5, khe = /* @__PURE__ */ Symbol.for("constructDateFrom");
|
|
83378
83380
|
function Ame(t, e) {
|
|
83379
83381
|
return typeof t == "function" ? t(e) : t && typeof t == "object" && khe in t ? t[khe](e) : t instanceof Date ? new t.constructor(e) : new Date(e);
|
|
@@ -83382,19 +83384,19 @@ function Bhe(t, e) {
|
|
|
83382
83384
|
return Ame(t, t);
|
|
83383
83385
|
}
|
|
83384
83386
|
function Phe(t, e) {
|
|
83385
|
-
const r = () => Ame(e?.in, NaN), a =
|
|
83387
|
+
const r = () => Ame(e?.in, NaN), a = f4t(t);
|
|
83386
83388
|
let i;
|
|
83387
83389
|
if (a.date) {
|
|
83388
|
-
const u =
|
|
83389
|
-
i =
|
|
83390
|
+
const u = m4t(a.date, 2);
|
|
83391
|
+
i = w4t(u.restDateString, u.year);
|
|
83390
83392
|
}
|
|
83391
83393
|
if (!i || isNaN(+i)) return r();
|
|
83392
83394
|
const s = +i;
|
|
83393
83395
|
let l = 0, c;
|
|
83394
|
-
if (a.time && (l =
|
|
83396
|
+
if (a.time && (l = g4t(a.time), isNaN(l)))
|
|
83395
83397
|
return r();
|
|
83396
83398
|
if (a.timezone) {
|
|
83397
|
-
if (c =
|
|
83399
|
+
if (c = v4t(a.timezone), isNaN(c)) return r();
|
|
83398
83400
|
} else {
|
|
83399
83401
|
const u = new Date(s + l), p = Bhe(0);
|
|
83400
83402
|
return p.setFullYear(
|
|
@@ -83414,8 +83416,8 @@ const Ga = {
|
|
|
83414
83416
|
dateTimeDelimiter: /[T ]/,
|
|
83415
83417
|
timeZoneDelimiter: /[Z ]/i,
|
|
83416
83418
|
timezone: /([Z+-].*)$/
|
|
83417
|
-
},
|
|
83418
|
-
function
|
|
83419
|
+
}, u4t = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, h4t = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, p4t = /^([+-])(\d{2})(?::?(\d{2}))?$/;
|
|
83420
|
+
function f4t(t) {
|
|
83419
83421
|
const e = {}, r = t.split(Ga.dateTimeDelimiter);
|
|
83420
83422
|
let n;
|
|
83421
83423
|
if (r.length > 2)
|
|
@@ -83429,7 +83431,7 @@ function p4t(t) {
|
|
|
83429
83431
|
}
|
|
83430
83432
|
return e;
|
|
83431
83433
|
}
|
|
83432
|
-
function
|
|
83434
|
+
function m4t(t, e) {
|
|
83433
83435
|
const r = new RegExp(
|
|
83434
83436
|
"^(?:(\\d{4}|[+-]\\d{" + (4 + e) + "})|(\\d{2}|[+-]\\d{" + (2 + e) + "})$)"
|
|
83435
83437
|
), n = t.match(r);
|
|
@@ -83440,70 +83442,70 @@ function f4t(t, e) {
|
|
|
83440
83442
|
restDateString: t.slice((n[1] || n[2]).length)
|
|
83441
83443
|
};
|
|
83442
83444
|
}
|
|
83443
|
-
function
|
|
83445
|
+
function w4t(t, e) {
|
|
83444
83446
|
if (e === null) return /* @__PURE__ */ new Date(NaN);
|
|
83445
|
-
const r = t.match(
|
|
83447
|
+
const r = t.match(u4t);
|
|
83446
83448
|
if (!r) return /* @__PURE__ */ new Date(NaN);
|
|
83447
83449
|
const n = !!r[4], a = T2(r[1]), i = T2(r[2]) - 1, s = T2(r[3]), l = T2(r[4]), c = T2(r[5]) - 1;
|
|
83448
83450
|
if (n)
|
|
83449
|
-
return
|
|
83451
|
+
return b4t(e, l, c) ? E4t(e, l, c) : /* @__PURE__ */ new Date(NaN);
|
|
83450
83452
|
{
|
|
83451
83453
|
const u = /* @__PURE__ */ new Date(0);
|
|
83452
|
-
return !
|
|
83454
|
+
return !V4t(e, i, s) || !H4t(e, a) ? /* @__PURE__ */ new Date(NaN) : (u.setUTCFullYear(e, i, Math.max(a, s)), u);
|
|
83453
83455
|
}
|
|
83454
83456
|
}
|
|
83455
83457
|
function T2(t) {
|
|
83456
83458
|
return t ? parseInt(t) : 1;
|
|
83457
83459
|
}
|
|
83458
|
-
function
|
|
83459
|
-
const e = t.match(
|
|
83460
|
+
function g4t(t) {
|
|
83461
|
+
const e = t.match(h4t);
|
|
83460
83462
|
if (!e) return NaN;
|
|
83461
83463
|
const r = Kc(e[1]), n = Kc(e[2]), a = Kc(e[3]);
|
|
83462
|
-
return
|
|
83464
|
+
return M4t(r, n, a) ? r * zme + n * Nme + a * 1e3 : NaN;
|
|
83463
83465
|
}
|
|
83464
83466
|
function Kc(t) {
|
|
83465
83467
|
return t && parseFloat(t.replace(",", ".")) || 0;
|
|
83466
83468
|
}
|
|
83467
|
-
function
|
|
83469
|
+
function v4t(t) {
|
|
83468
83470
|
if (t === "Z") return 0;
|
|
83469
|
-
const e = t.match(
|
|
83471
|
+
const e = t.match(p4t);
|
|
83470
83472
|
if (!e) return 0;
|
|
83471
83473
|
const r = e[1] === "+" ? -1 : 1, n = parseInt(e[2]), a = e[3] && parseInt(e[3]) || 0;
|
|
83472
|
-
return
|
|
83474
|
+
return x4t(n, a) ? r * (n * zme + a * Nme) : NaN;
|
|
83473
83475
|
}
|
|
83474
|
-
function
|
|
83476
|
+
function E4t(t, e, r) {
|
|
83475
83477
|
const n = /* @__PURE__ */ new Date(0);
|
|
83476
83478
|
n.setUTCFullYear(t, 0, 4);
|
|
83477
83479
|
const a = n.getUTCDay() || 7, i = (e - 1) * 7 + r + 1 - a;
|
|
83478
83480
|
return n.setUTCDate(n.getUTCDate() + i), n;
|
|
83479
83481
|
}
|
|
83480
|
-
const
|
|
83482
|
+
const y4t = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
83481
83483
|
function _me(t) {
|
|
83482
83484
|
return t % 400 === 0 || t % 4 === 0 && t % 100 !== 0;
|
|
83483
83485
|
}
|
|
83484
|
-
function
|
|
83485
|
-
return e >= 0 && e <= 11 && r >= 1 && r <= (
|
|
83486
|
+
function V4t(t, e, r) {
|
|
83487
|
+
return e >= 0 && e <= 11 && r >= 1 && r <= (y4t[e] || (_me(t) ? 29 : 28));
|
|
83486
83488
|
}
|
|
83487
|
-
function
|
|
83489
|
+
function H4t(t, e) {
|
|
83488
83490
|
return e >= 1 && e <= (_me(t) ? 366 : 365);
|
|
83489
83491
|
}
|
|
83490
|
-
function
|
|
83492
|
+
function b4t(t, e, r) {
|
|
83491
83493
|
return e >= 1 && e <= 53 && r >= 0 && r <= 6;
|
|
83492
83494
|
}
|
|
83493
|
-
function
|
|
83495
|
+
function M4t(t, e, r) {
|
|
83494
83496
|
return t === 24 ? e === 0 && r === 0 : r >= 0 && r < 60 && e >= 0 && e < 60 && t >= 0 && t < 25;
|
|
83495
83497
|
}
|
|
83496
|
-
function
|
|
83498
|
+
function x4t(t, e) {
|
|
83497
83499
|
return e >= 0 && e <= 59;
|
|
83498
83500
|
}
|
|
83499
|
-
const
|
|
83501
|
+
const N4t = (t, e) => {
|
|
83500
83502
|
if (!t || !e || e.length === 0)
|
|
83501
83503
|
return 999;
|
|
83502
83504
|
const r = e.findIndex(
|
|
83503
83505
|
(n) => n.toLowerCase() === t.toLowerCase().trim()
|
|
83504
83506
|
);
|
|
83505
83507
|
return r === -1 ? 999 : r;
|
|
83506
|
-
},
|
|
83508
|
+
}, z4t = [
|
|
83507
83509
|
"active",
|
|
83508
83510
|
"on-hold",
|
|
83509
83511
|
"stopped",
|
|
@@ -83512,8 +83514,8 @@ const x4t = (t, e) => {
|
|
|
83512
83514
|
"entered-in-error",
|
|
83513
83515
|
"draft",
|
|
83514
83516
|
"unknown"
|
|
83515
|
-
], jhe = (t) =>
|
|
83516
|
-
function
|
|
83517
|
+
], jhe = (t) => N4t(t, z4t), Fhe = (t) => [...t].sort((e, r) => jhe(e.status) - jhe(r.status)), Uhe = (t) => t.isImmediate ? 0 : 1, Yc = (t) => [...t].sort((e, r) => Uhe(e) - Uhe(r));
|
|
83518
|
+
function A4t(t) {
|
|
83517
83519
|
switch (t) {
|
|
83518
83520
|
case "s":
|
|
83519
83521
|
return "seconds";
|
|
@@ -83531,7 +83533,7 @@ function z4t(t) {
|
|
|
83531
83533
|
return "years";
|
|
83532
83534
|
}
|
|
83533
83535
|
}
|
|
83534
|
-
function
|
|
83536
|
+
function _4t(t) {
|
|
83535
83537
|
const {
|
|
83536
83538
|
id: e,
|
|
83537
83539
|
name: r,
|
|
@@ -83552,7 +83554,7 @@ function A4t(t) {
|
|
|
83552
83554
|
fhirResource: M
|
|
83553
83555
|
} = t, w = [];
|
|
83554
83556
|
n && w.push(`${n.value} ${n.unit}`), a && w.push(a), s?.durationUnit && w.push(
|
|
83555
|
-
`${s.duration} ${
|
|
83557
|
+
`${s.duration} ${A4t(s.durationUnit)}`
|
|
83556
83558
|
);
|
|
83557
83559
|
const y = w.join(" | "), x = [];
|
|
83558
83560
|
i && x.push(i), x.push(p), m && x.push(m);
|
|
@@ -83575,10 +83577,10 @@ function A4t(t) {
|
|
|
83575
83577
|
fhirResource: M
|
|
83576
83578
|
};
|
|
83577
83579
|
}
|
|
83578
|
-
const
|
|
83580
|
+
const C4t = (t) => !t || t.length === 0 ? [] : [...t].sort((e, r) => {
|
|
83579
83581
|
const n = Phe(e.startDate);
|
|
83580
83582
|
return Phe(r.startDate).getTime() - n.getTime();
|
|
83581
|
-
}),
|
|
83583
|
+
}), T4t = (t) => {
|
|
83582
83584
|
switch (t) {
|
|
83583
83585
|
case "active":
|
|
83584
83586
|
return Jt.activeStatus;
|
|
@@ -83593,7 +83595,7 @@ const _4t = (t) => !t || t.length === 0 ? [] : [...t].sort((e, r) => {
|
|
|
83593
83595
|
default:
|
|
83594
83596
|
return Jt.unknownStatus;
|
|
83595
83597
|
}
|
|
83596
|
-
},
|
|
83598
|
+
}, O4t = (t) => {
|
|
83597
83599
|
switch (t) {
|
|
83598
83600
|
case "active":
|
|
83599
83601
|
return "MEDICATIONS_STATUS_ACTIVE";
|
|
@@ -83616,7 +83618,7 @@ const _4t = (t) => !t || t.length === 0 ? [] : [...t].sort((e, r) => {
|
|
|
83616
83618
|
{ key: "orderedBy", sortable: !0 },
|
|
83617
83619
|
{ key: "orderDate", sortable: !0 },
|
|
83618
83620
|
{ key: "status", sortable: !0 }
|
|
83619
|
-
],
|
|
83621
|
+
], L4t = ({
|
|
83620
83622
|
config: t,
|
|
83621
83623
|
episodeOfCareUuids: e,
|
|
83622
83624
|
encounterUuids: r
|
|
@@ -83678,9 +83680,9 @@ const _4t = (t) => !t || t.length === 0 ? [] : [...t].sort((e, r) => {
|
|
|
83678
83680
|
activeSortable: c ? [...Ja, { key: "actions", sortable: !1 }] : Ja
|
|
83679
83681
|
};
|
|
83680
83682
|
}, [c]), A = De(() => M ? M.map(
|
|
83681
|
-
(S) =>
|
|
83683
|
+
(S) => _4t(S)
|
|
83682
83684
|
) : [], [M]), z = De(() => M ? Fhe(A) : [], [M, A]), O = De(() => {
|
|
83683
|
-
const S =
|
|
83685
|
+
const S = C4t(
|
|
83684
83686
|
z.filter((K) => K.status === "active")
|
|
83685
83687
|
), F = Yc(
|
|
83686
83688
|
S
|
|
@@ -83733,12 +83735,12 @@ const _4t = (t) => !t || t.length === 0 ? [] : [...t].sort((e, r) => {
|
|
|
83733
83735
|
Js,
|
|
83734
83736
|
{
|
|
83735
83737
|
testId: `medication-status-${S.id}`,
|
|
83736
|
-
label: n(
|
|
83737
|
-
dotClassName:
|
|
83738
|
+
label: n(O4t(S.status)),
|
|
83739
|
+
dotClassName: T4t(S.status)
|
|
83738
83740
|
}
|
|
83739
83741
|
);
|
|
83740
83742
|
case "actions":
|
|
83741
|
-
return /* @__PURE__ */ Q(
|
|
83743
|
+
return /* @__PURE__ */ Q(W3t, { actions: l, medication: S.fhirResource });
|
|
83742
83744
|
default:
|
|
83743
83745
|
return null;
|
|
83744
83746
|
}
|
|
@@ -83823,28 +83825,28 @@ const _4t = (t) => !t || t.length === 0 ? [] : [...t].sort((e, r) => {
|
|
|
83823
83825
|
]
|
|
83824
83826
|
}
|
|
83825
83827
|
) });
|
|
83826
|
-
},
|
|
83828
|
+
}, D4t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
83827
83829
|
__proto__: null,
|
|
83828
|
-
default:
|
|
83830
|
+
default: L4t
|
|
83829
83831
|
}, Symbol.toStringTag, { value: "Module" })), Cme = {
|
|
83830
83832
|
active: "IN_PROGRESS_STATUS",
|
|
83831
83833
|
completed: "COMPLETED_STATUS",
|
|
83832
83834
|
revoked: "REVOKED_STATUS",
|
|
83833
83835
|
unknown: "UNKNOWN_STATUS"
|
|
83834
|
-
},
|
|
83835
|
-
function
|
|
83836
|
+
}, R4t = "normal", $4t = "http://terminology.hl7.org/CodeSystem/referencerange-meaning", S4t = "A", I4t = "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", lo = (t) => (typeof t == "string" ? t : t?.reference)?.split("/")?.pop();
|
|
83837
|
+
function Z4t(t) {
|
|
83836
83838
|
return !t.interpretation || t.interpretation.length === 0 ? !1 : t.interpretation.some(
|
|
83837
83839
|
(e) => e.coding?.some(
|
|
83838
|
-
(r) => r.system ===
|
|
83840
|
+
(r) => r.system === I4t && r.code === S4t
|
|
83839
83841
|
)
|
|
83840
83842
|
);
|
|
83841
83843
|
}
|
|
83842
|
-
function
|
|
83844
|
+
function k4t(t) {
|
|
83843
83845
|
if (!t || t.length === 0)
|
|
83844
83846
|
return;
|
|
83845
83847
|
const e = t.find(
|
|
83846
83848
|
(r) => r.type?.coding?.some(
|
|
83847
|
-
(n) => n.system ===
|
|
83849
|
+
(n) => n.system === $4t && n.code === R4t
|
|
83848
83850
|
)
|
|
83849
83851
|
);
|
|
83850
83852
|
if (!(!e || !e.low && !e.high))
|
|
@@ -83878,14 +83880,14 @@ function Tme(t) {
|
|
|
83878
83880
|
valueDateTime: s,
|
|
83879
83881
|
valueTime: l,
|
|
83880
83882
|
referenceRange: c
|
|
83881
|
-
} = t, u =
|
|
83883
|
+
} = t, u = Z4t(t);
|
|
83882
83884
|
if (e)
|
|
83883
83885
|
return Zn(
|
|
83884
83886
|
e.value ?? "",
|
|
83885
83887
|
"quantity",
|
|
83886
83888
|
u,
|
|
83887
83889
|
e.unit,
|
|
83888
|
-
|
|
83890
|
+
k4t(c)
|
|
83889
83891
|
);
|
|
83890
83892
|
if (r)
|
|
83891
83893
|
return Zn(
|
|
@@ -83914,7 +83916,7 @@ function Ome(t) {
|
|
|
83914
83916
|
const c = e.isAbnormal ?? !1;
|
|
83915
83917
|
return { rangeString: l, isAbnormal: c };
|
|
83916
83918
|
}
|
|
83917
|
-
function
|
|
83919
|
+
function B4t(t) {
|
|
83918
83920
|
return [...t].sort(
|
|
83919
83921
|
({ sortId: e = "" }, { sortId: r = "" }) => e.localeCompare(r, void 0, { numeric: !0 })
|
|
83920
83922
|
);
|
|
@@ -83930,7 +83932,7 @@ function Lme(t) {
|
|
|
83930
83932
|
[]
|
|
83931
83933
|
);
|
|
83932
83934
|
}
|
|
83933
|
-
function
|
|
83935
|
+
function P4t(t) {
|
|
83934
83936
|
const e = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set();
|
|
83935
83937
|
t.forEach((i) => {
|
|
83936
83938
|
i.id && (e.set(i.id, i), i.hasMember?.forEach((s) => {
|
|
@@ -83958,12 +83960,12 @@ function B4t(t) {
|
|
|
83958
83960
|
a.push(l);
|
|
83959
83961
|
}), a;
|
|
83960
83962
|
}
|
|
83961
|
-
const
|
|
83963
|
+
const Mpt = (t, e) => t?.date ? mt(t.date, e).formattedResult : e("DATE_ERROR_PARSE"), qu = (t, e) => {
|
|
83962
83964
|
if (!t.observationValue?.value)
|
|
83963
83965
|
return "";
|
|
83964
83966
|
const { value: r, unit: n, type: a } = t.observationValue;
|
|
83965
83967
|
return a === "dateTime" ? mt(String(r), e).formattedResult : n ? `${r} ${n}` : String(r);
|
|
83966
|
-
},
|
|
83968
|
+
}, j4t = (t) => {
|
|
83967
83969
|
const e = t.display;
|
|
83968
83970
|
if (!t.observationValue)
|
|
83969
83971
|
return String(e);
|
|
@@ -83984,13 +83986,13 @@ const bpt = (t, e) => t?.date ? mt(t.date, e).formattedResult : e("DATE_ERROR_PA
|
|
|
83984
83986
|
return `${e} (<${s})`;
|
|
83985
83987
|
}
|
|
83986
83988
|
return e;
|
|
83987
|
-
},
|
|
83989
|
+
}, xpt = (t, e, r) => ({
|
|
83988
83990
|
index: e,
|
|
83989
|
-
header:
|
|
83991
|
+
header: j4t(t),
|
|
83990
83992
|
value: qu(t, r),
|
|
83991
83993
|
provider: t.encounter?.provider
|
|
83992
83994
|
});
|
|
83993
|
-
function
|
|
83995
|
+
function F4t(t, e) {
|
|
83994
83996
|
const r = e.get(t);
|
|
83995
83997
|
if (r)
|
|
83996
83998
|
return {
|
|
@@ -84011,14 +84013,14 @@ function Dme(t, e, r) {
|
|
|
84011
84013
|
observationValue: Tme(t),
|
|
84012
84014
|
effectiveDateTime: t.effectiveDateTime,
|
|
84013
84015
|
issued: t.issued,
|
|
84014
|
-
encounter: n ?
|
|
84016
|
+
encounter: n ? F4t(n, e) : void 0,
|
|
84015
84017
|
members: a.length > 0 ? a : void 0,
|
|
84016
84018
|
sortId: i,
|
|
84017
84019
|
conceptId: t.code?.coding?.[0]?.code
|
|
84018
84020
|
// conceptId is required to group the multiselect obs
|
|
84019
84021
|
};
|
|
84020
84022
|
}
|
|
84021
|
-
function
|
|
84023
|
+
function Npt(t) {
|
|
84022
84024
|
const e = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set();
|
|
84023
84025
|
t.entry?.forEach(({ resource: s }) => {
|
|
84024
84026
|
s?.id && (s.resourceType === "Encounter" ? e.set(s.id, s) : s.resourceType === "Observation" && (r.set(s.id, s), s.hasMember?.forEach((l) => {
|
|
@@ -84037,7 +84039,7 @@ function xpt(t) {
|
|
|
84037
84039
|
c.members ? i.push(c) : a.push(c);
|
|
84038
84040
|
}), { observations: a, groupedObservations: i };
|
|
84039
84041
|
}
|
|
84040
|
-
function
|
|
84042
|
+
function zpt(t) {
|
|
84041
84043
|
const e = /* @__PURE__ */ new Map();
|
|
84042
84044
|
return t.observations.forEach((r) => {
|
|
84043
84045
|
if (!r.encounter?.id) return;
|
|
@@ -84063,31 +84065,31 @@ function Npt(t) {
|
|
|
84063
84065
|
};
|
|
84064
84066
|
});
|
|
84065
84067
|
}
|
|
84066
|
-
function
|
|
84068
|
+
function Apt(t) {
|
|
84067
84069
|
return [...t].sort((e, r) => {
|
|
84068
84070
|
const n = e.encounterDetails?.date, a = r.encounterDetails?.date;
|
|
84069
84071
|
return !n && !a ? 0 : n ? a ? new Date(a).getTime() - new Date(n).getTime() : -1 : 1;
|
|
84070
84072
|
});
|
|
84071
84073
|
}
|
|
84072
|
-
const
|
|
84073
|
-
resultsContainer:
|
|
84074
|
-
observation:
|
|
84075
|
-
groupContainer:
|
|
84076
|
-
rowContainer:
|
|
84077
|
-
groupLabel:
|
|
84078
|
-
rowLabel:
|
|
84079
|
-
rowValue:
|
|
84080
|
-
groupMembers:
|
|
84081
|
-
memberRow:
|
|
84082
|
-
memberLabel:
|
|
84083
|
-
memberValue:
|
|
84084
|
-
abnormalValue:
|
|
84085
|
-
rangeInfo:
|
|
84086
|
-
nestedGroup:
|
|
84087
|
-
nestedGroupLabel:
|
|
84088
|
-
nestedGroupMembers:
|
|
84089
|
-
fullWidth:
|
|
84090
|
-
commentSection:
|
|
84074
|
+
const U4t = "_resultsContainer_1xew9_1", q4t = "_observation_1xew9_9", W4t = "_groupContainer_1xew9_17", K4t = "_rowContainer_1xew9_21", Y4t = "_groupLabel_1xew9_26", G4t = "_rowLabel_1xew9_35", J4t = "_rowValue_1xew9_43", Q4t = "_groupMembers_1xew9_51", X4t = "_memberRow_1xew9_57", edt = "_memberLabel_1xew9_62", tdt = "_memberValue_1xew9_70", rdt = "_abnormalValue_1xew9_78", ndt = "_rangeInfo_1xew9_86", odt = "_nestedGroup_1xew9_94", adt = "_nestedGroupLabel_1xew9_101", idt = "_nestedGroupMembers_1xew9_109", sdt = "_fullWidth_1xew9_115", ldt = "_commentSection_1xew9_119", St = {
|
|
84075
|
+
resultsContainer: U4t,
|
|
84076
|
+
observation: q4t,
|
|
84077
|
+
groupContainer: W4t,
|
|
84078
|
+
rowContainer: K4t,
|
|
84079
|
+
groupLabel: Y4t,
|
|
84080
|
+
rowLabel: G4t,
|
|
84081
|
+
rowValue: J4t,
|
|
84082
|
+
groupMembers: Q4t,
|
|
84083
|
+
memberRow: X4t,
|
|
84084
|
+
memberLabel: edt,
|
|
84085
|
+
memberValue: tdt,
|
|
84086
|
+
abnormalValue: rdt,
|
|
84087
|
+
rangeInfo: ndt,
|
|
84088
|
+
nestedGroup: odt,
|
|
84089
|
+
nestedGroupLabel: adt,
|
|
84090
|
+
nestedGroupMembers: idt,
|
|
84091
|
+
fullWidth: sdt,
|
|
84092
|
+
commentSection: ldt
|
|
84091
84093
|
}, Rme = (t, e = !1) => {
|
|
84092
84094
|
const r = art(t);
|
|
84093
84095
|
return r === "Image" ? /* @__PURE__ */ Q(
|
|
@@ -84201,7 +84203,7 @@ const F4t = "_resultsContainer_1xew9_1", U4t = "_observation_1xew9_9", q4t = "_g
|
|
|
84201
84203
|
}
|
|
84202
84204
|
)
|
|
84203
84205
|
] });
|
|
84204
|
-
},
|
|
84206
|
+
}, cdt = (t, e, r, n = "", a = !1) => {
|
|
84205
84207
|
const i = t.members && t.members.length > 0, { rangeString: s, isAbnormal: l } = Ome(t), c = qu(t, r), u = c ? Rme(c, a) : null, p = n ? `${n}-` : "";
|
|
84206
84208
|
return /* @__PURE__ */ Ce(
|
|
84207
84209
|
"div",
|
|
@@ -84287,7 +84289,7 @@ const F4t = "_resultsContainer_1xew9_1", U4t = "_observation_1xew9_9", q4t = "_g
|
|
|
84287
84289
|
}) => {
|
|
84288
84290
|
const { t: c } = Zt(), u = De(() => {
|
|
84289
84291
|
if (t.length === 0) return [];
|
|
84290
|
-
const m =
|
|
84292
|
+
const m = P4t(t), g = B4t(m);
|
|
84291
84293
|
return Lme(g);
|
|
84292
84294
|
}, [t]), p = [
|
|
84293
84295
|
{ key: "label", header: "label" },
|
|
@@ -84329,7 +84331,7 @@ const F4t = "_resultsContainer_1xew9_1", U4t = "_observation_1xew9_9", q4t = "_g
|
|
|
84329
84331
|
"aria-label": "observations-renderer-aria-label",
|
|
84330
84332
|
className: Lt(St.resultsContainer, i),
|
|
84331
84333
|
children: u.map(
|
|
84332
|
-
(m, g) =>
|
|
84334
|
+
(m, g) => cdt(m, g, c, s, l)
|
|
84333
84335
|
)
|
|
84334
84336
|
}
|
|
84335
84337
|
);
|
|
@@ -84398,18 +84400,18 @@ function Bme(t) {
|
|
|
84398
84400
|
}));
|
|
84399
84401
|
return e.length > 0 ? e : void 0;
|
|
84400
84402
|
}
|
|
84401
|
-
const
|
|
84402
|
-
investigationName:
|
|
84403
|
-
resultsCell:
|
|
84404
|
-
radiologyInvestigationTableBody:
|
|
84405
|
-
customAccordianItem:
|
|
84406
|
-
linkedOrderRow:
|
|
84407
|
-
expandableContentSpacer:
|
|
84408
|
-
reportSection:
|
|
84409
|
-
reportTitle:
|
|
84410
|
-
reportDetails:
|
|
84411
|
-
reportTile:
|
|
84412
|
-
},
|
|
84403
|
+
const ddt = "_investigationName_1sd3z_1", udt = "_resultsCell_1sd3z_11", hdt = "_radiologyInvestigationTableBody_1sd3z_17", pdt = "_customAccordianItem_1sd3z_30", fdt = "_linkedOrderRow_1sd3z_51", mdt = "_expandableContentSpacer_1sd3z_58", wdt = "_reportSection_1sd3z_62", gdt = "_reportTitle_1sd3z_65", vdt = "_reportDetails_1sd3z_71", Edt = "_reportTile_1sd3z_79", m1 = {
|
|
84404
|
+
investigationName: ddt,
|
|
84405
|
+
resultsCell: udt,
|
|
84406
|
+
radiologyInvestigationTableBody: hdt,
|
|
84407
|
+
customAccordianItem: pdt,
|
|
84408
|
+
linkedOrderRow: fdt,
|
|
84409
|
+
expandableContentSpacer: mdt,
|
|
84410
|
+
reportSection: wdt,
|
|
84411
|
+
reportTitle: gdt,
|
|
84412
|
+
reportDetails: vdt,
|
|
84413
|
+
reportTile: Edt
|
|
84414
|
+
}, ydt = ({ investigation: t, headers: e, renderCell: r, showLinkedOrders: n, showReport: a }) => {
|
|
84413
84415
|
const { t: i } = Zt(), s = t.status === "completed", l = !!t.reportId;
|
|
84414
84416
|
if (!n && !a)
|
|
84415
84417
|
return null;
|
|
@@ -84451,7 +84453,7 @@ const cdt = "_investigationName_1sd3z_1", ddt = "_resultsCell_1sd3z_11", udt = "
|
|
|
84451
84453
|
/* @__PURE__ */ Q(Ime, { reportId: t.reportId })
|
|
84452
84454
|
] }) }) })
|
|
84453
84455
|
] });
|
|
84454
|
-
},
|
|
84456
|
+
}, Vdt = ({
|
|
84455
84457
|
imagingStudyId: t,
|
|
84456
84458
|
onDateLoaded: e
|
|
84457
84459
|
}) => {
|
|
@@ -84484,11 +84486,11 @@ const cdt = "_investigationName_1sd3z_1", ddt = "_resultsCell_1sd3z_11", udt = "
|
|
|
84484
84486
|
emptyStateMessage: r("NO_QUALITY_ASSESSMENT_DATA")
|
|
84485
84487
|
}
|
|
84486
84488
|
);
|
|
84487
|
-
},
|
|
84489
|
+
}, Hdt = ["stat", "routine"], qhe = (t) => vu(t, Hdt), bdt = (t) => [...t].sort((e, r) => qhe(e.priority) - qhe(r.priority)), Mdt = (t) => l9e(
|
|
84488
84490
|
t,
|
|
84489
84491
|
(e) => e.id,
|
|
84490
84492
|
(e) => e.replaces
|
|
84491
|
-
),
|
|
84493
|
+
), xdt = (t) => t.entry?.filter((e) => e.resource?.resourceType === "ServiceRequest").map((e) => e.resource) ?? [], Ndt = (t) => t.entry?.filter((e) => e.resource?.resourceType === "ImagingStudy").map((e) => e.resource) ?? [], zdt = (t, e) => e.filter((r) => r.basedOn?.some((n) => (n.reference?.split("/").pop() ?? "") === t)), Adt = (t) => {
|
|
84492
84494
|
const e = t.identifier?.find(
|
|
84493
84495
|
(r) => r.system === "urn:dicom:uid"
|
|
84494
84496
|
)?.value ?? "";
|
|
@@ -84497,13 +84499,13 @@ const cdt = "_investigationName_1sd3z_1", ddt = "_resultsCell_1sd3z_11", udt = "
|
|
|
84497
84499
|
StudyInstanceUIDs: e,
|
|
84498
84500
|
status: t.status
|
|
84499
84501
|
};
|
|
84500
|
-
},
|
|
84502
|
+
}, _dt = (t) => t?.filter((e) => e.status === "available") ?? [], Pme = (t, e) => {
|
|
84501
84503
|
const r = e.get(t);
|
|
84502
84504
|
if (!r || !r.basedOn || r.basedOn.length === 0)
|
|
84503
84505
|
return t;
|
|
84504
84506
|
const n = r.basedOn[0];
|
|
84505
84507
|
return Pme(n, e);
|
|
84506
|
-
},
|
|
84508
|
+
}, Cdt = (t) => {
|
|
84507
84509
|
const e = new Map(t.map((a) => [a.id, a])), r = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
|
|
84508
84510
|
return t.forEach((a) => {
|
|
84509
84511
|
const i = Pme(a.id, e);
|
|
@@ -84516,14 +84518,14 @@ const cdt = "_investigationName_1sd3z_1", ddt = "_resultsCell_1sd3z_11", udt = "
|
|
|
84516
84518
|
};
|
|
84517
84519
|
});
|
|
84518
84520
|
};
|
|
84519
|
-
function
|
|
84520
|
-
const e =
|
|
84521
|
+
function Tdt(t) {
|
|
84522
|
+
const e = xdt(t), r = Ndt(t);
|
|
84521
84523
|
return e.map((n) => {
|
|
84522
|
-
const a = n.occurrencePeriod?.start, i = n.replaces?.map((p) => (p.reference ?? "").split("/").pop() ?? "").filter((p) => p.length > 0), s = n.basedOn?.map((p) => (p.reference ?? "").split("/").pop() ?? "").filter((p) => p.length > 0), l = n.note?.[0]?.text, u =
|
|
84524
|
+
const a = n.occurrencePeriod?.start, i = n.replaces?.map((p) => (p.reference ?? "").split("/").pop() ?? "").filter((p) => p.length > 0), s = n.basedOn?.map((p) => (p.reference ?? "").split("/").pop() ?? "").filter((p) => p.length > 0), l = n.note?.[0]?.text, u = zdt(
|
|
84523
84525
|
n.id,
|
|
84524
84526
|
r
|
|
84525
84527
|
).map(
|
|
84526
|
-
|
|
84528
|
+
Adt
|
|
84527
84529
|
);
|
|
84528
84530
|
return {
|
|
84529
84531
|
id: n.id,
|
|
@@ -84541,15 +84543,15 @@ function Cdt(t) {
|
|
|
84541
84543
|
};
|
|
84542
84544
|
});
|
|
84543
84545
|
}
|
|
84544
|
-
const jme = (t) => ["radiologyInvestigation", t],
|
|
84546
|
+
const jme = (t) => ["radiologyInvestigation", t], Odt = async (t, e, r, n) => {
|
|
84545
84547
|
const a = await t0t(
|
|
84546
84548
|
t,
|
|
84547
84549
|
e,
|
|
84548
84550
|
r,
|
|
84549
84551
|
n
|
|
84550
84552
|
);
|
|
84551
|
-
return
|
|
84552
|
-
},
|
|
84553
|
+
return Tdt(a);
|
|
84554
|
+
}, Ldt = ({
|
|
84553
84555
|
config: t,
|
|
84554
84556
|
encounterUuids: e,
|
|
84555
84557
|
episodeOfCareUuids: r
|
|
@@ -84571,7 +84573,7 @@ const jme = (t) => ["radiologyInvestigation", t], Tdt = async (t, e, r, n) => {
|
|
|
84571
84573
|
}), { data: z, isLoading: O, isError: T, error: R, refetch: S } = Kt({
|
|
84572
84574
|
queryKey: jme(n),
|
|
84573
84575
|
enabled: !!n && !!x && !y,
|
|
84574
|
-
queryFn: () =>
|
|
84576
|
+
queryFn: () => Odt(
|
|
84575
84577
|
n,
|
|
84576
84578
|
x,
|
|
84577
84579
|
e,
|
|
@@ -84610,9 +84612,9 @@ const jme = (t) => ["radiologyInvestigation", t], Tdt = async (t, e, r, n) => {
|
|
|
84610
84612
|
});
|
|
84611
84613
|
}, [X, J, i, a]);
|
|
84612
84614
|
const B = De(() => {
|
|
84613
|
-
const q =
|
|
84615
|
+
const q = Mdt(
|
|
84614
84616
|
z ?? []
|
|
84615
|
-
), U = u ?
|
|
84617
|
+
), U = u ? Cdt(q) : q;
|
|
84616
84618
|
return Eu(U, (oe) => mt(oe.orderedDate, a).formattedResult).sort(
|
|
84617
84619
|
(oe, pe) => new Date(pe.date).getTime() - new Date(oe.date).getTime()
|
|
84618
84620
|
).map((oe) => ({
|
|
@@ -84620,7 +84622,7 @@ const jme = (t) => ["radiologyInvestigation", t], Tdt = async (t, e, r, n) => {
|
|
|
84620
84622
|
investigations: oe.items
|
|
84621
84623
|
})).map((oe) => ({
|
|
84622
84624
|
...oe,
|
|
84623
|
-
investigations:
|
|
84625
|
+
investigations: bdt(
|
|
84624
84626
|
oe.investigations
|
|
84625
84627
|
)
|
|
84626
84628
|
}));
|
|
@@ -84654,7 +84656,7 @@ const jme = (t) => ["radiologyInvestigation", t], Tdt = async (t, e, r, n) => {
|
|
|
84654
84656
|
patientUuid: n
|
|
84655
84657
|
});
|
|
84656
84658
|
}, C = (q, U) => {
|
|
84657
|
-
const I =
|
|
84659
|
+
const I = _dt(
|
|
84658
84660
|
q.imagingStudies
|
|
84659
84661
|
), ne = I.length > 0 && c, ee = !U;
|
|
84660
84662
|
let oe = !1;
|
|
@@ -84817,7 +84819,7 @@ const jme = (t) => ["radiologyInvestigation", t], Tdt = async (t, e, r, n) => {
|
|
|
84817
84819
|
const W = v?.reportedDate && mt(v.reportedDate, a, !0).formattedResult, P = M && mt(M, a, !0).formattedResult, Z = v?.reportedBy, re = (q) => {
|
|
84818
84820
|
const U = q.linkedOrders && q.linkedOrders.length > 0, I = q.status === "completed", ne = !!q.reportId, ee = u && U, oe = p && I && ne;
|
|
84819
84821
|
return !ee && !oe ? null : /* @__PURE__ */ Q(
|
|
84820
|
-
|
|
84822
|
+
ydt,
|
|
84821
84823
|
{
|
|
84822
84824
|
investigation: q,
|
|
84823
84825
|
headers: F,
|
|
@@ -84922,7 +84924,7 @@ const jme = (t) => ["radiologyInvestigation", t], Tdt = async (t, e, r, n) => {
|
|
|
84922
84924
|
id: "modalIdForActionAreaLayout",
|
|
84923
84925
|
portalId: "main-display-area",
|
|
84924
84926
|
children: /* @__PURE__ */ Q(w1.Body, { children: /* @__PURE__ */ Q(
|
|
84925
|
-
|
|
84927
|
+
Vdt,
|
|
84926
84928
|
{
|
|
84927
84929
|
imagingStudyId: v.imagingStudies[0].id,
|
|
84928
84930
|
onDateLoaded: w
|
|
@@ -84933,30 +84935,30 @@ const jme = (t) => ["radiologyInvestigation", t], Tdt = async (t, e, r, n) => {
|
|
|
84933
84935
|
]
|
|
84934
84936
|
}
|
|
84935
84937
|
);
|
|
84936
|
-
},
|
|
84938
|
+
}, Ddt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
84937
84939
|
__proto__: null,
|
|
84938
|
-
default:
|
|
84940
|
+
default: Ldt,
|
|
84939
84941
|
radiologyInvestigationQueryKeys: jme
|
|
84940
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
84941
|
-
labSkeleton:
|
|
84942
|
-
labTest:
|
|
84943
|
-
labTestHeader:
|
|
84944
|
-
labTestInfo:
|
|
84945
|
-
testName:
|
|
84946
|
-
result:
|
|
84947
|
-
abnormalResult:
|
|
84948
|
-
testDetails:
|
|
84949
|
-
testResultsPending:
|
|
84950
|
-
accordionItem:
|
|
84951
|
-
labInvestigationTableBodyError:
|
|
84952
|
-
labTestResultsTable:
|
|
84953
|
-
viewAttachmentsLink:
|
|
84954
|
-
attachmentsContainer:
|
|
84955
|
-
attachmentViewer:
|
|
84956
|
-
attachmentIframe:
|
|
84957
|
-
attachmentImage:
|
|
84958
|
-
attachmentNumber:
|
|
84959
|
-
}, Gc = "/openmrs/auth?requested_document=/uploaded_results/",
|
|
84942
|
+
}, Symbol.toStringTag, { value: "Module" })), Rdt = "_labSkeleton_1icxb_1", $dt = "_labTest_1icxb_5", Sdt = "_labTestHeader_1icxb_10", Idt = "_labTestInfo_1icxb_19", Zdt = "_testName_1icxb_31", kdt = "_result_1icxb_39", Bdt = "_abnormalResult_1icxb_53", Pdt = "_testDetails_1icxb_69", jdt = "_testResultsPending_1icxb_77", Fdt = "_accordionItem_1icxb_86", Udt = "_labInvestigationTableBodyError_1icxb_97", qdt = "_labTestResultsTable_1icxb_106", Wdt = "_viewAttachmentsLink_1icxb_112", Kdt = "_attachmentsContainer_1icxb_116", Ydt = "_attachmentViewer_1icxb_123", Gdt = "_attachmentIframe_1icxb_131", Jdt = "_attachmentImage_1icxb_137", Qdt = "_attachmentNumber_1icxb_142", er = {
|
|
84943
|
+
labSkeleton: Rdt,
|
|
84944
|
+
labTest: $dt,
|
|
84945
|
+
labTestHeader: Sdt,
|
|
84946
|
+
labTestInfo: Idt,
|
|
84947
|
+
testName: Zdt,
|
|
84948
|
+
result: kdt,
|
|
84949
|
+
abnormalResult: Bdt,
|
|
84950
|
+
testDetails: Pdt,
|
|
84951
|
+
testResultsPending: jdt,
|
|
84952
|
+
accordionItem: Fdt,
|
|
84953
|
+
labInvestigationTableBodyError: Udt,
|
|
84954
|
+
labTestResultsTable: qdt,
|
|
84955
|
+
viewAttachmentsLink: Wdt,
|
|
84956
|
+
attachmentsContainer: Kdt,
|
|
84957
|
+
attachmentViewer: Ydt,
|
|
84958
|
+
attachmentIframe: Gdt,
|
|
84959
|
+
attachmentImage: Jdt,
|
|
84960
|
+
attachmentNumber: Qdt
|
|
84961
|
+
}, Gc = "/openmrs/auth?requested_document=/uploaded_results/", Xdt = ({
|
|
84960
84962
|
attachment: t,
|
|
84961
84963
|
index: e,
|
|
84962
84964
|
totalCount: r
|
|
@@ -84986,7 +84988,7 @@ const jme = (t) => ["radiologyInvestigation", t], Tdt = async (t, e, r, n) => {
|
|
|
84986
84988
|
] });
|
|
84987
84989
|
};
|
|
84988
84990
|
var j2 = /* @__PURE__ */ ((t) => (t.stat = "Urgent", t.routine = "Routine", t))(j2 || {});
|
|
84989
|
-
function
|
|
84991
|
+
function eut(t) {
|
|
84990
84992
|
if (!t.entry) return [];
|
|
84991
84993
|
const e = new Set(
|
|
84992
84994
|
t.entry.flatMap((i) => i.resource?.replaces ?? []).map((i) => i.reference?.split("/").pop()).filter(Boolean)
|
|
@@ -85000,7 +85002,7 @@ function Xdt(t) {
|
|
|
85000
85002
|
entry: r
|
|
85001
85003
|
}.entry?.map((i) => i.resource).filter((i) => i !== void 0) ?? [];
|
|
85002
85004
|
}
|
|
85003
|
-
const
|
|
85005
|
+
const tut = (t) => {
|
|
85004
85006
|
switch (t.priority) {
|
|
85005
85007
|
case "routine":
|
|
85006
85008
|
return j2.routine;
|
|
@@ -85009,15 +85011,15 @@ const eut = (t) => {
|
|
|
85009
85011
|
default:
|
|
85010
85012
|
return j2.routine;
|
|
85011
85013
|
}
|
|
85012
|
-
},
|
|
85014
|
+
}, rut = (t) => t.extension?.find(
|
|
85013
85015
|
(r) => r.url === xnt && r.valueString === "Panel"
|
|
85014
85016
|
) ? "Panel" : "Single Test";
|
|
85015
|
-
function
|
|
85017
|
+
function nut(t, e) {
|
|
85016
85018
|
return t.map((r) => {
|
|
85017
|
-
const n =
|
|
85019
|
+
const n = tut(r), a = r.occurrencePeriod?.start;
|
|
85018
85020
|
let i;
|
|
85019
85021
|
a && (i = mt(a, e).formattedResult || a.split("T")[0]);
|
|
85020
|
-
const s =
|
|
85022
|
+
const s = rut(r), l = r.note?.[0]?.text;
|
|
85021
85023
|
return {
|
|
85022
85024
|
id: r.id,
|
|
85023
85025
|
testName: r.code?.text ?? "",
|
|
@@ -85032,7 +85034,7 @@ function rut(t, e) {
|
|
|
85032
85034
|
};
|
|
85033
85035
|
});
|
|
85034
85036
|
}
|
|
85035
|
-
function
|
|
85037
|
+
function out(t) {
|
|
85036
85038
|
const e = /* @__PURE__ */ new Map();
|
|
85037
85039
|
return t.forEach((r) => {
|
|
85038
85040
|
const n = r.orderedDate.split("T")[0];
|
|
@@ -85045,16 +85047,16 @@ function nut(t) {
|
|
|
85045
85047
|
(r, n) => new Date(n.rawDate).getTime() - new Date(r.rawDate).getTime()
|
|
85046
85048
|
);
|
|
85047
85049
|
}
|
|
85048
|
-
function
|
|
85050
|
+
function aut(t) {
|
|
85049
85051
|
return t.map((e) => ({
|
|
85050
85052
|
...e,
|
|
85051
85053
|
tests: [...e.tests].sort((r, n) => r.priority === "Urgent" && n.priority !== "Urgent" ? -1 : r.priority !== "Urgent" && n.priority === "Urgent" ? 1 : 0)
|
|
85052
85054
|
}));
|
|
85053
85055
|
}
|
|
85054
|
-
function
|
|
85056
|
+
function iut(t) {
|
|
85055
85057
|
return t?.entry ? t.entry.filter((e) => e.resource?.resourceType === "Observation").map((e) => e.resource).filter((e) => !!e) : [];
|
|
85056
85058
|
}
|
|
85057
|
-
function
|
|
85059
|
+
function sut(t, e) {
|
|
85058
85060
|
return t.map((r) => {
|
|
85059
85061
|
const n = r.code?.text ?? r.code?.coding?.[0]?.display ?? "";
|
|
85060
85062
|
let a = "", i = "";
|
|
@@ -85079,19 +85081,19 @@ function iut(t, e) {
|
|
|
85079
85081
|
};
|
|
85080
85082
|
});
|
|
85081
85083
|
}
|
|
85082
|
-
function
|
|
85084
|
+
function lut(t, e) {
|
|
85083
85085
|
if (!t?.entry) return;
|
|
85084
85086
|
const n = t.entry.find(
|
|
85085
85087
|
(l) => l.resource?.resourceType === "DiagnosticReport"
|
|
85086
85088
|
)?.resource;
|
|
85087
85089
|
if (!n) return;
|
|
85088
|
-
const a =
|
|
85090
|
+
const a = iut(t), i = sut(a, e), s = Bme(n);
|
|
85089
85091
|
return s && s.length > 0 && i.length > 0 ? i.map((l) => ({
|
|
85090
85092
|
...l,
|
|
85091
85093
|
attachment: s[0]
|
|
85092
85094
|
})) : i.length > 0 ? i : void 0;
|
|
85093
85095
|
}
|
|
85094
|
-
const
|
|
85096
|
+
const cut = ({
|
|
85095
85097
|
test: t,
|
|
85096
85098
|
isOpen: e,
|
|
85097
85099
|
hasProcessedReport: r,
|
|
@@ -85107,7 +85109,7 @@ const lut = ({
|
|
|
85107
85109
|
enabled: e && r && !!n
|
|
85108
85110
|
}), p = De(() => {
|
|
85109
85111
|
if (l)
|
|
85110
|
-
return
|
|
85112
|
+
return lut(l, a);
|
|
85111
85113
|
}, [l, a]), m = Array.isArray(p) && p.length > 0, g = De(() => !m || !p ? [] : p.map((w, y) => ({
|
|
85112
85114
|
id: `${t.id}-${y}`,
|
|
85113
85115
|
testName: w.TestName,
|
|
@@ -85200,7 +85202,7 @@ const lut = ({
|
|
|
85200
85202
|
id: "modalIdForActionAreaLayout",
|
|
85201
85203
|
portalId: "main-display-area",
|
|
85202
85204
|
children: /* @__PURE__ */ Q(w1.Body, { children: /* @__PURE__ */ Q("div", { className: er.attachmentsContainer, children: t.attachments.map((w, y) => /* @__PURE__ */ Q(
|
|
85203
|
-
|
|
85205
|
+
Xdt,
|
|
85204
85206
|
{
|
|
85205
85207
|
attachment: w,
|
|
85206
85208
|
index: y + 1,
|
|
@@ -85211,15 +85213,15 @@ const lut = ({
|
|
|
85211
85213
|
}
|
|
85212
85214
|
)
|
|
85213
85215
|
] });
|
|
85214
|
-
},
|
|
85216
|
+
}, dut = async (t, e, r, n, a) => {
|
|
85215
85217
|
const i = await n0t(
|
|
85216
85218
|
t,
|
|
85217
85219
|
e,
|
|
85218
85220
|
n,
|
|
85219
85221
|
a
|
|
85220
|
-
), s =
|
|
85221
|
-
return
|
|
85222
|
-
},
|
|
85222
|
+
), s = eut(i);
|
|
85223
|
+
return nut(s, r);
|
|
85224
|
+
}, uut = ({
|
|
85223
85225
|
config: t,
|
|
85224
85226
|
encounterUuids: e,
|
|
85225
85227
|
episodeOfCareUuids: r
|
|
@@ -85253,7 +85255,7 @@ const lut = ({
|
|
|
85253
85255
|
l
|
|
85254
85256
|
],
|
|
85255
85257
|
enabled: !!a && !!v && !g,
|
|
85256
|
-
queryFn: () =>
|
|
85258
|
+
queryFn: () => dut(
|
|
85257
85259
|
a,
|
|
85258
85260
|
v,
|
|
85259
85261
|
n,
|
|
@@ -85295,8 +85297,8 @@ const lut = ({
|
|
|
85295
85297
|
() => M ?? [],
|
|
85296
85298
|
[M]
|
|
85297
85299
|
), A = H || w, z = E || y, O = De(() => {
|
|
85298
|
-
const K =
|
|
85299
|
-
return
|
|
85300
|
+
const K = out(N);
|
|
85301
|
+
return aut(K);
|
|
85300
85302
|
}, [N]), R = O[p]?.tests.map((K) => K.id) ?? [], { data: S } = Kt({
|
|
85301
85303
|
queryKey: [
|
|
85302
85304
|
"diagnosticReports",
|
|
@@ -85330,7 +85332,7 @@ const lut = ({
|
|
|
85330
85332
|
},
|
|
85331
85333
|
title: K.date,
|
|
85332
85334
|
children: K.tests?.map((X) => /* @__PURE__ */ Q(
|
|
85333
|
-
|
|
85335
|
+
cut,
|
|
85334
85336
|
{
|
|
85335
85337
|
test: X,
|
|
85336
85338
|
isOpen: c.has(J),
|
|
@@ -85342,11 +85344,11 @@ const lut = ({
|
|
|
85342
85344
|
},
|
|
85343
85345
|
K.date
|
|
85344
85346
|
)) });
|
|
85345
|
-
},
|
|
85347
|
+
}, hut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
85346
85348
|
__proto__: null,
|
|
85347
|
-
default:
|
|
85349
|
+
default: uut
|
|
85348
85350
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
85349
|
-
class
|
|
85351
|
+
class put {
|
|
85350
85352
|
type = "appointment";
|
|
85351
85353
|
/**
|
|
85352
85354
|
* Execute appointment search
|
|
@@ -85423,7 +85425,7 @@ class hut {
|
|
|
85423
85425
|
return !e?.reasons || !Array.isArray(e.reasons) ? "" : e.reasons.map((r) => r?.name).filter(Boolean).join(", ");
|
|
85424
85426
|
}
|
|
85425
85427
|
}
|
|
85426
|
-
class
|
|
85428
|
+
class fut {
|
|
85427
85429
|
type = "attributes";
|
|
85428
85430
|
/**
|
|
85429
85431
|
* Execute custom attribute search
|
|
@@ -85497,7 +85499,7 @@ class put {
|
|
|
85497
85499
|
return r ? "+" + n : n;
|
|
85498
85500
|
}
|
|
85499
85501
|
}
|
|
85500
|
-
class
|
|
85502
|
+
class mut {
|
|
85501
85503
|
type = "nameOrId";
|
|
85502
85504
|
/**
|
|
85503
85505
|
* Execute name or ID search
|
|
@@ -85557,7 +85559,7 @@ class fut {
|
|
|
85557
85559
|
};
|
|
85558
85560
|
}
|
|
85559
85561
|
}
|
|
85560
|
-
class
|
|
85562
|
+
class wut {
|
|
85561
85563
|
strategies = /* @__PURE__ */ new Map();
|
|
85562
85564
|
/**
|
|
85563
85565
|
* Register a search strategy
|
|
@@ -85594,20 +85596,20 @@ class mut {
|
|
|
85594
85596
|
return Array.from(this.strategies.keys());
|
|
85595
85597
|
}
|
|
85596
85598
|
}
|
|
85597
|
-
const bl = new
|
|
85599
|
+
const bl = new wut();
|
|
85600
|
+
bl.register(new mut());
|
|
85598
85601
|
bl.register(new fut());
|
|
85599
85602
|
bl.register(new put());
|
|
85600
|
-
|
|
85601
|
-
|
|
85602
|
-
|
|
85603
|
-
|
|
85604
|
-
|
|
85605
|
-
|
|
85606
|
-
|
|
85607
|
-
|
|
85608
|
-
|
|
85609
|
-
|
|
85610
|
-
}, Apt = ({
|
|
85603
|
+
const gut = "_searchPatientContainer_4r1cg_1", vut = "_searchPatient_4r1cg_1", Eut = "_searchButton_4r1cg_15", yut = "_orDivider_4r1cg_19", Vut = "_advanceSearchContainer_4r1cg_38", Hut = "_advanceInputWrapper_4r1cg_45", but = "_errorMessage_4r1cg_51", Mut = "_searchTypeDropdown_4r1cg_61", $1 = {
|
|
85604
|
+
searchPatientContainer: gut,
|
|
85605
|
+
searchPatient: vut,
|
|
85606
|
+
searchButton: Eut,
|
|
85607
|
+
orDivider: yut,
|
|
85608
|
+
advanceSearchContainer: Vut,
|
|
85609
|
+
advanceInputWrapper: Hut,
|
|
85610
|
+
errorMessage: but,
|
|
85611
|
+
searchTypeDropdown: Mut
|
|
85612
|
+
}, _pt = ({
|
|
85611
85613
|
buttonTitle: t,
|
|
85612
85614
|
searchBarPlaceholder: e,
|
|
85613
85615
|
patientSearch: r,
|
|
@@ -85826,14 +85828,14 @@ const wut = "_searchPatientContainer_4r1cg_1", gut = "_searchPatient_4r1cg_1", v
|
|
|
85826
85828
|
]
|
|
85827
85829
|
}
|
|
85828
85830
|
);
|
|
85829
|
-
},
|
|
85830
|
-
vitalFlowSheetDataTable:
|
|
85831
|
-
vitalSignCell:
|
|
85832
|
-
vitalSignName:
|
|
85833
|
-
obsValueCell:
|
|
85834
|
-
abnormalValue:
|
|
85835
|
-
complexDisplayValue:
|
|
85836
|
-
},
|
|
85831
|
+
}, xut = "_vitalFlowSheetDataTable_1tvv7_1", Nut = "_vitalSignCell_1tvv7_9", zut = "_vitalSignName_1tvv7_15", Aut = "_obsValueCell_1tvv7_23", _ut = "_abnormalValue_1tvv7_32", Cut = "_complexDisplayValue_1tvv7_37", Qr = {
|
|
85832
|
+
vitalFlowSheetDataTable: xut,
|
|
85833
|
+
vitalSignCell: Nut,
|
|
85834
|
+
vitalSignName: zut,
|
|
85835
|
+
obsValueCell: Aut,
|
|
85836
|
+
abnormalValue: _ut,
|
|
85837
|
+
complexDisplayValue: Cut
|
|
85838
|
+
}, Tut = (t) => {
|
|
85837
85839
|
const [e, r] = ue(null), [n, a] = ue(!1), [i, s] = ue(null), { addNotification: l } = d1(), c = c1(), u = De(
|
|
85838
85840
|
() => ({
|
|
85839
85841
|
latestCount: t.latestCount,
|
|
@@ -85878,7 +85880,7 @@ const wut = "_searchPatientContainer_4r1cg_1", gut = "_searchPatient_4r1cg_1", v
|
|
|
85878
85880
|
error: i,
|
|
85879
85881
|
refetch: p
|
|
85880
85882
|
};
|
|
85881
|
-
},
|
|
85883
|
+
}, Out = (t) => t?.tabularData ? Object.keys(t.tabularData).sort(
|
|
85882
85884
|
(e, r) => new Date(r).getTime() - new Date(e).getTime()
|
|
85883
85885
|
) : [], c4 = (t) => {
|
|
85884
85886
|
switch (t) {
|
|
@@ -85899,7 +85901,7 @@ const wut = "_searchPatientContainer_4r1cg_1", gut = "_searchPatient_4r1cg_1", v
|
|
|
85899
85901
|
default:
|
|
85900
85902
|
return t;
|
|
85901
85903
|
}
|
|
85902
|
-
},
|
|
85904
|
+
}, Lut = (t) => {
|
|
85903
85905
|
switch (t) {
|
|
85904
85906
|
case "seated":
|
|
85905
85907
|
return "BODY_POSITION_SITTING";
|
|
@@ -85916,7 +85918,7 @@ const wut = "_searchPatientContainer_4r1cg_1", gut = "_searchPatient_4r1cg_1", v
|
|
|
85916
85918
|
default:
|
|
85917
85919
|
return t;
|
|
85918
85920
|
}
|
|
85919
|
-
},
|
|
85921
|
+
}, Dut = (t) => {
|
|
85920
85922
|
const e = /* @__PURE__ */ new Map(), r = [];
|
|
85921
85923
|
return t.forEach((n) => {
|
|
85922
85924
|
let a = !1;
|
|
@@ -85924,7 +85926,7 @@ const wut = "_searchPatientContainer_4r1cg_1", gut = "_searchPatient_4r1cg_1", v
|
|
|
85924
85926
|
s.concepts.includes(n.name) && (e.has(i) || e.set(i, []), e.get(i).push(n), a = !0);
|
|
85925
85927
|
}), a || r.push(n);
|
|
85926
85928
|
}), { groupedConcepts: e, ungroupedConcepts: r };
|
|
85927
|
-
},
|
|
85929
|
+
}, Rut = (t, e, r, n) => {
|
|
85928
85930
|
const a = [];
|
|
85929
85931
|
return t.forEach((i, s) => {
|
|
85930
85932
|
const l = Fme[s], c = n(l.nameKey), u = {
|
|
@@ -85947,7 +85949,7 @@ const wut = "_searchPatientContainer_4r1cg_1", gut = "_searchPatient_4r1cg_1", v
|
|
|
85947
85949
|
u[`obs_${m}`] = H;
|
|
85948
85950
|
}), a.push(u);
|
|
85949
85951
|
}), a;
|
|
85950
|
-
},
|
|
85952
|
+
}, $ut = (t, e, r) => {
|
|
85951
85953
|
const n = [];
|
|
85952
85954
|
return t.forEach((a) => {
|
|
85953
85955
|
const i = c4(a.fullName), s = {
|
|
@@ -85987,7 +85989,7 @@ const wut = "_searchPatientContainer_4r1cg_1", gut = "_searchPatient_4r1cg_1", v
|
|
|
85987
85989
|
};
|
|
85988
85990
|
}
|
|
85989
85991
|
}
|
|
85990
|
-
},
|
|
85992
|
+
}, Sut = [], Iut = ({
|
|
85991
85993
|
config: { latestCount: t, obsConcepts: e, groupBy: r }
|
|
85992
85994
|
}) => {
|
|
85993
85995
|
const { t: n } = Zt(), a = c1(), {
|
|
@@ -85995,7 +85997,7 @@ const wut = "_searchPatientContainer_4r1cg_1", gut = "_searchPatient_4r1cg_1", v
|
|
|
85995
85997
|
loading: s,
|
|
85996
85998
|
error: l,
|
|
85997
85999
|
refetch: c
|
|
85998
|
-
} =
|
|
86000
|
+
} = Tut({
|
|
85999
86001
|
latestCount: t,
|
|
86000
86002
|
obsConcepts: e,
|
|
86001
86003
|
groupBy: r ?? "obstime"
|
|
@@ -86024,7 +86026,7 @@ ${n("TIME")}`
|
|
|
86024
86026
|
), p = De(() => {
|
|
86025
86027
|
if (!i)
|
|
86026
86028
|
return { headers: [], rows: [] };
|
|
86027
|
-
const g =
|
|
86029
|
+
const g = Out(i);
|
|
86028
86030
|
if (!i.conceptDetails || i.conceptDetails.length === 0)
|
|
86029
86031
|
return { headers: [], rows: [] };
|
|
86030
86032
|
if (!g.some((x) => {
|
|
@@ -86045,14 +86047,14 @@ ${n("TIME")}`
|
|
|
86045
86047
|
${A.formattedResult}`
|
|
86046
86048
|
};
|
|
86047
86049
|
})
|
|
86048
|
-
], { groupedConcepts: E, ungroupedConcepts: V } =
|
|
86050
|
+
], { groupedConcepts: E, ungroupedConcepts: V } = Dut(
|
|
86049
86051
|
i.conceptDetails
|
|
86050
|
-
), M =
|
|
86052
|
+
), M = Rut(
|
|
86051
86053
|
E,
|
|
86052
86054
|
g,
|
|
86053
86055
|
i,
|
|
86054
86056
|
n
|
|
86055
|
-
), w =
|
|
86057
|
+
), w = $ut(
|
|
86056
86058
|
V,
|
|
86057
86059
|
g,
|
|
86058
86060
|
i
|
|
@@ -86106,7 +86108,7 @@ ${A.formattedResult}`
|
|
|
86106
86108
|
}
|
|
86107
86109
|
)
|
|
86108
86110
|
] }),
|
|
86109
|
-
M.complexData.position && /* @__PURE__ */ Q("span", { children: n(
|
|
86111
|
+
M.complexData.position && /* @__PURE__ */ Q("span", { children: n(Lut(M.complexData.position)) })
|
|
86110
86112
|
] }) : H.value.includes(`
|
|
86111
86113
|
`) ? /* @__PURE__ */ Q("div", { children: H.value.split(`
|
|
86112
86114
|
`).map((y) => /* @__PURE__ */ Q("div", { children: y }, y)) }) : H.value;
|
|
@@ -86133,22 +86135,22 @@ ${A.formattedResult}`
|
|
|
86133
86135
|
renderCell: m,
|
|
86134
86136
|
className: Qr.vitalFlowSheetDataTable,
|
|
86135
86137
|
dataTestId: "vital-flow-sheet-table",
|
|
86136
|
-
sortable:
|
|
86138
|
+
sortable: Sut
|
|
86137
86139
|
}
|
|
86138
86140
|
);
|
|
86139
|
-
},
|
|
86141
|
+
}, Zut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
86140
86142
|
__proto__: null,
|
|
86141
|
-
default:
|
|
86142
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
86143
|
-
requestName:
|
|
86144
|
-
serviceRequestTableBody:
|
|
86145
|
-
customAccordianItem:
|
|
86146
|
-
},
|
|
86143
|
+
default: Iut
|
|
86144
|
+
}, Symbol.toStringTag, { value: "Module" })), kut = "_requestName_1uf67_1", But = "_serviceRequestTableBody_1uf67_12", Put = "_customAccordianItem_1uf67_25", Qa = {
|
|
86145
|
+
requestName: kut,
|
|
86146
|
+
serviceRequestTableBody: But,
|
|
86147
|
+
customAccordianItem: Put
|
|
86148
|
+
}, jut = ["stat", "routine"], Whe = (t) => vu(t, jut), Fut = (t) => [...t].sort((e, r) => Whe(e.priority) - Whe(r.priority)), Uut = (t) => l9e(
|
|
86147
86149
|
t,
|
|
86148
86150
|
(e) => e.id,
|
|
86149
86151
|
(e) => e.replaces
|
|
86150
86152
|
);
|
|
86151
|
-
function
|
|
86153
|
+
function qut(t) {
|
|
86152
86154
|
return (t.entry?.map(
|
|
86153
86155
|
(r) => r.resource
|
|
86154
86156
|
) ?? []).map((r) => {
|
|
@@ -86165,14 +86167,14 @@ function Uut(t) {
|
|
|
86165
86167
|
};
|
|
86166
86168
|
});
|
|
86167
86169
|
}
|
|
86168
|
-
const Ume = (t, e, r) => ["genericServiceRequest", t, e, r],
|
|
86170
|
+
const Ume = (t, e, r) => ["genericServiceRequest", t, e, r], Wut = async (t, e, r) => {
|
|
86169
86171
|
const n = await bu(
|
|
86170
86172
|
t,
|
|
86171
86173
|
e,
|
|
86172
86174
|
r
|
|
86173
86175
|
);
|
|
86174
|
-
return
|
|
86175
|
-
},
|
|
86176
|
+
return qut(n);
|
|
86177
|
+
}, Kut = ({
|
|
86176
86178
|
config: t,
|
|
86177
86179
|
episodeOfCareUuids: e,
|
|
86178
86180
|
encounterUuids: r,
|
|
@@ -86203,7 +86205,7 @@ const Ume = (t, e, r) => ["genericServiceRequest", t, e, r], qut = async (t, e,
|
|
|
86203
86205
|
r
|
|
86204
86206
|
),
|
|
86205
86207
|
enabled: !!i && !!u,
|
|
86206
|
-
queryFn: () =>
|
|
86208
|
+
queryFn: () => Wut(u, i, r)
|
|
86207
86209
|
});
|
|
86208
86210
|
X1(
|
|
86209
86211
|
(T) => {
|
|
@@ -86250,7 +86252,7 @@ const Ume = (t, e, r) => ["genericServiceRequest", t, e, r], qut = async (t, e,
|
|
|
86250
86252
|
],
|
|
86251
86253
|
[]
|
|
86252
86254
|
), z = De(() => {
|
|
86253
|
-
const T =
|
|
86255
|
+
const T = Uut(w);
|
|
86254
86256
|
return Eu(
|
|
86255
86257
|
T,
|
|
86256
86258
|
(j) => mt(j.orderedDate, a).formattedResult
|
|
@@ -86261,7 +86263,7 @@ const Ume = (t, e, r) => ["genericServiceRequest", t, e, r], qut = async (t, e,
|
|
|
86261
86263
|
requests: j.items
|
|
86262
86264
|
})).map((j) => ({
|
|
86263
86265
|
...j,
|
|
86264
|
-
requests:
|
|
86266
|
+
requests: Fut(j.requests)
|
|
86265
86267
|
}));
|
|
86266
86268
|
}, [w, a]), O = _e(
|
|
86267
86269
|
(T, R) => {
|
|
@@ -86334,30 +86336,30 @@ const Ume = (t, e, r) => ["genericServiceRequest", t, e, r], qut = async (t, e,
|
|
|
86334
86336
|
S
|
|
86335
86337
|
);
|
|
86336
86338
|
}) }) });
|
|
86337
|
-
},
|
|
86339
|
+
}, Yut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
86338
86340
|
__proto__: null,
|
|
86339
|
-
default:
|
|
86341
|
+
default: Kut,
|
|
86340
86342
|
genericServiceRequestQueryKeys: Ume
|
|
86341
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
86342
|
-
outcome:
|
|
86343
|
-
table:
|
|
86344
|
-
},
|
|
86343
|
+
}, Symbol.toStringTag, { value: "Module" })), Gut = "_outcome_1mnj8_1", Jut = "_table_1mnj8_23", Xa = {
|
|
86344
|
+
outcome: Gut,
|
|
86345
|
+
table: Jut
|
|
86346
|
+
}, Qut = [
|
|
86345
86347
|
"programName",
|
|
86346
86348
|
"startDate",
|
|
86347
86349
|
"endDate",
|
|
86348
86350
|
"outcome",
|
|
86349
86351
|
"state"
|
|
86350
86352
|
];
|
|
86351
|
-
function
|
|
86352
|
-
return t ? t.filter((e) => !
|
|
86353
|
+
function Xut(t) {
|
|
86354
|
+
return t ? t.filter((e) => !Qut.includes(e)) : [];
|
|
86353
86355
|
}
|
|
86354
|
-
function
|
|
86356
|
+
function eht(t, e) {
|
|
86355
86357
|
return t.map((r) => ({
|
|
86356
86358
|
key: r,
|
|
86357
86359
|
header: e(`PROGRAMS_TABLE_HEADER_${Wn(r)}`)
|
|
86358
86360
|
}));
|
|
86359
86361
|
}
|
|
86360
|
-
function
|
|
86362
|
+
function tht(t, e) {
|
|
86361
86363
|
return !t.results || t.results.length === 0 ? [] : t.results.map((r) => ({
|
|
86362
86364
|
id: r.uuid,
|
|
86363
86365
|
uuid: r.uuid,
|
|
@@ -86370,9 +86372,9 @@ function eht(t, e) {
|
|
|
86370
86372
|
attributes: I9e(r, e)
|
|
86371
86373
|
}));
|
|
86372
86374
|
}
|
|
86373
|
-
const
|
|
86375
|
+
const rht = ({ config: t }) => {
|
|
86374
86376
|
const { t: e } = Zt(), r = c1(), n = Number(t?.pageSize) || 5, [a, i] = ue(1), [s, l] = ue(n), c = De(
|
|
86375
|
-
() =>
|
|
86377
|
+
() => Xut(t?.fields ?? []),
|
|
86376
86378
|
[t?.fields]
|
|
86377
86379
|
), { data: u, isLoading: p, isError: m } = Kt({
|
|
86378
86380
|
queryKey: [
|
|
@@ -86391,7 +86393,7 @@ const tht = ({ config: t }) => {
|
|
|
86391
86393
|
a
|
|
86392
86394
|
);
|
|
86393
86395
|
return {
|
|
86394
|
-
programs:
|
|
86396
|
+
programs: tht(
|
|
86395
86397
|
{ results: V.programs },
|
|
86396
86398
|
c
|
|
86397
86399
|
),
|
|
@@ -86408,7 +86410,7 @@ const tht = ({ config: t }) => {
|
|
|
86408
86410
|
},
|
|
86409
86411
|
[s]
|
|
86410
86412
|
), v = De(
|
|
86411
|
-
() =>
|
|
86413
|
+
() => eht(t?.fields ?? [], e),
|
|
86412
86414
|
[t?.fields, e]
|
|
86413
86415
|
), H = De(() => [...u?.programs ?? []].sort((M, w) => !M.dateEnrolled && !w.dateEnrolled ? 0 : M.dateEnrolled ? w.dateEnrolled ? new Date(w.dateEnrolled).getTime() - new Date(M.dateEnrolled).getTime() : -1 : 1), [u?.programs]), E = (V, M) => {
|
|
86414
86416
|
switch (M) {
|
|
@@ -86499,13 +86501,13 @@ const tht = ({ config: t }) => {
|
|
|
86499
86501
|
)
|
|
86500
86502
|
}
|
|
86501
86503
|
);
|
|
86502
|
-
},
|
|
86504
|
+
}, nht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
86503
86505
|
__proto__: null,
|
|
86504
|
-
default:
|
|
86505
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
86506
|
+
default: rht
|
|
86507
|
+
}, Symbol.toStringTag, { value: "Module" })), oht = (t) => {
|
|
86506
86508
|
const { userPrivileges: e } = Uu();
|
|
86507
86509
|
return es(e, t);
|
|
86508
|
-
},
|
|
86510
|
+
}, aht = "http://fhir.bahmni.org/ext/immunization/administeredProduct", qme = "EP", iht = "OP", sht = "Add Immunizations", Khe = [
|
|
86509
86511
|
"code",
|
|
86510
86512
|
"doseSequence",
|
|
86511
86513
|
"drugName",
|
|
@@ -86524,33 +86526,33 @@ const tht = ({ config: t }) => {
|
|
|
86524
86526
|
"reason",
|
|
86525
86527
|
"date",
|
|
86526
86528
|
"recordedBy"
|
|
86527
|
-
],
|
|
86529
|
+
], lht = {
|
|
86528
86530
|
code: !0,
|
|
86529
86531
|
doseSequence: !1,
|
|
86530
86532
|
drugName: !1,
|
|
86531
86533
|
administeredOn: !0,
|
|
86532
86534
|
administeredLocation: !0
|
|
86533
|
-
},
|
|
86535
|
+
}, cht = {
|
|
86534
86536
|
code: !0,
|
|
86535
86537
|
reason: !1,
|
|
86536
86538
|
date: !0,
|
|
86537
86539
|
recordedBy: !0
|
|
86538
|
-
},
|
|
86539
|
-
widget:
|
|
86540
|
-
header:
|
|
86541
|
-
code:
|
|
86542
|
-
table:
|
|
86543
|
-
expandedRowContent:
|
|
86540
|
+
}, dht = "_widget_8h8mz_1", uht = "_header_8h8mz_5", hht = "_code_8h8mz_27", pht = "_table_8h8mz_34", fht = "_expandedRowContent_8h8mz_46", Xn = {
|
|
86541
|
+
widget: dht,
|
|
86542
|
+
header: uht,
|
|
86543
|
+
code: hht,
|
|
86544
|
+
table: pht,
|
|
86545
|
+
expandedRowContent: fht
|
|
86544
86546
|
};
|
|
86545
86547
|
function d4(t, e) {
|
|
86546
86548
|
return t.performer?.find(
|
|
86547
86549
|
(r) => r.function?.coding?.some((n) => n.code === e)
|
|
86548
86550
|
)?.actor?.display ?? null;
|
|
86549
86551
|
}
|
|
86550
|
-
function fht(t) {
|
|
86551
|
-
return t.extension?.find((e) => e.url === oht)?.valueReference?.display ?? null;
|
|
86552
|
-
}
|
|
86553
86552
|
function mht(t) {
|
|
86553
|
+
return t.extension?.find((e) => e.url === aht)?.valueReference?.display ?? null;
|
|
86554
|
+
}
|
|
86555
|
+
function wht(t) {
|
|
86554
86556
|
const e = t.protocolApplied?.[0]?.doseNumberPositiveInt ?? t.protocolApplied?.[0]?.doseNumberString;
|
|
86555
86557
|
return e ? e.toString() : null;
|
|
86556
86558
|
}
|
|
@@ -86568,13 +86570,13 @@ function Kme(t, e) {
|
|
|
86568
86570
|
sortable: e[r] ?? !1
|
|
86569
86571
|
}));
|
|
86570
86572
|
}
|
|
86571
|
-
function
|
|
86572
|
-
const e = t.route?.coding?.[0]?.display ?? null, r = t.site?.coding?.[0]?.display ?? null, n = t.manufacturer?.display ?? null, a = t.lotNumber ?? null, i = t.expirationDate ?? null, s = d4(t, qme), l = d4(t,
|
|
86573
|
+
function ght(t) {
|
|
86574
|
+
const e = t.route?.coding?.[0]?.display ?? null, r = t.site?.coding?.[0]?.display ?? null, n = t.manufacturer?.display ?? null, a = t.lotNumber ?? null, i = t.expirationDate ?? null, s = d4(t, qme), l = d4(t, iht), c = t.note?.[0]?.text ?? null;
|
|
86573
86575
|
return {
|
|
86574
86576
|
id: t.id ?? "",
|
|
86575
86577
|
code: t.vaccineCode?.coding?.[0]?.display ?? null,
|
|
86576
|
-
doseSequence:
|
|
86577
|
-
drugName:
|
|
86578
|
+
doseSequence: wht(t),
|
|
86579
|
+
drugName: mht(t) ?? null,
|
|
86578
86580
|
administeredOn: t.occurrenceDateTime ?? null,
|
|
86579
86581
|
administeredLocation: t.location?.display ?? null,
|
|
86580
86582
|
route: e,
|
|
@@ -86588,7 +86590,7 @@ function wht(t) {
|
|
|
86588
86590
|
hasDetails: !!(e ?? r ?? n ?? a ?? i ?? s ?? l)
|
|
86589
86591
|
};
|
|
86590
86592
|
}
|
|
86591
|
-
function
|
|
86593
|
+
function vht(t) {
|
|
86592
86594
|
return {
|
|
86593
86595
|
id: t.id ?? "",
|
|
86594
86596
|
code: t.vaccineCode?.coding?.[0]?.display ?? null,
|
|
@@ -86597,13 +86599,13 @@ function ght(t) {
|
|
|
86597
86599
|
recordedBy: d4(t, qme)
|
|
86598
86600
|
};
|
|
86599
86601
|
}
|
|
86600
|
-
const
|
|
86602
|
+
const Eht = async (t) => (await Z9e(t, "completed")).map(ght), Jhe = ({
|
|
86601
86603
|
patientUUID: t,
|
|
86602
86604
|
config: e
|
|
86603
86605
|
}) => {
|
|
86604
86606
|
const { t: r } = Zt(), { data: n, isLoading: a, isError: i, refetch: s } = Kt({
|
|
86605
86607
|
queryKey: ["immunizations", t, "completed"],
|
|
86606
|
-
queryFn: () =>
|
|
86608
|
+
queryFn: () => Eht(t),
|
|
86607
86609
|
enabled: !!t
|
|
86608
86610
|
});
|
|
86609
86611
|
X1(
|
|
@@ -86616,7 +86618,7 @@ const vht = async (t) => (await Z9e(t, "completed")).map(wht), Jhe = ({
|
|
|
86616
86618
|
() => Wme(e.columns, r),
|
|
86617
86619
|
[e.columns, r]
|
|
86618
86620
|
), c = De(
|
|
86619
|
-
() => Kme(e.columns,
|
|
86621
|
+
() => Kme(e.columns, lht),
|
|
86620
86622
|
[e.columns]
|
|
86621
86623
|
), u = (m, g) => g === "code" ? /* @__PURE__ */ Ce("div", { className: Xn.code, children: [
|
|
86622
86624
|
/* @__PURE__ */ Q("span", { children: m.code ?? "-" }),
|
|
@@ -86706,13 +86708,13 @@ const vht = async (t) => (await Z9e(t, "completed")).map(wht), Jhe = ({
|
|
|
86706
86708
|
)
|
|
86707
86709
|
}
|
|
86708
86710
|
);
|
|
86709
|
-
},
|
|
86711
|
+
}, yht = async (t) => (await Z9e(t, "not-done")).map(vht), Qhe = ({
|
|
86710
86712
|
patientUUID: t,
|
|
86711
86713
|
config: e
|
|
86712
86714
|
}) => {
|
|
86713
86715
|
const { t: r } = Zt(), { data: n, isLoading: a, isError: i, refetch: s } = Kt({
|
|
86714
86716
|
queryKey: ["immunizations", t, "not-done"],
|
|
86715
|
-
queryFn: () =>
|
|
86717
|
+
queryFn: () => yht(t),
|
|
86716
86718
|
enabled: !!t
|
|
86717
86719
|
});
|
|
86718
86720
|
X1(
|
|
@@ -86727,7 +86729,7 @@ const vht = async (t) => (await Z9e(t, "completed")).map(wht), Jhe = ({
|
|
|
86727
86729
|
), c = De(
|
|
86728
86730
|
() => Kme(
|
|
86729
86731
|
e.columns,
|
|
86730
|
-
|
|
86732
|
+
cht
|
|
86731
86733
|
),
|
|
86732
86734
|
[e.columns]
|
|
86733
86735
|
), u = (p, m) => m === "code" ? /* @__PURE__ */ Q("span", { className: Xn.code, children: p.code ?? "-" }) : m === "date" ? p.date ? mt(p.date, r).formattedResult : "-" : p[m] ?? "-";
|
|
@@ -86755,7 +86757,7 @@ const vht = async (t) => (await Z9e(t, "completed")).map(wht), Jhe = ({
|
|
|
86755
86757
|
)
|
|
86756
86758
|
}
|
|
86757
86759
|
);
|
|
86758
|
-
},
|
|
86760
|
+
}, Vht = (t) => {
|
|
86759
86761
|
switch (t) {
|
|
86760
86762
|
case "completed":
|
|
86761
86763
|
return "IMMUNIZATION_HISTORY_WIDGET_ADMINISTERED_TAB_TITLE";
|
|
@@ -86764,7 +86766,7 @@ const vht = async (t) => (await Z9e(t, "completed")).map(wht), Jhe = ({
|
|
|
86764
86766
|
default:
|
|
86765
86767
|
return "IMMUNIZATION_HISTORY_WIDGET_TITLE";
|
|
86766
86768
|
}
|
|
86767
|
-
},
|
|
86769
|
+
}, Hht = ({ config: t }) => {
|
|
86768
86770
|
const { t: e } = Zt(), r = c1(), [n, a] = ue(0), i = t?.status, s = t?.encounterType, l = t?.startEncounterPrivilege, c = t?.administeredFields, u = t?.notAdministeredFields, p = {
|
|
86769
86771
|
columns: c ? c.filter((E) => Khe.includes(E)) : Khe,
|
|
86770
86772
|
expandedFields: c ? c.filter(
|
|
@@ -86774,8 +86776,8 @@ const vht = async (t) => (await Z9e(t, "completed")).map(wht), Jhe = ({
|
|
|
86774
86776
|
columns: u ? u.filter(
|
|
86775
86777
|
(E) => Ghe.includes(E)
|
|
86776
86778
|
) : Ghe
|
|
86777
|
-
}, g =
|
|
86778
|
-
l ??
|
|
86779
|
+
}, g = oht(
|
|
86780
|
+
l ?? sht
|
|
86779
86781
|
), v = () => {
|
|
86780
86782
|
globalThis.dispatchEvent(
|
|
86781
86783
|
new CustomEvent("startConsultation", {
|
|
@@ -86857,7 +86859,7 @@ const vht = async (t) => (await Z9e(t, "completed")).map(wht), Jhe = ({
|
|
|
86857
86859
|
{
|
|
86858
86860
|
id: "immunization-history-widget-title",
|
|
86859
86861
|
"data-testid": "immunization-history-widget-title-test-id",
|
|
86860
|
-
children: e(
|
|
86862
|
+
children: e(Vht(i))
|
|
86861
86863
|
}
|
|
86862
86864
|
),
|
|
86863
86865
|
g && s && /* @__PURE__ */ Q(
|
|
@@ -86888,27 +86890,27 @@ const vht = async (t) => (await Z9e(t, "completed")).map(wht), Jhe = ({
|
|
|
86888
86890
|
]
|
|
86889
86891
|
}
|
|
86890
86892
|
);
|
|
86891
|
-
},
|
|
86893
|
+
}, bht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
86892
86894
|
__proto__: null,
|
|
86893
|
-
default:
|
|
86895
|
+
default: Hht
|
|
86894
86896
|
}, Symbol.toStringTag, { value: "Module" })), Yme = [
|
|
86895
86897
|
"programName",
|
|
86896
86898
|
"startDate",
|
|
86897
86899
|
"endDate",
|
|
86898
86900
|
"outcome",
|
|
86899
86901
|
"state"
|
|
86900
|
-
],
|
|
86901
|
-
error:
|
|
86902
|
-
loading:
|
|
86903
|
-
grid:
|
|
86904
|
-
header:
|
|
86905
|
-
title:
|
|
86906
|
-
programDetails:
|
|
86902
|
+
], Mht = "Edit Patient Programs", xht = "_error_16wpq_1", Nht = "_loading_16wpq_14", zht = "_grid_16wpq_20", Aht = "_header_16wpq_28", _ht = "_title_16wpq_39", Cht = "_programDetails_16wpq_53", kn = {
|
|
86903
|
+
error: xht,
|
|
86904
|
+
loading: Nht,
|
|
86905
|
+
grid: zht,
|
|
86906
|
+
header: Aht,
|
|
86907
|
+
title: _ht,
|
|
86908
|
+
programDetails: Cht
|
|
86907
86909
|
};
|
|
86908
|
-
function
|
|
86910
|
+
function Tht(t) {
|
|
86909
86911
|
return t ? t.filter((e) => !Yme.includes(e)) : [];
|
|
86910
86912
|
}
|
|
86911
|
-
function
|
|
86913
|
+
function Oht(t, e) {
|
|
86912
86914
|
return {
|
|
86913
86915
|
id: t.uuid,
|
|
86914
86916
|
uuid: t.uuid,
|
|
@@ -86925,22 +86927,22 @@ function Tht(t, e) {
|
|
|
86925
86927
|
}))
|
|
86926
86928
|
};
|
|
86927
86929
|
}
|
|
86928
|
-
const
|
|
86930
|
+
const Lht = (t) => ["programs", t], Dht = async (t, e) => {
|
|
86929
86931
|
const r = await T2t(t);
|
|
86930
|
-
return
|
|
86931
|
-
},
|
|
86932
|
+
return Oht(r, e);
|
|
86933
|
+
}, Cpt = ({
|
|
86932
86934
|
programUUID: t,
|
|
86933
86935
|
config: e
|
|
86934
86936
|
}) => {
|
|
86935
86937
|
const { t: r } = Zt(), { addNotification: n } = d1(), [a, i] = ue(!1), { userPrivileges: s } = Uu(), l = es(
|
|
86936
86938
|
s,
|
|
86937
|
-
|
|
86939
|
+
Mht
|
|
86938
86940
|
), c = De(
|
|
86939
|
-
() =>
|
|
86941
|
+
() => Tht(e?.fields),
|
|
86940
86942
|
[e?.fields]
|
|
86941
86943
|
), { data: u, isLoading: p, isError: m, refetch: g } = Kt({
|
|
86942
|
-
queryKey:
|
|
86943
|
-
queryFn: () =>
|
|
86944
|
+
queryKey: Lht(t),
|
|
86945
|
+
queryFn: () => Dht(t, c),
|
|
86944
86946
|
enabled: !!t
|
|
86945
86947
|
}), v = (w) => {
|
|
86946
86948
|
i(!0), O2t(t, w).then(() => {
|
|
@@ -87098,7 +87100,7 @@ const Oht = (t) => ["programs", t], Lht = async (t, e) => {
|
|
|
87098
87100
|
]
|
|
87099
87101
|
}
|
|
87100
87102
|
);
|
|
87101
|
-
},
|
|
87103
|
+
}, Rht = ({
|
|
87102
87104
|
children: t
|
|
87103
87105
|
}) => {
|
|
87104
87106
|
const [e, r] = ue(
|
|
@@ -87131,8 +87133,8 @@ const Oht = (t) => ["programs", t], Lht = async (t, e) => {
|
|
|
87131
87133
|
);
|
|
87132
87134
|
return /* @__PURE__ */ Q(xme.Provider, { value: l, children: t });
|
|
87133
87135
|
};
|
|
87134
|
-
|
|
87135
|
-
const
|
|
87136
|
+
Rht.displayName = "UserPrivilegeProvider";
|
|
87137
|
+
const Tpt = {
|
|
87136
87138
|
ENCOUNTER: ["Add Encounters"],
|
|
87137
87139
|
ALLERGIES: ["Add Allergies"],
|
|
87138
87140
|
CONDITIONS_AND_DIAGNOSES: ["Add Diagnoses"],
|
|
@@ -87140,7 +87142,7 @@ const Cpt = {
|
|
|
87140
87142
|
MEDICATIONS: ["Add Orders"],
|
|
87141
87143
|
OBSERVATIONS: ["Add Observations"],
|
|
87142
87144
|
VACCINATIONS: ["Add Orders"]
|
|
87143
|
-
},
|
|
87145
|
+
}, $ht = ({
|
|
87144
87146
|
children: t
|
|
87145
87147
|
}) => (le(() => {
|
|
87146
87148
|
urt().then((e) => {
|
|
@@ -87149,8 +87151,8 @@ const Cpt = {
|
|
|
87149
87151
|
console.error("Failed to load default date format:", e);
|
|
87150
87152
|
});
|
|
87151
87153
|
}, []), /* @__PURE__ */ Q(qr, { children: t }));
|
|
87152
|
-
|
|
87153
|
-
const Gme = Nr(void 0),
|
|
87154
|
+
$ht.displayName = "AppContextProvider";
|
|
87155
|
+
const Gme = Nr(void 0), Sht = ({ children: t }) => {
|
|
87154
87156
|
const [e, r] = ue(null), [n, a] = ue(null), [i, s] = ue(!0), [l, c] = ue(null), u = _e(async (m) => {
|
|
87155
87157
|
s(!0);
|
|
87156
87158
|
try {
|
|
@@ -87190,20 +87192,20 @@ const Gme = Nr(void 0), $ht = ({ children: t }) => {
|
|
|
87190
87192
|
);
|
|
87191
87193
|
return /* @__PURE__ */ Q(Gme.Provider, { value: p, children: t });
|
|
87192
87194
|
};
|
|
87193
|
-
|
|
87194
|
-
const
|
|
87195
|
+
Sht.displayName = "ActivePractitionerProvider";
|
|
87196
|
+
const Opt = () => {
|
|
87195
87197
|
const t = dt(Gme);
|
|
87196
87198
|
if (t === void 0)
|
|
87197
87199
|
throw new Error(
|
|
87198
87200
|
"useActivePractitioner must be used within ActivePractitionerProvider"
|
|
87199
87201
|
);
|
|
87200
87202
|
return t;
|
|
87201
|
-
},
|
|
87202
|
-
errorState:
|
|
87203
|
-
errorStateTitle:
|
|
87204
|
-
errorStateBody:
|
|
87203
|
+
}, Iht = "_errorState_15v6j_1", Zht = "_errorStateTitle_15v6j_6", kht = "_errorStateBody_15v6j_14", Jc = {
|
|
87204
|
+
errorState: Iht,
|
|
87205
|
+
errorStateTitle: Zht,
|
|
87206
|
+
errorStateBody: kht
|
|
87205
87207
|
};
|
|
87206
|
-
function
|
|
87208
|
+
function Lpt(t) {
|
|
87207
87209
|
const {
|
|
87208
87210
|
context: e,
|
|
87209
87211
|
queryKey: r,
|
|
@@ -87267,7 +87269,7 @@ function Opt(t) {
|
|
|
87267
87269
|
};
|
|
87268
87270
|
return c.displayName = l, c;
|
|
87269
87271
|
}
|
|
87270
|
-
function
|
|
87272
|
+
function Dpt(t, e, r) {
|
|
87271
87273
|
return () => {
|
|
87272
87274
|
const n = dt(t);
|
|
87273
87275
|
if (!n)
|
|
@@ -87275,7 +87277,7 @@ function Lpt(t, e, r) {
|
|
|
87275
87277
|
return n;
|
|
87276
87278
|
};
|
|
87277
87279
|
}
|
|
87278
|
-
const
|
|
87280
|
+
const Bht = [
|
|
87279
87281
|
{
|
|
87280
87282
|
type: "allergies",
|
|
87281
87283
|
component: Br(() => Promise.resolve().then(() => Rct))
|
|
@@ -87286,55 +87288,55 @@ const kht = [
|
|
|
87286
87288
|
},
|
|
87287
87289
|
{
|
|
87288
87290
|
type: "conditions",
|
|
87289
|
-
component: Br(() => Promise.resolve().then(() =>
|
|
87291
|
+
component: Br(() => Promise.resolve().then(() => Z3t))
|
|
87290
87292
|
},
|
|
87291
87293
|
{
|
|
87292
87294
|
type: "diagnoses",
|
|
87293
|
-
component: Br(() => Promise.resolve().then(() =>
|
|
87295
|
+
component: Br(() => Promise.resolve().then(() => q3t))
|
|
87294
87296
|
},
|
|
87295
87297
|
{
|
|
87296
87298
|
type: "patientDocuments",
|
|
87297
|
-
component: Br(() => import("./DocumentsTable-
|
|
87299
|
+
component: Br(() => import("./DocumentsTable-Ccz-PfO3.js"))
|
|
87298
87300
|
},
|
|
87299
87301
|
{
|
|
87300
87302
|
type: "flowSheet",
|
|
87301
|
-
component: Br(() => Promise.resolve().then(() =>
|
|
87303
|
+
component: Br(() => Promise.resolve().then(() => Zut))
|
|
87302
87304
|
},
|
|
87303
87305
|
{
|
|
87304
87306
|
type: "forms",
|
|
87305
|
-
component: Br(() => import("./FormsTable-
|
|
87307
|
+
component: Br(() => import("./FormsTable-_7HeX2Z4.js"))
|
|
87306
87308
|
},
|
|
87307
87309
|
{
|
|
87308
87310
|
type: "labOrders",
|
|
87309
|
-
component: Br(() => Promise.resolve().then(() =>
|
|
87311
|
+
component: Br(() => Promise.resolve().then(() => hut))
|
|
87310
87312
|
},
|
|
87311
87313
|
{
|
|
87312
87314
|
type: "observations",
|
|
87313
|
-
component: Br(() => import("./Observations-
|
|
87315
|
+
component: Br(() => import("./Observations-B0lIYNHb.js"))
|
|
87314
87316
|
},
|
|
87315
87317
|
{
|
|
87316
87318
|
type: "ordersControl",
|
|
87317
87319
|
component: Br(
|
|
87318
|
-
() => Promise.resolve().then(() =>
|
|
87320
|
+
() => Promise.resolve().then(() => Yut)
|
|
87319
87321
|
)
|
|
87320
87322
|
},
|
|
87321
87323
|
{
|
|
87322
87324
|
type: "pacsOrders",
|
|
87323
87325
|
component: Br(
|
|
87324
|
-
() => Promise.resolve().then(() =>
|
|
87326
|
+
() => Promise.resolve().then(() => Ddt)
|
|
87325
87327
|
)
|
|
87326
87328
|
},
|
|
87327
87329
|
{
|
|
87328
87330
|
type: "programs",
|
|
87329
|
-
component: Br(() => Promise.resolve().then(() =>
|
|
87331
|
+
component: Br(() => Promise.resolve().then(() => nht))
|
|
87330
87332
|
},
|
|
87331
87333
|
{
|
|
87332
87334
|
type: "treatment",
|
|
87333
|
-
component: Br(() => Promise.resolve().then(() =>
|
|
87335
|
+
component: Br(() => Promise.resolve().then(() => D4t))
|
|
87334
87336
|
},
|
|
87335
87337
|
{
|
|
87336
87338
|
type: "immunizationHistory",
|
|
87337
|
-
component: Br(() => Promise.resolve().then(() =>
|
|
87339
|
+
component: Br(() => Promise.resolve().then(() => bht))
|
|
87338
87340
|
}
|
|
87339
87341
|
];
|
|
87340
87342
|
class E1 {
|
|
@@ -87347,7 +87349,7 @@ class E1 {
|
|
|
87347
87349
|
return E1.instance || (E1.instance = new E1()), E1.instance;
|
|
87348
87350
|
}
|
|
87349
87351
|
registerBuiltInWidgets() {
|
|
87350
|
-
|
|
87352
|
+
Bht.forEach((e) => {
|
|
87351
87353
|
this.registry.set(e.type, e);
|
|
87352
87354
|
});
|
|
87353
87355
|
}
|
|
@@ -87380,76 +87382,76 @@ class E1 {
|
|
|
87380
87382
|
this.registry.clear(), this.registerBuiltInWidgets();
|
|
87381
87383
|
}
|
|
87382
87384
|
}
|
|
87383
|
-
const
|
|
87385
|
+
const Rpt = (t) => {
|
|
87384
87386
|
E1.getInstance().register(t);
|
|
87385
|
-
},
|
|
87387
|
+
}, $pt = (t) => E1.getInstance().get(t), Spt = (t) => E1.getInstance().getConfig(t), Ipt = (t) => E1.getInstance().has(t), Zpt = () => E1.getInstance().getAll(), kpt = () => E1.getInstance().getAllConfigs(), Bpt = () => {
|
|
87386
87388
|
E1.getInstance().reset();
|
|
87387
87389
|
};
|
|
87388
87390
|
export {
|
|
87389
87391
|
Ho as $,
|
|
87390
87392
|
Dct as A,
|
|
87391
|
-
|
|
87392
|
-
|
|
87393
|
-
|
|
87394
|
-
|
|
87395
|
-
|
|
87396
|
-
|
|
87397
|
-
|
|
87398
|
-
|
|
87399
|
-
|
|
87400
|
-
|
|
87401
|
-
|
|
87402
|
-
|
|
87403
|
-
|
|
87393
|
+
mt as B,
|
|
87394
|
+
Ght as C,
|
|
87395
|
+
U3t as D,
|
|
87396
|
+
Ime as E,
|
|
87397
|
+
_pt as F,
|
|
87398
|
+
Kut as G,
|
|
87399
|
+
rht as H,
|
|
87400
|
+
Hht as I,
|
|
87401
|
+
Cpt as J,
|
|
87402
|
+
gpt as K,
|
|
87403
|
+
uut as L,
|
|
87404
|
+
L4t as M,
|
|
87405
|
+
yct as N,
|
|
87404
87406
|
Lr as O,
|
|
87405
|
-
|
|
87406
|
-
|
|
87407
|
-
|
|
87408
|
-
|
|
87409
|
-
|
|
87410
|
-
|
|
87411
|
-
|
|
87412
|
-
|
|
87413
|
-
|
|
87414
|
-
|
|
87415
|
-
|
|
87416
|
-
|
|
87407
|
+
Hpt as P,
|
|
87408
|
+
bpt as Q,
|
|
87409
|
+
Ldt as R,
|
|
87410
|
+
Vpt as S,
|
|
87411
|
+
Uu as T,
|
|
87412
|
+
oht as U,
|
|
87413
|
+
Iut as V,
|
|
87414
|
+
ul as W,
|
|
87415
|
+
Rht as X,
|
|
87416
|
+
art as Y,
|
|
87417
|
+
Tpt as Z,
|
|
87418
|
+
$ht as _,
|
|
87417
87419
|
d1 as a,
|
|
87418
|
-
|
|
87419
|
-
|
|
87420
|
+
Sht as a0,
|
|
87421
|
+
Opt as a1,
|
|
87420
87422
|
Gme as a2,
|
|
87421
|
-
|
|
87422
|
-
|
|
87423
|
-
|
|
87424
|
-
|
|
87425
|
-
|
|
87426
|
-
|
|
87427
|
-
|
|
87428
|
-
|
|
87429
|
-
|
|
87430
|
-
|
|
87431
|
-
|
|
87432
|
-
|
|
87433
|
-
|
|
87423
|
+
Lpt as a3,
|
|
87424
|
+
Dpt as a4,
|
|
87425
|
+
Rpt as a5,
|
|
87426
|
+
$pt as a6,
|
|
87427
|
+
Spt as a7,
|
|
87428
|
+
Ipt as a8,
|
|
87429
|
+
Zpt as a9,
|
|
87430
|
+
kpt as aa,
|
|
87431
|
+
Bpt as ab,
|
|
87432
|
+
Ept as b,
|
|
87433
|
+
Sme as c,
|
|
87434
|
+
mpt as d,
|
|
87435
|
+
xo as e,
|
|
87434
87436
|
li as f,
|
|
87435
|
-
|
|
87436
|
-
|
|
87437
|
-
|
|
87438
|
-
|
|
87439
|
-
|
|
87440
|
-
|
|
87437
|
+
Mpt as g,
|
|
87438
|
+
xpt as h,
|
|
87439
|
+
ypt as i,
|
|
87440
|
+
$Qe as j,
|
|
87441
|
+
bXe as k,
|
|
87442
|
+
fpt as l,
|
|
87441
87443
|
lr as m,
|
|
87442
|
-
|
|
87443
|
-
|
|
87444
|
+
wpt as n,
|
|
87445
|
+
vpt as o,
|
|
87444
87446
|
Npt as p,
|
|
87445
|
-
|
|
87446
|
-
|
|
87447
|
-
|
|
87448
|
-
|
|
87447
|
+
zpt as q,
|
|
87448
|
+
s3t as r,
|
|
87449
|
+
Apt as s,
|
|
87450
|
+
No as t,
|
|
87449
87451
|
c1 as u,
|
|
87450
|
-
|
|
87451
|
-
|
|
87452
|
+
X1 as v,
|
|
87453
|
+
I3t as w,
|
|
87452
87454
|
uXe as x,
|
|
87453
87455
|
w1 as y,
|
|
87454
|
-
|
|
87456
|
+
mXe as z
|
|
87455
87457
|
};
|