diff --git a/lib/core/model/insurance_approval_in_patient_model.dart b/lib/core/model/insurance_approval_in_patient_model.dart index 798affc9..f185a8bf 100644 --- a/lib/core/model/insurance_approval_in_patient_model.dart +++ b/lib/core/model/insurance_approval_in_patient_model.dart @@ -30,6 +30,7 @@ class InsuranceApprovalInPatientModel { String projectName; int totaUnUsedCount; int unUsedCount; + String doctorImage; InsuranceApprovalInPatientModel( {this.setupID, @@ -62,10 +63,12 @@ class InsuranceApprovalInPatientModel { this.doctorName, this.projectName, this.totaUnUsedCount, - this.unUsedCount}); + this.unUsedCount, + this.doctorImage}); InsuranceApprovalInPatientModel.fromJson(Map json) { setupID = json['SetupID']; + doctorImage = json['DoctorImageURL']; projectID = json['ProjectID']; approvalNo = json['ApprovalNo']; status = json['Status']; @@ -106,6 +109,7 @@ class InsuranceApprovalInPatientModel { Map toJson() { final Map data = new Map(); data['SetupID'] = this.setupID; + data['DoctorImageURL'] = this.doctorImage; data['ProjectID'] = this.projectID; data['ApprovalNo'] = this.approvalNo; data['Status'] = this.status; diff --git a/lib/screens/patients/insurance_approval_screen_patient.dart b/lib/screens/patients/insurance_approval_screen_patient.dart index 46218594..aafd42de 100644 --- a/lib/screens/patients/insurance_approval_screen_patient.dart +++ b/lib/screens/patients/insurance_approval_screen_patient.dart @@ -109,8 +109,9 @@ class _InsuranceApprovalScreenNewState }, child: DoctorCardInsurance( patientOut: "In Patient", - profileUrl: - 'https://previews.123rf.com/images/ihorbiliavskyi/ihorbiliavskyi1812/ihorbiliavskyi181200077/114296311-doctor-avatar-icon-profession-logo-male-character-a-man-in-professional-clothes-people-specialists-f.jpg', + profileUrl: model + .insuranceApprovalInPatient[index] + .doctorImage, clinic: model .insuranceApprovalInPatient[index] .clinicName, diff --git a/lib/screens/patients/insurance_approvals_details.dart b/lib/screens/patients/insurance_approvals_details.dart index 1bd00cd6..ee2fd12d 100644 --- a/lib/screens/patients/insurance_approvals_details.dart +++ b/lib/screens/patients/insurance_approvals_details.dart @@ -164,7 +164,10 @@ class _InsuranceApprovalsDetailsState extends State { BorderRadius.circular( 50), child: Image.network( - 'https://previews.123rf.com/images/ihorbiliavskyi/ihorbiliavskyi1812/ihorbiliavskyi181200077/114296311-doctor-avatar-icon-profession-logo-male-character-a-man-in-professional-clothes-people-specialists-f.jpg', + model + .insuranceApprovalInPatient[ + indexInsurance] + .doctorImage, fit: BoxFit.fill, width: 700, ),