|
|
|
@ -104,7 +104,9 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
|
builder: (context) => MedicalFileDetails(
|
|
|
|
|
age: patient.age is String ? patient.age ?? "" : "${patient.age}",
|
|
|
|
|
age: patient.age is String
|
|
|
|
|
? patient.age ?? ""
|
|
|
|
|
: "${patient.age}",
|
|
|
|
|
firstName: patient.firstName,
|
|
|
|
|
lastName: patient.lastName,
|
|
|
|
|
gender: patient.genderDescription,
|
|
|
|
@ -115,40 +117,45 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
|
|
|
|
|
.medicalFileList[0]
|
|
|
|
|
.entityList[0]
|
|
|
|
|
.timelines[index]
|
|
|
|
|
.doctorName,
|
|
|
|
|
clinicName: model
|
|
|
|
|
.timeLineEvents[0]
|
|
|
|
|
.consulations
|
|
|
|
|
.isNotEmpty
|
|
|
|
|
? model
|
|
|
|
|
.medicalFileList[0]
|
|
|
|
|
.entityList[0]
|
|
|
|
|
.timelines[index]
|
|
|
|
|
.clinicName,
|
|
|
|
|
doctorImage: model
|
|
|
|
|
.doctorName
|
|
|
|
|
: "",
|
|
|
|
|
clinicName: model
|
|
|
|
|
.medicalFileList[0]
|
|
|
|
|
.entityList[0]
|
|
|
|
|
.timelines[index]
|
|
|
|
|
.doctorImage,
|
|
|
|
|
episode:
|
|
|
|
|
model
|
|
|
|
|
.timeLineEvents[0]
|
|
|
|
|
.consulations
|
|
|
|
|
.isNotEmpty
|
|
|
|
|
? model
|
|
|
|
|
.medicalFileList[0]
|
|
|
|
|
.entityList[0]
|
|
|
|
|
.timelines[index]
|
|
|
|
|
.timeLineEvents[0]
|
|
|
|
|
.consulations.isNotEmpty?
|
|
|
|
|
model
|
|
|
|
|
.clinicName
|
|
|
|
|
: "",
|
|
|
|
|
doctorImage: model
|
|
|
|
|
.medicalFileList[0]
|
|
|
|
|
.entityList[0]
|
|
|
|
|
.timelines[index]
|
|
|
|
|
.timeLineEvents[0]
|
|
|
|
|
.consulations[0]
|
|
|
|
|
.episodeID
|
|
|
|
|
.toString():"",
|
|
|
|
|
vistDate: model
|
|
|
|
|
.consulations
|
|
|
|
|
.isNotEmpty
|
|
|
|
|
? model
|
|
|
|
|
.medicalFileList[0]
|
|
|
|
|
.entityList[0]
|
|
|
|
|
.timelines[index]
|
|
|
|
|
.date
|
|
|
|
|
.toString()
|
|
|
|
|
.toString(),
|
|
|
|
|
)),
|
|
|
|
|
.doctorImage
|
|
|
|
|
: "",
|
|
|
|
|
episode: model.medicalFileList[0].entityList[0].timelines[index].timeLineEvents[0].consulations.isNotEmpty
|
|
|
|
|
? model.medicalFileList[0].entityList[0].timelines[index].timeLineEvents[0].consulations[0].episodeID.toString()
|
|
|
|
|
: "",
|
|
|
|
|
vistDate: model.medicalFileList[0].entityList[0].timelines[index].date.toString())),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
child: DoctorCard(
|
|
|
|
|