@ampath/esm-dha-workflow-app 4.0.0-next.13 → 4.0.0-next.131
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/1197.js +1 -0
- package/dist/1277.js +1 -0
- package/dist/1277.js.map +1 -0
- package/dist/1558.js +2 -0
- package/dist/{198.js.LICENSE.txt → 1558.js.LICENSE.txt} +0 -10
- package/dist/1558.js.map +1 -0
- package/dist/1729.js +1 -0
- package/dist/1729.js.map +1 -0
- package/dist/182.js +1 -0
- package/dist/182.js.map +1 -0
- package/dist/1826.js +1 -0
- package/dist/1826.js.map +1 -0
- package/dist/1833.js +1 -0
- package/dist/1833.js.map +1 -0
- package/dist/1856.js +1 -0
- package/dist/1856.js.map +1 -0
- package/dist/1925.js +1 -0
- package/dist/1925.js.map +1 -0
- package/dist/2021.js +1 -0
- package/dist/2021.js.map +1 -0
- package/dist/2054.js +1 -0
- package/dist/2054.js.map +1 -0
- package/dist/2177.js +2 -0
- package/dist/2177.js.LICENSE.txt +9 -0
- package/dist/2177.js.map +1 -0
- package/dist/2364.js +2 -0
- package/dist/{200.js.LICENSE.txt → 2364.js.LICENSE.txt} +15 -0
- package/dist/2364.js.map +1 -0
- package/dist/2566.js +1 -0
- package/dist/2566.js.map +1 -0
- package/dist/2801.js +1 -0
- package/dist/2801.js.map +1 -0
- package/dist/2975.js +1 -0
- package/dist/2975.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/3184.js +2 -0
- package/dist/3184.js.map +1 -0
- package/dist/3485.js +1 -0
- package/dist/3485.js.map +1 -0
- package/dist/3654.js +1 -0
- package/dist/3654.js.map +1 -0
- package/dist/4055.js +1 -0
- package/dist/4205.js +1 -0
- package/dist/4205.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/4335.js +1 -0
- package/dist/4353.js +1 -0
- package/dist/4353.js.map +1 -0
- package/dist/4517.js +1 -0
- package/dist/4517.js.map +1 -0
- package/dist/4652.js +1 -0
- package/dist/4674.js +1 -0
- package/dist/4674.js.map +1 -0
- package/dist/4947.js +1 -0
- package/dist/4947.js.map +1 -0
- package/dist/5015.js +1 -0
- package/dist/5015.js.map +1 -0
- package/dist/5422.js +1 -0
- package/dist/5422.js.map +1 -0
- package/dist/5428.js +1 -0
- package/dist/5428.js.map +1 -0
- package/dist/5752.js +1 -0
- package/dist/5752.js.map +1 -0
- package/dist/5851.js +1 -0
- package/dist/5851.js.map +1 -0
- package/dist/6264.js +1 -0
- package/dist/6264.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/693.js +1 -0
- package/dist/693.js.map +1 -0
- package/dist/6991.js +1 -0
- package/dist/6991.js.map +1 -0
- package/dist/7199.js +1 -0
- package/dist/7199.js.map +1 -0
- package/dist/7255.js +1 -0
- package/dist/7255.js.map +1 -0
- package/dist/7258.js +1 -0
- package/dist/7258.js.map +1 -0
- package/dist/7420.js +1 -0
- package/dist/7420.js.map +1 -0
- package/dist/8114.js +1 -0
- package/dist/8114.js.map +1 -0
- package/dist/8339.js +1 -0
- package/dist/8339.js.map +1 -0
- package/dist/8865.js +1 -0
- package/dist/8865.js.map +1 -0
- package/dist/8895.js +1 -0
- package/dist/8895.js.map +1 -0
- package/dist/9037.js +1 -0
- package/dist/9037.js.map +1 -0
- package/dist/9091.js +1 -0
- package/dist/9091.js.map +1 -0
- package/dist/9093.js +1 -0
- package/dist/9093.js.map +1 -0
- package/dist/9117.js +1 -0
- package/dist/9117.js.map +1 -0
- package/dist/9721.js +1 -0
- package/dist/9721.js.map +1 -0
- package/dist/esm-dha-workflow-app.js +1 -0
- package/dist/esm-dha-workflow-app.js.buildmanifest.json +1546 -0
- package/dist/esm-dha-workflow-app.js.map +1 -0
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +11 -4
- package/src/accounting/accounting.component.tsx +13 -0
- package/src/admissions/admission-request-list/admission-request-list.scss +0 -0
- package/src/admissions/admission-request-list/admission-request-list.tsx +134 -0
- package/src/admissions/admissions-dashboard.component.scss +15 -0
- package/src/admissions/admissions-dashboard.component.tsx +160 -0
- package/src/admissions/admissions.resource.ts +101 -0
- package/src/admissions/admitted-list/admitted-patients-list.tsx +141 -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 +58 -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/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 +109 -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 +84 -0
- package/src/admissions/types/index.ts +192 -0
- package/src/appointments/appointments.component.tsx +13 -0
- package/src/billing/api/billing.api.ts +95 -0
- package/src/billing/billing-root.tsx +20 -0
- package/src/billing/dashboard/billingDashboard.component.scss +0 -0
- package/src/billing/dashboard/billingDashboard.component.tsx +25 -0
- package/src/billing/extensions/visit-billing/visit-billing.extension.scss +0 -0
- package/src/billing/extensions/visit-billing/visit-billing.extension.tsx +409 -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 +1371 -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/types/index.ts +84 -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 +85 -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 +330 -0
- package/src/billing/workspaces/create-order-bill-form-workspace/schema.ts +11 -0
- package/src/bookings/bookings.component.scss +7 -0
- package/src/bookings/bookings.component.tsx +31 -0
- package/src/bookings/daily/daily-bookings.component.scss +38 -0
- package/src/bookings/daily/daily-bookings.component.tsx +138 -0
- package/src/bookings/daily/daily-bookings.resource.ts +28 -0
- package/src/bookings/daily/filters/daily-bookings-filter.component.scss +15 -0
- package/src/bookings/daily/filters/daily-bookings-filter.component.tsx +80 -0
- package/src/bookings/daily/patient-list/daily-bookings-patient-list.component.tsx +97 -0
- package/src/bookings/types/index.ts +68 -0
- package/src/config-schema.ts +186 -32
- package/src/createDashboardLink.tsx +9 -0
- package/src/dashboard/charts/chart.component.scss +13 -0
- package/src/dashboard/charts/chart.component.tsx +54 -0
- package/src/dashboard/dashboard.component.scss +7 -0
- package/src/dashboard/dashboard.component.tsx +51 -0
- package/src/dashboard/overview/overview.component.scss +147 -0
- package/src/dashboard/overview/overview.component.tsx +115 -0
- package/src/dashboard/patient-list/patient-list.component.tsx +41 -0
- 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/consultation-dashboard.meta.ts +6 -0
- package/src/dashboard-meta/dha-workflow-dashboard.meta.ts +6 -0
- package/src/dashboard-meta/inpatient-admissions.meta.ts +6 -0
- package/src/dashboard-meta/mch-dashboard.meta.ts +6 -0
- package/src/dashboard-meta/pharmacy-dashboard.meta.ts +6 -0
- package/src/dashboard-meta/queue-dashboard.meta.ts +6 -0
- package/src/dashboard-meta/registers-dashboard.meta.ts +6 -0
- package/src/dashboard-meta/registry-dashboard.meta.ts +6 -0
- package/src/dashboard-meta/service-queue-admin.meta.ts +6 -0
- package/src/dashboard-meta/triage-dashboard.meta.ts +6 -0
- package/src/hooks/useActions.ts +165 -0
- package/src/index.ts +113 -1
- package/src/laboratory/laboratory.component.tsx +13 -0
- package/src/left-panel/left-panel.component.tsx +0 -2
- package/src/mch/mch-queues.component.scss +7 -0
- package/src/mch/mch-queues.component.tsx +32 -0
- package/src/mch/queues/consultation/mch-consultation.tsx +18 -0
- package/src/mch/queues/triage/mch-triage.tsx +15 -0
- package/src/modals/sign-off-modal.scss +7 -0
- package/src/modals/sign-off-modal.tsx +52 -0
- package/src/mortuary/mortuary.component.tsx +13 -0
- package/src/pharmacy/pharmacy.component.tsx +13 -0
- package/src/registers/registers.component.tsx +8 -0
- package/src/registry/eligibility/eliigibility-tags/eligibility-tags.scss +6 -0
- package/src/registry/eligibility/eliigibility-tags/eligibility-tags.tsx +137 -0
- package/src/registry/eligibility/modal/eligibility-details.modal.scss +38 -0
- package/src/registry/eligibility/modal/eligibility-details.modal.tsx +131 -0
- package/src/registry/modal/client-details-modal/client-details-modal.tsx +9 -26
- package/src/registry/modal/otp-verification-modal/otp-verification-modal.scss +31 -1
- package/src/registry/modal/otp-verification-modal/otp-verification-modal.tsx +145 -58
- package/src/registry/modal/send-to-triage/send-to-triage.modal.scss +16 -1
- package/src/registry/modal/send-to-triage/send-to-triage.modal.tsx +681 -97
- 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/registry.component.scss +18 -1
- package/src/registry/registry.component.tsx +242 -111
- package/src/registry/registry.resource.ts +8 -5
- package/src/registry/types/index.ts +179 -1
- package/src/registry/utils/error-handler.ts +33 -0
- package/src/registry/utils/format-dependant-display-data.ts +8 -0
- package/src/registry/utils/hie-client-adapter.ts +312 -0
- package/src/registry/utils/mask-data.ts +11 -0
- package/src/resources/dashboard.resource.ts +20 -0
- package/src/resources/hie-amrs-automatic-registration.service.ts +16 -0
- package/src/resources/identifier-types.ts +29 -0
- package/src/resources/patient-resource.ts +62 -0
- package/src/resources/queue.resource.ts +23 -0
- package/src/resources/superset.resource.ts +20 -0
- package/src/resources/visit.resource.ts +19 -1
- package/src/root.component.tsx +32 -6
- package/src/routes.json +215 -7
- package/src/service-queues/action-button.component.tsx +34 -0
- package/src/service-queues/action-overflow-menu-item.component.tsx +34 -0
- 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 +142 -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 +150 -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 +34 -0
- package/src/service-queues/consultation/consultation.component.scss +7 -0
- package/src/service-queues/consultation/consultation.component.tsx +15 -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/metrics/metrics-cards/attended-patients.extension.tsx +38 -0
- package/src/service-queues/metrics/metrics-cards/metrics-card.component.tsx +86 -0
- package/src/service-queues/metrics/metrics-cards/metrics-card.scss +106 -0
- package/src/service-queues/metrics/metrics-cards/waiting-patients.extension.tsx +34 -0
- package/src/service-queues/metrics/metrics-container.component.tsx +23 -0
- package/src/service-queues/metrics/metrics-container.scss +36 -0
- package/src/service-queues/metrics/metrics.resource.ts +65 -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 +108 -0
- package/src/service-queues/modals/move/move-patient.component.scss +35 -0
- package/src/service-queues/modals/move/move-patient.component.tsx +152 -0
- package/src/service-queues/modals/serve/serve-patient.comppnent.scss +0 -0
- package/src/service-queues/modals/serve/serve-patient.comppnent.tsx +80 -0
- package/src/service-queues/modals/sign-off/sign-off.modal.scss +0 -0
- package/src/service-queues/modals/sign-off/sign-off.modal.tsx +79 -0
- package/src/service-queues/modals/transition/transition-patient.component.scss +0 -0
- package/src/service-queues/modals/transition/transition-patient.component.tsx +122 -0
- package/src/service-queues/queue-list/check-in.service.ts +26 -0
- package/src/service-queues/queue-list/queue-list.component.scss +36 -0
- package/src/service-queues/queue-list/queue-list.component.tsx +249 -0
- package/src/service-queues/queue-room.component.tsx +39 -0
- package/src/service-queues/room/room.component.tsx +58 -0
- package/src/service-queues/service-queue/service-queue.component.scss +14 -0
- package/src/service-queues/service-queue/service-queue.component.tsx +399 -0
- package/src/service-queues/service-queue/stats/stat-details/stat-details.component.scss +12 -0
- package/src/service-queues/service-queue/stats/stat-details/stat-details.component.tsx +63 -0
- package/src/service-queues/service-queue.scss +27 -0
- package/src/service-queues/service-queue.tsx +37 -0
- package/src/service-queues/service-queues.resource.ts +361 -0
- package/src/service-queues/service.resource.ts +28 -0
- package/src/shared/constants/civil-status.ts +29 -0
- package/src/shared/constants/concepts.ts +15 -0
- package/src/shared/constants/index.ts +1 -2
- package/src/shared/constants/patient-category.ts +6 -0
- package/src/shared/constants/person-attributes.ts +33 -0
- package/src/shared/constants/visit-types.ts +7 -0
- package/src/shared/services/billing.resource.ts +38 -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/eligibility.resource.ts +19 -0
- package/src/shared/services/encounters.resource.ts +27 -0
- package/src/shared/services/location.resource.ts +9 -0
- package/src/shared/types/index.ts +152 -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/otp-input/otp-input.component.scss +14 -0
- package/src/shared/ui/otp-input/otp-input.component.tsx +90 -0
- package/src/shared/ui/stat-card/stat-card.component.scss +10 -0
- package/src/shared/ui/stat-card/stat-card.component.tsx +26 -0
- package/src/shared/ui/timer/timer.component.scss +5 -0
- package/src/shared/ui/timer/timer.component.tsx +40 -0
- package/src/shared/utils/get-base-url.ts +27 -0
- package/src/shared/utils/get-tag-type.ts +66 -0
- package/src/side-nav-menu/nav-link-config.ts +6 -4
- package/src/triage/metrics/attended-patients.extension.tsx +42 -0
- package/src/triage/metrics/metrics.scss +36 -0
- package/src/triage/metrics/triage-metrics.component.tsx +21 -0
- package/src/triage/metrics/waiting-patients.extension.tsx +39 -0
- package/src/triage/room/room.scss +29 -0
- package/src/triage/triage.component.tsx +15 -0
- package/src/triage/triage.resource.ts +19 -0
- package/src/triage/types.ts +16 -0
- package/src/types/types.ts +180 -0
- package/dist/16.js +0 -1
- package/dist/16.js.map +0 -1
- package/dist/184.js +0 -2
- package/dist/184.js.map +0 -1
- package/dist/197.js +0 -1
- package/dist/198.js +0 -2
- package/dist/198.js.map +0 -1
- package/dist/200.js +0 -2
- package/dist/200.js.map +0 -1
- package/dist/255.js +0 -1
- package/dist/255.js.map +0 -1
- package/dist/300.js +0 -1
- package/dist/335.js +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/652.js +0 -1
- package/dist/860.js +0 -1
- package/dist/860.js.map +0 -1
- package/dist/91.js +0 -1
- package/dist/91.js.map +0 -1
- package/dist/93.js +0 -1
- package/dist/93.js.map +0 -1
- package/dist/99.js +0 -1
- package/dist/openmrs-esm-home-app.js +0 -1
- package/dist/openmrs-esm-home-app.js.buildmanifest.json +0 -626
- package/dist/openmrs-esm-home-app.js.map +0 -1
- package/src/consultation/consultation.tsx +0 -7
- /package/dist/{184.js.LICENSE.txt → 3184.js.LICENSE.txt} +0 -0
- /package/dist/{540.js.LICENSE.txt → 6540.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { Modal, ModalBody, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Tag } from '@carbon/react';
|
|
2
|
+
import { type HieClientEligibility } from '../../types';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import styles from './eligibility-details.modal.scss';
|
|
5
|
+
import { getTagType } from '../../../shared/utils/get-tag-type';
|
|
6
|
+
|
|
7
|
+
interface ClientEligibilityDetailsModalProps {
|
|
8
|
+
hieClientEligibility: HieClientEligibility;
|
|
9
|
+
open: boolean;
|
|
10
|
+
onModalClose: () => void;
|
|
11
|
+
onSubmit: () => void;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const ClientEligibilityDetailsModal: React.FC<ClientEligibilityDetailsModalProps> = ({
|
|
15
|
+
hieClientEligibility,
|
|
16
|
+
open,
|
|
17
|
+
onModalClose,
|
|
18
|
+
onSubmit,
|
|
19
|
+
}) => {
|
|
20
|
+
if (!hieClientEligibility) {
|
|
21
|
+
return <>No Client data</>;
|
|
22
|
+
}
|
|
23
|
+
return (
|
|
24
|
+
<>
|
|
25
|
+
<Modal
|
|
26
|
+
open={open}
|
|
27
|
+
size="lg"
|
|
28
|
+
onSecondarySubmit={onModalClose}
|
|
29
|
+
onRequestClose={onModalClose}
|
|
30
|
+
onRequestSubmit={onModalClose}
|
|
31
|
+
primaryButtonText="Done"
|
|
32
|
+
secondaryButtonText="Cancel"
|
|
33
|
+
>
|
|
34
|
+
<ModalBody>
|
|
35
|
+
<div className={styles.clientEligibilityDetailsLayout}>
|
|
36
|
+
<div className={styles.sectionHeader}>
|
|
37
|
+
<h4 className={styles.sectionTitle}>Patient Eligibilty Details</h4>
|
|
38
|
+
</div>
|
|
39
|
+
<div className={styles.sectionContent}>
|
|
40
|
+
<div className={styles.clientDetails}>
|
|
41
|
+
<div>
|
|
42
|
+
<div className={styles.detailData}>
|
|
43
|
+
<strong className={styles.detailText}>Full Name</strong>
|
|
44
|
+
<span>{hieClientEligibility.fullName}</span>
|
|
45
|
+
</div>
|
|
46
|
+
<div className={styles.detailData}>
|
|
47
|
+
<strong className={styles.detailText}>ID Number</strong>
|
|
48
|
+
<span>{hieClientEligibility.requestIdNumber}</span>
|
|
49
|
+
</div>
|
|
50
|
+
<div className={styles.detailData}>
|
|
51
|
+
<strong className={styles.detailText}>CR No</strong>
|
|
52
|
+
<span>{hieClientEligibility.memberCrNumber}</span>
|
|
53
|
+
</div>
|
|
54
|
+
<div className={styles.detailData}>
|
|
55
|
+
<strong className={styles.detailText}>Status</strong>
|
|
56
|
+
<span>{hieClientEligibility.statusDesc}</span>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
<div className={styles.schemeSection}>
|
|
61
|
+
<div className={styles.sectionHeader}>
|
|
62
|
+
<h4 className={styles.sectionTitle}>Scheme Details</h4>
|
|
63
|
+
</div>
|
|
64
|
+
<div className={styles.schemeTable}>
|
|
65
|
+
<Table>
|
|
66
|
+
<TableHead>
|
|
67
|
+
<TableRow>
|
|
68
|
+
<TableHeader>No</TableHeader>
|
|
69
|
+
<TableHeader>Name</TableHeader>
|
|
70
|
+
<TableHeader>Member Type</TableHeader>
|
|
71
|
+
<TableHeader>Policy</TableHeader>
|
|
72
|
+
<TableHeader>Coverage</TableHeader>
|
|
73
|
+
<TableHeader>Coverage Period</TableHeader>
|
|
74
|
+
<TableHeader>Coverage Status</TableHeader>
|
|
75
|
+
<TableHeader>Coverage Reason</TableHeader>
|
|
76
|
+
<TableHeader>Principal Contributor</TableHeader>
|
|
77
|
+
<TableHeader>Principal Contributor Employment Type</TableHeader>
|
|
78
|
+
</TableRow>
|
|
79
|
+
</TableHead>
|
|
80
|
+
<TableBody>
|
|
81
|
+
{hieClientEligibility.schemes.map((scheme, id) => {
|
|
82
|
+
return (
|
|
83
|
+
<TableRow key={id}>
|
|
84
|
+
<TableCell>{id + 1}</TableCell>
|
|
85
|
+
<TableCell>{scheme.schemeName}</TableCell>
|
|
86
|
+
<TableCell>{scheme.memberType}</TableCell>
|
|
87
|
+
<TableCell>
|
|
88
|
+
{scheme.policy ? (
|
|
89
|
+
<>
|
|
90
|
+
{scheme.policy.number} ({scheme.policy.startDate} - {scheme.policy.endDate})
|
|
91
|
+
</>
|
|
92
|
+
) : (
|
|
93
|
+
<></>
|
|
94
|
+
)}
|
|
95
|
+
</TableCell>
|
|
96
|
+
<TableCell>
|
|
97
|
+
<Tag
|
|
98
|
+
className="some-class"
|
|
99
|
+
size="lg"
|
|
100
|
+
title="Status"
|
|
101
|
+
type={getTagType(scheme.coverage.status)}
|
|
102
|
+
>
|
|
103
|
+
{scheme.coverage.status === '1' ? 'Active' : 'Not Active'}
|
|
104
|
+
</Tag>
|
|
105
|
+
</TableCell>
|
|
106
|
+
<TableCell>
|
|
107
|
+
{scheme.coverage.startDate} - {scheme.coverage.endDate}
|
|
108
|
+
</TableCell>
|
|
109
|
+
<TableCell>{scheme.coverage.message}</TableCell>
|
|
110
|
+
<TableCell>{scheme.coverage.reason}</TableCell>
|
|
111
|
+
<TableCell>
|
|
112
|
+
{scheme.principalContributor.crNumber} : {scheme.principalContributor.name},
|
|
113
|
+
{scheme.principalContributor.relationship}
|
|
114
|
+
</TableCell>
|
|
115
|
+
<TableCell>{scheme.principalContributor.employmentType}</TableCell>
|
|
116
|
+
</TableRow>
|
|
117
|
+
);
|
|
118
|
+
})}
|
|
119
|
+
</TableBody>
|
|
120
|
+
</Table>
|
|
121
|
+
</div>
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
124
|
+
</div>
|
|
125
|
+
</ModalBody>
|
|
126
|
+
</Modal>
|
|
127
|
+
</>
|
|
128
|
+
);
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
export default ClientEligibilityDetailsModal;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Modal, ModalBody, Tab, TabList, TabPanel, TabPanels, Tabs } from '@carbon/react';
|
|
2
2
|
import { type HieClient } from '../../types';
|
|
3
|
-
import React from 'react';
|
|
3
|
+
import React, { useState } from 'react';
|
|
4
4
|
import styles from './client-details-modal.scss';
|
|
5
5
|
import ClientDetails from '../../client-details/client-details';
|
|
6
6
|
import PaymentOptionsComponent from '../../payment-details/payment-options/payment-options';
|
|
7
|
+
import { type CreateClientPaymentModeDto, type HieClientPaymentMode, type PaymentMode } from '../../../shared/types';
|
|
8
|
+
import { createClientPaymentMode } from '../../../shared/services/client-payment-mode.resource';
|
|
9
|
+
import { showSnackbar } from '@openmrs/esm-framework';
|
|
7
10
|
|
|
8
11
|
interface ClientDetailsModalProps {
|
|
9
12
|
client: HieClient;
|
|
@@ -23,54 +26,34 @@ const ClientDetailsModal: React.FC<ClientDetailsModalProps> = ({
|
|
|
23
26
|
if (!client) {
|
|
24
27
|
return <>No Client data</>;
|
|
25
28
|
}
|
|
26
|
-
const registerOnAfyaYangu = () => {
|
|
27
|
-
window.open('https://afyayangu.go.ke/', '_blank');
|
|
28
|
-
};
|
|
29
29
|
return (
|
|
30
30
|
<>
|
|
31
31
|
<Modal
|
|
32
32
|
open={open}
|
|
33
|
-
size="
|
|
33
|
+
size="lg"
|
|
34
34
|
onSecondarySubmit={onModalClose}
|
|
35
35
|
onRequestClose={onModalClose}
|
|
36
|
-
onRequestSubmit={
|
|
37
|
-
primaryButtonText="
|
|
36
|
+
onRequestSubmit={() => onSendClientToTriage(client.id)}
|
|
37
|
+
primaryButtonText="Send To Triage"
|
|
38
38
|
secondaryButtonText="Cancel"
|
|
39
39
|
>
|
|
40
40
|
<ModalBody>
|
|
41
41
|
<div className={styles.clientDetailsLayout}>
|
|
42
42
|
<div className={styles.sectionHeader}>
|
|
43
|
-
<h4 className={styles.sectionTitle}>Patient
|
|
43
|
+
<h4 className={styles.sectionTitle}>Patient Details</h4>
|
|
44
44
|
</div>
|
|
45
45
|
<div className={styles.sectionContent}>
|
|
46
46
|
<Tabs>
|
|
47
47
|
<TabList contained>
|
|
48
48
|
<Tab>Patient Details</Tab>
|
|
49
|
-
<Tab>Payment Details</Tab>
|
|
50
49
|
</TabList>
|
|
51
50
|
<TabPanels>
|
|
52
51
|
<TabPanel>
|
|
53
52
|
<ClientDetails client={client} />
|
|
54
53
|
</TabPanel>
|
|
55
|
-
<TabPanel>
|
|
56
|
-
<PaymentOptionsComponent />
|
|
57
|
-
</TabPanel>
|
|
58
54
|
</TabPanels>
|
|
59
55
|
</Tabs>
|
|
60
56
|
</div>
|
|
61
|
-
<div className={styles.actionSection}>
|
|
62
|
-
<div className={styles.btnContainer}>
|
|
63
|
-
<Button kind="primary">Book Appointment</Button>
|
|
64
|
-
</div>
|
|
65
|
-
<div className={styles.btnContainer}>
|
|
66
|
-
<Button kind="secondary">Walk In Orders</Button>
|
|
67
|
-
</div>
|
|
68
|
-
<div className={styles.btnContainer}>
|
|
69
|
-
<Button kind="tertiary" onClick={() => onSendClientToTriage(client.id)}>
|
|
70
|
-
Send To Triage
|
|
71
|
-
</Button>
|
|
72
|
-
</div>
|
|
73
|
-
</div>
|
|
74
57
|
</div>
|
|
75
58
|
</ModalBody>
|
|
76
59
|
</Modal>
|
|
@@ -10,4 +10,34 @@
|
|
|
10
10
|
column-gap: 5px;
|
|
11
11
|
margin-top: 5px;
|
|
12
12
|
margin-bottom: 5px;
|
|
13
|
-
}
|
|
13
|
+
}
|
|
14
|
+
.otpSection{
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: row;
|
|
17
|
+
width: 100%;
|
|
18
|
+
column-gap: 15px;
|
|
19
|
+
}
|
|
20
|
+
.otpForm{
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
width: 60%;
|
|
24
|
+
row-gap: 20px;
|
|
25
|
+
}
|
|
26
|
+
.otpTimer{
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
width: 50%;
|
|
30
|
+
padding-top: 15%;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.formRow{
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: row;
|
|
36
|
+
width: 100%;
|
|
37
|
+
column-gap: 5px;
|
|
38
|
+
margin-top: 10px;
|
|
39
|
+
}
|
|
40
|
+
.formControl{
|
|
41
|
+
width: 70%;
|
|
42
|
+
margin-top: 10px;
|
|
43
|
+
}
|
|
@@ -1,38 +1,53 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import { type RequestCustomOtpDto } from '../../types';
|
|
3
|
-
import {
|
|
2
|
+
import { OtpOptions, OtpStatus, type RequestCustomOtpDto } from '../../types';
|
|
3
|
+
import {
|
|
4
|
+
Button,
|
|
5
|
+
FormLabel,
|
|
6
|
+
InlineLoading,
|
|
7
|
+
Modal,
|
|
8
|
+
ModalBody,
|
|
9
|
+
RadioButton,
|
|
10
|
+
RadioButtonGroup,
|
|
11
|
+
TextInput,
|
|
12
|
+
} from '@carbon/react';
|
|
4
13
|
import styles from './otp-verification-modal.scss';
|
|
5
14
|
import { showSnackbar } from '@openmrs/esm-framework';
|
|
6
15
|
import { requestCustomOtp, validateCustomOtp } from '../../registry.resource';
|
|
7
|
-
import {
|
|
16
|
+
import { maskAllButFirstAndLastThree } from '../../utils/mask-data';
|
|
17
|
+
import OTPInput from '../../../shared/ui/otp-input/otp-input.component';
|
|
18
|
+
import Timer from '../../../shared/ui/timer/timer.component';
|
|
8
19
|
|
|
9
20
|
interface OtpVerificationModalpProps {
|
|
10
21
|
requestCustomOtpDto: RequestCustomOtpDto;
|
|
11
22
|
phoneNumber: string;
|
|
12
23
|
open: boolean;
|
|
13
24
|
onModalClose: () => void;
|
|
25
|
+
onOtpSuccessfullVerification: () => void;
|
|
14
26
|
}
|
|
15
27
|
const OtpVerificationModal: React.FC<OtpVerificationModalpProps> = ({
|
|
16
28
|
requestCustomOtpDto,
|
|
17
29
|
phoneNumber,
|
|
18
30
|
open,
|
|
19
31
|
onModalClose,
|
|
32
|
+
onOtpSuccessfullVerification,
|
|
20
33
|
}) => {
|
|
21
34
|
const [otp, setOtp] = useState('');
|
|
22
|
-
const [otpStatus, setOtpStatus] = useState<string>(
|
|
35
|
+
const [otpStatus, setOtpStatus] = useState<string>(OtpStatus.Draft);
|
|
23
36
|
const [loading, setLoading] = useState<boolean>(false);
|
|
24
37
|
const [sessionId, setSessionId] = useState<string>('');
|
|
38
|
+
const [overrideOtp, setOverideOtp] = useState<OtpOptions>(OtpOptions.NoOverride);
|
|
39
|
+
const [alternativeIdNo, setAlternativeIdNo] = useState<string>();
|
|
25
40
|
|
|
26
41
|
const handleSendOtp = async () => {
|
|
27
|
-
if (!requestCustomOtpDto.identificationNumber) {
|
|
42
|
+
if (!requestCustomOtpDto.identificationNumber && !alternativeIdNo) {
|
|
28
43
|
showAlert('error', 'Invalid Identification Value', 'Please enter a valid ID value');
|
|
29
44
|
return;
|
|
30
45
|
}
|
|
31
46
|
setLoading(true);
|
|
32
47
|
try {
|
|
33
|
-
const response = await requestCustomOtp(
|
|
48
|
+
const response = await requestCustomOtp(getOtpPayload());
|
|
34
49
|
setSessionId(response.sessionId);
|
|
35
|
-
setOtpStatus(
|
|
50
|
+
setOtpStatus(OtpStatus.Sent);
|
|
36
51
|
|
|
37
52
|
showAlert('success', 'OTP sent successfully', `A code was sent to ${response.maskedPhone}`);
|
|
38
53
|
} catch (err: any) {
|
|
@@ -42,6 +57,19 @@ const OtpVerificationModal: React.FC<OtpVerificationModalpProps> = ({
|
|
|
42
57
|
setLoading(false);
|
|
43
58
|
}
|
|
44
59
|
};
|
|
60
|
+
const getOtpPayload = (): RequestCustomOtpDto => {
|
|
61
|
+
let payload: RequestCustomOtpDto = null;
|
|
62
|
+
if (overrideOtp === OtpOptions.Override) {
|
|
63
|
+
payload = {
|
|
64
|
+
...requestCustomOtpDto,
|
|
65
|
+
identificationNumber: alternativeIdNo,
|
|
66
|
+
};
|
|
67
|
+
} else {
|
|
68
|
+
payload = requestCustomOtpDto;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
return payload;
|
|
72
|
+
};
|
|
45
73
|
const showAlert = (alertType: 'error' | 'success', title: string, subtitle: string) => {
|
|
46
74
|
showSnackbar({
|
|
47
75
|
kind: alertType,
|
|
@@ -62,7 +90,7 @@ const OtpVerificationModal: React.FC<OtpVerificationModalpProps> = ({
|
|
|
62
90
|
const payload = { sessionId, otp, locationUuid: requestCustomOtpDto.locationUuid };
|
|
63
91
|
await validateCustomOtp(payload);
|
|
64
92
|
|
|
65
|
-
setOtpStatus(
|
|
93
|
+
setOtpStatus(OtpStatus.Verified);
|
|
66
94
|
|
|
67
95
|
showSnackbar({
|
|
68
96
|
kind: 'success',
|
|
@@ -80,11 +108,57 @@ const OtpVerificationModal: React.FC<OtpVerificationModalpProps> = ({
|
|
|
80
108
|
setLoading(false);
|
|
81
109
|
}
|
|
82
110
|
};
|
|
83
|
-
const registerOnAfyaYangu = () => {
|
|
84
|
-
window.open('https://afyayangu.go.ke/', '_blank');
|
|
85
|
-
};
|
|
86
111
|
|
|
87
112
|
const onSubmit = () => {};
|
|
113
|
+
const handleTimeUp = () => {
|
|
114
|
+
if (OtpStatus.Sent) {
|
|
115
|
+
setOtpStatus(OtpStatus.Draft);
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
const getPrimaryButtonFunc = () => {
|
|
119
|
+
if (otpStatus === OtpStatus.Draft) {
|
|
120
|
+
return handleSendOtp();
|
|
121
|
+
}
|
|
122
|
+
if (otpStatus === OtpStatus.Sent) {
|
|
123
|
+
return handleVerifyOtp();
|
|
124
|
+
}
|
|
125
|
+
if (otpStatus === OtpStatus.Verified) {
|
|
126
|
+
return onOtpSuccessfullVerification();
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
const getPrimaryButtonText = (): any => {
|
|
130
|
+
if (otpStatus === OtpStatus.Draft) {
|
|
131
|
+
if (loading) {
|
|
132
|
+
return 'Sending OTP...';
|
|
133
|
+
} else {
|
|
134
|
+
return 'Send OTP';
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
if (otpStatus === OtpStatus.Sent) {
|
|
138
|
+
if (loading) {
|
|
139
|
+
return 'Verifying OTP...';
|
|
140
|
+
} else {
|
|
141
|
+
return 'Verify';
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
if (otpStatus === OtpStatus.Verified) {
|
|
145
|
+
if (loading) {
|
|
146
|
+
return 'loading...';
|
|
147
|
+
} else {
|
|
148
|
+
return 'Continue';
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
return '';
|
|
152
|
+
};
|
|
153
|
+
const handleOtpOverrideSelection = (overrideSelection: OtpOptions) => {
|
|
154
|
+
setOverideOtp(overrideSelection);
|
|
155
|
+
if (overrideSelection === OtpOptions.Skip) {
|
|
156
|
+
setOtpStatus(OtpStatus.Verified);
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
const handleAlternativeIdNo = (alternativeNo: string) => {
|
|
160
|
+
setAlternativeIdNo(alternativeNo);
|
|
161
|
+
};
|
|
88
162
|
return (
|
|
89
163
|
<>
|
|
90
164
|
<Modal
|
|
@@ -92,80 +166,93 @@ const OtpVerificationModal: React.FC<OtpVerificationModalpProps> = ({
|
|
|
92
166
|
size="md"
|
|
93
167
|
onSecondarySubmit={onModalClose}
|
|
94
168
|
onRequestClose={onModalClose}
|
|
95
|
-
onRequestSubmit={
|
|
96
|
-
primaryButtonText=
|
|
169
|
+
onRequestSubmit={getPrimaryButtonFunc}
|
|
170
|
+
primaryButtonText={getPrimaryButtonText()}
|
|
97
171
|
secondaryButtonText="Cancel"
|
|
98
172
|
>
|
|
99
173
|
<ModalBody>
|
|
100
174
|
<div className={styles.modalVerificationLayout}>
|
|
101
175
|
<div className={styles.sectionHeader}>
|
|
102
176
|
<h4 className={styles.sectionTitle}>One Time Password (OTP)</h4>
|
|
103
|
-
<h6>Enter one time password to proceed</h6>
|
|
104
177
|
</div>
|
|
105
178
|
<div className={styles.sectionContent}>
|
|
106
179
|
<div className={styles.contentHeader}>
|
|
107
|
-
{otpStatus ===
|
|
180
|
+
{otpStatus === OtpStatus.Draft ? (
|
|
108
181
|
<>
|
|
109
|
-
<
|
|
182
|
+
<RadioButtonGroup
|
|
183
|
+
defaultSelected={OtpOptions.NoOverride}
|
|
184
|
+
legendText="OTP Override"
|
|
185
|
+
onChange={(v) => handleOtpOverrideSelection(v as OtpOptions)}
|
|
186
|
+
name="override-button-default-group"
|
|
187
|
+
>
|
|
188
|
+
<RadioButton
|
|
189
|
+
id="no-override"
|
|
190
|
+
labelText={`Send Code to Phone ${maskAllButFirstAndLastThree(phoneNumber)}?`}
|
|
191
|
+
value={OtpOptions.NoOverride}
|
|
192
|
+
/>
|
|
193
|
+
<RadioButton
|
|
194
|
+
id="override"
|
|
195
|
+
labelText="Send OTP to alternative contact"
|
|
196
|
+
value={OtpOptions.Override}
|
|
197
|
+
/>
|
|
198
|
+
|
|
199
|
+
<RadioButton id="skip" labelText="Skip OTP" value={OtpOptions.Skip} />
|
|
200
|
+
</RadioButtonGroup>
|
|
201
|
+
|
|
202
|
+
{overrideOtp === OtpOptions.Override ? (
|
|
203
|
+
<>
|
|
204
|
+
<div className={styles.formControl}>
|
|
205
|
+
<TextInput
|
|
206
|
+
id="override-number"
|
|
207
|
+
labelText="Use alternative ID number and OTP will be sent to their phone number"
|
|
208
|
+
onChange={(e) => handleAlternativeIdNo(e.target.value)}
|
|
209
|
+
required={true}
|
|
210
|
+
placeholder="Enter National ID"
|
|
211
|
+
/>
|
|
212
|
+
</div>
|
|
213
|
+
</>
|
|
214
|
+
) : (
|
|
215
|
+
<></>
|
|
216
|
+
)}
|
|
110
217
|
</>
|
|
111
218
|
) : (
|
|
112
219
|
<></>
|
|
113
220
|
)}
|
|
114
221
|
|
|
115
|
-
{otpStatus ===
|
|
222
|
+
{otpStatus === OtpStatus.Verified ? (
|
|
116
223
|
<>
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
224
|
+
{overrideOtp === OtpOptions.Skip ? (
|
|
225
|
+
<>
|
|
226
|
+
<h6>OTP Verification Skipped! Continue</h6>
|
|
227
|
+
</>
|
|
228
|
+
) : (
|
|
229
|
+
<>
|
|
230
|
+
<h6>OTP Verification Successfull!</h6>
|
|
231
|
+
</>
|
|
232
|
+
)}
|
|
124
233
|
</>
|
|
125
234
|
) : (
|
|
126
235
|
<></>
|
|
127
236
|
)}
|
|
128
|
-
|
|
129
|
-
|
|
237
|
+
</div>
|
|
238
|
+
<div className={styles.otpSection}>
|
|
239
|
+
{otpStatus === OtpStatus.Sent ? (
|
|
130
240
|
<>
|
|
131
|
-
<
|
|
241
|
+
<div className={styles.otpForm}>
|
|
242
|
+
<h6>(Enter one time password to proceed)</h6>
|
|
243
|
+
<FormLabel>Enter OTP</FormLabel>
|
|
244
|
+
<OTPInput otpLength={5} onChange={(value) => setOtp(value)} />
|
|
245
|
+
</div>
|
|
246
|
+
<div className={styles.otpTimer}>
|
|
247
|
+
<Timer durationInSeconds={60} resetTimer={() => {}} onTimeUp={handleTimeUp} />
|
|
248
|
+
</div>
|
|
132
249
|
</>
|
|
133
250
|
) : (
|
|
134
251
|
<></>
|
|
135
252
|
)}
|
|
136
253
|
</div>
|
|
137
254
|
</div>
|
|
138
|
-
<div className={styles.sectionAction}>
|
|
139
|
-
{otpStatus === 'DRAFT' ? (
|
|
140
|
-
<>
|
|
141
|
-
<Button kind="primary" onClick={handleSendOtp}>
|
|
142
|
-
{loading ? <InlineLoading description="Sending OTP..." /> : 'Send OTP'}
|
|
143
|
-
</Button>
|
|
144
|
-
</>
|
|
145
|
-
) : (
|
|
146
|
-
<></>
|
|
147
|
-
)}
|
|
148
|
-
|
|
149
|
-
{otpStatus === 'OTP_SENT' ? (
|
|
150
|
-
<>
|
|
151
|
-
<Button kind="primary" onClick={handleVerifyOtp}>
|
|
152
|
-
{loading ? <InlineLoading description="Verifying OTP..." /> : 'Verify'}
|
|
153
|
-
</Button>
|
|
154
|
-
</>
|
|
155
|
-
) : (
|
|
156
|
-
<></>
|
|
157
|
-
)}
|
|
158
|
-
|
|
159
|
-
{otpStatus === 'OTP_VERIFIED' ? (
|
|
160
|
-
<>
|
|
161
|
-
<Button kind="primary" onClick={onModalClose}>
|
|
162
|
-
Continue
|
|
163
|
-
</Button>
|
|
164
|
-
</>
|
|
165
|
-
) : (
|
|
166
|
-
<></>
|
|
167
|
-
)}
|
|
168
|
-
</div>
|
|
255
|
+
<div className={styles.sectionAction}></div>
|
|
169
256
|
</div>
|
|
170
257
|
</ModalBody>
|
|
171
258
|
</Modal>
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
5
5
|
row-gap: 5px;
|
|
6
|
+
margin-top: 15px;
|
|
6
7
|
}
|
|
7
8
|
.formRow{
|
|
8
9
|
display: flex;
|
|
@@ -13,7 +14,7 @@
|
|
|
13
14
|
.formControl{
|
|
14
15
|
display: flex;
|
|
15
16
|
flex-direction: column;
|
|
16
|
-
width:
|
|
17
|
+
width: 45%;
|
|
17
18
|
row-gap: 5px;
|
|
18
19
|
}
|
|
19
20
|
.actionSection{
|
|
@@ -21,4 +22,18 @@
|
|
|
21
22
|
flex-direction: row;
|
|
22
23
|
column-gap: 5px;
|
|
23
24
|
margin-top: 15px;
|
|
25
|
+
}
|
|
26
|
+
.patientAction{
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-direction: row;
|
|
29
|
+
column-gap: 5px;
|
|
30
|
+
margin-top: 15px;
|
|
31
|
+
}
|
|
32
|
+
.greenBtn{
|
|
33
|
+
background-color: #28a745;
|
|
34
|
+
}
|
|
35
|
+
.patientBills{
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
width: 100%;
|
|
24
39
|
}
|