|
|
@ -85,80 +85,103 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
|
|
|
|
itemBuilder: (BuildContext ctxt, int index) {
|
|
|
|
itemBuilder: (BuildContext ctxt, int index) {
|
|
|
|
return InkWell(
|
|
|
|
return InkWell(
|
|
|
|
onTap: () {
|
|
|
|
onTap: () {
|
|
|
|
Navigator.push(
|
|
|
|
if (model
|
|
|
|
context,
|
|
|
|
.medicalFileList[0]
|
|
|
|
MaterialPageRoute(
|
|
|
|
.entityList[0]
|
|
|
|
builder: (context) => MedicalFileDetails(
|
|
|
|
.timelines[index]
|
|
|
|
age: patient.age is String
|
|
|
|
.timeLineEvents[0]
|
|
|
|
? patient.age ?? ""
|
|
|
|
.consulations
|
|
|
|
: "${patient.age}",
|
|
|
|
.length !=
|
|
|
|
firstName: patient.firstName,
|
|
|
|
0)
|
|
|
|
lastName: patient.lastName,
|
|
|
|
Navigator.push(
|
|
|
|
gender: patient.genderDescription,
|
|
|
|
context,
|
|
|
|
encounterNumber: index,
|
|
|
|
MaterialPageRoute(
|
|
|
|
pp: patient.patientId,
|
|
|
|
builder: (context) => MedicalFileDetails(
|
|
|
|
patient: patient,
|
|
|
|
age: patient.age is String
|
|
|
|
doctorName: model
|
|
|
|
? patient.age ?? ""
|
|
|
|
.medicalFileList[0]
|
|
|
|
: "${patient.age}",
|
|
|
|
.entityList[0]
|
|
|
|
firstName: patient.firstName,
|
|
|
|
.timelines[index]
|
|
|
|
lastName: patient.lastName,
|
|
|
|
.timeLineEvents[0]
|
|
|
|
gender: patient.genderDescription,
|
|
|
|
.consulations
|
|
|
|
encounterNumber: index,
|
|
|
|
.isNotEmpty
|
|
|
|
pp: patient.patientId,
|
|
|
|
? model
|
|
|
|
patient: patient,
|
|
|
|
.medicalFileList[0]
|
|
|
|
doctorName: model
|
|
|
|
.entityList[0]
|
|
|
|
.medicalFileList[0]
|
|
|
|
.timelines[index]
|
|
|
|
.entityList[0]
|
|
|
|
.doctorName
|
|
|
|
.timelines[index]
|
|
|
|
: "",
|
|
|
|
.timeLineEvents[0]
|
|
|
|
clinicName: model
|
|
|
|
.consulations
|
|
|
|
.medicalFileList[0]
|
|
|
|
.isNotEmpty
|
|
|
|
.entityList[0]
|
|
|
|
? model
|
|
|
|
.timelines[index]
|
|
|
|
.medicalFileList[0]
|
|
|
|
.timeLineEvents[0]
|
|
|
|
.entityList[0]
|
|
|
|
.consulations
|
|
|
|
.timelines[index]
|
|
|
|
.isNotEmpty
|
|
|
|
.doctorName
|
|
|
|
? model
|
|
|
|
: "",
|
|
|
|
.medicalFileList[0]
|
|
|
|
clinicName: model
|
|
|
|
.entityList[0]
|
|
|
|
.medicalFileList[0]
|
|
|
|
.timelines[index]
|
|
|
|
.entityList[0]
|
|
|
|
.clinicName
|
|
|
|
.timelines[index]
|
|
|
|
: "",
|
|
|
|
.timeLineEvents[0]
|
|
|
|
doctorImage: model
|
|
|
|
.consulations
|
|
|
|
.medicalFileList[0]
|
|
|
|
.isNotEmpty
|
|
|
|
.entityList[0]
|
|
|
|
? model
|
|
|
|
.timelines[index]
|
|
|
|
.medicalFileList[0]
|
|
|
|
.timeLineEvents[0]
|
|
|
|
.entityList[0]
|
|
|
|
.consulations
|
|
|
|
.timelines[index]
|
|
|
|
.isNotEmpty
|
|
|
|
.clinicName
|
|
|
|
? model
|
|
|
|
: "",
|
|
|
|
.medicalFileList[0]
|
|
|
|
doctorImage: model
|
|
|
|
.entityList[0]
|
|
|
|
.medicalFileList[0]
|
|
|
|
.timelines[index]
|
|
|
|
.entityList[0]
|
|
|
|
.doctorImage
|
|
|
|
.timelines[index]
|
|
|
|
: "",
|
|
|
|
.timeLineEvents[0]
|
|
|
|
episode: model.medicalFileList[0].entityList[0].timelines[index].timeLineEvents[0].consulations.isNotEmpty
|
|
|
|
.consulations
|
|
|
|
? model.medicalFileList[0].entityList[0].timelines[index].timeLineEvents[0].consulations[0].episodeID.toString()
|
|
|
|
.isNotEmpty
|
|
|
|
: "",
|
|
|
|
? model
|
|
|
|
vistDate: model.medicalFileList[0].entityList[0].timelines[index].date.toString())),
|
|
|
|
.medicalFileList[0]
|
|
|
|
);
|
|
|
|
.entityList[0]
|
|
|
|
|
|
|
|
.timelines[index]
|
|
|
|
|
|
|
|
.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(
|
|
|
|
child: DoctorCard(
|
|
|
|
doctorName: model.medicalFileList[0]
|
|
|
|
doctorName: model
|
|
|
|
.entityList[0].timelines[index].doctorName,
|
|
|
|
.medicalFileList[0]
|
|
|
|
clinic: model.medicalFileList[0].entityList[0]
|
|
|
|
.entityList[0]
|
|
|
|
.timelines[index].clinicName,
|
|
|
|
.timelines[index]
|
|
|
|
branch: model.medicalFileList[0].entityList[0]
|
|
|
|
.doctorName,
|
|
|
|
.timelines[index].projectName,
|
|
|
|
clinic: model.medicalFileList[0].entityList[0]
|
|
|
|
profileUrl: model.medicalFileList[0]
|
|
|
|
.timelines[index].clinicName,
|
|
|
|
.entityList[0].timelines[index].doctorImage,
|
|
|
|
branch: model.medicalFileList[0].entityList[0]
|
|
|
|
appointmentDate:
|
|
|
|
.timelines[index].projectName,
|
|
|
|
DateUtils.getDateTimeFromServerFormat(
|
|
|
|
profileUrl: model
|
|
|
|
model.medicalFileList[0].entityList[0]
|
|
|
|
.medicalFileList[0]
|
|
|
|
.timelines[index].date,
|
|
|
|
.entityList[0]
|
|
|
|
),
|
|
|
|
.timelines[index]
|
|
|
|
isPrescriptions: true,
|
|
|
|
.doctorImage,
|
|
|
|
),
|
|
|
|
appointmentDate:
|
|
|
|
|
|
|
|
DateUtils.getDateTimeFromServerFormat(
|
|
|
|
|
|
|
|
model.medicalFileList[0].entityList[0]
|
|
|
|
|
|
|
|
.timelines[index].date,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
isPrescriptions: true,
|
|
|
|
|
|
|
|
isShowEye: model
|
|
|
|
|
|
|
|
.medicalFileList[0]
|
|
|
|
|
|
|
|
.entityList[0]
|
|
|
|
|
|
|
|
.timelines[index]
|
|
|
|
|
|
|
|
.timeLineEvents[0]
|
|
|
|
|
|
|
|
.consulations
|
|
|
|
|
|
|
|
.length !=
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
? true
|
|
|
|
|
|
|
|
: false),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
})
|
|
|
|
})
|
|
|
|
: Center(
|
|
|
|
: Center(
|
|
|
|