hplx-feature-library 1.0.239 → 1.0.241
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/PatientPopup/index.js +1 -1
- package/dist/{PatientPopupContainer-D_pmWZy3.js → PatientPopupContainer-DfTVFEiD.js} +1 -1
- package/dist/{PatientPopupContainer-DVN2kaOd.cjs → PatientPopupContainer-DgYNYDlR.cjs} +1 -1
- package/dist/{PrintModal-CNEDqrhb.cjs → PrintModal-CLXM1S-w.cjs} +3 -3
- package/dist/{PrintModal-Bkuo-Vy3.js → PrintModal-DnAhHbDm.js} +7 -9
- package/dist/index.js +2 -2
- package/dist/print-pdf/index.js +1 -1
- package/package.json +1 -1
|
@@ -120154,13 +120154,11 @@ const PrintPediaChartsPdf = memo(
|
|
|
120154
120154
|
textTransform: "capitalize"
|
|
120155
120155
|
}
|
|
120156
120156
|
}), getLatestDateByKey = (N, W) => {
|
|
120157
|
-
if (!Array.isArray(N) || N.length === 0) return
|
|
120158
|
-
const M = N.map((
|
|
120159
|
-
|
|
120160
|
-
|
|
120161
|
-
|
|
120162
|
-
);
|
|
120163
|
-
return M.length === 0 ? "---" : M.reduce((Y, X) => new Date(X) > new Date(Y) ? X : Y).format("DD-MMM-YYYY hh:mm A");
|
|
120157
|
+
if (!Array.isArray(N) || N.length === 0) return "---";
|
|
120158
|
+
const M = N.map((X) => X?.[W]).filter((X) => !X || typeof X != "string" ? !1 : dayjs(X).isValid() && X !== "0001-01-01T00:00:00Z");
|
|
120159
|
+
if (M.length === 0) return "---";
|
|
120160
|
+
const Y = M.reduce((X, I) => dayjs(I).isAfter(dayjs(X)) ? I : X);
|
|
120161
|
+
return dayjs(Y).isValid() ? dayjs(Y).format("DD-MMM-YYYY hh:mm A") : "---";
|
|
120164
120162
|
}, DetailRow = ({ label: N, value: W }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(View, { style: styles.detailRow, children: [
|
|
120165
120163
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Text, { style: styles.label, children: N }),
|
|
120166
120164
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Text, { style: styles.separator, children: ":" }),
|
|
@@ -120388,9 +120386,9 @@ const PrintPediaChartsPdf = memo(
|
|
|
120388
120386
|
obhPregnancyHistory: ue
|
|
120389
120387
|
// obhPrintConfiguration,
|
|
120390
120388
|
} = typeof H == "string" && H && JSON.parse(H) || {}, re = useRef(null), [me, he] = useState(!1), [Xe, be] = useState(null), { chartIds: Ne = [], chartKey: Ce = "" } = w || {}, [Ke, xe] = useState(1), [Te, pe] = useState($), [Ae, Ge] = useState(
|
|
120391
|
-
N.printType === "bill" || N.printType === "bill_deposit_refund" ? M?.billPatientDetails?.email : N?.printType === "visit" || N?.printType === "pedia_charts" || N?.printType === "pedia_vaccine" ? W?.patientDetails?.email : N?.printType === "casesheet" ? I?.patientDetails?.email : ""
|
|
120389
|
+
N.printType === "bill" || N.printType === "bill_deposit_refund" ? M?.billPatientDetails?.email : N?.printType === "visit" || N?.printType === "pedia_charts" || N?.printType === "pedia_vaccine" || N?.printType === "lab_report" ? W?.patientDetails?.email : N?.printType === "casesheet" ? I?.patientDetails?.email : ""
|
|
120392
120390
|
), [Le, fe] = useState(
|
|
120393
|
-
N.printType === "bill" || N.printType === "bill_deposit_refund" ? M?.billPatientDetails?.mobileNumber : N?.printType === "visit" || N?.printType === "pedia_charts" || N?.printType === "pedia_vaccine" ? W?.patientDetails?.phone_number : N?.printType === "casesheet" ? I?.patientDetails?.phone_number : ""
|
|
120391
|
+
N.printType === "bill" || N.printType === "bill_deposit_refund" ? M?.billPatientDetails?.mobileNumber : N?.printType === "visit" || N?.printType === "pedia_charts" || N?.printType === "pedia_vaccine" || N?.printType === "lab_report" ? W?.patientDetails?.phone_number : N?.printType === "casesheet" ? I?.patientDetails?.phone_number : ""
|
|
120394
120392
|
), [ke, Ue] = useState(!1), [je, ye] = useState(!1), [ge, Ie] = useState(), Fe = de?.print == 1, [we, Re] = useState(!0), [Qe, at] = useState(null), [ut, tt] = useState(null), [nt, qe] = useState([]), [Ee, it] = useState(!(Ne.length > 0)), Zt = window?.partner_config ? JSON.parse(window?.partner_config) : {}, st = Zt && Object.values(Zt).some((jt) => jt?.sync_visit?.enable), yt = async () => {
|
|
120395
120393
|
try {
|
|
120396
120394
|
await Vt();
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { P as r } from "./PediatricsCalculatorTable-G0ttbDpi.js";
|
|
2
|
-
import { P as e } from "./PatientPopupContainer-
|
|
2
|
+
import { P as e } from "./PatientPopupContainer-DfTVFEiD.js";
|
|
3
3
|
import { A as i } from "./Attachments-CARL1R9N.js";
|
|
4
4
|
import { P } from "./PatientAddEdit-9W7ONHSd.js";
|
|
5
5
|
import { S as m } from "./SearchPatients-BsO-G0KT.js";
|
|
6
6
|
import { N as n } from "./NineDots-B3ZRumoi.js";
|
|
7
7
|
import { U as d } from "./UserProfile-DRf9rznF.js";
|
|
8
|
-
import { P as c } from "./PrintModal-
|
|
8
|
+
import { P as c } from "./PrintModal-DnAhHbDm.js";
|
|
9
9
|
import { A as u } from "./AllInvestigationsTable-Dg-YXASz.js";
|
|
10
10
|
export {
|
|
11
11
|
u as AllInvestigations,
|
package/dist/print-pdf/index.js
CHANGED