@ -111,17 +135,23 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
'Visit Date : ',
fontWeight:FontWeight.w700,
),
AppText(
'23/12/2020',
),
if(model.medicalFileList.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',
),
//AppText(
//'Appt Date : ',
//fontWeight:FontWeight.w700,
//),
//AppText(
//'23/12/2020',
//),
],
),
Row(
@ -130,20 +160,36 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
'Doctor : '.toUpperCase(),
fontWeight:FontWeight.w700,
),
if(model.medicalFileList.length!=0)
AppText(
'Muhammad assad'.toUpperCase(),
model
.medicalFileList[0]
.entityList[0]
.timelines[encounterNumber]
.timeLineEvents[0]
.consulations[0]
.doctorName
.toUpperCase(),
fontWeight:FontWeight.w700,
),
],
),
if(model.medicalFileList.length!=0)
Row(
children:[
AppText(
'Clinic : ',
fontWeight:FontWeight.w700,
),
if(model.medicalFileList.length!=0)
AppText(
'Gastroenterology',
model
.medicalFileList[0]
.entityList[0]
.timelines[encounterNumber]
.timeLineEvents[0]
.consulations[0]
.clinicName,
),
],
),
@ -153,8 +199,16 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
'Episode Number : ',
fontWeight:FontWeight.w700,
),
if(model.medicalFileList.length!=0)
AppText(
'200012334',
model
.medicalFileList[0]
.entityList[0]
.timelines[encounterNumber]
.timeLineEvents[0]
.consulations[0]
.episodeID
.toString(),
),
],
),
@ -165,9 +219,11 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
color:Colors.grey.shade400,
),
SizedBox(height:25.0),
if(model.medicalFileList.length!=0)
HeaderBodyExpandableNotifier(
headerWidget:Row(
mainAxisAlignment:MainAxisAlignment.spaceBetween,
mainAxisAlignment:
MainAxisAlignment.spaceBetween,
children:[
Row(
children:[
@ -191,12 +247,51 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
:EvaIcons.plus))
],
),
bodyWidget:Column(
bodyWidget:ListView.builder(
//physics:,
scrollDirection:Axis.vertical,
shrinkWrap:true,
itemCount:model
.medicalFileList[0]
.entityList[0]
.timelines[encounterNumber]
.timeLineEvents[0]
.consulations[0]
.lstMedicalHistory
.length,
itemBuilder:(BuildContextctxt,intindex){
returnPadding(
padding:EdgeInsets.all(8.0),
child:Container(
child:Column(
mainAxisAlignment:
MainAxisAlignment.center,
children:[
Texts(
'Ms J. K. is an 83 year old retired nurse with a long history of hypertension that was previously well controlled on diuretic therapy. She was first admitted to CPMC in 1995 when she presented with a complaint of intermittent midsternal chest pain.')
Row(
children:[
Expanded(
child:AppText(
model
.medicalFileList[0]
.entityList[0]
.timelines[
encounterNumber]
.timeLineEvents[0]
.consulations[0]
.lstMedicalHistory[
index]
.history
.trim(),
),
),
SizedBox(width:35.0),
],
),
],
),
),
);
}),
isExpand:isHistoryExpand,
),
SizedBox(
@ -210,23 +305,28 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
SizedBox(
height:30,
),
if(model.medicalFileList.length!=0)
HeaderBodyExpandableNotifier(
headerWidget:Row(
mainAxisAlignment:MainAxisAlignment.spaceBetween,
mainAxisAlignment:
MainAxisAlignment.spaceBetween,
children:[
Row(
children:[
Texts('assessment'.toUpperCase(),
variant:
isAssessmentExpand?"bodyText":'',
bold:isAssessmentExpand?true:false,
variant:isAssessmentExpand
?"bodyText"
:'',
bold:
isAssessmentExpand?true:false,
color:Colors.black),
],
),
InkWell(
onTap:(){
setState((){
isAssessmentExpand=!isAssessmentExpand;
isAssessmentExpand=
!isAssessmentExpand;
});
},
child:Icon(isAssessmentExpand
@ -234,11 +334,122 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
:EvaIcons.plus))
],
),
bodyWidget:Column(
bodyWidget:ListView.builder(
//physics:,
scrollDirection:Axis.vertical,
shrinkWrap:true,
itemCount:model
.medicalFileList[0]
.entityList[0]
.timelines[encounterNumber]
.timeLineEvents[0]
.consulations[0]
.lstAssessments
.length,
itemBuilder:(BuildContextctxt,intindex){
returnPadding(
padding:EdgeInsets.all(8.0),
child:Container(
child:Column(
mainAxisAlignment:
MainAxisAlignment.center,
children:[
Row(
children:[
Texts('ssss'),
AppText(
'ICD',
fontWeight:FontWeight.w700,
),
AppText(
model
.medicalFileList[0]
.entityList[0]
.timelines[
encounterNumber]
.timeLineEvents[0]
.consulations[0]
.lstAssessments[index]
.iCD10
.trim(),
),
SizedBox(width:35.0),
AppText(
'Condition: ',
fontWeight:FontWeight.w700,
),
AppText(
model
.medicalFileList[0]
.entityList[0]
.timelines[
encounterNumber]
.timeLineEvents[0]
.consulations[0]
.lstAssessments[index]
.condition
.trim(),
),
],
),
Row(
children:[
AppText(
model
.medicalFileList[0]
.entityList[0]
.timelines[
encounterNumber]
.timeLineEvents[0]
.consulations[0]
.lstAssessments[index]
.description,
fontWeight:FontWeight.w700,
)
],
),
Row(
children:[
AppText(
'Type: ',
fontWeight:FontWeight.w700,
),
AppText(model
.medicalFileList[0]
.entityList[0]
.timelines[encounterNumber]
.timeLineEvents[0]
.consulations[0]
.lstAssessments[index]
.type),
],
),
SizedBox(
height:15.0,
),
AppText(
model
.medicalFileList[0]
.entityList[0]
.timelines[encounterNumber]
.timeLineEvents[0]
.consulations[0]
.lstAssessments[index]
.remarks
.trim(),
),
Divider(
height:1,
color:Colors.grey,
thickness:1.0,
),
SizedBox(
height:8.0,
),
],
),
),
);
}),
isExpand:isAssessmentExpand,
),
SizedBox(
@ -252,23 +463,28 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
SizedBox(
height:30,
),
if(model.medicalFileList.length!=0)
HeaderBodyExpandableNotifier(
headerWidget:Row(
mainAxisAlignment:MainAxisAlignment.spaceBetween,
mainAxisAlignment:
MainAxisAlignment.spaceBetween,
children:[
Row(
children:[
Texts('Test / procedures'.toUpperCase(),
variant:
isProcedureExpand?"bodyText":'',
bold:isProcedureExpand?true:false,
variant:isProcedureExpand
?"bodyText"
:'',
bold:
isProcedureExpand?true:false,
color:Colors.black),
],
),
InkWell(
onTap:(){
setState((){
isProcedureExpand=!isProcedureExpand;
isProcedureExpand=
!isProcedureExpand;
});
},
child:Icon(isProcedureExpand
@ -276,52 +492,111 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
:EvaIcons.plus))
],
),
bodyWidget:Column(
bodyWidget:ListView.builder(
//physics:,
scrollDirection:Axis.vertical,
shrinkWrap:true,
itemCount:model
.medicalFileList[0]
.entityList[0]
.timelines[encounterNumber]
.timeLineEvents[0]
.consulations[0]
.lstProcedure
.length,
itemBuilder:(BuildContextctxt,intindex){
returnPadding(
padding:EdgeInsets.all(8.0),
child:Container(
child:Column(
mainAxisAlignment:
MainAxisAlignment.center,
children:[
SizedBox(
height:20.0,
),
Row(
children:[
AppText(
'Exam Type : ',
'Procedure ID: ',
fontWeight:FontWeight.w700,
),
AppText(
'59',
model
.medicalFileList[0]
.entityList[0]
.timelines[
encounterNumber]
.timeLineEvents[0]
.consulations[0]
.lstProcedure[index]
.procedureId
.trim(),
),
],
),
Row(
children:[
SizedBox(width:35.0),
AppText(
'ABDOMEN',
'Order Date: ',
fontWeight:FontWeight.w700,
),
//AppText(
//model
//.medicalFileList[0]
//.entityList[0]
//.timelines[0]
//.timeLineEvents[0]
//.consulations[0]
//.lstProcedure[index]
//.orderDate
//.trim(),
//),
],
),
Row(
children:[
AppText(
'Abnormal: ',
model
.medicalFileList[0]
.entityList[0]
.timelines[
encounterNumber]
.timeLineEvents[0]
.consulations[0]
.lstProcedure[index]
.procName,
fontWeight:FontWeight.w700,
),
AppText(
'no',
),
)
],
),
SizedBox(height:15.0),
Row(
children:[
AppText(
'Some short remark about the allergy',
fontWeight:FontWeight.w300,
'CPT Code : ',
fontWeight:FontWeight.w700,
),
AppText(model
.medicalFileList[0]
.entityList[0]
.timelines[encounterNumber]
.timeLineEvents[0]
.consulations[0]
.lstProcedure[index]
.patientID
.toString()),
],
),
SizedBox(
height:15.0,
),
Divider(
height:1,
color:Colors.grey,
thickness:1.0,
),
SizedBox(
height:8.0,
),
],
),
),
);
}),
isExpand:isProcedureExpand,
),
SizedBox(
@ -335,14 +610,17 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
SizedBox(
height:30,
),
if(model.medicalFileList.length!=0)
HeaderBodyExpandableNotifier(
headerWidget:Row(
mainAxisAlignment:MainAxisAlignment.spaceBetween,
mainAxisAlignment:
MainAxisAlignment.spaceBetween,
children:[
Row(
children:[
Texts('physical exam'.toUpperCase(),
variant:isPhysicalExam?"bodyText":'',
variant:
isPhysicalExam?"bodyText":'',
bold:isPhysicalExam?true:false,
color:Colors.black),
],
@ -358,28 +636,54 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
:EvaIcons.plus))
],
),
bodyWidget:Column(
bodyWidget:ListView.builder(
//physics:,
scrollDirection:Axis.vertical,
shrinkWrap:true,
itemCount:model
.medicalFileList[0]
.entityList[0]
.timelines[encounterNumber]
.timeLineEvents[0]
.consulations[0]
.lstPhysicalExam
.length,
itemBuilder:(BuildContextctxt,intindex){
returnPadding(
padding:EdgeInsets.all(8.0),
child:Container(
child:Column(
children:[
SizedBox(
height:20.0,
),
Row(
children:[
AppText(
'Exam Type: ',
fontWeight:FontWeight.w700,
),
AppText(
'59',
),
AppText(model
.medicalFileList[0]
.entityList[0]
.timelines[encounterNumber]
.timeLineEvents[0]
.consulations[0]
.lstPhysicalExam[index]
.examType),
],
),
Row(
children:[
AppText(
'ABDOMEN',
model
.medicalFileList[0]
.entityList[0]
.timelines[
encounterNumber]
.timeLineEvents[0]
.consulations[0]
.lstPhysicalExam[index]
.examDesc,
fontWeight:FontWeight.w700,
),
)
],
),
Row(
@ -388,22 +692,42 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
'Abnormal: ',
fontWeight:FontWeight.w700,
),
AppText(
'no',
),
AppText(model
.medicalFileList[0]
.entityList[0]
.timelines[encounterNumber]
.timeLineEvents[0]
.consulations[0]
.lstPhysicalExam[index]
.abnormal),
],
),
SizedBox(height:15.0),
Row(
children:[
SizedBox(
height:15.0,
),
AppText(
'Some short remark about the allergy',
fontWeight:FontWeight.w300,
model
.medicalFileList[0]
.entityList[0]
.timelines[encounterNumber]
.timeLineEvents[0]
.consulations[0]
.lstPhysicalExam[index]
.remarks,
),
],
Divider(
height:1,
color:Colors.grey,
thickness:1.0,
),
SizedBox(
height:8.0,
),
],
),
),
);
}),
isExpand:isPhysicalExam,
),
SizedBox(
@ -423,6 +747,7 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {