@bahmni/clinical-app 0.0.1-dev.447 → 0.0.1-dev.448

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 { u as useTranslation, E as q, F as ENCOUNTER_CONCEPTS_URL, L as Jr, M as Yo, N as oqt, O as Ns, P as BAHMNI_USER_LOCATION_COOKIE_NAME, Q as bc, S as D3, d as d0, V as Vb2, T as Cb2, X as vb2, Z as jx2, $ as il1, a0 as ub2, a1 as U_, a2 as Wi, a3 as rf, a4 as b_, a5 as tf, a6 as Ps, a7 as dist, a8 as nt, a9 as ge, aa as us, ab as ob, ac as wb, ad as _b, ae as Lb2, af as Ab2, ag as ab2, ah as Bz2, z as z1, y as yp, ai as bb, aj as cg, ak as Tb, al as Uy2, am as cb2, an as qb2, ao as Tb2, ap as Db2, j as f21, aq as Sb, ar as vb, as as Rb, at as ev, au as Mb2, av as vv, aw as qs, ax as nv, ay as Wv, az as mb, aA as Ib, aB as Lb, aC as CLINICAL_V2_CONFIG_BASE_URL, aD as qb, aE as Y_, aF as fn, aG as Mb, aH as cb, aI as Jv, aJ as oL2, aK as sv, aL as Fb, aM as jb, aN as Zv, aO as gb2, aP as fT, aQ as sb, aR as Vb, aS as Rt, aT as Yr, aU as oT, aV as lT, k as kr, aW as $v, aX as av, aY as lv, f as bKt, aZ as Wb2, a_ as jb2, a$ as Dv, b0 as Cv, b1 as Nb2, b2 as se, b3 as STOP_REASON_VALUESET_EXPAND_URL, b4 as Be, b5 as T_, b6 as STOP_REASON_VALUESET_TITLE, b7 as Gf, b8 as os, b9 as Pb2, ba as Iv, bb as xv, bc as i0, bd as rb, be as a0, bf as dn, bg as N4, bh as c3, bi as Bb2, bj as C_, bk as Lv, bl as Mv, bm as Uv, bn as Fv, bo as Ki, bp as cs, bq as gv, br as Ab, bs as dT, bt as Qv, bu as Xv, bv as Kv, bw as CDSS_SERVER_CONFIG_URL, bx as Nb, by as ec, bz as M0, bA as Ge, bB as v21, bC as yb2, bD as XE, bE as yv, bF as Ev, bG as mb2, bH as Xt, bI as bv, bJ as _v, bK as wv, bL as r21, bM as Xn1, bN as u0, bO as Tv, bP as Mi, bQ as g_, bR as BAHMNI_CLINICAL_PATH, bS as k_, bT as cw, bU as bb2, bV as _b2, bW as $z2, bX as rn1, bY as x_, bZ as u21 } from "./index-D55J9ZZ_.js";
2
+ import { u as useTranslation, E as q, F as ENCOUNTER_CONCEPTS_URL, L as Jr, M as Yo, N as oqt, O as Ns, P as BAHMNI_USER_LOCATION_COOKIE_NAME, Q as bc, S as D3, d as d0, V as Vb2, T as Cb2, X as vb2, Z as jx2, $ as il1, a0 as ub2, a1 as U_, a2 as Wi, a3 as rf, a4 as b_, a5 as tf, a6 as Ps, a7 as dist, a8 as nt, a9 as ge, aa as us, ab as ob, ac as wb, ad as _b, ae as Lb2, af as Ab2, ag as ab2, ah as Bz2, z as z1, y as yp, ai as bb, aj as cg, ak as Tb, al as Uy2, am as cb2, an as qb2, ao as Tb2, ap as Db2, j as f21, aq as Sb, ar as vb, as as Rb, at as ev, au as Mb2, av as vv, aw as qs, ax as nv, ay as Wv, az as mb, aA as Ib, aB as Lb, aC as CLINICAL_V2_CONFIG_BASE_URL, aD as qb, aE as Y_, aF as fn, aG as Mb, aH as cb, aI as Jv, aJ as oL2, aK as sv, aL as Fb, aM as jb, aN as Zv, aO as gb2, aP as fT, aQ as sb, aR as Vb, aS as Rt, aT as Yr, aU as oT, aV as lT, k as kr, aW as $v, aX as av, aY as lv, f as bKt, aZ as Wb2, a_ as jb2, a$ as Dv, b0 as Cv, b1 as Nb2, b2 as se, b3 as STOP_REASON_VALUESET_EXPAND_URL, b4 as Be, b5 as T_, b6 as STOP_REASON_VALUESET_TITLE, b7 as Gf, b8 as os, b9 as Pb2, ba as Iv, bb as xv, bc as i0, bd as rb, be as a0, bf as dn, bg as N4, bh as c3, bi as Bb2, bj as C_, bk as Lv, bl as Mv, bm as Uv, bn as Fv, bo as Ki, bp as cs, bq as gv, br as Ab, bs as dT, bt as Qv, bu as Xv, bv as Kv, bw as CDSS_SERVER_CONFIG_URL, bx as Nb, by as ec, bz as M0, bA as Ge, bB as v21, bC as yb2, bD as XE, bE as yv, bF as Ev, bG as mb2, bH as Xt, bI as bv, bJ as _v, bK as wv, bL as r21, bM as Xn1, bN as u0, bO as Tv, bP as Mi, bQ as g_, bR as BAHMNI_CLINICAL_PATH, bS as k_, bT as cw, bU as bb2, bV as _b2, bW as $z2, bX as rn1, bY as x_, bZ as u21 } from "./index-BFeX1vte.js";
3
3
  import * as React from "react";
4
4
  import React__default, { createContext, useContext, useState, useCallback, useEffect, useMemo, Children, useRef, useLayoutEffect, forwardRef, isValidElement, cloneElement, useReducer, Component, useImperativeHandle, PureComponent, createRef, useSyncExternalStore, Suspense } from "react";
5
5
  import { useQuery, useQueries, useQueryClient } from "@tanstack/react-query";
6
6
  import { useNavigate, useSearchParams } from "react-router-dom";
7
- import { u as useClinicalConfig } from "./hook-7pVcFUSM.js";
7
+ import { u as useClinicalConfig } from "./hook-CLdRoLd-.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 : {};
@@ -134582,7 +134582,7 @@ Try polyfilling it using "@formatjs/intl-displaynames"
134582
134582
  }
134583
134583
  _parseDate(u) {
134584
134584
  if (!u) return !1;
134585
- const [A, m, y] = u.split("-").map(Number);
134585
+ const [A, m, y] = u.split(/[ T]/)[0].split("-").map(Number);
134586
134586
  return !!(A && m && y) && new globalThis.Date(A, m - 1, y);
134587
134587
  }
134588
134588
  _shouldValidateOnMount() {
@@ -134603,7 +134603,7 @@ Try polyfilling it using "@formatjs/intl-displaynames"
134603
134603
  }
134604
134604
  render() {
134605
134605
  const { conceptUuid: u, label: A, enabled: m } = this.props;
134606
- return (0, ve.jsx)(za.DatePicker, { datePickerType: "single", dateFormat: "d-M-Y", value: this.props.value, parseDate: (y) => this._parseDate(y), onChange: (y) => this.handleChange(y), ref: (y) => {
134606
+ return (0, ve.jsx)(za.DatePicker, { datePickerType: "single", dateFormat: "d-M-Y", value: this._parseDate(this.props.value) || "", parseDate: (y) => this._parseDate(y), onChange: (y) => this.handleChange(y), ref: (y) => {
134607
134607
  this.datePickerRef = y;
134608
134608
  }, children: (0, ve.jsx)(za.DatePickerInput, { id: u, labelText: A, placeholder: "dd-Mmm-yyyy", size: "sm", disabled: !m, invalid: this.state.hasErrors, warn: this.state.hasWarnings }) });
134609
134609
  }
@@ -1,5 +1,5 @@
1
1
  import { jsx as d, jsxs as h, Fragment as Y } from "react/jsx-runtime";
2
- import { d as x, u as G, z as J, J as W, Y as X, h as Z, I as ee, a as te } from "./index-D55J9ZZ_.js";
2
+ import { d as x, u as G, z as J, J as W, Y as X, h as Z, I as ee, a as te } from "./index-BFeX1vte.js";
3
3
  import { useQuery as ae } from "@tanstack/react-query";
4
4
  import { useState as l, useCallback as _, useEffect as D, useMemo as p } from "react";
5
5
  const ne = "DocumentsTable-module_documentsTableBody__6iR3w", oe = "DocumentsTable-module_viewAttachmentsLink__aQ1on", de = "DocumentsTable-module_documentViewerContainer__F5m8D", re = "DocumentsTable-module_attachmentItem__17KA7", se = "DocumentsTable-module_attachmentCounter__WFiI3", me = "DocumentsTable-module_attachmentError__RI4U2", ce = "DocumentsTable-module_documentIframe__ptq5I", le = "DocumentsTable-module_documentImage__KQVgS", r = {
@@ -1,5 +1,5 @@
1
1
  import { jsx as n, jsxs as q, Fragment as ne } from "react/jsx-runtime";
2
- import { u as ie, d as de, y as le, k as me, H as ue, b as ce, m as fe, c as ye, w as he, e as Ne, f as ge, R as Te, h as pe, g as V, i as z, Y as Ie, I as K, U as Oe, W as be, a as Ae, A as Ee, j as _e } from "./index-D55J9ZZ_.js";
2
+ import { u as ie, d as de, y as le, k as me, H as ue, b as ce, m as fe, c as ye, w as he, e as Ne, f as ge, R as Te, h as pe, g as V, i as z, Y as Ie, I as K, U as Oe, W as be, a as Ae, A as Ee, j as _e } from "./index-BFeX1vte.js";
3
3
  import { useQueryClient as Re, useQuery as A } from "@tanstack/react-query";
4
4
  import { useState as Y, useMemo as i, useCallback as d } from "react";
5
5
  const Ce = "FormsTable-module_formsTableBody__SvGha", ve = "FormsTable-module_modalHeading__wnTmA", Le = "FormsTable-module_customAccordianItem__isszs", g = {
@@ -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-CT8kPSH3.js";
2
- import { c3 as d, c4 as f, c5 as e } from "./index-D55J9ZZ_.js";
1
+ import { c as s, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-TN6fy-3B.js";
2
+ import { c3 as d, c4 as f, c5 as e } from "./index-BFeX1vte.js";
3
3
  var p = (a) => {
4
4
  const [r, t] = 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-CT8kPSH3.js";
2
- import { c3 as v, c4 as C, c5 as e } from "./index-D55J9ZZ_.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-TN6fy-3B.js";
2
+ import { c3 as v, c4 as C, c5 as e } from "./index-BFeX1vte.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 I, jsx as n } from "react/jsx-runtime";
2
- import { d as H, z as Q, u as V, q as x, H as M, K as j, G as Y, w as J, l as P, n as W, o as X, s as Z, p as ee, I as ae, r as se, _ as B, t as te, v as re, h as ie, x as oe, B as ne, C as de, D as le } from "./index-D55J9ZZ_.js";
2
+ import { d as H, z as Q, u as V, q as x, H as M, K as j, G as Y, w as J, l as P, n as W, o as X, s as Z, p as ee, I as ae, r as se, _ as B, t as te, v as re, h as ie, x as oe, B as ne, C as de, D as le } from "./index-BFeX1vte.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 { c6 as we, c7 as z, c8 as xt, c9 as B, c4 as q, c5 as y, ca as Ro, cb as ye, cc as R, cd as _, ce as k, cf as N, cg as A, ch as bs, ci as ir, cj as $e, ck as G, cl as Hn, cm as Vn, cn as dt, co as D, cp as xs, cq as cn, cr as Be, cs as ws, ct as qt, cu as zt, cv as $s, cw as Cs, cx as $n, cy as Ss, cz as Nr, cA as Bt, cB as zo, cC as ks, cD as Es, cE as j, cF as Gr, cG as Ms, cH as Ds, cI as sr, cJ as As, cK as Ts, cL as zn, cM as Fs, cN as Is, cO as Z, cP as Ps, cQ as Ls } from "./index-D55J9ZZ_.js";
1
+ import { c6 as we, c7 as z, c8 as xt, c9 as B, c4 as q, c5 as y, ca as Ro, cb as ye, cc as R, cd as _, ce as k, cf as N, cg as A, ch as bs, ci as ir, cj as $e, ck as G, cl as Hn, cm as Vn, cn as dt, co as D, cp as xs, cq as cn, cr as Be, cs as ws, ct as qt, cu as zt, cv as $s, cw as Cs, cx as $n, cy as Ss, cz as Nr, cA as Bt, cB as zo, cC as ks, cD as Es, cE as j, cF as Gr, cG as Ms, cH as Ds, cI as sr, cJ as As, cK as Ts, cL as zn, cM as Fs, cN as Is, cO as Z, cP as Ps, cQ as Ls } from "./index-BFeX1vte.js";
2
2
  var Os = (e) => e != null, qs = (e) => e.filter(Os);
3
3
  function _s(e) {
4
4
  return (...t) => {
@@ -1,4 +1,4 @@
1
- import { c1 as i, c2 as o } from "./index-D55J9ZZ_.js";
1
+ import { c1 as i, c2 as o } from "./index-BFeX1vte.js";
2
2
  import "react";
3
3
  import "react/jsx-runtime";
4
4
  import "@tanstack/react-query";
@@ -115270,7 +115270,7 @@ const wL0 = [
115270
115270
  },
115271
115271
  {
115272
115272
  type: "patientDocuments",
115273
- component: P0(() => import("./DocumentsTable-EFrvR1Y7-tXV7q-PK.js"))
115273
+ component: P0(() => import("./DocumentsTable-EFrvR1Y7-BKuoI2cG.js"))
115274
115274
  },
115275
115275
  {
115276
115276
  type: "flowSheet",
@@ -115278,7 +115278,7 @@ const wL0 = [
115278
115278
  },
115279
115279
  {
115280
115280
  type: "forms",
115281
- component: P0(() => import("./FormsTable-Bbqg3PV1-VaHzlRhK.js"))
115281
+ component: P0(() => import("./FormsTable-Bbqg3PV1-RpMYAmgW.js"))
115282
115282
  },
115283
115283
  {
115284
115284
  type: "labOrders",
@@ -115286,7 +115286,7 @@ const wL0 = [
115286
115286
  },
115287
115287
  {
115288
115288
  type: "observations",
115289
- component: P0(() => import("./Observations-CJiVrL61-RK-7MwzS.js"))
115289
+ component: P0(() => import("./Observations-CJiVrL61-CR1IdNul.js"))
115290
115290
  },
115291
115291
  {
115292
115292
  type: "ordersControl",
@@ -211402,7 +211402,7 @@ var p1r = (t, e = !1) => {
211402
211402
  const e = nf2(() => {
211403
211403
  const r = this, [n] = this.#n, [a] = this.#o, [l] = this.#a, [c] = this.#l, [i] = this.#p, [s] = this.#e;
211404
211404
  let d;
211405
- return this.#c ? d = this.#c : (d = tf2(() => import("./LNWAZHJI-CsYwtu0m.js")), this.#c = d), Vf2(this.#h, this.#r), Qp2(d, ef2({
211405
+ return this.#c ? d = this.#c : (d = tf2(() => import("./LNWAZHJI-CNf-bdba.js")), this.#c = d), Vf2(this.#h, this.#r), Qp2(d, ef2({
211406
211406
  get queryFlavor() {
211407
211407
  return r.#d;
211408
211408
  },
@@ -211500,7 +211500,7 @@ var p1r = (t, e = !1) => {
211500
211500
  const e = nf2(() => {
211501
211501
  const r = this, [n] = this.#n, [a] = this.#o, [l] = this.#a, [c] = this.#l, [i] = this.#p, [s] = this.#e, [d] = this.#c;
211502
211502
  let u;
211503
- return this.#i ? u = this.#i : (u = tf2(() => import("./MWZ6AO7Z-DCUvS7R4.js")), this.#i = u), Vf2(this.#h, this.#r), Qp2(u, ef2({
211503
+ return this.#i ? u = this.#i : (u = tf2(() => import("./MWZ6AO7Z-rVu9ST9A.js")), this.#i = u), Vf2(this.#h, this.#r), Qp2(u, ef2({
211504
211504
  get queryFlavor() {
211505
211505
  return r.#d;
211506
211506
  },
@@ -211656,7 +211656,7 @@ const CJt = {
211656
211656
  id: "clinical-config",
211657
211657
  name: "Clinical Config",
211658
211658
  displayName: "ClinicalConfigProvider"
211659
- }), FJt = P0(() => import("./ConsultationPage-D4mF9cIN.js")), jJt = P0(() => import("./index-D4OKqkyN.js")), qJt = [
211659
+ }), FJt = P0(() => import("./ConsultationPage-BpTb46Kb.js")), jJt = P0(() => import("./index-HM3epYoK.js")), qJt = [
211660
211660
  {
211661
211661
  path: ":patientUuid",
211662
211662
  component: FJt
@@ -1,11 +1,11 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { u as g, k as u, bQ as b, b_ as f, b$ as _, c0 as p, aO as x, bW as N } from "./index-D55J9ZZ_.js";
2
+ import { u as g, k as u, bQ as b, b_ as f, b$ as _, c0 as p, aO as x, bW as N } from "./index-BFeX1vte.js";
3
3
  import { lazy as h, useMemo as t, Suspense as E } from "react";
4
4
  import "@tanstack/react-query";
5
- import { u as C } from "./hook-7pVcFUSM.js";
5
+ import { u as C } from "./hook-CLdRoLd-.js";
6
6
  const L = {
7
7
  "org.bahmni.clinical.v2.search": h(
8
- () => import("./index-rnhE4hbp.js")
8
+ () => import("./index-pvuFgDmr.js")
9
9
  )
10
10
  }, I = "index-module_page__16xxw", O = "index-module_loading__wNI-4", P = "index-module_message__Ib5Iw", l = {
11
11
  page: I,
@@ -1,5 +1,5 @@
1
1
  import { jsxs as d, jsx as e } from "react/jsx-runtime";
2
- import { u as r, cR as l, cS as o, cT as c, bg as m, bh as g, cU as b, cV as h, cW as p, aO as u } from "./index-D55J9ZZ_.js";
2
+ import { u as r, cR as l, cS as o, cT as c, bg as m, bh as g, cU as b, cV as h, cW as p, aO as u } from "./index-BFeX1vte.js";
3
3
  import { Suspense as _ } from "react";
4
4
  import "@tanstack/react-query";
5
5
  const E = "index-module_loading__eyE2k", $ = "index-module_message__95HmH", S = "index-module_panel__8VJh2", s = {
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { cX as c } from "./index-D55J9ZZ_.js";
1
+ import { cX as c } from "./index-BFeX1vte.js";
2
2
  export {
3
3
  c 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.447",
3
+ "version": "0.0.1-dev.448",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",