From 8cb67cbc9df5df0ddfa7aebcc212be6abf3d3b97 Mon Sep 17 00:00:00 2001 From: Donald Kibet Date: Mon, 4 Mar 2024 07:39:55 +0300 Subject: [PATCH] (feat) Adapt billing checkin form to use extra-visit attribute slot --- .../src/billing-form/billing-checkin-form.component.tsx | 9 ++++++--- packages/esm-billing-app/src/routes.json | 4 ++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/esm-billing-app/src/billing-form/billing-checkin-form.component.tsx b/packages/esm-billing-app/src/billing-form/billing-checkin-form.component.tsx index 4c4690186..c47a8007d 100644 --- a/packages/esm-billing-app/src/billing-form/billing-checkin-form.component.tsx +++ b/packages/esm-billing-app/src/billing-form/billing-checkin-form.component.tsx @@ -11,10 +11,10 @@ import { EXEMPTED_PAYMENT_STATUS, PENDING_PAYMENT_STATUS } from '../constants'; type BillingCheckInFormProps = { patientUuid: string; - setBillingInfo: (state) => void; + setExtraVisitInfo: (state) => void; }; -const BillingCheckInForm: React.FC = ({ patientUuid, setBillingInfo }) => { +const BillingCheckInForm: React.FC = ({ patientUuid, setExtraVisitInfo }) => { const { t } = useTranslation(); const { visitAttributeTypes: { isPatientExempted }, @@ -70,7 +70,10 @@ const BillingCheckInForm: React.FC = ({ patientUuid, se payments: [], }; - setBillingInfo({ createBillPayload, handleCreateBill: () => handleCreateBill(createBillPayload), attributes }); + setExtraVisitInfo({ + handleCreateExtraVisitInfo: () => handleCreateBill(createBillPayload), + attributes, + }); }; if (isLoadingLineItems || isLoadingCashPoints) { diff --git a/packages/esm-billing-app/src/routes.json b/packages/esm-billing-app/src/routes.json index 50b556d9e..938ec9ab7 100644 --- a/packages/esm-billing-app/src/routes.json +++ b/packages/esm-billing-app/src/routes.json @@ -47,8 +47,8 @@ } }, { - "name": "billing-checkin-form", - "slot": "billing-checkin-slot", + "name": "billing-check-in-form", + "slot": "extra-visit-attribute-slot", "component": "billingCheckInForm" }, {