hplx-feature-library 1.0.173 → 1.0.174
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/APIAction-DP4YAX6k.cjs +1 -0
- package/dist/APIAction-DsHApdnW.js +161 -0
- package/dist/AllInvestigations/index.js +1 -1
- package/dist/{AllInvestigationsTable-BxezFrCD.js → AllInvestigationsTable-txmu7PTJ.js} +2 -2
- package/dist/Attachments/index.js +2 -2
- package/dist/NetworkInstance-CPW2SeAM.cjs +9 -0
- package/dist/{APIAction--DyoXs57.js → NetworkInstance-D0jiwhQe.js} +638 -793
- package/dist/PatientAddEdit/index.js +24 -23
- package/dist/PatientPopup/index.js +9005 -129700
- package/dist/PediatricsCalculator/index.js +1 -1
- package/dist/{PediatricsCalculatorTable-C4HGNrjE.js → PediatricsCalculatorTable-CNWwNxCr.js} +2 -2
- package/dist/PrintModal-9636D2oo.js +120749 -0
- package/dist/PrintModal-BZmh4_Md.cjs +425 -0
- package/dist/{ReusableModal-pSi21hnc.js → ReusableModal-BteIK-YX.js} +1 -1
- package/dist/{dayjs.min-BbV4duaj.js → dayjs.min-B2cg6pUo.js} +1 -1
- package/dist/hplx-feature-library.css +1 -1
- package/dist/{index-sG1tIMJ6.js → index-BUI6-03D.js} +4 -4
- package/dist/{index-vVtPa2-N.js → index-DXvmjJBJ.js} +1 -1
- package/dist/index.js +2 -2
- package/dist/print-pdf/index.js +4 -0
- package/package.json +1 -1
- package/dist/APIAction-B5XQnkiF.cjs +0 -9
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { j as l, b as h, K as y, P as m, k as Q, a as Ql, e as Ze, Z as we, A as X, c as Xl, q as ea } from "../index-
|
|
2
|
-
import { g as
|
|
3
|
-
import { M as
|
|
4
|
-
import { useState as n, useRef as Y, useCallback as q, useEffect as k, useMemo as
|
|
5
|
-
import { d as
|
|
1
|
+
import { j as l, b as h, K as y, P as m, k as Q, a as Ql, e as Ze, Z as we, A as X, c as Xl, q as ea } from "../index-BUI6-03D.js";
|
|
2
|
+
import { g as la, a as aa, b as ta, c as ra, u as sa, d as na, e as oa, f as ia } from "../APIAction-DsHApdnW.js";
|
|
3
|
+
import { M as ha } from "../index-DXvmjJBJ.js";
|
|
4
|
+
import { useState as n, useRef as Y, useCallback as q, useEffect as k, useMemo as da } from "react";
|
|
5
|
+
import { g as ae, i as fa, d as ca, c as pa, p as ua, b as ma, H as ga, e as Ke, f as Qe, v as Xe, j as el, D as je, M as Ce, k as ee, S as xa, l as ll, E as Ne, m as _a, n as al, C as Pe, O as De } from "../NetworkInstance-D0jiwhQe.js";
|
|
6
|
+
import { d as le } from "../dayjs.min-B2cg6pUo.js";
|
|
6
7
|
const tl = () => /* @__PURE__ */ l.jsx("div", { className: "hfl-h-0 hfl-w-full hfl-border-1 hfl-border-Gray-200" }), ba = ({ conflicts: M, handleAddPatient: v, redirectAction: T }) => {
|
|
7
8
|
const [N, L] = n(!1);
|
|
8
9
|
return /* @__PURE__ */ l.jsxs("div", { children: [
|
|
@@ -122,7 +123,7 @@ function ya(M) {
|
|
|
122
123
|
)
|
|
123
124
|
] });
|
|
124
125
|
}
|
|
125
|
-
const
|
|
126
|
+
const Da = (M) => {
|
|
126
127
|
const { closeModal: v, modalIsOpen: T, pref: N, variable: L } = M, { window_var: o, token: p, envName: b } = L, [te, rl] = n(!1), [A, sl] = n({}), [O, nl] = n(!1), [ol, re] = n(""), [il, hl] = n(!1), [Se, dl] = n(!1), [fl, cl] = n([]), [Ee, R] = n(!1), [P, U] = n(""), [g, pl] = n(), [u, c] = n({
|
|
127
128
|
name: "",
|
|
128
129
|
phone: "",
|
|
@@ -180,7 +181,7 @@ const Pa = (M) => {
|
|
|
180
181
|
duration: s
|
|
181
182
|
}
|
|
182
183
|
]);
|
|
183
|
-
}, B = Y(null), Oe = Y(null), [Ge, I] = n(!1), [Fe, J] = n(!1), [Sl, Ie] = n(!1), [El, ue] = n(!1), [ze, Bl] = n(), C = g && g.visit_pad_json &&
|
|
184
|
+
}, B = Y(null), Oe = Y(null), [Ge, I] = n(!1), [Fe, J] = n(!1), [Sl, Ie] = n(!1), [El, ue] = n(!1), [ze, Bl] = n(), C = g && g.visit_pad_json && fa(g.visit_pad_json) && JSON.parse(g.visit_pad_json), He = ca((...e) => {
|
|
184
185
|
const [a, r] = e;
|
|
185
186
|
Il(a, r);
|
|
186
187
|
}), i = q(
|
|
@@ -232,7 +233,7 @@ const Pa = (M) => {
|
|
|
232
233
|
return [];
|
|
233
234
|
}, Ve = Y(null), Z = Y(null), me = Y(null), Ye = window.location?.pathname.includes("/frontdesk");
|
|
234
235
|
k(() => {
|
|
235
|
-
const e =
|
|
236
|
+
const e = pa(t.age, S);
|
|
236
237
|
e && j((a) => ({
|
|
237
238
|
...a,
|
|
238
239
|
dob: e
|
|
@@ -251,7 +252,7 @@ const Pa = (M) => {
|
|
|
251
252
|
}, Ue = q(() => {
|
|
252
253
|
U(t.image_link), R(!1), I(!1);
|
|
253
254
|
}, [t.image_link]), We = q(async () => {
|
|
254
|
-
const e = await
|
|
255
|
+
const e = await la(
|
|
255
256
|
"patient_config",
|
|
256
257
|
o?.org_branch_id_for_seg?.toString() || "",
|
|
257
258
|
{ token: p, envName: b }
|
|
@@ -272,8 +273,8 @@ const Pa = (M) => {
|
|
|
272
273
|
(async () => {
|
|
273
274
|
pl(N);
|
|
274
275
|
try {
|
|
275
|
-
const e = await
|
|
276
|
-
a.length && jl(
|
|
276
|
+
const e = await aa({ token: p, envName: b }), { total_ref_doc_details: a, through_channel: r } = e;
|
|
277
|
+
a.length && jl(ua(a)), r.length && xl(ma(r));
|
|
277
278
|
} catch (e) {
|
|
278
279
|
console.log("ERROR", e);
|
|
279
280
|
}
|
|
@@ -286,7 +287,7 @@ const Pa = (M) => {
|
|
|
286
287
|
doctor_role_id: o?.doctor_role_id_for_seg || "",
|
|
287
288
|
term: encodeURIComponent(a),
|
|
288
289
|
limit: 30
|
|
289
|
-
}, s = await
|
|
290
|
+
}, s = await na(r, { token: p, envName: b });
|
|
290
291
|
if (!s) {
|
|
291
292
|
D({ name: !1, phone: !1 });
|
|
292
293
|
return;
|
|
@@ -309,7 +310,7 @@ const Pa = (M) => {
|
|
|
309
310
|
}
|
|
310
311
|
}, zl = q(
|
|
311
312
|
(e) => {
|
|
312
|
-
|
|
313
|
+
ta({ callback: (r) => {
|
|
313
314
|
j({
|
|
314
315
|
name: r?.name || "",
|
|
315
316
|
phone: r?.phone_number || "",
|
|
@@ -389,7 +390,7 @@ const Pa = (M) => {
|
|
|
389
390
|
return;
|
|
390
391
|
}
|
|
391
392
|
const s = new FormData();
|
|
392
|
-
s.append("name", t.name), s.append("phone", t.phone), s.append("gender",
|
|
393
|
+
s.append("name", t.name), s.append("phone", t.phone), s.append("gender", _a(t.gender)), s.append("honorific", t.honorific), s.append("patient_preferred_language", t.patient_preferred_language), s.append("age", F && F.length ? F : al(t?.age, S) || ""), s.append("age_selector", t.age_selector), s.append("blood_group", t.blood_group), s.append("email", t.email), s.append("address", t.address), s.append("city", t.city), s.append("existing_bid_str", t.existingBidStr), s.append("pincode", t.pincode), s.append("ref_doc_id", t.refDocId), s.append("ref_doc_name", t.ref_doc_name), s.append("ref_doc_spec", t.ref_doc_spec), s.append("through_channel", t.throughChannel), s.append("care_of", t.careOf), s.append("phone_secondary", t.phoneSecondary), s.append("occupation", t.occupation), s.append("tag", t.tag), s.append("marital_status", t.marital_status), s.append("married_since", t.married_since), s.append("spouse_name", t.spouse_name), s.append("spouse_blood_group", t.spouse_blood_group), s.append("aadhar_number", t.aadhar_number), s.append("custom_fields", JSON.stringify(t.custom_fields || [])), e && s.append("reg_as_new", "1");
|
|
393
394
|
const f = Object.fromEntries(s.entries()), x = Object.fromEntries(
|
|
394
395
|
Object.entries(f).map(([V, Kl]) => [V, String(Kl)])
|
|
395
396
|
), _ = {
|
|
@@ -400,7 +401,7 @@ const Pa = (M) => {
|
|
|
400
401
|
org_branch_id: o.org_branch_id_for_seg || "",
|
|
401
402
|
source: "emr",
|
|
402
403
|
ip: ""
|
|
403
|
-
}, d = await
|
|
404
|
+
}, d = await ra(_, { token: p, envName: b });
|
|
404
405
|
if (d.apiError)
|
|
405
406
|
E("Error", d.apiError, "Error", 3e3), J(!1);
|
|
406
407
|
else {
|
|
@@ -466,7 +467,7 @@ const Pa = (M) => {
|
|
|
466
467
|
}, be = async (e, a) => {
|
|
467
468
|
const r = new FormData();
|
|
468
469
|
r.append("pid", e), r.append("bidstr", a), r.append("imgData", P);
|
|
469
|
-
const s = await
|
|
470
|
+
const s = await oa(r, { token: p, envName: b });
|
|
470
471
|
s.apiError && E("Error", s.apiError, "Error", 3e3);
|
|
471
472
|
}, ye = async (e) => {
|
|
472
473
|
const a = {
|
|
@@ -503,7 +504,7 @@ const Pa = (M) => {
|
|
|
503
504
|
person_role_id: o.doctor_role_id_for_seg || "",
|
|
504
505
|
person_id: o.person_id_for_seg || "",
|
|
505
506
|
branch_id: o.org_branch_id_for_seg || ""
|
|
506
|
-
}, r = await
|
|
507
|
+
}, r = await sa(a, { token: p, envName: b });
|
|
507
508
|
if (O) {
|
|
508
509
|
r && J(!1);
|
|
509
510
|
const { message: s, status: f } = r || {};
|
|
@@ -528,7 +529,7 @@ const Pa = (M) => {
|
|
|
528
529
|
}, Yl = async (e) => {
|
|
529
530
|
const a = new FormData();
|
|
530
531
|
a.append("pid", e);
|
|
531
|
-
const r = await
|
|
532
|
+
const r = await ia(a, { token: p, envName: b });
|
|
532
533
|
r.apiError && E("Error", r.apiError, "Error", 3e3);
|
|
533
534
|
}, z = (e = "") => {
|
|
534
535
|
const a = e?.toLowerCase();
|
|
@@ -570,7 +571,7 @@ const Pa = (M) => {
|
|
|
570
571
|
const e = B.current.srcObject;
|
|
571
572
|
e instanceof MediaStream && e.getTracks().forEach((a) => a.stop()), B.current.srcObject = null;
|
|
572
573
|
}
|
|
573
|
-
}, Jl =
|
|
574
|
+
}, Jl = da(() => [...ze?.patient_config?.custom_fields || []].sort((r, s) => r.sort - s.sort).map((r) => {
|
|
574
575
|
const s = t.custom_fields?.find((f) => f.id === r.id);
|
|
575
576
|
return {
|
|
576
577
|
...r,
|
|
@@ -636,7 +637,7 @@ const Pa = (M) => {
|
|
|
636
637
|
}
|
|
637
638
|
});
|
|
638
639
|
return /* @__PURE__ */ l.jsx(
|
|
639
|
-
|
|
640
|
+
ha,
|
|
640
641
|
{
|
|
641
642
|
isOpen: T,
|
|
642
643
|
onRequestClose: () => {
|
|
@@ -744,7 +745,7 @@ const Pa = (M) => {
|
|
|
744
745
|
style: {
|
|
745
746
|
boxShadow: "0px 24px 48px -12px rgba(16, 24, 40, 0.18)"
|
|
746
747
|
},
|
|
747
|
-
children:
|
|
748
|
+
children: ga.map((e) => /* @__PURE__ */ l.jsx(
|
|
748
749
|
Q,
|
|
749
750
|
{
|
|
750
751
|
className: "hfl-text-Primary-700",
|
|
@@ -1208,7 +1209,7 @@ const Pa = (M) => {
|
|
|
1208
1209
|
suffixClassName: "hfl-w-[100px]",
|
|
1209
1210
|
suffixDropdownClassName: "hfl-ml-[160px]",
|
|
1210
1211
|
options: wl,
|
|
1211
|
-
suffixOptions:
|
|
1212
|
+
suffixOptions: xa,
|
|
1212
1213
|
handleValChange: (e) => {
|
|
1213
1214
|
i("ref_doc_name", e);
|
|
1214
1215
|
},
|
|
@@ -1658,5 +1659,5 @@ const Pa = (M) => {
|
|
|
1658
1659
|
);
|
|
1659
1660
|
};
|
|
1660
1661
|
export {
|
|
1661
|
-
|
|
1662
|
+
Da as default
|
|
1662
1663
|
};
|