hplx-feature-library 1.0.273 → 1.0.275
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-C7xjHE4s.js +201 -0
- package/dist/APIAction-Dv5KBo81.cjs +1 -0
- package/dist/PatientAddEdit/index.js +1 -1
- package/dist/{PatientAddEdit-DPRwjDEN.cjs → PatientAddEdit-CLROGFJV.cjs} +1 -1
- package/dist/{PatientAddEdit-Bl8UC3Qt.js → PatientAddEdit-COJYbMRa.js} +1 -1
- package/dist/PatientPopup/action/APIAction.d.ts +7 -2
- package/dist/PatientPopup/components/Lab/HPLXLab.d.ts +5 -1
- package/dist/PatientPopup/index.js +1 -1
- package/dist/PatientPopup/types/hplxAPITypes.d.ts +2 -1
- package/dist/PatientPopupContainer-BaU4OX2r.cjs +36 -0
- package/dist/{PatientPopupContainer-Uv3jDlBH.js → PatientPopupContainer-kPcDNoYR.js} +4962 -5107
- package/dist/{PrintModal-Bpuz1ucS.cjs → PrintModal-C2r3neJL.cjs} +5 -5
- package/dist/{PrintModal-CO5NoqUG.js → PrintModal-wPbGUyJs.js} +8 -21
- package/dist/SearchPatients/index.js +1 -1
- package/dist/{SearchPatients-BbXsqgER.js → SearchPatients-BRaHYplQ.js} +1 -1
- package/dist/{SearchPatients-DigNH_3d.cjs → SearchPatients-Dusosmy6.cjs} +1 -1
- package/dist/common/APIAction/APIAction.d.ts +1 -0
- package/dist/hplx-feature-library.css +1 -1
- package/dist/index.js +4 -4
- package/dist/print-pdf/index.js +1 -1
- package/dist/types/ApiResponseTypes.d.ts +0 -24
- package/dist/types/PatientPopupTypes.d.ts +0 -11
- package/package.json +2 -1
- package/dist/APIAction-1zVYADts.cjs +0 -1
- package/dist/APIAction-DDp65siP.js +0 -191
- package/dist/PatientPopupContainer-C3uAHd1i.cjs +0 -36
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { P as r } from "./PediatricsCalculatorTable-awqyE356.js";
|
|
2
|
-
import { P as e } from "./PatientPopupContainer-
|
|
2
|
+
import { P as e } from "./PatientPopupContainer-kPcDNoYR.js";
|
|
3
3
|
import { A as i } from "./Attachments-DJGZozIu.js";
|
|
4
|
-
import { P } from "./PatientAddEdit-
|
|
5
|
-
import { S as m } from "./SearchPatients-
|
|
4
|
+
import { P } from "./PatientAddEdit-COJYbMRa.js";
|
|
5
|
+
import { S as m } from "./SearchPatients-BRaHYplQ.js";
|
|
6
6
|
import { N as n } from "./NineDots-CDJrCwoA.js";
|
|
7
7
|
import { U as d } from "./UserProfile-DwQiAi_t.js";
|
|
8
|
-
import { P as c } from "./PrintModal-
|
|
8
|
+
import { P as c } from "./PrintModal-wPbGUyJs.js";
|
|
9
9
|
import { A as u } from "./AllInvestigationsTable-2K35PFTn.js";
|
|
10
10
|
export {
|
|
11
11
|
u as AllInvestigations,
|
package/dist/print-pdf/index.js
CHANGED
|
@@ -266,30 +266,6 @@ export interface GET_PATIENT_DETAILS_RESPONSE {
|
|
|
266
266
|
referred_by_doc?: string;
|
|
267
267
|
referred_by_doc_spec?: string;
|
|
268
268
|
}
|
|
269
|
-
export interface GET_VISITPAD_PREFERENCES_RESPONSE {
|
|
270
|
-
can_add_patient: boolean;
|
|
271
|
-
custom_forms: string;
|
|
272
|
-
enable_mfe_visitpad_chips: number;
|
|
273
|
-
enable_online_consultations: boolean;
|
|
274
|
-
is_b2b_branch: number;
|
|
275
|
-
org_person_logo_footer_url: string;
|
|
276
|
-
org_person_logo_header_url: string;
|
|
277
|
-
org_person_seal_url: string;
|
|
278
|
-
org_person_sign_text: string;
|
|
279
|
-
org_person_signature_url: string;
|
|
280
|
-
phone_number_length: number;
|
|
281
|
-
presc_print_order: string;
|
|
282
|
-
printDefaultPrefIndex: number;
|
|
283
|
-
printPrefMasterArr: I_PRINT_TEMPLATE[];
|
|
284
|
-
printPreferenceList: {
|
|
285
|
-
[key: string]: string;
|
|
286
|
-
};
|
|
287
|
-
unmodifiedVisitPadJson: string;
|
|
288
|
-
visit_pad_json: string;
|
|
289
|
-
visitpad_order: string;
|
|
290
|
-
vitals_order: string;
|
|
291
|
-
use_appnt_token: number;
|
|
292
|
-
}
|
|
293
269
|
export interface ENV_PARAMS {
|
|
294
270
|
token: string;
|
|
295
271
|
enc_token?: string;
|
|
@@ -510,17 +510,6 @@ export interface GET_PATIENT_POPUP_VISIT_RESPONSE {
|
|
|
510
510
|
total_visit_count: string;
|
|
511
511
|
error?: string;
|
|
512
512
|
}
|
|
513
|
-
export interface GET_PATIENT_POPUP_HPLXLAB_RESPONSE {
|
|
514
|
-
status: boolean;
|
|
515
|
-
message: string;
|
|
516
|
-
data: Array<{
|
|
517
|
-
report_id: string;
|
|
518
|
-
order_date: string;
|
|
519
|
-
test: string;
|
|
520
|
-
status: string;
|
|
521
|
-
}>;
|
|
522
|
-
total_lab_count: number;
|
|
523
|
-
}
|
|
524
513
|
export interface I_BILL_SUMMARY_ITEM {
|
|
525
514
|
order_date: string;
|
|
526
515
|
order_id: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hplx-feature-library",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.275",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "npm i hplx-react-elements-dev@qa && vite",
|
|
@@ -119,6 +119,7 @@
|
|
|
119
119
|
"react-konva": "^18.2.12",
|
|
120
120
|
"react-router-dom": "^7.9.4",
|
|
121
121
|
"react-table": "^7.8.0",
|
|
122
|
+
"react-toastify": "^11.0.5",
|
|
122
123
|
"recharts": "^3.1.2",
|
|
123
124
|
"swr": "^2.3.4",
|
|
124
125
|
"to-words": "^4.7.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const s=require("./common-utils-BcaBj1Iw.cjs"),P=require("./dayjs.min-BawXyS7V.cjs"),E="/preferences/doctor",_="/preferences/visitpad",A="/preferences/branch",u="patient/search",T="../api/modelGetAddPatientSuggestion.php",h="appointments/get",g="/v1/patient/add",m="/v1/patients",l="../api/modelSavePatientImage.php",I="../api/modelDeletePatientImage.php",d="/patient/detail",f="../api/modelSendRegisterOtp.php",D="../api/modelVerifyRegisterOtp.php",w=async(r="",t={},e,n,o)=>{const{doc_rid:a=""}=t;let c="";Array.isArray(r)?c=r.map(i=>`&fields_required=${encodeURIComponent(i)}`).join(""):r&&(c=`&fields_required=${encodeURIComponent(r)}`);try{const i=await s.hplxAPI(o?.token,o.envName).get(`${E}/${a||e}?branch_id=${n}`+c),{data:p}=i||{};return Promise.resolve(p)}catch(i){return console.error("Error fetching doctor preference:",i),Promise.reject(i)}},N=async(r="",t,e)=>{try{const n=await s.ReArchAPI(e.token,e.envName).get(`${A}/${t}?fields_required=${r}`),{data:o}=n||{};return Promise.resolve(o)}catch(n){return console.log(n),Promise.reject(n)}},y=async(r,t,e,n,o)=>{try{const a={appnt_date:r,doctor_role_id:t,doctor_id:n,org_branch_id:e},c=await s.ReArchAPI(o.token,o.envName).post(h,{...a}),{data:i}=c||{};return Promise.resolve(i)}catch(a){return a instanceof Error&&console.error("Error fetching appointments:",a.message),a?.response?.status===401&&s.handle401Status(),Promise.reject(a)}},R=async(r,t)=>{let e=[];const n=await y(P.dayjs().format("YYYY-MM-DD"),r.doctor_role_id,r.branch_id,r.doctor_id,t);n?.appointments?.length&&(e=n.appointments),window.filteredUpcomingAppts=[],e.length&&(r.term?.length?window.filteredUpcomingAppts=e.filter(o=>o.org_person_name.length&&o.org_person_name.toLowerCase().includes(r.term.toLowerCase())&&o.appnt_date>=P.dayjs(new Date).format("YYYY-MM-DD")&&(o.remote_appnt_status==="CONFIRMED"||o.appnt_status===0||o.appnt_status===3||o.appnt_status===5)):window.filteredUpcomingAppts=e.filter(o=>o.appnt_date>=P.dayjs(new Date).format("YYYY-MM-DD")&&(o.remote_appnt_status==="CONFIRMED"||o.appnt_status===0||o.appnt_status===3||o.appnt_status===5)));try{const o=await s.ReArchAPI(t.token,t.envName).post(u,r),{data:a}=o||{};return Promise.resolve(a)}catch(o){return console.log(o),null}},C=async r=>{try{const t=await s.hplxAPI(r.token,r.envName).post(T),{data:e}=t||{},{apiError:n}=e||{};if(n)throw new Error(n);return Promise.resolve(e)}catch(t){return t instanceof Error&&console.error("Error fetching referred by list:",t.message),t?.response?.status===401&&s.handle401Status(),Promise.reject(t)}},v=async(r,t)=>{try{const e=await s.ReArchAPI(t.token,t.envName).post(g,{...r,token:t.token}),{data:n}=e||{};return Promise.resolve(n)}catch(e){return Promise.reject(e)}},O=async(r,t)=>{try{const e=await s.ReArchAPI(t.token,t.envName).put(m+"/"+r?.person_role_id,{...r}),{data:n}=e||{};return Promise.resolve(n)}catch(e){return console.log(e),Promise.reject(e)}},S=async(r,t)=>{try{const e=await s.hplxAPI(t.token,t.envName).post(l,r),{data:n}=e||{};return Promise.resolve(n)}catch(e){return console.log(e),Promise.reject(e)}},j=async(r,t)=>{try{const e=await s.hplxAPI(t.token,t.envName).post(I,r),{data:n}=e||{};return Promise.resolve(n)}catch(e){return console.log(e),Promise.reject(e)}},L=async({callback:r,payload:t,token_env:e,isCallbackNeeded:n=!0})=>{try{const o=t;window?.partner_service_enabled==="1"&&(o.partner_service_enabled=!0);const a=await s.ReArchAPI(e.token,e.envName).post(d,{...o}),{data:c}=a||{},{error:i}=c||{};if(i)throw new Error(i);if(n)r(c);else return c}catch(o){console.log(o)}},Y=async({doc_id:r="",doc_rid:t=""},e,n,o,a)=>{try{const c={branch_id:n,doctor_id:r||o,doctor_role_id:t||a},i=await s.hplxAPI(e.token,e.envName).post(_,c),{data:p}=i||{};return Promise.resolve(p)}catch(c){return console.error("Error fetching visitpad preference:",c),Promise.reject(c)}},G=async(r,t)=>{try{const e=new URLSearchParams;e.append("reg_mobile_number",r);const n=await s.hplxPHPAPI(t.token,t.envName).post(f,e,{headers:{"Content-Type":"application/x-www-form-urlencoded"}});return Promise.resolve(n?.data)}catch(e){return console.log(e),Promise.reject(e)}},M=async(r,t,e)=>{try{const n=new URLSearchParams;n.append("reg_mobile_number",r),n.append("reg_mobile_otp",t);const o=await s.hplxPHPAPI(e.token,e.envName).post(D,n,{headers:{"Content-Type":"application/x-www-form-urlencoded"}});return Promise.resolve(o?.data)}catch(n){return console.log(n),Promise.reject(n)}};exports.ADD_PATIENT_IMAGE=l;exports.GET_PATIENT_DETAILS=d;exports.UPDATE_PATIENT_DETAIL=m;exports.addPatientDetails=v;exports.addPatientImage=S;exports.deletePatientImage=j;exports.getBranchPreferences=N;exports.getDoctorPreference=w;exports.getPatientDetails=L;exports.getPatientList=R;exports.getReferredByList=C;exports.getVisitpadPreference=Y;exports.patientConsentOTPVerification=M;exports.patientConsentSendOTP=G;exports.updatePatientDetails=O;
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
import { h as p, R as i, b as d, c as P } from "./common-utils-DnFYNMKH.js";
|
|
2
|
-
import { d as l } from "./dayjs.min-DEuEIfhE.js";
|
|
3
|
-
const E = "/preferences/doctor", _ = "/preferences/visitpad", u = "/preferences/branch", f = "patient/search", g = "../api/modelGetAddPatientSuggestion.php", h = "appointments/get", T = "/v1/patient/add", w = "/v1/patients", A = "../api/modelSavePatientImage.php", N = "../api/modelDeletePatientImage.php", I = "/patient/detail", D = "../api/modelSendRegisterOtp.php", y = "../api/modelVerifyRegisterOtp.php", O = async (r = "", t = {}, e, s, o) => {
|
|
4
|
-
const { doc_rid: n = "" } = t;
|
|
5
|
-
let a = "";
|
|
6
|
-
Array.isArray(r) ? a = r.map((c) => `&fields_required=${encodeURIComponent(c)}`).join("") : r && (a = `&fields_required=${encodeURIComponent(r)}`);
|
|
7
|
-
try {
|
|
8
|
-
const c = await p(o?.token, o.envName).get(
|
|
9
|
-
`${E}/${n || e}?branch_id=${s}` + a
|
|
10
|
-
), { data: m } = c || {};
|
|
11
|
-
return Promise.resolve(m);
|
|
12
|
-
} catch (c) {
|
|
13
|
-
return console.error("Error fetching doctor preference:", c), Promise.reject(c);
|
|
14
|
-
}
|
|
15
|
-
}, j = async (r = "", t, e) => {
|
|
16
|
-
try {
|
|
17
|
-
const s = await i(e.token, e.envName).get(
|
|
18
|
-
`${u}/${t}?fields_required=${r}`
|
|
19
|
-
), { data: o } = s || {};
|
|
20
|
-
return Promise.resolve(o);
|
|
21
|
-
} catch (s) {
|
|
22
|
-
return console.log(s), Promise.reject(s);
|
|
23
|
-
}
|
|
24
|
-
}, R = async (r, t, e, s, o) => {
|
|
25
|
-
try {
|
|
26
|
-
const n = {
|
|
27
|
-
appnt_date: r,
|
|
28
|
-
// If empty then will take today's date
|
|
29
|
-
doctor_role_id: t,
|
|
30
|
-
doctor_id: s,
|
|
31
|
-
org_branch_id: e
|
|
32
|
-
}, a = await i(o.token, o.envName).post(h, {
|
|
33
|
-
...n
|
|
34
|
-
}), { data: c } = a || {};
|
|
35
|
-
return Promise.resolve(c);
|
|
36
|
-
} catch (n) {
|
|
37
|
-
return n instanceof Error && console.error("Error fetching appointments:", n.message), n?.response?.status === 401 && d(), Promise.reject(n);
|
|
38
|
-
}
|
|
39
|
-
}, S = async (r, t) => {
|
|
40
|
-
let e = [];
|
|
41
|
-
const s = await R(
|
|
42
|
-
l().format("YYYY-MM-DD"),
|
|
43
|
-
r.doctor_role_id,
|
|
44
|
-
r.branch_id,
|
|
45
|
-
r.doctor_id,
|
|
46
|
-
t
|
|
47
|
-
);
|
|
48
|
-
s?.appointments?.length && (e = s.appointments), window.filteredUpcomingAppts = [], e.length && (r.term?.length ? window.filteredUpcomingAppts = e.filter((o) => o.org_person_name.length && o.org_person_name.toLowerCase().includes(r.term.toLowerCase()) && o.appnt_date >= l(/* @__PURE__ */ new Date()).format("YYYY-MM-DD") && (o.remote_appnt_status === "CONFIRMED" || o.appnt_status === 0 || o.appnt_status === 3 || o.appnt_status === 5)) : window.filteredUpcomingAppts = e.filter((o) => o.appnt_date >= l(/* @__PURE__ */ new Date()).format("YYYY-MM-DD") && (o.remote_appnt_status === "CONFIRMED" || o.appnt_status === 0 || o.appnt_status === 3 || o.appnt_status === 5)));
|
|
49
|
-
try {
|
|
50
|
-
const o = await i(t.token, t.envName).post(
|
|
51
|
-
f,
|
|
52
|
-
r
|
|
53
|
-
), { data: n } = o || {};
|
|
54
|
-
return Promise.resolve(n);
|
|
55
|
-
} catch (o) {
|
|
56
|
-
return console.log(o), null;
|
|
57
|
-
}
|
|
58
|
-
}, Y = async (r) => {
|
|
59
|
-
try {
|
|
60
|
-
const t = await p(r.token, r.envName).post(
|
|
61
|
-
g
|
|
62
|
-
), { data: e } = t || {}, { apiError: s } = e || {};
|
|
63
|
-
if (s)
|
|
64
|
-
throw new Error(s);
|
|
65
|
-
return Promise.resolve(e);
|
|
66
|
-
} catch (t) {
|
|
67
|
-
return t instanceof Error && console.error("Error fetching referred by list:", t.message), t?.response?.status === 401 && d(), Promise.reject(t);
|
|
68
|
-
}
|
|
69
|
-
}, b = async (r, t) => {
|
|
70
|
-
try {
|
|
71
|
-
const e = await i(t.token, t.envName).post(T, {
|
|
72
|
-
...r,
|
|
73
|
-
token: t.token
|
|
74
|
-
}), { data: s } = e || {};
|
|
75
|
-
return Promise.resolve(s);
|
|
76
|
-
} catch (e) {
|
|
77
|
-
return Promise.reject(e);
|
|
78
|
-
}
|
|
79
|
-
}, G = async (r, t) => {
|
|
80
|
-
try {
|
|
81
|
-
const e = await i(t.token, t.envName).put(
|
|
82
|
-
w + "/" + r?.person_role_id,
|
|
83
|
-
{
|
|
84
|
-
...r
|
|
85
|
-
}
|
|
86
|
-
), { data: s } = e || {};
|
|
87
|
-
return Promise.resolve(s);
|
|
88
|
-
} catch (e) {
|
|
89
|
-
return console.log(e), Promise.reject(e);
|
|
90
|
-
}
|
|
91
|
-
}, M = async (r, t) => {
|
|
92
|
-
try {
|
|
93
|
-
const e = await p(t.token, t.envName).post(
|
|
94
|
-
A,
|
|
95
|
-
r
|
|
96
|
-
), { data: s } = e || {};
|
|
97
|
-
return Promise.resolve(s);
|
|
98
|
-
} catch (e) {
|
|
99
|
-
return console.log(e), Promise.reject(e);
|
|
100
|
-
}
|
|
101
|
-
}, L = async (r, t) => {
|
|
102
|
-
try {
|
|
103
|
-
const e = await p(t.token, t.envName).post(
|
|
104
|
-
N,
|
|
105
|
-
r
|
|
106
|
-
), { data: s } = e || {};
|
|
107
|
-
return Promise.resolve(s);
|
|
108
|
-
} catch (e) {
|
|
109
|
-
return console.log(e), Promise.reject(e);
|
|
110
|
-
}
|
|
111
|
-
}, U = async ({
|
|
112
|
-
callback: r,
|
|
113
|
-
payload: t,
|
|
114
|
-
token_env: e,
|
|
115
|
-
isCallbackNeeded: s = !0
|
|
116
|
-
}) => {
|
|
117
|
-
try {
|
|
118
|
-
const o = t;
|
|
119
|
-
window?.partner_service_enabled === "1" && (o.partner_service_enabled = !0);
|
|
120
|
-
const n = await i(e.token, e.envName).post(
|
|
121
|
-
I,
|
|
122
|
-
{
|
|
123
|
-
...o
|
|
124
|
-
}
|
|
125
|
-
), { data: a } = n || {}, { error: c } = a || {};
|
|
126
|
-
if (c)
|
|
127
|
-
throw new Error(c);
|
|
128
|
-
if (s)
|
|
129
|
-
r(a);
|
|
130
|
-
else return a;
|
|
131
|
-
} catch (o) {
|
|
132
|
-
console.log(o);
|
|
133
|
-
}
|
|
134
|
-
}, F = async ({ doc_id: r = "", doc_rid: t = "" }, e, s, o, n) => {
|
|
135
|
-
try {
|
|
136
|
-
const a = {
|
|
137
|
-
branch_id: s,
|
|
138
|
-
doctor_id: r || o,
|
|
139
|
-
doctor_role_id: t || n
|
|
140
|
-
}, c = await p(e.token, e.envName).post(
|
|
141
|
-
_,
|
|
142
|
-
a
|
|
143
|
-
), { data: m } = c || {};
|
|
144
|
-
return Promise.resolve(m);
|
|
145
|
-
} catch (a) {
|
|
146
|
-
return console.error("Error fetching visitpad preference:", a), Promise.reject(a);
|
|
147
|
-
}
|
|
148
|
-
}, $ = async (r, t) => {
|
|
149
|
-
try {
|
|
150
|
-
const e = new URLSearchParams();
|
|
151
|
-
e.append("reg_mobile_number", r);
|
|
152
|
-
const s = await P(t.token, t.envName).post(D, e, {
|
|
153
|
-
headers: {
|
|
154
|
-
"Content-Type": "application/x-www-form-urlencoded"
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
return Promise.resolve(s?.data);
|
|
158
|
-
} catch (e) {
|
|
159
|
-
return console.log(e), Promise.reject(e);
|
|
160
|
-
}
|
|
161
|
-
}, V = async (r, t, e) => {
|
|
162
|
-
try {
|
|
163
|
-
const s = new URLSearchParams();
|
|
164
|
-
s.append("reg_mobile_number", r), s.append("reg_mobile_otp", t);
|
|
165
|
-
const o = await P(e.token, e.envName).post(y, s, {
|
|
166
|
-
headers: {
|
|
167
|
-
"Content-Type": "application/x-www-form-urlencoded"
|
|
168
|
-
}
|
|
169
|
-
});
|
|
170
|
-
return Promise.resolve(o?.data);
|
|
171
|
-
} catch (s) {
|
|
172
|
-
return console.log(s), Promise.reject(s);
|
|
173
|
-
}
|
|
174
|
-
};
|
|
175
|
-
export {
|
|
176
|
-
A,
|
|
177
|
-
I as G,
|
|
178
|
-
w as U,
|
|
179
|
-
j as a,
|
|
180
|
-
Y as b,
|
|
181
|
-
V as c,
|
|
182
|
-
U as d,
|
|
183
|
-
M as e,
|
|
184
|
-
L as f,
|
|
185
|
-
S as g,
|
|
186
|
-
b as h,
|
|
187
|
-
O as i,
|
|
188
|
-
F as j,
|
|
189
|
-
$ as p,
|
|
190
|
-
G as u
|
|
191
|
-
};
|