@bahmni/clinical-app 0.0.1-dev.465 → 0.0.1-dev.467

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,10 +1,10 @@
1
1
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
- import { a as useTranslation, V as U, X as ENCOUNTER_CONCEPTS_URL, Y as Qr, _ as Wo, a0 as hb, a1 as aZt, a2 as Cs, a3 as BAHMNI_USER_LOCATION_COOKIE_NAME, a4 as Oc, a5 as Sd, u as un, a6 as $b2, a7 as Tb2, a8 as bb2, a9 as YL2, aa as dl1, ab as Lb2, ac as G_, ad as ec, ae as lf, af as $_, ag as uf, ah as Is, ai as dist, aj as st, ak as me, al as ls, am as Ab, an as Pb, ao as Sb2, ap as Pb2, aq as wb2, ar as jz2, z as zr, s as s6, as as Nb, at as gg, au as Ib, av as Ob, aw as nb2, ax as ub2, ay as oN2, az as jb2, aA as Wb2, l as wZt, aB as Cb, aC as $b, aD as Db, aE as cv, aF as Nb2, aG as $v, aH as Hs, aI as dv, aJ as nT, aK as Sb, aL as Fb, aM as Vb, aN as CLINICAL_V2_CONFIG_BASE_URL, aO as Kb, aP as e0, aQ as pn, aR as Yb, aS as yb, aT, aU as fx2, aV as fv, aW as Gb, aX as Wb, aY as zr$1, aZ as uT, a_ as yb2, a$ as TT, b0 as pb, b1 as Jb, b2 as Ot, b3 as gT, b4 as bT, b5 as Xkt, b6 as Nw, b7 as SNe, b8 as wT, b9 as Qkt, Z as Z1, ba as Uv, bb as hv, bc as Ev, M as Mzt, bd as tN2, be as nN2, bf as jv, bg as qv, bh as Ib2, bi as se, bj as STOP_REASON_VALUESET_EXPAND_URL, bk as Ye, bl as C_, bm as STOP_REASON_VALUESET_TITLE, bn as ep, bo as as, bp as Qb2, bq as Fv, br as Hv, bs as g0, bt as db, bu as m0, bv as fn, bw as A4, bx as c3, by as Yb2, bz as j_, bA as Ws, bB as Vv, bC as Yv, bD as zv, bE as Gv, bF as Zi, bG as us, bH as Sv, bI as xb, bJ as vT, bK as iT, bL as cT, bM as rT, bN as CDSS_SERVER_CONFIG_URL, bO as kb, bP as oc, bQ as z0, bR as Ke, bS as VZt, bT as Bb2, bU as aw, bV as Rv, bW as Ov, bX as _b2, bY as e6, bZ as sT, b_ as Nv, b$ as Pv, c0 as Av, c1 as oZt, c2 as Ykt, c3 as E0, c4 as Iv, c5 as Vi, c6 as oT, c7 as R_, c8 as BAHMNI_CLINICAL_PATH, c9 as Y_, ca as gw, cb as kb2, cc as Ob2, cd as Zz2, ce as tkt, cf as B_, cg as fZt } from "./index-CbuA4ZA9.js";
2
+ import { a as useTranslation, V as U, X as ENCOUNTER_CONCEPTS_URL, Y as Qr, _ as Wo, a0 as hb, a1 as aZt, a2 as Cs, a3 as BAHMNI_USER_LOCATION_COOKIE_NAME, a4 as Oc, a5 as Sd, u as un, a6 as $b2, a7 as Tb2, a8 as bb2, a9 as YL2, aa as dl1, ab as Lb2, ac as G_, ad as ec, ae as lf, af as $_, ag as uf, ah as Is, ai as dist, aj as st, ak as me, al as ls, am as Ab, an as Pb, ao as Sb2, ap as Pb2, aq as wb2, ar as jz2, z as zr, s as s6, as as Nb, at as gg, au as Ib, av as Ob, aw as nb2, ax as ub2, ay as oN2, az as jb2, aA as Wb2, l as wZt, aB as Cb, aC as $b, aD as Db, aE as cv, aF as Nb2, aG as $v, aH as Hs, aI as dv, aJ as nT, aK as Sb, aL as Fb, aM as Vb, aN as CLINICAL_V2_CONFIG_BASE_URL, aO as Kb, aP as e0, aQ as pn, aR as Yb, aS as yb, aT, aU as fx2, aV as fv, aW as Gb, aX as Wb, aY as zr$1, aZ as uT, a_ as yb2, a$ as TT, b0 as pb, b1 as Jb, b2 as Ot, b3 as gT, b4 as bT, b5 as Xkt, b6 as Nw, b7 as SNe, b8 as wT, b9 as Qkt, Z as Z1, ba as Uv, bb as hv, bc as Ev, M as Mzt, bd as tN2, be as nN2, bf as jv, bg as qv, bh as Ib2, bi as se, bj as STOP_REASON_VALUESET_EXPAND_URL, bk as Ye, bl as C_, bm as STOP_REASON_VALUESET_TITLE, bn as ep, bo as as, bp as Qb2, bq as Fv, br as Hv, bs as g0, bt as db, bu as m0, bv as fn, bw as A4, bx as c3, by as Yb2, bz as j_, bA as Ws, bB as Vv, bC as Yv, bD as zv, bE as Gv, bF as Zi, bG as us, bH as Sv, bI as xb, bJ as vT, bK as iT, bL as cT, bM as rT, bN as CDSS_SERVER_CONFIG_URL, bO as kb, bP as oc, bQ as z0, bR as Ke, bS as VZt, bT as Bb2, bU as aw, bV as Rv, bW as Ov, bX as _b2, bY as e6, bZ as sT, b_ as Nv, b$ as Pv, c0 as Av, c1 as oZt, c2 as Ykt, c3 as E0, c4 as Iv, c5 as Vi, c6 as oT, c7 as R_, c8 as BAHMNI_CLINICAL_PATH, c9 as Y_, ca as gw, cb as kb2, cc as Ob2, cd as Zz2, ce as tkt, cf as B_, cg as fZt } from "./index-ZfyzcWgS.js";
3
3
  import { useQuery, useQueries, useQueryClient } from "@tanstack/react-query";
4
4
  import * as React from "react";
5
5
  import React__default, { createContext, useContext, useState, useCallback, useEffect, useMemo, Children, useRef, useLayoutEffect, forwardRef, isValidElement, cloneElement, useReducer, Component, useImperativeHandle, PureComponent, createRef, useSyncExternalStore, Suspense } from "react";
6
6
  import { useNavigate, useSearchParams } from "react-router";
7
- import { u as useClinicalConfig } from "./hook-Cq9GaG7m.js";
7
+ import { u as useClinicalConfig } from "./hook-DxwMFCWH.js";
8
8
  import * as ReactDOM from "react-dom";
9
9
  import ReactDOM__default, { createPortal } from "react-dom";
10
10
  var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
@@ -144406,7 +144406,9 @@ const stopMedicationFormTile = "StopMedicationForm-module_stopMedicationFormTile
144406
144406
  setInputControlKey: I
144407
144407
  } = useStopMedicationStore(), [D, Z] = useState(
144408
144408
  !!E || R.note?.isMandatory === !0
144409
- ), B = useRef(d), F = useRef(f?.id);
144409
+ ), B = useRef(
144410
+ s ? /* @__PURE__ */ new Date() : d
144411
+ ), F = useRef(f?.id);
144410
144412
  F.current !== f?.id && (F.current = f?.id, B.current = d);
144411
144413
  const { data: k } = useQuery({
144412
144414
  queryKey: ["medicationConfig"],
@@ -1,5 +1,5 @@
1
1
  import { jsx as n, jsxs as u, Fragment as pe } from "react/jsx-runtime";
2
- import { u as _e, a as Ee, z as ge, s as Ne, N as Ce, K as fe, w as Ae, O as w, t as Ie, r as Le, b as be, h as De, R as ye, p as we, q as Q, J as ve, L as Oe, $ as Se, c as Re, d as Ue, Q as J, e as ee } from "./index-CbuA4ZA9.js";
2
+ import { u as _e, a as Ee, z as ge, s as Ne, N as Ce, K as fe, w as Ae, O as w, t as Ie, r as Le, b as be, h as De, R as ye, p as we, q as Q, J as ve, L as Oe, $ as Se, c as Re, d as Ue, Q as J, e as ee } from "./index-ZfyzcWgS.js";
3
3
  import { useQuery as Me } from "@tanstack/react-query";
4
4
  import { useState as h, useRef as $e, useEffect as _, useMemo as E, useCallback as T } from "react";
5
5
  const ke = "DocumentsTable-module_documentsTableBody__6iR3w", He = "DocumentsTable-module_viewAttachmentsLink__aQ1on", Be = "DocumentsTable-module_documentViewerContainer__F5m8D", ze = "DocumentsTable-module_printContainer__rtarJ", Ve = "DocumentsTable-module_attachmentItem__17KA7", We = "DocumentsTable-module_attachmentCounter__WFiI3", qe = "DocumentsTable-module_attachmentError__RI4U2", xe = "DocumentsTable-module_documentIframe__ptq5I", Fe = "DocumentsTable-module_attachmentContent__IaCEe", Ge = "DocumentsTable-module_attachmentLoading__FAR6p", Ke = "DocumentsTable-module_hiddenWhileLoading__IxocW", Pe = "DocumentsTable-module_documentImage__KQVgS", je = "DocumentsTable-module_header__345GY", Qe = "DocumentsTable-module_documentTypeCell__uWGM8", Je = "DocumentsTable-module_printAllButton__IVYUW", Ye = "DocumentsTable-module_attachmentHeader__yI2xn", o = {
@@ -1,5 +1,5 @@
1
1
  import { jsx as n, jsxs as H, Fragment as ne } from "react/jsx-runtime";
2
- import { a as ie, u as de, s as le, Z as me, f as ue, G as ce, y as fe, v as ye, w as Ne, k as be, M as pe, g as ge, h as he, N as Ae, q as K, C as $, b as Oe, $ as V, i as Te, j as Ie, c as _e, A as Ee, l as Ce } from "./index-CbuA4ZA9.js";
2
+ import { a as ie, u as de, s as le, Z as me, f as ue, G as ce, y as fe, v as ye, w as Ne, k as be, M as pe, g as ge, h as he, N as Ae, q as K, C as $, b as Oe, $ as V, i as Te, j as Ie, c as _e, A as Ee, l as Ce } from "./index-ZfyzcWgS.js";
3
3
  import { useQueryClient as ve, useQuery as I } from "@tanstack/react-query";
4
4
  import { useState as G, useMemo as i, useCallback as d } from "react";
5
5
  const Le = "FormsTable-module_formsTableBody__SvGha", Re = "FormsTable-module_modalHeading__wnTmA", Be = "FormsTable-module_customAccordianItem__isszs", p = {
@@ -1,5 +1,5 @@
1
- import { c as s, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-DSpEOl1B.js";
2
- import { cm as d, cn as f, co as e } from "./index-CbuA4ZA9.js";
1
+ import { c as s, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-BeiFAEzP.js";
2
+ import { cm as d, cn as f, co as e } from "./index-ZfyzcWgS.js";
3
3
  var p = (a) => {
4
4
  const [r, o] = s({
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-DSpEOl1B.js";
2
- import { cm as v, cn as C, co as e } from "./index-CbuA4ZA9.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-BeiFAEzP.js";
2
+ import { cm as v, cn as C, co as e } from "./index-ZfyzcWgS.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 S, jsx as n } from "react/jsx-runtime";
2
- import { u as z, z as Q, a as B, m as G, f as H, W as M, n as j, w as P, o as W, x as J, B as Y, D as X, p as ee, $ as ae, E as se, F as U, H as te, I as re, h as ie, P as oe, S as ne, T as de, U as le } from "./index-CbuA4ZA9.js";
2
+ import { u as z, z as Q, a as B, m as G, f as H, W as M, n as j, w as P, o as W, x as J, B as Y, D as X, p as ee, $ as ae, E as se, F as U, H as te, I as re, h as ie, P as oe, S as ne, T as de, U as le } from "./index-ZfyzcWgS.js";
3
3
  import { useQueries as ue, useQuery as ce } from "@tanstack/react-query";
4
4
  import { useRef as pe, useEffect as L, 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 = {
@@ -1,4 +1,4 @@
1
- import { cp as we, cq as z, cr as xt, cs as B, cn as q, co as y, ct as Ro, cu as ye, cv as R, cw as _, cx as k, cy as N, cz as A, cA as bs, cB as ir, cC as $e, cD as U, cE as Hn, cF as Vn, cG as dt, cH as D, cI as xs, cJ as cn, cK as Be, cL as ws, cM as qt, cN as zt, cO as $s, cP as Cs, cQ as $n, cR as Ss, cS as Nr, cT as Bt, cU as zo, cV as ks, cW as Es, cX as j, cY as Ur, cZ as Ms, c_ as Ds, c$ as sr, d0 as As, d1 as Ts, d2 as zn, d3 as Fs, d4 as Is, d5 as Z, d6 as Ps, d7 as Ls } from "./index-CbuA4ZA9.js";
1
+ import { cp as we, cq as z, cr as xt, cs as B, cn as q, co as y, ct as Ro, cu as ye, cv as R, cw as _, cx as k, cy as N, cz as A, cA as bs, cB as ir, cC as $e, cD as U, cE as Hn, cF as Vn, cG as dt, cH as D, cI as xs, cJ as cn, cK as Be, cL as ws, cM as qt, cN as zt, cO as $s, cP as Cs, cQ as $n, cR as Ss, cS as Nr, cT as Bt, cU as zo, cV as ks, cW as Es, cX as j, cY as Ur, cZ as Ms, c_ as Ds, c$ as sr, d0 as As, d1 as Ts, d2 as zn, d3 as Fs, d4 as Is, d5 as Z, d6 as Ps, d7 as Ls } from "./index-ZfyzcWgS.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":"StopMedicationForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/stopMedications/StopMedicationForm.tsx"],"names":[],"mappings":"AAUA,OAAO,EAKL,KAAK,wBAAwB,EAC9B,MAAM,kBAAkB,CAAC;AAI1B,OAAO,KAA+C,MAAM,OAAO,CAAC;AAOpE,OAAO,KAAK,EAAE,YAAY,IAAI,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AAU3G,UAAU,uBAAuB;IAC/B,4BAA4B,CAAC,EAAE,wBAAwB,CAAC;IACxD,kBAAkB,CAAC,EAAE,0BAA0B,CAAC;CACjD;AAED,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAgRzD,CAAC;AAIF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"StopMedicationForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/stopMedications/StopMedicationForm.tsx"],"names":[],"mappings":"AAUA,OAAO,EAKL,KAAK,wBAAwB,EAC9B,MAAM,kBAAkB,CAAC;AAI1B,OAAO,KAA+C,MAAM,OAAO,CAAC;AAOpE,OAAO,KAAK,EAAE,YAAY,IAAI,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AAU3G,UAAU,uBAAuB;IAC/B,4BAA4B,CAAC,EAAE,wBAAwB,CAAC;IACxD,kBAAkB,CAAC,EAAE,0BAA0B,CAAC;CACjD;AAED,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAkRzD,CAAC;AAIF,eAAe,kBAAkB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { ck as i, cl as o } from "./index-CbuA4ZA9.js";
1
+ import { ck as i, cl as o } from "./index-ZfyzcWgS.js";
2
2
  import "react/jsx-runtime";
3
3
  import "@tanstack/react-query";
4
4
  import "react";
@@ -1,11 +1,11 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { a as g, Z as u, c7 as f, ch as _, ci as p, cj as x, a_ as h, cd as N } from "./index-CbuA4ZA9.js";
2
+ import { a as g, Z as u, c7 as f, ch as _, ci as p, cj as x, a_ as h, cd as N } from "./index-ZfyzcWgS.js";
3
3
  import "@tanstack/react-query";
4
4
  import { lazy as b, useMemo as t, Suspense as C } from "react";
5
- import { u as E } from "./hook-Cq9GaG7m.js";
5
+ import { u as E } from "./hook-DxwMFCWH.js";
6
6
  const L = {
7
7
  "org.bahmni.clinical.v2.search": b(
8
- () => import("./index-BnuqWMa_.js")
8
+ () => import("./index-C4WckLEf.js")
9
9
  )
10
10
  }, I = "index-module_page__16xxw", y = "index-module_loading__wNI-4", P = "index-module_message__Ib5Iw", l = {
11
11
  page: I,
@@ -1,5 +1,5 @@
1
1
  import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
- import { a as r, d8 as l, d9 as o, da as c, bw as m, bx as b, db as h, dc as g, dd as p, a_ as _ } from "./index-CbuA4ZA9.js";
2
+ import { a as r, d8 as l, d9 as o, da as c, bw as m, bx as b, db as h, dc as g, dd as p, a_ as _ } from "./index-ZfyzcWgS.js";
3
3
  import "@tanstack/react-query";
4
4
  import { Suspense as u } from "react";
5
5
  const E = "index-module_loading__eyE2k", $ = "index-module_message__95HmH", f = "index-module_panel__8VJh2", s = {
@@ -107269,7 +107269,7 @@ const $d0 = [
107269
107269
  },
107270
107270
  {
107271
107271
  type: "patientDocuments",
107272
- component: P0(() => import("./DocumentsTable-C6mSkdKj-DzQ5wlgz.js"))
107272
+ component: P0(() => import("./DocumentsTable-Cdjrw4yW-DoRY2hdp.js"))
107273
107273
  },
107274
107274
  {
107275
107275
  type: "flowSheet",
@@ -107277,7 +107277,7 @@ const $d0 = [
107277
107277
  },
107278
107278
  {
107279
107279
  type: "forms",
107280
- component: P0(() => import("./FormsTable-BlX4wnXs-B3ne9YMv.js"))
107280
+ component: P0(() => import("./FormsTable-hfP2wv7g-Am6W8ufO.js"))
107281
107281
  },
107282
107282
  {
107283
107283
  type: "labOrders",
@@ -107285,7 +107285,7 @@ const $d0 = [
107285
107285
  },
107286
107286
  {
107287
107287
  type: "observations",
107288
- component: P0(() => import("./Observations-C_-u3sfQ-wuWDPpnF.js"))
107288
+ component: P0(() => import("./Observations-B-dxdRlx-BEL5frvq.js"))
107289
107289
  },
107290
107290
  {
107291
107291
  type: "ordersControl",
@@ -203801,7 +203801,7 @@ var JDt = (t, e = !1) => {
203801
203801
  const e = M42(() => {
203802
203802
  const r = this, [n] = this.#n, [a] = this.#o, [l] = this.#a, [i] = this.#l, [c] = this.#h, [s] = this.#e;
203803
203803
  let d;
203804
- return this.#i ? d = this.#i : (d = E42(() => import("./LNWAZHJI-B_Ewz8QY.js")), this.#i = d), Z42(this.#p, this.#r), w42(d, v42({
203804
+ return this.#i ? d = this.#i : (d = E42(() => import("./LNWAZHJI-CjO-Fgpw.js")), this.#i = d), Z42(this.#p, this.#r), w42(d, v42({
203805
203805
  get queryFlavor() {
203806
203806
  return r.#d;
203807
203807
  },
@@ -203899,7 +203899,7 @@ var JDt = (t, e = !1) => {
203899
203899
  const e = M42(() => {
203900
203900
  const r = this, [n] = this.#n, [a] = this.#o, [l] = this.#a, [i] = this.#l, [c] = this.#h, [s] = this.#e, [d] = this.#i;
203901
203901
  let u;
203902
- return this.#c ? u = this.#c : (u = E42(() => import("./MWZ6AO7Z-DqvSpmLE.js")), this.#c = u), Z42(this.#p, this.#r), w42(u, v42({
203902
+ return this.#c ? u = this.#c : (u = E42(() => import("./MWZ6AO7Z-BDeQ6SkW.js")), this.#c = u), Z42(this.#p, this.#r), w42(u, v42({
203903
203903
  get queryFlavor() {
203904
203904
  return r.#d;
203905
203905
  },
@@ -204055,7 +204055,7 @@ const lTt = {
204055
204055
  id: "clinical-config",
204056
204056
  name: "Clinical Config",
204057
204057
  displayName: "ClinicalConfigProvider"
204058
- }), yTt = P0(() => import("./ConsultationPage-CrEOiNiT.js")), MTt = P0(() => import("./index-Df74Gur5.js")), VTt = [
204058
+ }), yTt = P0(() => import("./ConsultationPage-BjrUy4PW.js")), MTt = P0(() => import("./index-BILowQhQ.js")), VTt = [
204059
204059
  {
204060
204060
  path: ":patientUuid",
204061
204061
  component: yTt
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { de as e } from "./index-CbuA4ZA9.js";
1
+ import { de as e } from "./index-ZfyzcWgS.js";
2
2
  export {
3
3
  e 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.465",
3
+ "version": "0.0.1-dev.467",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",