@ampath/esm-dha-workflow-app 4.0.0-next.44 → 4.0.0-next.445
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/README.md +47 -0
- package/dist/1100.js +1 -0
- package/dist/1100.js.map +1 -0
- package/dist/{197.js → 1197.js} +1 -1
- package/dist/1371.js +2 -0
- package/dist/1371.js.LICENSE.txt +282 -0
- package/dist/1371.js.map +1 -0
- package/dist/1435.js +1 -0
- package/dist/1435.js.map +1 -0
- package/dist/1673.js +1 -0
- package/dist/1673.js.map +1 -0
- package/dist/1843.js +1 -0
- package/dist/1843.js.map +1 -0
- package/dist/1931.js +1 -0
- package/dist/1931.js.map +1 -0
- package/dist/2272.js +2 -0
- package/dist/2272.js.map +1 -0
- package/dist/2383.js +1 -0
- package/dist/2383.js.map +1 -0
- package/dist/2439.js +1 -0
- package/dist/2439.js.map +1 -0
- package/dist/2535.js +1 -0
- package/dist/2535.js.map +1 -0
- package/dist/2592.js +1 -0
- package/dist/2592.js.map +1 -0
- package/dist/2632.js +1 -0
- package/dist/2632.js.map +1 -0
- package/dist/2635.js +1 -0
- package/dist/2635.js.map +1 -0
- package/dist/2663.js +1 -0
- package/dist/2663.js.map +1 -0
- package/dist/2687.js +1 -0
- package/dist/2687.js.map +1 -0
- package/dist/2802.js +1 -0
- package/dist/2802.js.map +1 -0
- package/dist/2808.js +1 -0
- package/dist/2808.js.map +1 -0
- package/dist/282.js +1 -1
- package/dist/282.js.LICENSE.txt +3 -3
- package/dist/282.js.map +1 -1
- package/dist/2848.js +1 -0
- package/dist/2848.js.map +1 -0
- package/dist/3.js +1 -0
- package/dist/3.js.map +1 -0
- package/dist/3016.js +1 -0
- package/dist/3016.js.map +1 -0
- package/dist/3041.js +1 -0
- package/dist/3041.js.map +1 -0
- package/dist/3099.js +1 -0
- package/dist/3182.js +1 -0
- package/dist/3182.js.map +1 -0
- package/dist/3184.js +2 -0
- package/dist/3184.js.map +1 -0
- package/dist/3196.js +1 -0
- package/dist/3196.js.map +1 -0
- package/dist/3242.js +1 -0
- package/dist/3242.js.map +1 -0
- package/dist/3270.js +1 -0
- package/dist/3270.js.map +1 -0
- package/dist/3288.js +1 -0
- package/dist/3288.js.map +1 -0
- package/dist/3311.js +2 -0
- package/dist/3311.js.LICENSE.txt +9 -0
- package/dist/3311.js.map +1 -0
- package/dist/3558.js +1 -0
- package/dist/3558.js.map +1 -0
- package/dist/3612.js +1 -0
- package/dist/3612.js.map +1 -0
- package/dist/3636.js +1 -0
- package/dist/3636.js.map +1 -0
- package/dist/3654.js +1 -0
- package/dist/3654.js.map +1 -0
- package/dist/3794.js +1 -0
- package/dist/3794.js.map +1 -0
- package/dist/3816.js +1 -0
- package/dist/3816.js.map +1 -0
- package/dist/3897.js +1 -0
- package/dist/3897.js.map +1 -0
- package/dist/3949.js +1 -0
- package/dist/3949.js.map +1 -0
- package/dist/4055.js +1 -0
- package/dist/408.js +1 -0
- package/dist/408.js.map +1 -0
- package/dist/409.js +1 -0
- package/dist/409.js.map +1 -0
- package/dist/411.js +1 -0
- package/dist/411.js.map +1 -0
- package/dist/4225.js +1 -0
- package/dist/4225.js.map +1 -0
- package/dist/4300.js +1 -0
- package/dist/{335.js → 4335.js} +1 -1
- package/dist/4353.js +1 -0
- package/dist/4353.js.map +1 -0
- package/dist/4399.js +1 -0
- package/dist/4399.js.map +1 -0
- package/dist/4569.js +1 -0
- package/dist/4569.js.map +1 -0
- package/dist/{652.js → 4652.js} +1 -1
- package/dist/474.js +1 -0
- package/dist/474.js.map +1 -0
- package/dist/4993.js +1 -0
- package/dist/4993.js.map +1 -0
- package/dist/5006.js +1 -0
- package/dist/5006.js.map +1 -0
- package/dist/5119.js +1 -0
- package/dist/5119.js.map +1 -0
- package/dist/5138.js +1 -0
- package/dist/5138.js.map +1 -0
- package/dist/5179.js +1 -0
- package/dist/5179.js.map +1 -0
- package/dist/5244.js +1 -0
- package/dist/5244.js.map +1 -0
- package/dist/5353.js +1 -0
- package/dist/5353.js.map +1 -0
- package/dist/5377.js +1 -0
- package/dist/5377.js.map +1 -0
- package/dist/5413.js +1 -0
- package/dist/5413.js.map +1 -0
- package/dist/5422.js +1 -0
- package/dist/5422.js.map +1 -0
- package/dist/5500.js +1 -0
- package/dist/5500.js.map +1 -0
- package/dist/5754.js +1 -0
- package/dist/5754.js.map +1 -0
- package/dist/5805.js +1 -0
- package/dist/5805.js.map +1 -0
- package/dist/6048.js +1 -0
- package/dist/6048.js.map +1 -0
- package/dist/6055.js +1 -0
- package/dist/6055.js.map +1 -0
- package/dist/6206.js +1 -0
- package/dist/6206.js.map +1 -0
- package/dist/6279.js +1 -0
- package/dist/6279.js.map +1 -0
- package/dist/6399.js +1 -0
- package/dist/6399.js.map +1 -0
- package/dist/6540.js +2 -0
- package/dist/6540.js.map +1 -0
- package/dist/6606.js +1 -0
- package/dist/6606.js.map +1 -0
- package/dist/6682.js +1 -0
- package/dist/6682.js.map +1 -0
- package/dist/6802.js +1 -0
- package/dist/6802.js.map +1 -0
- package/dist/7024.js +1 -0
- package/dist/7024.js.map +1 -0
- package/dist/72.js +1 -0
- package/dist/72.js.map +1 -0
- package/dist/7269.js +1 -0
- package/dist/7269.js.map +1 -0
- package/dist/7332.js +1 -0
- package/dist/7332.js.map +1 -0
- package/dist/7369.js +1 -0
- package/dist/7369.js.map +1 -0
- package/dist/7593.js +1 -0
- package/dist/7593.js.map +1 -0
- package/dist/7694.js +1 -0
- package/dist/7694.js.map +1 -0
- package/dist/7698.js +1 -0
- package/dist/7698.js.map +1 -0
- package/dist/7734.js +1 -0
- package/dist/7734.js.map +1 -0
- package/dist/774.js +1 -0
- package/dist/774.js.map +1 -0
- package/dist/7852.js +1 -0
- package/dist/7852.js.map +1 -0
- package/dist/7949.js +2 -0
- package/dist/{246.js.LICENSE.txt → 7949.js.LICENSE.txt} +1 -10
- package/dist/7949.js.map +1 -0
- package/dist/7958.js +1 -0
- package/dist/7958.js.map +1 -0
- package/dist/8137.js +1 -0
- package/dist/8137.js.map +1 -0
- package/dist/8167.js +1 -0
- package/dist/8167.js.map +1 -0
- package/dist/818.js +1 -0
- package/dist/818.js.map +1 -0
- package/dist/8250.js +1 -0
- package/dist/8250.js.map +1 -0
- package/dist/8308.js +1 -0
- package/dist/8308.js.map +1 -0
- package/dist/8735.js +1 -0
- package/dist/8735.js.map +1 -0
- package/dist/8947.js +1 -0
- package/dist/8947.js.map +1 -0
- package/dist/8961.js +1 -0
- package/dist/8961.js.map +1 -0
- package/dist/902.js +1 -0
- package/dist/902.js.map +1 -0
- package/dist/9062.js +1 -0
- package/dist/9062.js.map +1 -0
- package/dist/9134.js +1 -0
- package/dist/9134.js.map +1 -0
- package/dist/9249.js +1 -0
- package/dist/9249.js.map +1 -0
- package/dist/9418.js +2 -0
- package/dist/9418.js.LICENSE.txt +1 -0
- package/dist/9418.js.map +1 -0
- package/dist/9429.js +1 -0
- package/dist/9429.js.map +1 -0
- package/dist/9442.js +1 -0
- package/dist/9442.js.map +1 -0
- package/dist/961.js +1 -1
- package/dist/961.js.map +1 -1
- package/dist/968.js +1 -0
- package/dist/968.js.map +1 -0
- package/dist/9709.js +1 -0
- package/dist/9709.js.map +1 -0
- package/dist/9768.js +1 -0
- package/dist/9768.js.map +1 -0
- package/dist/9770.js +1 -0
- package/dist/9770.js.map +1 -0
- package/dist/9879.js +1 -0
- package/dist/9879.js.map +1 -0
- package/dist/9974.js +1 -0
- package/dist/9974.js.map +1 -0
- package/dist/esm-dha-workflow-app.js +1 -1
- package/dist/esm-dha-workflow-app.js.buildmanifest.json +2249 -224
- package/dist/esm-dha-workflow-app.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/routes.json +1 -1
- package/jest.config.js +4 -0
- package/local-config.json +9 -0
- package/package.json +29 -11
- package/src/admissions/admission-request-list/admission-request-list.scss +0 -0
- package/src/admissions/admission-request-list/admission-request-list.tsx +263 -0
- package/src/admissions/admissions-dashboard.component.scss +15 -0
- package/src/admissions/admissions-dashboard.component.tsx +277 -0
- package/src/admissions/admissions.resource.ts +233 -0
- package/src/admissions/admitted-list/admitted-patients-list.tsx +268 -0
- package/src/admissions/awaiting-discharge-list/awaiting-discharge-list.tsx +197 -0
- package/src/admissions/bed-assigment-request/bed-assignment-request-list.tsx +134 -0
- package/src/admissions/constants/index.ts +33 -0
- package/src/admissions/discharged-list/discharged-list.scss +0 -0
- package/src/admissions/discharged-list/discharged-list.tsx +67 -0
- package/src/admissions/form-entry-workspace/form-entry-workspace.tsx +62 -0
- package/src/admissions/inpatient/admission-history/patient-admission-history.tsx +76 -0
- package/src/admissions/inpatient/admission-requests/patient-admission-requests.scss +19 -0
- package/src/admissions/inpatient/admission-requests/patient-admission-requests.tsx +72 -0
- package/src/admissions/inpatient/inpatient-admissions.component.scss +7 -0
- package/src/admissions/inpatient/inpatient-admissions.component.tsx +46 -0
- package/src/admissions/modal/add-bill-items/add-bill-items.modal.scss +17 -0
- package/src/admissions/modal/add-bill-items/add-bill-items.modal.tsx +220 -0
- package/src/admissions/modal/admit-elsewhere/admit-elsewhere.modal.scss +23 -0
- package/src/admissions/modal/admit-elsewhere/admit-elsewhere.modal.tsx +156 -0
- package/src/admissions/modal/admit-patient/admit-patient.modal.scss +0 -0
- package/src/admissions/modal/admit-patient/admit-patient.modal.tsx +111 -0
- package/src/admissions/modal/bed-swap/bed-swap.modal.scss +0 -0
- package/src/admissions/modal/bed-swap/bed-swap.modal.tsx +102 -0
- package/src/admissions/modal/cancel-admission-request/cancel-admission-request.scss +11 -0
- package/src/admissions/modal/cancel-admission-request/cancel-admission-request.tsx +105 -0
- package/src/admissions/modal/discharge/discharge-patient.modal.scss +13 -0
- package/src/admissions/modal/discharge/discharge-patient.modal.tsx +86 -0
- package/src/admissions/types/index.ts +263 -0
- package/src/appointments/appointments.component.scss +6 -0
- package/src/appointments/appointments.component.tsx +8 -1
- package/src/billing/admin/claims/claims-list.component.scss +13 -0
- package/src/billing/admin/claims/claims-list.component.tsx +163 -0
- package/src/billing/admin/claims-admin-dashboard.component.scss +0 -0
- package/src/billing/admin/claims-admin-dashboard.component.tsx +32 -0
- package/src/billing/api/billing.api.ts +139 -0
- package/src/billing/billing-claims.resource.ts +1112 -0
- package/src/billing/billing-dashboard-link.component.tsx +31 -0
- package/src/billing/billing-dashboard-reset.ts +27 -0
- package/src/billing/billing-root.tsx +37 -0
- package/src/billing/dashboard/billingDashboard.component.scss +0 -0
- package/src/billing/dashboard/billingDashboard.component.tsx +25 -0
- package/src/billing/dashboard/v2/active-visits/active-visits.component.tsx +257 -0
- package/src/billing/dashboard/v2/active-visits/active-visits.resource.ts +85 -0
- package/src/billing/dashboard/v2/active-visits/active-visits.scss +15 -0
- package/src/billing/dashboard/v2/active-visits.component.tsx +102 -0
- package/src/billing/dashboard/v2/admissions/admission-requests-tab.component.tsx +79 -0
- package/src/billing/dashboard/v2/billing-and-claims-patient-chart.component.tsx +52 -0
- package/src/billing/dashboard/v2/billing-claims-dashboard.component.scss +221 -0
- package/src/billing/dashboard/v2/billing-claims-dashboard.component.tsx +342 -0
- package/src/billing/dashboard/v2/cash-checklist/bill-document.component.scss +90 -0
- package/src/billing/dashboard/v2/cash-checklist/bill-document.component.tsx +101 -0
- package/src/billing/dashboard/v2/cash-checklist/cash-checklist.component.scss +199 -0
- package/src/billing/dashboard/v2/cash-checklist/cash-checklist.component.tsx +361 -0
- package/src/billing/dashboard/v2/cash-checklist/cash-checklist.resource.ts +239 -0
- package/src/billing/dashboard/v2/cash-checklist/payment-drawer.component.scss +246 -0
- package/src/billing/dashboard/v2/cash-checklist/payment-drawer.component.tsx +182 -0
- package/src/billing/dashboard/v2/claim-statuses.ts +143 -0
- package/src/billing/dashboard/v2/claim-visits/claim-diagnosis-details/claim-diagnosis-details.component.scss +0 -0
- package/src/billing/dashboard/v2/claim-visits/claim-diagnosis-details/claim-diagnosis-details.component.tsx +35 -0
- package/src/billing/dashboard/v2/claim-visits/claim-diagnosis-details/claim-diagnosis-panel.component.scss +67 -0
- package/src/billing/dashboard/v2/claim-visits/claim-diagnosis-details/claim-diagnosis-panel.component.tsx +90 -0
- package/src/billing/dashboard/v2/claim-visits/claim-doctors/claim-doctors.scss +28 -0
- package/src/billing/dashboard/v2/claim-visits/claim-doctors/claim-doctors.tsx +36 -0
- package/src/billing/dashboard/v2/claim-visits/claim-history/claim-history.component.scss +119 -0
- package/src/billing/dashboard/v2/claim-visits/claim-history/claim-history.component.tsx +198 -0
- package/src/billing/dashboard/v2/claim-visits/claim-intervention-details/claim-intervention-details.component.scss +5 -0
- package/src/billing/dashboard/v2/claim-visits/claim-intervention-details/claim-intervention-details.component.tsx +160 -0
- package/src/billing/dashboard/v2/claim-visits/claim-intervention-details/claim-intervention-panel.component.scss +105 -0
- package/src/billing/dashboard/v2/claim-visits/claim-intervention-details/claim-intervention-panel.component.tsx +184 -0
- package/src/billing/dashboard/v2/claim-visits/claim-intervention-details/intervention-attachments.component.scss +161 -0
- package/src/billing/dashboard/v2/claim-visits/claim-intervention-details/intervention-attachments.component.tsx +328 -0
- package/src/billing/dashboard/v2/claim-visits/claim-invoice-details/claim-invoice-details.component.tsx +96 -0
- package/src/billing/dashboard/v2/claim-visits/claim-invoice-details/claim-invoice-document.component.tsx +236 -0
- package/src/billing/dashboard/v2/claim-visits/claim-invoice-details/claim-invoice-panel.component.scss +98 -0
- package/src/billing/dashboard/v2/claim-visits/claim-invoice-details/claim-invoice-panel.component.tsx +293 -0
- package/src/billing/dashboard/v2/claim-visits/claim-invoice-line-details/claim-invoice-line-details.component.scss +133 -0
- package/src/billing/dashboard/v2/claim-visits/claim-invoice-line-details/claim-invoice-line-details.component.tsx +217 -0
- package/src/billing/dashboard/v2/claim-visits/claim-list/claim-visits.component.scss +28 -0
- package/src/billing/dashboard/v2/claim-visits/claim-list/claim-visits.component.tsx +315 -0
- package/src/billing/dashboard/v2/claim-visits/claim-visit-details/claim-details-by-token.component.tsx +150 -0
- package/src/billing/dashboard/v2/claim-visits/claim-visit-details/claim-details-page.component.scss +13 -0
- package/src/billing/dashboard/v2/claim-visits/claim-visit-details/claim-details-page.component.tsx +116 -0
- package/src/billing/dashboard/v2/claim-visits/claim-visit-details/claim-visit-details.component.scss +338 -0
- package/src/billing/dashboard/v2/claim-visits/claim-visit-details/claim-visit-details.component.tsx +616 -0
- package/src/billing/dashboard/v2/claim-visits/modal/claim-doctors/add-claim-doctor/add-claim-doctor.modal.scss +5 -0
- package/src/billing/dashboard/v2/claim-visits/modal/claim-doctors/add-claim-doctor/add-claim-doctor.modal.tsx +49 -0
- package/src/billing/dashboard/v2/claim-visits/modal/claim-visit-details/claim-visit-details.modal.scss +17 -0
- package/src/billing/dashboard/v2/claim-visits/modal/claim-visit-details/claim-visit-details.modal.tsx +56 -0
- package/src/billing/dashboard/v2/claim-visits/modal/close-claim/close-claim.modal.scss +0 -0
- package/src/billing/dashboard/v2/claim-visits/modal/close-claim/close-claim.modal.tsx +129 -0
- package/src/billing/dashboard/v2/claim-visits/modal/submit-claim/submit-claim.modal.tsx +280 -0
- package/src/billing/dashboard/v2/claim-visits/shared/_empty-state.scss +28 -0
- package/src/billing/dashboard/v2/claim-visits/shared/record-cards.component.scss +298 -0
- package/src/billing/dashboard/v2/claim-visits/shared/record-cards.component.tsx +252 -0
- package/src/billing/dashboard/v2/claim-visits/shared/record-details.workspace.scss +42 -0
- package/src/billing/dashboard/v2/claim-visits/shared/record-details.workspace.tsx +67 -0
- package/src/billing/dashboard/v2/claim-visits/shared/record-table.component.scss +61 -0
- package/src/billing/dashboard/v2/claim-visits/shared/record-table.component.tsx +150 -0
- package/src/billing/dashboard/v2/claim-visits/switch-intervention/switch-intervention.resource.ts +51 -0
- package/src/billing/dashboard/v2/claim-visits/switch-intervention/switch-intervention.workspace.scss +191 -0
- package/src/billing/dashboard/v2/claim-visits/switch-intervention/switch-intervention.workspace.tsx +660 -0
- package/src/billing/dashboard/v2/claim-workspace/claim-workspace.component.scss +595 -0
- package/src/billing/dashboard/v2/claim-workspace/claim-workspace.component.tsx +810 -0
- package/src/billing/dashboard/v2/claim-workspace/claim-workspace.resource.ts +282 -0
- package/src/billing/dashboard/v2/claims-accounting/bill-utils.ts +134 -0
- package/src/billing/dashboard/v2/claims-accounting/claim-detail.component.tsx +346 -0
- package/src/billing/dashboard/v2/claims-accounting/claims-accounting.component.scss +546 -0
- package/src/billing/dashboard/v2/claims-accounting/claims-accounting.component.tsx +206 -0
- package/src/billing/dashboard/v2/claims-accounting/claims-accounting.resource.ts +337 -0
- package/src/billing/dashboard/v2/claims-accounting/invoice-document.component.scss +90 -0
- package/src/billing/dashboard/v2/claims-accounting/invoice-document.component.tsx +90 -0
- package/src/billing/dashboard/v2/claims-accounting/remittances.component.tsx +169 -0
- package/src/billing/dashboard/v2/claims-accounting/remittances.resource.ts +46 -0
- package/src/billing/dashboard/v2/claims-accounting/status-meta.ts +25 -0
- package/src/billing/dashboard/v2/clearance/cash-patients.scss +18 -0
- package/src/billing/dashboard/v2/clearance/cash.component.tsx +145 -0
- package/src/billing/dashboard/v2/clearance/clearance.component.scss +84 -0
- package/src/billing/dashboard/v2/clearance/clearance.component.tsx +225 -0
- package/src/billing/dashboard/v2/clearance/pay-cash.component.tsx +199 -0
- package/src/billing/dashboard/v2/clearance/pay-cash.scss +28 -0
- package/src/billing/dashboard/v2/clearance/prepaid-services.component.tsx +112 -0
- package/src/billing/dashboard/v2/facility-bills/claim-status.ts +249 -0
- package/src/billing/dashboard/v2/facility-bills/facility-bills.component.scss +140 -0
- package/src/billing/dashboard/v2/facility-bills/facility-bills.component.tsx +688 -0
- package/src/billing/dashboard/v2/facility-bills/preauths-datatables/pending-preauths.component.tsx +132 -0
- package/src/billing/dashboard/v2/facility-bills/preauths-datatables/preauth-preview-table.component.tsx +267 -0
- package/src/billing/dashboard/v2/facility-bills/preauths.component.tsx +130 -0
- package/src/billing/dashboard/v2/inpatient-requests/inpatient-requests.component.scss +22 -0
- package/src/billing/dashboard/v2/inpatient-requests/inpatient-requests.component.tsx +382 -0
- package/src/billing/dashboard/v2/inpatient-requests/modal/start-inpatient-claim/start-inpatient-claim.component.scss +0 -0
- package/src/billing/dashboard/v2/inpatient-requests/modal/start-inpatient-claim/start-inpatient-claim.component.tsx +0 -0
- package/src/billing/dashboard/v2/new-facility-bills/bills-table.component.tsx +78 -0
- package/src/billing/dashboard/v2/new-facility-bills/bills-table.scss +18 -0
- package/src/billing/dashboard/v2/new-facility-bills/new-facility-bills.component.tsx +64 -0
- package/src/billing/dashboard/v2/new-facility-bills/new-facility-bills.scss +146 -0
- package/src/billing/dashboard/v2/patient-bill-details/attachments/add-attachments.component.tsx +234 -0
- package/src/billing/dashboard/v2/patient-bill-details/attachments/attachment.component.tsx +157 -0
- package/src/billing/dashboard/v2/patient-bill-details/attachments/attachments.scss +92 -0
- package/src/billing/dashboard/v2/patient-bill-details/attachments/case-summary/case-summary.scss +295 -0
- package/src/billing/dashboard/v2/patient-bill-details/attachments/case-summary/case-summary.tsx +326 -0
- package/src/billing/dashboard/v2/patient-bill-details/attachments/death-notification.component.tsx +162 -0
- package/src/billing/dashboard/v2/patient-bill-details/attachments/death-notification.resource.ts +112 -0
- package/src/billing/dashboard/v2/patient-bill-details/attachments/death-notification.scss +88 -0
- package/src/billing/dashboard/v2/patient-bill-details/attachments/dialysis/dialysis-chart.scss +238 -0
- package/src/billing/dashboard/v2/patient-bill-details/attachments/dialysis/dialysis-chart.tsx +269 -0
- package/src/billing/dashboard/v2/patient-bill-details/attachments/discharge-summary/discharge-summary.scss +96 -0
- package/src/billing/dashboard/v2/patient-bill-details/attachments/discharge-summary/discharge-summary.tsx +124 -0
- package/src/billing/dashboard/v2/patient-bill-details/attachments/final-bill.component.tsx +152 -0
- package/src/billing/dashboard/v2/patient-bill-details/attachments/final-bill.scss +225 -0
- package/src/billing/dashboard/v2/patient-bill-details/attachments/general-discharge-summary/general-discharge-summary.scss +182 -0
- package/src/billing/dashboard/v2/patient-bill-details/attachments/general-discharge-summary/general-discharge-summary.tsx +173 -0
- package/src/billing/dashboard/v2/patient-bill-details/attachments/generate-attachments.component.tsx +450 -0
- package/src/billing/dashboard/v2/patient-bill-details/attachments/invoice.component.tsx +151 -0
- package/src/billing/dashboard/v2/patient-bill-details/attachments/invoice.scss +225 -0
- package/src/billing/dashboard/v2/patient-bill-details/attachments/type.ts +44 -0
- package/src/billing/dashboard/v2/patient-bill-details/bill-details/bill-details.scss +107 -0
- package/src/billing/dashboard/v2/patient-bill-details/bill-details/bill-details.tsx +508 -0
- package/src/billing/dashboard/v2/patient-bill-details/bill-details-page.component.scss +30 -0
- package/src/billing/dashboard/v2/patient-bill-details/bill-details-page.component.tsx +94 -0
- package/src/billing/dashboard/v2/patient-bill-details/claim-details/claim-details-skeleton.component.scss +89 -0
- package/src/billing/dashboard/v2/patient-bill-details/claim-details/claim-details-skeleton.component.tsx +53 -0
- package/src/billing/dashboard/v2/patient-bill-details/claim-details/patient-claim-details.component.scss +32 -0
- package/src/billing/dashboard/v2/patient-bill-details/claim-details/patient-claim-details.component.tsx +215 -0
- package/src/billing/dashboard/v2/patient-bill-details/modals/add-claim-diagnosis/add-claim-diagnosis.modal.scss +0 -0
- package/src/billing/dashboard/v2/patient-bill-details/modals/add-claim-diagnosis/add-claim-diagnosis.modal.tsx +99 -0
- package/src/billing/dashboard/v2/patient-bill-details/modals/add-claim-line/add-claim-line.modal.tsx +187 -0
- package/src/billing/dashboard/v2/patient-bill-details/patient-bill-details.scss +153 -0
- package/src/billing/dashboard/v2/patient-bill-details/patient-bill-details.tsx +458 -0
- package/src/billing/dashboard/v2/patient-bill-details/payment-mode.ts +124 -0
- package/src/billing/dashboard/v2/patient-bill-details/workspaces/add-claim-line/add-claim-line.workspace.scss +27 -0
- package/src/billing/dashboard/v2/patient-bill-details/workspaces/add-claim-line/add-claim-line.workspace.tsx +234 -0
- package/src/billing/dashboard/v2/patient-bill-details/workspaces/bill-item-payment/bill-item-payment.workspace.scss +27 -0
- package/src/billing/dashboard/v2/patient-bill-details/workspaces/bill-item-payment/bill-item-payment.workspace.tsx +123 -0
- package/src/billing/dashboard/v2/preauth/preauth-attachments.component.tsx +389 -0
- package/src/billing/dashboard/v2/preauth/preauth-list.component.scss +38 -0
- package/src/billing/dashboard/v2/preauth/preauth-list.component.tsx +241 -0
- package/src/billing/dashboard/v2/preauth/preauth-status-tag.component.tsx +75 -0
- package/src/billing/dashboard/v2/preauth/preauth-typed-fields.md +125 -0
- package/src/billing/dashboard/v2/preauth/preauth.resource.ts +1032 -0
- package/src/billing/dashboard/v2/preauth/preauth.workspace.scss +91 -0
- package/src/billing/dashboard/v2/preauth/preauth.workspace.tsx +1802 -0
- package/src/billing/dashboard/v2/preauth/preauthorizations-tab.component.tsx +53 -0
- package/src/billing/dashboard/v2/sha-claims/sha-claims-table.component.tsx +36 -0
- package/src/billing/dashboard/v2/sha-claims/sha-claims.component.tsx +60 -0
- package/src/billing/dashboard/v2/sha-claims/sha-claims.scss +8 -0
- package/src/billing/dashboard/v2/shared/dash-board-card/dash-board-card.component.scss +17 -0
- package/src/billing/dashboard/v2/shared/dash-board-card/dash-board-card.component.tsx +15 -0
- package/src/billing/dashboard/v2/shared/empty-state.component.scss +24 -0
- package/src/billing/dashboard/v2/shared/empty-state.component.tsx +13 -0
- package/src/billing/dashboard/v2/shared/scroll-to-top.component.scss +54 -0
- package/src/billing/dashboard/v2/shared/scroll-to-top.component.tsx +54 -0
- package/src/billing/dashboard/v2/shared/table-toolbar.component.scss +77 -0
- package/src/billing/dashboard/v2/shared/table-toolbar.component.tsx +48 -0
- package/src/billing/dashboard/v2/types/index.ts +534 -0
- package/src/billing/dashboard/v3/active-visits/active-visits.component.tsx +256 -0
- package/src/billing/dashboard/v3/active-visits/active-visits.resource.ts +57 -0
- package/src/billing/dashboard/v3/active-visits/active-visits.scss +15 -0
- package/src/billing/dashboard/v3/cash-checklist/bill-document.component.scss +90 -0
- package/src/billing/dashboard/v3/cash-checklist/bill-document.component.tsx +101 -0
- package/src/billing/dashboard/v3/cash-checklist/cash-checklist.component.scss +199 -0
- package/src/billing/dashboard/v3/cash-checklist/cash-checklist.component.tsx +361 -0
- package/src/billing/dashboard/v3/cash-checklist/cash-checklist.resource.ts +240 -0
- package/src/billing/dashboard/v3/cash-checklist/payment-drawer.component.scss +246 -0
- package/src/billing/dashboard/v3/cash-checklist/payment-drawer.component.tsx +182 -0
- package/src/billing/dashboard/v3/claim-visits/claim-diagnosis-details/claim-diagnosis-details.component.scss +0 -0
- package/src/billing/dashboard/v3/claim-visits/claim-diagnosis-details/claim-diagnosis-details.component.tsx +44 -0
- package/src/billing/dashboard/v3/claim-visits/claim-doctors/claim-doctors.scss +5 -0
- package/src/billing/dashboard/v3/claim-visits/claim-doctors/claim-doctors.tsx +40 -0
- package/src/billing/dashboard/v3/claim-visits/claim-documents/claim-documents.scss +10 -0
- package/src/billing/dashboard/v3/claim-visits/claim-documents/claim-documents.tsx +25 -0
- package/src/billing/dashboard/v3/claim-visits/claim-intervention-details/claim-intervention-details.component.tsx +268 -0
- package/src/billing/dashboard/v3/claim-visits/claim-invoice-details/claim-invoice-details.component.scss +6 -0
- package/src/billing/dashboard/v3/claim-visits/claim-invoice-details/claim-invoice-details.component.tsx +85 -0
- package/src/billing/dashboard/v3/claim-visits/claim-invoice-line-details/claim-invoice-line-details.component.scss +0 -0
- package/src/billing/dashboard/v3/claim-visits/claim-invoice-line-details/claim-invoice-line-details.component.tsx +109 -0
- package/src/billing/dashboard/v3/claim-visits/claim-visit-details/claim-visit-details.component.scss +103 -0
- package/src/billing/dashboard/v3/claim-visits/claim-visit-details/claim-visit-details.component.tsx +519 -0
- package/src/billing/dashboard/v3/claim-visits/claim-visits.component.scss +5 -0
- package/src/billing/dashboard/v3/claim-visits/claim-visits.component.tsx +139 -0
- package/src/billing/dashboard/v3/claim-visits/modal/claim-doctors/add-claim-doctor/add-claim-doctor.modal.scss +5 -0
- package/src/billing/dashboard/v3/claim-visits/modal/claim-doctors/add-claim-doctor/add-claim-doctor.modal.tsx +49 -0
- package/src/billing/dashboard/v3/claim-visits/modal/claim-invoice-lines/claim-invoice-lines.modal.scss +7 -0
- package/src/billing/dashboard/v3/claim-visits/modal/claim-invoice-lines/claim-invoice-lines.modal.tsx +35 -0
- package/src/billing/dashboard/v3/claim-visits/modal/claim-visit-details/claim-visit-details.modal.scss +6 -0
- package/src/billing/dashboard/v3/claim-visits/modal/claim-visit-details/claim-visit-details.modal.tsx +33 -0
- package/src/billing/dashboard/v3/claim-visits/modal/close-claim/close-claim.modal.scss +0 -0
- package/src/billing/dashboard/v3/claim-visits/modal/close-claim/close-claim.modal.tsx +129 -0
- package/src/billing/dashboard/v3/claim-visits/modal/identify-emergency-unknown-patient/identify-emergencu-unknown-patient.scss +407 -0
- package/src/billing/dashboard/v3/claim-visits/modal/identify-emergency-unknown-patient/identify-emergency-unknown-patient.component.tsx +523 -0
- package/src/billing/dashboard/v3/claim-visits/modal/identify-emergency-unknown-patient/identify-patient-helper.ts +77 -0
- package/src/billing/dashboard/v3/claim-visits/modal/submit-claim/submit-claim.modal.tsx +280 -0
- package/src/billing/dashboard/v3/claim-visits/modal/submit-emergency-claim/submit-emergency-claim.component.tsx +91 -0
- package/src/billing/dashboard/v3/claim-visits/modal/submit-emergency-claim/submit-emergency.scss +14 -0
- package/src/billing/dashboard/v3/claim-visits/payer-preview/index.scss +140 -0
- package/src/billing/dashboard/v3/claim-visits/payer-preview/payer-preview-tile.component.tsx +55 -0
- package/src/billing/dashboard/v3/claim-visits/payer-preview/payer-preview-workspace.component.tsx +171 -0
- package/src/billing/dashboard/v3/claim-visits/payer-preview/tables/payer-claim-doctors.component.tsx +54 -0
- package/src/billing/dashboard/v3/claim-visits/payer-preview/tables/payer-claim-lines.component.tsx +48 -0
- package/src/billing/dashboard/v3/claim-visits/payer-preview/tables/payer-claim-notes.component.tsx +47 -0
- package/src/billing/dashboard/v3/claim-visits/payer-preview/tables/payer-diagnoses.component.tsx +44 -0
- package/src/billing/dashboard/v3/claim-visits/payer-preview/tables/payer-interventions.component.tsx +44 -0
- package/src/billing/dashboard/v3/claim-visits/switch-intervention/switch-intervention.resource.ts +51 -0
- package/src/billing/dashboard/v3/claim-visits/switch-intervention/switch-intervention.workspace.scss +191 -0
- package/src/billing/dashboard/v3/claim-visits/switch-intervention/switch-intervention.workspace.tsx +644 -0
- package/src/billing/dashboard/v3/claim-workspace/claim-workspace.component.scss +595 -0
- package/src/billing/dashboard/v3/claim-workspace/claim-workspace.component.tsx +810 -0
- package/src/billing/dashboard/v3/claim-workspace/claim-workspace.resource.ts +282 -0
- package/src/billing/dashboard/v3/claims-accounting/bill-utils.ts +134 -0
- package/src/billing/dashboard/v3/claims-accounting/claim-detail.component.tsx +346 -0
- package/src/billing/dashboard/v3/claims-accounting/claims-accounting.component.scss +546 -0
- package/src/billing/dashboard/v3/claims-accounting/claims-accounting.component.tsx +206 -0
- package/src/billing/dashboard/v3/claims-accounting/claims-accounting.resource.ts +337 -0
- package/src/billing/dashboard/v3/claims-accounting/invoice-document.component.scss +90 -0
- package/src/billing/dashboard/v3/claims-accounting/invoice-document.component.tsx +90 -0
- package/src/billing/dashboard/v3/claims-accounting/remittances.component.tsx +169 -0
- package/src/billing/dashboard/v3/claims-accounting/remittances.resource.ts +46 -0
- package/src/billing/dashboard/v3/claims-accounting/status-meta.ts +25 -0
- package/src/billing/dashboard/v3/claims-stats-dashboard/claim-stat/claim-stat.component.scss +27 -0
- package/src/billing/dashboard/v3/claims-stats-dashboard/claim-stat/claim-stat.component.tsx +41 -0
- package/src/billing/dashboard/v3/claims-stats-dashboard/claims-stats-dashboard.component.scss +16 -0
- package/src/billing/dashboard/v3/claims-stats-dashboard/claims-stats-dashboard.component.tsx +184 -0
- package/src/billing/dashboard/v3/claims-stats-dashboard/modal/claim-stats-list/claim-stats-list.modal.scss +0 -0
- package/src/billing/dashboard/v3/claims-stats-dashboard/modal/claim-stats-list/claim-stats-list.modal.tsx +27 -0
- package/src/billing/dashboard/v3/clearance/clearance.component.scss +100 -0
- package/src/billing/dashboard/v3/clearance/clearance.component.tsx +0 -0
- package/src/billing/dashboard/v3/clearance/prepaid-services.component.tsx +112 -0
- package/src/billing/dashboard/v3/facility-bills/claim-status.ts +243 -0
- package/src/billing/dashboard/v3/facility-bills/facility-bills.component.scss +92 -0
- package/src/billing/dashboard/v3/facility-bills/facility-bills.component.tsx +306 -0
- package/src/billing/dashboard/v3/facility-bills/preauths-datatables/pending-preauths.component.tsx +132 -0
- package/src/billing/dashboard/v3/facility-bills/preauths-datatables/preauth-preview-table.component.tsx +232 -0
- package/src/billing/dashboard/v3/facility-bills/preauths.component.tsx +127 -0
- package/src/billing/dashboard/v3/patient-bill-details/attachments/add-attachments.component.tsx +228 -0
- package/src/billing/dashboard/v3/patient-bill-details/attachments/attachment.component.tsx +157 -0
- package/src/billing/dashboard/v3/patient-bill-details/attachments/attachments.scss +92 -0
- package/src/billing/dashboard/v3/patient-bill-details/attachments/case-summary/case-summary-helper.ts +58 -0
- package/src/billing/dashboard/v3/patient-bill-details/attachments/case-summary/case-summary.scss +295 -0
- package/src/billing/dashboard/v3/patient-bill-details/attachments/case-summary/case-summary.tsx +287 -0
- package/src/billing/dashboard/v3/patient-bill-details/attachments/dialysis/dialysis-chart.scss +238 -0
- package/src/billing/dashboard/v3/patient-bill-details/attachments/dialysis/dialysis-chart.tsx +352 -0
- package/src/billing/dashboard/v3/patient-bill-details/attachments/dialysis/dialysis-helper.ts +117 -0
- package/src/billing/dashboard/v3/patient-bill-details/attachments/discharge-summary/discharge-summary.scss +96 -0
- package/src/billing/dashboard/v3/patient-bill-details/attachments/discharge-summary/discharge-summary.tsx +126 -0
- package/src/billing/dashboard/v3/patient-bill-details/attachments/final-bill.component.tsx +75 -0
- package/src/billing/dashboard/v3/patient-bill-details/attachments/general-discharge-summary/general-discharge-summary.scss +182 -0
- package/src/billing/dashboard/v3/patient-bill-details/attachments/general-discharge-summary/general-discharge-summary.tsx +253 -0
- package/src/billing/dashboard/v3/patient-bill-details/attachments/generate-attachments.component.tsx +450 -0
- package/src/billing/dashboard/v3/patient-bill-details/attachments/invoice.component.tsx +151 -0
- package/src/billing/dashboard/v3/patient-bill-details/attachments/invoice.scss +225 -0
- package/src/billing/dashboard/v3/patient-bill-details/attachments/lab-results/lab-orders.component.tsx +198 -0
- package/src/billing/dashboard/v3/patient-bill-details/attachments/lab-results/lab-orders.scss +227 -0
- package/src/billing/dashboard/v3/patient-bill-details/attachments/medical-report/medical-report.component.tsx +346 -0
- package/src/billing/dashboard/v3/patient-bill-details/attachments/medical-report/medical-report.scss +265 -0
- package/src/billing/dashboard/v3/patient-bill-details/attachments/proforma-invoice/proforma-invoice.component.tsx +347 -0
- package/src/billing/dashboard/v3/patient-bill-details/attachments/proforma-invoice/proforma-invoice.scss +285 -0
- package/src/billing/dashboard/v3/patient-bill-details/attachments/type.ts +280 -0
- package/src/billing/dashboard/v3/patient-bill-details/attachments/ultrasound-report/ultrasound-report.scss +273 -0
- package/src/billing/dashboard/v3/patient-bill-details/attachments/ultrasound-report/utlrasound-report.component.tsx +435 -0
- package/src/billing/dashboard/v3/patient-bill-details/bill-details/bill-details.scss +17 -0
- package/src/billing/dashboard/v3/patient-bill-details/bill-details/bill-details.tsx +377 -0
- package/src/billing/dashboard/v3/patient-bill-details/claim-details/patient-claim-details.component.scss +0 -0
- package/src/billing/dashboard/v3/patient-bill-details/claim-details/patient-claim-details.component.tsx +71 -0
- package/src/billing/dashboard/v3/patient-bill-details/modals/add-claim-diagnosis/add-claim-diagnosis.modal.scss +0 -0
- package/src/billing/dashboard/v3/patient-bill-details/modals/add-claim-diagnosis/add-claim-diagnosis.modal.tsx +99 -0
- package/src/billing/dashboard/v3/patient-bill-details/modals/add-claim-line/add-claim-line.modal.scss +14 -0
- package/src/billing/dashboard/v3/patient-bill-details/modals/add-claim-line/add-claim-line.modal.tsx +156 -0
- package/src/billing/dashboard/v3/patient-bill-details/modals/bill-item-payment/bill-item-payment.modal.scss +6 -0
- package/src/billing/dashboard/v3/patient-bill-details/modals/bill-item-payment/bill-item-payment.modal.tsx +137 -0
- package/src/billing/dashboard/v3/patient-bill-details/modals/claim-details/claim-details.modal.scss +28 -0
- package/src/billing/dashboard/v3/patient-bill-details/modals/claim-details/claim-details.modal.tsx +170 -0
- package/src/billing/dashboard/v3/patient-bill-details/modals/pomsf/pomsf-scheme-balance.util.test.ts +56 -0
- package/src/billing/dashboard/v3/patient-bill-details/modals/pomsf/pomsf-scheme-balance.util.ts +27 -0
- package/src/billing/dashboard/v3/patient-bill-details/modals/pomsf/set-effective-pomsf-coverage.component.tsx +128 -0
- package/src/billing/dashboard/v3/patient-bill-details/modals/pomsf/set-effective-pomsf-coverage.scss +27 -0
- package/src/billing/dashboard/v3/patient-bill-details/patient-bill-details.scss +85 -0
- package/src/billing/dashboard/v3/patient-bill-details/patient-bill-details.tsx +363 -0
- package/src/billing/dashboard/v3/patient-bill-details/patient-visit-details.tsx +256 -0
- package/src/billing/dashboard/v3/patient-bill-details/patient-visit.scss +9 -0
- package/src/billing/dashboard/v3/patient-bill-details/visit-diagnosis-details/visit-diagnosis-details.component.scss +0 -0
- package/src/billing/dashboard/v3/patient-bill-details/visit-diagnosis-details/visit-diagnosis-details.component.tsx +102 -0
- package/src/billing/dashboard/v3/preauth/elective/elective-authorize.resource.ts +284 -0
- package/src/billing/dashboard/v3/preauth/elective/elective-preauth-request.workspace.scss +125 -0
- package/src/billing/dashboard/v3/preauth/elective/elective-preauth-request.workspace.tsx +1184 -0
- package/src/billing/dashboard/v3/preauth/elective/elective-preauth.component.scss +15 -0
- package/src/billing/dashboard/v3/preauth/elective/elective-preauth.component.tsx +377 -0
- package/src/billing/dashboard/v3/preauth/elective/elective-preauth.resource.ts +1378 -0
- package/src/billing/dashboard/v3/preauth/elective/elective-requests-list.component.tsx +357 -0
- package/src/billing/dashboard/v3/preauth/preauth-attachments.component.tsx +388 -0
- package/src/billing/dashboard/v3/preauth/preauth-list.component.scss +34 -0
- package/src/billing/dashboard/v3/preauth/preauth-list.component.tsx +300 -0
- package/src/billing/dashboard/v3/preauth/preauth-status-tag.component.tsx +75 -0
- package/src/billing/dashboard/v3/preauth/preauth-typed-fields.md +125 -0
- package/src/billing/dashboard/v3/preauth/preauth.resource.ts +1549 -0
- package/src/billing/dashboard/v3/preauth/preauth.workspace.scss +176 -0
- package/src/billing/dashboard/v3/preauth/preauth.workspace.tsx +2458 -0
- package/src/billing/dashboard/v3/preauth/preauthorizations-tab.component.tsx +55 -0
- package/src/billing/dashboard/v3/shared/empty-state.component.scss +25 -0
- package/src/billing/dashboard/v3/shared/empty-state.component.tsx +13 -0
- package/src/billing/dashboard/v3/shared/table-toolbar.component.scss +64 -0
- package/src/billing/dashboard/v3/shared/table-toolbar.component.tsx +48 -0
- package/src/billing/dashboard/v3/types/index.ts +450 -0
- package/src/billing/extensions/generate-order-bill-button/generate-order-bill-button.extension.tsx +55 -0
- package/src/billing/extensions/generate-order-bill-button/generate-order-bill-button.scss +16 -0
- package/src/billing/extensions/visit-billing/visit-billing.extension.scss +0 -0
- package/src/billing/extensions/visit-billing/visit-billing.extension.tsx +514 -0
- package/src/billing/invoice/bill.resource.ts +47 -0
- package/src/billing/invoice/invoice-header/header-card/header-card.scss +17 -0
- package/src/billing/invoice/invoice-header/header-card/header-card.tsx +21 -0
- package/src/billing/invoice/invoice.scss +113 -0
- package/src/billing/invoice/invoice.tsx +1441 -0
- package/src/billing/invoice/line-items/line-items.scss +0 -0
- package/src/billing/invoice/line-items/line-items.tsx +120 -0
- package/src/billing/invoice/modal/delete-bill-item/delete-bill-item.modal.scss +23 -0
- package/src/billing/invoice/modal/delete-bill-item/delete-bill-item.modal.tsx +114 -0
- package/src/billing/invoice/modal/edit-bill-item/edit-bill-item.modal.scss +0 -0
- package/src/billing/invoice/modal/edit-bill-item/edit-bill-item.modal.tsx +122 -0
- package/src/billing/invoice/payment-details/payment-details.scss +0 -0
- package/src/billing/invoice/payment-details/payment-details.tsx +43 -0
- package/src/billing/invoice/print-invoice/print-receipt.component.tsx +44 -0
- package/src/billing/invoice/print-invoice/print-receipt.scss +14 -0
- package/src/billing/maternity-discharge.resource.ts +21 -0
- package/src/billing/reports/billing-and-claims-reports-dashboard.scss +40 -0
- package/src/billing/reports/billing-and-claims-reports-dashboard.tsx +32 -0
- package/src/billing/reports/claims/claims-report-dashboard.scss +55 -0
- package/src/billing/reports/claims/claims-report-dashboard.tsx +136 -0
- package/src/billing/reports/claims/summary-data/summary-data.scss +24 -0
- package/src/billing/reports/claims/summary-data/summary-data.tsx +184 -0
- package/src/billing/types/index.ts +411 -0
- package/src/billing/utils/index.ts +17 -0
- package/src/billing/widgets/billingTotalsRow.component.scss +0 -0
- package/src/billing/widgets/billingTotalsRow.component.tsx +712 -0
- package/src/billing/workspaces/create-order-bill-form-workspace/create-order-bill-form.resource.ts +223 -0
- package/src/billing/workspaces/create-order-bill-form-workspace/create-order-bill-form.scss +58 -0
- package/src/billing/workspaces/create-order-bill-form-workspace/create-order-bill-form.workspace.tsx +874 -0
- package/src/billing/workspaces/create-order-bill-form-workspace/schema.ts +20 -0
- package/src/billing/workspaces/create-order-bill-form-workspace/types.ts +49 -0
- package/src/bookings/bookings.component.scss +7 -0
- package/src/bookings/bookings.component.tsx +35 -0
- package/src/bookings/daily/daily-bookings.resource.ts +2 -1
- package/src/case-summary/case-summary.extension.scss +13 -0
- package/src/case-summary/case-summary.extension.tsx +40 -0
- package/src/case-summary/case-summary.resource.test.ts +69 -0
- package/src/case-summary/case-summary.resource.ts +52 -0
- package/src/case-summary/components/case-summary-printable.component.scss +174 -0
- package/src/case-summary/components/case-summary-printable.component.tsx +288 -0
- package/src/case-summary/components/case-summary-printable.utils.ts +51 -0
- package/src/case-summary/types/case-summary.types.ts +152 -0
- package/src/claims/claims.component.scss +70 -0
- package/src/claims/claims.component.tsx +743 -0
- package/src/claims/claims.resource.ts +1855 -0
- package/src/claims/index.ts +365 -0
- package/src/claims/interventions.resource.ts +131 -0
- package/src/claims/utils.ts +64 -0
- package/src/config-schema.ts +264 -0
- package/src/context/patient-context.tsx +27 -0
- package/src/critical-care-unit/critical-care-root.tsx +23 -0
- package/src/critical-care-unit/hdu/hdu-queues.component.scss +7 -0
- package/src/critical-care-unit/hdu/hdu-queues.component.tsx +31 -0
- package/src/critical-care-unit/hdu/queues/consultation/hdu-consultation.tsx +18 -0
- package/src/critical-care-unit/icu/icu-queues.component.scss +7 -0
- package/src/critical-care-unit/icu/icu-queues.component.tsx +31 -0
- package/src/critical-care-unit/icu/queues/consultation/icu-consultation.tsx +17 -0
- package/src/critical-care-unit/icu-burns/icu-burns-queues.component.scss +7 -0
- package/src/critical-care-unit/icu-burns/icu-burns-queues.component.tsx +30 -0
- package/src/critical-care-unit/icu-burns/queues/consultation/icu-burns-consultation.tsx +17 -0
- package/src/critical-care-unit/nicu/nicu-queues.component.scss +7 -0
- package/src/critical-care-unit/nicu/nicu-queues.component.tsx +31 -0
- package/src/critical-care-unit/nicu/queues/consultation/nicu-consultation.tsx +17 -0
- package/src/critical-care-unit/picu/picu-queues.component.scss +7 -0
- package/src/critical-care-unit/picu/picu-queues.component.tsx +31 -0
- package/src/critical-care-unit/picu/queues/consultation/picu-consultation.tsx +17 -0
- package/src/dashboard/charts/chart.component.scss +24 -0
- package/src/dashboard/charts/chart.component.tsx +56 -0
- package/src/dashboard/dashboard.component.scss +48 -3
- package/src/dashboard/dashboard.component.tsx +29 -38
- package/src/dashboard/overview/overview.component.scss +40 -59
- package/src/dashboard/overview/overview.component.tsx +55 -41
- package/src/dashboard-meta/accounting-dashboard.meta.ts +6 -0
- package/src/dashboard-meta/admissions-dashboard.meta.ts +6 -0
- package/src/dashboard-meta/billing-dashboard.meta.ts +6 -0
- package/src/dashboard-meta/bookings-dashboard.meta.ts +6 -0
- package/src/dashboard-meta/case-summary.meta.ts +6 -0
- package/src/dashboard-meta/claims-admin.meta.ts +6 -0
- package/src/dashboard-meta/consultation-dashboard.meta.ts +6 -0
- package/src/dashboard-meta/dha-workflow-dashboard.meta.ts +6 -0
- package/src/dashboard-meta/elective-preauth.meta.ts +6 -0
- package/src/dashboard-meta/emt-dashboard.meta.ts +6 -0
- package/src/dashboard-meta/inpatient-admissions.meta.ts +6 -0
- package/src/dashboard-meta/maternity-dashboard.meta.ts +6 -0
- package/src/dashboard-meta/mch-dashboard.meta.ts +6 -0
- package/src/dashboard-meta/registers-dashboard.meta.ts +6 -0
- package/src/{registry-dashboard.meta.ts → dashboard-meta/registry-dashboard.meta.ts} +2 -2
- package/src/dashboard-meta/service-queue-admin.meta.ts +6 -0
- package/src/dashboard-meta/shr-dashboard.meta.ts +19 -0
- package/src/dashboard-meta/specialized-clinics-dashboard.meta.ts +6 -0
- package/src/dashboard-meta/telemedicine-dashboard.meta.ts +6 -0
- package/src/dashboard-meta/telemedicine-patient-chart.meta.ts +6 -0
- package/src/death-reporting/death-reporting-form-button.component.tsx +50 -0
- package/src/death-reporting/death-reporting-form-button.resource.ts +64 -0
- package/src/emt/cr-lookup.resource.test.ts +88 -0
- package/src/emt/cr-lookup.resource.ts +42 -0
- package/src/emt/emt-queue.component.test.tsx +353 -0
- package/src/emt/emt-queue.component.tsx +463 -0
- package/src/emt/emt-queue.scss +85 -0
- package/src/emt/emt.resource.test.ts +247 -0
- package/src/emt/emt.resource.ts +150 -0
- package/src/emt/handover-modal/handover-modal.component.test.tsx +273 -0
- package/src/emt/handover-modal/handover-modal.component.tsx +538 -0
- package/src/emt/handover-modal/handover-modal.scss +113 -0
- package/src/emt/types/emt.types.ts +137 -0
- package/src/index.ts +232 -11
- package/src/mnch/maternity/maternity-queues.component.scss +7 -0
- package/src/mnch/maternity/maternity-queues.component.tsx +32 -0
- package/src/mnch/maternity/queues/triage/maternity-triage.tsx +15 -0
- package/src/mnch/mch/mch-queues.component.scss +10 -0
- package/src/mnch/mch/mch-queues.component.tsx +36 -0
- package/src/{mch → mnch/mch}/queues/consultation/mch-consultation.tsx +2 -2
- package/src/{mch → mnch/mch}/queues/triage/mch-triage.tsx +2 -2
- package/src/mnch/mnch-root.tsx +17 -0
- package/src/mortuary/mortuary.component.tsx +2 -2
- package/src/pharmacy/pharmacy.component.scss +16 -0
- package/src/pharmacy/pharmacy.component.tsx +11 -6
- package/src/registers/registers.component.tsx +8 -0
- package/src/registry/drawer/emr-compare.component.scss +263 -0
- package/src/registry/drawer/emr-compare.component.tsx +302 -0
- package/src/registry/drawer/emr-compare.resource.ts +181 -0
- package/src/registry/drawer/emr-create-preview.component.tsx +123 -0
- package/src/registry/drawer/otp-verification-step.component.tsx +398 -0
- package/src/registry/drawer/pomsf-balance.util.test.ts +177 -0
- package/src/registry/drawer/pomsf-balance.util.ts +116 -0
- package/src/registry/drawer/verification.resource.ts +60 -0
- package/src/registry/drawer/workflow-drawer.component.scss +1242 -0
- package/src/registry/drawer/workflow-drawer.component.tsx +1542 -0
- package/src/registry/eligibility/eligibility-details/eligibility-details.scss +38 -0
- package/src/registry/eligibility/eligibility-details/eligibility-details.tsx +101 -0
- package/src/registry/eligibility/eliigibility-tags/eligibility-tags.scss +16 -0
- package/src/registry/eligibility/eliigibility-tags/eligibility-tags.tsx +120 -0
- package/src/registry/eligibility/modal/eligibility-details.modal.scss +0 -0
- package/src/registry/eligibility/modal/eligibility-details.modal.tsx +45 -0
- package/src/registry/emergency/emergency-extension.component.tsx +599 -0
- package/src/registry/emergency/emergency-helper.ts +47 -0
- package/src/registry/emergency/emergency.resource.ts +291 -0
- package/src/registry/emergency/emergency.scss +123 -0
- package/src/registry/emergency/otp-component.tsx +289 -0
- package/src/registry/emergency/type/index.ts +77 -0
- package/src/registry/emergency/unidentified/unidentified-registration.component.tsx +154 -0
- package/src/registry/emergency/unidentified/unidentified-registration.scss +0 -0
- package/src/registry/emergency/unidentified/unidentified.component.tsx +376 -0
- package/src/registry/emergency/unidentified/unidentified.scss +0 -0
- package/src/registry/hie.resource.ts +481 -0
- package/src/registry/hie.types.ts +63 -0
- package/src/registry/modal/biometrics-verification-modal/biometrics-verification-modal.scss +277 -0
- package/src/registry/modal/biometrics-verification-modal/biometrics-verification-modal.tsx +218 -0
- package/src/registry/modal/biometrics-verification-modal/type.ts +39 -0
- package/src/registry/modal/client-details-modal/client-details-modal.tsx +65 -29
- package/src/registry/modal/otp-modal/otp-whitlisting-modal.component.tsx +809 -0
- package/src/registry/modal/otp-modal/otp-whitlisting-modal.scss +354 -0
- package/src/registry/modal/otp-modal/otp-whitlisting.scss +0 -0
- package/src/registry/modal/otp-verification-modal/claims-consent.scss +72 -0
- package/src/registry/modal/otp-verification-modal/claims-consent.tsx +135 -0
- package/src/registry/modal/otp-verification-modal/extension/claims-consent.extension.tsx +130 -0
- package/src/registry/modal/otp-verification-modal/otp-verification-modal.scss +15 -3
- package/src/registry/modal/otp-verification-modal/otp-verification-modal.tsx +136 -44
- package/src/registry/modal/send-to-triage/payment-details.tsx +120 -0
- package/src/registry/modal/send-to-triage/payment-method.component.tsx +54 -0
- package/src/registry/modal/send-to-triage/send-to-queue.modal.tsx +991 -0
- package/src/registry/modal/send-to-triage/send-to-queue.workspace.tsx +24 -0
- package/src/registry/modal/send-to-triage/send-to-triage.modal.scss +156 -3
- package/src/registry/modal/send-to-triage/send-to-triage.modal.tsx +1086 -130
- package/src/registry/modal/start-patient-visit/start-patient-visit.modal.scss +34 -0
- package/src/registry/modal/start-patient-visit/start-patient-visit.modal.tsx +231 -0
- package/src/registry/payment-details/payment-options/payment-options.scss +13 -0
- package/src/registry/payment-details/payment-options/payment-options.tsx +61 -14
- package/src/registry/registration-list/registration-list.component.scss +32 -0
- package/src/registry/registration-list/registration-list.component.tsx +103 -0
- package/src/registry/registry-entry.tsx +11 -0
- package/src/registry/registry.component.scss +402 -78
- package/src/registry/registry.component.tsx +732 -220
- package/src/registry/registry.resource.ts +22 -3
- package/src/registry/types/index.ts +126 -9
- package/src/registry/utils/error-handler.ts +54 -0
- package/src/registry/utils/format-dependant-display-data.ts +1 -1
- package/src/registry/utils/hie-client-adapter.ts +7 -4
- package/src/registry/utils/mask-data.ts +40 -0
- package/src/registry/utils/phone-number-formatter.ts +11 -0
- package/src/resources/dashboard.resource.ts +20 -0
- package/src/resources/identifier-types.ts +2 -0
- package/src/resources/patient-resource.ts +7 -2
- package/src/resources/queue.resource.ts +3 -3
- package/src/resources/superset.resource.ts +41 -0
- package/src/resources/visit.resource.ts +19 -1
- package/src/root.component.tsx +9 -7
- package/src/routes.json +651 -40
- package/src/service-queues/admin/queue/modal/create-queue/create-queue.modal.scss +31 -0
- package/src/service-queues/admin/queue/modal/create-queue/create-queue.modal.tsx +193 -0
- package/src/service-queues/admin/queue/modal/edit-queue/edit-queue.modal.scss +0 -0
- package/src/service-queues/admin/queue/modal/edit-queue/edit-queue.modal.tsx +201 -0
- package/src/service-queues/admin/queue/queue-list/queue-list.scss +33 -0
- package/src/service-queues/admin/queue/queue-list/queue-list.tsx +113 -0
- package/src/service-queues/admin/queue-entry/queue-entry-list.component.scss +6 -0
- package/src/service-queues/admin/queue-entry/queue-entry-list.component.tsx +137 -0
- package/src/service-queues/admin/queue-room/modal/create-queue-room/create-queue-room.modal.scss +31 -0
- package/src/service-queues/admin/queue-room/modal/create-queue-room/create-queue-room.modal.tsx +137 -0
- package/src/service-queues/admin/queue-room/modal/edit-queue-room/edit-queue-room.modal.scss +0 -0
- package/src/service-queues/admin/queue-room/modal/edit-queue-room/edit-queue-room.modal.tsx +146 -0
- package/src/service-queues/admin/queue-room/queue-room-list/queue-room-list.scss +22 -0
- package/src/service-queues/admin/queue-room/queue-room-list/queue-room-list.tsx +120 -0
- package/src/service-queues/admin/service-queue-admin-dashboard.component.scss +6 -0
- package/src/service-queues/admin/service-queue-admin-dashboard.component.tsx +35 -0
- package/src/service-queues/consultation/consultation.component.tsx +9 -0
- package/src/service-queues/extensions/service-queue-patient-banner/service-queue-patient-banner.scss +30 -0
- package/src/service-queues/extensions/service-queue-patient-banner/service-queue-patient-banner.tsx +108 -0
- package/src/service-queues/modals/daily-report-patient-list/daily-report-patient-list.scss +26 -0
- package/src/service-queues/modals/daily-report-patient-list/daily-report-patient-list.tsx +110 -0
- package/src/service-queues/modals/move/move-patient.component.scss +1 -1
- package/src/service-queues/modals/move/move-patient.component.tsx +31 -17
- package/src/service-queues/queue-list/check-in.service.ts +26 -0
- package/src/service-queues/queue-list/queue-list.component.scss +37 -0
- package/src/service-queues/queue-list/queue-list.component.tsx +296 -60
- package/src/service-queues/service-queue/service-queue.component.tsx +151 -8
- package/src/service-queues/service-queue/stats/stat-details/stat-details.component.scss +5 -0
- package/src/service-queues/service-queue/stats/stat-details/stat-details.component.tsx +36 -7
- package/src/service-queues/service-queue.tsx +22 -16
- package/src/service-queues/service-queues.resource.ts +293 -2
- package/src/service-queues/service.resource.ts +1 -1
- package/src/shared/constants/concepts.ts +70 -0
- package/src/shared/constants/patient-category.ts +6 -0
- package/src/shared/constants/patient-type.ts +10 -0
- package/src/shared/constants/visit-types.ts +9 -0
- package/src/shared/services/billable-service.resource.ts +121 -0
- package/src/shared/services/billing.resource.ts +112 -0
- package/src/shared/services/claims.resource.ts +47 -0
- package/src/shared/services/client-payment-mode.resource.ts +27 -0
- package/src/shared/services/client-payment.resource.ts +17 -0
- package/src/shared/services/consultation-clearance.resource.ts +210 -0
- package/src/shared/services/eligibility.resource.ts +20 -0
- package/src/shared/services/encounters.resource.ts +33 -0
- package/src/shared/types/index.ts +156 -0
- package/src/shared/ui/aggregate-stat-card/aggregate-stat-card.scss +42 -0
- package/src/shared/ui/aggregate-stat-card/aggregate-stat-card.tsx +42 -0
- package/src/shared/ui/confirm-modal/confirm.modal.scss +18 -0
- package/src/shared/ui/confirm-modal/confirm.modal.tsx +38 -0
- package/src/shared/ui/facility-worker-slot/facility-worker.component-slot.component.scss +39 -0
- package/src/shared/ui/facility-worker-slot/facility-worker.component-slot.component.tsx +19 -0
- package/src/shared/ui/otp-input/otp-input.component.scss +12 -12
- package/src/shared/ui/otp-input/otp-input.component.tsx +13 -6
- package/src/{service-queues/service-queue/stats → shared/ui}/stat-card/stat-card.component.tsx +6 -3
- package/src/shared/utils/format-title-case.ts +8 -0
- package/src/shared/utils/get-base-url.ts +15 -0
- package/src/shared/utils/get-tag-type.ts +75 -0
- package/src/shr/shr-close-visit-form.component.tsx +102 -0
- package/src/shr/shr-code-systems.json +363 -0
- package/src/shr/shr-terminology.resource.test.ts +66 -0
- package/src/shr/shr-terminology.resource.ts +64 -0
- package/src/shr/shr-viewer/shr-categories.test.ts +241 -0
- package/src/shr/shr-viewer/shr-categories.ts +209 -0
- package/src/shr/shr-viewer/shr-presentation.test.ts +511 -0
- package/src/shr/shr-viewer/shr-presentation.ts +883 -0
- package/src/shr/shr-viewer/shr-viewer.component.test.tsx +176 -0
- package/src/shr/shr-viewer/shr-viewer.component.tsx +432 -0
- package/src/shr/shr-viewer/shr-viewer.scss +239 -0
- package/src/shr/shr-visit-sync.test.ts +88 -0
- package/src/shr/shr-visit-sync.ts +62 -0
- package/src/shr/shr.component.tsx +730 -0
- package/src/shr/shr.resource.test.ts +737 -0
- package/src/shr/shr.resource.ts +463 -0
- package/src/shr/shr.scss +114 -0
- package/src/shr/shr.types.ts +682 -0
- package/src/shr/workspaces/shr-consent-workspace/schema.ts +53 -0
- package/src/shr/workspaces/shr-consent-workspace/shr-consent.scss +71 -0
- package/src/shr/workspaces/shr-consent-workspace/shr-consent.workspace.tsx +686 -0
- package/src/side-nav-menu/accounting-nav-link-config.ts +16 -0
- package/src/side-nav-menu/accounting-nav-links.tsx +42 -0
- package/src/side-nav-menu/critical-care-nav-links.tsx +42 -0
- package/src/side-nav-menu/critical-care-unit-nav-link-config.ts +28 -0
- package/src/side-nav-menu/mnch-nav-link-config.ts +16 -0
- package/src/side-nav-menu/mnch-nav-links.tsx +42 -0
- package/src/side-nav-menu/nav-link-config.ts +5 -5
- package/src/side-nav-menu/specialized-clinics-nav-link-config.ts +32 -0
- package/src/side-nav-menu/specialized-clinics-nav-links.tsx +42 -0
- package/src/specialized-clinics/dental/dental-queues.component.scss +7 -0
- package/src/specialized-clinics/dental/dental-queues.component.tsx +36 -0
- package/src/specialized-clinics/dental/queues/consultation/dental-consultation.tsx +15 -0
- package/src/specialized-clinics/dental/queues/triage/dental-triage.tsx +15 -0
- package/src/specialized-clinics/diagnostic-and-imaging/diagnostic-and-imaging.component.scss +7 -0
- package/src/specialized-clinics/diagnostic-and-imaging/diagnostic-and-imaging.component.tsx +36 -0
- package/src/specialized-clinics/diagnostic-and-imaging/queues/consultation/diagnosis-and-imaging-consultation.tsx +15 -0
- package/src/specialized-clinics/diagnostic-and-imaging/queues/triage/diagnosis-and-imaging-triage.tsx +15 -0
- package/src/specialized-clinics/oncology/oncology-queues.component.scss +7 -0
- package/src/specialized-clinics/oncology/oncology-queues.component.tsx +36 -0
- package/src/specialized-clinics/oncology/queues/consultation/oncology-consultation.tsx +15 -0
- package/src/specialized-clinics/oncology/queues/triage/oncology-triage.tsx +15 -0
- package/src/specialized-clinics/ophthalmology/ophthalmology-queues.component.scss +7 -0
- package/src/specialized-clinics/ophthalmology/ophthalmology-queues.component.tsx +36 -0
- package/src/specialized-clinics/ophthalmology/queues/consultation/ophthalmology-consultation.tsx +15 -0
- package/src/specialized-clinics/ophthalmology/queues/triage/ophthalmology-triage.tsx +15 -0
- package/src/specialized-clinics/psychiatry/psychiatry-queues.component.scss +7 -0
- package/src/specialized-clinics/psychiatry/psychiatry-queues.component.tsx +36 -0
- package/src/specialized-clinics/psychiatry/queues/consultation/psychiatry-consultation.tsx +15 -0
- package/src/specialized-clinics/psychiatry/queues/triage/psychiatry-triage.tsx +15 -0
- package/src/specialized-clinics/renal/queues/consultation/dialysis-consultation.tsx +15 -0
- package/src/specialized-clinics/renal/queues/triage/renal-triage.tsx +15 -0
- package/src/specialized-clinics/renal/renal-queues.component.scss +7 -0
- package/src/specialized-clinics/renal/renal-queues.component.tsx +36 -0
- package/src/specialized-clinics/specialized-clinics-root.tsx +25 -0
- package/src/telemedicine/telemedicine-patient-chart.component.test.tsx +123 -0
- package/src/telemedicine/telemedicine-patient-chart.component.tsx +131 -0
- package/src/telemedicine/telemedicine.component.test.tsx +113 -0
- package/src/telemedicine/telemedicine.component.tsx +310 -0
- package/src/telemedicine/telemedicine.resource.test.ts +171 -0
- package/src/telemedicine/telemedicine.resource.ts +125 -0
- package/src/telemedicine/telemedicine.scss +91 -0
- package/src/triage/triage.component.scss +6 -0
- package/src/triage/triage.component.tsx +4 -0
- package/src/types/types.ts +56 -1
- package/tools/fetch-shr-code-systems.mjs +135 -0
- package/tools/strip-openmrs-declaration-maps.mjs +44 -0
- package/tools/update-openmrs-deps.mjs +36 -5
- package/translations/en.json +135 -0
- package/tsconfig.json +7 -4
- package/webpack.config.js +74 -1
- package/dist/104.js +0 -2
- package/dist/104.js.map +0 -1
- package/dist/145.js +0 -1
- package/dist/145.js.map +0 -1
- package/dist/15.js +0 -1
- package/dist/15.js.map +0 -1
- package/dist/184.js +0 -2
- package/dist/184.js.map +0 -1
- package/dist/246.js +0 -2
- package/dist/246.js.map +0 -1
- package/dist/255.js +0 -1
- package/dist/255.js.map +0 -1
- package/dist/28.js +0 -1
- package/dist/28.js.map +0 -1
- package/dist/300.js +0 -1
- package/dist/321.js +0 -1
- package/dist/321.js.map +0 -1
- package/dist/327.js +0 -1
- package/dist/327.js.map +0 -1
- package/dist/339.js +0 -1
- package/dist/339.js.map +0 -1
- package/dist/353.js +0 -1
- package/dist/353.js.map +0 -1
- package/dist/420.js +0 -1
- package/dist/420.js.map +0 -1
- package/dist/540.js +0 -2
- package/dist/540.js.map +0 -1
- package/dist/55.js +0 -1
- package/dist/709.js +0 -1
- package/dist/709.js.map +0 -1
- package/dist/710.js +0 -2
- package/dist/710.js.LICENSE.txt +0 -14
- package/dist/710.js.map +0 -1
- package/dist/717.js +0 -1
- package/dist/717.js.map +0 -1
- package/dist/729.js +0 -1
- package/dist/729.js.map +0 -1
- package/dist/752.js +0 -1
- package/dist/752.js.map +0 -1
- package/dist/833.js +0 -1
- package/dist/833.js.map +0 -1
- package/dist/93.js +0 -1
- package/dist/93.js.map +0 -1
- package/dist/964.js +0 -1
- package/dist/964.js.map +0 -1
- package/dist/99.js +0 -1
- /package/dist/{104.js.LICENSE.txt → 2272.js.LICENSE.txt} +0 -0
- /package/dist/{184.js.LICENSE.txt → 3184.js.LICENSE.txt} +0 -0
- /package/dist/{540.js.LICENSE.txt → 6540.js.LICENSE.txt} +0 -0
- /package/src/{pharmacy-dashboard.meta.ts → dashboard-meta/pharmacy-dashboard.meta.ts} +0 -0
- /package/src/{queue-dashboard.meta.ts → dashboard-meta/queue-dashboard.meta.ts} +0 -0
- /package/src/{triage-dashboard.meta.ts → dashboard-meta/triage-dashboard.meta.ts} +0 -0
- /package/src/{service-queues/service-queue/stats → shared/ui}/stat-card/stat-card.component.scss +0 -0
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import ServiceQueueComponent from '../service-queues/service-queue/service-queue.component';
|
|
3
3
|
import { QUEUE_SERVICE_UUIDS } from '../shared/constants/concepts';
|
|
4
|
+
import FacilityAndWorkerSlot from '../shared/ui/facility-worker-slot/facility-worker.component-slot.component';
|
|
4
5
|
|
|
5
6
|
interface TriageProps {}
|
|
6
7
|
const Triage: React.FC<TriageProps> = () => {
|
|
7
8
|
return (
|
|
8
9
|
<>
|
|
10
|
+
<div>
|
|
11
|
+
<FacilityAndWorkerSlot />
|
|
12
|
+
</div>
|
|
9
13
|
<div>
|
|
10
14
|
<ServiceQueueComponent serviceTypeUuid={QUEUE_SERVICE_UUIDS.TRIAGE_SERVICE_UUID} title="Triage" />
|
|
11
15
|
</div>
|
package/src/types/types.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
type Visit,
|
|
3
|
+
type Location,
|
|
3
4
|
type Concept,
|
|
4
5
|
type Patient,
|
|
5
6
|
type OpenmrsResource,
|
|
@@ -35,6 +36,15 @@ export interface Provider {
|
|
|
35
36
|
serviceType: string;
|
|
36
37
|
}
|
|
37
38
|
|
|
39
|
+
export type QueueService = {
|
|
40
|
+
uuid: string;
|
|
41
|
+
display: string;
|
|
42
|
+
name: string;
|
|
43
|
+
description: string;
|
|
44
|
+
location: Location;
|
|
45
|
+
service: QueueService;
|
|
46
|
+
};
|
|
47
|
+
|
|
38
48
|
export interface Queue {
|
|
39
49
|
uuid: string;
|
|
40
50
|
display: string;
|
|
@@ -124,5 +134,50 @@ export enum QueueEntryStatus {
|
|
|
124
134
|
|
|
125
135
|
export enum QueueEntryPriority {
|
|
126
136
|
Emergency = 'EMERGENCY',
|
|
127
|
-
|
|
137
|
+
Priority = 'PRIORITY',
|
|
138
|
+
NonUrgent = 'NON-URGENT',
|
|
139
|
+
Routine = 'ROUTINE',
|
|
140
|
+
Urgent = 'URGENT',
|
|
141
|
+
VeryUrgent = 'VERY URGENT'
|
|
128
142
|
}
|
|
143
|
+
|
|
144
|
+
export type CreateQueueDto = {
|
|
145
|
+
name: string;
|
|
146
|
+
description: string;
|
|
147
|
+
service: {
|
|
148
|
+
uuid: string;
|
|
149
|
+
};
|
|
150
|
+
location: {
|
|
151
|
+
uuid: string;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
export type QueueRoom = {
|
|
156
|
+
uuid: string;
|
|
157
|
+
display: string;
|
|
158
|
+
name: string;
|
|
159
|
+
description: string;
|
|
160
|
+
queue: Queue;
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
export type CreateQueueRoomDto = {
|
|
164
|
+
name: string;
|
|
165
|
+
description: string;
|
|
166
|
+
queue: {
|
|
167
|
+
uuid: string;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
export type TagType =
|
|
172
|
+
| 'red'
|
|
173
|
+
| 'magenta'
|
|
174
|
+
| 'purple'
|
|
175
|
+
| 'blue'
|
|
176
|
+
| 'cyan'
|
|
177
|
+
| 'teal'
|
|
178
|
+
| 'green'
|
|
179
|
+
| 'gray'
|
|
180
|
+
| 'cool-gray'
|
|
181
|
+
| 'warm-gray'
|
|
182
|
+
| 'high-contrast'
|
|
183
|
+
| 'outline';
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Regenerates `src/shr/shr-code-systems.json` — the offline copy of the SHR's
|
|
3
|
+
* emergency-medicine FHIR CodeSystems, used to resolve display text for codings
|
|
4
|
+
* the SHR sends bare (a `code` with no `display`).
|
|
5
|
+
*
|
|
6
|
+
* The app cannot fetch these at runtime: the O3 app shell's
|
|
7
|
+
* Content-Security-Policy `connect-src` does not list the SHA FHIR server, so a
|
|
8
|
+
* browser `fetch()` to it is blocked before it leaves the page. So we ship the
|
|
9
|
+
* concepts instead. See `src/shr/shr-terminology.resource.ts`.
|
|
10
|
+
*
|
|
11
|
+
* node ./tools/fetch-shr-code-systems.mjs [--server <url> | --server=<url>]
|
|
12
|
+
*
|
|
13
|
+
* Only the `em-*` systems are taken. They are the ones the SHR sends bare, and
|
|
14
|
+
* they are the ones whose displays are written for clinicians. The rest of the
|
|
15
|
+
* server's ~150 systems are deliberately left out: the big reference
|
|
16
|
+
* catalogues (diagnoses, interventions, drugs) never arrive as bare codings,
|
|
17
|
+
* and several of the small ones carry displays that are worse than humanising
|
|
18
|
+
* the code would be — `knhts-contact-relationship-cs` maps `parent` to the
|
|
19
|
+
* lowercase "parent", and `knhts-code-systems-cs` maps `loinc` to the URL
|
|
20
|
+
* "http://loinc.org". Resolving against those would put wrong text in a
|
|
21
|
+
* clinical view, which is worse than the raw code the viewer falls back to.
|
|
22
|
+
*
|
|
23
|
+
* Systems are keyed by CodeSystem **id** (the last path segment), not by full
|
|
24
|
+
* URL, because the same system is published under different hosts across
|
|
25
|
+
* environments (`nshr-uat.sha.go.ke`, `hie.go.ke`, production). The id must be
|
|
26
|
+
* derived exactly as `codeSystemId()` does in `shr-terminology.resource.ts` —
|
|
27
|
+
* the two are the halves of one key contract.
|
|
28
|
+
*/
|
|
29
|
+
import { writeFile } from 'node:fs/promises';
|
|
30
|
+
import { fileURLToPath } from 'node:url';
|
|
31
|
+
import path from 'node:path';
|
|
32
|
+
|
|
33
|
+
const DEFAULT_SERVER = 'https://nshr-uat.sha.go.ke/fhir';
|
|
34
|
+
const WANTED_ID_PREFIX = 'em-';
|
|
35
|
+
const PAGE_SIZE = 200;
|
|
36
|
+
/** Guards against a server whose last page links to itself, which would spin forever. */
|
|
37
|
+
const MAX_PAGES = 50;
|
|
38
|
+
|
|
39
|
+
function parseServer(argv) {
|
|
40
|
+
const inline = argv.find((arg) => arg.startsWith('--server='));
|
|
41
|
+
if (inline) {
|
|
42
|
+
return inline.slice('--server='.length);
|
|
43
|
+
}
|
|
44
|
+
const flag = argv.indexOf('--server');
|
|
45
|
+
if (flag === -1) {
|
|
46
|
+
return DEFAULT_SERVER;
|
|
47
|
+
}
|
|
48
|
+
const value = argv[flag + 1];
|
|
49
|
+
if (!value || value.startsWith('-')) {
|
|
50
|
+
throw new Error('--server needs a URL, e.g. --server https://nshr-uat.sha.go.ke/fhir');
|
|
51
|
+
}
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** Must match `codeSystemId()` in `src/shr/shr-terminology.resource.ts`. */
|
|
56
|
+
function codeSystemId(url) {
|
|
57
|
+
return String(url ?? '')
|
|
58
|
+
.split('/')
|
|
59
|
+
.filter(Boolean)
|
|
60
|
+
.pop();
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const server = parseServer(process.argv.slice(2)).replace(/\/$/, '');
|
|
64
|
+
const outFile = path.join(path.dirname(fileURLToPath(import.meta.url)), '..', 'src', 'shr', 'shr-code-systems.json');
|
|
65
|
+
|
|
66
|
+
const systems = {};
|
|
67
|
+
const canonicalById = {};
|
|
68
|
+
const seenPages = new Set();
|
|
69
|
+
const skipped = [];
|
|
70
|
+
let url = `${server}/CodeSystem?_count=${PAGE_SIZE}`;
|
|
71
|
+
|
|
72
|
+
while (url) {
|
|
73
|
+
if (seenPages.has(url)) {
|
|
74
|
+
throw new Error(`Pagination looped back to ${url}`);
|
|
75
|
+
}
|
|
76
|
+
if (seenPages.size >= MAX_PAGES) {
|
|
77
|
+
throw new Error(`Stopped after ${MAX_PAGES} pages — the server's "next" links do not terminate.`);
|
|
78
|
+
}
|
|
79
|
+
seenPages.add(url);
|
|
80
|
+
|
|
81
|
+
const response = await fetch(url, { headers: { Accept: 'application/fhir+json' } });
|
|
82
|
+
if (!response.ok) {
|
|
83
|
+
throw new Error(`GET ${url} -> ${response.status} ${response.statusText}`);
|
|
84
|
+
}
|
|
85
|
+
const bundle = await response.json();
|
|
86
|
+
|
|
87
|
+
for (const { resource } of bundle.entry ?? []) {
|
|
88
|
+
const canonical = resource?.url;
|
|
89
|
+
const id = codeSystemId(canonical);
|
|
90
|
+
if (!id) {
|
|
91
|
+
skipped.push(`(no usable url: ${JSON.stringify(canonical)})`);
|
|
92
|
+
continue;
|
|
93
|
+
}
|
|
94
|
+
if (!id.startsWith(WANTED_ID_PREFIX)) {
|
|
95
|
+
continue;
|
|
96
|
+
}
|
|
97
|
+
// Two publishers minting the same id would silently overwrite each other and
|
|
98
|
+
// put another system's wording on a clinical code, so refuse to guess.
|
|
99
|
+
if (id in canonicalById && canonicalById[id] !== canonical) {
|
|
100
|
+
throw new Error(`Two code systems share the id "${id}": ${canonicalById[id]} and ${canonical}`);
|
|
101
|
+
}
|
|
102
|
+
canonicalById[id] = canonical;
|
|
103
|
+
|
|
104
|
+
const concepts = (resource?.concept ?? []).filter((concept) => concept?.code && concept?.display);
|
|
105
|
+
if (concepts.length === 0) {
|
|
106
|
+
skipped.push(`${id} (no concepts)`);
|
|
107
|
+
continue;
|
|
108
|
+
}
|
|
109
|
+
systems[id] = Object.fromEntries(concepts.map(({ code, display }) => [code, display]));
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
const next = bundle.link?.find((link) => link.relation === 'next')?.url;
|
|
113
|
+
// HAPI behind a reverse proxy can emit `next` on its internal base URL; following
|
|
114
|
+
// that would silently walk off onto another host mid-run.
|
|
115
|
+
if (next && !next.startsWith(server)) {
|
|
116
|
+
throw new Error(`Refusing to follow a "next" link off ${server}: ${next}`);
|
|
117
|
+
}
|
|
118
|
+
url = next ?? null;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
const sorted = Object.fromEntries(
|
|
122
|
+
Object.keys(systems)
|
|
123
|
+
.sort()
|
|
124
|
+
.map((id) => [id, systems[id]]),
|
|
125
|
+
);
|
|
126
|
+
await writeFile(outFile, `${JSON.stringify(sorted, null, 2)}\n`, 'utf8');
|
|
127
|
+
|
|
128
|
+
const conceptCount = Object.values(sorted).reduce((total, concepts) => total + Object.keys(concepts).length, 0);
|
|
129
|
+
console.log(`Server: ${server}`);
|
|
130
|
+
console.log(
|
|
131
|
+
`Wrote ${Object.keys(sorted).length} "${WANTED_ID_PREFIX}*" code systems (${conceptCount} concepts) to ${outFile}`,
|
|
132
|
+
);
|
|
133
|
+
if (skipped.length) {
|
|
134
|
+
console.log(`Skipped: ${skipped.join(', ')}`);
|
|
135
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenMRS packages ship *.d.ts.map that point at their src/*.ts(x).
|
|
3
|
+
* `tsc` follows those maps and typechecks node_modules source, which:
|
|
4
|
+
* - redeclares globals (e.g. __webpack_share_scopes__) against dist .d.ts
|
|
5
|
+
* - surfaces third-party version skew (e.g. nested @internationalized/date)
|
|
6
|
+
*
|
|
7
|
+
* Strip the maps so consumers only typecheck against published .d.ts (+ skipLibCheck).
|
|
8
|
+
*/
|
|
9
|
+
import { readdirSync, unlinkSync, statSync } from 'node:fs';
|
|
10
|
+
import { join } from 'node:path';
|
|
11
|
+
|
|
12
|
+
const roots = [join(process.cwd(), 'node_modules', '@openmrs')];
|
|
13
|
+
|
|
14
|
+
function walk(dir) {
|
|
15
|
+
let entries;
|
|
16
|
+
try {
|
|
17
|
+
entries = readdirSync(dir, { withFileTypes: true });
|
|
18
|
+
} catch {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
for (const entry of entries) {
|
|
22
|
+
const full = join(dir, entry.name);
|
|
23
|
+
if (entry.isDirectory()) {
|
|
24
|
+
if (entry.name === 'node_modules') continue;
|
|
25
|
+
walk(full);
|
|
26
|
+
continue;
|
|
27
|
+
}
|
|
28
|
+
if (entry.isFile() && entry.name.endsWith('.d.ts.map')) {
|
|
29
|
+
try {
|
|
30
|
+
unlinkSync(full);
|
|
31
|
+
} catch {
|
|
32
|
+
/* ignore */
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
for (const root of roots) {
|
|
39
|
+
try {
|
|
40
|
+
if (statSync(root).isDirectory()) walk(root);
|
|
41
|
+
} catch {
|
|
42
|
+
/* package not installed yet */
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { execSync } from 'node:child_process';
|
|
2
|
+
import { readFileSync, writeFileSync } from 'node:fs';
|
|
2
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Bump OpenMRS packages in the lockfile to current `next`, without committing
|
|
6
|
+
* resolved version numbers into package.json (form-engine-lib / patient-chart pattern).
|
|
7
|
+
*/
|
|
3
8
|
try {
|
|
4
|
-
|
|
5
|
-
execSync(`yarn up --fixed '@openmrs/*@next' 'openmrs@next'`, {
|
|
9
|
+
execSync(`yarn up '@openmrs/*@next' 'openmrs@next'`, {
|
|
6
10
|
stdio: ['ignore', 'inherit', 'inherit'],
|
|
7
11
|
windowsHide: true,
|
|
8
12
|
});
|
|
@@ -11,6 +15,34 @@ try {
|
|
|
11
15
|
process.exit(1);
|
|
12
16
|
}
|
|
13
17
|
|
|
18
|
+
try {
|
|
19
|
+
const pkgPath = 'package.json';
|
|
20
|
+
const pkg = JSON.parse(readFileSync(pkgPath, 'utf8'));
|
|
21
|
+
for (const section of ['dependencies', 'devDependencies', 'optionalDependencies']) {
|
|
22
|
+
const deps = pkg[section];
|
|
23
|
+
if (!deps) continue;
|
|
24
|
+
for (const name of Object.keys(deps)) {
|
|
25
|
+
if (name === 'openmrs' || name.startsWith('@openmrs/')) {
|
|
26
|
+
deps[name] = 'next';
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
writeFileSync(pkgPath, `${JSON.stringify(pkg, null, 2)}\n`);
|
|
31
|
+
} catch (error) {
|
|
32
|
+
console.error(`Error while restoring next ranges in package.json: ${error.message ?? error}`);
|
|
33
|
+
process.exit(1);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
try {
|
|
37
|
+
execSync(`yarn`, {
|
|
38
|
+
stdio: ['ignore', 'inherit', 'inherit'],
|
|
39
|
+
windowsHide: true,
|
|
40
|
+
});
|
|
41
|
+
} catch (error) {
|
|
42
|
+
console.error(`Error while reinstalling after package.json reset: ${error.message ?? error}`);
|
|
43
|
+
process.exit(1);
|
|
44
|
+
}
|
|
45
|
+
|
|
14
46
|
try {
|
|
15
47
|
execSync(`yarn dedupe`, {
|
|
16
48
|
stdio: ['ignore', 'inherit', 'inherit'],
|
|
@@ -27,9 +59,8 @@ try {
|
|
|
27
59
|
windowsHide: true,
|
|
28
60
|
});
|
|
29
61
|
process.exit(0);
|
|
30
|
-
} catch
|
|
31
|
-
//
|
|
32
|
-
// exits with status 1 if there are changes; we only need to run yarn verify if there are changes
|
|
62
|
+
} catch {
|
|
63
|
+
// Changes exist — run verify
|
|
33
64
|
}
|
|
34
65
|
|
|
35
66
|
try {
|
package/translations/en.json
CHANGED
|
@@ -1,12 +1,31 @@
|
|
|
1
1
|
{
|
|
2
|
+
"addInterventionError": "Error adding intervention",
|
|
3
|
+
"addInterventionSuccess": "Intervention added successfully",
|
|
4
|
+
"billPeriod": "Bill period",
|
|
5
|
+
"cancel": "Cancel",
|
|
2
6
|
"casualGreeting": "hey",
|
|
7
|
+
"categories": "Categories",
|
|
8
|
+
"claimDoctors": "Claim doctors",
|
|
9
|
+
"claimLines": "Claim lines",
|
|
10
|
+
"claimNotes": "Claim notes",
|
|
11
|
+
"claimType": "Claim type",
|
|
12
|
+
"close": "Close",
|
|
13
|
+
"closeVisit": "Close visit",
|
|
14
|
+
"closing": "Closing…",
|
|
3
15
|
"configSystem": "Configuration system",
|
|
4
16
|
"configSystemExplainer": "The greeting shown below is driven by the configuration system. To change the configuration properties, click the spanner icon in the navbar to pull up the Implementer Tools panel. Then, type <2>template</2> into the <4>Search configuration</4> input. This should filter the configuration properties to show only those that are relevant to this module. You can change the values of these properties and click <6>Save</6> to see the changes reflected in the UI",
|
|
17
|
+
"confirmClose": "Confirm close",
|
|
5
18
|
"connect": "Connect",
|
|
19
|
+
"connected": "Connected",
|
|
6
20
|
"connectExplainer": "Get in touch with the community",
|
|
21
|
+
"createdAt": "Created",
|
|
22
|
+
"createdClaimVisitSuccess": "Claim visit has been created successfully",
|
|
23
|
+
"createdInterventionSuccess": "Intervention created successfully",
|
|
7
24
|
"dataFetching": "Data fetching",
|
|
8
25
|
"designDocs": "Design docs",
|
|
9
26
|
"designDocsExplainer": "Read the O3 design documentation",
|
|
27
|
+
"diagnosis": "Diagnosis",
|
|
28
|
+
"electivePreauth": "Elective",
|
|
10
29
|
"explainer": "The following examples demonstrate some key features of the O3 framework",
|
|
11
30
|
"extensionExplainer": "Here are some colored boxes. Because they are attached as extensions within a slot, an admin can change what boxes are shown using configuration. These boxes happen to be defined in this module, but they could attach to this slot even if they were in a different module",
|
|
12
31
|
"extensionSystem": "Extension system",
|
|
@@ -15,10 +34,126 @@
|
|
|
15
34
|
"getPatient": "Get a patient named",
|
|
16
35
|
"getStarted": "Get started",
|
|
17
36
|
"getStartedExplainer": "Create a frontend module from this template",
|
|
37
|
+
"incapacityReason": "Incapacity reason",
|
|
38
|
+
"initiateShrRequest": "Initiate SHR request",
|
|
39
|
+
"interventionCode": "Intervention",
|
|
40
|
+
"interventions": "Interventions",
|
|
41
|
+
"lastUpdated": "Last updated",
|
|
18
42
|
"learnExplainer": "Learn how to use the O3 framework",
|
|
19
43
|
"loading": "Loading",
|
|
44
|
+
"loadingPatient": "Loading patient…",
|
|
45
|
+
"memberNumber": "Member No.",
|
|
46
|
+
"missingConsentToken": "No claim token on visit",
|
|
47
|
+
"missingConsentTokenDetail": "Start a claim visit first, then raise normal preauth from facility bill Claim details.",
|
|
48
|
+
"nextPage": "Next page",
|
|
49
|
+
"noLoginLocation": "No login location selected",
|
|
50
|
+
"noPatientSelected": "No patient selected",
|
|
51
|
+
"noPreauth": "None",
|
|
52
|
+
"normalPreauth": "Normal",
|
|
53
|
+
"orderNumber": "Order #",
|
|
54
|
+
"otpCode": "OTP code",
|
|
20
55
|
"patientGetterExplainer": "Try clicking the button below to fetch a patient from the backend",
|
|
56
|
+
"preauthRequired": "Preauth",
|
|
57
|
+
"preExistingInterventionsHeading": "Existing interventions",
|
|
58
|
+
"previousPage": "Previous page",
|
|
59
|
+
"printReceipt": "Print receipt",
|
|
60
|
+
"proposedValue": "Proposed value",
|
|
61
|
+
"provider": "Provider",
|
|
62
|
+
"providerClaimNo": "Provider claim No.",
|
|
21
63
|
"resources": "Resources",
|
|
64
|
+
"retry": "Retry",
|
|
65
|
+
"searchThisList": "Search this list",
|
|
66
|
+
"sharedHealthRecord": "Shared health record",
|
|
67
|
+
"shrCategories": "Shared health record categories",
|
|
68
|
+
"shrCheckingOpenVisit": "Checking for an open SHR visit…",
|
|
69
|
+
"shrCheckingRegistry": "Checking the patient’s registry number…",
|
|
70
|
+
"shrCloseIncapacityReasonPlaceholder": "e.g. Unconscious",
|
|
71
|
+
"shrCloseVisitExplainer": "The patient is normally asked to approve the closure with an OTP, and the visit stays open until they do.",
|
|
72
|
+
"shrCloseVisitFailed": "Couldn't close the visit.",
|
|
73
|
+
"shrCloseVisitFailedDetail": "{{detail}} The records below are still loaded — use Close visit to try again.",
|
|
74
|
+
"shrCloseVisitIndeterminate": "The SHR service did not say whether the visit closed. Try again.",
|
|
75
|
+
"shrClosureAwaitingOtp": "Closure awaiting confirmation",
|
|
76
|
+
"shrClosureAwaitingOtpDetail": "A code was sent to whoever gave consent. The visit stays open until it is entered.",
|
|
77
|
+
"shrClosureNotConfirmed": "That code did not close the visit. Check it with the patient and try again.",
|
|
78
|
+
"shrClosureOtpSent": "Closure OTP sent",
|
|
79
|
+
"shrClosureOtpSentDetail": "The visit stays open until that code is entered.",
|
|
80
|
+
"shrClosureVerifyFailed": "Couldn't confirm the closure.",
|
|
81
|
+
"shrConfirmClosure": "Confirm closure",
|
|
82
|
+
"shrConsentDeclined": "Consent declined",
|
|
83
|
+
"shrConsentDeclinedDetail": "This visit was not opened and no records were fetched.",
|
|
84
|
+
"shrConsentDeclinedWithReason": "This visit was not opened. Reason given: {{reason}}",
|
|
85
|
+
"shrCrLookupFailed": "Couldn't read the patient's registry number",
|
|
86
|
+
"shrExistingVisitReused": "Reusing this patient’s open SHR visit",
|
|
87
|
+
"shrExistingVisitReusedDetail": "They already consented at this facility, so no new OTP is needed.",
|
|
88
|
+
"shrFetchingRecords": "Fetching records from the shared health record…",
|
|
89
|
+
"shrIdleDetail": "Start a shared health record request to fetch this patient's national records for the current visit.",
|
|
90
|
+
"shrLoadFailed": "Couldn't load records",
|
|
91
|
+
"shrLoadFailedDetail": "The consent token may have expired, or the SHR service is unreachable. Try again, or start a new request.",
|
|
92
|
+
"shrNationalRecord": "National SHR",
|
|
93
|
+
"shrNeedsLocation": "An SHR consent request must be scoped to a facility.",
|
|
94
|
+
"shrNeedsPatient": "Open a patient chart to request their shared health record.",
|
|
95
|
+
"shrNoActiveSession": "No active SHR session",
|
|
96
|
+
"shrNoCategoriesConfigured": "No SHR categories configured",
|
|
97
|
+
"shrNoCategoriesConfiguredDetail": "No FHIR resource types are configured for the shared health record viewer. Set shrResourceTypes in this module’s configuration.",
|
|
98
|
+
"shrNoCrNumber": "No Client Registry number",
|
|
99
|
+
"shrNoCrNumberDetail": "This patient has no Client Registry number, so their national records cannot be requested. Register them with the Client Registry first.",
|
|
100
|
+
"shrNoFurtherDetail": "No further detail was shared for this record.",
|
|
101
|
+
"shrNoRecordsDetail": "The SHR returned no records for this client for the requested categories. You can send their visit data to the SHR, retry, or close the visit.",
|
|
102
|
+
"shrNoRecordsFound": "No shared records found",
|
|
103
|
+
"shrNoRecordsInCategory": "No {{category}} in this shared record.",
|
|
104
|
+
"shrPatientIncapableHelper": "Closes the visit immediately, with no OTP sent.",
|
|
105
|
+
"shrPatientIncapableOfClosure": "Patient unable to consent to closure (unconscious/deceased)",
|
|
106
|
+
"shrSendingVisitData": "Sending…",
|
|
107
|
+
"shrSendVisitData": "Send visit to SHR",
|
|
108
|
+
"shrSourceCount": "{{total}} source systems",
|
|
109
|
+
"shrSyncedAt": "synced {{time}}",
|
|
110
|
+
"shrSyncFailed": "Couldn't refresh the records.",
|
|
111
|
+
"shrSyncFailedDetail": "{{detail}} Use Sync now to try again.",
|
|
112
|
+
"shrVisitActive": "visit {{visitId}} active",
|
|
113
|
+
"shrVisitClosed": "SHR visit closed",
|
|
114
|
+
"shrVisitClosedDetail": "SHR access has ended for this session.",
|
|
115
|
+
"shrVisitClosedOn": "SHR access has ended for this session. Closed · {{date}}",
|
|
116
|
+
"shrVisitClosureAccepted": "The closure request was accepted.",
|
|
117
|
+
"shrVisitConsent": "SHR visit consent",
|
|
118
|
+
"shrVisitDataSubmitted": "Visit data sent to the shared health record",
|
|
119
|
+
"shrVisitDataSubmittedDetail": "The closed visit is now in the SHR.",
|
|
120
|
+
"shrVisitSyncFailed": "Couldn't send the visit data to the shared health record",
|
|
121
|
+
"shrVisitSyncFailedDetail": "Try again, or contact support.",
|
|
122
|
+
"shrVisitSyncSkipped": "No closed visit to send",
|
|
123
|
+
"shrVisitSyncSkippedDetail": "There was no closed visit to submit.",
|
|
124
|
+
"shrVisitSyncValidated": "Visit bundle built — nothing was submitted",
|
|
125
|
+
"sourceSystem": "Source system",
|
|
126
|
+
"startClaimVisitSuccess": "Claim visit started successfully",
|
|
127
|
+
"startingVisitError": "Error starting visit",
|
|
128
|
+
"startNewRequest": "Start new request",
|
|
129
|
+
"startNewShrRequest": "Start new SHR request",
|
|
130
|
+
"subBenefit": "Sub-benefit",
|
|
131
|
+
"summary": "Summary",
|
|
132
|
+
"syncing": "Syncing…",
|
|
133
|
+
"syncNow": "Sync now",
|
|
134
|
+
"telemedicine": "Telemedicine",
|
|
135
|
+
"telemedicineNeedsLocation": "A telemedicine session must be scoped to a facility. Log in with a facility location and try again.",
|
|
136
|
+
"telemedicineNeedsPatient": "Open a patient chart to start a telemedicine session.",
|
|
137
|
+
"telemedicineNoNationalId": "No national ID on your provider account",
|
|
138
|
+
"telemedicineNoNationalIdDetail": "A national ID must be recorded on your provider account before a telemedicine session can be started. Ask an administrator to add it.",
|
|
139
|
+
"telemedicineNoProvider": "Couldn't identify the logged-in provider",
|
|
140
|
+
"telemedicineNoProviderDetail": "Your session has no provider attached, so a telemedicine session cannot be started. Log in with a provider account.",
|
|
141
|
+
"telemedicineNoSessionUrl": "The telemedicine service did not return a session link.",
|
|
142
|
+
"telemedicinePatientNoNationalId": "No national ID on the patient’s record",
|
|
143
|
+
"telemedicinePatientNoNationalIdDetail": "This patient has no national ID recorded, so a patient telemedicine session cannot be started. Capture their national ID first.",
|
|
144
|
+
"telemedicineReconnect": "Reconnect",
|
|
145
|
+
"telemedicineReconnecting": "Reconnecting…",
|
|
146
|
+
"telemedicineSessionActive": "Session active",
|
|
147
|
+
"telemedicineSessionExpires": "Session link valid for {{minutes}} min",
|
|
148
|
+
"telemedicineStartFailed": "Couldn't start the telemedicine session",
|
|
149
|
+
"telemedicineStartFailedDetail": "The telemedicine service may be unreachable from this facility. Try again.",
|
|
150
|
+
"telemedicineStarting": "Starting telemedicine session…",
|
|
151
|
+
"totalRecords": "Total records",
|
|
152
|
+
"trackingNumber": "Tracking No.",
|
|
153
|
+
"transitions": "Transitions",
|
|
22
154
|
"usefulLinks": "Below are some links to useful resources",
|
|
155
|
+
"verifying": "Verifying…",
|
|
156
|
+
"visitClosed": "Visit closed",
|
|
157
|
+
"visitTime": "Visit time",
|
|
23
158
|
"welcomeText": "Welcome to the O3 Template app"
|
|
24
159
|
}
|
package/tsconfig.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"compilerOptions": {
|
|
3
3
|
"esModuleInterop": true,
|
|
4
4
|
"module": "esnext",
|
|
5
|
+
"moduleResolution": "bundler",
|
|
5
6
|
"allowSyntheticDefaultImports": true,
|
|
6
7
|
"jsx": "react",
|
|
7
8
|
"skipLibCheck": true,
|
|
8
|
-
"moduleResolution": "node",
|
|
9
9
|
"lib": [
|
|
10
10
|
"dom",
|
|
11
11
|
"es5",
|
|
@@ -15,10 +15,13 @@
|
|
|
15
15
|
"es2016.array.include",
|
|
16
16
|
"es2018",
|
|
17
17
|
"es2020",
|
|
18
|
-
"es2022"
|
|
18
|
+
"es2022"
|
|
19
19
|
],
|
|
20
20
|
"resolveJsonModule": true,
|
|
21
21
|
"noEmit": true,
|
|
22
|
-
"target": "esnext"
|
|
23
|
-
|
|
22
|
+
"target": "esnext",
|
|
23
|
+
"baseUrl": "./"
|
|
24
|
+
},
|
|
25
|
+
"include": ["src/**/*"],
|
|
26
|
+
"exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.test.tsx", "**/*.spec.ts", "**/*.spec.tsx"]
|
|
24
27
|
}
|
package/webpack.config.js
CHANGED
|
@@ -1 +1,74 @@
|
|
|
1
|
-
|
|
1
|
+
const path = require('path');
|
|
2
|
+
const extendConfig = require('openmrs/default-webpack-config');
|
|
3
|
+
|
|
4
|
+
// Some OpenMRS packages (notably `@openmrs/esm-patient-common-lib`) are
|
|
5
|
+
// published as raw TypeScript source with no compiled `dist` output, so the
|
|
6
|
+
// consuming app is responsible for transpiling them. The default OpenMRS
|
|
7
|
+
// webpack config excludes all of `node_modules` from the swc-loader, which
|
|
8
|
+
// causes "Module parse failed: The keyword 'interface' is reserved" errors for
|
|
9
|
+
// these packages. We narrow that exclusion so their source is transpiled too.
|
|
10
|
+
const sourceOnlyOpenmrsPackages = ['@openmrs/esm-patient-common-lib', '@openmrs/esm-styleguide'];
|
|
11
|
+
|
|
12
|
+
function isExcludedFromTranspilation(modulePath) {
|
|
13
|
+
if (!/[\\/]node_modules[\\/]/.test(modulePath)) {
|
|
14
|
+
return false; // our own source — always transpile
|
|
15
|
+
}
|
|
16
|
+
const normalized = modulePath.split('\\').join('/');
|
|
17
|
+
return !sourceOnlyOpenmrsPackages.some((pkg) => normalized.includes(`node_modules/${pkg}/`));
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function usesSwcLoader(rule) {
|
|
21
|
+
const entries = Array.isArray(rule.use) ? rule.use : [rule.use];
|
|
22
|
+
return entries.some((entry) => String((entry && entry.loader) || entry).includes('swc-loader'));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Because we now transpile the source of some OpenMRS packages (above), the
|
|
26
|
+
// type-checker follows imports into third-party `node_modules` source and
|
|
27
|
+
// reports pre-existing type errors from those packages (e.g. esm-globals,
|
|
28
|
+
// esm-styleguide). Those aren't our code, so exclude node_modules from the
|
|
29
|
+
// fork-ts-checker issues while keeping type-checking for our own source.
|
|
30
|
+
function excludeNodeModulesFromTypeCheck(config) {
|
|
31
|
+
for (const plugin of config.plugins || []) {
|
|
32
|
+
if (plugin && plugin.constructor && plugin.constructor.name === 'ForkTsCheckerWebpackPlugin') {
|
|
33
|
+
plugin.options = plugin.options || {};
|
|
34
|
+
plugin.options.issue = plugin.options.issue || {};
|
|
35
|
+
const existing = plugin.options.issue.exclude;
|
|
36
|
+
const excludes = Array.isArray(existing) ? existing.slice() : existing ? [existing] : [];
|
|
37
|
+
excludes.push({ file: '**/node_modules/**' });
|
|
38
|
+
plugin.options.issue.exclude = excludes;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* `openmrs develop` serves the production app-shell React, while this remote
|
|
45
|
+
* builds in development mode. @carbon/react then pulls
|
|
46
|
+
* react/jsx-*-runtime.development.js, which expects ReactDebugCurrentFrame
|
|
47
|
+
* (setExtraStackFrame) — missing on production React → runtime crash.
|
|
48
|
+
* Pin both jsx runtimes to the production builds used by the shell.
|
|
49
|
+
*/
|
|
50
|
+
function aliasProductionJsxRuntimes(config) {
|
|
51
|
+
const reactDir = path.dirname(require.resolve('react/package.json'));
|
|
52
|
+
const jsxRuntimeProd = path.join(reactDir, 'cjs/react-jsx-runtime.production.min.js');
|
|
53
|
+
config.resolve = config.resolve || {};
|
|
54
|
+
config.resolve.alias = {
|
|
55
|
+
...(config.resolve.alias || {}),
|
|
56
|
+
'react/jsx-runtime': jsxRuntimeProd,
|
|
57
|
+
'react/jsx-dev-runtime': jsxRuntimeProd,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
module.exports = (env, argv = {}) => {
|
|
62
|
+
const config = extendConfig(env, argv);
|
|
63
|
+
|
|
64
|
+
for (const rule of config.module.rules || []) {
|
|
65
|
+
if (rule && rule.use && usesSwcLoader(rule)) {
|
|
66
|
+
rule.exclude = isExcludedFromTranspilation;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
excludeNodeModulesFromTypeCheck(config);
|
|
71
|
+
aliasProductionJsxRuntimes(config);
|
|
72
|
+
|
|
73
|
+
return config;
|
|
74
|
+
};
|
package/dist/104.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 104.js.LICENSE.txt */
|
|
2
|
-
"use strict";(globalThis.webpackChunk_ampath_esm_dha_workflow_app=globalThis.webpackChunk_ampath_esm_dha_workflow_app||[]).push([[104,709],{10540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},14993:(e,t,n)=>{n.d(t,{BE:()=>$,Es:()=>V,Ht:()=>Y,PP:()=>U,Tn:()=>u,X3:()=>C,ZH:()=>a,aw:()=>Q,b0:()=>s,bZ:()=>v,bu:()=>M,dO:()=>O,lK:()=>x,lg:()=>N,mF:()=>F,mf:()=>L,q9:()=>J,qm:()=>G,qv:()=>i,r9:()=>E,rL:()=>c,sb:()=>W});var r=n(16072);const o=()=>{},a=o(),i=Object,s=e=>e===a,u=e=>"function"==typeof e,c=(e,t)=>({...e,...t}),l=e=>u(e.then),f=new WeakMap;let d=0;const p=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,a;if(i(e)!==e||r||n==RegExp)o=r?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(o=f.get(e),o)return o;if(o=++d+"~",f.set(e,o),n==Array){for(o="@",a=0;a<e.length;a++)o+=p(e[a])+",";f.set(e,o)}if(n==i){o="#";const t=i.keys(e).sort();for(;!s(a=t.pop());)s(e[a])||(o+=a+":"+p(e[a])+",");f.set(e,o)}}return o},v=new WeakMap,h={},b={},m="undefined",g=typeof window!=m,y=typeof document!=m,E=(e,t)=>{const n=v.get(e);return[()=>!s(t)&&e.get(t)||h,r=>{if(!s(t)){const o=e.get(t);t in b||(b[t]=o),n[5](t,c(o,r),o||h)}},n[6],()=>!s(t)&&t in b?b[t]:!s(t)&&e.get(t)||h]};let w=!0;const[_,T]=g&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[o,o],R={isOnline:()=>w,isVisible:()=>{const e=y&&document.visibilityState;return s(e)||"hidden"!==e}},S={initFocus:e=>(y&&document.addEventListener("visibilitychange",e),_("focus",e),()=>{y&&document.removeEventListener("visibilitychange",e),T("focus",e)}),initReconnect:e=>{const t=()=>{w=!0,e()},n=()=>{w=!1};return _("online",t),_("offline",n),()=>{T("online",t),T("offline",n)}}},O=!r.useId,C=!g||"Deno"in window,L=e=>g&&typeof window.requestAnimationFrame!=m?window.requestAnimationFrame(e):setTimeout(e,1),V=C?r.useEffect:r.useLayoutEffect,k="undefined"!=typeof navigator&&navigator.connection,A=!C&&k&&(["slow-2g","2g"].includes(k.effectiveType)||k.saveData),x=e=>{if(u(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?p(e):"",t]};let I=0;const N=()=>++I,D=2;var M={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:D,RECONNECT_EVENT:1};async function F(...e){const[t,n,r,o]=e,i=c({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{});let f=i.populateCache;const d=i.rollbackOnError;let p=i.optimisticData;const h=i.throwOnError;if(u(n)){const e=n,r=[],o=t.keys();for(const n of o)!/^\$(inf|sub)\$/.test(n)&&e(t.get(n)._k)&&r.push(n);return Promise.all(r.map(b))}return b(n);async function b(n){const[o]=x(n);if(!o)return;const[c,b]=E(t,o),[m,g,y,w]=v.get(t),_=()=>{const e=m[o];return(u(i.revalidate)?i.revalidate(c().data,n):!1!==i.revalidate)&&(delete y[o],delete w[o],e&&e[0])?e[0](D).then((()=>c().data)):c().data};if(e.length<3)return _();let T,R=r;const S=N();g[o]=[S,0];const O=!s(p),C=c(),L=C.data,V=C._c,k=s(V)?L:V;if(O&&(p=u(p)?p(k,L):p,b({data:p,_c:k})),u(R))try{R=R(k)}catch(e){T=e}if(R&&l(R)){if(R=await R.catch((e=>{T=e})),S!==g[o][0]){if(T)throw T;return R}T&&O&&(e=>"function"==typeof d?d(e):!1!==d)(T)&&(f=!0,b({data:k,_c:a}))}if(f&&!T)if(u(f)){const e=f(R,k);b({data:e,error:a,_c:a})}else b({data:R,error:a,_c:a});if(g[o][1]=N(),Promise.resolve(_()).then((()=>{b({_c:a})})),!T)return R;if(h)throw T}}const j=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},P=(e,t)=>{if(!v.has(e)){const n=c(S,t),r={},i=F.bind(a,e);let s=o;const u={},l=(e,t)=>{const n=u[e]||[];return u[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},f=(t,n,r)=>{e.set(t,n);const o=u[t];if(o)for(const e of o)e(n,r)},d=()=>{if(!v.has(e)&&(v.set(e,[r,{},{},{},i,f,l]),!C)){const t=n.initFocus(setTimeout.bind(a,j.bind(a,r,0))),o=n.initReconnect(setTimeout.bind(a,j.bind(a,r,1)));s=()=>{t&&t(),o&&o(),v.delete(e)}}};return d(),[e,i,d,s]}return[e,v.get(e)[4]]},[U,q]=P(new Map),W=c({onLoadingSlow:o,onSuccess:o,onError:o,onErrorRetry:(e,t,n,r,o)=>{const a=n.errorRetryCount,i=o.retryCount,u=~~((Math.random()+.5)*(1<<(i<8?i:8)))*n.errorRetryInterval;!s(a)&&i>a||setTimeout(r,u,o)},onDiscarded:o,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:A?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:A?5e3:3e3,compare:(e,t)=>p(e)==p(t),isPaused:()=>!1,cache:U,mutate:q,fallback:{}},R),H=(e,t)=>{const n=c(e,t);if(t){const{use:r,fallback:o}=e,{use:a,fallback:i}=t;r&&a&&(n.use=r.concat(a)),o&&i&&(n.fallback=c(o,i))}return n},Z=(0,r.createContext)({}),$=e=>{const{value:t}=e,n=(0,r.useContext)(Z),o=u(t),i=(0,r.useMemo)((()=>o?t(n):t),[o,n,t]),s=(0,r.useMemo)((()=>o?i:H(n,i)),[o,n,i]),l=i&&i.provider,f=(0,r.useRef)(a);l&&!f.current&&(f.current=P(l(s.cache||U),i));const d=f.current;return d&&(s.cache=d[0],s.mutate=d[1]),V((()=>{if(d)return d[2]&&d[2](),d[3]}),[]),(0,r.createElement)(Z.Provider,c(e,{value:s}))},J="$inf$",B=g&&window.__SWR_DEVTOOLS_USE__,X=B?window.__SWR_DEVTOOLS_USE__:[],K=e=>u(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],z=X.concat((e=>(t,n,r)=>e(t,n&&((...e)=>{const[r]=x(t),[,,,o]=v.get(U);if(r.startsWith(J))return n(...e);const a=o[r];return s(a)?n(...e):(delete o[r],a)}),r))),G=e=>function(...t){const n=c(W,(0,r.useContext)(Z)),[o,a,i]=K(t),s=H(n,i);let u=e;const{use:l}=s,f=(l||[]).concat(z);for(let e=f.length;e--;)u=f[e](u);return u(o,a||s.fetcher||null,s)},Q=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},Y=(e,t)=>(...n)=>{const[r,o,a]=K(n),i=(a.use||[]).concat(t);return e(r,o,{...a,use:i})};B&&(window.__SWR_DEVTOOLS_REACT__=r)},19888:(e,t,n)=>{e.exports=n(58493)},41113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},55056:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},58493:(e,t,n)=>{var r=n(16072),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,i=r.useEffect,s=r.useLayoutEffect,u=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),o=r[0].inst,l=r[1];return s((function(){o.value=n,o.getSnapshot=t,c(o)&&l({inst:o})}),[e,n,t]),i((function(){return c(o)&&l({inst:o}),e((function(){c(o)&&l({inst:o})}))}),[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},59324:(e,t,n)=>{n.d(t,{Ay:()=>c,BE:()=>u});var r=n(16072),o=n(19888),a=n(14993);const i=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),s={dedupe:!0},u=a.qv.defineProperty(a.BE,"defaultValue",{value:a.sb}),c=(0,a.qm)(((e,t,n)=>{const{cache:u,compare:c,suspense:l,fallbackData:f,revalidateOnMount:d,revalidateIfStale:p,refreshInterval:v,refreshWhenHidden:h,refreshWhenOffline:b,keepPreviousData:m}=n,[g,y,E,w]=a.bZ.get(u),[_,T]=(0,a.lK)(e),R=(0,r.useRef)(!1),S=(0,r.useRef)(!1),O=(0,r.useRef)(_),C=(0,r.useRef)(t),L=(0,r.useRef)(n),V=()=>L.current,k=()=>V().isVisible()&&V().isOnline(),[A,x,I,N]=(0,a.r9)(u,_),D=(0,r.useRef)({}).current,M=(0,a.b0)(f)?n.fallback[_]:f,F=(e,t)=>{for(const n in D){const r=n;if("data"===r){if(!c(e[r],t[r])){if(!(0,a.b0)(e[r]))return!1;if(!c(J,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},j=(0,r.useMemo)((()=>{const e=!!_&&!!t&&((0,a.b0)(d)?!V().isPaused()&&!l&&(!!(0,a.b0)(p)||p):d),n=t=>{const n=(0,a.rL)(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=A(),o=N(),i=n(r),s=r===o?i:n(o);let u=i;return[()=>{const e=n(A());return F(e,u)?(u.data=e.data,u.isLoading=e.isLoading,u.isValidating=e.isValidating,u.error=e.error,u):(u=e,e)},()=>s]}),[u,_]),P=(0,o.useSyncExternalStore)((0,r.useCallback)((e=>I(_,((t,n)=>{F(n,t)||e()}))),[u,_]),j[0],j[1]),U=!R.current,q=g[_]&&g[_].length>0,W=P.data,H=(0,a.b0)(W)?M:W,Z=P.error,$=(0,r.useRef)(H),J=m?(0,a.b0)(W)?$.current:W:H,B=!(q&&!(0,a.b0)(Z))&&(U&&!(0,a.b0)(d)?d:!V().isPaused()&&(l?!(0,a.b0)(H)&&p:(0,a.b0)(H)||p)),X=!!(_&&t&&U&&B),K=(0,a.b0)(P.isValidating)?X:P.isValidating,z=(0,a.b0)(P.isLoading)?X:P.isLoading,G=(0,r.useCallback)((async e=>{const t=C.current;if(!_||!t||S.current||V().isPaused())return!1;let r,o,i=!0;const s=e||{},u=!E[_]||!s.dedupe,l=()=>a.dO?!S.current&&_===O.current&&R.current:_===O.current,f={isValidating:!1,isLoading:!1},d=()=>{x(f)},p=()=>{const e=E[_];e&&e[1]===o&&delete E[_]},v={isValidating:!0};(0,a.b0)(A().data)&&(v.isLoading=!0);try{if(u&&(x(v),n.loadingTimeout&&(0,a.b0)(A().data)&&setTimeout((()=>{i&&l()&&V().onLoadingSlow(_,n)}),n.loadingTimeout),E[_]=[t(T),(0,a.lg)()]),[r,o]=E[_],r=await r,u&&setTimeout(p,n.dedupingInterval),!E[_]||E[_][1]!==o)return u&&l()&&V().onDiscarded(_),!1;f.error=a.ZH;const e=y[_];if(!(0,a.b0)(e)&&(o<=e[0]||o<=e[1]||0===e[1]))return d(),u&&l()&&V().onDiscarded(_),!1;const s=A().data;f.data=c(s,r)?s:r,u&&l()&&V().onSuccess(r,_,n)}catch(e){p();const t=V(),{shouldRetryOnError:n}=t;t.isPaused()||(f.error=e,u&&l()&&(t.onError(e,_,t),(!0===n||(0,a.Tn)(n)&&n(e))&&(V().revalidateOnFocus&&V().revalidateOnReconnect&&!k()||t.onErrorRetry(e,_,t,(e=>{const t=g[_];t&&t[0]&&t[0](a.bu.ERROR_REVALIDATE_EVENT,e)}),{retryCount:(s.retryCount||0)+1,dedupe:!0}))))}return i=!1,d(),!0}),[_,u]),Q=(0,r.useCallback)(((...e)=>(0,a.mF)(u,O.current,...e)),[]);if((0,a.Es)((()=>{C.current=t,L.current=n,(0,a.b0)(W)||($.current=W)})),(0,a.Es)((()=>{if(!_)return;const e=G.bind(a.ZH,s);let t=0;const n=(0,a.aw)(_,g,((n,r={})=>{if(n==a.bu.FOCUS_EVENT){const n=Date.now();V().revalidateOnFocus&&n>t&&k()&&(t=n+V().focusThrottleInterval,e())}else if(n==a.bu.RECONNECT_EVENT)V().revalidateOnReconnect&&k()&&e();else{if(n==a.bu.MUTATE_EVENT)return G();if(n==a.bu.ERROR_REVALIDATE_EVENT)return G(r)}}));return S.current=!1,O.current=_,R.current=!0,x({_k:T}),B&&((0,a.b0)(H)||a.X3?e():(0,a.mf)(e)),()=>{S.current=!0,n()}}),[_]),(0,a.Es)((()=>{let e;function t(){const t=(0,a.Tn)(v)?v(A().data):v;t&&-1!==e&&(e=setTimeout(n,t))}function n(){A().error||!h&&!V().isVisible()||!b&&!V().isOnline()?t():G(s).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[v,h,b,_]),(0,r.useDebugValue)(J),l&&(0,a.b0)(H)&&_){if(!a.dO&&a.X3)throw new Error("Fallback data is required when using suspense in SSR.");C.current=t,L.current=n,S.current=!1;const e=w[_];if(!(0,a.b0)(e)){const t=Q(e);i(t)}if(!(0,a.b0)(Z))throw Z;{const e=G(s);(0,a.b0)(J)||(e.status="fulfilled",e.value=!0),i(e)}}return{mutate:Q,get data(){return D.data=!0,J},get error(){return D.error=!0,Z},get isValidating(){return D.isValidating=!0,K},get isLoading(){return D.isLoading=!0,z}}}))},70159:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var a=0;a<this.length;a++){var i=this[a][0];null!=i&&(o[i]=!0)}for(var s=0;s<e.length;s++){var u=[].concat(e[s]);r&&o[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),t.push(u))}},t}},72996:e=>{function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e.exports=function(e){var n,r,o=(r=4,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}}(n,r)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=o[1],i=o[3];if(!i)return a;if("function"==typeof btoa){var s=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),c="/*# ".concat(u," */"),l=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[a].concat(l).concat([c]).join("\n")}return[a].join("\n")}},77659:e=>{var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},85072:e=>{var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},i=[],s=0;s<e.length;s++){var u=e[s],c=r.base?u[0]+r.base:u[0],l=a[c]||0,f="".concat(c," ").concat(l);a[c]=l+1;var d=n(f),p={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==d)t[d].references++,t[d].updater(p);else{var v=o(p,r);r.byIndex=s,t.splice(s,0,{identifier:f,updater:v,references:1})}i.push(f)}return i}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var a=r(e=e||[],o=o||{});return function(e){e=e||[];for(var i=0;i<a.length;i++){var s=n(a[i]);t[s].references--}for(var u=r(e,o),c=0;c<a.length;c++){var l=n(a[c]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}a=u}}},97825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}}}]);
|