@bahmni/clinical-app 0.0.1-dev.459 → 0.0.1-dev.460

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, H as U, M as ENCOUNTER_CONCEPTS_URL, P as Qr, S as Ko, _ as sAt, a0 as Is, a1 as BAHMNI_USER_LOCATION_COOKIE_NAME, a2 as Rc, a3 as Dd, u as un, a4 as bb2, a5 as Ab2, a6 as _b2, a7 as GL2, a8 as hl1, a9 as Hb2, aa as z_, ab as Zi, ac as uf, ad as N_, ae as cf, af as $s, ag as dist, ah as nt, ai as me, aj as ls, ak as pb, al as Ob, am as Ab, an as $b2, ao as Bb2, ap as db2, aq as Fz2, z as zr, i as i6, ar as Pb, as as mg, at as $b, au as eb2, av as hb2, aw as rN2, ax as Pb2, ay as Ib2, y as yZt, az as Ib, aA as Nb, aB as Cb, aC as iv, aD as zb2, aE as Nv, aF as Vs, aG as lv, aH as rT, aI as Tb, aJ as Ub, aK as jb, aL as CLINICAL_V2_CONFIG_BASE_URL, aM as Gb, aN as Z_, aO as pn, aP as Bb, aQ as gb, aR as nT, aS as sx2, aT as dv, aU as zb, aV as Kb, aW as aT, aX as Lb2, aY as _T, aZ as fb, a_ as Wb, a$ as Ot, b0 as zr$1, b1 as pT, b2 as ET, b3 as rZt, b4 as Pw, b5 as INe, b6 as gT, b7 as nZt, Z as Z1, b8 as kv, b9 as pv, ba as yv, A as Azt, bb as Xb2, bc as Qb2, bd as qv, be as Fv, bf as Zb2, bg as se, bh as STOP_REASON_VALUESET_EXPAND_URL, bi as Ye, bj as I_, bk as STOP_REASON_VALUESET_TITLE, bl as Zf, bm as as, bn as Yb2, bo as Uv, bp as Vv, bq as m0, br as lb, bs as h0, bt as fn, bu as A4, bv as c3, bw as qb2, bx as q_, by as Ks, bz as jv, bA as Bv, bB as Yv, bC as zv, bD as Xi, bE as us, bF as Tv, bG as Lb, bH as wT, bI as sT, bJ as oT, bK as tT, bL as CDSS_SERVER_CONFIG_URL, bM as Mb, bN as sc, bO as Y0, bP as Ke, bQ as HZt, bR as Rb2, bS as ow, bT as Sv, bU as Rv, bV as Cb2, bW as e6, bX as Pv, bY as Av, bZ as Ov, b_ as lZt, b$ as eZt, c0 as y0, c1 as $v, c2 as ji, c3 as S_, c4 as BAHMNI_CLINICAL_PATH, c5 as B_, c6 as mw, c7 as Ob2, c8 as Tb2, c9 as Rz2, ca as akt, cb as H_, cc as wZt } from "./index-k-BDWW2Q.js";
2
+ import { a as useTranslation, H as U, M as ENCOUNTER_CONCEPTS_URL, P as Qr, S as Ko, _ as sAt, a0 as Is, a1 as BAHMNI_USER_LOCATION_COOKIE_NAME, a2 as Rc, a3 as Dd, u as un, a4 as bb2, a5 as Ab2, a6 as _b2, a7 as GL2, a8 as hl1, a9 as Hb2, aa as z_, ab as Zi, ac as uf, ad as N_, ae as cf, af as $s, ag as dist, ah as nt, ai as me, aj as ls, ak as pb, al as Ob, am as Ab, an as $b2, ao as Bb2, ap as db2, aq as Fz2, z as zr, i as i6, ar as Pb, as as mg, at as $b, au as eb2, av as hb2, aw as rN2, ax as Pb2, ay as Ib2, y as yZt, az as Ib, aA as Nb, aB as Cb, aC as iv, aD as zb2, aE as Nv, aF as Vs, aG as lv, aH as rT, aI as Tb, aJ as Ub, aK as jb, aL as CLINICAL_V2_CONFIG_BASE_URL, aM as Gb, aN as Z_, aO as pn, aP as Bb, aQ as gb, aR as nT, aS as sx2, aT as dv, aU as zb, aV as Kb, aW as aT, aX as Lb2, aY as _T, aZ as fb, a_ as Wb, a$ as Ot, b0 as zr$1, b1 as pT, b2 as ET, b3 as rZt, b4 as Pw, b5 as INe, b6 as gT, b7 as nZt, Z as Z1, b8 as kv, b9 as pv, ba as yv, A as Azt, bb as Xb2, bc as Qb2, bd as qv, be as Fv, bf as Zb2, bg as se, bh as STOP_REASON_VALUESET_EXPAND_URL, bi as Ye, bj as I_, bk as STOP_REASON_VALUESET_TITLE, bl as Zf, bm as as, bn as Yb2, bo as Uv, bp as Vv, bq as m0, br as lb, bs as h0, bt as fn, bu as A4, bv as c3, bw as qb2, bx as q_, by as Ks, bz as jv, bA as Bv, bB as Yv, bC as zv, bD as Xi, bE as us, bF as Tv, bG as Lb, bH as wT, bI as sT, bJ as oT, bK as tT, bL as CDSS_SERVER_CONFIG_URL, bM as Mb, bN as sc, bO as Y0, bP as Ke, bQ as HZt, bR as Rb2, bS as ow, bT as Sv, bU as Rv, bV as Cb2, bW as e6, bX as Pv, bY as Av, bZ as Ov, b_ as lZt, b$ as eZt, c0 as y0, c1 as $v, c2 as ji, c3 as S_, c4 as BAHMNI_CLINICAL_PATH, c5 as B_, c6 as mw, c7 as Ob2, c8 as Tb2, c9 as Rz2, ca as akt, cb as H_, cc as wZt } from "./index-CymxuBG-.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-dom";
7
- import { u as useClinicalConfig } from "./hook-BrMn2rwL.js";
7
+ import { u as useClinicalConfig } from "./hook-PExbaFoV.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 : {};
@@ -143649,11 +143649,11 @@ registerInputControl({
143649
143649
  validate: () => useDocumentsStore.getState().validateAll(),
143650
143650
  hasData: () => useDocumentsStore.getState().hasData(),
143651
143651
  subscribe: (p) => useDocumentsStore.subscribe(p),
143652
- prepareBundleEntries: () => useDocumentsStore.getState().uploadPendingFiles(),
143653
- getSubmissionWarning: () => useDocumentsStore.getState().hasFailedUploads() ? {
143654
- title: "DOCUMENTS_NOT_SAVED_TITLE",
143655
- message: "DOCUMENTS_NOT_SAVED_MESSAGE"
143656
- } : void 0,
143652
+ prepareBundleEntries: async () => {
143653
+ const { uploadPendingFiles: p, hasFailedUploads: c } = useDocumentsStore.getState();
143654
+ if (await p(), c())
143655
+ throw new Error("DOCUMENTS_NOT_SAVED_MESSAGE");
143656
+ },
143657
143657
  createBundleEntries: (p) => createDocumentBundleEntries({
143658
143658
  entries: useDocumentsStore.getState().entries,
143659
143659
  encounterSubject: p.encounterSubject,
@@ -1,5 +1,5 @@
1
1
  import { jsx as n, jsxs as h, Fragment as _e } from "react/jsx-runtime";
2
- import { u as pe, a as Ee, z as ge, i as Ce, Q as Ne, w as Ie, T as v, b as Ae, c as be, K as fe, h as Le, O as ye, d as De, U as Q, J as ve, L as we, I as Oe, e as Se, N as Ue, X as J, G as ee } from "./index-k-BDWW2Q.js";
2
+ import { u as pe, a as Ee, z as ge, i as Ce, Q as Ne, w as Ie, T as v, b as Ae, c as be, K as fe, h as Le, O as ye, d as De, U as Q, J as ve, L as we, I as Oe, e as Se, N as Ue, X as J, G as ee } from "./index-CymxuBG-.js";
3
3
  import { useQuery as Me } from "@tanstack/react-query";
4
4
  import { useState as T, useRef as Re, useEffect as E, useMemo as g, useCallback as _ } from "react";
5
5
  const ke = "DocumentsTable-module_documentsTableBody__6iR3w", $e = "DocumentsTable-module_viewAttachmentsLink__aQ1on", He = "DocumentsTable-module_documentViewerContainer__F5m8D", Be = "DocumentsTable-module_printContainer__rtarJ", Ge = "DocumentsTable-module_attachmentItem__17KA7", ze = "DocumentsTable-module_attachmentCounter__WFiI3", Ve = "DocumentsTable-module_attachmentError__RI4U2", We = "DocumentsTable-module_documentIframe__ptq5I", Fe = "DocumentsTable-module_attachmentContent__IaCEe", xe = "DocumentsTable-module_attachmentLoading__FAR6p", qe = "DocumentsTable-module_hiddenWhileLoading__IxocW", Ke = "DocumentsTable-module_documentImage__KQVgS", Pe = "DocumentsTable-module_header__345GY", je = "DocumentsTable-module_documentTypeCell__uWGM8", Qe = "DocumentsTable-module_printAllButton__IVYUW", Je = "DocumentsTable-module_attachmentHeader__yI2xn", o = {
@@ -1,5 +1,5 @@
1
1
  import { jsx as n, jsxs as q, Fragment as ne } from "react/jsx-runtime";
2
- import { a as ie, u as de, i as le, Z as me, V as ue, f as ce, g as fe, j as ye, w as Ne, $ as he, A as ge, R as Te, h as Ie, U as H, k as K, K as Oe, I as $, W as pe, l as be, e as Ae, m as Ee, y as _e } from "./index-k-BDWW2Q.js";
2
+ import { a as ie, u as de, i as le, Z as me, V as ue, f as ce, g as fe, j as ye, w as Ne, $ as he, A as ge, R as Te, h as Ie, U as H, k as K, K as Oe, I as $, W as pe, l as be, e as Ae, m as Ee, y as _e } from "./index-CymxuBG-.js";
3
3
  import { useQueryClient as Re, useQuery as A } from "@tanstack/react-query";
4
4
  import { useState as j, useMemo as i, useCallback as d } from "react";
5
5
  const ve = "FormsTable-module_formsTableBody__SvGha", Ce = "FormsTable-module_modalHeading__wnTmA", Ue = "FormsTable-module_customAccordianItem__isszs", g = {
@@ -1,5 +1,5 @@
1
- import { c as s, T as l, P as m, a as i, D as u, Q as v } from "./YPM2AS64-CThsJ55v.js";
2
- import { ci as d, cj as f, ck as e } from "./index-k-BDWW2Q.js";
1
+ import { c as s, T as l, P as m, a as i, D as u, Q as v } from "./YPM2AS64-DtZn-EiK.js";
2
+ import { ci as d, cj as f, ck as e } from "./index-CymxuBG-.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 i, a as u, b as m, C as P, Q as d } from "./YPM2AS64-CThsJ55v.js";
2
- import { ci as v, cj as C, ck as e } from "./index-k-BDWW2Q.js";
1
+ import { c as s, T as c, P as i, a as u, b as m, C as P, Q as d } from "./YPM2AS64-DtZn-EiK.js";
2
+ import { ci as v, cj as C, ck as e } from "./index-CymxuBG-.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 V, n as M, V as G, o as H, Y, w as j, p as J, q as P, r as W, s as X, d as ee, I as ae, t as se, v as B, x as te, B as re, h as ie, C as oe, D as ne, E as de, F as le } from "./index-k-BDWW2Q.js";
2
+ import { u as z, z as Q, a as V, n as M, V as G, o as H, Y, w as j, p as J, q as P, r as W, s as X, d as ee, I as ae, t as se, v as B, x as te, B as re, h as ie, C as oe, D as ne, E as de, F as le } from "./index-CymxuBG-.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 { cl as we, cm as z, cn as xt, co as B, cj as q, ck as y, cp as Ro, cq as ye, cr as R, cs as _, ct as k, cu as N, cv as A, cw as bs, cx as ir, cy as $e, cz as U, cA as Hn, cB as Vn, cC as dt, cD as D, cE as xs, cF as cn, cG as Be, cH as ws, cI as qt, cJ as zt, cK as $s, cL as Cs, cM as $n, cN as Ss, cO as Nr, cP as Bt, cQ as zo, cR as ks, cS as Es, cT as j, cU as Ur, cV as Ms, cW as Ds, cX as sr, cY as As, cZ as Ts, c_ as zn, c$ as Fs, d0 as Is, d1 as Z, d2 as Ps, d3 as Ls } from "./index-k-BDWW2Q.js";
1
+ import { cl as we, cm as z, cn as xt, co as B, cj as q, ck as y, cp as Ro, cq as ye, cr as R, cs as _, ct as k, cu as N, cv as A, cw as bs, cx as ir, cy as $e, cz as U, cA as Hn, cB as Vn, cC as dt, cD as D, cE as xs, cF as cn, cG as Be, cH as ws, cI as qt, cJ as zt, cK as $s, cL as Cs, cM as $n, cN as Ss, cO as Nr, cP as Bt, cQ as zo, cR as ks, cS as Es, cT as j, cU as Ur, cV as Ms, cW as Ds, cX as sr, cY as As, cZ as Ts, c_ as zn, c$ as Fs, d0 as Is, d1 as Z, d2 as Ps, d3 as Ls } from "./index-CymxuBG-.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 { cg as i, ch as o } from "./index-k-BDWW2Q.js";
1
+ import { cg as i, ch as o } from "./index-CymxuBG-.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, c3 as f, cd as p, ce as x, cf as _, aX as N, c9 as b } from "./index-k-BDWW2Q.js";
2
+ import { a as g, Z as u, c3 as f, cd as p, ce as x, cf as _, aX as N, c9 as b } from "./index-CymxuBG-.js";
3
3
  import "@tanstack/react-query";
4
4
  import { lazy as h, useMemo as t, Suspense as L } from "react";
5
- import { u as C } from "./hook-BrMn2rwL.js";
5
+ import { u as C } from "./hook-PExbaFoV.js";
6
6
  const E = {
7
7
  "org.bahmni.clinical.v2.search": h(
8
- () => import("./index-p_S0LS2P.js")
8
+ () => import("./index-Cj30jaBG.js")
9
9
  )
10
10
  }, P = "index-module_page__16xxw", S = "index-module_loading__wNI-4", I = "index-module_message__Ib5Iw", l = {
11
11
  page: P,
@@ -1,5 +1,5 @@
1
1
  import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
- import { a as r, d4 as l, d5 as o, d6 as c, bu as m, bv as b, d7 as g, d8 as p, d9 as h, aX as u } from "./index-k-BDWW2Q.js";
2
+ import { a as r, d4 as l, d5 as o, d6 as c, bu as m, bv as b, d7 as g, d8 as p, d9 as h, aX as u } from "./index-CymxuBG-.js";
3
3
  import "@tanstack/react-query";
4
4
  import { Suspense as _ } from "react";
5
5
  const E = "index-module_loading__eyE2k", $ = "index-module_message__95HmH", f = "index-module_panel__8VJh2", s = {
@@ -107329,7 +107329,7 @@ const Dd0 = [
107329
107329
  },
107330
107330
  {
107331
107331
  type: "patientDocuments",
107332
- component: P0(() => import("./DocumentsTable-CIFLmXxN-DyDkB-Q6.js"))
107332
+ component: P0(() => import("./DocumentsTable-CIFLmXxN-D2_KTdd8.js"))
107333
107333
  },
107334
107334
  {
107335
107335
  type: "flowSheet",
@@ -107337,7 +107337,7 @@ const Dd0 = [
107337
107337
  },
107338
107338
  {
107339
107339
  type: "forms",
107340
- component: P0(() => import("./FormsTable-VESfRLut-BpNcNfM4.js"))
107340
+ component: P0(() => import("./FormsTable-VESfRLut-lMNwe9BR.js"))
107341
107341
  },
107342
107342
  {
107343
107343
  type: "labOrders",
@@ -107345,7 +107345,7 @@ const Dd0 = [
107345
107345
  },
107346
107346
  {
107347
107347
  type: "observations",
107348
- component: P0(() => import("./Observations-D8l6VsZ7-5jZG4DmQ.js"))
107348
+ component: P0(() => import("./Observations-D8l6VsZ7-CZZ_rBX1.js"))
107349
107349
  },
107350
107350
  {
107351
107351
  type: "ordersControl",
@@ -203812,7 +203812,7 @@ var WDt = (t, e = !1) => {
203812
203812
  const e = w42(() => {
203813
203813
  const r = this, [n] = this.#n, [a] = this.#o, [l] = this.#a, [i] = this.#l, [c] = this.#h, [s] = this.#e;
203814
203814
  let d;
203815
- return this.#i ? d = this.#i : (d = m42(() => import("./LNWAZHJI-CGV-xA3d.js")), this.#i = d), R42(this.#p, this.#r), h42(d, f42({
203815
+ return this.#i ? d = this.#i : (d = m42(() => import("./LNWAZHJI-BE1Huinq.js")), this.#i = d), R42(this.#p, this.#r), h42(d, f42({
203816
203816
  get queryFlavor() {
203817
203817
  return r.#d;
203818
203818
  },
@@ -203910,7 +203910,7 @@ var WDt = (t, e = !1) => {
203910
203910
  const e = w42(() => {
203911
203911
  const r = this, [n] = this.#n, [a] = this.#o, [l] = this.#a, [i] = this.#l, [c] = this.#h, [s] = this.#e, [d] = this.#i;
203912
203912
  let u;
203913
- return this.#c ? u = this.#c : (u = m42(() => import("./MWZ6AO7Z-D_GYj_Zj.js")), this.#c = u), R42(this.#p, this.#r), h42(u, f42({
203913
+ return this.#c ? u = this.#c : (u = m42(() => import("./MWZ6AO7Z-BXbWyMBb.js")), this.#c = u), R42(this.#p, this.#r), h42(u, f42({
203914
203914
  get queryFlavor() {
203915
203915
  return r.#d;
203916
203916
  },
@@ -204066,7 +204066,7 @@ const aTt = {
204066
204066
  id: "clinical-config",
204067
204067
  name: "Clinical Config",
204068
204068
  displayName: "ClinicalConfigProvider"
204069
- }), ETt = P0(() => import("./ConsultationPage-CKNn9ZNz.js")), yTt = P0(() => import("./index-CLBdqsWh.js")), MTt = [
204069
+ }), ETt = P0(() => import("./ConsultationPage-mP74xC9i.js")), yTt = P0(() => import("./index-BcBccOaT.js")), MTt = [
204070
204070
  {
204071
204071
  path: ":patientUuid",
204072
204072
  component: ETt
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { da as i } from "./index-k-BDWW2Q.js";
1
+ import { da as i } from "./index-CymxuBG-.js";
2
2
  export {
3
3
  i as ClinicalApp
4
4
  };
@@ -148,7 +148,7 @@
148
148
  "DOCUMENTS_ERROR_LOADING_DOCUMENT_TYPES": "Unable to load the document types.",
149
149
  "DOCUMENTS_INPUT_CONTROL_LABEL": "Documents",
150
150
  "DOCUMENTS_LOADING_ATTACHMENT": "Loading attachment…",
151
- "DOCUMENTS_NOT_SAVED_MESSAGE": "Some documents could not be uploaded, so they were not saved with this consultation. Add them again from the patient's documents.",
151
+ "DOCUMENTS_NOT_SAVED_MESSAGE": "Documents could not be uploaded",
152
152
  "DOCUMENTS_NOT_SAVED_TITLE": "Documents not saved",
153
153
  "DOCUMENTS_NOTE_PLACEHOLDER": "Add a note about this document",
154
154
  "DOCUMENTS_PRINT_ALL": "Print all",
@@ -157,7 +157,7 @@
157
157
  "DOCUMENTS_ERROR_LOADING_DOCUMENT_TYPES": "No se pueden cargar los tipos de documento.",
158
158
  "DOCUMENTS_INPUT_CONTROL_LABEL": "Documentos",
159
159
  "DOCUMENTS_LOADING_ATTACHMENT": "Cargando adjunto…",
160
- "DOCUMENTS_NOT_SAVED_MESSAGE": "No se pudieron subir algunos documentos, por lo que no se guardaron con esta consulta. Vuelva a agregarlos desde los documentos del paciente.",
160
+ "DOCUMENTS_NOT_SAVED_MESSAGE": "No se pudieron subir los documentos",
161
161
  "DOCUMENTS_NOT_SAVED_TITLE": "Documentos no guardados",
162
162
  "DOCUMENTS_NOTE_PLACEHOLDER": "Agregue una nota sobre este documento",
163
163
  "DOCUMENTS_PRINT_ALL": "Imprimir todo",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/clinical-app",
3
- "version": "0.0.1-dev.459",
3
+ "version": "0.0.1-dev.460",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",