|
|
|
@ -31,128 +31,122 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
|
|
|
|
|
body: NetworkBaseView(
|
|
|
|
|
baseViewModel: model,
|
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
|
child: Center(
|
|
|
|
|
child: Container(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
child: Column(
|
|
|
|
|
// mainAxisAlignment: model.medicalFileList.length != 0 &&
|
|
|
|
|
// model.medicalFileList != null
|
|
|
|
|
// ? MainAxisAlignment.start
|
|
|
|
|
// : MainAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
PatientPageHeaderWidget(patient),
|
|
|
|
|
Divider(
|
|
|
|
|
height: 1.0,
|
|
|
|
|
thickness: 1.0,
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
),
|
|
|
|
|
(model.medicalFileList.length != 0 &&
|
|
|
|
|
model.medicalFileList != null)
|
|
|
|
|
? ListView.builder(
|
|
|
|
|
//physics: ,
|
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
|
scrollDirection: Axis.vertical,
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
itemCount: model.medicalFileList[0].entityList[0]
|
|
|
|
|
.timelines.length,
|
|
|
|
|
itemBuilder: (BuildContext ctxt, int index) {
|
|
|
|
|
return Padding(
|
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
|
horizontal: 12.0, vertical: 8.0),
|
|
|
|
|
child: InkWell(
|
|
|
|
|
child: Container(
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.branch +
|
|
|
|
|
": ",
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
|
AppText(model
|
|
|
|
|
.medicalFileList[0]
|
|
|
|
|
.entityList[0]
|
|
|
|
|
.timelines[index]
|
|
|
|
|
.projectName),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.doctorName
|
|
|
|
|
.toUpperCase() +
|
|
|
|
|
": ",
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: AppText(
|
|
|
|
|
model
|
|
|
|
|
.medicalFileList[0]
|
|
|
|
|
.entityList[0]
|
|
|
|
|
.timelines[index]
|
|
|
|
|
.doctorName,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.clinicName +
|
|
|
|
|
": ",
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
child: Container(
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
child: Column(
|
|
|
|
|
// mainAxisAlignment: model.medicalFileList.length != 0 &&
|
|
|
|
|
// model.medicalFileList != null
|
|
|
|
|
// ? MainAxisAlignment.start
|
|
|
|
|
// : MainAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
PatientPageHeaderWidget(patient),
|
|
|
|
|
Divider(
|
|
|
|
|
height: 1.0,
|
|
|
|
|
thickness: 1.0,
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
),
|
|
|
|
|
(model.medicalFileList != null &&
|
|
|
|
|
model.medicalFileList.length != 0)
|
|
|
|
|
? ListView.builder(
|
|
|
|
|
//physics: ,
|
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
|
scrollDirection: Axis.vertical,
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
itemCount: model.medicalFileList[0].entityList[0]
|
|
|
|
|
.timelines.length,
|
|
|
|
|
itemBuilder: (BuildContext ctxt, int index) {
|
|
|
|
|
return Padding(
|
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
|
horizontal: 12.0, vertical: 8.0),
|
|
|
|
|
child: InkWell(
|
|
|
|
|
child: Container(
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context).branch +
|
|
|
|
|
": ",
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
|
AppText(model
|
|
|
|
|
.medicalFileList[0]
|
|
|
|
|
.entityList[0]
|
|
|
|
|
.timelines[index]
|
|
|
|
|
.projectName),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.doctorName
|
|
|
|
|
.toUpperCase() +
|
|
|
|
|
": ",
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: AppText(
|
|
|
|
|
model
|
|
|
|
|
.medicalFileList[0]
|
|
|
|
|
.entityList[0]
|
|
|
|
|
.timelines[index]
|
|
|
|
|
.clinicName,
|
|
|
|
|
.doctorName,
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 10.0),
|
|
|
|
|
Divider(
|
|
|
|
|
height: 1.0,
|
|
|
|
|
thickness: 1.0,
|
|
|
|
|
color: Colors.grey.shade400,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.clinicName +
|
|
|
|
|
": ",
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
model
|
|
|
|
|
.medicalFileList[0]
|
|
|
|
|
.entityList[0]
|
|
|
|
|
.timelines[index]
|
|
|
|
|
.clinicName,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 10.0),
|
|
|
|
|
Divider(
|
|
|
|
|
height: 1.0,
|
|
|
|
|
thickness: 1.0,
|
|
|
|
|
color: Colors.grey.shade400,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
|
builder: (context) =>
|
|
|
|
|
MedicalFileDetails(
|
|
|
|
|
age: patient.age,
|
|
|
|
|
firstName: patient.firstName,
|
|
|
|
|
lastName: patient.lastName,
|
|
|
|
|
gender:
|
|
|
|
|
patient.genderDescription,
|
|
|
|
|
encounterNumber: index,
|
|
|
|
|
pp: patient.patientId,
|
|
|
|
|
)),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
})
|
|
|
|
|
: Center(
|
|
|
|
|
child: Container(
|
|
|
|
|
child: AppText(
|
|
|
|
|
'THERES NO MEDICAL FILE FOR THIS Patient',
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
|
builder: (context) =>
|
|
|
|
|
MedicalFileDetails(
|
|
|
|
|
age: patient.age,
|
|
|
|
|
firstName: patient.firstName,
|
|
|
|
|
lastName: patient.lastName,
|
|
|
|
|
gender: patient.genderDescription,
|
|
|
|
|
encounterNumber: index,
|
|
|
|
|
pp: patient.patientId,
|
|
|
|
|
)),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
})
|
|
|
|
|
: Container(
|
|
|
|
|
child: AppText(
|
|
|
|
|
'THERES NO MEDICAL FILE FOR THIS Patient',
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|