@bahmni/clinical-app 0.0.1-dev.291 → 0.0.1-dev.292
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-DXWkjdux-D5LZQ8sK.js → DocumentsTable-CfVupTB9-DvimDy8L.js} +1 -1
- package/dist/{FormsTable-DLJpQ6yJ-BG00-POm.js → FormsTable-CoYEb-r4-DN2h7afF.js} +8 -8
- package/dist/{LNWAZHJI-EHw1Xi8d.js → LNWAZHJI-5Wzri0NK.js} +2 -2
- package/dist/{MWZ6AO7Z-BTrk-t5F.js → MWZ6AO7Z-Cwp8_KQ9.js} +2 -2
- package/dist/{Observations-Dk1JBpvB-C_ibQbEy.js → Observations-CXe_EFqX-D3f9ONiL.js} +14 -14
- package/dist/{YPM2AS64-C9DJJOeg.js → YPM2AS64-DiUyWN_7.js} +1 -1
- package/dist/components/patientHeader/PatientHeader.d.ts.map +1 -1
- package/dist/{index-l97Bh8mx.js → index-BtR5Ngq8.js} +1359 -1346
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r, jsxs as h, Fragment as x } from "react/jsx-runtime";
|
|
2
|
-
import { u as G, a as W, h as Y, k as J, w as X, m as Z, c as ee, n as te } from "./index-
|
|
2
|
+
import { u as G, a as W, h as Y, k as J, w as X, m as Z, c as ee, n as te } from "./index-BtR5Ngq8.js";
|
|
3
3
|
import { useQuery as ae } from "@tanstack/react-query";
|
|
4
4
|
import { useState as l, useCallback as _, useEffect as N, useMemo as p } from "react";
|
|
5
5
|
const ne = "DocumentsTable-module_documentsTableBody__6iR3w", oe = "DocumentsTable-module_viewAttachmentsLink__aQ1on", re = "DocumentsTable-module_documentViewerContainer__F5m8D", de = "DocumentsTable-module_attachmentItem__17KA7", se = "DocumentsTable-module_attachmentCounter__WFiI3", me = "DocumentsTable-module_attachmentError__RI4U2", ce = "DocumentsTable-module_documentIframe__ptq5I", le = "DocumentsTable-module_documentImage__KQVgS", d = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as s, jsxs as
|
|
2
|
-
import { a as ee, u as re, v as ae, Z as oe, S as te, I as se, $ as ne, e as de, _ as R, m as ie, w as me, c as q, O as ue, L as le, n as ce, q as fe, D as ye } from "./index-
|
|
1
|
+
import { jsx as s, jsxs as X, Fragment as Y } from "react/jsx-runtime";
|
|
2
|
+
import { a as ee, u as re, v as ae, Z as oe, S as te, I as se, $ as ne, e as de, _ as R, m as ie, w as me, c as q, O as ue, L as le, n as ce, q as fe, D as ye } from "./index-BtR5Ngq8.js";
|
|
3
3
|
import { useQueryClient as be, useQuery as f } from "@tanstack/react-query";
|
|
4
4
|
import { useState as U, useMemo as d, useCallback as y } from "react";
|
|
5
5
|
const pe = "FormsTable-module_formsTableBody__SvGha", ge = "FormsTable-module_customAccordianItem__isszs", A = {
|
|
@@ -83,7 +83,7 @@ const pe = "FormsTable-module_formsTableBody__SvGha", ge = "FormsTable-module_cu
|
|
|
83
83
|
{ key: "recordedBy", header: t("RECORDED_BY") }
|
|
84
84
|
],
|
|
85
85
|
[t]
|
|
86
|
-
),
|
|
86
|
+
), Z = d(
|
|
87
87
|
() => [
|
|
88
88
|
{ key: "recordedOn", sortable: !0 },
|
|
89
89
|
{ key: "recordedBy", sortable: !0 }
|
|
@@ -94,7 +94,7 @@ const pe = "FormsTable-module_formsTableBody__SvGha", ge = "FormsTable-module_cu
|
|
|
94
94
|
(r, a) => {
|
|
95
95
|
const i = a.formName;
|
|
96
96
|
r[i] ??= [];
|
|
97
|
-
const h = a.providers.map((
|
|
97
|
+
const h = a.providers.map((W) => W.providerName).filter(Boolean).join(", ");
|
|
98
98
|
return r[i].push({
|
|
99
99
|
id: a.encounterUuid,
|
|
100
100
|
formName: a.formName,
|
|
@@ -116,7 +116,7 @@ const pe = "FormsTable-module_formsTableBody__SvGha", ge = "FormsTable-module_cu
|
|
|
116
116
|
).sort((r, a) => r.formName.localeCompare(a.formName));
|
|
117
117
|
}, [v, t]), S = y((e) => {
|
|
118
118
|
I(e), O(!0);
|
|
119
|
-
}, []),
|
|
119
|
+
}, []), J = y(() => {
|
|
120
120
|
O(!1), I(null);
|
|
121
121
|
}, []), C = y(
|
|
122
122
|
(e, r) => {
|
|
@@ -131,7 +131,7 @@ const pe = "FormsTable-module_formsTableBody__SvGha", ge = "FormsTable-module_cu
|
|
|
131
131
|
},
|
|
132
132
|
[S]
|
|
133
133
|
);
|
|
134
|
-
return /* @__PURE__ */
|
|
134
|
+
return /* @__PURE__ */ X(Y, { children: [
|
|
135
135
|
/* @__PURE__ */ s("div", { id: "forms-table", "data-testid": "forms-table", children: F || _ || M.length === 0 || L ? /* @__PURE__ */ s(
|
|
136
136
|
q,
|
|
137
137
|
{
|
|
@@ -162,7 +162,7 @@ const pe = "FormsTable-module_formsTableBody__SvGha", ge = "FormsTable-module_cu
|
|
|
162
162
|
rows: i,
|
|
163
163
|
loading: !1,
|
|
164
164
|
errorStateMessage: "",
|
|
165
|
-
sortable:
|
|
165
|
+
sortable: Z,
|
|
166
166
|
emptyStateMessage: t("FORMS_UNAVAILABLE"),
|
|
167
167
|
renderCell: C,
|
|
168
168
|
className: A.formsTableBody,
|
|
@@ -179,7 +179,7 @@ const pe = "FormsTable-module_formsTableBody__SvGha", ge = "FormsTable-module_cu
|
|
|
179
179
|
id: "modalIdForActionAreaLayout",
|
|
180
180
|
portalId: "main-display-area",
|
|
181
181
|
open: l,
|
|
182
|
-
onRequestClose:
|
|
182
|
+
onRequestClose: J,
|
|
183
183
|
modalHeading: o.formName,
|
|
184
184
|
modalLabel: `${o.recordedOn} | ${o.recordedBy}`,
|
|
185
185
|
passiveModal: !0,
|
|
@@ -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 { o as p, p as d, r as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-DiUyWN_7.js";
|
|
2
|
+
import { o as p, p as d, r as e } from "./index-BtR5Ngq8.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 { o as v, p as C, r 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-DiUyWN_7.js";
|
|
2
|
+
import { o as v, p as C, r as e } from "./index-BtR5Ngq8.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 { u as B, h as V, a as S, b as w, R as j, e as k, W as z, d as
|
|
1
|
+
import { jsxs as N, jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import { u as B, h as V, a as S, b as w, R as j, e as k, W as z, d as M, K as Q, z as x, c as G, j as P, f as H, U as W, g as J, i as Y, H as X, l as Z, N as ee } from "./index-BtR5Ngq8.js";
|
|
3
3
|
import { useQueries as ae, useQuery as te } from "@tanstack/react-query";
|
|
4
4
|
import { useRef as se, useEffect as $, useMemo as E } from "react";
|
|
5
5
|
const D = (a, n, d, l, b, r) => {
|
|
@@ -61,7 +61,7 @@ const D = (a, n, d, l, b, r) => {
|
|
|
61
61
|
}) => {
|
|
62
62
|
const { t: l } = S(), b = (r, t, s) => {
|
|
63
63
|
const o = P(r.encounterDetails, l);
|
|
64
|
-
return /* @__PURE__ */
|
|
64
|
+
return /* @__PURE__ */ N(
|
|
65
65
|
H,
|
|
66
66
|
{
|
|
67
67
|
title: o,
|
|
@@ -105,7 +105,7 @@ const D = (a, n, d, l, b, r) => {
|
|
|
105
105
|
)
|
|
106
106
|
}
|
|
107
107
|
);
|
|
108
|
-
}, ie = "Observations-module_observations__RKSyo", ne = "Observations-module_title__TJL3z",
|
|
108
|
+
}, ie = "Observations-module_observations__RKSyo", ne = "Observations-module_title__TJL3z", I = {
|
|
109
109
|
observations: ie,
|
|
110
110
|
title: ne
|
|
111
111
|
}, de = (a) => ["conceptUuid", a], le = (a, n) => ["observations", a, ...n], pe = ({ config: a }) => {
|
|
@@ -158,32 +158,32 @@ const D = (a, n, d, l, b, r) => {
|
|
|
158
158
|
}, [T]);
|
|
159
159
|
const O = E(() => {
|
|
160
160
|
if (!c) return [];
|
|
161
|
-
const e = z(c), h =
|
|
162
|
-
return
|
|
161
|
+
const e = z(c), h = M(e);
|
|
162
|
+
return Q(h);
|
|
163
163
|
}, [c]), F = [
|
|
164
164
|
{ key: "name", header: "name" },
|
|
165
165
|
{ key: "value", header: "value" },
|
|
166
166
|
{ key: "form", header: "form" }
|
|
167
|
-
], f = L || !y, _ = T && y, U = (!c || c.entry?.length === 0 || p.length === 0) && y, A = _ ? o("ERROR_FETCHING_OBSERVATIONS") : null,
|
|
168
|
-
return /* @__PURE__ */
|
|
167
|
+
], f = L || !y, _ = T && y, U = (!c || c.entry?.length === 0 || p.length === 0) && y, A = _ ? o("ERROR_FETCHING_OBSERVATIONS") : null, C = U ? o("NO_OBSERVATIONS_FOUND") : void 0, K = O.length > 0 && !f && !_, R = n.titleTranslationKey, v = R ? o(R) : "";
|
|
168
|
+
return /* @__PURE__ */ N(
|
|
169
169
|
"div",
|
|
170
170
|
{
|
|
171
171
|
id: "observations",
|
|
172
172
|
"data-testid": R ? `observations-${v}` : "observations",
|
|
173
173
|
"aria-label": "observations-aria-label",
|
|
174
|
-
className:
|
|
174
|
+
className: I.observations,
|
|
175
175
|
children: [
|
|
176
176
|
/* @__PURE__ */ u(
|
|
177
|
-
|
|
177
|
+
x,
|
|
178
178
|
{
|
|
179
179
|
id: "observations-title",
|
|
180
180
|
testId: R ? `observations-title-${v}` : "observations-title",
|
|
181
181
|
title: v,
|
|
182
|
-
className:
|
|
182
|
+
className: I.title,
|
|
183
183
|
children: /* @__PURE__ */ u("p", { children: v })
|
|
184
184
|
}
|
|
185
185
|
),
|
|
186
|
-
|
|
186
|
+
K ? /* @__PURE__ */ u(
|
|
187
187
|
oe,
|
|
188
188
|
{
|
|
189
189
|
groupedData: O,
|
|
@@ -191,14 +191,14 @@ const D = (a, n, d, l, b, r) => {
|
|
|
191
191
|
hideThumbnail: b
|
|
192
192
|
}
|
|
193
193
|
) : /* @__PURE__ */ u(
|
|
194
|
-
|
|
194
|
+
G,
|
|
195
195
|
{
|
|
196
196
|
headers: F,
|
|
197
197
|
rows: [],
|
|
198
198
|
ariaLabel: o("OBSERVATIONS"),
|
|
199
199
|
loading: f,
|
|
200
200
|
errorStateMessage: A,
|
|
201
|
-
emptyStateMessage:
|
|
201
|
+
emptyStateMessage: C,
|
|
202
202
|
dataTestId: "observations-table"
|
|
203
203
|
}
|
|
204
204
|
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as we, t as z, x as xt, y as B, p as q, r as y, P as Ro, A as ye, B as R, C as _, E as k, F as N, G as A, J as bs, M as ir, Q as $e, T as G, V as Hn, X as Vn, Y as dt, a0 as D, a1 as xs, a2 as cn, a3 as Be, a4 as ws, a5 as qt, a6 as zt, a7 as $s, a8 as Cs, a9 as $n, aa as Ss, ab as Nr, ac as Bt, ad as zo, ae as ks, af as Es, ag as j, ah as Gr, ai as Ms, aj as Ds, ak as sr, al as As, am as Ts, an as zn, ao as Fs, ap as Is, aq as Z, ar as Ps, as as Ls } from "./index-
|
|
1
|
+
import { s as we, t as z, x as xt, y as B, p as q, r as y, P as Ro, A as ye, B as R, C as _, E as k, F as N, G as A, J as bs, M as ir, Q as $e, T as G, V as Hn, X as Vn, Y as dt, a0 as D, a1 as xs, a2 as cn, a3 as Be, a4 as ws, a5 as qt, a6 as zt, a7 as $s, a8 as Cs, a9 as $n, aa as Ss, ab as Nr, ac as Bt, ad as zo, ae as ks, af as Es, ag as j, ah as Gr, ai as Ms, aj as Ds, ak as sr, al as As, am as Ts, an as zn, ao as Fs, ap as Is, aq as Z, ar as Ps, as as Ls } from "./index-BtR5Ngq8.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PatientHeader.d.ts","sourceRoot":"","sources":["../../../src/components/patientHeader/PatientHeader.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PatientHeader.d.ts","sourceRoot":"","sources":["../../../src/components/patientHeader/PatientHeader.tsx"],"names":[],"mappings":"AAOA,OAAO,EAKL,KAAK,WAAW,EACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAqC,MAAM,OAAO,CAAC;AAQ1D,UAAU,kBAAkB;IAC1B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;CAC9B;AAED;;;;;;GAMG;AACH,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAqH/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
|