@bahmni/registration-app 0.0.1-dev.125 → 0.0.1-dev.126
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.
- package/dist/{FormsTable-D1MPelYk-B5iGWlSY.js → FormsTable-DhkvwKax-B6eezmTT.js} +2 -2
- package/dist/{LNWAZHJI-CZXHrdN7.js → LNWAZHJI-DJldqtui.js} +2 -2
- package/dist/{MWZ6AO7Z-B7Rlq5jP.js → MWZ6AO7Z-eacZGmuo.js} +2 -2
- package/dist/{Observations-PGz2aygq-DwULy3cX.js → Observations-CmdItGOh-BKVDxvLA.js} +1 -1
- package/dist/{YPM2AS64-DmbjLdY3.js → YPM2AS64-BmISdehG.js} +1 -1
- package/dist/{index-C_AvgPXR.js → index-CLeszf5i.js} +14 -14
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t, jsxs as p, Fragment as z } from "react/jsx-runtime";
|
|
2
|
-
import { u as J, C as Q, Y as W, a as Z, n as ee, o as re, r as ae, H as oe, R as te, q as G, O as ne, L as se, b as me, c as de, w as x, G as ie, I as v } from "./index-
|
|
2
|
+
import { u as J, C as Q, Y as W, a as Z, n as ee, o as re, r as ae, H as oe, R as te, q as G, O as ne, L as se, b as me, c as de, w as x, G as ie, I as v } from "./index-CLeszf5i.js";
|
|
3
3
|
import { useQuery as h } from "@tanstack/react-query";
|
|
4
4
|
import { useState as q, useMemo as N, useCallback as y } from "react";
|
|
5
5
|
import { createPortal as le } from "react-dom";
|
|
@@ -210,7 +210,7 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
|
|
|
210
210
|
(n) => s.includes(n.encounterUuid)
|
|
211
211
|
), [g, s]), { data: C = [] } = h({
|
|
212
212
|
queryKey: ["observationForms"],
|
|
213
|
-
queryFn: ee
|
|
213
|
+
queryFn: () => ee()
|
|
214
214
|
}), D = y(
|
|
215
215
|
(n) => C.find((l) => l.name === n)?.uuid,
|
|
216
216
|
[C]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c, T as l, P as m, a as i, D as u, Q as v } from "./YPM2AS64-
|
|
2
|
-
import { g as d, h as f, i as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as i, D as u, Q as v } from "./YPM2AS64-BmISdehG.js";
|
|
2
|
+
import { g as d, h as f, i as e } from "./index-CLeszf5i.js";
|
|
3
3
|
var h = (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 i, a as u, b as m, C as P, Q as d } from "./YPM2AS64-
|
|
2
|
-
import { g as h, h as v, i as e } from "./index-
|
|
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-BmISdehG.js";
|
|
2
|
+
import { g as h, h as v, i as e } from "./index-CLeszf5i.js";
|
|
3
3
|
var C = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as _, jsx as b } from "react/jsx-runtime";
|
|
2
|
-
import { C as F, T as G, u as I, e as U, t as Q, J as k, q as x, X as K, d as A, Q as X, A as H, D as j, f as J } from "./index-
|
|
2
|
+
import { C as F, T as G, u as I, e as U, t as Q, J as k, q as x, X as K, d as A, Q as X, A as H, D as j, f as J } from "./index-CLeszf5i.js";
|
|
3
3
|
import { useQueries as P, useQuery as Y } from "@tanstack/react-query";
|
|
4
4
|
import { useRef as Z, useEffect as S, useMemo as h } from "react";
|
|
5
5
|
const z = "normal", W = "http://terminology.hl7.org/CodeSystem/referencerange-meaning", ee = "A", te = "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", ne = (e, n) => e?.date ? K(e.date, n).formattedResult : n("DATE_ERROR_PARSE"), re = (e) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as we, k as z, l as xt, m as B, h as q, i as y, P as Ro, p as ye, S as R, s as _, v as k, x as N, y as A, z as bs, B as ir, E as $e, F as U, K as Hn, M as Vn, N as dt, U as D, V as xs, W as cn, Z as Be, _ as ws, $ as qt, a0 as zt, a1 as $s, a2 as Cs, a3 as $n, a4 as Ss, a5 as Nr, a6 as Bt, a7 as zo, a8 as ks, a9 as Es, aa as j, ab as Ur, ac as Ms, ad as Ds, ae as sr, af as As, ag as Ts, ah as zn, ai as Fs, aj as Is, ak as Z, al as Ps, am as Ls } from "./index-
|
|
1
|
+
import { j as we, k as z, l as xt, m as B, h as q, i as y, P as Ro, p as ye, S as R, s as _, v as k, x as N, y as A, z as bs, B as ir, E as $e, F as U, K as Hn, M as Vn, N as dt, U as D, V as xs, W as cn, Z as Be, _ as ws, $ as qt, a0 as zt, a1 as $s, a2 as Cs, a3 as $n, a4 as Ss, a5 as Nr, a6 as Bt, a7 as zo, a8 as ks, a9 as Es, aa as j, ab as Ur, ac as Ms, ad as Ds, ae as sr, af as As, ag as Ts, ah as zn, ai as Fs, aj as Is, ak as Z, al as Ps, am as Ls } from "./index-CLeszf5i.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -148847,7 +148847,7 @@ const Ng0 = /* @__PURE__ */ vw0(xg0), Cg0 = "/bahmni_config/openmrs/apps/registr
|
|
|
148847
148847
|
const { message: r } = Vt(e);
|
|
148848
148848
|
throw new Error(r);
|
|
148849
148849
|
}
|
|
148850
|
-
}, Zg0 = async (t, e) => new Ng0().compile(e)(t), Bg0 = (t) => dr + `/form/${t}?v=custom:(resources:(value))`, Pg0 = dr + "/bahmniie/form/latestPublishedForms", jg0 = (t, e, r, n) => dr + `/bahmniie/form/translations?formName=${encodeURIComponent(t)}&formUuid=${e}&formVersion=${r}&locale=${n}`, Fg0 = (t, e, r) => {
|
|
148850
|
+
}, Zg0 = async (t, e) => new Ng0().compile(e)(t), Bg0 = (t) => dr + `/form/${t}?v=custom:(resources:(value))`, Pg0 = (t) => dr + "/bahmniie/form/latestPublishedForms", jg0 = (t, e, r, n) => dr + `/bahmniie/form/translations?formName=${encodeURIComponent(t)}&formUuid=${e}&formVersion=${r}&locale=${n}`, Fg0 = (t, e, r) => {
|
|
148851
148851
|
let n = dr + "/bahmnicore/patient/" + t + "/forms";
|
|
148852
148852
|
return e && (n += `?numberOfVisits=${e}`), n;
|
|
148853
148853
|
}, qg0 = (t, e) => {
|
|
@@ -148871,14 +148871,14 @@ const k7 = (t, e) => t?.length === 0 ? !1 : e?.length === 0, Ug0 = async () => {
|
|
|
148871
148871
|
const { message: e } = Vt(t);
|
|
148872
148872
|
throw new Error(e);
|
|
148873
148873
|
}
|
|
148874
|
-
}, Kg0 = async () => {
|
|
148875
|
-
const
|
|
148876
|
-
if (!
|
|
148874
|
+
}, Kg0 = async (t) => {
|
|
148875
|
+
const e = await fetch(Pg0());
|
|
148876
|
+
if (!e.ok)
|
|
148877
148877
|
throw new Error(
|
|
148878
|
-
`HTTP error! status for latestPublishedForms: ${
|
|
148878
|
+
`HTTP error! status for latestPublishedForms: ${e.status}`
|
|
148879
148879
|
);
|
|
148880
|
-
const
|
|
148881
|
-
return Array.isArray(
|
|
148880
|
+
const r = await e.json();
|
|
148881
|
+
return Array.isArray(r) ? r : [];
|
|
148882
148882
|
}, Yg0 = (t, e) => {
|
|
148883
148883
|
const r = JSON.parse(t.nameTranslation);
|
|
148884
148884
|
if (Array.isArray(r) && r.length > 0) {
|
|
@@ -148900,10 +148900,10 @@ const k7 = (t, e) => t?.length === 0 ? !1 : e?.length === 0, Ug0 = async () => {
|
|
|
148900
148900
|
editable: n.editable
|
|
148901
148901
|
}))
|
|
148902
148902
|
};
|
|
148903
|
-
}, $_0 = async () => {
|
|
148904
|
-
const
|
|
148905
|
-
return
|
|
148906
|
-
(
|
|
148903
|
+
}, $_0 = async (t) => {
|
|
148904
|
+
const e = await Kg0(), r = WE();
|
|
148905
|
+
return e.map(
|
|
148906
|
+
(n) => Gg0(n, r)
|
|
148907
148907
|
);
|
|
148908
148908
|
}, T_0 = async (t) => {
|
|
148909
148909
|
const e = await fetch(Bg0(t));
|
|
@@ -153044,7 +153044,7 @@ ur(() => Promise.resolve().then(() => mv0)), ur(() => Promise.resolve().then(()
|
|
|
153044
153044
|
() => Promise.resolve().then(() => ty0)
|
|
153045
153045
|
), ur(() => Promise.resolve().then(() => ZE0)), ur(() => Promise.resolve().then(() => tM0)), ur(
|
|
153046
153046
|
() => Promise.resolve().then(() => dM0)
|
|
153047
|
-
), ur(() => import("./FormsTable-
|
|
153047
|
+
), ur(() => import("./FormsTable-DhkvwKax-B6eezmTT.js")), ur(() => import("./Observations-CmdItGOh-BKVDxvLA.js"));
|
|
153048
153048
|
var O1 = {
|
|
153049
153049
|
context: void 0,
|
|
153050
153050
|
registry: void 0,
|
|
@@ -154879,7 +154879,7 @@ var o$0 = (t, e = !1) => {
|
|
|
154879
154879
|
const e = bC1(() => {
|
|
154880
154880
|
const r = this, [n] = this.#n, [a] = this.#o, [c] = this.#a, [i] = this.#c, [l] = this.#p, [s] = this.#t;
|
|
154881
154881
|
let d;
|
|
154882
|
-
return this.#i ? d = this.#i : (d = VC1(() => import("./LNWAZHJI-
|
|
154882
|
+
return this.#i ? d = this.#i : (d = VC1(() => import("./LNWAZHJI-DJldqtui.js")), this.#i = d), FC1(this.#h, this.#r), MC1(d, zC1({
|
|
154883
154883
|
get queryFlavor() {
|
|
154884
154884
|
return r.#d;
|
|
154885
154885
|
},
|
|
@@ -154977,7 +154977,7 @@ var o$0 = (t, e = !1) => {
|
|
|
154977
154977
|
const e = bC1(() => {
|
|
154978
154978
|
const r = this, [n] = this.#n, [a] = this.#o, [c] = this.#a, [i] = this.#c, [l] = this.#p, [s] = this.#t, [d] = this.#i;
|
|
154979
154979
|
let u;
|
|
154980
|
-
return this.#l ? u = this.#l : (u = VC1(() => import("./MWZ6AO7Z-
|
|
154980
|
+
return this.#l ? u = this.#l : (u = VC1(() => import("./MWZ6AO7Z-eacZGmuo.js")), this.#l = u), FC1(this.#h, this.#r), MC1(u, zC1({
|
|
154981
154981
|
get queryFlavor() {
|
|
154982
154982
|
return r.#d;
|
|
154983
154983
|
},
|
package/dist/index.js
CHANGED