@bahmni/clinical-app 0.0.1-dev.148 → 0.0.1-dev.150

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 t, jsxs as p, Fragment as W } from "react/jsx-runtime";
2
- import { u as J, H as Q, w as X, a as h, i as Z, C as ee, A as G, Y as re, G as ae, b as oe, V as te, c as U, g as ne, d as v, W as se, q as de, U as me, F as ie } from "./index-BkD8km-2.js";
2
+ import { u as J, H as Q, w as X, a as h, i as Z, C as ee, A as G, Y as re, G as ae, b as oe, V as te, c as U, g as ne, d as v, W as se, q as de, U as me, F as ie } from "./index-Hbs3D7h0.js";
3
3
  import { useState as x, useMemo as N, useCallback as y } from "react";
4
4
  const le = "_formsTableBody_1pd36_1", ce = "_customAccordianItem_1pd36_6", ue = "_formContent_1pd36_18", pe = "_formDetailsContainer_1pd36_25", be = "_observation_1pd36_30", _e = "_groupContainer_1pd36_39", fe = "_rowContainer_1pd36_43", Ne = "_groupLabel_1pd36_48", $e = "_rowLabel_1pd36_58", ge = "_rowValue_1pd36_67", he = "_groupMembers_1pd36_75", ye = "_memberRow_1pd36_81", ve = "_memberLabel_1pd36_86", Ae = "_memberValue_1pd36_94", Me = "_abnormalValue_1pd36_102", Te = "_commentSection_1pd36_110", Ce = "_commentText_1pd36_116", Le = "_nestedGroup_1pd36_125", De = "_nestedGroupLabel_1pd36_132", Oe = "_nestedGroupMembers_1pd36_141", o = {
5
5
  formsTableBody: le,
@@ -1,5 +1,5 @@
1
- import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-CFlM_viP.js";
2
- import { L as d, N as f, R as e } from "./index-BkD8km-2.js";
1
+ import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-BjBCxA4T.js";
2
+ import { L as d, N as f, R as e } from "./index-Hbs3D7h0.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-CFlM_viP.js";
2
- import { L as v, N as C, R as e } from "./index-BkD8km-2.js";
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-BjBCxA4T.js";
2
+ import { L as v, N as C, R as e } from "./index-Hbs3D7h0.js";
3
3
  var h = (t) => {
4
4
  const [r, o] = s({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,5 +1,5 @@
1
1
  import { jsxs as A, jsx as m } from "react/jsx-runtime";
2
- import { S as U, n as w, r as P, Q as q, e as V, f as K, h as j, j as z, k as G, l as X, m as J, s as _, o as C, p as W, t as Y, H as Z, v as ee, u as k, P as se, a as te, K as re, X as ie, x as ne, y as oe, A as ae, z as ue, B, J as le, D as ce, O as he, E as de, M as be, I as pe } from "./index-BkD8km-2.js";
2
+ import { S as U, n as w, r as P, Q as q, e as V, f as K, h as j, j as z, k as G, l as X, m as J, s as _, o as C, p as W, t as Y, H as Z, v as ee, u as k, P as se, a as te, K as re, X as ie, x as ne, y as oe, A as ae, z as ue, B, J as le, D as ce, O as he, E as de, M as be, I as pe } from "./index-Hbs3D7h0.js";
3
3
  import * as E from "react";
4
4
  import { useRef as fe, useEffect as I, useMemo as T } from "react";
5
5
  function $(e, s) {
@@ -1,4 +1,4 @@
1
- import { T as we, Z as z, _ as xt, $ as B, N as q, R as y, a0 as Ro, a1 as ye, a2 as R, a3 as _, a4 as k, a5 as N, a6 as A, a7 as bs, a8 as ir, a9 as $e, aa as G, ab as Hn, ac as Vn, ad as dt, ae as D, af as xs, ag as cn, ah as Be, ai as ws, aj as qt, ak as zt, al as $s, am as Cs, an as $n, ao as Ss, ap as Nr, aq as Bt, ar as zo, as as ks, at as Es, au as j, av as Gr, aw as Ms, ax as Ds, ay as sr, az as As, aA as Ts, aB as zn, aC as Fs, aD as Is, aE as Z, aF as Ps, aG as Ls } from "./index-BkD8km-2.js";
1
+ import { T as we, Z as z, _ as xt, $ as B, N as q, R as y, a0 as Ro, a1 as ye, a2 as R, a3 as _, a4 as k, a5 as N, a6 as A, a7 as bs, a8 as ir, a9 as $e, aa as G, ab as Hn, ac as Vn, ad as dt, ae as D, af as xs, ag as cn, ah as Be, ai as ws, aj as qt, ak as zt, al as $s, am as Cs, an as $n, ao as Ss, ap as Nr, aq as Bt, ar as zo, as as ks, at as Es, au as j, av as Gr, aw as Ms, ax as Ds, ay as sr, az as As, aA as Ts, aB as zn, aC as Fs, aD as Is, aE as Z, aF as Ps, aG as Ls } from "./index-Hbs3D7h0.js";
2
2
  var Os = (e) => e != null, qs = (e) => e.filter(Os);
3
3
  function _s(e) {
4
4
  return (...t) => {
@@ -153605,7 +153605,7 @@ const ws = (n, e) => n?.length === 0 ? !1 : e?.length === 0, dYe = async () => {
153605
153605
  });
153606
153606
  const c = mYe + l.toString();
153607
153607
  return $t(c);
153608
- }, Cde = "custom:(uuid,episodeUuid,patient,program,display,dateEnrolled,dateCompleted,location,voided,allowedStates,outcome,states:(uuid,startDate,endDate,voided,state:(uuid,concept:(uuid,display,name,names))),auditInfo,attributes)", wYe = (n) => `${br}/bahmniprogramenrollment?patient=${n}&v=${Cde}`, Tde = (n) => `${br}/bahmniprogramenrollment/${n}`, vYe = (n) => `${Tde(n)}?v=${Cde}`, EYe = async (n) => await $t(wYe(n)), yYe = async (n) => await $t(vYe(n)), VYe = async (n, e) => {
153608
+ }, Cde = "custom:(uuid,episodeUuid,patient,program,display,dateEnrolled,dateCompleted,location,voided,allowedStates,outcome,states:(uuid,startDate,endDate,voided,state:(uuid,concept:(uuid,display,name,names)),auditInfo),auditInfo,attributes)", wYe = (n) => `${br}/bahmniprogramenrollment?patient=${n}&v=${Cde}`, Tde = (n) => `${br}/bahmniprogramenrollment/${n}`, vYe = (n) => `${Tde(n)}?v=${Cde}`, EYe = async (n) => await $t(wYe(n)), yYe = async (n) => await $t(vYe(n)), VYe = async (n, e) => {
153609
153609
  const a = {
153610
153610
  uuid: n,
153611
153611
  states: [
@@ -153627,15 +153627,13 @@ function Ode(n) {
153627
153627
  const a = n.states.filter(
153628
153628
  (r) => r.endDate !== null
153629
153629
  ).sort((r, l) => {
153630
- const c = new Date(r.endDate).getTime(), f = new Date(l.endDate).getTime();
153630
+ const c = new Date(r.auditInfo.dateCreated).getTime(), f = new Date(l.auditInfo.dateCreated).getTime();
153631
153631
  return c - f;
153632
153632
  });
153633
153633
  e = a[a.length - 1];
153634
153634
  } else
153635
153635
  e = n.states.find((a) => a.endDate === null);
153636
- return e ? PUe(
153637
- e.state.concept.names
153638
- ) ?? e.state.concept.display : null;
153636
+ return e ? PUe(e.state.concept.names) ?? e.state.concept.display : null;
153639
153637
  }
153640
153638
  function Lde(n, e) {
153641
153639
  if (e.length === 0)
@@ -157666,7 +157664,7 @@ function Qtt(n) {
157666
157664
  return !r && !l ? 0 : r ? l ? new Date(l).getTime() - new Date(r).getTime() : -1 : 1;
157667
157665
  });
157668
157666
  }
157669
- const YXe = "_resultsContainer_gcyj6_1", GXe = "_observation_gcyj6_8", JXe = "_groupContainer_gcyj6_16", XXe = "_rowContainer_gcyj6_20", QXe = "_groupLabel_gcyj6_25", eQe = "_rowLabel_gcyj6_34", tQe = "_rowValue_gcyj6_42", rQe = "_groupMembers_gcyj6_50", nQe = "_memberRow_gcyj6_56", oQe = "_memberLabel_gcyj6_61", aQe = "_memberValue_gcyj6_69", iQe = "_abnormalValue_gcyj6_77", sQe = "_rangeInfo_gcyj6_85", lQe = "_nestedGroup_gcyj6_95", cQe = "_nestedGroupLabel_gcyj6_102", dQe = "_nestedGroupMembers_gcyj6_111", rr = {
157667
+ const YXe = "_resultsContainer_1c8ff_1", GXe = "_observation_1c8ff_9", JXe = "_groupContainer_1c8ff_17", XXe = "_rowContainer_1c8ff_21", QXe = "_groupLabel_1c8ff_26", eQe = "_rowLabel_1c8ff_35", tQe = "_rowValue_1c8ff_43", rQe = "_groupMembers_1c8ff_51", nQe = "_memberRow_1c8ff_57", oQe = "_memberLabel_1c8ff_62", aQe = "_memberValue_1c8ff_70", iQe = "_abnormalValue_1c8ff_78", sQe = "_rangeInfo_1c8ff_86", lQe = "_nestedGroup_1c8ff_96", cQe = "_nestedGroupLabel_1c8ff_103", dQe = "_nestedGroupMembers_1c8ff_112", rr = {
157670
157668
  resultsContainer: YXe,
157671
157669
  observation: GXe,
157672
157670
  groupContainer: JXe,
@@ -157945,7 +157943,7 @@ function xQe(n) {
157945
157943
  priority: r.priority,
157946
157944
  orderedBy: r.requester.display,
157947
157945
  orderedDate: l,
157948
- status: r.status,
157946
+ status: r.status.toLowerCase(),
157949
157947
  ...c && c.length > 0 && { replaces: c },
157950
157948
  ...f && { note: f },
157951
157949
  ...h.length > 0 && {
@@ -159227,7 +159225,7 @@ function Zet(n) {
159227
159225
  priority: e.priority,
159228
159226
  orderedBy: e.requester.display,
159229
159227
  orderedDate: a,
159230
- status: e.status,
159228
+ status: e.status.toLowerCase(),
159231
159229
  ...r && r.length > 0 && { replaces: r },
159232
159230
  ...l && { note: l }
159233
159231
  };
@@ -159863,7 +159861,7 @@ const rrt = () => {
159863
159861
  },
159864
159862
  {
159865
159863
  type: "forms",
159866
- component: lazy$1(() => import("./FormsTable-DWpgqIOY-DklCjPI_.js"))
159864
+ component: lazy$1(() => import("./FormsTable-2H_unWnb-WbrMUBp1.js"))
159867
159865
  },
159868
159866
  {
159869
159867
  type: "labOrders",
@@ -159871,7 +159869,7 @@ const rrt = () => {
159871
159869
  },
159872
159870
  {
159873
159871
  type: "observations",
159874
- component: lazy$1(() => import("./Observations-DJMt5zW3-xOR_iWn3.js"))
159872
+ component: lazy$1(() => import("./Observations-Dj336sZY-CuCGYmvp.js"))
159875
159873
  },
159876
159874
  {
159877
159875
  type: "ordersControl",
@@ -161772,7 +161770,7 @@ var displayValue = (n, e = !1) => {
161772
161770
  const e = render(() => {
161773
161771
  const a = this, [r] = this.#o, [l] = this.#d, [c] = this.#f, [f] = this.#u, [h] = this.#p, [m] = this.#e;
161774
161772
  let A;
161775
- return this.#s ? A = this.#s : (A = lazy(() => import("./LNWAZHJI-CLGRUMr_.js")), this.#s = A), setupStyleSheet(this.#l, this.#i), createComponent(A, mergeProps({
161773
+ return this.#s ? A = this.#s : (A = lazy(() => import("./LNWAZHJI-BK7BfUih.js")), this.#s = A), setupStyleSheet(this.#l, this.#i), createComponent(A, mergeProps({
161776
161774
  get queryFlavor() {
161777
161775
  return a.#n;
161778
161776
  },
@@ -161870,7 +161868,7 @@ var displayValue = (n, e = !1) => {
161870
161868
  const e = render(() => {
161871
161869
  const a = this, [r] = this.#o, [l] = this.#d, [c] = this.#f, [f] = this.#u, [h] = this.#p, [m] = this.#e, [A] = this.#s;
161872
161870
  let g;
161873
- return this.#c ? g = this.#c : (g = lazy(() => import("./MWZ6AO7Z-wn9pDcf2.js")), this.#c = g), setupStyleSheet(this.#l, this.#i), createComponent(g, mergeProps({
161871
+ return this.#c ? g = this.#c : (g = lazy(() => import("./MWZ6AO7Z-c0U5-V6i.js")), this.#c = g), setupStyleSheet(this.#l, this.#i), createComponent(g, mergeProps({
161874
161872
  get queryFlavor() {
161875
161873
  return a.#n;
161876
161874
  },