@bahmni/clinical-app 0.0.1-dev.110 → 0.0.1-dev.112
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/App.d.ts.map +1 -1
- package/dist/{FormsTable-DvQygCpm-DU5ePiaA.js → FormsTable-D_uTj2t_-DXySbczc.js} +32 -32
- package/dist/{LNWAZHJI-DbMownaN.js → LNWAZHJI-BTHhevQt.js} +2 -2
- package/dist/{MWZ6AO7Z-BfeNGPBG.js → MWZ6AO7Z-ofNJBXWb.js} +2 -2
- package/dist/{Observations-DHohreqe-DGIi6QZy.js → Observations-BcmAe8sT-BXwjq1fy.js} +25 -25
- package/dist/{YPM2AS64-BGgRsB8q.js → YPM2AS64-CqvF70vT.js} +1 -1
- package/dist/components/consultationPad/ConsultationPad.d.ts.map +1 -1
- package/dist/components/forms/conditionsAndDiagnoses/ConditionsAndDiagnoses.d.ts.map +1 -1
- package/dist/components/forms/encounterDetails/EncounterDetails.d.ts +5 -1
- package/dist/components/forms/encounterDetails/EncounterDetails.d.ts.map +1 -1
- package/dist/components/forms/medications/MedicationsForm.d.ts.map +1 -1
- package/dist/components/forms/observations/ObservationForms.d.ts +3 -0
- package/dist/components/forms/observations/ObservationForms.d.ts.map +1 -1
- package/dist/components/patientHeader/ConsultationActionButton.d.ts.map +1 -1
- package/dist/hooks/useEncounterSession.d.ts +7 -1
- package/dist/hooks/useEncounterSession.d.ts.map +1 -1
- package/dist/hooks/usePinnedObservationForms.d.ts +8 -1
- package/dist/hooks/usePinnedObservationForms.d.ts.map +1 -1
- package/dist/{index-BzD6Dx9A.js → index-CKC1_vgU.js} +28579 -28409
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/dist/locales/locale_en.json +3 -1
- package/dist/locales/locale_es.json +3 -1
- package/dist/services/pinnedFormsService.d.ts +4 -2
- package/dist/services/pinnedFormsService.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/App.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":"AAUA,OAAO,KAA8B,MAAM,OAAO,CAAC;AASnD,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EA2CxB,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as o, jsxs as p, Fragment as z } from "react/jsx-runtime";
|
|
2
|
-
import { u as Y, T as W, K as X, a as f,
|
|
3
|
-
import { useState as
|
|
2
|
+
import { u as Y, T as W, K as X, a as f, _ as Z, O as ee, Q as I, b as re, c as ae, D as oe, C as ne, w as G, q as te, L as N, S as se, d as de, R as ie, e as me } from "./index-CKC1_vgU.js";
|
|
3
|
+
import { useState as x, useMemo as b, useCallback as g } from "react";
|
|
4
4
|
import { createPortal as le } from "react-dom";
|
|
5
|
-
const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe = "_formContent_1pd36_18",
|
|
5
|
+
const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe = "_formContent_1pd36_18", _e = "_formDetailsContainer_1pd36_25", be = "_observation_1pd36_30", fe = "_groupContainer_1pd36_39", ge = "_rowContainer_1pd36_43", Ne = "_groupLabel_1pd36_48", he = "_rowLabel_1pd36_58", ye = "_rowValue_1pd36_67", ve = "_groupMembers_1pd36_75", Le = "_memberRow_1pd36_81", Me = "_memberLabel_1pd36_86", Ae = "_memberValue_1pd36_94", Oe = "_abnormalValue_1pd36_102", Ce = "_commentSection_1pd36_110", Re = "_commentText_1pd36_116", Te = "_nestedGroup_1pd36_125", De = "_nestedGroupLabel_1pd36_132", Fe = "_nestedGroupMembers_1pd36_141", r = {
|
|
6
6
|
formsTableBody: ce,
|
|
7
7
|
customAccordianItem: ue,
|
|
8
8
|
formContent: pe,
|
|
9
|
-
formDetailsContainer:
|
|
10
|
-
observation:
|
|
9
|
+
formDetailsContainer: _e,
|
|
10
|
+
observation: be,
|
|
11
11
|
groupContainer: fe,
|
|
12
12
|
rowContainer: ge,
|
|
13
13
|
groupLabel: Ne,
|
|
@@ -23,10 +23,10 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
|
|
|
23
23
|
nestedGroup: Te,
|
|
24
24
|
nestedGroupLabel: De,
|
|
25
25
|
nestedGroupMembers: Fe
|
|
26
|
-
}, we = "ABNORMAL",
|
|
26
|
+
}, we = "ABNORMAL", U = (e) => {
|
|
27
27
|
const i = e.concept?.units, m = e.concept?.lowNormal, a = e.concept?.hiNormal, l = m != null, c = a != null, u = l && c ? ` (${m} - ${a})` : l ? ` (>${m})` : c ? ` (<${a})` : "", t = e.interpretation && e.interpretation.toUpperCase() === we;
|
|
28
28
|
return { units: i, rangeString: u, isAbnormal: t };
|
|
29
|
-
},
|
|
29
|
+
}, q = ({
|
|
30
30
|
member: e,
|
|
31
31
|
depth: i = 0
|
|
32
32
|
}) => {
|
|
@@ -42,7 +42,7 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
|
|
|
42
42
|
}
|
|
43
43
|
),
|
|
44
44
|
/* @__PURE__ */ o("div", { className: r.nestedGroupMembers, children: e.groupMembers?.map((t) => /* @__PURE__ */ o(
|
|
45
|
-
|
|
45
|
+
q,
|
|
46
46
|
{
|
|
47
47
|
member: t,
|
|
48
48
|
depth: i + 1
|
|
@@ -50,7 +50,7 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
|
|
|
50
50
|
`${t.concept.uuid}`
|
|
51
51
|
)) })
|
|
52
52
|
] });
|
|
53
|
-
const { units: l, rangeString: c, isAbnormal: u } =
|
|
53
|
+
const { units: l, rangeString: c, isAbnormal: u } = U(e);
|
|
54
54
|
return /* @__PURE__ */ p(
|
|
55
55
|
"div",
|
|
56
56
|
{
|
|
@@ -86,11 +86,11 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
|
|
|
86
86
|
]
|
|
87
87
|
}
|
|
88
88
|
);
|
|
89
|
-
},
|
|
89
|
+
}, Se = ({
|
|
90
90
|
observation: e,
|
|
91
91
|
index: i
|
|
92
92
|
}) => {
|
|
93
|
-
const m = e.groupMembers && e.groupMembers.length > 0, { units: a, rangeString: l, isAbnormal: c } =
|
|
93
|
+
const m = e.groupMembers && e.groupMembers.length > 0, { units: a, rangeString: l, isAbnormal: c } = U(e);
|
|
94
94
|
return /* @__PURE__ */ p(
|
|
95
95
|
"div",
|
|
96
96
|
{
|
|
@@ -115,7 +115,7 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
|
|
|
115
115
|
}
|
|
116
116
|
),
|
|
117
117
|
m ? /* @__PURE__ */ o("div", { className: r.groupMembers, children: e.groupMembers?.map((u) => /* @__PURE__ */ o(
|
|
118
|
-
|
|
118
|
+
q,
|
|
119
119
|
{
|
|
120
120
|
member: u,
|
|
121
121
|
depth: 0
|
|
@@ -150,7 +150,7 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
|
|
|
150
150
|
encounterUuids: i,
|
|
151
151
|
config: m
|
|
152
152
|
}) => {
|
|
153
|
-
const { t: a } = Y(), l = W(), [c, u] =
|
|
153
|
+
const { t: a } = Y(), l = W(), [c, u] = x(!1), [t, M] = x(null), k = m?.numberOfVisits, A = X(
|
|
154
154
|
e,
|
|
155
155
|
i
|
|
156
156
|
), {
|
|
@@ -162,7 +162,7 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
|
|
|
162
162
|
queryKey: ["forms", l, e],
|
|
163
163
|
queryFn: () => se(l, void 0, k),
|
|
164
164
|
enabled: !!l && !A
|
|
165
|
-
}), R =
|
|
165
|
+
}), R = b(() => !i || i.length === 0 ? h : h.filter(
|
|
166
166
|
(n) => i.includes(n.encounterUuid)
|
|
167
167
|
), [h, i]), { data: T = [] } = f({
|
|
168
168
|
queryKey: ["observationForms"],
|
|
@@ -170,11 +170,11 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
|
|
|
170
170
|
}), D = g(
|
|
171
171
|
(n) => T.find((s) => s.name === n)?.uuid,
|
|
172
172
|
[T]
|
|
173
|
-
), y =
|
|
173
|
+
), y = b(() => {
|
|
174
174
|
if (t)
|
|
175
175
|
return D(t.formName);
|
|
176
176
|
}, [t, D]), {
|
|
177
|
-
data:
|
|
177
|
+
data: Be,
|
|
178
178
|
isLoading: H,
|
|
179
179
|
error: F
|
|
180
180
|
} = f({
|
|
@@ -189,27 +189,27 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
|
|
|
189
189
|
queryKey: ["formsEncounter", t?.encounterUuid],
|
|
190
190
|
queryFn: () => me(t.encounterUuid, !0),
|
|
191
191
|
enabled: !!t?.encounterUuid && c
|
|
192
|
-
}),
|
|
192
|
+
}), S = b(() => !v?.observations || !t?.formName ? [] : v.observations.filter(
|
|
193
193
|
(n) => "formFieldPath" in n && typeof n.formFieldPath == "string" && n.formFieldPath.includes(t.formName)
|
|
194
|
-
), [v?.observations, t?.formName]),
|
|
194
|
+
), [v?.observations, t?.formName]), B = b(
|
|
195
195
|
() => [
|
|
196
196
|
{ key: "recordedOn", header: a("FORM_RECORDED_ON") },
|
|
197
197
|
{ key: "recordedBy", header: a("FORM_RECORDED_BY") }
|
|
198
198
|
],
|
|
199
199
|
[a]
|
|
200
|
-
), J =
|
|
200
|
+
), J = b(
|
|
201
201
|
() => [
|
|
202
202
|
{ key: "recordedOn", sortable: !0 },
|
|
203
203
|
{ key: "recordedBy", sortable: !0 }
|
|
204
204
|
],
|
|
205
205
|
[]
|
|
206
|
-
),
|
|
206
|
+
), E = b(() => {
|
|
207
207
|
const n = R.reduce(
|
|
208
208
|
(s, d) => {
|
|
209
|
-
const
|
|
210
|
-
s[
|
|
209
|
+
const _ = d.formName;
|
|
210
|
+
s[_] ??= [];
|
|
211
211
|
const L = d.providers.map((Q) => Q.providerName).filter(Boolean).join(", ");
|
|
212
|
-
return s[
|
|
212
|
+
return s[_].push({
|
|
213
213
|
id: d.encounterUuid,
|
|
214
214
|
formName: d.formName,
|
|
215
215
|
recordedOn: Z(d.encounterDateTime, a, te).formattedResult,
|
|
@@ -224,7 +224,7 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
|
|
|
224
224
|
([s, d]) => ({
|
|
225
225
|
formName: s,
|
|
226
226
|
records: d.sort(
|
|
227
|
-
(
|
|
227
|
+
(_, L) => L.encounterDateTime - _.encounterDateTime
|
|
228
228
|
)
|
|
229
229
|
})
|
|
230
230
|
).sort((s, d) => s.formName.localeCompare(d.formName));
|
|
@@ -246,10 +246,10 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
|
|
|
246
246
|
[V]
|
|
247
247
|
);
|
|
248
248
|
return /* @__PURE__ */ p(z, { children: [
|
|
249
|
-
/* @__PURE__ */ o("div", { "data-testid": "forms-table", children: O || C ||
|
|
249
|
+
/* @__PURE__ */ o("div", { "data-testid": "forms-table", children: O || C || E.length === 0 || A ? /* @__PURE__ */ o(
|
|
250
250
|
I,
|
|
251
251
|
{
|
|
252
|
-
headers:
|
|
252
|
+
headers: B,
|
|
253
253
|
ariaLabel: a("FORMS_HEADING"),
|
|
254
254
|
rows: [],
|
|
255
255
|
loading: O,
|
|
@@ -259,8 +259,8 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
|
|
|
259
259
|
className: r.formsTableBody,
|
|
260
260
|
"data-testid": "sortable-data-table"
|
|
261
261
|
}
|
|
262
|
-
) : /* @__PURE__ */ o(re, { align: "start", children:
|
|
263
|
-
const { formName: d, records:
|
|
262
|
+
) : /* @__PURE__ */ o(re, { align: "start", children: E.map((n, s) => {
|
|
263
|
+
const { formName: d, records: _ } = n;
|
|
264
264
|
return /* @__PURE__ */ o(
|
|
265
265
|
ae,
|
|
266
266
|
{
|
|
@@ -271,9 +271,9 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
|
|
|
271
271
|
children: /* @__PURE__ */ o(
|
|
272
272
|
I,
|
|
273
273
|
{
|
|
274
|
-
headers:
|
|
274
|
+
headers: B,
|
|
275
275
|
ariaLabel: a("FORMS_HEADING"),
|
|
276
|
-
rows:
|
|
276
|
+
rows: _,
|
|
277
277
|
loading: !1,
|
|
278
278
|
errorStateMessage: "",
|
|
279
279
|
sortable: J,
|
|
@@ -299,8 +299,8 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
|
|
|
299
299
|
passiveModal: !0,
|
|
300
300
|
size: "md",
|
|
301
301
|
testId: "form-details-modal",
|
|
302
|
-
children: /* @__PURE__ */ o("div", { className: r.formContent, children: H || j ? /* @__PURE__ */ o(ne, { width: "100%", lineCount: 3 }) : F ? /* @__PURE__ */ o("div", { children: G(F).message ?? a("ERROR_FETCHING_FORM_METADATA") }) : w ? /* @__PURE__ */ o("div", { children: G(w).message ?? a("ERROR_FETCHING_FORM_DATA") }) :
|
|
303
|
-
|
|
302
|
+
children: /* @__PURE__ */ o("div", { className: r.formContent, children: H || j ? /* @__PURE__ */ o(ne, { width: "100%", lineCount: 3 }) : F ? /* @__PURE__ */ o("div", { children: G(F).message ?? a("ERROR_FETCHING_FORM_METADATA") }) : w ? /* @__PURE__ */ o("div", { children: G(w).message ?? a("ERROR_FETCHING_FORM_DATA") }) : S.length > 0 ? /* @__PURE__ */ o("div", { className: r.formDetailsContainer, children: S.map((n, s) => /* @__PURE__ */ o(
|
|
303
|
+
Se,
|
|
304
304
|
{
|
|
305
305
|
observation: n,
|
|
306
306
|
index: s
|
|
@@ -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-CqvF70vT.js";
|
|
2
|
+
import { H as d, I as f, J as e } from "./index-CKC1_vgU.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 {
|
|
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-CqvF70vT.js";
|
|
2
|
+
import { H as v, I as C, J as e } from "./index-CKC1_vgU.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 {
|
|
1
|
+
import { jsxs as D, jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { f as F, n as w, r as H, g as I, h as J, i as P, j as K, k as z, l as G, m as j, o as W, s as T, p as Q, t as X, v as Y, T as Z, x as ee, u as N, y as te, a as se, U as re, Q as ne, z as ie, A as M, B as oe, V as ae, E as ue, F as ce, G as le } from "./index-CKC1_vgU.js";
|
|
3
3
|
import * as R from "react";
|
|
4
4
|
import { useRef as de, useEffect as C, useMemo as S } from "react";
|
|
5
5
|
function _(e, t) {
|
|
@@ -10,7 +10,7 @@ function he(e, t, s) {
|
|
|
10
10
|
const r = e.slice(0);
|
|
11
11
|
return r[t] = s, r;
|
|
12
12
|
}
|
|
13
|
-
var pe = class extends
|
|
13
|
+
var pe = class extends F {
|
|
14
14
|
#r;
|
|
15
15
|
#e;
|
|
16
16
|
#n;
|
|
@@ -96,7 +96,7 @@ var pe = class extends U {
|
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
98
|
#l(e, t) {
|
|
99
|
-
return t ? ((!this.#s || this.#e !== this.#a || t !== this.#o) && (this.#o = t, this.#a = this.#e, this.#s =
|
|
99
|
+
return t ? ((!this.#s || this.#e !== this.#a || t !== this.#o) && (this.#o = t, this.#a = this.#e, this.#s = H(
|
|
100
100
|
this.#s,
|
|
101
101
|
t(e)
|
|
102
102
|
)), this.#s) : e;
|
|
@@ -112,7 +112,7 @@ var pe = class extends U {
|
|
|
112
112
|
observer: o
|
|
113
113
|
}) : s.push({
|
|
114
114
|
defaultedQueryOptions: n,
|
|
115
|
-
observer: new
|
|
115
|
+
observer: new I(this.#r, n)
|
|
116
116
|
});
|
|
117
117
|
}), s;
|
|
118
118
|
}
|
|
@@ -175,7 +175,7 @@ function fe({
|
|
|
175
175
|
) ? u.flatMap((c, h) => {
|
|
176
176
|
const d = a[h];
|
|
177
177
|
if (d) {
|
|
178
|
-
const O = new
|
|
178
|
+
const O = new I(r, d);
|
|
179
179
|
if (T(d, c))
|
|
180
180
|
return Q(d, O, o);
|
|
181
181
|
X(c, n) && Q(d, O, o);
|
|
@@ -286,9 +286,9 @@ function $e(e, t) {
|
|
|
286
286
|
location: s.location?.[0]?.location?.display
|
|
287
287
|
};
|
|
288
288
|
}
|
|
289
|
-
function
|
|
289
|
+
function q(e, t, s) {
|
|
290
290
|
const r = $(e.encounter), n = (e.hasMember ?? []).map((o) => $(o)).map((o) => o ? s.get(o) : void 0).filter((o) => !!o).map(
|
|
291
|
-
(o) =>
|
|
291
|
+
(o) => q(o, t, s)
|
|
292
292
|
);
|
|
293
293
|
return {
|
|
294
294
|
id: e.id,
|
|
@@ -311,7 +311,7 @@ function Te(e) {
|
|
|
311
311
|
const n = [], o = [];
|
|
312
312
|
return s.forEach((a, i) => {
|
|
313
313
|
if (r.has(i)) return;
|
|
314
|
-
const u =
|
|
314
|
+
const u = q(
|
|
315
315
|
a,
|
|
316
316
|
t,
|
|
317
317
|
s
|
|
@@ -371,7 +371,7 @@ const k = (e, t, s) => {
|
|
|
371
371
|
`obs-${e.id}`
|
|
372
372
|
);
|
|
373
373
|
}, _e = (e, t, s) => /* @__PURE__ */ p(
|
|
374
|
-
|
|
374
|
+
M,
|
|
375
375
|
{
|
|
376
376
|
title: e.display,
|
|
377
377
|
id: `grouped-obs-${e.id}`,
|
|
@@ -386,8 +386,8 @@ const k = (e, t, s) => {
|
|
|
386
386
|
}) => {
|
|
387
387
|
const { t } = N(), s = (r, n) => {
|
|
388
388
|
const o = ye(r.encounterDetails, t);
|
|
389
|
-
return /* @__PURE__ */
|
|
390
|
-
|
|
389
|
+
return /* @__PURE__ */ D(
|
|
390
|
+
M,
|
|
391
391
|
{
|
|
392
392
|
title: o,
|
|
393
393
|
id: `encounter-${r.encounterId}`,
|
|
@@ -415,10 +415,10 @@ const k = (e, t, s) => {
|
|
|
415
415
|
)
|
|
416
416
|
}
|
|
417
417
|
);
|
|
418
|
-
},
|
|
419
|
-
observations:
|
|
420
|
-
title:
|
|
421
|
-
}, Ne = (e) => ["conceptUuid", e],
|
|
418
|
+
}, De = "_observations_kfbhq_1", Ie = "_title_kfbhq_12", A = {
|
|
419
|
+
observations: De,
|
|
420
|
+
title: Ie
|
|
421
|
+
}, Ne = (e) => ["conceptUuid", e], Me = (e, t) => ["observations", e, ...t], Ve = ({ config: e }) => {
|
|
422
422
|
const t = e, { conceptNames: s = [], conceptUuid: r = [] } = t, n = de(/* @__PURE__ */ new Set()), o = Z(), { addNotification: a } = ee(), { t: i } = N(), u = fe({
|
|
423
423
|
queries: s.map((l) => ({
|
|
424
424
|
queryKey: Ne(l),
|
|
@@ -429,10 +429,10 @@ const k = (e, t, s) => {
|
|
|
429
429
|
C(() => {
|
|
430
430
|
u.forEach((l, y) => {
|
|
431
431
|
if (l.isError && !n.current.has(y)) {
|
|
432
|
-
const
|
|
432
|
+
const U = s[y];
|
|
433
433
|
a({
|
|
434
434
|
title: i("ERROR_DEFAULT_TITLE"),
|
|
435
|
-
message: i("ERROR_FETCHING_CONCEPT", { conceptName:
|
|
435
|
+
message: i("ERROR_FETCHING_CONCEPT", { conceptName: U }),
|
|
436
436
|
type: "error"
|
|
437
437
|
}), n.current.add(y);
|
|
438
438
|
} else l.isError || n.current.delete(y);
|
|
@@ -443,7 +443,7 @@ const k = (e, t, s) => {
|
|
|
443
443
|
isLoading: E,
|
|
444
444
|
isError: m
|
|
445
445
|
} = se({
|
|
446
|
-
queryKey:
|
|
446
|
+
queryKey: Me(o, v),
|
|
447
447
|
queryFn: () => le(o, v),
|
|
448
448
|
enabled: !!o && v.length > 0 && b
|
|
449
449
|
});
|
|
@@ -462,8 +462,8 @@ const k = (e, t, s) => {
|
|
|
462
462
|
{ key: "name", header: "name" },
|
|
463
463
|
{ key: "value", header: "value" },
|
|
464
464
|
{ key: "form", header: "form" }
|
|
465
|
-
], d = E || !b, O = m && b, x = (!g || g.entry?.length === 0 || v.length === 0) && b,
|
|
466
|
-
return /* @__PURE__ */
|
|
465
|
+
], d = E || !b, O = m && b, x = (!g || g.entry?.length === 0 || v.length === 0) && b, V = O ? i("ERROR_FETCHING_OBSERVATIONS") : null, L = x ? i("NO_OBSERVATIONS_FOUND") : void 0, B = c.length > 0 && !d && !O;
|
|
466
|
+
return /* @__PURE__ */ D(
|
|
467
467
|
"div",
|
|
468
468
|
{
|
|
469
469
|
id: "observations",
|
|
@@ -488,8 +488,8 @@ const k = (e, t, s) => {
|
|
|
488
488
|
rows: [],
|
|
489
489
|
ariaLabel: i("OBSERVATIONS"),
|
|
490
490
|
loading: d,
|
|
491
|
-
errorStateMessage:
|
|
492
|
-
emptyStateMessage:
|
|
491
|
+
errorStateMessage: V,
|
|
492
|
+
emptyStateMessage: L
|
|
493
493
|
}
|
|
494
494
|
)
|
|
495
495
|
]
|
|
@@ -498,6 +498,6 @@ const k = (e, t, s) => {
|
|
|
498
498
|
};
|
|
499
499
|
export {
|
|
500
500
|
Ne as conceptUuidQueryKeys,
|
|
501
|
-
|
|
502
|
-
|
|
501
|
+
Ve as default,
|
|
502
|
+
Me as observationsQueryKeys
|
|
503
503
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { M as we, N as z, P as xt, W as B, I as q, J as y, X as Ro, Y as ye, Z as R, $ as _, a0 as k, a1 as N, a2 as A, a3 as bs, a4 as ir, a5 as $e, a6 as U, a7 as Hn, a8 as Vn, a9 as dt, aa as D, ab as xs, ac as cn, ad as Be, ae as ws, af as qt, ag as zt, ah as $s, ai as Cs, aj as $n, ak as Ss, al as Nr, am as Bt, an as zo, ao as ks, ap as Es, aq as j, ar as Ur, as as Ms, at as Ds, au as sr, av as As, aw as Ts, ax as zn, ay as Fs, az as Is, aA as Z, aB as Ps, aC as Ls } from "./index-CKC1_vgU.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":"ConsultationPad.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPad/ConsultationPad.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAoB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ConsultationPad.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPad/ConsultationPad.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAoB,MAAM,OAAO,CAAC;AA0CzC,UAAU,oBAAoB;IAC5B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAwanD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConditionsAndDiagnoses.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/conditionsAndDiagnoses/ConditionsAndDiagnoses.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConditionsAndDiagnoses.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/conditionsAndDiagnoses/ConditionsAndDiagnoses.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAOzE;;;;;GAKG;AACH,QAAA,MAAM,sBAAsB,EAAE,KAAK,CAAC,EA8PlC,CAAC;AAIH,eAAe,sBAAsB,CAAC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import { ActivePractitionerContextType } from '@bahmni/widgets';
|
|
1
2
|
import { default as React } from 'react';
|
|
2
|
-
declare const _default: React.NamedExoticComponent<{
|
|
3
|
+
declare const _default: React.NamedExoticComponent<{
|
|
4
|
+
/** Pre-fetched practitioner state to avoid redundant API calls */
|
|
5
|
+
practitionerState: ActivePractitionerContextType;
|
|
6
|
+
}>;
|
|
3
7
|
export default _default;
|
|
4
8
|
//# sourceMappingURL=EncounterDetails.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EncounterDetails.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/encounterDetails/EncounterDetails.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EncounterDetails.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/encounterDetails/EncounterDetails.tsx"],"names":[],"mappings":"AAcA,OAAO,EAEL,KAAK,6BAA6B,EACnC,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAA6B,MAAM,OAAO,CAAC;;IAahD,kEAAkE;uBAC/C,6BAA6B;;AA+UlD,wBAA4C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MedicationsForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/medications/MedicationsForm.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAoC,MAAM,OAAO,CAAC;AASzD;;;;;GAKG;AACH,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"MedicationsForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/medications/MedicationsForm.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAoC,MAAM,OAAO,CAAC;AASzD;;;;;GAKG;AACH,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EA2K3B,CAAC;AAIH,eAAe,eAAe,CAAC"}
|
|
@@ -7,6 +7,9 @@ interface ObservationFormsProps {
|
|
|
7
7
|
pinnedForms: ObservationForm[];
|
|
8
8
|
updatePinnedForms: (newPinnedForms: ObservationForm[]) => Promise<void>;
|
|
9
9
|
isPinnedFormsLoading: boolean;
|
|
10
|
+
allForms: ObservationForm[];
|
|
11
|
+
isAllFormsLoading: boolean;
|
|
12
|
+
observationFormsError: Error | null;
|
|
10
13
|
}
|
|
11
14
|
/**
|
|
12
15
|
* ObservationForms component
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObservationForms.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/observations/ObservationForms.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAyC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ObservationForms.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/observations/ObservationForms.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAyC,MAAM,OAAO,CAAC;AAW9D,UAAU,qBAAqB;IAC7B,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IAC/C,aAAa,CAAC,EAAE,eAAe,EAAE,CAAC;IAClC,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAE1C,WAAW,EAAE,eAAe,EAAE,CAAC;IAC/B,iBAAiB,EAAE,CAAC,cAAc,EAAE,eAAe,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxE,oBAAoB,EAAE,OAAO,CAAC;IAE9B,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,qBAAqB,EAAE,KAAK,GAAG,IAAI,CAAC;CACrC;AAED;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAqRrD,CAAC;AAIF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsultationActionButton.d.ts","sourceRoot":"","sources":["../../../src/components/patientHeader/ConsultationActionButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConsultationActionButton.d.ts","sourceRoot":"","sources":["../../../src/components/patientHeader/ConsultationActionButton.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,6BAA6B;IACrC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,sBAAsB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;CACvE;AAED;;;;;;GAMG;AACH,QAAA,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAwBrE,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
+
import { Provider } from '@bahmni/services';
|
|
1
2
|
import { Encounter } from 'fhir/r4';
|
|
3
|
+
interface UseEncounterSessionOptions {
|
|
4
|
+
/** The practitioner to use for session filtering */
|
|
5
|
+
practitioner: Provider | null;
|
|
6
|
+
}
|
|
2
7
|
interface UseEncounterSessionReturn {
|
|
3
8
|
hasActiveSession: boolean;
|
|
4
9
|
activeEncounter: Encounter | null;
|
|
@@ -11,8 +16,9 @@ interface UseEncounterSessionReturn {
|
|
|
11
16
|
/**
|
|
12
17
|
* Hook to manage encounter session state
|
|
13
18
|
* Determines if there's an active encounter session for the current patient
|
|
19
|
+
* @param options - Options containing the practitioner to use for session filtering
|
|
14
20
|
* @returns Object containing session state and utilities
|
|
15
21
|
*/
|
|
16
|
-
export declare function useEncounterSession(): UseEncounterSessionReturn;
|
|
22
|
+
export declare function useEncounterSession(options: UseEncounterSessionOptions): UseEncounterSessionReturn;
|
|
17
23
|
export {};
|
|
18
24
|
//# sourceMappingURL=useEncounterSession.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEncounterSession.d.ts","sourceRoot":"","sources":["../../src/hooks/useEncounterSession.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useEncounterSession.d.ts","sourceRoot":"","sources":["../../src/hooks/useEncounterSession.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE1E,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGpC,UAAU,0BAA0B;IAClC,oDAAoD;IACpD,YAAY,EAAE,QAAQ,GAAG,IAAI,CAAC;CAC/B;AAED,UAAU,yBAAyB;IACjC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,eAAe,EAAE,SAAS,GAAG,IAAI,CAAC;IAClC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9B;AAED;;;;;GAKG;AAEH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,0BAA0B,GAClC,yBAAyB,CAyF3B"}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { ObservationForm } from '@bahmni/services';
|
|
2
|
-
|
|
2
|
+
interface UsePinnedObservationFormsOptions {
|
|
3
|
+
/** User UUID required for loading and saving pinned forms */
|
|
4
|
+
userUuid?: string | null;
|
|
5
|
+
/** Whether available forms are currently loading */
|
|
6
|
+
isFormsLoading?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function usePinnedObservationForms(availableForms: ObservationForm[], options?: UsePinnedObservationFormsOptions): {
|
|
3
9
|
pinnedForms: ObservationForm[];
|
|
4
10
|
updatePinnedForms: (newPinnedForms: ObservationForm[]) => Promise<void>;
|
|
5
11
|
isLoading: boolean;
|
|
@@ -8,4 +14,5 @@ export declare function usePinnedObservationForms(): {
|
|
|
8
14
|
message: string;
|
|
9
15
|
} | null;
|
|
10
16
|
};
|
|
17
|
+
export {};
|
|
11
18
|
//# sourceMappingURL=usePinnedObservationForms.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePinnedObservationForms.d.ts","sourceRoot":"","sources":["../../src/hooks/usePinnedObservationForms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,eAAe,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"usePinnedObservationForms.d.ts","sourceRoot":"","sources":["../../src/hooks/usePinnedObservationForms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAOtE,UAAU,gCAAgC;IACxC,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,oDAAoD;IACpD,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AACD,wBAAgB,yBAAyB,CACvC,cAAc,EAAE,eAAe,EAAE,EACjC,OAAO,CAAC,EAAE,gCAAgC;;wCAgFjB,eAAe,EAAE;;;eA3EE,MAAM;iBAAW,MAAM;;EA0GpE"}
|