|
|
|
|
@ -140,134 +140,155 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
|
child: Container(
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context).visitDate +
|
|
|
|
|
": ",
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
Container(
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
|
top: 10, left: 10, right: 10),
|
|
|
|
|
padding: EdgeInsets.all(8.0),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
|
Radius.circular(10.0),
|
|
|
|
|
),
|
|
|
|
|
if (model.medicalFileList.length != 0 &&
|
|
|
|
|
model
|
|
|
|
|
.medicalFileList[0]
|
|
|
|
|
.entityList[0]
|
|
|
|
|
.timelines[encounterNumber]
|
|
|
|
|
.timeLineEvents[0]
|
|
|
|
|
.consulations
|
|
|
|
|
.length !=
|
|
|
|
|
0)
|
|
|
|
|
AppText(model
|
|
|
|
|
.medicalFileList[0]
|
|
|
|
|
.entityList[0]
|
|
|
|
|
.timelines[encounterNumber]
|
|
|
|
|
.timeLineEvents[0]
|
|
|
|
|
.consulations[0]
|
|
|
|
|
.appointmentDate
|
|
|
|
|
.toString()),
|
|
|
|
|
SizedBox(width: 35.0),
|
|
|
|
|
// AppText(
|
|
|
|
|
// 'Appt Date : ',
|
|
|
|
|
// fontWeight: FontWeight.w700,
|
|
|
|
|
// ),
|
|
|
|
|
// AppText(
|
|
|
|
|
// '23/12/2020',
|
|
|
|
|
// ),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context).doctorName +
|
|
|
|
|
": ".toUpperCase(),
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
|
if (model.medicalFileList.length != 0 &&
|
|
|
|
|
model
|
|
|
|
|
.medicalFileList[0]
|
|
|
|
|
.entityList[0]
|
|
|
|
|
.timelines[encounterNumber]
|
|
|
|
|
.timeLineEvents[0]
|
|
|
|
|
.consulations
|
|
|
|
|
.length !=
|
|
|
|
|
0)
|
|
|
|
|
Expanded(
|
|
|
|
|
child: AppText(
|
|
|
|
|
model
|
|
|
|
|
.medicalFileList[0]
|
|
|
|
|
.entityList[0]
|
|
|
|
|
.timelines[encounterNumber]
|
|
|
|
|
.timeLineEvents[0]
|
|
|
|
|
.consulations[0]
|
|
|
|
|
.doctorName
|
|
|
|
|
.toUpperCase(),
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
if (model.medicalFileList.length != 0)
|
|
|
|
|
Row(
|
|
|
|
|
border: Border.all(
|
|
|
|
|
color: Colors.grey[200], width: 0.5),
|
|
|
|
|
),
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.clinicName +
|
|
|
|
|
": ",
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
if (model.medicalFileList.length !=
|
|
|
|
|
0 &&
|
|
|
|
|
model
|
|
|
|
|
.medicalFileList[0]
|
|
|
|
|
.entityList[0]
|
|
|
|
|
.timelines[
|
|
|
|
|
encounterNumber]
|
|
|
|
|
.timeLineEvents[0]
|
|
|
|
|
.consulations
|
|
|
|
|
.length !=
|
|
|
|
|
0)
|
|
|
|
|
Expanded(
|
|
|
|
|
child: AppText(
|
|
|
|
|
model
|
|
|
|
|
.medicalFileList[0]
|
|
|
|
|
.entityList[0]
|
|
|
|
|
.timelines[
|
|
|
|
|
encounterNumber]
|
|
|
|
|
.timeLineEvents[0]
|
|
|
|
|
.consulations[0]
|
|
|
|
|
.doctorName
|
|
|
|
|
.toUpperCase(),
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
if (model.medicalFileList.length != 0 &&
|
|
|
|
|
model
|
|
|
|
|
if (model.medicalFileList.length != 0)
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.clinic +
|
|
|
|
|
": ",
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
|
if (model.medicalFileList
|
|
|
|
|
.length !=
|
|
|
|
|
0 &&
|
|
|
|
|
model
|
|
|
|
|
.medicalFileList[0]
|
|
|
|
|
.entityList[0]
|
|
|
|
|
.timelines[
|
|
|
|
|
encounterNumber]
|
|
|
|
|
.timeLineEvents[0]
|
|
|
|
|
.consulations
|
|
|
|
|
.length !=
|
|
|
|
|
0)
|
|
|
|
|
AppText(
|
|
|
|
|
model
|
|
|
|
|
.medicalFileList[0]
|
|
|
|
|
.entityList[0]
|
|
|
|
|
.timelines[
|
|
|
|
|
encounterNumber]
|
|
|
|
|
.timeLineEvents[0]
|
|
|
|
|
.consulations[0]
|
|
|
|
|
.clinicName,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.episode +
|
|
|
|
|
": ",
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
|
if (model.medicalFileList.length !=
|
|
|
|
|
0 &&
|
|
|
|
|
model
|
|
|
|
|
.medicalFileList[0]
|
|
|
|
|
.entityList[0]
|
|
|
|
|
.timelines[
|
|
|
|
|
encounterNumber]
|
|
|
|
|
.timeLineEvents[0]
|
|
|
|
|
.consulations
|
|
|
|
|
.length !=
|
|
|
|
|
0)
|
|
|
|
|
AppText(
|
|
|
|
|
model
|
|
|
|
|
.medicalFileList[0]
|
|
|
|
|
.entityList[0]
|
|
|
|
|
.timelines[encounterNumber]
|
|
|
|
|
.timeLineEvents[0]
|
|
|
|
|
.consulations
|
|
|
|
|
.length !=
|
|
|
|
|
0)
|
|
|
|
|
AppText(
|
|
|
|
|
model
|
|
|
|
|
.medicalFileList[0]
|
|
|
|
|
.entityList[0]
|
|
|
|
|
.timelines[encounterNumber]
|
|
|
|
|
.timeLineEvents[0]
|
|
|
|
|
.consulations[0]
|
|
|
|
|
.clinicName,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context).episode +
|
|
|
|
|
": ",
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
|
if (model.medicalFileList.length != 0 &&
|
|
|
|
|
model
|
|
|
|
|
.consulations[0]
|
|
|
|
|
.episodeID
|
|
|
|
|
.toString(),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.visitDate +
|
|
|
|
|
": ",
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
|
if (model.medicalFileList.length !=
|
|
|
|
|
0 &&
|
|
|
|
|
model
|
|
|
|
|
.medicalFileList[0]
|
|
|
|
|
.entityList[0]
|
|
|
|
|
.timelines[
|
|
|
|
|
encounterNumber]
|
|
|
|
|
.timeLineEvents[0]
|
|
|
|
|
.consulations
|
|
|
|
|
.length !=
|
|
|
|
|
0)
|
|
|
|
|
AppText(model
|
|
|
|
|
.medicalFileList[0]
|
|
|
|
|
.entityList[0]
|
|
|
|
|
.timelines[encounterNumber]
|
|
|
|
|
.timeLineEvents[0]
|
|
|
|
|
.consulations
|
|
|
|
|
.length !=
|
|
|
|
|
0)
|
|
|
|
|
AppText(
|
|
|
|
|
model
|
|
|
|
|
.medicalFileList[0]
|
|
|
|
|
.entityList[0]
|
|
|
|
|
.timelines[encounterNumber]
|
|
|
|
|
.timeLineEvents[0]
|
|
|
|
|
.consulations[0]
|
|
|
|
|
.episodeID
|
|
|
|
|
.toString(),
|
|
|
|
|
.consulations[0]
|
|
|
|
|
.appointmentDate
|
|
|
|
|
.toString()),
|
|
|
|
|
SizedBox(width: 35.0),
|
|
|
|
|
// AppText(
|
|
|
|
|
// 'Appt Date : ',
|
|
|
|
|
// fontWeight: FontWeight.w700,
|
|
|
|
|
// ),
|
|
|
|
|
// AppText(
|
|
|
|
|
// '23/12/2020',
|
|
|
|
|
// ),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 15.0),
|
|
|
|
|
Divider(
|
|
|
|
|
height: 1.0,
|
|
|
|
|
thickness: 1.0,
|
|
|
|
|
color: Colors.grey.shade400,
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
SizedBox(height: 25.0),
|
|
|
|
|
if (model.medicalFileList.length != 0 &&
|
|
|
|
|
model
|
|
|
|
|
|