@bahmni/clinical-app 0.0.1-dev.138 → 0.0.1-dev.141
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/{FormsTable-L_FgKUMC-COvFS_52.js → FormsTable-BJ9Pzu4W-Cu3nGApQ.js} +16 -16
- package/dist/{LNWAZHJI-j_F90fhZ.js → LNWAZHJI-CDckZxHA.js} +2 -2
- package/dist/{MWZ6AO7Z-CbZZHTUN.js → MWZ6AO7Z-De1DzP7r.js} +2 -2
- package/dist/{Observations-DvU3hHuI-CgfbHEEN.js → Observations-DFT3FNLn-BYNFUfST.js} +12 -12
- package/dist/{YPM2AS64-D5vh_8Kk.js → YPM2AS64-CWGKNpaa.js} +1 -1
- package/dist/{index-9ndQqNdz.js → index-Cpvxrqvw.js} +24897 -24770
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as t, jsxs as p, Fragment as
|
|
2
|
-
import { u as
|
|
3
|
-
import { useState as
|
|
1
|
+
import { jsx as t, jsxs as p, Fragment as W } from "react/jsx-runtime";
|
|
2
|
+
import { u as Z, V as Q, a as X, b as h, d as J, g as ee, $ as U, F as re, q as ae, c as oe, e as te, y as x, Z as ne, E as v, Y as se, U as me, K as de, W as ie } from "./index-Cpvxrqvw.js";
|
|
3
|
+
import { useState as G, useMemo as $, useCallback as y } from "react";
|
|
4
4
|
const le = "_formsTableBody_1pd36_1", ce = "_customAccordianItem_1pd36_6", ue = "_formContent_1pd36_18", pe = "_formDetailsContainer_1pd36_25", be = "_observation_1pd36_30", _e = "_groupContainer_1pd36_39", fe = "_rowContainer_1pd36_43", $e = "_groupLabel_1pd36_48", Ne = "_rowLabel_1pd36_58", ge = "_rowValue_1pd36_67", he = "_groupMembers_1pd36_75", ye = "_memberRow_1pd36_81", ve = "_memberLabel_1pd36_86", Ae = "_memberValue_1pd36_94", Me = "_abnormalValue_1pd36_102", Te = "_commentSection_1pd36_110", Le = "_commentText_1pd36_116", Ce = "_nestedGroup_1pd36_125", De = "_nestedGroupLabel_1pd36_132", Oe = "_nestedGroupMembers_1pd36_141", o = {
|
|
5
5
|
formsTableBody: le,
|
|
6
6
|
customAccordianItem: ce,
|
|
@@ -192,7 +192,7 @@ const le = "_formsTableBody_1pd36_1", ce = "_customAccordianItem_1pd36_6", ue =
|
|
|
192
192
|
encounterUuids: s,
|
|
193
193
|
config: d
|
|
194
194
|
}) => {
|
|
195
|
-
const { t: r } =
|
|
195
|
+
const { t: r } = Z(), u = Q(), [m, c] = G(!1), [a, b] = G(null), _ = d?.numberOfVisits, N = X(
|
|
196
196
|
e,
|
|
197
197
|
s
|
|
198
198
|
), {
|
|
@@ -231,9 +231,9 @@ const le = "_formsTableBody_1pd36_1", ce = "_customAccordianItem_1pd36_6", ue =
|
|
|
231
231
|
queryKey: ["formsEncounter", a?.encounterUuid],
|
|
232
232
|
queryFn: () => ie(a.encounterUuid, !0),
|
|
233
233
|
enabled: !!a?.encounterUuid && m
|
|
234
|
-
}),
|
|
234
|
+
}), E = $(() => !M?.observations || !a?.formName ? [] : M.observations.filter(
|
|
235
235
|
(n) => "formFieldPath" in n && typeof n.formFieldPath == "string" && n.formFieldPath.includes(a.formName)
|
|
236
|
-
), [M?.observations, a?.formName]),
|
|
236
|
+
), [M?.observations, a?.formName]), I = $(
|
|
237
237
|
() => [
|
|
238
238
|
{ key: "recordedOn", header: r("FORM_RECORDED_ON") },
|
|
239
239
|
{ key: "recordedBy", header: r("FORM_RECORDED_BY") }
|
|
@@ -245,12 +245,12 @@ const le = "_formsTableBody_1pd36_1", ce = "_customAccordianItem_1pd36_6", ue =
|
|
|
245
245
|
{ key: "recordedBy", sortable: !0 }
|
|
246
246
|
],
|
|
247
247
|
[]
|
|
248
|
-
),
|
|
248
|
+
), V = $(() => {
|
|
249
249
|
const n = D.reduce(
|
|
250
250
|
(l, i) => {
|
|
251
251
|
const f = i.formName;
|
|
252
252
|
l[f] ??= [];
|
|
253
|
-
const T = i.providers.map((
|
|
253
|
+
const T = i.providers.map((z) => z.providerName).filter(Boolean).join(", ");
|
|
254
254
|
return l[f].push({
|
|
255
255
|
id: i.encounterUuid,
|
|
256
256
|
formName: i.formName,
|
|
@@ -272,7 +272,7 @@ const le = "_formsTableBody_1pd36_1", ce = "_customAccordianItem_1pd36_6", ue =
|
|
|
272
272
|
).sort((l, i) => l.formName.localeCompare(i.formName));
|
|
273
273
|
}, [D, r]), S = y((n) => {
|
|
274
274
|
b(n), c(!0);
|
|
275
|
-
}, []),
|
|
275
|
+
}, []), Y = y(() => {
|
|
276
276
|
c(!1), b(null);
|
|
277
277
|
}, []), B = y(
|
|
278
278
|
(n, l) => {
|
|
@@ -287,11 +287,11 @@ const le = "_formsTableBody_1pd36_1", ce = "_customAccordianItem_1pd36_6", ue =
|
|
|
287
287
|
},
|
|
288
288
|
[S]
|
|
289
289
|
);
|
|
290
|
-
return /* @__PURE__ */ p(
|
|
291
|
-
/* @__PURE__ */ t("div", { "data-testid": "forms-table", children: L || C ||
|
|
290
|
+
return /* @__PURE__ */ p(W, { children: [
|
|
291
|
+
/* @__PURE__ */ t("div", { "data-testid": "forms-table", children: L || C || V.length === 0 || N ? /* @__PURE__ */ t(
|
|
292
292
|
U,
|
|
293
293
|
{
|
|
294
|
-
headers:
|
|
294
|
+
headers: I,
|
|
295
295
|
ariaLabel: r("FORMS_HEADING"),
|
|
296
296
|
rows: [],
|
|
297
297
|
loading: L,
|
|
@@ -301,7 +301,7 @@ const le = "_formsTableBody_1pd36_1", ce = "_customAccordianItem_1pd36_6", ue =
|
|
|
301
301
|
className: o.formsTableBody,
|
|
302
302
|
dataTestId: "forms-table"
|
|
303
303
|
}
|
|
304
|
-
) : /* @__PURE__ */ t(re, { align: "start", children:
|
|
304
|
+
) : /* @__PURE__ */ t(re, { align: "start", children: V.map((n, l) => {
|
|
305
305
|
const { formName: i, records: f } = n;
|
|
306
306
|
return /* @__PURE__ */ t(
|
|
307
307
|
ae,
|
|
@@ -313,7 +313,7 @@ const le = "_formsTableBody_1pd36_1", ce = "_customAccordianItem_1pd36_6", ue =
|
|
|
313
313
|
children: /* @__PURE__ */ t(
|
|
314
314
|
U,
|
|
315
315
|
{
|
|
316
|
-
headers:
|
|
316
|
+
headers: I,
|
|
317
317
|
ariaLabel: r("FORMS_HEADING"),
|
|
318
318
|
rows: f,
|
|
319
319
|
loading: !1,
|
|
@@ -334,13 +334,13 @@ const le = "_formsTableBody_1pd36_1", ce = "_customAccordianItem_1pd36_6", ue =
|
|
|
334
334
|
{
|
|
335
335
|
id: "modalIdForActionAreaLayout",
|
|
336
336
|
open: m,
|
|
337
|
-
onRequestClose:
|
|
337
|
+
onRequestClose: Y,
|
|
338
338
|
modalHeading: a.formName,
|
|
339
339
|
modalLabel: `${a.recordedOn} | ${a.recordedBy}`,
|
|
340
340
|
passiveModal: !0,
|
|
341
341
|
size: "md",
|
|
342
342
|
testId: "form-details-modal",
|
|
343
|
-
children: /* @__PURE__ */ t("div", { className: o.formContent, children: H || j ? /* @__PURE__ */ t(te, { width: "100%", lineCount: 3 }) : F ? /* @__PURE__ */ t("div", { children:
|
|
343
|
+
children: /* @__PURE__ */ t("div", { className: o.formContent, children: H || j ? /* @__PURE__ */ t(te, { width: "100%", lineCount: 3 }) : F ? /* @__PURE__ */ t("div", { children: x(F).message ?? r("ERROR_FETCHING_FORM_METADATA") }) : w ? /* @__PURE__ */ t("div", { children: x(w).message ?? r("ERROR_FETCHING_FORM_DATA") }) : E.length > 0 ? /* @__PURE__ */ t("div", { className: o.formDetailsContainer, children: E.map((n, l) => /* @__PURE__ */ t(
|
|
344
344
|
Fe,
|
|
345
345
|
{
|
|
346
346
|
observation: n,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-
|
|
2
|
-
import {
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-CWGKNpaa.js";
|
|
2
|
+
import { o as p, p as d, r as e } from "./index-Cpvxrqvw.js";
|
|
3
3
|
var f = (a) => {
|
|
4
4
|
const [r, o] = c({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-
|
|
2
|
-
import {
|
|
1
|
+
import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-CWGKNpaa.js";
|
|
2
|
+
import { o as v, p as C, r as e } from "./index-Cpvxrqvw.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as _, jsx as b } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { V as k, f as B, u as I, h as U, i as x, b as H, j as K, $ as Q, P as j, k as w, l as P, m as G, H as X, M as Y, n as Z } from "./index-Cpvxrqvw.js";
|
|
3
3
|
import { useRef as z, useEffect as S, useMemo as h } from "react";
|
|
4
4
|
const J = "normal", W = "http://terminology.hl7.org/CodeSystem/referencerange-meaning", ee = "A", te = "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", ne = (e, n) => e?.date ? j(e.date, n).formattedResult : n("DATE_ERROR_PARSE"), re = (e) => {
|
|
5
5
|
if (!e.observationValue?.value)
|
|
@@ -251,10 +251,10 @@ const D = (e, n, t, a, r) => {
|
|
|
251
251
|
}, be = "_observations_kfbhq_1", ge = "_title_kfbhq_12", T = {
|
|
252
252
|
observations: be,
|
|
253
253
|
title: ge
|
|
254
|
-
},
|
|
254
|
+
}, me = (e) => ["conceptUuid", e], fe = (e, n) => ["observations", e, ...n], Ee = ({ config: e }) => {
|
|
255
255
|
const n = e, { conceptNames: t = [], conceptUuid: a = [] } = n, r = z(/* @__PURE__ */ new Set()), o = k(), { addNotification: i } = B(), { t: s } = I(), u = U({
|
|
256
256
|
queries: t.map((d) => ({
|
|
257
|
-
queryKey:
|
|
257
|
+
queryKey: me(d),
|
|
258
258
|
queryFn: () => x(d),
|
|
259
259
|
enabled: !!d
|
|
260
260
|
}))
|
|
@@ -276,7 +276,7 @@ const D = (e, n, t, a, r) => {
|
|
|
276
276
|
isLoading: N,
|
|
277
277
|
isError: y
|
|
278
278
|
} = H({
|
|
279
|
-
queryKey:
|
|
279
|
+
queryKey: fe(o, v),
|
|
280
280
|
queryFn: () => Z(o, v),
|
|
281
281
|
enabled: !!o && v.length > 0 && c
|
|
282
282
|
});
|
|
@@ -295,12 +295,12 @@ const D = (e, n, t, a, r) => {
|
|
|
295
295
|
{ key: "name", header: "name" },
|
|
296
296
|
{ key: "value", header: "value" },
|
|
297
297
|
{ key: "form", header: "form" }
|
|
298
|
-
], O = N || !c, R = y && c, C = (!p || p.entry?.length === 0 || v.length === 0) && c, M = R ? s("ERROR_FETCHING_OBSERVATIONS") : null, q = C ? s("NO_OBSERVATIONS_FOUND") : void 0, F = E.length > 0 && !O && !R,
|
|
298
|
+
], O = N || !c, R = y && c, C = (!p || p.entry?.length === 0 || v.length === 0) && c, M = R ? s("ERROR_FETCHING_OBSERVATIONS") : null, q = C ? s("NO_OBSERVATIONS_FOUND") : void 0, F = E.length > 0 && !O && !R, f = n.titleTranslationKey, m = f ? s(f) : "";
|
|
299
299
|
return /* @__PURE__ */ _(
|
|
300
300
|
"div",
|
|
301
301
|
{
|
|
302
302
|
id: "observations",
|
|
303
|
-
"data-testid":
|
|
303
|
+
"data-testid": f ? `observations-${m}` : "observations",
|
|
304
304
|
"aria-label": "observations-aria-label",
|
|
305
305
|
className: T.observations,
|
|
306
306
|
children: [
|
|
@@ -308,13 +308,13 @@ const D = (e, n, t, a, r) => {
|
|
|
308
308
|
K,
|
|
309
309
|
{
|
|
310
310
|
id: "observations-title",
|
|
311
|
-
testId:
|
|
312
|
-
title:
|
|
311
|
+
testId: f ? `observations-title-${m}` : "observations-title",
|
|
312
|
+
title: m,
|
|
313
313
|
className: T.title,
|
|
314
|
-
children: /* @__PURE__ */ b("p", { children:
|
|
314
|
+
children: /* @__PURE__ */ b("p", { children: m })
|
|
315
315
|
}
|
|
316
316
|
),
|
|
317
|
-
F ? /* @__PURE__ */ b(pe, { groupedData: E, title:
|
|
317
|
+
F ? /* @__PURE__ */ b(pe, { groupedData: E, title: m }) : /* @__PURE__ */ b(
|
|
318
318
|
Q,
|
|
319
319
|
{
|
|
320
320
|
headers: V,
|
|
@@ -331,7 +331,7 @@ const D = (e, n, t, a, r) => {
|
|
|
331
331
|
);
|
|
332
332
|
};
|
|
333
333
|
export {
|
|
334
|
-
|
|
334
|
+
me as conceptUuidQueryKeys,
|
|
335
335
|
Ee as default,
|
|
336
|
-
|
|
336
|
+
fe as observationsQueryKeys
|
|
337
337
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { s as we, t as z, v as xt, w as B, p as q, r as y, x as Ro, z as ye, S as R, A as _, B as k, C as N, D as A, G as bs, I as ir, J as $e, L as G, N as Hn, O as Vn, Q as dt, R as D, T as xs, X as cn, _ as Be, a0 as ws, a1 as qt, a2 as zt, a3 as $s, a4 as Cs, a5 as $n, a6 as Ss, a7 as Nr, a8 as Bt, a9 as zo, aa as ks, ab as Es, ac as j, ad as Gr, ae as Ms, af as Ds, ag as sr, ah as As, ai as Ts, aj as zn, ak as Fs, al as Is, am as Z, an as Ps, ao as Ls } from "./index-Cpvxrqvw.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|