hplx-feature-library 1.0.224 → 1.0.226
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-DLCcL2Li.js → APIAction-CTNOzVOC.js} +24 -23
- package/dist/APIAction-DB6Ulkss.cjs +1 -0
- package/dist/AllInvestigations/components/AllInvestigationsTable.d.ts +19 -0
- package/dist/AllInvestigations/index.d.ts +1 -0
- package/dist/AllInvestigations/index.js +4 -0
- package/dist/AllInvestigations/utils/test-tange-util.d.ts +8 -0
- package/dist/AllInvestigationsTable-BDLPOHjr.cjs +79 -0
- package/dist/AllInvestigationsTable-Dg-YXASz.js +17065 -0
- package/dist/Attachments/index.js +1 -1
- package/dist/{Attachments-Bf4IIvHa.js → Attachments-4FIsCWlc.js} +6179 -6296
- package/dist/Attachments-Dr6yedl9.cjs +186 -0
- package/dist/NineDots/index.js +1 -1
- package/dist/{NineDots-gflwjmeo.js → NineDots-B3ZRumoi.js} +2 -2
- package/dist/{NineDots-q--wtv3_.cjs → NineDots-CUXiXRmO.cjs} +2 -2
- package/dist/PatientAddEdit/index.js +1 -1
- package/dist/{PatientAddEdit-DRQcxWYN.js → PatientAddEdit-9W7ONHSd.js} +7 -6
- package/dist/PatientAddEdit-DmpV8z5a.cjs +7 -0
- package/dist/PatientPopup/index.js +1 -1
- package/dist/PatientPopupContainer-B9Ev8xjs.cjs +36 -0
- package/dist/{PatientPopupContainer-B283bpwr.js → PatientPopupContainer-DpCBNO2c.js} +8 -7
- package/dist/PediatricsCalculator/index.js +1 -1
- package/dist/PediatricsCalculatorTable-B4fTy1J5.cjs +9 -0
- package/dist/{PediatricsCalculatorTable-qu37FR7D.js → PediatricsCalculatorTable-G0ttbDpi.js} +228 -236
- package/dist/{PrintModal-Bum6_fNo.js → PrintModal-BF2-PDRX.js} +9 -20
- package/dist/{PrintModal-tamolKuC.cjs → PrintModal-mNA_qJpW.cjs} +11 -11
- package/dist/{ReusableModal-2GKjVVbf.cjs → ReusableModal-CIgDYOWZ.cjs} +1 -1
- package/dist/{ReusableModal-BL_DwV8I.js → ReusableModal-CT4_gW1b.js} +1 -1
- package/dist/ReusableTable/ReusableTable.d.ts +3 -0
- package/dist/ReusableTable/ReusableTableConstants.d.ts +8 -0
- package/dist/ReusableTable/ReusableTableTypes.d.ts +96 -0
- package/dist/ReusableTable/components/EmptyTableContainer.d.ts +12 -0
- package/dist/ReusableTable/components/FilterCheckbox.d.ts +8 -0
- package/dist/ReusableTable/components/FilterDropdown.d.ts +17 -0
- package/dist/ReusableTable/components/Pagination.d.ts +2 -0
- package/dist/ReusableTable/components/TableBody.d.ts +2 -0
- package/dist/ReusableTable/components/TableCell.d.ts +3 -0
- package/dist/ReusableTable/components/TableFilterSelect.d.ts +12 -0
- package/dist/ReusableTable/components/TableHead.d.ts +2 -0
- package/dist/ReusableTable/components/TableMain.d.ts +2 -0
- package/dist/ReusableTable/components/TableRow.d.ts +3 -0
- package/dist/ReusableTable/context/TableContext.d.ts +21 -0
- package/dist/ReusableTable/context/TableContextBase.d.ts +26 -0
- package/dist/ReusableTable/context/useTableContext.d.ts +2 -0
- package/dist/SearchPatients/index.js +1 -1
- package/dist/{SearchPatients-DbYAGumB.cjs → SearchPatients-6D7IL_wj.cjs} +1 -1
- package/dist/{SearchPatients-BbtytMYS.js → SearchPatients-D7cCFV9o.js} +3 -3
- package/dist/TrendGraphs/AreaChartComponent.d.ts +9 -0
- package/dist/TrendGraphs/LineChartComponent/DataPointToolTip.d.ts +16 -0
- package/dist/TrendGraphs/LineChartComponent/LineChartBody.d.ts +2 -0
- package/dist/TrendGraphs/LineChartComponent/LineChartHeader.d.ts +2 -0
- package/dist/TrendGraphs/LineChartComponent/index.d.ts +2 -0
- package/dist/TrendGraphs/context/index.d.ts +2 -0
- package/dist/TrendGraphs/hooks/useTrendGraphContext.d.ts +2 -0
- package/dist/TrendGraphs/utils/index.d.ts +4 -0
- package/dist/UserProfile/index.js +1 -1
- package/dist/{UserProfile-D3Rhhuj9.cjs → UserProfile-4L3aOHNv.cjs} +4 -4
- package/dist/{UserProfile-jDWt9g20.js → UserProfile-D3cCwQxw.js} +9 -8
- package/dist/clsx-C11secjj.cjs +1 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/common-utils-CprPMjtz.js +1952 -0
- package/dist/common-utils-DrDXKNhv.cjs +6 -0
- package/dist/components/Modal.d.ts +5 -0
- package/dist/constants/TrendGraphsConstants.d.ts +2 -0
- package/dist/dayjs.min-D52_GdfV.js +284 -0
- package/dist/dayjs.min-DXp74Ozx.cjs +1 -0
- package/dist/hplx-feature-library.css +1 -1
- package/dist/{index-UPYT3B9g.js → index-Bd0CDVpH.js} +3 -2
- package/dist/index-CJFGOBPb.js +122 -0
- package/dist/{index-CJ2AKRoq.cjs → index-DQlbIHh3.cjs} +26 -26
- package/dist/index-DfcUmlge.cjs +17 -0
- package/dist/{index-CRCsQdYf.cjs → index-DkA8S5IK.cjs} +1 -1
- package/dist/{index-BzwuwvT5.js → index-T1lUjzhG.js} +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +15 -13
- package/dist/print-pdf/index.js +1 -1
- package/dist/types/AllInvestigationTypes/index.js +4 -0
- package/dist/types/AllInvestigationTypes.d.ts +45 -0
- package/dist/types/TrendGraphTypes.d.ts +19 -0
- package/dist/useClickOutside-BjJyGTec.js +14 -0
- package/dist/useClickOutside-DsVG12Cs.cjs +1 -0
- package/package.json +11 -1
- package/dist/APIAction-Bev2spv1.cjs +0 -1
- package/dist/Attachments-BIIHwdo1.cjs +0 -202
- package/dist/PatientAddEdit-DtcwFtoA.cjs +0 -7
- package/dist/PatientPopupContainer-CRyDfB0s.cjs +0 -36
- package/dist/PediatricsCalculatorTable-bTvt7SWQ.cjs +0 -9
- package/dist/common-utils-BNaPcohw.cjs +0 -6
- package/dist/common-utils-BidUvSFN.js +0 -2233
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { h as p, R as i, b as d
|
|
2
|
-
|
|
1
|
+
import { h as p, R as i, b as d } from "./common-utils-CprPMjtz.js";
|
|
2
|
+
import { d as l } from "./dayjs.min-D52_GdfV.js";
|
|
3
|
+
const P = "/preferences/doctor", E = "/preferences/visitpad", u = "/preferences/branch", f = "patient/search", _ = "../api/modelGetAddPatientSuggestion.php", g = "appointments/get", h = "/v1/patient/add", A = "/v1/patients", w = "../api/modelSavePatientImage.php", D = "../api/modelDeletePatientImage.php", T = "/patient/detail", R = async (s = "", t = {}, e, o, r) => {
|
|
3
4
|
const { doc_rid: n = "" } = t;
|
|
4
5
|
let a = "";
|
|
5
6
|
Array.isArray(s) ? a = s.map((c) => `&fields_required=${encodeURIComponent(c)}`).join("") : s && (a = `&fields_required=${encodeURIComponent(s)}`);
|
|
@@ -11,7 +12,7 @@ const P = "/preferences/doctor", E = "/preferences/visitpad", u = "/preferences/
|
|
|
11
12
|
} catch (c) {
|
|
12
13
|
return console.error("Error fetching doctor preference:", c), Promise.reject(c);
|
|
13
14
|
}
|
|
14
|
-
},
|
|
15
|
+
}, v = async (s = "", t, e) => {
|
|
15
16
|
try {
|
|
16
17
|
const o = await i(e.token, e.envName).get(
|
|
17
18
|
`${u}/${t}?fields_required=${s}`
|
|
@@ -35,7 +36,7 @@ const P = "/preferences/doctor", E = "/preferences/visitpad", u = "/preferences/
|
|
|
35
36
|
} catch (n) {
|
|
36
37
|
return n instanceof Error && console.error("Error fetching appointments:", n.message), n?.response?.status === 401 && d(), Promise.reject(n);
|
|
37
38
|
}
|
|
38
|
-
},
|
|
39
|
+
}, Y = async (s, t) => {
|
|
39
40
|
let e = [];
|
|
40
41
|
const o = await N(
|
|
41
42
|
l().format("YYYY-MM-DD"),
|
|
@@ -47,17 +48,17 @@ const P = "/preferences/doctor", E = "/preferences/visitpad", u = "/preferences/
|
|
|
47
48
|
o?.appointments?.length && (e = o.appointments), window.filteredUpcomingAppts = [], e.length && (s.term?.length ? window.filteredUpcomingAppts = e.filter((r) => r.org_person_name.length && r.org_person_name.toLowerCase().includes(s.term.toLowerCase()) && r.appnt_date >= l(/* @__PURE__ */ new Date()).format("YYYY-MM-DD") && (r.remote_appnt_status === "CONFIRMED" || r.appnt_status === 0 || r.appnt_status === 3 || r.appnt_status === 5)) : window.filteredUpcomingAppts = e.filter((r) => r.appnt_date >= l(/* @__PURE__ */ new Date()).format("YYYY-MM-DD") && (r.remote_appnt_status === "CONFIRMED" || r.appnt_status === 0 || r.appnt_status === 3 || r.appnt_status === 5)));
|
|
48
49
|
try {
|
|
49
50
|
const r = await i(t.token, t.envName).post(
|
|
50
|
-
|
|
51
|
+
f,
|
|
51
52
|
s
|
|
52
53
|
), { data: n } = r || {};
|
|
53
54
|
return Promise.resolve(n);
|
|
54
55
|
} catch (r) {
|
|
55
56
|
return console.log(r), null;
|
|
56
57
|
}
|
|
57
|
-
},
|
|
58
|
+
}, j = async (s) => {
|
|
58
59
|
try {
|
|
59
60
|
const t = await p(s.token, s.envName).post(
|
|
60
|
-
|
|
61
|
+
_
|
|
61
62
|
), { data: e } = t || {}, { apiError: o } = e || {};
|
|
62
63
|
if (o)
|
|
63
64
|
throw new Error(o);
|
|
@@ -65,7 +66,7 @@ const P = "/preferences/doctor", E = "/preferences/visitpad", u = "/preferences/
|
|
|
65
66
|
} catch (t) {
|
|
66
67
|
return t instanceof Error && console.error("Error fetching referred by list:", t.message), t?.response?.status === 401 && d(), Promise.reject(t);
|
|
67
68
|
}
|
|
68
|
-
},
|
|
69
|
+
}, C = async (s, t) => {
|
|
69
70
|
try {
|
|
70
71
|
const e = await i(t.token, t.envName).post(h, {
|
|
71
72
|
...s,
|
|
@@ -75,7 +76,7 @@ const P = "/preferences/doctor", E = "/preferences/visitpad", u = "/preferences/
|
|
|
75
76
|
} catch (e) {
|
|
76
77
|
return Promise.reject(e);
|
|
77
78
|
}
|
|
78
|
-
},
|
|
79
|
+
}, G = async (s, t) => {
|
|
79
80
|
try {
|
|
80
81
|
const e = await i(t.token, t.envName).put(
|
|
81
82
|
A + "/" + s?.person_role_id,
|
|
@@ -87,7 +88,7 @@ const P = "/preferences/doctor", E = "/preferences/visitpad", u = "/preferences/
|
|
|
87
88
|
} catch (e) {
|
|
88
89
|
return console.log(e), Promise.reject(e);
|
|
89
90
|
}
|
|
90
|
-
},
|
|
91
|
+
}, M = async (s, t) => {
|
|
91
92
|
try {
|
|
92
93
|
const e = await p(t.token, t.envName).post(
|
|
93
94
|
w,
|
|
@@ -97,7 +98,7 @@ const P = "/preferences/doctor", E = "/preferences/visitpad", u = "/preferences/
|
|
|
97
98
|
} catch (e) {
|
|
98
99
|
return console.log(e), Promise.reject(e);
|
|
99
100
|
}
|
|
100
|
-
},
|
|
101
|
+
}, b = async (s, t) => {
|
|
101
102
|
try {
|
|
102
103
|
const e = await p(t.token, t.envName).post(
|
|
103
104
|
D,
|
|
@@ -107,7 +108,7 @@ const P = "/preferences/doctor", E = "/preferences/visitpad", u = "/preferences/
|
|
|
107
108
|
} catch (e) {
|
|
108
109
|
return console.log(e), Promise.reject(e);
|
|
109
110
|
}
|
|
110
|
-
},
|
|
111
|
+
}, L = async ({
|
|
111
112
|
callback: s,
|
|
112
113
|
payload: t,
|
|
113
114
|
token_env: e,
|
|
@@ -130,7 +131,7 @@ const P = "/preferences/doctor", E = "/preferences/visitpad", u = "/preferences/
|
|
|
130
131
|
} catch (r) {
|
|
131
132
|
console.log(r);
|
|
132
133
|
}
|
|
133
|
-
},
|
|
134
|
+
}, S = async ({ doc_id: s = "", doc_rid: t = "" }, e, o, r, n) => {
|
|
134
135
|
try {
|
|
135
136
|
const a = {
|
|
136
137
|
branch_id: o,
|
|
@@ -147,14 +148,14 @@ const P = "/preferences/doctor", E = "/preferences/visitpad", u = "/preferences/
|
|
|
147
148
|
};
|
|
148
149
|
export {
|
|
149
150
|
T as G,
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
151
|
+
v as a,
|
|
152
|
+
j as b,
|
|
153
|
+
L as c,
|
|
154
|
+
C as d,
|
|
155
|
+
M as e,
|
|
156
|
+
b as f,
|
|
157
|
+
Y as g,
|
|
158
|
+
R as h,
|
|
159
|
+
S as i,
|
|
160
|
+
G as u
|
|
160
161
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("./common-utils-DrDXKNhv.cjs"),P=require("./dayjs.min-DXp74Ozx.cjs"),m="/preferences/doctor",d="/preferences/visitpad",E="/preferences/branch",u="patient/search",A="../api/modelGetAddPatientSuggestion.php",g="appointments/get",_="/v1/patient/add",h="/v1/patients",f="../api/modelSavePatientImage.php",I="../api/modelDeletePatientImage.php",l="/patient/detail",D=async(s="",t={},e,n,r)=>{const{doc_rid:o=""}=t;let a="";Array.isArray(s)?a=s.map(c=>`&fields_required=${encodeURIComponent(c)}`).join(""):s&&(a=`&fields_required=${encodeURIComponent(s)}`);try{const c=await i.hplxAPI(r?.token,r.envName).get(`${m}/${o||e}?branch_id=${n}`+a),{data:p}=c||{};return Promise.resolve(p)}catch(c){return console.error("Error fetching doctor preference:",c),Promise.reject(c)}},T=async(s="",t,e)=>{try{const n=await i.ReArchAPI(e.token,e.envName).get(`${E}/${t}?fields_required=${s}`),{data:r}=n||{};return Promise.resolve(r)}catch(n){return console.log(n),Promise.reject(n)}},w=async(s,t,e,n,r)=>{try{const o={appnt_date:s,doctor_role_id:t,doctor_id:n,org_branch_id:e},a=await i.ReArchAPI(r.token,r.envName).post(g,{...o}),{data:c}=a||{};return Promise.resolve(c)}catch(o){return o instanceof Error&&console.error("Error fetching appointments:",o.message),o?.response?.status===401&&i.handle401Status(),Promise.reject(o)}},y=async(s,t)=>{let e=[];const n=await w(P.dayjs().format("YYYY-MM-DD"),s.doctor_role_id,s.branch_id,s.doctor_id,t);n?.appointments?.length&&(e=n.appointments),window.filteredUpcomingAppts=[],e.length&&(s.term?.length?window.filteredUpcomingAppts=e.filter(r=>r.org_person_name.length&&r.org_person_name.toLowerCase().includes(s.term.toLowerCase())&&r.appnt_date>=P.dayjs(new Date).format("YYYY-MM-DD")&&(r.remote_appnt_status==="CONFIRMED"||r.appnt_status===0||r.appnt_status===3||r.appnt_status===5)):window.filteredUpcomingAppts=e.filter(r=>r.appnt_date>=P.dayjs(new Date).format("YYYY-MM-DD")&&(r.remote_appnt_status==="CONFIRMED"||r.appnt_status===0||r.appnt_status===3||r.appnt_status===5)));try{const r=await i.ReArchAPI(t.token,t.envName).post(u,s),{data:o}=r||{};return Promise.resolve(o)}catch(r){return console.log(r),null}},N=async s=>{try{const t=await i.hplxAPI(s.token,s.envName).post(A),{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&&i.handle401Status(),Promise.reject(t)}},R=async(s,t)=>{try{const e=await i.ReArchAPI(t.token,t.envName).post(_,{...s,token:t.token}),{data:n}=e||{};return Promise.resolve(n)}catch(e){return Promise.reject(e)}},j=async(s,t)=>{try{const e=await i.ReArchAPI(t.token,t.envName).put(h+"/"+s?.person_role_id,{...s}),{data:n}=e||{};return Promise.resolve(n)}catch(e){return console.log(e),Promise.reject(e)}},v=async(s,t)=>{try{const e=await i.hplxAPI(t.token,t.envName).post(f,s),{data:n}=e||{};return Promise.resolve(n)}catch(e){return console.log(e),Promise.reject(e)}},Y=async(s,t)=>{try{const e=await i.hplxAPI(t.token,t.envName).post(I,s),{data:n}=e||{};return Promise.resolve(n)}catch(e){return console.log(e),Promise.reject(e)}},C=async({callback:s,payload:t,token_env:e,isCallbackNeeded:n=!0})=>{try{const r=t;window?.partner_service_enabled==="1"&&(r.partner_service_enabled=!0);const o=await i.ReArchAPI(e.token,e.envName).post(l,{...r}),{data:a}=o||{},{error:c}=a||{};if(c)throw new Error(c);if(n)s(a);else return a}catch(r){console.log(r)}},G=async({doc_id:s="",doc_rid:t=""},e,n,r,o)=>{try{const a={branch_id:n,doctor_id:s||r,doctor_role_id:t||o},c=await i.hplxAPI(e.token,e.envName).post(d,a),{data:p}=c||{};return Promise.resolve(p)}catch(a){return console.error("Error fetching visitpad preference:",a),Promise.reject(a)}};exports.GET_PATIENT_DETAILS=l;exports.addPatientDetails=R;exports.addPatientImage=v;exports.deletePatientImage=Y;exports.getBranchPreferences=T;exports.getDoctorPreference=D;exports.getPatientDetails=C;exports.getPatientList=y;exports.getReferredByList=N;exports.getVisitpadPreference=G;exports.updatePatientDetails=j;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { I_InvestigationTestWithPrint, I_TestRanges } from '../../types/AllInvestigationTypes';
|
|
2
|
+
interface InvestigationsTableProps {
|
|
3
|
+
patientAge: number;
|
|
4
|
+
patientGender: string;
|
|
5
|
+
data: I_InvestigationTestWithPrint[];
|
|
6
|
+
testDetails: I_TestRanges[];
|
|
7
|
+
enableCheckboxesToSelect: boolean;
|
|
8
|
+
tableHeaderRowClasses?: string;
|
|
9
|
+
investigationCheckBoxMap: Map<string, boolean>;
|
|
10
|
+
onColumnCheckboxClickHandler: (key: string, isClicked: boolean) => void;
|
|
11
|
+
onRowCheckboxClickHandler: (testId: string) => void;
|
|
12
|
+
onRefresh: () => void;
|
|
13
|
+
scrollOverflowXToEnd?: boolean;
|
|
14
|
+
displayOutOfRangeStyles: boolean;
|
|
15
|
+
enableDateColsEditing?: boolean;
|
|
16
|
+
onInvValueCellSave?: (updatedData: I_InvestigationTestWithPrint) => Promise<boolean>;
|
|
17
|
+
}
|
|
18
|
+
declare const AllInvestigationsTable: ({ patientAge, patientGender, data, testDetails, enableCheckboxesToSelect, tableHeaderRowClasses, investigationCheckBoxMap, onColumnCheckboxClickHandler, onRowCheckboxClickHandler, onRefresh, scrollOverflowXToEnd, displayOutOfRangeStyles, enableDateColsEditing, onInvValueCellSave, }: InvestigationsTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export default AllInvestigationsTable;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './components/AllInvestigationsTable';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const getRangeForTest: (age: number, gender: string, test_id: string, value: string, rulesWDB?: string) => {
|
|
2
|
+
isOutOfRange: boolean;
|
|
3
|
+
rule: any;
|
|
4
|
+
};
|
|
5
|
+
export declare const CheckValidation: (rule: {
|
|
6
|
+
min: any;
|
|
7
|
+
max: any;
|
|
8
|
+
}, value: string | any[]) => boolean;
|