diff --git a/src/Components/Facility/ConsultationDetails/index.tsx b/src/Components/Facility/ConsultationDetails/index.tsx index abc7305a00b..c6cc9e02275 100644 --- a/src/Components/Facility/ConsultationDetails/index.tsx +++ b/src/Components/Facility/ConsultationDetails/index.tsx @@ -46,6 +46,8 @@ const symptomChoices = [...SYMPTOM_CHOICES]; export interface ConsultationTabProps { consultationId: string; + facilityId: string; + patientId: string; consultationData: ConsultationModel; patientData: PatientModel; } @@ -189,6 +191,8 @@ export const ConsultationDetails = (props: any) => { const consultationTabProps: ConsultationTabProps = { consultationId, consultationData, + patientId: consultationData.patient, + facilityId: consultationData.facility, patientData, }; diff --git a/src/Components/Facility/models.tsx b/src/Components/Facility/models.tsx index 90191e3321f..c3ac910970c 100644 --- a/src/Components/Facility/models.tsx +++ b/src/Components/Facility/models.tsx @@ -109,12 +109,12 @@ export interface ConsultationModel { discharge_notes?: string; examination_details?: string; history_of_present_illness?: string; - facility?: number; + facility: string; facility_name?: string; id: string; modified_date?: string; other_symptoms?: string; - patient?: string; + patient: string; treatment_plan?: string; referred_to?: FacilityModel["id"]; referred_to_object?: FacilityModel;