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.
Files changed (88) hide show
  1. package/dist/{APIAction-DLCcL2Li.js → APIAction-CTNOzVOC.js} +24 -23
  2. package/dist/APIAction-DB6Ulkss.cjs +1 -0
  3. package/dist/AllInvestigations/components/AllInvestigationsTable.d.ts +19 -0
  4. package/dist/AllInvestigations/index.d.ts +1 -0
  5. package/dist/AllInvestigations/index.js +4 -0
  6. package/dist/AllInvestigations/utils/test-tange-util.d.ts +8 -0
  7. package/dist/AllInvestigationsTable-BDLPOHjr.cjs +79 -0
  8. package/dist/AllInvestigationsTable-Dg-YXASz.js +17065 -0
  9. package/dist/Attachments/index.js +1 -1
  10. package/dist/{Attachments-Bf4IIvHa.js → Attachments-4FIsCWlc.js} +6179 -6296
  11. package/dist/Attachments-Dr6yedl9.cjs +186 -0
  12. package/dist/NineDots/index.js +1 -1
  13. package/dist/{NineDots-gflwjmeo.js → NineDots-B3ZRumoi.js} +2 -2
  14. package/dist/{NineDots-q--wtv3_.cjs → NineDots-CUXiXRmO.cjs} +2 -2
  15. package/dist/PatientAddEdit/index.js +1 -1
  16. package/dist/{PatientAddEdit-DRQcxWYN.js → PatientAddEdit-9W7ONHSd.js} +7 -6
  17. package/dist/PatientAddEdit-DmpV8z5a.cjs +7 -0
  18. package/dist/PatientPopup/index.js +1 -1
  19. package/dist/PatientPopupContainer-B9Ev8xjs.cjs +36 -0
  20. package/dist/{PatientPopupContainer-B283bpwr.js → PatientPopupContainer-DpCBNO2c.js} +8 -7
  21. package/dist/PediatricsCalculator/index.js +1 -1
  22. package/dist/PediatricsCalculatorTable-B4fTy1J5.cjs +9 -0
  23. package/dist/{PediatricsCalculatorTable-qu37FR7D.js → PediatricsCalculatorTable-G0ttbDpi.js} +228 -236
  24. package/dist/{PrintModal-Bum6_fNo.js → PrintModal-BF2-PDRX.js} +9 -20
  25. package/dist/{PrintModal-tamolKuC.cjs → PrintModal-mNA_qJpW.cjs} +11 -11
  26. package/dist/{ReusableModal-2GKjVVbf.cjs → ReusableModal-CIgDYOWZ.cjs} +1 -1
  27. package/dist/{ReusableModal-BL_DwV8I.js → ReusableModal-CT4_gW1b.js} +1 -1
  28. package/dist/ReusableTable/ReusableTable.d.ts +3 -0
  29. package/dist/ReusableTable/ReusableTableConstants.d.ts +8 -0
  30. package/dist/ReusableTable/ReusableTableTypes.d.ts +96 -0
  31. package/dist/ReusableTable/components/EmptyTableContainer.d.ts +12 -0
  32. package/dist/ReusableTable/components/FilterCheckbox.d.ts +8 -0
  33. package/dist/ReusableTable/components/FilterDropdown.d.ts +17 -0
  34. package/dist/ReusableTable/components/Pagination.d.ts +2 -0
  35. package/dist/ReusableTable/components/TableBody.d.ts +2 -0
  36. package/dist/ReusableTable/components/TableCell.d.ts +3 -0
  37. package/dist/ReusableTable/components/TableFilterSelect.d.ts +12 -0
  38. package/dist/ReusableTable/components/TableHead.d.ts +2 -0
  39. package/dist/ReusableTable/components/TableMain.d.ts +2 -0
  40. package/dist/ReusableTable/components/TableRow.d.ts +3 -0
  41. package/dist/ReusableTable/context/TableContext.d.ts +21 -0
  42. package/dist/ReusableTable/context/TableContextBase.d.ts +26 -0
  43. package/dist/ReusableTable/context/useTableContext.d.ts +2 -0
  44. package/dist/SearchPatients/index.js +1 -1
  45. package/dist/{SearchPatients-DbYAGumB.cjs → SearchPatients-6D7IL_wj.cjs} +1 -1
  46. package/dist/{SearchPatients-BbtytMYS.js → SearchPatients-D7cCFV9o.js} +3 -3
  47. package/dist/TrendGraphs/AreaChartComponent.d.ts +9 -0
  48. package/dist/TrendGraphs/LineChartComponent/DataPointToolTip.d.ts +16 -0
  49. package/dist/TrendGraphs/LineChartComponent/LineChartBody.d.ts +2 -0
  50. package/dist/TrendGraphs/LineChartComponent/LineChartHeader.d.ts +2 -0
  51. package/dist/TrendGraphs/LineChartComponent/index.d.ts +2 -0
  52. package/dist/TrendGraphs/context/index.d.ts +2 -0
  53. package/dist/TrendGraphs/hooks/useTrendGraphContext.d.ts +2 -0
  54. package/dist/TrendGraphs/utils/index.d.ts +4 -0
  55. package/dist/UserProfile/index.js +1 -1
  56. package/dist/{UserProfile-D3Rhhuj9.cjs → UserProfile-4L3aOHNv.cjs} +4 -4
  57. package/dist/{UserProfile-jDWt9g20.js → UserProfile-D3cCwQxw.js} +9 -8
  58. package/dist/clsx-C11secjj.cjs +1 -0
  59. package/dist/clsx-OuTLNxxd.js +16 -0
  60. package/dist/common-utils-CprPMjtz.js +1952 -0
  61. package/dist/common-utils-DrDXKNhv.cjs +6 -0
  62. package/dist/components/Modal.d.ts +5 -0
  63. package/dist/constants/TrendGraphsConstants.d.ts +2 -0
  64. package/dist/dayjs.min-D52_GdfV.js +284 -0
  65. package/dist/dayjs.min-DXp74Ozx.cjs +1 -0
  66. package/dist/hplx-feature-library.css +1 -1
  67. package/dist/{index-UPYT3B9g.js → index-Bd0CDVpH.js} +3 -2
  68. package/dist/index-CJFGOBPb.js +122 -0
  69. package/dist/{index-CJ2AKRoq.cjs → index-DQlbIHh3.cjs} +26 -26
  70. package/dist/index-DfcUmlge.cjs +17 -0
  71. package/dist/{index-CRCsQdYf.cjs → index-DkA8S5IK.cjs} +1 -1
  72. package/dist/{index-BzwuwvT5.js → index-T1lUjzhG.js} +1 -1
  73. package/dist/index.d.ts +1 -0
  74. package/dist/index.js +15 -13
  75. package/dist/print-pdf/index.js +1 -1
  76. package/dist/types/AllInvestigationTypes/index.js +4 -0
  77. package/dist/types/AllInvestigationTypes.d.ts +45 -0
  78. package/dist/types/TrendGraphTypes.d.ts +19 -0
  79. package/dist/useClickOutside-BjJyGTec.js +14 -0
  80. package/dist/useClickOutside-DsVG12Cs.cjs +1 -0
  81. package/package.json +11 -1
  82. package/dist/APIAction-Bev2spv1.cjs +0 -1
  83. package/dist/Attachments-BIIHwdo1.cjs +0 -202
  84. package/dist/PatientAddEdit-DtcwFtoA.cjs +0 -7
  85. package/dist/PatientPopupContainer-CRyDfB0s.cjs +0 -36
  86. package/dist/PediatricsCalculatorTable-bTvt7SWQ.cjs +0 -9
  87. package/dist/common-utils-BNaPcohw.cjs +0 -6
  88. package/dist/common-utils-BidUvSFN.js +0 -2233
@@ -0,0 +1,17 @@
1
+ "use strict";const T=require("react");var l={exports:{}},y={};/**
2
+ * @license React
3
+ * use-sync-external-store-shim.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var L;function A(){if(L)return y;L=1;var i=T;function _(t,o){return t===o&&(t!==0||1/t===1/o)||t!==t&&o!==o}var c=typeof Object.is=="function"?Object.is:_,E=i.useState,u=i.useEffect,S=i.useLayoutEffect,p=i.useDebugValue;function O(t,o){var e=o(),n=E({inst:{value:e,getSnapshot:o}}),r=n[0].inst,a=n[1];return S(function(){r.value=e,r.getSnapshot=o,f(r)&&a({inst:r})},[t,e,o]),u(function(){return f(r)&&a({inst:r}),t(function(){f(r)&&a({inst:r})})},[t]),p(e),e}function f(t){var o=t.getSnapshot;t=t.value;try{var e=o();return!c(t,e)}catch{return!0}}function v(t,o){return o()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?v:O;return y.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:d,y}var m={};/**
10
+ * @license React
11
+ * use-sync-external-store-shim.development.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var w;function R(){return w||(w=1,process.env.NODE_ENV!=="production"&&function(){function i(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}function _(e,n){d||u.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var r=n();if(!t){var a=n();S(r,a)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),t=!0)}a=p({inst:{value:r,getSnapshot:n}});var s=a[0].inst,h=a[1];return f(function(){s.value=r,s.getSnapshot=n,c(s)&&h({inst:s})},[e,r,n]),O(function(){return c(s)&&h({inst:s}),e(function(){c(s)&&h({inst:s})})},[e]),v(r),r}function c(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!S(e,r)}catch{return!0}}function E(e,n){return n()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var u=T,S=typeof Object.is=="function"?Object.is:i,p=u.useState,O=u.useEffect,f=u.useLayoutEffect,v=u.useDebugValue,d=!1,t=!1,o=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?E:_;m.useSyncExternalStore=u.useSyncExternalStore!==void 0?u.useSyncExternalStore:o,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),m}var x;function g(){return x||(x=1,process.env.NODE_ENV==="production"?l.exports=A():l.exports=R()),l.exports}exports.requireShim=g;
@@ -1,4 +1,4 @@
1
- "use strict";const X=require("./index-CJ2AKRoq.cjs"),pe=require("react"),Ee=require("react-dom"),Se=require("./warning-W0tkkrLJ.cjs");var Y={exports:{}},W={},G={exports:{}},T={},J={exports:{}},te;function ve(){return te||(te=1,function(p,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=a;/*!
1
+ "use strict";const X=require("./index-DQlbIHh3.cjs"),pe=require("react"),Ee=require("react-dom"),Se=require("./warning-W0tkkrLJ.cjs");var Y={exports:{}},W={},G={exports:{}},T={},J={exports:{}},te;function ve(){return te||(te=1,function(p,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=a;/*!
2
2
  * Adapted from jQuery UI core
3
3
  *
4
4
  * http://jqueryui.com
@@ -1,4 +1,4 @@
1
- import { r as de, f as Ee, g as Se } from "./index-UPYT3B9g.js";
1
+ import { r as de, f as Ee, g as Se } from "./index-Bd0CDVpH.js";
2
2
  import pe from "react";
3
3
  import Me from "react-dom";
4
4
  import { r as we } from "./warning-BozzKWdr.js";
package/dist/index.d.ts CHANGED
@@ -6,3 +6,4 @@ export { default as SearchPatients } from './SearchPatients';
6
6
  export { default as NineDots } from './nineDots';
7
7
  export { default as UserProfile } from './userProfile';
8
8
  export { default as PrintModal } from './print-pdf/index';
9
+ export { default as AllInvestigations } from './AllInvestigations';
package/dist/index.js CHANGED
@@ -1,18 +1,20 @@
1
- import { P as o } from "./PediatricsCalculatorTable-qu37FR7D.js";
2
- import { P as e } from "./PatientPopupContainer-B283bpwr.js";
3
- import { A as P } from "./Attachments-Bf4IIvHa.js";
4
- import { P as f } from "./PatientAddEdit-DRQcxWYN.js";
5
- import { S as m } from "./SearchPatients-BbtytMYS.js";
6
- import { N as n } from "./NineDots-gflwjmeo.js";
7
- import { U as c } from "./UserProfile-jDWt9g20.js";
8
- import { P as A } from "./PrintModal-Bum6_fNo.js";
1
+ import { P as r } from "./PediatricsCalculatorTable-G0ttbDpi.js";
2
+ import { P as e } from "./PatientPopupContainer-DpCBNO2c.js";
3
+ import { A as i } from "./Attachments-4FIsCWlc.js";
4
+ import { P } from "./PatientAddEdit-9W7ONHSd.js";
5
+ import { S as m } from "./SearchPatients-D7cCFV9o.js";
6
+ import { N as n } from "./NineDots-B3ZRumoi.js";
7
+ import { U as d } from "./UserProfile-D3cCwQxw.js";
8
+ import { P as c } from "./PrintModal-BF2-PDRX.js";
9
+ import { A as u } from "./AllInvestigationsTable-Dg-YXASz.js";
9
10
  export {
10
- P as Attachments,
11
+ u as AllInvestigations,
12
+ i as Attachments,
11
13
  n as NineDots,
12
- f as PatientAddEdit,
14
+ P as PatientAddEdit,
13
15
  e as PatientPopup,
14
- o as PediatricsCalculator,
15
- A as PrintModal,
16
+ r as PediatricsCalculator,
17
+ c as PrintModal,
16
18
  m as SearchPatients,
17
- c as UserProfile
19
+ d as UserProfile
18
20
  };
@@ -1,4 +1,4 @@
1
- import { P as f } from "../PrintModal-Bum6_fNo.js";
1
+ import { P as f } from "../PrintModal-BF2-PDRX.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,4 @@
1
+ var I = /* @__PURE__ */ ((A) => (A.CLINICAL_NOTES = "CLINICAL_NOTES", A.DISCHARGE_SUMMARY = "DISCHARGE_SUMMARY", A.INVESTIGATIONS = "INVESTIGATIONS", A))(I || {});
2
+ export {
3
+ I as E_INVESTIGATIONS_SOURCE
4
+ };
@@ -0,0 +1,45 @@
1
+ export declare enum E_INVESTIGATIONS_SOURCE {
2
+ CLINICAL_NOTES = "CLINICAL_NOTES",
3
+ DISCHARGE_SUMMARY = "DISCHARGE_SUMMARY",
4
+ INVESTIGATIONS = "INVESTIGATIONS"
5
+ }
6
+ export interface I_InvestigationTest {
7
+ test_id: string;
8
+ test_value: string;
9
+ out_of_range: boolean;
10
+ watermelon_id?: string;
11
+ created_on: string;
12
+ test_name?: string;
13
+ test_unit?: string;
14
+ source_id: number;
15
+ source_type: E_INVESTIGATIONS_SOURCE;
16
+ isEditPermitted?: boolean;
17
+ id: string;
18
+ }
19
+ export interface I_InvestigationTestWithPrint extends I_InvestigationTest {
20
+ isPrintable?: boolean;
21
+ test_date: string;
22
+ }
23
+ export interface I_AllInvestigations {
24
+ isPrintable: boolean;
25
+ test_id: string;
26
+ test_name: string;
27
+ test_unit: string;
28
+ [key: string]: string | boolean | I_AllInvestigationsDateDetail;
29
+ }
30
+ export interface I_AllInvestigationsDateDetail {
31
+ test_value: string;
32
+ out_of_range: boolean;
33
+ created_on: string;
34
+ source_id: number;
35
+ source_type: E_INVESTIGATIONS_SOURCE;
36
+ isEditPermitted: boolean;
37
+ id: string;
38
+ }
39
+ export interface I_TestRanges {
40
+ test_id: string;
41
+ test_names: string;
42
+ test_units: string;
43
+ test_range_text: string;
44
+ test_range_rule: string;
45
+ }
@@ -0,0 +1,19 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ export interface TrendGraphDataPoint {
3
+ date: string;
4
+ value: number;
5
+ }
6
+ export interface TrendGraphData {
7
+ unit: string;
8
+ data: TrendGraphDataPoint[];
9
+ testName: string;
10
+ color: AreaGraphColor;
11
+ }
12
+ export interface AreaGraphColor {
13
+ lineColor: string;
14
+ areaColor: string;
15
+ }
16
+ export interface TrendGraphContextType {
17
+ data: TrendGraphData;
18
+ setShowLineChart: Dispatch<SetStateAction<boolean>>;
19
+ }
@@ -0,0 +1,14 @@
1
+ import { useEffect as s } from "react";
2
+ const r = (e, t) => {
3
+ s(() => {
4
+ const n = (o) => {
5
+ e.current && !e.current.contains(o.target) && t();
6
+ };
7
+ return document.addEventListener("mousedown", n), () => {
8
+ document.removeEventListener("mousedown", n);
9
+ };
10
+ }, [e, t]);
11
+ };
12
+ export {
13
+ r as u
14
+ };
@@ -0,0 +1 @@
1
+ "use strict";const u=require("react"),c=(e,t)=>{u.useEffect(()=>{const n=s=>{e.current&&!e.current.contains(s.target)&&t()};return document.addEventListener("mousedown",n),()=>{document.removeEventListener("mousedown",n)}},[e,t])};exports.useClickOutside=c;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hplx-feature-library",
3
3
  "private": false,
4
- "version": "1.0.224",
4
+ "version": "1.0.226",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "npm i hplx-react-elements-dev@qa && vite",
@@ -94,6 +94,14 @@
94
94
  "./SearchPatients": {
95
95
  "import": "./dist/SearchPatients/index.js",
96
96
  "types": "./dist/SearchPatients/index.d.ts"
97
+ },
98
+ "./AllInvestigations": {
99
+ "import": "./dist/AllInvestigations/index.js",
100
+ "types": "./dist/AllInvestigations/index.d.ts"
101
+ },
102
+ "./Types/AllInvestigationTypes": {
103
+ "import": "./dist/types/AllInvestigationTypes/index.js",
104
+ "types": "./dist/types/AllInvestigationTypes.d.ts"
97
105
  }
98
106
  },
99
107
  "dependencies": {
@@ -111,6 +119,7 @@
111
119
  "react-konva": "^18.2.12",
112
120
  "react-router-dom": "^7.9.4",
113
121
  "react-table": "^7.8.0",
122
+ "recharts": "^3.1.2",
114
123
  "swr": "^2.3.4",
115
124
  "to-words": "^4.7.0",
116
125
  "yup": "^1.7.1",
@@ -143,6 +152,7 @@
143
152
  "husky": "^9.1.7",
144
153
  "jsdom": "^26.1.0",
145
154
  "lint-staged": "^16.1.2",
155
+ "node": "^24.6.0",
146
156
  "postcss": "^8.5.6",
147
157
  "prettier": "^3.6.2",
148
158
  "tailwindcss": "^3.4.17",
@@ -1 +0,0 @@
1
- "use strict";const o=require("./common-utils-BNaPcohw.cjs"),l="/preferences/doctor",m="/preferences/visitpad",d="/preferences/branch",E="patient/search",A="../api/modelGetAddPatientSuggestion.php",u="appointments/get",g="/v1/patient/add",h="/v1/patients",_="../api/modelSavePatientImage.php",f="../api/modelDeletePatientImage.php",P="/patient/detail",I=async(s="",t={},e,n,r)=>{const{doc_rid:a=""}=t;let c="";Array.isArray(s)?c=s.map(i=>`&fields_required=${encodeURIComponent(i)}`).join(""):s&&(c=`&fields_required=${encodeURIComponent(s)}`);try{const i=await o.hplxAPI(r?.token,r.envName).get(`${l}/${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)}},D=async(s="",t,e)=>{try{const n=await o.ReArchAPI(e.token,e.envName).get(`${d}/${t}?fields_required=${s}`),{data:r}=n||{};return Promise.resolve(r)}catch(n){return console.log(n),Promise.reject(n)}},T=async(s,t,e,n,r)=>{try{const a={appnt_date:s,doctor_role_id:t,doctor_id:n,org_branch_id:e},c=await o.ReArchAPI(r.token,r.envName).post(u,{...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&&o.handle401Status(),Promise.reject(a)}},w=async(s,t)=>{let e=[];const n=await T(o.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>=o.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>=o.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 o.ReArchAPI(t.token,t.envName).post(E,s),{data:a}=r||{};return Promise.resolve(a)}catch(r){return console.log(r),null}},y=async s=>{try{const t=await o.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&&o.handle401Status(),Promise.reject(t)}},N=async(s,t)=>{try{const e=await o.ReArchAPI(t.token,t.envName).post(g,{...s,token:t.token}),{data:n}=e||{};return Promise.resolve(n)}catch(e){return Promise.reject(e)}},R=async(s,t)=>{try{const e=await o.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 o.hplxAPI(t.token,t.envName).post(_,s),{data:n}=e||{};return Promise.resolve(n)}catch(e){return console.log(e),Promise.reject(e)}},j=async(s,t)=>{try{const e=await o.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({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 a=await o.ReArchAPI(e.token,e.envName).post(P,{...r}),{data:c}=a||{},{error:i}=c||{};if(i)throw new Error(i);if(n)s(c);else return c}catch(r){console.log(r)}},C=async({doc_id:s="",doc_rid:t=""},e,n,r,a)=>{try{const c={branch_id:n,doctor_id:s||r,doctor_role_id:t||a},i=await o.hplxAPI(e.token,e.envName).post(m,c),{data:p}=i||{};return Promise.resolve(p)}catch(c){return console.error("Error fetching visitpad preference:",c),Promise.reject(c)}};exports.GET_PATIENT_DETAILS=P;exports.addPatientDetails=N;exports.addPatientImage=v;exports.deletePatientImage=j;exports.getBranchPreferences=D;exports.getDoctorPreference=I;exports.getPatientDetails=Y;exports.getPatientList=w;exports.getReferredByList=y;exports.getVisitpadPreference=C;exports.updatePatientDetails=R;