@bahmni/appointments-app 0.0.1-dev.241 → 0.0.1-dev.244
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-DEXvARku-Czaw9hEu.js → DocumentsTable-DEmnzSjR-Yc58l4_I.js} +1 -1
- package/dist/{FormsTable-B1V8GAgi-C6bpuOxx.js → FormsTable-CXitFQpW-DRhHj54Z.js} +12 -12
- package/dist/{LNWAZHJI-mdk9Akpv.js → LNWAZHJI-CEOCc_PF.js} +2 -2
- package/dist/{MWZ6AO7Z-BrD_G_lq.js → MWZ6AO7Z-BqnD3lNr.js} +2 -2
- package/dist/{Observations-C4_YlUV0-CtDB_9f3.js → Observations-DsQfPuhO-DE3Oc46H.js} +6 -6
- package/dist/{YPM2AS64-Xa8MIeR7.js → YPM2AS64-BB0oTsZm.js} +1 -1
- package/dist/{index-CGUb5QIA.js → index-CF3QwtRK.js} +5207 -5199
- package/dist/{index-CEZR7MDS.js → index-DeXuaK_c.js} +8 -8
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r, jsxs as p, Fragment as Y } from "react/jsx-runtime";
|
|
2
|
-
import { c as K, u as Q, d as W, a as J, l as X, m as Z, b as ee, w as te, e as ae } from "./index-
|
|
2
|
+
import { c as K, u as Q, d as W, a as J, l as X, m as Z, b as ee, w as te, e as ae } from "./index-CF3QwtRK.js";
|
|
3
3
|
import { useState as l, useCallback as h, useEffect as f, useMemo as T } from "react";
|
|
4
4
|
const ne = "_documentsTableBody_1voj8_1", oe = "_viewAttachmentsLink_1voj8_11", re = "_documentViewerContainer_1voj8_15", de = "_attachmentItem_1voj8_23", se = "_attachmentCounter_1voj8_27", ce = "_attachmentError_1voj8_36", ie = "_documentIframe_1voj8_44", le = "_documentImage_1voj8_50", d = {
|
|
5
5
|
documentsTableBody: ne,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as s, jsxs as W, Fragment as X } from "react/jsx-runtime";
|
|
2
|
-
import { u as Z, c as ee, f as re, g as ae, a as c, Q as te, N as U, m as oe, l as se, b as S, x as ne, h as de, w as ie, $ as
|
|
2
|
+
import { u as Z, c as ee, f as re, g as ae, a as c, Q as te, N as U, m as oe, l as se, b as S, x as ne, h as de, w as ie, $ as ue, o as me, i as le, s as ce, j as fe, k as ye } from "./index-CF3QwtRK.js";
|
|
3
3
|
import { useState as q, useMemo as d, useCallback as f } from "react";
|
|
4
4
|
const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
|
|
5
5
|
formsTableBody: pe,
|
|
6
6
|
customAccordianItem: be
|
|
7
|
-
}, Ne = (
|
|
8
|
-
(n) => n.url ===
|
|
7
|
+
}, Ne = (u) => u ? u.extension?.find(
|
|
8
|
+
(n) => n.url === me
|
|
9
9
|
)?.valueString : void 0, Oe = ({
|
|
10
|
-
episodeOfCareUuids:
|
|
10
|
+
episodeOfCareUuids: u,
|
|
11
11
|
encounterUuids: n,
|
|
12
12
|
config: C
|
|
13
13
|
}) => {
|
|
14
|
-
const { t: o } = Z(),
|
|
15
|
-
|
|
14
|
+
const { t: o } = Z(), m = ee(), [l, O] = q(!1), [t, A] = q(null), { numberOfVisits: x, hideThumbnail: k = !1 } = C ?? {}, T = re(
|
|
15
|
+
u,
|
|
16
16
|
n
|
|
17
17
|
), $ = ae(), {
|
|
18
18
|
data: y = [],
|
|
@@ -21,9 +21,9 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
|
|
|
21
21
|
error: j,
|
|
22
22
|
refetch: w
|
|
23
23
|
} = c({
|
|
24
|
-
queryKey: ["forms",
|
|
25
|
-
queryFn: () => le(
|
|
26
|
-
enabled: !!
|
|
24
|
+
queryKey: ["forms", m, u],
|
|
25
|
+
queryFn: () => le(m, void 0, x),
|
|
26
|
+
enabled: !!m && !T
|
|
27
27
|
}), F = d(() => !n || n.length === 0 ? y : y.filter(
|
|
28
28
|
(e) => n.includes(e.encounterUuid)
|
|
29
29
|
), [y, n]), { data: _ = [] } = c({
|
|
@@ -55,9 +55,9 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
|
|
|
55
55
|
});
|
|
56
56
|
te(
|
|
57
57
|
(e) => {
|
|
58
|
-
e.patientUUID ===
|
|
58
|
+
e.patientUUID === m && e.updatedConcepts.size > 0 && (w(), $.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
|
|
59
59
|
},
|
|
60
|
-
[
|
|
60
|
+
[m]
|
|
61
61
|
);
|
|
62
62
|
const z = d(() => !N?.entry || !t?.formName ? [] : N.entry.filter((e) => e.resource?.resourceType === "Observation").map((e) => e.resource).filter((e) => {
|
|
63
63
|
const r = Ne(e);
|
|
@@ -176,7 +176,7 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
|
|
|
176
176
|
size: "md",
|
|
177
177
|
testId: "form-details-modal",
|
|
178
178
|
children: /* @__PURE__ */ s(
|
|
179
|
-
|
|
179
|
+
ue,
|
|
180
180
|
{
|
|
181
181
|
observations: z,
|
|
182
182
|
isLoading: H || Q,
|
|
@@ -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 { W as d, X as f, Y as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-BB0oTsZm.js";
|
|
2
|
+
import { W as d, X as f, Y as e } from "./index-CF3QwtRK.js";
|
|
3
3
|
var p = (a) => {
|
|
4
4
|
const [r, t] = 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 { W as v, X as C, Y as e } from "./index-
|
|
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-BB0oTsZm.js";
|
|
2
|
+
import { W as v, X as C, Y as e } from "./index-CF3QwtRK.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { c as Q, d as k, u as
|
|
1
|
+
import { jsxs as N, jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import { c as Q, d as k, u as S, n as H, p as K, a as w, Q as M, q as x, r as G, t as X, H as j, b as z, v as P, Z as D, y as Z, z as Y, R as J, A as W, B as ee, C as ae, D as te } from "./index-CF3QwtRK.js";
|
|
3
3
|
import { useRef as se, useEffect as $, useMemo as R } from "react";
|
|
4
4
|
const A = (a, n, d, l, b, r) => {
|
|
5
5
|
const t = Z(a, n, b), s = t.value, i = Y(s);
|
|
@@ -58,9 +58,9 @@ const A = (a, n, d, l, b, r) => {
|
|
|
58
58
|
title: n = "",
|
|
59
59
|
hideThumbnail: d
|
|
60
60
|
}) => {
|
|
61
|
-
const { t: l } =
|
|
61
|
+
const { t: l } = S(), b = (r, t, s) => {
|
|
62
62
|
const i = P(r.encounterDetails, l);
|
|
63
|
-
return /* @__PURE__ */
|
|
63
|
+
return /* @__PURE__ */ N(
|
|
64
64
|
D,
|
|
65
65
|
{
|
|
66
66
|
title: i,
|
|
@@ -112,7 +112,7 @@ const A = (a, n, d, l, b, r) => {
|
|
|
112
112
|
conceptNames: d = [],
|
|
113
113
|
conceptUuid: l = [],
|
|
114
114
|
hideThumbnail: b = !1
|
|
115
|
-
} = n, r = se(/* @__PURE__ */ new Set()), t = Q(), { addNotification: s } = k(), { t: i } =
|
|
115
|
+
} = n, r = se(/* @__PURE__ */ new Set()), t = Q(), { addNotification: s } = k(), { t: i } = S(), o = H({
|
|
116
116
|
queries: d.map((e) => ({
|
|
117
117
|
queryKey: de(e),
|
|
118
118
|
queryFn: () => K(e),
|
|
@@ -164,7 +164,7 @@ const A = (a, n, d, l, b, r) => {
|
|
|
164
164
|
{ key: "value", header: "value" },
|
|
165
165
|
{ key: "form", header: "form" }
|
|
166
166
|
], O = F || !y, _ = f && y, L = (!c || c.entry?.length === 0 || m.length === 0) && y, q = _ ? i("ERROR_FETCHING_OBSERVATIONS") : null, B = L ? i("NO_OBSERVATIONS_FOUND") : void 0, U = g.length > 0 && !O && !_, E = n.titleTranslationKey, v = E ? i(E) : "";
|
|
167
|
-
return /* @__PURE__ */
|
|
167
|
+
return /* @__PURE__ */ N(
|
|
168
168
|
"div",
|
|
169
169
|
{
|
|
170
170
|
id: "observations",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as we, a0 as z, a1 as xt, a2 as B, X as q, Y as y, a3 as Ro, a4 as ye, a5 as R, a6 as _, a7 as k, a8 as N, a9 as A, aa as bs, ab as ir, ac as $e, ad as G, ae as Hn, af as Vn, ag as dt, ah as D, ai as xs, aj as cn, ak as Be, al as ws, am as qt, an as zt, ao as $s, ap as Cs, aq as $n, ar as Ss, as as Nr, at as Bt, au as zo, av as ks, aw as Es, ax as j, ay as Gr, az as Ms, aA as Ds, aB as sr, aC as As, aD as Ts, aE as zn, aF as Fs, aG as Is, aH as Z, aI as Ps, aJ as Ls } from "./index-
|
|
1
|
+
import { _ as we, a0 as z, a1 as xt, a2 as B, X as q, Y as y, a3 as Ro, a4 as ye, a5 as R, a6 as _, a7 as k, a8 as N, a9 as A, aa as bs, ab as ir, ac as $e, ad as G, ae as Hn, af as Vn, ag as dt, ah as D, ai as xs, aj as cn, ak as Be, al as ws, am as qt, an as zt, ao as $s, ap as Cs, aq as $n, ar as Ss, as as Nr, at as Bt, au as zo, av as ks, aw as Es, ax as j, ay as Gr, az as Ms, aA as Ds, aB as sr, aC as As, aD as Ts, aE as zn, aF as Fs, aG as Is, aH as Z, aI as Ps, aJ as Ls } from "./index-CF3QwtRK.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|