@bahmni/appointments-app 0.0.1-dev.210 → 0.0.1-dev.212
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-BxEpAJXn-B21DoZcl.js → DocumentsTable-wbD1XXxL-BEtEXrdx.js} +10 -10
- package/dist/{FormsTable-CB6ab-uN-B9GDPhdP.js → FormsTable-BzT5p1Mv-Y1Jqtx1x.js} +1 -1
- package/dist/{LNWAZHJI-BwsgCtWr.js → LNWAZHJI-DCO7Q_AU.js} +2 -2
- package/dist/{MWZ6AO7Z-C98UroTn.js → MWZ6AO7Z-DZafwuzR.js} +2 -2
- package/dist/{Observations-B-3a239G-CDX6l7at.js → Observations-W-vbg7mz-BE1c5U3s.js} +13 -13
- package/dist/{YPM2AS64-D7_Y-B3I.js → YPM2AS64-tg45YSAK.js} +1 -1
- package/dist/{index-BzCyYXVL.js → index-DG88ST6s.js} +11 -11
- package/dist/{index-DGhDkWpy.js → index-DIv6b2ab.js} +15849 -15792
- 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, e as W, a as X, V as J, C as Z, x as ee, L as te, b as ae } from "./index-
|
|
2
|
+
import { c as K, u as Q, e as W, a as X, V as J, C as Z, x as ee, L as te, b as ae } from "./index-DIv6b2ab.js";
|
|
3
3
|
import { useState as l, useCallback as h, useEffect as C, 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,
|
|
@@ -20,10 +20,10 @@ const ne = "_documentsTableBody_1voj8_1", oe = "_viewAttachmentsLink_1voj8_11",
|
|
|
20
20
|
function j(a) {
|
|
21
21
|
return !a || a.includes(":") ? "#" : `/openmrs/auth?requested_document=/document_images/${a}`;
|
|
22
22
|
}
|
|
23
|
-
function ue(a,
|
|
23
|
+
function ue(a, g) {
|
|
24
24
|
return a.map((s) => ({
|
|
25
25
|
key: s,
|
|
26
|
-
header:
|
|
26
|
+
header: g(me[s])
|
|
27
27
|
}));
|
|
28
28
|
}
|
|
29
29
|
const _e = [
|
|
@@ -32,12 +32,12 @@ const _e = [
|
|
|
32
32
|
"uploadedOn",
|
|
33
33
|
"uploadedBy",
|
|
34
34
|
"action"
|
|
35
|
-
], pe = /\.(jpg|jpeg|png|gif|webp|bmp|svg)$/i, B = (a) => a.attachments.length > 0 ? a.attachments : a.documentUrl ? [{ url: a.documentUrl, contentType: a.contentType }] : [],
|
|
35
|
+
], pe = /\.(jpg|jpeg|png|gif|webp|bmp|svg)$/i, B = (a) => a.attachments.length > 0 ? a.attachments : a.documentUrl ? [{ url: a.documentUrl, contentType: a.contentType }] : [], Ee = ({ config: a, encounterUuids: g }) => {
|
|
36
36
|
const [s, L] = l(!1), [o, w] = l(
|
|
37
37
|
null
|
|
38
38
|
), [R, f] = l(
|
|
39
39
|
/* @__PURE__ */ new Set()
|
|
40
|
-
),
|
|
40
|
+
), E = K(), { t: n } = Q(), { addNotification: U } = W(), $ = Number(a?.pageSize) || 5, [I, A] = l(1), [m, V] = l($), [k, y] = l(void 0), b = h((e) => {
|
|
41
41
|
w(e), L(!0);
|
|
42
42
|
}, []), F = h(() => {
|
|
43
43
|
L(!1), w(null), f(/* @__PURE__ */ new Set());
|
|
@@ -46,15 +46,15 @@ const _e = [
|
|
|
46
46
|
}, []), { data: u, isLoading: H, isError: D, error: v } = X({
|
|
47
47
|
queryKey: [
|
|
48
48
|
"documents",
|
|
49
|
-
g,
|
|
50
49
|
E,
|
|
50
|
+
g,
|
|
51
51
|
I,
|
|
52
52
|
m
|
|
53
53
|
],
|
|
54
|
-
enabled: !!
|
|
54
|
+
enabled: !!E,
|
|
55
55
|
queryFn: () => ae(
|
|
56
|
-
g,
|
|
57
56
|
E,
|
|
57
|
+
g,
|
|
58
58
|
m,
|
|
59
59
|
I
|
|
60
60
|
)
|
|
@@ -63,7 +63,7 @@ const _e = [
|
|
|
63
63
|
u && y(u.total);
|
|
64
64
|
}, [u]), C(() => {
|
|
65
65
|
A(1), y(void 0);
|
|
66
|
-
}, [
|
|
66
|
+
}, [E]), C(() => {
|
|
67
67
|
D && U({
|
|
68
68
|
title: n("ERROR_DEFAULT_TITLE"),
|
|
69
69
|
message: v?.message ?? "",
|
|
@@ -222,5 +222,5 @@ const _e = [
|
|
|
222
222
|
] });
|
|
223
223
|
};
|
|
224
224
|
export {
|
|
225
|
-
|
|
225
|
+
Ee as default
|
|
226
226
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o, jsxs as p, Fragment as P } from "react/jsx-runtime";
|
|
2
|
-
import { u as O, c as ae, d as te, f as oe, a as L, w as ne, C as se, V as de, x as q, Z as me, k as ie, L as le, D as ce, g as k, o as ue, G as K, M as A, t as be, $ as pe, I as _e, S as fe, n as $e, l as he, i as ge, s as ve, h as ye } from "./index-
|
|
2
|
+
import { u as O, c as ae, d as te, f as oe, a as L, w as ne, C as se, V as de, x as q, Z as me, k as ie, L as le, D as ce, g as k, o as ue, G as K, M as A, t as be, $ as pe, I as _e, S as fe, n as $e, l as he, i as ge, s as ve, h as ye } from "./index-DIv6b2ab.js";
|
|
3
3
|
import { useState as H, useMemo as v, useCallback as C } from "react";
|
|
4
4
|
const Ne = "_formsTableBody_1pd36_1", Le = "_customAccordianItem_1pd36_6", Ce = "_formContent_1pd36_18", Ae = "_formDetailsContainer_1pd36_25", Fe = "_observation_1pd36_30", Re = "_groupContainer_1pd36_39", Ie = "_rowContainer_1pd36_43", Me = "_groupLabel_1pd36_48", Oe = "_rowLabel_1pd36_58", Te = "_rowValue_1pd36_67", De = "_groupMembers_1pd36_75", Se = "_memberRow_1pd36_81", Ve = "_memberLabel_1pd36_86", we = "_memberValue_1pd36_94", xe = "_abnormalValue_1pd36_102", Ee = "_commentSection_1pd36_110", Be = "_commentText_1pd36_116", Ge = "_nestedGroup_1pd36_125", Ue = "_nestedGroupLabel_1pd36_132", qe = "_nestedGroupMembers_1pd36_141", n = {
|
|
5
5
|
formsTableBody: Ne,
|
|
@@ -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 { Y as d, _ as f, a0 as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-tg45YSAK.js";
|
|
2
|
+
import { Y as d, _ as f, a0 as e } from "./index-DIv6b2ab.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 { Y as v, _ as C, a0 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-tg45YSAK.js";
|
|
2
|
+
import { Y as v, _ as C, a0 as e } from "./index-DIv6b2ab.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as T, jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import { c as V, e as k, u as S, j as
|
|
2
|
+
import { c as V, e as k, u as S, j as x, r as w, a as K, w as M, o as Q, m as j, p as G, y as H, x as z, q as P, R as N, v as Y, t as J, z as W, $ as X, I as Z, S as ee, A as te } from "./index-DIv6b2ab.js";
|
|
3
3
|
import { useRef as ae, useEffect as _, useMemo as h } from "react";
|
|
4
|
-
const
|
|
4
|
+
const A = (t, d, i, u, r) => {
|
|
5
5
|
const a = Y(t, d, r), s = a.value, o = J(s);
|
|
6
6
|
let n = s;
|
|
7
7
|
o === "Image" && (n = /* @__PURE__ */ l(X, { imageSrc: s, alt: s, id: `${s}-img` })), o === "Video" && (n = /* @__PURE__ */ l(Z, { id: `${s}-video`, videoSrc: s })), o === "PDF" && (n = /* @__PURE__ */ l(ee, { id: `${s}-pdf`, src: s }));
|
|
@@ -27,7 +27,7 @@ const q = (t, d, i, u, r) => {
|
|
|
27
27
|
id: `grouped-obs-${t.display}-${u}`,
|
|
28
28
|
open: i,
|
|
29
29
|
children: t.members?.map(
|
|
30
|
-
(s, o) =>
|
|
30
|
+
(s, o) => A(s, o, r, a, d)
|
|
31
31
|
)
|
|
32
32
|
},
|
|
33
33
|
`grouped-obs-${t.id}`
|
|
@@ -45,7 +45,7 @@ const q = (t, d, i, u, r) => {
|
|
|
45
45
|
open: a,
|
|
46
46
|
children: [
|
|
47
47
|
r.observations.map(
|
|
48
|
-
(n, b) =>
|
|
48
|
+
(n, b) => A(n, b, s, d, i)
|
|
49
49
|
),
|
|
50
50
|
r.groupedObservations.map(
|
|
51
51
|
(n, b) => se(
|
|
@@ -77,10 +77,10 @@ const q = (t, d, i, u, r) => {
|
|
|
77
77
|
observations: oe,
|
|
78
78
|
title: ne
|
|
79
79
|
}, ie = (t) => ["conceptUuid", t], de = (t, d) => ["observations", t, ...d], be = ({ config: t }) => {
|
|
80
|
-
const d = t, { conceptNames: i = [], conceptUuid: u = [] } = d, r = ae(/* @__PURE__ */ new Set()), a = V(), { addNotification: s } = k(), { t: o } = S(), n =
|
|
80
|
+
const d = t, { conceptNames: i = [], conceptUuid: u = [] } = d, r = ae(/* @__PURE__ */ new Set()), a = V(), { addNotification: s } = k(), { t: o } = S(), n = x({
|
|
81
81
|
queries: i.map((e) => ({
|
|
82
82
|
queryKey: ie(e),
|
|
83
|
-
queryFn: () =>
|
|
83
|
+
queryFn: () => w(e),
|
|
84
84
|
enabled: !!e
|
|
85
85
|
}))
|
|
86
86
|
});
|
|
@@ -98,7 +98,7 @@ const q = (t, d, i, u, r) => {
|
|
|
98
98
|
}, [n, i]);
|
|
99
99
|
const b = h(() => n.map((e) => e.data?.uuid).filter((e) => !!e), [n]), p = h(() => [.../* @__PURE__ */ new Set([...b, ...u])], [b, u]), v = h(() => i.length === 0 ? !0 : n.every((e) => !e.isLoading), [n, i.length]), {
|
|
100
100
|
data: c,
|
|
101
|
-
isLoading:
|
|
101
|
+
isLoading: D,
|
|
102
102
|
isError: E,
|
|
103
103
|
refetch: f
|
|
104
104
|
} = K({
|
|
@@ -106,7 +106,7 @@ const q = (t, d, i, u, r) => {
|
|
|
106
106
|
queryFn: () => te(a, p),
|
|
107
107
|
enabled: !!a && p.length > 0 && v
|
|
108
108
|
});
|
|
109
|
-
|
|
109
|
+
M(
|
|
110
110
|
(e) => {
|
|
111
111
|
e.patientUUID === a && e.updatedConcepts.size > 0 && [...e.updatedConcepts.keys()].some(
|
|
112
112
|
(m) => p.includes(m)
|
|
@@ -122,13 +122,13 @@ const q = (t, d, i, u, r) => {
|
|
|
122
122
|
}, [E]);
|
|
123
123
|
const g = h(() => {
|
|
124
124
|
if (!c) return [];
|
|
125
|
-
const e =
|
|
125
|
+
const e = Q(c), m = j(e);
|
|
126
126
|
return G(m);
|
|
127
|
-
}, [c]),
|
|
127
|
+
}, [c]), F = [
|
|
128
128
|
{ key: "name", header: "name" },
|
|
129
129
|
{ key: "value", header: "value" },
|
|
130
130
|
{ key: "form", header: "form" }
|
|
131
|
-
], $ =
|
|
131
|
+
], $ = D || !v, O = E && v, q = (!c || c.entry?.length === 0 || p.length === 0) && v, L = O ? o("ERROR_FETCHING_OBSERVATIONS") : null, U = q ? o("NO_OBSERVATIONS_FOUND") : void 0, C = g.length > 0 && !$ && !O, R = d.titleTranslationKey, y = R ? o(R) : "";
|
|
132
132
|
return /* @__PURE__ */ T(
|
|
133
133
|
"div",
|
|
134
134
|
{
|
|
@@ -148,9 +148,9 @@ const q = (t, d, i, u, r) => {
|
|
|
148
148
|
}
|
|
149
149
|
),
|
|
150
150
|
C ? /* @__PURE__ */ l(re, { groupedData: g, title: y }) : /* @__PURE__ */ l(
|
|
151
|
-
|
|
151
|
+
z,
|
|
152
152
|
{
|
|
153
|
-
headers:
|
|
153
|
+
headers: F,
|
|
154
154
|
rows: [],
|
|
155
155
|
ariaLabel: o("OBSERVATIONS"),
|
|
156
156
|
loading: $,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a1 as we, a2 as z, a3 as xt, a4 as B, _ as q, a0 as y, a5 as Ro, a6 as ye, a7 as R, a8 as _, a9 as k, aa as N, ab as A, ac as bs, ad as ir, ae as $e, af as G, ag as Hn, ah as Vn, ai as dt, aj as D, ak as xs, al as cn, am as Be, an as ws, ao as qt, ap as zt, aq as $s, ar as Cs, as as $n, at as Ss, au as Nr, av as Bt, aw as zo, ax as ks, ay as Es, az as j, aA as Gr, aB as Ms, aC as Ds, aD as sr, aE as As, aF as Ts, aG as zn, aH as Fs, aI as Is, aJ as Z, aK as Ps, aL as Ls } from "./index-
|
|
1
|
+
import { a1 as we, a2 as z, a3 as xt, a4 as B, _ as q, a0 as y, a5 as Ro, a6 as ye, a7 as R, a8 as _, a9 as k, aa as N, ab as A, ac as bs, ad as ir, ae as $e, af as G, ag as Hn, ah as Vn, ai as dt, aj as D, ak as xs, al as cn, am as Be, an as ws, ao as qt, ap as zt, aq as $s, ar as Cs, as as $n, at as Ss, au as Nr, av as Bt, aw as zo, ax as ks, ay as Es, az as j, aA as Gr, aB as Ms, aC as Ds, aD as sr, aE as As, aF as Ts, aG as zn, aH as Fs, aI as Is, aJ as Z, aK as Ps, aL as Ls } from "./index-DIv6b2ab.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as n, jsxs as y } from "react/jsx-runtime";
|
|
2
|
-
import { H as V, B as O, u as C, E as h, F as P, f as B, e as G,
|
|
2
|
+
import { H as V, B as O, u as C, E as h, F as P, f as B, e as G, O as U, J as L, a as x, K as q, N as F, P as H, Q as k, T as $, U as K, W as Q, X as j } from "./index-DIv6b2ab.js";
|
|
3
3
|
import { useState as I, useMemo as _ } from "react";
|
|
4
4
|
const W = V(
|
|
5
5
|
O,
|
|
@@ -35,8 +35,8 @@ const W = V(
|
|
|
35
35
|
"speciality",
|
|
36
36
|
"durationMins",
|
|
37
37
|
"description"
|
|
38
|
-
],
|
|
39
|
-
page:
|
|
38
|
+
], X = "app:appointments:manageServices", Y = "app:appointments:adminTab", J = "_page_10v94_1", Z = "_noPrivilegeContainer_10v94_1", z = "_table_10v94_18", d = {
|
|
39
|
+
page: J,
|
|
40
40
|
noPrivilegeContainer: Z,
|
|
41
41
|
table: z
|
|
42
42
|
};
|
|
@@ -76,13 +76,13 @@ function ae(e, a) {
|
|
|
76
76
|
const re = () => {
|
|
77
77
|
const { t: e } = C(), a = B(), { addNotification: t } = G(), { userPrivileges: s } = U(), { appointmentsConfig: i } = W(), [E, c] = I(null), [v, S] = I(!1), l = i?.serviceTableFields ?? [
|
|
78
78
|
...p
|
|
79
|
-
], u =
|
|
79
|
+
], u = L(s, Y), M = L(
|
|
80
80
|
s,
|
|
81
|
-
|
|
81
|
+
X
|
|
82
82
|
), m = _(
|
|
83
83
|
() => ee(l),
|
|
84
84
|
[l]
|
|
85
|
-
), { data:
|
|
85
|
+
), { data: A, isLoading: b, isError: g } = x({
|
|
86
86
|
queryKey: ["allAppointmentServices"],
|
|
87
87
|
queryFn: j,
|
|
88
88
|
enabled: u
|
|
@@ -90,12 +90,12 @@ const re = () => {
|
|
|
90
90
|
() => te(l, e),
|
|
91
91
|
[l]
|
|
92
92
|
), N = _(
|
|
93
|
-
() => ae(
|
|
94
|
-
[
|
|
93
|
+
() => ae(A ?? [], m),
|
|
94
|
+
[A, m]
|
|
95
95
|
), R = async () => {
|
|
96
96
|
S(!0);
|
|
97
97
|
try {
|
|
98
|
-
await
|
|
98
|
+
await Q(E.id), t({
|
|
99
99
|
title: e("ADMIN_ALL_SERVICES_DELETE_SUCCESS_TITLE"),
|
|
100
100
|
message: e("ADMIN_ALL_SERVICES_DELETE_SUCCESS_MESSAGE"),
|
|
101
101
|
type: "success",
|
|
@@ -111,7 +111,7 @@ const re = () => {
|
|
|
111
111
|
S(!1);
|
|
112
112
|
}
|
|
113
113
|
}, T = (r, o) => o === "actions" ? /* @__PURE__ */ n(
|
|
114
|
-
|
|
114
|
+
$,
|
|
115
115
|
{
|
|
116
116
|
id: `delete-service-${r.id}-btn`,
|
|
117
117
|
testId: `delete-service-${r.id}-btn-test-id`,
|
|
@@ -120,7 +120,7 @@ const re = () => {
|
|
|
120
120
|
label: e("ADMIN_ALL_SERVICES_DELETE_ICON_LABEL"),
|
|
121
121
|
disabled: !M,
|
|
122
122
|
onClick: () => c(r),
|
|
123
|
-
children: /* @__PURE__ */ n(
|
|
123
|
+
children: /* @__PURE__ */ n(K, {})
|
|
124
124
|
}
|
|
125
125
|
) : p.includes(o) ? r[o] ?? "-" : r.attributes[o] ?? "-", f = [
|
|
126
126
|
{ id: "home", label: e("BREADCRUMB_HOME"), href: q },
|