@bahmni/registration-app 0.0.1-dev.103 → 0.0.1-dev.104
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-DhXoOep2-BkGyRYg3.js → FormsTable-DhXoOep2-gRjt1hd9.js} +1 -1
- package/dist/{LNWAZHJI-CqaiUJ8L.js → LNWAZHJI-DD3upEDs.js} +2 -2
- package/dist/{MWZ6AO7Z-D_z2skIe.js → MWZ6AO7Z-DPDWo2gI.js} +2 -2
- package/dist/{YPM2AS64-ofdcr0F8.js → YPM2AS64-D-OdG10v.js} +1 -1
- package/dist/{index-BYQaUM_6.js → index-ylmiN9rI.js} +31 -23
- package/dist/index.js +1 -1
- package/dist/pages/PatientRegister/PatientRegister.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e, jsxs as _, Fragment as K } from "react/jsx-runtime";
|
|
2
|
-
import { u as Q, C as J, e as X, X as z, Q as Y, J as W, a as Z, V as ee, b as S, A as re, _ as ae, l as oe, E as ne, t as I, G as te } from "./index-
|
|
2
|
+
import { u as Q, C as J, e as X, X as z, Q as Y, J as W, a as Z, V as ee, b as S, A as re, _ as ae, l as oe, E as ne, t as I, G as te } from "./index-ylmiN9rI.js";
|
|
3
3
|
import { useQuery as p } from "@tanstack/react-query";
|
|
4
4
|
import { useState as U, useMemo as u, useCallback as f } from "react";
|
|
5
5
|
import { createPortal as se } from "react-dom";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-
|
|
2
|
-
import { g as d, c as f, d as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-D-OdG10v.js";
|
|
2
|
+
import { g as d, c as f, d as e } from "./index-ylmiN9rI.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 d, Q as P } from "./YPM2AS64-
|
|
2
|
-
import { g as v, c as C, d as e } from "./index-
|
|
1
|
+
import { c as s, T as c, P as u, a as i, b as m, C as d, Q as P } from "./YPM2AS64-D-OdG10v.js";
|
|
2
|
+
import { g as v, c as C, d as e } from "./index-ylmiN9rI.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as we, h as z, o as xt, i as B, c as q, d as y, P as Ro, m as ye, S as R, j as _, k, n as N, p as A, q as bs, r as ir, s as $e, v as U, w as Hn, x as Vn, y as dt, z as D, B as xs, D as cn, F as Be, H as ws, I as qt, K as zt, L as $s, M as Cs, N as $n, O as Ss, R as Nr, T as Bt, $ as zo, U as ks, W as Es, Y as j, Z as Ur, a0 as Ms, a1 as Ds, a2 as sr, a3 as As, a4 as Ts, a5 as zn, a6 as Fs, a7 as Is, a8 as Z, a9 as Ps, aa as Ls } from "./index-
|
|
1
|
+
import { f as we, h as z, o as xt, i as B, c as q, d as y, P as Ro, m as ye, S as R, j as _, k, n as N, p as A, q as bs, r as ir, s as $e, v as U, w as Hn, x as Vn, y as dt, z as D, B as xs, D as cn, F as Be, H as ws, I as qt, K as zt, L as $s, M as Cs, N as $n, O as Ss, R as Nr, T as Bt, $ as zo, U as ks, W as Es, Y as j, Z as Ur, a0 as Ms, a1 as Ds, a2 as sr, a3 as As, a4 as Ts, a5 as zn, a6 as Fs, a7 as Is, a8 as Z, a9 as Ps, aa as Ls } from "./index-ylmiN9rI.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -152369,7 +152369,7 @@ $r(() => Promise.resolve().then(() => $g0)), $r(() => Promise.resolve().then(()
|
|
|
152369
152369
|
() => Promise.resolve().then(() => yE0)
|
|
152370
152370
|
), $r(() => Promise.resolve().then(() => aE0)), $r(() => Promise.resolve().then(() => ny0)), $r(
|
|
152371
152371
|
() => Promise.resolve().then(() => hy0)
|
|
152372
|
-
), $r(() => import("./FormsTable-DhXoOep2-
|
|
152372
|
+
), $r(() => import("./FormsTable-DhXoOep2-gRjt1hd9.js"));
|
|
152373
152373
|
var O1 = {
|
|
152374
152374
|
context: void 0,
|
|
152375
152375
|
registry: void 0,
|
|
@@ -154204,7 +154204,7 @@ var JA0 = (t, e = !1) => {
|
|
|
154204
154204
|
const e = pC1(() => {
|
|
154205
154205
|
const r = this, [n] = this.#n, [a] = this.#o, [c] = this.#a, [i] = this.#c, [l] = this.#p, [s] = this.#t;
|
|
154206
154206
|
let d;
|
|
154207
|
-
return this.#i ? d = this.#i : (d = uC1(() => import("./LNWAZHJI-
|
|
154207
|
+
return this.#i ? d = this.#i : (d = uC1(() => import("./LNWAZHJI-DD3upEDs.js")), this.#i = d), TC1(this.#h, this.#r), sC1(d, dC1({
|
|
154208
154208
|
get queryFlavor() {
|
|
154209
154209
|
return r.#d;
|
|
154210
154210
|
},
|
|
@@ -154302,7 +154302,7 @@ var JA0 = (t, e = !1) => {
|
|
|
154302
154302
|
const e = pC1(() => {
|
|
154303
154303
|
const r = this, [n] = this.#n, [a] = this.#o, [c] = this.#a, [i] = this.#c, [l] = this.#p, [s] = this.#t, [d] = this.#i;
|
|
154304
154304
|
let u;
|
|
154305
|
-
return this.#l ? u = this.#l : (u = uC1(() => import("./MWZ6AO7Z-
|
|
154305
|
+
return this.#l ? u = this.#l : (u = uC1(() => import("./MWZ6AO7Z-DPDWo2gI.js")), this.#l = u), TC1(this.#h, this.#r), sC1(u, dC1({
|
|
154306
154306
|
get queryFlavor() {
|
|
154307
154307
|
return r.#d;
|
|
154308
154308
|
},
|
|
@@ -163843,14 +163843,14 @@ const G91 = () => {
|
|
|
163843
163843
|
}, [x]), ue(() => {
|
|
163844
163844
|
V?.patientUuid && c(V.patientUuid);
|
|
163845
163845
|
}, [V]);
|
|
163846
|
-
const $ = PC0(), Z = JC0();
|
|
163846
|
+
const $ = PC0(), Z = JC0(), I = $.isPending || Z.isPending;
|
|
163847
163847
|
ue(() => {
|
|
163848
163848
|
Di({
|
|
163849
163849
|
eventType: zr.VIEWED_NEW_PATIENT_PAGE.eventType,
|
|
163850
163850
|
module: zr.VIEWED_NEW_PATIENT_PAGE.module
|
|
163851
163851
|
});
|
|
163852
163852
|
}, []);
|
|
163853
|
-
const
|
|
163853
|
+
const F = async () => {
|
|
163854
163854
|
if (!QC0(
|
|
163855
163855
|
{
|
|
163856
163856
|
profileRef: s,
|
|
@@ -163867,7 +163867,7 @@ const G91 = () => {
|
|
|
163867
163867
|
}
|
|
163868
163868
|
))
|
|
163869
163869
|
return null;
|
|
163870
|
-
const
|
|
163870
|
+
const te = eL0(
|
|
163871
163871
|
{
|
|
163872
163872
|
profileRef: s,
|
|
163873
163873
|
addressRef: d,
|
|
@@ -163879,34 +163879,34 @@ const G91 = () => {
|
|
|
163879
163879
|
r,
|
|
163880
163880
|
t
|
|
163881
163881
|
);
|
|
163882
|
-
if (!
|
|
163882
|
+
if (!te)
|
|
163883
163883
|
return null;
|
|
163884
163884
|
try {
|
|
163885
163885
|
if (a) {
|
|
163886
|
-
const
|
|
163886
|
+
const X = await Z.mutateAsync({
|
|
163887
163887
|
patientUuid: a,
|
|
163888
|
-
...
|
|
163888
|
+
...te,
|
|
163889
163889
|
additionalIdentifiersInitialData: E
|
|
163890
163890
|
});
|
|
163891
|
-
if (
|
|
163891
|
+
if (X?.patient?.uuid)
|
|
163892
163892
|
return L({
|
|
163893
163893
|
...V,
|
|
163894
|
-
patientName:
|
|
163895
|
-
}), w.current?.removeDeletedRelationships(),
|
|
163894
|
+
patientName: X.patient.person.display ?? ""
|
|
163895
|
+
}), w.current?.removeDeletedRelationships(), X.patient.uuid;
|
|
163896
163896
|
} else {
|
|
163897
|
-
const
|
|
163898
|
-
|
|
163897
|
+
const X = await $.mutateAsync(
|
|
163898
|
+
te
|
|
163899
163899
|
);
|
|
163900
|
-
if (
|
|
163901
|
-
const
|
|
163902
|
-
return c(
|
|
163900
|
+
if (X?.patient?.uuid) {
|
|
163901
|
+
const P = X.patient.uuid;
|
|
163902
|
+
return c(P), e(ez0(P)), P;
|
|
163903
163903
|
}
|
|
163904
163904
|
}
|
|
163905
163905
|
return null;
|
|
163906
163906
|
} catch {
|
|
163907
163907
|
return null;
|
|
163908
163908
|
}
|
|
163909
|
-
},
|
|
163909
|
+
}, W = V?.patientUuid || n == null, K = [
|
|
163910
163910
|
{
|
|
163911
163911
|
id: "home",
|
|
163912
163912
|
label: t("CREATE_PATIENT_BREADCRUMB_HOME"),
|
|
@@ -163922,7 +163922,7 @@ const G91 = () => {
|
|
|
163922
163922
|
label: a && V?.patientName ? V.patientName : t("CREATE_PATIENT_BREADCRUMB_CURRENT"),
|
|
163923
163923
|
isCurrentPage: !0
|
|
163924
163924
|
}
|
|
163925
|
-
],
|
|
163925
|
+
], Q = [
|
|
163926
163926
|
{
|
|
163927
163927
|
id: "user",
|
|
163928
163928
|
label: "user",
|
|
@@ -163934,7 +163934,7 @@ const G91 = () => {
|
|
|
163934
163934
|
return /* @__PURE__ */ le(
|
|
163935
163935
|
Wy1,
|
|
163936
163936
|
{
|
|
163937
|
-
header: /* @__PURE__ */ le(Cg, { breadcrumbItems:
|
|
163937
|
+
header: /* @__PURE__ */ le(Cg, { breadcrumbItems: K, globalActions: Q }),
|
|
163938
163938
|
main: /* @__PURE__ */ r1("div", { children: [
|
|
163939
163939
|
/* @__PURE__ */ r1("div", { className: Q1.form, children: [
|
|
163940
163940
|
/* @__PURE__ */ le(Mi, { className: Q1.patientDetailsHeader, children: /* @__PURE__ */ le("span", { className: Q1.sectionTitle, children: a ? /* @__PURE__ */ r1("div", { className: Q1.infoContainer, children: [
|
|
@@ -164000,7 +164000,7 @@ const G91 = () => {
|
|
|
164000
164000
|
initialData: h
|
|
164001
164001
|
}
|
|
164002
164002
|
),
|
|
164003
|
-
|
|
164003
|
+
W && /* @__PURE__ */ r1("div", { className: Q1.formActions, children: [
|
|
164004
164004
|
/* @__PURE__ */ le(
|
|
164005
164005
|
tt,
|
|
164006
164006
|
{
|
|
@@ -164010,12 +164010,20 @@ const G91 = () => {
|
|
|
164010
164010
|
}
|
|
164011
164011
|
),
|
|
164012
164012
|
/* @__PURE__ */ r1("div", { className: Q1.actionButtons, children: [
|
|
164013
|
-
/* @__PURE__ */ le(
|
|
164013
|
+
/* @__PURE__ */ le(
|
|
164014
|
+
tt,
|
|
164015
|
+
{
|
|
164016
|
+
kind: "tertiary",
|
|
164017
|
+
onClick: F,
|
|
164018
|
+
disabled: I,
|
|
164019
|
+
children: t("CREATE_PATIENT_SAVE")
|
|
164020
|
+
}
|
|
164021
|
+
),
|
|
164014
164022
|
/* @__PURE__ */ le(
|
|
164015
164023
|
BC0,
|
|
164016
164024
|
{
|
|
164017
164025
|
extensionPointId: "org.bahmni.registration.navigation",
|
|
164018
|
-
onBeforeNavigate:
|
|
164026
|
+
onBeforeNavigate: F
|
|
164019
164027
|
}
|
|
164020
164028
|
)
|
|
164021
164029
|
] })
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PatientRegister.d.ts","sourceRoot":"","sources":["../../../src/pages/PatientRegister/PatientRegister.tsx"],"names":[],"mappings":"AAoDA,QAAA,MAAM,eAAe,+
|
|
1
|
+
{"version":3,"file":"PatientRegister.d.ts","sourceRoot":"","sources":["../../../src/pages/PatientRegister/PatientRegister.tsx"],"names":[],"mappings":"AAoDA,QAAA,MAAM,eAAe,+CAoQpB,CAAC;AACF,eAAe,eAAe,CAAC"}
|