@bahmni/clinical-app 0.0.1-dev.149 → 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-BrwW-0Mc.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-DEDY2qBq.js";
2
- import { L as d, N as f, R as e } from "./index-BrwW-0Mc.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-DEDY2qBq.js";
2
- import { L as v, N as C, R as e } from "./index-BrwW-0Mc.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-BrwW-0Mc.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-BrwW-0Mc.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)
@@ -159863,7 +159861,7 @@ const rrt = () => {
159863
159861
  },
159864
159862
  {
159865
159863
  type: "forms",
159866
- component: lazy$1(() => import("./FormsTable-CuElNQoi-DsBfnuOf.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-Bnj4tFMi-CvxNI3J2.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-Oq1ujyNF.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-7WNug1ri.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
  },
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { aH as i } from "./index-BrwW-0Mc.js";
1
+ import { aH as i } from "./index-Hbs3D7h0.js";
2
2
  export {
3
3
  i as ClinicalApp
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/clinical-app",
3
- "version": "0.0.1-dev.149",
3
+ "version": "0.0.1-dev.150",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",