|
|
|
|
@ -60,32 +60,41 @@ class MyReferralPatientScreen extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
...List.generate(
|
|
|
|
|
model.pendingReferral.length,
|
|
|
|
|
(index) => PatientReferralItemWidget(
|
|
|
|
|
"${model.pendingReferral[index].patientID}",
|
|
|
|
|
patientName: model.pendingReferral[index].patientName,
|
|
|
|
|
referralStatus: null,
|
|
|
|
|
isReferredTo: false,
|
|
|
|
|
isSameBranch: model.pendingReferral[index]
|
|
|
|
|
.isReferralDoctorSameBranch,
|
|
|
|
|
referralDoctorName:
|
|
|
|
|
model.pendingReferral[index].referredByDoctorInfo,
|
|
|
|
|
clinicDescription: null,
|
|
|
|
|
remark:
|
|
|
|
|
model.pendingReferral[index].remarksFromSource,
|
|
|
|
|
referredOn: model.pendingReferral[index].referredOn,
|
|
|
|
|
answerFromTarget:
|
|
|
|
|
model.pendingReferral[index].answerFromTarget,
|
|
|
|
|
infoIcon: InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.of(context)
|
|
|
|
|
.pushNamed(MY_REFERRAL_DETAIL, arguments: {
|
|
|
|
|
'referral': model.pendingReferral[index]
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
child: Icon(
|
|
|
|
|
Icons.info_outline,
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
size: 30,
|
|
|
|
|
(index) => InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.of(context).pushNamed(MY_REFERRAL_DETAIL,
|
|
|
|
|
arguments: {
|
|
|
|
|
'referral': model.pendingReferral[index]
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
child: PatientReferralItemWidget(
|
|
|
|
|
"${model.pendingReferral[index].patientID}",
|
|
|
|
|
patientName:
|
|
|
|
|
model.pendingReferral[index].patientName,
|
|
|
|
|
referralStatus: null,
|
|
|
|
|
isReferredTo: false,
|
|
|
|
|
isSameBranch: model.pendingReferral[index]
|
|
|
|
|
.isReferralDoctorSameBranch,
|
|
|
|
|
referralDoctorName: model
|
|
|
|
|
.pendingReferral[index].referredByDoctorInfo,
|
|
|
|
|
clinicDescription: null,
|
|
|
|
|
remark:
|
|
|
|
|
model.pendingReferral[index].remarksFromSource,
|
|
|
|
|
referredOn: model.pendingReferral[index].referredOn,
|
|
|
|
|
answerFromTarget:
|
|
|
|
|
model.pendingReferral[index].answerFromTarget,
|
|
|
|
|
infoIcon: InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.of(context)
|
|
|
|
|
.pushNamed(MY_REFERRAL_DETAIL, arguments: {
|
|
|
|
|
'referral': model.pendingReferral[index]
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
child: Icon(
|
|
|
|
|
Icons.info_outline,
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
size: 30,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|