diff --git a/lib/screens/patients/profile/referral/refer-patient-screen.dart b/lib/screens/patients/profile/referral/refer-patient-screen.dart index 3903b46a..b2a71f4b 100644 --- a/lib/screens/patients/profile/referral/refer-patient-screen.dart +++ b/lib/screens/patients/profile/referral/refer-patient-screen.dart @@ -91,20 +91,20 @@ class _PatientMakeReferralScreenState extends State { model.patientReferral.length == 0 ? ReferralForm(model, screenSize) : PatientReferralItemWidget( - "${model.patientReferral[0].patientID}", - patientName: model.patientReferral[0].patientName, + "${model.patientReferral[model.patientReferral.length -1].patientID}", + patientName: model.patientReferral[model.patientReferral.length -1].patientName, referralStatus: - "${model.patientReferral[0].referralStatus}", + "${model.patientReferral[model.patientReferral.length -1].referralStatus}", isReferredTo: true, isSameBranch: model - .patientReferral[0].isReferralDoctorSameBranch, + .patientReferral[model.patientReferral.length -1].isReferralDoctorSameBranch, referralDoctorName: - model.patientReferral[0].referredByDoctorInfo, + model.patientReferral[model.patientReferral.length -1].referredByDoctorInfo, clinicDescription: null, - remark: model.patientReferral[0].remarksFromSource, - referredOn: model.patientReferral[0].referredOn, + remark: model.patientReferral[model.patientReferral.length -1].remarksFromSource, + referredOn: model.patientReferral[model.patientReferral.length -1].referredOn, answerFromTarget: - model.patientReferral[0].answerFromTarget, + model.patientReferral[model.patientReferral.length -1].answerFromTarget, ), ], ),