@bahmni/admin-app 0.0.1-dev.453 → 0.0.1-dev.456

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
- import { c, T as l, P as m, a as i, D as u, Q as v } from "./YPM2AS64-CLLOAMRV.js";
2
- import { ah as d, ai as f, aj as e } from "./index-Grpo3EV8.js";
1
+ import { c, T as l, P as m, a as i, D as u, Q as v } from "./YPM2AS64-B31dtVSY.js";
2
+ import { ah as d, ai as f, aj as e } from "./index-BhPzl7gM.js";
3
3
  var h = (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 i, a as u, b as m, C as P, Q as d } from "./YPM2AS64-CLLOAMRV.js";
2
- import { ah as h, ai as v, aj as e } from "./index-Grpo3EV8.js";
1
+ import { c as s, T as c, P as i, a as u, b as m, C as P, Q as d } from "./YPM2AS64-B31dtVSY.js";
2
+ import { ah as h, ai as v, aj as e } from "./index-BhPzl7gM.js";
3
3
  var C = (t) => {
4
4
  const [r, o] = s({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,7 +1,7 @@
1
- import { jsxs as I, jsx as n } from "react/jsx-runtime";
2
- import { d as z, z as M, u as L, o as G, g as x, r as J, s as Y, a as j, t as X, v as P, $ as Z, y as W, b as ee, I as ae, D as se, B, S as te, X as re, h as ie, Q as oe, F as ne, J as de, Y as le } from "./index-Grpo3EV8.js";
1
+ import { jsxs as S, jsx as n } from "react/jsx-runtime";
2
+ import { d as z, z as M, u as L, o as x, g as G, r as J, s as Y, a as j, t as X, v as P, $ as Z, y as W, b as ee, I as ae, D as se, B, S as te, X as re, h as ie, Q as oe, F as ne, J as de, Y as le } from "./index-BhPzl7gM.js";
3
3
  import { useQueries as ue, useQuery as ce } from "@tanstack/react-query";
4
- import { useRef as pe, useEffect as A, useMemo as T } from "react";
4
+ import { useRef as pe, useEffect as A, useMemo as g } from "react";
5
5
  const me = "Observations-module_observations__RKSyo", be = "Observations-module_title__TJL3z", he = "Observations-module_wrapper__muk2L", ve = "Observations-module_secondary__14nuS", O = {
6
6
  observations: me,
7
7
  title: be,
@@ -26,12 +26,12 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
26
26
  hideThumbnail: t
27
27
  }
28
28
  )), p === "PDF" && (i = /* @__PURE__ */ n(le, { id: `${e}-pdf`, src: e }));
29
- const m = /* @__PURE__ */ I("div", { className: O.wrapper, children: [
29
+ const m = /* @__PURE__ */ S("div", { className: O.wrapper, children: [
30
30
  /* @__PURE__ */ n("span", { children: r.header.display }),
31
31
  r.header.referenceRange && /* @__PURE__ */ n("span", { className: O.secondary, children: r.header.referenceRange })
32
32
  ] }), u = c("OBSERVATIONS_RECORDED_BY", {
33
33
  provider: r.provider
34
- }), b = s.effectiveDateTime ? ie(s.effectiveDateTime, c, !0).formattedResult : void 0, E = /* @__PURE__ */ I("div", { className: O.wrapper, children: [
34
+ }), b = s.effectiveDateTime ? ie(s.effectiveDateTime, c, !0).formattedResult : void 0, E = /* @__PURE__ */ S("div", { className: O.wrapper, children: [
35
35
  /* @__PURE__ */ n("span", { children: u }),
36
36
  b && /* @__PURE__ */ n("span", { className: O.secondary, children: b })
37
37
  ] }), h = s.display, v = s.observationValue?.isAbnormal ? "abnormal-obs" : "obs", R = d ? `${d}-${v}-${h}-${o}-${l}` : `${v}-${h}-${o}-${l}`;
@@ -72,7 +72,7 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
72
72
  }) => {
73
73
  const { t: d } = L(), c = (t, r, e) => {
74
74
  const p = se(t.encounterDetails, d);
75
- return /* @__PURE__ */ I(
75
+ return /* @__PURE__ */ S(
76
76
  B,
77
77
  {
78
78
  title: p,
@@ -122,7 +122,7 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
122
122
  ...l,
123
123
  o,
124
124
  d
125
- ], Ie = ({
125
+ ], Se = ({
126
126
  config: s,
127
127
  episodeOfCareUuids: l,
128
128
  encounterUuids: o
@@ -135,7 +135,7 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
135
135
  } = d, p = pe(/* @__PURE__ */ new Set()), i = z(), { addNotification: m } = M(), { t: u } = L(), b = ue({
136
136
  queries: c.map((a) => ({
137
137
  queryKey: Re(a),
138
- queryFn: () => G(a),
138
+ queryFn: () => x(a),
139
139
  enabled: !!a
140
140
  }))
141
141
  });
@@ -147,13 +147,13 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
147
147
  type: "error"
148
148
  }), p.current.add(0)) : !a && y && p.current.clear();
149
149
  }, [b, m, u]);
150
- const E = T(() => b.map((a) => a.data?.uuid).filter((a) => !!a), [b]), h = T(() => [.../* @__PURE__ */ new Set([...E, ...t])], [E, t]), v = T(() => c.length === 0 ? !0 : b.every((a) => !a.isLoading), [b, c.length]), R = e === "latest" || e === "latest-encounter", V = x(
150
+ const E = g(() => b.map((a) => a.data?.uuid).filter((a) => !!a), [b]), h = g(() => [.../* @__PURE__ */ new Set([...E, ...t])], [E, t]), v = g(() => c.length === 0 ? !0 : b.every((a) => !a.isLoading), [b, c.length]), R = e === "latest" || e === "latest-encounter", V = G(
151
151
  l,
152
152
  o
153
153
  ), {
154
154
  data: _,
155
155
  isLoading: F,
156
- isError: S,
156
+ isError: I,
157
157
  refetch: N
158
158
  } = ce({
159
159
  queryKey: _e(
@@ -181,13 +181,13 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
181
181
  },
182
182
  [i, N]
183
183
  ), A(() => {
184
- S && m({
184
+ I && m({
185
185
  title: u("ERROR_DEFAULT_TITLE"),
186
186
  message: u("ERROR_FETCHING_OBSERVATIONS"),
187
187
  type: "error"
188
188
  });
189
- }, [S]);
190
- const $ = T(() => {
189
+ }, [I]);
190
+ const $ = g(() => {
191
191
  if (!_) return [];
192
192
  let a = X(_);
193
193
  e === "latest-encounter" && (a = P(a));
@@ -197,12 +197,12 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
197
197
  { key: "name", header: "name" },
198
198
  { key: "value", header: "value" },
199
199
  { key: "form", header: "form" }
200
- ], k = F || !v, D = S && v, K = (!_ || _.entry?.length === 0 || h.length === 0) && v, C = D ? u("ERROR_FETCHING_OBSERVATIONS") : null, H = K ? u("NO_OBSERVATIONS_FOUND") : void 0, Q = $.length > 0 && !k && !D, g = d.titleTranslationKey, f = g ? u(g) : "";
201
- return /* @__PURE__ */ I(
200
+ ], k = F || !v, D = I && v, K = (!_ || _.entry?.length === 0 || h.length === 0) && v, C = D ? u("ERROR_FETCHING_OBSERVATIONS") : null, H = K ? u("NO_OBSERVATIONS_FOUND") : void 0, Q = $.length > 0 && !k && !D, T = d.titleTranslationKey, f = T ? u(T) : "";
201
+ return /* @__PURE__ */ S(
202
202
  "div",
203
203
  {
204
204
  id: "observations",
205
- "data-testid": g ? `observations-${f}` : "observations",
205
+ "data-testid": T ? `observations-${f}` : "observations",
206
206
  "aria-label": "observations-aria-label",
207
207
  className: O.observations,
208
208
  children: [
@@ -210,7 +210,7 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
210
210
  ee,
211
211
  {
212
212
  id: "observations-title",
213
- testId: g ? `observations-title-${f}` : "observations-title",
213
+ testId: T ? `observations-title-${f}` : "observations-title",
214
214
  title: f,
215
215
  className: O.title,
216
216
  children: /* @__PURE__ */ n("p", { children: f })
@@ -241,6 +241,6 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
241
241
  };
242
242
  export {
243
243
  Re as conceptUuidQueryKeys,
244
- Ie as default,
244
+ Se as default,
245
245
  _e as observationsQueryKeys
246
246
  };
@@ -1,4 +1,4 @@
1
- import { ak as we, al as z, am as xt, an as B, ai as q, aj as y, ao as Ro, ap as ye, aq as R, ar as _, as as k, at as N, au as A, av as bs, aw as ir, ax as $e, ay as U, az as Hn, aA as Vn, aB as dt, aC as D, aD as xs, aE as cn, aF as Be, aG as ws, aH as qt, aI as zt, aJ as $s, aK as Cs, aL as $n, aM as Ss, aN as Nr, aO as Bt, aP as zo, aQ as ks, aR as Es, aS as j, aT as Ur, aU as Ms, aV as Ds, aW as sr, aX as As, aY as Ts, aZ as zn, a_ as Fs, a$ as Is, b0 as Z, b1 as Ps, b2 as Ls } from "./index-Grpo3EV8.js";
1
+ import { ak as we, al as z, am as xt, an as B, ai as q, aj as y, ao as Ro, ap as ye, aq as R, ar as _, as as k, at as N, au as A, av as bs, aw as ir, ax as $e, ay as U, az as Hn, aA as Vn, aB as dt, aC as D, aD as xs, aE as cn, aF as Be, aG as ws, aH as qt, aI as zt, aJ as $s, aK as Cs, aL as $n, aM as Ss, aN as Nr, aO as Bt, aP as zo, aQ as ks, aR as Es, aS as j, aT as Ur, aU as Ms, aV as Ds, aW as sr, aX as As, aY as Ts, aZ as zn, a_ as Fs, a$ as Is, b0 as Z, b1 as Ps, b2 as Ls } from "./index-BhPzl7gM.js";
2
2
  var Os = (e) => e != null, qs = (e) => e.filter(Os);
3
3
  function _s(e) {
4
4
  return (...t) => {