@bahmni/clinical-app 0.0.1-dev.197 → 0.0.1-dev.199

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.
@@ -1,5 +1,5 @@
1
1
  import { jsx as o, jsxs as l, Fragment as k } from "react/jsx-runtime";
2
- import { l as V, u as x, Q as F, a as H, E as q, C as Q, x as P, T as G, b as W } from "./index-avcEfTxb.js";
2
+ import { l as V, u as x, Q as F, a as H, E as q, C as Q, x as P, T as G, b as W } from "./index-BHZuYHVS.js";
3
3
  import { useState as I, useCallback as T, useEffect as L, useMemo as E } from "react";
4
4
  const Y = "_documentsTableBody_1voj8_1", z = "_viewAttachmentsLink_1voj8_11", J = "_documentViewerContainer_1voj8_15", K = "_attachmentItem_1voj8_23", X = "_attachmentCounter_1voj8_27", Z = "_attachmentError_1voj8_36", ee = "_documentIframe_1voj8_44", te = "_documentImage_1voj8_50", d = {
5
5
  documentsTableBody: Y,
@@ -1,7 +1,7 @@
1
1
  import { jsx as o, jsxs as p, Fragment as k } from "react/jsx-runtime";
2
- import { u as O, l as ae, o as te, c as oe, a as A, f as ne, C as se, E as de, x as U, I as me, Z as ie, T as le, d as ce, S as H, W as ue, q as K, e as F, g as be, N as pe, A as fe, z as _e, h as $e, X as ge, Y as he, J as ve, G as ye } from "./index-avcEfTxb.js";
2
+ import { u as O, l as ae, o as te, c as oe, a as A, f as ne, C as se, E as de, x as U, I as me, Z as ie, T as le, d as ce, S as H, W as ue, q as K, e as F, g as be, N as pe, A as fe, z as _e, h as $e, X as ge, Y as he, J as ve, G as ye } from "./index-BHZuYHVS.js";
3
3
  import { useState as P, useMemo as v, useCallback as C } from "react";
4
- const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce = "_formContent_1pd36_18", Fe = "_formDetailsContainer_1pd36_25", Le = "_observation_1pd36_30", Re = "_groupContainer_1pd36_39", Ie = "_rowContainer_1pd36_43", Me = "_groupLabel_1pd36_48", Oe = "_rowLabel_1pd36_58", Te = "_rowValue_1pd36_67", Se = "_groupMembers_1pd36_75", xe = "_memberRow_1pd36_81", De = "_memberLabel_1pd36_86", Ee = "_memberValue_1pd36_94", Ve = "_abnormalValue_1pd36_102", we = "_commentSection_1pd36_110", Be = "_commentText_1pd36_116", Ge = "_nestedGroup_1pd36_125", qe = "_nestedGroupLabel_1pd36_132", Ue = "_nestedGroupMembers_1pd36_141", n = {
4
+ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce = "_formContent_1pd36_18", Fe = "_formDetailsContainer_1pd36_25", Le = "_observation_1pd36_30", Re = "_groupContainer_1pd36_39", Ie = "_rowContainer_1pd36_43", Me = "_groupLabel_1pd36_48", Oe = "_rowLabel_1pd36_58", Te = "_rowValue_1pd36_67", Se = "_groupMembers_1pd36_75", Ve = "_memberRow_1pd36_81", xe = "_memberLabel_1pd36_86", De = "_memberValue_1pd36_94", Ee = "_abnormalValue_1pd36_102", we = "_commentSection_1pd36_110", Be = "_commentText_1pd36_116", Ge = "_nestedGroup_1pd36_125", qe = "_nestedGroupLabel_1pd36_132", Ue = "_nestedGroupMembers_1pd36_141", n = {
5
5
  formsTableBody: Ne,
6
6
  customAccordianItem: Ae,
7
7
  formContent: Ce,
@@ -13,10 +13,10 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
13
13
  rowLabel: Oe,
14
14
  rowValue: Te,
15
15
  groupMembers: Se,
16
- memberRow: xe,
17
- memberLabel: De,
18
- memberValue: Ee,
19
- abnormalValue: Ve,
16
+ memberRow: Ve,
17
+ memberLabel: xe,
18
+ memberValue: De,
19
+ abnormalValue: Ee,
20
20
  commentSection: we,
21
21
  commentText: Be,
22
22
  nestedGroup: Ge,
@@ -243,7 +243,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
243
243
  ].filter(
244
244
  ({ formFieldPath: a }) => !a || a.includes(r)
245
245
  );
246
- }, Xe = ({
246
+ }, Ye = ({
247
247
  episodeOfCareUuids: e,
248
248
  encounterUuids: r,
249
249
  config: s
@@ -256,7 +256,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
256
256
  isLoading: y,
257
257
  isError: N,
258
258
  error: Q,
259
- refetch: X
259
+ refetch: Y
260
260
  } = A({
261
261
  queryKey: ["forms", l, e],
262
262
  queryFn: () => ge(l, void 0, g),
@@ -266,20 +266,20 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
266
266
  ), [$, r]), { data: S = [] } = A({
267
267
  queryKey: ["observationForms"],
268
268
  queryFn: () => he()
269
- }), x = C(
269
+ }), V = C(
270
270
  (m) => S.find((u) => u.name === m)?.uuid,
271
271
  [S]
272
272
  ), L = v(() => {
273
273
  if (t)
274
- return x(t.formName);
275
- }, [t, x]), { isLoading: Y, error: D } = A({
274
+ return V(t.formName);
275
+ }, [t, V]), { isLoading: Z, error: x } = A({
276
276
  queryKey: ["formMetadata", L],
277
277
  queryFn: () => ve(L),
278
278
  enabled: !!L && d
279
279
  }), {
280
280
  data: R,
281
281
  isLoading: J,
282
- error: E
282
+ error: D
283
283
  } = A({
284
284
  queryKey: ["formsEncounterFHIR", t?.encounterUuid],
285
285
  queryFn: () => ye(t.encounterUuid),
@@ -287,11 +287,11 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
287
287
  });
288
288
  ne(
289
289
  (m) => {
290
- m.patientUUID === l && m.updatedConcepts.size > 0 && (X(), _.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
290
+ m.patientUUID === l && m.updatedConcepts.size > 0 && (Y(), _.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
291
291
  },
292
292
  [l]
293
293
  );
294
- const V = v(() => !R || !t?.formName ? [] : je(
294
+ const E = v(() => !R || !t?.formName ? [] : je(
295
295
  R,
296
296
  t.formName
297
297
  ), [R, t?.formName]), w = v(
@@ -300,7 +300,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
300
300
  { key: "recordedBy", header: a("FORM_RECORDED_BY") }
301
301
  ],
302
302
  [a]
303
- ), Z = v(
303
+ ), X = v(
304
304
  () => [
305
305
  { key: "recordedOn", sortable: !0 },
306
306
  { key: "recordedBy", sortable: !0 }
@@ -379,7 +379,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
379
379
  rows: h,
380
380
  loading: !1,
381
381
  errorStateMessage: "",
382
- sortable: Z,
382
+ sortable: X,
383
383
  emptyStateMessage: a("FORMS_UNAVAILABLE"),
384
384
  renderCell: q,
385
385
  className: n.formsTableBody,
@@ -402,7 +402,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
402
402
  passiveModal: !0,
403
403
  size: "md",
404
404
  testId: "form-details-modal",
405
- children: /* @__PURE__ */ o("div", { className: n.formContent, children: Y || J ? /* @__PURE__ */ o(ce, { width: "100%", lineCount: 3 }) : D ? /* @__PURE__ */ o("div", { children: H(D).message ?? a("ERROR_FETCHING_FORM_METADATA") }) : E ? /* @__PURE__ */ o("div", { children: H(E).message ?? a("ERROR_FETCHING_FORM_DATA") }) : V.length > 0 ? /* @__PURE__ */ o("div", { className: n.formDetailsContainer, children: V.map(({ obs: m, comment: u }, i) => /* @__PURE__ */ o(
405
+ children: /* @__PURE__ */ o("div", { className: n.formContent, children: Z || J ? /* @__PURE__ */ o(ce, { width: "100%", lineCount: 3 }) : x ? /* @__PURE__ */ o("div", { children: H(x).message ?? a("ERROR_FETCHING_FORM_METADATA") }) : D ? /* @__PURE__ */ o("div", { children: H(D).message ?? a("ERROR_FETCHING_FORM_DATA") }) : E.length > 0 ? /* @__PURE__ */ o("div", { className: n.formDetailsContainer, children: E.map(({ obs: m, comment: u }, i) => /* @__PURE__ */ o(
406
406
  He,
407
407
  {
408
408
  observation: m,
@@ -417,5 +417,5 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
417
417
  ] });
418
418
  };
419
419
  export {
420
- Xe as default
420
+ Ye as default
421
421
  };
@@ -1,5 +1,5 @@
1
- import { c, T as l, P as m, a as v, D as u, Q as i } from "./YPM2AS64-CNv2J2kx.js";
2
- import { s as d, t as f, v as e } from "./index-avcEfTxb.js";
1
+ import { c, T as l, P as m, a as v, D as u, Q as i } from "./YPM2AS64-DJYy_evY.js";
2
+ import { s as d, t as f, v as e } from "./index-BHZuYHVS.js";
3
3
  var p = (a) => {
4
4
  const [r, t] = c({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,5 +1,5 @@
1
- import { c as l, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-CNv2J2kx.js";
2
- import { s as v, t as C, v as e } from "./index-avcEfTxb.js";
1
+ import { c as l, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-DJYy_evY.js";
2
+ import { s as v, t as C, v as e } from "./index-BHZuYHVS.js";
3
3
  var h = (t) => {
4
4
  const [r, o] = l({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,5 +1,5 @@
1
1
  import { jsxs as T, jsx as l } from "react/jsx-runtime";
2
- import { l as B, Q as K, u as I, i as Q, U as V, a as x, f as w, W as j, j as z, k as G, m as H, x as M, r as P, n as S, p as W, g as Y, w as J, N as X, A as Z, z as ee, K as te } from "./index-avcEfTxb.js";
2
+ import { l as B, Q as K, u as I, i as V, U as x, a as Q, f as w, W as j, j as z, k as G, m as H, x as M, r as P, n as S, p as W, g as Y, w as J, N as X, A as Z, z as ee, K as te } from "./index-BHZuYHVS.js";
3
3
  import { useRef as ae, useEffect as $, useMemo as f } from "react";
4
4
  const A = (t, d, i, u, r) => {
5
5
  const a = W(t, d, r), s = a.value, o = Y(s);
@@ -77,10 +77,10 @@ const A = (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 = B(), { addNotification: s } = K(), { t: o } = I(), n = Q({
80
+ const d = t, { conceptNames: i = [], conceptUuid: u = [] } = d, r = ae(/* @__PURE__ */ new Set()), a = B(), { addNotification: s } = K(), { t: o } = I(), n = V({
81
81
  queries: i.map((e) => ({
82
82
  queryKey: ie(e),
83
- queryFn: () => V(e),
83
+ queryFn: () => x(e),
84
84
  enabled: !!e
85
85
  }))
86
86
  });
@@ -98,10 +98,10 @@ const A = (t, d, i, u, r) => {
98
98
  }, [n, i]);
99
99
  const b = f(() => n.map((e) => e.data?.uuid).filter((e) => !!e), [n]), p = f(() => [.../* @__PURE__ */ new Set([...b, ...u])], [b, u]), v = f(() => i.length === 0 ? !0 : n.every((e) => !e.isLoading), [n, i.length]), {
100
100
  data: c,
101
- isLoading: D,
101
+ isLoading: U,
102
102
  isError: g,
103
- refetch: R
104
- } = x({
103
+ refetch: h
104
+ } = Q({
105
105
  queryKey: de(a, p),
106
106
  queryFn: () => te(a, p),
107
107
  enabled: !!a && p.length > 0 && v
@@ -110,9 +110,9 @@ const A = (t, d, i, u, r) => {
110
110
  (e) => {
111
111
  e.patientUUID === a && e.updatedConcepts.size > 0 && [...e.updatedConcepts.keys()].some(
112
112
  (m) => p.includes(m)
113
- ) && R();
113
+ ) && h();
114
114
  },
115
- [a, R]
115
+ [a, h]
116
116
  ), $(() => {
117
117
  g && s({
118
118
  title: o("ERROR_DEFAULT_TITLE"),
@@ -120,15 +120,15 @@ const A = (t, d, i, u, r) => {
120
120
  type: "error"
121
121
  });
122
122
  }, [g]);
123
- const h = f(() => {
123
+ const R = f(() => {
124
124
  if (!c) return [];
125
125
  const e = j(c), m = z(e);
126
126
  return G(m);
127
- }, [c]), F = [
127
+ }, [c]), q = [
128
128
  { key: "name", header: "name" },
129
129
  { key: "value", header: "value" },
130
130
  { key: "form", header: "form" }
131
- ], O = D || !v, _ = g && v, U = (!c || c.entry?.length === 0 || p.length === 0) && v, q = _ ? o("ERROR_FETCHING_OBSERVATIONS") : null, L = U ? o("NO_OBSERVATIONS_FOUND") : void 0, C = h.length > 0 && !O && !_, E = d.titleTranslationKey, y = E ? o(E) : "";
131
+ ], O = U || !v, _ = g && v, D = (!c || c.entry?.length === 0 || p.length === 0) && v, F = _ ? o("ERROR_FETCHING_OBSERVATIONS") : null, L = D ? o("NO_OBSERVATIONS_FOUND") : void 0, C = R.length > 0 && !O && !_, E = d.titleTranslationKey, y = E ? o(E) : "";
132
132
  return /* @__PURE__ */ T(
133
133
  "div",
134
134
  {
@@ -147,14 +147,14 @@ const A = (t, d, i, u, r) => {
147
147
  children: /* @__PURE__ */ l("p", { children: y })
148
148
  }
149
149
  ),
150
- C ? /* @__PURE__ */ l(re, { groupedData: h, title: y }) : /* @__PURE__ */ l(
150
+ C ? /* @__PURE__ */ l(re, { groupedData: R, title: y }) : /* @__PURE__ */ l(
151
151
  M,
152
152
  {
153
- headers: F,
153
+ headers: q,
154
154
  rows: [],
155
155
  ariaLabel: o("OBSERVATIONS"),
156
156
  loading: O,
157
- errorStateMessage: q,
157
+ errorStateMessage: F,
158
158
  emptyStateMessage: L,
159
159
  dataTestId: "observations-table"
160
160
  }
@@ -1,4 +1,4 @@
1
- import { y as we, B as z, D as xt, F as B, t as q, v as y, P as Ro, H as ye, L as R, M as _, O as k, R as N, V as A, _ as bs, $ as ir, a0 as $e, a1 as U, a2 as Hn, a3 as Vn, a4 as dt, a5 as D, a6 as xs, a7 as cn, a8 as Be, a9 as ws, aa as qt, ab as zt, ac as $s, ad as Cs, ae as $n, af as Ss, ag as Nr, ah as Bt, ai as zo, aj as ks, ak as Es, al as j, am as Ur, an as Ms, ao as Ds, ap as sr, aq as As, ar as Ts, as as zn, at as Fs, au as Is, av as Z, aw as Ps, ax as Ls } from "./index-avcEfTxb.js";
1
+ import { y as we, B as z, D as xt, F as B, t as q, v as y, P as Ro, H as ye, L as R, M as _, O as k, R as N, V as A, _ as bs, $ as ir, a0 as $e, a1 as U, a2 as Hn, a3 as Vn, a4 as dt, a5 as D, a6 as xs, a7 as cn, a8 as Be, a9 as ws, aa as qt, ab as zt, ac as $s, ad as Cs, ae as $n, af as Ss, ag as Nr, ah as Bt, ai as zo, aj as ks, ak as Es, al as j, am as Ur, an as Ms, ao as Ds, ap as sr, aq as As, ar as Ts, as as zn, at as Fs, au as Is, av as Z, aw as Ps, ax as Ls } from "./index-BHZuYHVS.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":"AAsBA,OAAO,KAAoB,MAAM,OAAO,CAAC;AA4CzC,UAAU,oBAAoB;IAC5B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAsenD,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"ConsultationPad.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPad/ConsultationPad.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAoB,MAAM,OAAO,CAAC;AA4CzC,UAAU,oBAAoB;IAC5B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA2dnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MedicationsForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/medications/MedicationsForm.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAsBpE;;;;;GAKG;AAEH,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAiR3B,CAAC;AAIH,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"MedicationsForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/medications/MedicationsForm.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAepE;;;;;GAKG;AAEH,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAwO3B,CAAC;AAIH,eAAe,eAAe,CAAC"}
@@ -2,7 +2,7 @@ import { default as React } from 'react';
2
2
  /**
3
3
  * VaccinationForm component
4
4
  *
5
- * Uses the same FHIR code-based overlap/duplicate detection as MedicationsForm.
5
+ * A component that displays a search interface for vaccinations and a list of selected vaccinations.
6
6
  */
7
7
  declare const VaccinationForm: React.FC;
8
8
  export default VaccinationForm;
@@ -1 +1 @@
1
- {"version":3,"file":"VaccinationForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/vaccinations/VaccinationForm.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAwBpE;;;;GAIG;AACH,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAqS3B,CAAC;AAIH,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"VaccinationForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/vaccinations/VaccinationForm.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAkBzD;;;;GAIG;AACH,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAqP3B,CAAC;AAIH,eAAe,eAAe,CAAC"}