@bahmni/clinical-app 0.0.1-dev.429 → 0.0.1-dev.432

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, V, E as ENCOUNTER_CONCEPTS_URL, G as Gr, B as wWt, I as As, J as BAHMNI_USER_LOCATION_COOKIE_NAME, L as Zm, M as up, g as g0, N as vb2, O as Eb2, P as mb2, T as Wx2, X as ll1, _ as pb2, a0 as r0, a1 as Vi, a2 as Yd, a3 as FE, a4 as zd, a5 as Os, a6 as dist, a7 as nt, a8 as we, a9 as as, aa as g_, ab as A_, ac as P_, ad as Vb2, ae as bb2, af as Rz2, z as z1, h as hp, ag as $_, ah as Fy2, ai as tb2, aj as jb2, ak as $b2, al as Ab2, d as dn1, am as sb, an as wb2, ao as Ob, ap as Ls, aq as ib, ar as Jb, as as R_, at as nb2, au as k_, av as F_, aw as CLINICAL_V2_CONFIG_BASE_URL, ax as B_, ay as c0, az as un, aA as j_, aB as w_, aC as Qb, aD as aL2, aE as cb, aF as H_, aG as z_, aH as ev, aI as ub2, aJ as hv, aK as m_, aL as Y_, aM as Rt, aN as Vr, aO as av, aP as dv, Z as Zr, aQ as Ib, aR as lb, aS as pb, $ as $Gt, aT as Pb2, aU as Fb2, aV as xb, aW as Cb, aX as yb2, aY as se, aZ as STOP_REASON_VALUESET_EXPAND_URL, a_ as Be, a$ as jE, b0 as STOP_REASON_VALUESET_TITLE, b1 as Df, b2 as rs, b3 as kb2, b4 as Db, b5 as kb, b6 as b0, b7 as h_, b8 as _0, b9 as cn, ba as N4, bb as c3, bc as Ob2, bd as JE, be as Lb, bf as Ub, bg as Fb, bh as qb, bi as ji, bj as os, bk as _b, bl as D_, bm as fv, bn as Xb, bo as Zb, bp as Wb, bq as CDSS_SERVER_CONFIG_URL, br as x_, bs as Yi, bt as Q0, bu as et, bv as fn1, bw as _b2, bx as Tw, by as bb, bz as vb, bA as hb2, bB as Xt, bC as Rb, bD as Sb, bE as Tb, bF as Xr1, bG as Gr1, bH as T0, bI as Ab, bJ as Ni, bK as xE, bL as BAHMNI_CLINICAL_PATH, bM as e0, bN as $w, bO as zb2, bP as Lb2, bQ as bz2, bR as X01, bS as ZE, bT as sn1 } from "./index-CAqfd32G.js";
2
+ import { u as useTranslation, V, E as ENCOUNTER_CONCEPTS_URL, G as Gr, B as wWt, I as As, J as BAHMNI_USER_LOCATION_COOKIE_NAME, L as Zm, M as up, g as g0, N as vb2, O as Eb2, P as mb2, T as Wx2, X as ll1, _ as pb2, a0 as r0, a1 as Vi, a2 as Yd, a3 as FE, a4 as zd, a5 as Os, a6 as dist, a7 as nt, a8 as we, a9 as as, aa as g_, ab as A_, ac as P_, ad as Vb2, ae as bb2, af as Rz2, z as z1, h as hp, ag as $_, ah as Fy2, ai as tb2, aj as jb2, ak as $b2, al as Ab2, d as dn1, am as sb, an as wb2, ao as Ob, ap as Ls, aq as ib, ar as Jb, as as R_, at as nb2, au as k_, av as F_, aw as CLINICAL_V2_CONFIG_BASE_URL, ax as B_, ay as c0, az as un, aA as j_, aB as w_, aC as Qb, aD as aL2, aE as cb, aF as H_, aG as z_, aH as ev, aI as ub2, aJ as hv, aK as m_, aL as Y_, aM as Rt, aN as Vr, aO as av, aP as dv, Z as Zr, aQ as Ib, aR as lb, aS as pb, $ as $Gt, aT as Pb2, aU as Fb2, aV as xb, aW as Cb, aX as yb2, aY as se, aZ as STOP_REASON_VALUESET_EXPAND_URL, a_ as Be, a$ as jE, b0 as STOP_REASON_VALUESET_TITLE, b1 as Df, b2 as rs, b3 as kb2, b4 as Db, b5 as kb, b6 as b0, b7 as h_, b8 as _0, b9 as cn, ba as N4, bb as c3, bc as Ob2, bd as JE, be as Lb, bf as Ub, bg as Fb, bh as qb, bi as ji, bj as os, bk as _b, bl as D_, bm as fv, bn as Xb, bo as Zb, bp as Wb, bq as CDSS_SERVER_CONFIG_URL, br as x_, bs as Yi, bt as Q0, bu as et, bv as fn1, bw as _b2, bx as Tw, by as bb, bz as vb, bA as hb2, bB as Xt, bC as Rb, bD as Sb, bE as Tb, bF as Xr1, bG as Gr1, bH as T0, bI as Ab, bJ as Ni, bK as xE, bL as BAHMNI_CLINICAL_PATH, bM as e0, bN as $w, bO as zb2, bP as Lb2, bQ as bz2, bR as X01, bS as ZE, bT as sn1 } from "./index-DPDLLGqw.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-CP6jOlzx.js";
7
+ import { u as useClinicalConfig } from "./hook-CtOTSK4T.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 : {};
@@ -134548,6 +134548,11 @@ Try polyfilling it using "@formatjs/intl-displaynames"
134548
134548
  _formatDate(u) {
134549
134549
  if (u) return `${u.getFullYear()}-${String(u.getMonth() + 1).padStart(2, "0")}-${String(u.getDate()).padStart(2, "0")}`;
134550
134550
  }
134551
+ _parseDate(u) {
134552
+ if (!u) return !1;
134553
+ const [A, m, y] = u.split("-").map(Number);
134554
+ return !!(A && m && y) && new globalThis.Date(A, m - 1, y);
134555
+ }
134551
134556
  _shouldValidateOnMount() {
134552
134557
  return !!this.props.formFieldPath && this._isCreateByAddMore();
134553
134558
  }
@@ -134566,7 +134571,7 @@ Try polyfilling it using "@formatjs/intl-displaynames"
134566
134571
  }
134567
134572
  render() {
134568
134573
  const { conceptUuid: u, label: A, enabled: m } = this.props;
134569
- return (0, ge.jsx)(Fa.DatePicker, { datePickerType: "single", dateFormat: "d-M-Y", value: this.props.value, onChange: (y) => this.handleChange(y), ref: (y) => {
134574
+ return (0, ge.jsx)(Fa.DatePicker, { datePickerType: "single", dateFormat: "d-M-Y", value: this.props.value, parseDate: (y) => this._parseDate(y), onChange: (y) => this.handleChange(y), ref: (y) => {
134570
134575
  this.datePickerRef = y;
134571
134576
  }, children: (0, ge.jsx)(Fa.DatePickerInput, { id: u, labelText: A, placeholder: "dd-Mmm-yyyy", size: "sm", disabled: !m, invalid: this.state.hasErrors, warn: this.state.hasWarnings }) });
134572
134577
  }
@@ -1,5 +1,5 @@
1
1
  import { jsx as r, jsxs as p, Fragment as Y } from "react/jsx-runtime";
2
- import { g as x, u as G, z as W, q as J, K as X, w as Z, Y as ee, p as te } from "./index-CAqfd32G.js";
2
+ import { g as x, u as G, z as W, q as J, K as X, w as Z, Y as ee, p as te } from "./index-DPDLLGqw.js";
3
3
  import { useQuery as ae } from "@tanstack/react-query";
4
4
  import { useState as l, useCallback as h, useEffect as I, useMemo as _ } from "react";
5
5
  const ne = "DocumentsTable-module_documentsTableBody__6iR3w", oe = "DocumentsTable-module_viewAttachmentsLink__aQ1on", re = "DocumentsTable-module_documentViewerContainer__F5m8D", de = "DocumentsTable-module_attachmentItem__17KA7", se = "DocumentsTable-module_attachmentCounter__WFiI3", me = "DocumentsTable-module_attachmentError__RI4U2", ce = "DocumentsTable-module_documentIframe__ptq5I", le = "DocumentsTable-module_documentImage__KQVgS", d = {
@@ -1,5 +1,5 @@
1
1
  import { jsx as n, jsxs as V, Fragment as ne } from "react/jsx-runtime";
2
- import { u as ie, g as de, h as le, Z as me, y as ue, W as ce, e as fe, a as ye, m as ge, f as he, $ as pe, R as Ne, w as Te, C as q, H as $, K as Oe, Y as K, F as Ie, j as be, p as Ee, v as _e, d as Ae } from "./index-CAqfd32G.js";
2
+ import { u as ie, g as de, h as le, Z as me, y as ue, W as ce, e as fe, a as ye, m as ge, f as he, $ as pe, R as Ne, w as Te, C as q, H as $, K as Oe, Y as K, F as Ie, j as be, p as Ee, v as _e, d as Ae } from "./index-DPDLLGqw.js";
3
3
  import { useQueryClient as ve, useQuery as E } from "@tanstack/react-query";
4
4
  import { useState as j, useMemo as i, useCallback as d } from "react";
5
5
  const Ce = "FormsTable-module_formsTableBody__SvGha", Fe = "FormsTable-module_modalHeading__wnTmA", Re = "FormsTable-module_customAccordianItem__isszs", p = {
@@ -1,5 +1,5 @@
1
- import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-DmBttDi5.js";
2
- import { bZ as d, b_ as f, b$ as e } from "./index-CAqfd32G.js";
1
+ import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-ORfK9qm2.js";
2
+ import { bZ as d, b_ as f, b$ as e } from "./index-DPDLLGqw.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-DmBttDi5.js";
2
- import { bZ as v, b_ as C, b$ as e } from "./index-CAqfd32G.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-ORfK9qm2.js";
2
+ import { bZ as v, b_ as C, b$ as e } from "./index-DPDLLGqw.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 o } from "react/jsx-runtime";
2
- import { g as x, z as M, u as U, b as j, y as G, U as H, c as Y, m as J, t as P, o as W, r as X, n as Z, i as ee, Y as ae, Q as se, k as V, l as re, s as te, w as ie, x as ne, A as oe, S as de, D as le } from "./index-CAqfd32G.js";
2
+ import { g as x, z as M, u as U, b as j, y as G, U as H, c as Y, m as J, t as P, o as W, r as X, n as Z, i as ee, Y as ae, Q as se, k as V, l as re, s as te, w as ie, x as ne, A as oe, S as de, D as le } from "./index-DPDLLGqw.js";
3
3
  import { useQueries as ce, useQuery as ue } from "@tanstack/react-query";
4
4
  import { useRef as me, useEffect as L, useMemo as E } from "react";
5
5
  const pe = "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 { c0 as we, c1 as z, c2 as xt, c3 as B, b_ as q, b$ as y, c4 as Ro, c5 as ye, c6 as R, c7 as _, c8 as k, c9 as N, ca as A, cb as bs, cc as ir, cd as $e, ce as G, cf as Hn, cg as Vn, ch as dt, ci as D, cj as xs, ck as cn, cl as Be, cm as ws, cn as qt, co as zt, cp as $s, cq as Cs, cr as $n, cs as Ss, ct as Nr, cu as Bt, cv as zo, cw as ks, cx as Es, cy as j, cz as Gr, cA as Ms, cB as Ds, cC as sr, cD as As, cE as Ts, cF as zn, cG as Fs, cH as Is, cI as Z, cJ as Ps, cK as Ls } from "./index-CAqfd32G.js";
1
+ import { c0 as we, c1 as z, c2 as xt, c3 as B, b_ as q, b$ as y, c4 as Ro, c5 as ye, c6 as R, c7 as _, c8 as k, c9 as N, ca as A, cb as bs, cc as ir, cd as $e, ce as G, cf as Hn, cg as Vn, ch as dt, ci as D, cj as xs, ck as cn, cl as Be, cm as ws, cn as qt, co as zt, cp as $s, cq as Cs, cr as $n, cs as Ss, ct as Nr, cu as Bt, cv as zo, cw as ks, cx as Es, cy as j, cz as Gr, cA as Ms, cB as Ds, cC as sr, cD as As, cE as Ts, cF as zn, cG as Fs, cH as Is, cI as Z, cJ as Ps, cK as Ls } from "./index-DPDLLGqw.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 { bX as i, bY as o } from "./index-CAqfd32G.js";
1
+ import { bX as i, bY as o } from "./index-DPDLLGqw.js";
2
2
  import "react";
3
3
  import "react/jsx-runtime";
4
4
  import "@tanstack/react-query";
@@ -98832,13 +98832,15 @@ H1(function({
98832
98832
  }), le.length > 0 && d({
98833
98833
  title: s("DOCUMENT_UPLOAD_INVALID_TYPE_TITLE"),
98834
98834
  message: s("DOCUMENT_UPLOAD_INVALID_TYPE_MESSAGE"),
98835
- type: "error"
98835
+ type: "error",
98836
+ timeout: 5e3
98836
98837
  }), J.length > 0 && d({
98837
98838
  title: s("DOCUMENT_UPLOAD_SIZE_EXCEEDED_TITLE"),
98838
98839
  message: s("DOCUMENT_UPLOAD_SIZE_EXCEEDED_MESSAGE", {
98839
98840
  size: p
98840
98841
  }),
98841
- type: "error"
98842
+ type: "error",
98843
+ timeout: 5e3
98842
98844
  }), ce.length > 0 && v((oe) => [...oe, ...ce]);
98843
98845
  }, F = ({ document: Y, url: ne }) => {
98844
98846
  const ce = g(Y);
@@ -115225,7 +115227,7 @@ const CA0 = [
115225
115227
  },
115226
115228
  {
115227
115229
  type: "patientDocuments",
115228
- component: Q0(() => import("./DocumentsTable-DWjMvJ6C-Zprq_O_p.js"))
115230
+ component: Q0(() => import("./DocumentsTable-DM3a085C-DuNV4D1F.js"))
115229
115231
  },
115230
115232
  {
115231
115233
  type: "flowSheet",
@@ -115233,7 +115235,7 @@ const CA0 = [
115233
115235
  },
115234
115236
  {
115235
115237
  type: "forms",
115236
- component: Q0(() => import("./FormsTable-B-Iv4X3R-DWJCmNzP.js"))
115238
+ component: Q0(() => import("./FormsTable-DWtk8gJI-DYnAv6bN.js"))
115237
115239
  },
115238
115240
  {
115239
115241
  type: "labOrders",
@@ -115241,7 +115243,7 @@ const CA0 = [
115241
115243
  },
115242
115244
  {
115243
115245
  type: "observations",
115244
- component: Q0(() => import("./Observations-C-GGEtZL-DWfY6XW9.js"))
115246
+ component: Q0(() => import("./Observations-zsrk4ocW-DgMMdnaV.js"))
115245
115247
  },
115246
115248
  {
115247
115249
  type: "ordersControl",
@@ -211338,7 +211340,7 @@ var ger = (t, e = !1) => {
211338
211340
  const e = jp2(() => {
211339
211341
  const r = this, [n] = this.#n, [a] = this.#o, [l] = this.#a, [c] = this.#l, [i] = this.#p, [s] = this.#e;
211340
211342
  let d;
211341
- return this.#c ? d = this.#c : (d = Pp2(() => import("./LNWAZHJI-DTtXMrw2.js")), this.#c = d), sf2(this.#h, this.#r), Ip2(d, Bp2({
211343
+ return this.#c ? d = this.#c : (d = Pp2(() => import("./LNWAZHJI-DKMcBvNf.js")), this.#c = d), sf2(this.#h, this.#r), Ip2(d, Bp2({
211342
211344
  get queryFlavor() {
211343
211345
  return r.#d;
211344
211346
  },
@@ -211436,7 +211438,7 @@ var ger = (t, e = !1) => {
211436
211438
  const e = jp2(() => {
211437
211439
  const r = this, [n] = this.#n, [a] = this.#o, [l] = this.#a, [c] = this.#l, [i] = this.#p, [s] = this.#e, [d] = this.#c;
211438
211440
  let u;
211439
- return this.#i ? u = this.#i : (u = Pp2(() => import("./MWZ6AO7Z-D-yzZyb_.js")), this.#i = u), sf2(this.#h, this.#r), Ip2(u, Bp2({
211441
+ return this.#i ? u = this.#i : (u = Pp2(() => import("./MWZ6AO7Z-voFpnA4T.js")), this.#i = u), sf2(this.#h, this.#r), Ip2(u, Bp2({
211440
211442
  get queryFlavor() {
211441
211443
  return r.#d;
211442
211444
  },
@@ -211592,7 +211594,7 @@ const kYt = {
211592
211594
  id: "clinical-config",
211593
211595
  name: "Clinical Config",
211594
211596
  displayName: "ClinicalConfigProvider"
211595
- }), XYt = Q0(() => import("./ConsultationPage-rHorm4mf.js")), QYt = Q0(() => import("./index-DUsA_YKD.js")), eJt = [
211597
+ }), XYt = Q0(() => import("./ConsultationPage-jbO0GQ5J.js")), QYt = Q0(() => import("./index-GS4561EE.js")), eJt = [
211596
211598
  {
211597
211599
  path: ":patientUuid",
211598
211600
  component: XYt
@@ -1,5 +1,5 @@
1
1
  import { jsxs as d, jsx as e } from "react/jsx-runtime";
2
- import { u as r, cL as l, cM as o, cN as c, ba as m, bb as g, cO as h, cP as p, cQ as b, aI as u } from "./index-CAqfd32G.js";
2
+ import { u as r, cL as l, cM as o, cN as c, ba as m, bb as g, cO as h, cP as p, cQ as b, aI as u } from "./index-DPDLLGqw.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", y = "index-module_panel__8VJh2", s = {
@@ -1,11 +1,11 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { u as g, Z as u, bK as b, bU as x, bV as f, bW as p, aI as _, bQ as N } from "./index-CAqfd32G.js";
2
+ import { u as g, Z as u, bK as b, bU as x, bV as f, bW as p, aI as _, bQ as N } from "./index-DPDLLGqw.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-CP6jOlzx.js";
5
+ import { u as C } from "./hook-CtOTSK4T.js";
6
6
  const L = {
7
7
  "org.bahmni.clinical.v2.search": h(
8
- () => import("./index-CnSpHfxb.js")
8
+ () => import("./index-DkUSQR8o.js")
9
9
  )
10
10
  }, v = "index-module_page__16xxw", I = "index-module_loading__wNI-4", y = "index-module_message__Ib5Iw", l = {
11
11
  page: v,
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { cR as c } from "./index-CAqfd32G.js";
1
+ import { cR as c } from "./index-DPDLLGqw.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.429",
3
+ "version": "0.0.1-dev.432",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",