|
|
|
@ -3,7 +3,9 @@ import 'package:doctor_app_flutter/icons_app/doctor_app_icons.dart';
|
|
|
|
import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
|
|
|
|
import 'package:doctor_app_flutter/models/patient/patiant_info_model.dart';
|
|
|
|
import 'package:doctor_app_flutter/screens/base/base_view.dart';
|
|
|
|
import 'package:doctor_app_flutter/screens/base/base_view.dart';
|
|
|
|
import 'package:doctor_app_flutter/screens/patients/profile/patient_profile_screen.dart';
|
|
|
|
import 'package:doctor_app_flutter/screens/patients/profile/patient_profile_screen.dart';
|
|
|
|
|
|
|
|
import 'package:doctor_app_flutter/util/helpers.dart';
|
|
|
|
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
|
|
|
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
|
|
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/patients/profile/patient-profile-header-new-design.dart';
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/Text.dart';
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/Text.dart';
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart';
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart';
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
|
|
|
|
@ -19,6 +21,7 @@ class MedicalFileDetails extends StatefulWidget {
|
|
|
|
String gender;
|
|
|
|
String gender;
|
|
|
|
int encounterNumber;
|
|
|
|
int encounterNumber;
|
|
|
|
int pp;
|
|
|
|
int pp;
|
|
|
|
|
|
|
|
PatiantInformtion patient;
|
|
|
|
|
|
|
|
|
|
|
|
MedicalFileDetails(
|
|
|
|
MedicalFileDetails(
|
|
|
|
{this.age,
|
|
|
|
{this.age,
|
|
|
|
@ -26,7 +29,8 @@ class MedicalFileDetails extends StatefulWidget {
|
|
|
|
this.lastName,
|
|
|
|
this.lastName,
|
|
|
|
this.gender,
|
|
|
|
this.gender,
|
|
|
|
this.encounterNumber,
|
|
|
|
this.encounterNumber,
|
|
|
|
this.pp});
|
|
|
|
this.pp,
|
|
|
|
|
|
|
|
this.patient});
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
_MedicalFileDetailsState createState() => _MedicalFileDetailsState(
|
|
|
|
_MedicalFileDetailsState createState() => _MedicalFileDetailsState(
|
|
|
|
@ -35,7 +39,9 @@ class MedicalFileDetails extends StatefulWidget {
|
|
|
|
lastName: lastName,
|
|
|
|
lastName: lastName,
|
|
|
|
gender: gender,
|
|
|
|
gender: gender,
|
|
|
|
encounterNumber: encounterNumber,
|
|
|
|
encounterNumber: encounterNumber,
|
|
|
|
pp: pp);
|
|
|
|
pp: pp,
|
|
|
|
|
|
|
|
patient: patient,
|
|
|
|
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
@ -45,6 +51,7 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
String lastName;
|
|
|
|
String lastName;
|
|
|
|
String gender;
|
|
|
|
String gender;
|
|
|
|
int pp;
|
|
|
|
int pp;
|
|
|
|
|
|
|
|
PatiantInformtion patient;
|
|
|
|
|
|
|
|
|
|
|
|
_MedicalFileDetailsState(
|
|
|
|
_MedicalFileDetailsState(
|
|
|
|
{this.age,
|
|
|
|
{this.age,
|
|
|
|
@ -52,7 +59,8 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
this.lastName,
|
|
|
|
this.lastName,
|
|
|
|
this.gender,
|
|
|
|
this.gender,
|
|
|
|
this.encounterNumber,
|
|
|
|
this.encounterNumber,
|
|
|
|
this.pp});
|
|
|
|
this.pp,
|
|
|
|
|
|
|
|
this.patient});
|
|
|
|
bool isPhysicalExam = false;
|
|
|
|
bool isPhysicalExam = false;
|
|
|
|
bool isProcedureExpand = false;
|
|
|
|
bool isProcedureExpand = false;
|
|
|
|
bool isHistoryExpand = false;
|
|
|
|
bool isHistoryExpand = false;
|
|
|
|
@ -72,60 +80,10 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
child: Center(
|
|
|
|
child: Center(
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
color: Colors.white,
|
|
|
|
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Padding(
|
|
|
|
PatientProfileHeaderNewDesign(patient,
|
|
|
|
padding: EdgeInsets.all(8.0),
|
|
|
|
patient.patientType.toString(), patient.arrivedOn),
|
|
|
|
child: Row(
|
|
|
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
|
|
|
AvatarWidget(
|
|
|
|
|
|
|
|
Icon(
|
|
|
|
|
|
|
|
gender == "Male"
|
|
|
|
|
|
|
|
? DoctorApp.male
|
|
|
|
|
|
|
|
: DoctorApp.female_icon,
|
|
|
|
|
|
|
|
size: 70,
|
|
|
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
SizedBox(
|
|
|
|
|
|
|
|
width: 20,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Column(
|
|
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
AppText(
|
|
|
|
|
|
|
|
firstName + ' ' + lastName,
|
|
|
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Row(
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
AppText(
|
|
|
|
|
|
|
|
TranslationBase.of(context).age2,
|
|
|
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
SizedBox(
|
|
|
|
|
|
|
|
width: 5.0,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
AppText(
|
|
|
|
|
|
|
|
age,
|
|
|
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
|
|
|
fontWeight: FontWeight.normal,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Divider(
|
|
|
|
|
|
|
|
height: 1.0,
|
|
|
|
|
|
|
|
thickness: 1.0,
|
|
|
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
model.medicalFileList.length != 0 &&
|
|
|
|
model.medicalFileList.length != 0 &&
|
|
|
|
model
|
|
|
|
model
|
|
|
|
.medicalFileList[0]
|
|
|
|
.medicalFileList[0]
|
|
|
|
@ -138,87 +96,100 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
? Padding(
|
|
|
|
? Padding(
|
|
|
|
padding: EdgeInsets.all(10.0),
|
|
|
|
padding: EdgeInsets.all(10.0),
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
|
|
|
|
child: Column(
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
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),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
border: Border.all(
|
|
|
|
|
|
|
|
color: Colors.grey[200], width: 0.5),
|
|
|
|
|
|
|
|
),
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
AppText(
|
|
|
|
if (model.medicalFileList.length !=
|
|
|
|
TranslationBase.of(context).visitDate +
|
|
|
|
0 &&
|
|
|
|
": ",
|
|
|
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
if (model.medicalFileList.length != 0 &&
|
|
|
|
|
|
|
|
model
|
|
|
|
model
|
|
|
|
.medicalFileList[0]
|
|
|
|
.medicalFileList[0]
|
|
|
|
.entityList[0]
|
|
|
|
.entityList[0]
|
|
|
|
.timelines[encounterNumber]
|
|
|
|
.timelines[
|
|
|
|
|
|
|
|
encounterNumber]
|
|
|
|
.timeLineEvents[0]
|
|
|
|
.timeLineEvents[0]
|
|
|
|
.consulations
|
|
|
|
.consulations
|
|
|
|
.length !=
|
|
|
|
.length !=
|
|
|
|
0)
|
|
|
|
0)
|
|
|
|
AppText(model
|
|
|
|
Expanded(
|
|
|
|
|
|
|
|
child: AppText(
|
|
|
|
|
|
|
|
model
|
|
|
|
.medicalFileList[0]
|
|
|
|
.medicalFileList[0]
|
|
|
|
.entityList[0]
|
|
|
|
.entityList[0]
|
|
|
|
.timelines[encounterNumber]
|
|
|
|
.timelines[
|
|
|
|
|
|
|
|
encounterNumber]
|
|
|
|
.timeLineEvents[0]
|
|
|
|
.timeLineEvents[0]
|
|
|
|
.consulations[0]
|
|
|
|
.consulations[0]
|
|
|
|
.appointmentDate
|
|
|
|
.doctorName
|
|
|
|
.toString()),
|
|
|
|
.toUpperCase(),
|
|
|
|
SizedBox(width: 35.0),
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
// AppText(
|
|
|
|
),
|
|
|
|
// 'Appt Date : ',
|
|
|
|
),
|
|
|
|
// fontWeight: FontWeight.w700,
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// AppText(
|
|
|
|
|
|
|
|
// '23/12/2020',
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
if (model.medicalFileList.length != 0)
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
AppText(
|
|
|
|
AppText(
|
|
|
|
TranslationBase.of(context).doctorName +
|
|
|
|
TranslationBase.of(context)
|
|
|
|
": ".toUpperCase(),
|
|
|
|
.clinic +
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
": ",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
if (model.medicalFileList.length != 0 &&
|
|
|
|
if (model.medicalFileList
|
|
|
|
|
|
|
|
.length !=
|
|
|
|
|
|
|
|
0 &&
|
|
|
|
model
|
|
|
|
model
|
|
|
|
.medicalFileList[0]
|
|
|
|
.medicalFileList[0]
|
|
|
|
.entityList[0]
|
|
|
|
.entityList[0]
|
|
|
|
.timelines[encounterNumber]
|
|
|
|
.timelines[
|
|
|
|
|
|
|
|
encounterNumber]
|
|
|
|
.timeLineEvents[0]
|
|
|
|
.timeLineEvents[0]
|
|
|
|
.consulations
|
|
|
|
.consulations
|
|
|
|
.length !=
|
|
|
|
.length !=
|
|
|
|
0)
|
|
|
|
0)
|
|
|
|
Expanded(
|
|
|
|
AppText(
|
|
|
|
child: AppText(
|
|
|
|
|
|
|
|
model
|
|
|
|
model
|
|
|
|
.medicalFileList[0]
|
|
|
|
.medicalFileList[0]
|
|
|
|
.entityList[0]
|
|
|
|
.entityList[0]
|
|
|
|
.timelines[encounterNumber]
|
|
|
|
.timelines[
|
|
|
|
|
|
|
|
encounterNumber]
|
|
|
|
.timeLineEvents[0]
|
|
|
|
.timeLineEvents[0]
|
|
|
|
.consulations[0]
|
|
|
|
.consulations[0]
|
|
|
|
.doctorName
|
|
|
|
.clinicName,
|
|
|
|
.toUpperCase(),
|
|
|
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
if (model.medicalFileList.length != 0)
|
|
|
|
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
AppText(
|
|
|
|
AppText(
|
|
|
|
TranslationBase.of(context)
|
|
|
|
TranslationBase.of(context)
|
|
|
|
.clinicName +
|
|
|
|
.episode +
|
|
|
|
": ",
|
|
|
|
": ",
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
if (model.medicalFileList.length != 0 &&
|
|
|
|
if (model.medicalFileList.length !=
|
|
|
|
|
|
|
|
0 &&
|
|
|
|
model
|
|
|
|
model
|
|
|
|
.medicalFileList[0]
|
|
|
|
.medicalFileList[0]
|
|
|
|
.entityList[0]
|
|
|
|
.entityList[0]
|
|
|
|
.timelines[encounterNumber]
|
|
|
|
.timelines[
|
|
|
|
|
|
|
|
encounterNumber]
|
|
|
|
.timeLineEvents[0]
|
|
|
|
.timeLineEvents[0]
|
|
|
|
.consulations
|
|
|
|
.consulations
|
|
|
|
.length !=
|
|
|
|
.length !=
|
|
|
|
@ -230,22 +201,27 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
.timelines[encounterNumber]
|
|
|
|
.timelines[encounterNumber]
|
|
|
|
.timeLineEvents[0]
|
|
|
|
.timeLineEvents[0]
|
|
|
|
.consulations[0]
|
|
|
|
.consulations[0]
|
|
|
|
.clinicName,
|
|
|
|
.episodeID
|
|
|
|
|
|
|
|
.toString(),
|
|
|
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
AppText(
|
|
|
|
AppText(
|
|
|
|
TranslationBase.of(context).episode +
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
|
|
|
.visitDate +
|
|
|
|
": ",
|
|
|
|
": ",
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
if (model.medicalFileList.length != 0 &&
|
|
|
|
if (model.medicalFileList.length !=
|
|
|
|
|
|
|
|
0 &&
|
|
|
|
model
|
|
|
|
model
|
|
|
|
.medicalFileList[0]
|
|
|
|
.medicalFileList[0]
|
|
|
|
.entityList[0]
|
|
|
|
.entityList[0]
|
|
|
|
.timelines[encounterNumber]
|
|
|
|
.timelines[
|
|
|
|
|
|
|
|
encounterNumber]
|
|
|
|
.timeLineEvents[0]
|
|
|
|
.timeLineEvents[0]
|
|
|
|
.consulations
|
|
|
|
.consulations
|
|
|
|
.length !=
|
|
|
|
.length !=
|
|
|
|
@ -257,17 +233,24 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
.timelines[encounterNumber]
|
|
|
|
.timelines[encounterNumber]
|
|
|
|
.timeLineEvents[0]
|
|
|
|
.timeLineEvents[0]
|
|
|
|
.consulations[0]
|
|
|
|
.consulations[0]
|
|
|
|
.episodeID
|
|
|
|
.appointmentDate
|
|
|
|
.toString(),
|
|
|
|
.toString(),
|
|
|
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
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),
|
|
|
|
SizedBox(height: 25.0),
|
|
|
|
if (model.medicalFileList.length != 0 &&
|
|
|
|
if (model.medicalFileList.length != 0 &&
|
|
|
|
model
|
|
|
|
model
|
|
|
|
@ -278,7 +261,23 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
.consulations
|
|
|
|
.consulations
|
|
|
|
.length !=
|
|
|
|
.length !=
|
|
|
|
0)
|
|
|
|
0)
|
|
|
|
HeaderBodyExpandableNotifier(
|
|
|
|
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),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
border: Border.all(
|
|
|
|
|
|
|
|
color: Colors.grey[200],
|
|
|
|
|
|
|
|
width: 0.5),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
child: Padding(
|
|
|
|
|
|
|
|
padding: const EdgeInsets.all(15.0),
|
|
|
|
|
|
|
|
child: HeaderBodyExpandableNotifier(
|
|
|
|
headerWidget: Row(
|
|
|
|
headerWidget: Row(
|
|
|
|
mainAxisAlignment:
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.spaceBetween,
|
|
|
|
MainAxisAlignment.spaceBetween,
|
|
|
|
@ -286,7 +285,8 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Texts(
|
|
|
|
Texts(
|
|
|
|
TranslationBase.of(context)
|
|
|
|
TranslationBase.of(
|
|
|
|
|
|
|
|
context)
|
|
|
|
.historyOfPresentIllness
|
|
|
|
.historyOfPresentIllness
|
|
|
|
.toUpperCase(),
|
|
|
|
.toUpperCase(),
|
|
|
|
variant: isHistoryExpand
|
|
|
|
variant: isHistoryExpand
|
|
|
|
@ -294,7 +294,7 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
: '',
|
|
|
|
: '',
|
|
|
|
bold: isHistoryExpand
|
|
|
|
bold: isHistoryExpand
|
|
|
|
? true
|
|
|
|
? true
|
|
|
|
: false,
|
|
|
|
: true,
|
|
|
|
color: Colors.black),
|
|
|
|
color: Colors.black),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -311,7 +311,8 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
bodyWidget: ListView.builder(
|
|
|
|
bodyWidget: ListView.builder(
|
|
|
|
//physics: ,
|
|
|
|
physics:
|
|
|
|
|
|
|
|
NeverScrollableScrollPhysics(),
|
|
|
|
scrollDirection: Axis.vertical,
|
|
|
|
scrollDirection: Axis.vertical,
|
|
|
|
shrinkWrap: true,
|
|
|
|
shrinkWrap: true,
|
|
|
|
itemCount: model
|
|
|
|
itemCount: model
|
|
|
|
@ -322,14 +323,15 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
.consulations[0]
|
|
|
|
.consulations[0]
|
|
|
|
.lstCheifComplaint
|
|
|
|
.lstCheifComplaint
|
|
|
|
.length,
|
|
|
|
.length,
|
|
|
|
itemBuilder:
|
|
|
|
itemBuilder: (BuildContext ctxt,
|
|
|
|
(BuildContext ctxt, int index) {
|
|
|
|
int index) {
|
|
|
|
return Padding(
|
|
|
|
return Padding(
|
|
|
|
padding: EdgeInsets.all(8.0),
|
|
|
|
padding: EdgeInsets.all(8.0),
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
mainAxisAlignment:
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.center,
|
|
|
|
MainAxisAlignment
|
|
|
|
|
|
|
|
.center,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
@ -338,19 +340,22 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
model
|
|
|
|
model
|
|
|
|
.medicalFileList[
|
|
|
|
.medicalFileList[
|
|
|
|
0]
|
|
|
|
0]
|
|
|
|
.entityList[0]
|
|
|
|
.entityList[
|
|
|
|
|
|
|
|
0]
|
|
|
|
.timelines[
|
|
|
|
.timelines[
|
|
|
|
encounterNumber]
|
|
|
|
encounterNumber]
|
|
|
|
.timeLineEvents[
|
|
|
|
.timeLineEvents[
|
|
|
|
0]
|
|
|
|
0]
|
|
|
|
.consulations[0]
|
|
|
|
.consulations[
|
|
|
|
|
|
|
|
0]
|
|
|
|
.lstCheifComplaint[
|
|
|
|
.lstCheifComplaint[
|
|
|
|
index]
|
|
|
|
index]
|
|
|
|
.hOPI
|
|
|
|
.hOPI
|
|
|
|
.trim(),
|
|
|
|
.trim(),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(width: 35.0),
|
|
|
|
SizedBox(
|
|
|
|
|
|
|
|
width: 35.0),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
@ -360,14 +365,12 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
isExpand: isHistoryExpand,
|
|
|
|
isExpand: isHistoryExpand,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
|
|
|
|
height: 30,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
|
|
|
height: 1,
|
|
|
|
|
|
|
|
color: Color(0xffCCCCCC),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
// SizedBox(
|
|
|
|
|
|
|
|
// height: 30,
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
|
|
|
|
SizedBox(
|
|
|
|
SizedBox(
|
|
|
|
height: 30,
|
|
|
|
height: 30,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -380,7 +383,23 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
.consulations
|
|
|
|
.consulations
|
|
|
|
.length !=
|
|
|
|
.length !=
|
|
|
|
0)
|
|
|
|
0)
|
|
|
|
HeaderBodyExpandableNotifier(
|
|
|
|
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),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
border: Border.all(
|
|
|
|
|
|
|
|
color: Colors.grey[200],
|
|
|
|
|
|
|
|
width: 0.5),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
child: Padding(
|
|
|
|
|
|
|
|
padding: const EdgeInsets.all(15.0),
|
|
|
|
|
|
|
|
child: HeaderBodyExpandableNotifier(
|
|
|
|
headerWidget: Row(
|
|
|
|
headerWidget: Row(
|
|
|
|
mainAxisAlignment:
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.spaceBetween,
|
|
|
|
MainAxisAlignment.spaceBetween,
|
|
|
|
@ -388,15 +407,17 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Texts(
|
|
|
|
Texts(
|
|
|
|
TranslationBase.of(context)
|
|
|
|
TranslationBase.of(
|
|
|
|
|
|
|
|
context)
|
|
|
|
.assessment
|
|
|
|
.assessment
|
|
|
|
.toUpperCase(),
|
|
|
|
.toUpperCase(),
|
|
|
|
variant: isAssessmentExpand
|
|
|
|
variant:
|
|
|
|
|
|
|
|
isAssessmentExpand
|
|
|
|
? "bodyText"
|
|
|
|
? "bodyText"
|
|
|
|
: '',
|
|
|
|
: '',
|
|
|
|
bold: isAssessmentExpand
|
|
|
|
bold: isAssessmentExpand
|
|
|
|
? true
|
|
|
|
? true
|
|
|
|
: false,
|
|
|
|
: true,
|
|
|
|
color: Colors.black),
|
|
|
|
color: Colors.black),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -413,7 +434,8 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
bodyWidget: ListView.builder(
|
|
|
|
bodyWidget: ListView.builder(
|
|
|
|
//physics: ,
|
|
|
|
physics:
|
|
|
|
|
|
|
|
NeverScrollableScrollPhysics(),
|
|
|
|
scrollDirection: Axis.vertical,
|
|
|
|
scrollDirection: Axis.vertical,
|
|
|
|
shrinkWrap: true,
|
|
|
|
shrinkWrap: true,
|
|
|
|
itemCount: model
|
|
|
|
itemCount: model
|
|
|
|
@ -424,21 +446,23 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
.consulations[0]
|
|
|
|
.consulations[0]
|
|
|
|
.lstAssessments
|
|
|
|
.lstAssessments
|
|
|
|
.length,
|
|
|
|
.length,
|
|
|
|
itemBuilder:
|
|
|
|
itemBuilder: (BuildContext ctxt,
|
|
|
|
(BuildContext ctxt, int index) {
|
|
|
|
int index) {
|
|
|
|
return Padding(
|
|
|
|
return Padding(
|
|
|
|
padding: EdgeInsets.all(8.0),
|
|
|
|
padding: EdgeInsets.all(8.0),
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
mainAxisAlignment:
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.center,
|
|
|
|
MainAxisAlignment
|
|
|
|
|
|
|
|
.center,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
AppText(
|
|
|
|
AppText(
|
|
|
|
'ICD',
|
|
|
|
'ICD',
|
|
|
|
fontWeight:
|
|
|
|
fontWeight:
|
|
|
|
FontWeight.w700,
|
|
|
|
FontWeight
|
|
|
|
|
|
|
|
.w700,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
AppText(
|
|
|
|
AppText(
|
|
|
|
model
|
|
|
|
model
|
|
|
|
@ -447,18 +471,22 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
.entityList[0]
|
|
|
|
.entityList[0]
|
|
|
|
.timelines[
|
|
|
|
.timelines[
|
|
|
|
encounterNumber]
|
|
|
|
encounterNumber]
|
|
|
|
.timeLineEvents[0]
|
|
|
|
.timeLineEvents[
|
|
|
|
.consulations[0]
|
|
|
|
0]
|
|
|
|
|
|
|
|
.consulations[
|
|
|
|
|
|
|
|
0]
|
|
|
|
.lstAssessments[
|
|
|
|
.lstAssessments[
|
|
|
|
index]
|
|
|
|
index]
|
|
|
|
.iCD10
|
|
|
|
.iCD10
|
|
|
|
.trim(),
|
|
|
|
.trim(),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(width: 35.0),
|
|
|
|
SizedBox(
|
|
|
|
|
|
|
|
width: 35.0),
|
|
|
|
AppText(
|
|
|
|
AppText(
|
|
|
|
'Condition: ',
|
|
|
|
'Condition: ',
|
|
|
|
fontWeight:
|
|
|
|
fontWeight:
|
|
|
|
FontWeight.w700,
|
|
|
|
FontWeight
|
|
|
|
|
|
|
|
.w700,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
AppText(
|
|
|
|
AppText(
|
|
|
|
model
|
|
|
|
model
|
|
|
|
@ -467,8 +495,10 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
.entityList[0]
|
|
|
|
.entityList[0]
|
|
|
|
.timelines[
|
|
|
|
.timelines[
|
|
|
|
encounterNumber]
|
|
|
|
encounterNumber]
|
|
|
|
.timeLineEvents[0]
|
|
|
|
.timeLineEvents[
|
|
|
|
.consulations[0]
|
|
|
|
0]
|
|
|
|
|
|
|
|
.consulations[
|
|
|
|
|
|
|
|
0]
|
|
|
|
.lstAssessments[
|
|
|
|
.lstAssessments[
|
|
|
|
index]
|
|
|
|
index]
|
|
|
|
.condition
|
|
|
|
.condition
|
|
|
|
@ -485,13 +515,16 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
.entityList[0]
|
|
|
|
.entityList[0]
|
|
|
|
.timelines[
|
|
|
|
.timelines[
|
|
|
|
encounterNumber]
|
|
|
|
encounterNumber]
|
|
|
|
.timeLineEvents[0]
|
|
|
|
.timeLineEvents[
|
|
|
|
.consulations[0]
|
|
|
|
0]
|
|
|
|
|
|
|
|
.consulations[
|
|
|
|
|
|
|
|
0]
|
|
|
|
.lstAssessments[
|
|
|
|
.lstAssessments[
|
|
|
|
index]
|
|
|
|
index]
|
|
|
|
.description,
|
|
|
|
.description,
|
|
|
|
fontWeight:
|
|
|
|
fontWeight:
|
|
|
|
FontWeight.w700,
|
|
|
|
FontWeight
|
|
|
|
|
|
|
|
.w700,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -500,14 +533,17 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
AppText(
|
|
|
|
AppText(
|
|
|
|
'Type: ',
|
|
|
|
'Type: ',
|
|
|
|
fontWeight:
|
|
|
|
fontWeight:
|
|
|
|
FontWeight.w700,
|
|
|
|
FontWeight
|
|
|
|
|
|
|
|
.w700,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
AppText(model
|
|
|
|
AppText(model
|
|
|
|
.medicalFileList[0]
|
|
|
|
.medicalFileList[
|
|
|
|
|
|
|
|
0]
|
|
|
|
.entityList[0]
|
|
|
|
.entityList[0]
|
|
|
|
.timelines[
|
|
|
|
.timelines[
|
|
|
|
encounterNumber]
|
|
|
|
encounterNumber]
|
|
|
|
.timeLineEvents[0]
|
|
|
|
.timeLineEvents[
|
|
|
|
|
|
|
|
0]
|
|
|
|
.consulations[0]
|
|
|
|
.consulations[0]
|
|
|
|
.lstAssessments[
|
|
|
|
.lstAssessments[
|
|
|
|
index]
|
|
|
|
index]
|
|
|
|
@ -519,13 +555,15 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
AppText(
|
|
|
|
AppText(
|
|
|
|
model
|
|
|
|
model
|
|
|
|
.medicalFileList[0]
|
|
|
|
.medicalFileList[
|
|
|
|
|
|
|
|
0]
|
|
|
|
.entityList[0]
|
|
|
|
.entityList[0]
|
|
|
|
.timelines[
|
|
|
|
.timelines[
|
|
|
|
encounterNumber]
|
|
|
|
encounterNumber]
|
|
|
|
.timeLineEvents[0]
|
|
|
|
.timeLineEvents[0]
|
|
|
|
.consulations[0]
|
|
|
|
.consulations[0]
|
|
|
|
.lstAssessments[index]
|
|
|
|
.lstAssessments[
|
|
|
|
|
|
|
|
index]
|
|
|
|
.remarks
|
|
|
|
.remarks
|
|
|
|
.trim(),
|
|
|
|
.trim(),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -544,14 +582,16 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
isExpand: isAssessmentExpand,
|
|
|
|
isExpand: isAssessmentExpand,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
|
|
|
|
height: 30,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
|
|
|
height: 1,
|
|
|
|
|
|
|
|
color: Color(0xffCCCCCC),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
// SizedBox(
|
|
|
|
|
|
|
|
// height: 30,
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// Container(
|
|
|
|
|
|
|
|
// width: double.infinity,
|
|
|
|
|
|
|
|
// height: 1,
|
|
|
|
|
|
|
|
// color: Color(0xffCCCCCC),
|
|
|
|
|
|
|
|
// ),
|
|
|
|
SizedBox(
|
|
|
|
SizedBox(
|
|
|
|
height: 30,
|
|
|
|
height: 30,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -564,7 +604,23 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
.consulations
|
|
|
|
.consulations
|
|
|
|
.length !=
|
|
|
|
.length !=
|
|
|
|
0)
|
|
|
|
0)
|
|
|
|
HeaderBodyExpandableNotifier(
|
|
|
|
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),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
border: Border.all(
|
|
|
|
|
|
|
|
color: Colors.grey[200],
|
|
|
|
|
|
|
|
width: 0.5),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
child: Padding(
|
|
|
|
|
|
|
|
padding: const EdgeInsets.all(15.0),
|
|
|
|
|
|
|
|
child: HeaderBodyExpandableNotifier(
|
|
|
|
headerWidget: Row(
|
|
|
|
headerWidget: Row(
|
|
|
|
mainAxisAlignment:
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.spaceBetween,
|
|
|
|
MainAxisAlignment.spaceBetween,
|
|
|
|
@ -572,7 +628,8 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Texts(
|
|
|
|
Texts(
|
|
|
|
TranslationBase.of(context)
|
|
|
|
TranslationBase.of(
|
|
|
|
|
|
|
|
context)
|
|
|
|
.test
|
|
|
|
.test
|
|
|
|
.toUpperCase(),
|
|
|
|
.toUpperCase(),
|
|
|
|
variant: isProcedureExpand
|
|
|
|
variant: isProcedureExpand
|
|
|
|
@ -580,7 +637,7 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
: '',
|
|
|
|
: '',
|
|
|
|
bold: isProcedureExpand
|
|
|
|
bold: isProcedureExpand
|
|
|
|
? true
|
|
|
|
? true
|
|
|
|
: false,
|
|
|
|
: true,
|
|
|
|
color: Colors.black),
|
|
|
|
color: Colors.black),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -609,61 +666,85 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
.consulations[0]
|
|
|
|
.consulations[0]
|
|
|
|
.lstProcedure
|
|
|
|
.lstProcedure
|
|
|
|
.length,
|
|
|
|
.length,
|
|
|
|
itemBuilder:
|
|
|
|
itemBuilder: (BuildContext ctxt,
|
|
|
|
(BuildContext ctxt, int index) {
|
|
|
|
int index) {
|
|
|
|
return Padding(
|
|
|
|
return Padding(
|
|
|
|
padding: EdgeInsets.all(8.0),
|
|
|
|
padding: EdgeInsets.all(8.0),
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
mainAxisAlignment:
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.center,
|
|
|
|
MainAxisAlignment
|
|
|
|
|
|
|
|
.center,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
Column(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
AppText(
|
|
|
|
AppText(
|
|
|
|
'Procedure ID: ',
|
|
|
|
'Procedure ID: ',
|
|
|
|
fontWeight:
|
|
|
|
fontWeight:
|
|
|
|
FontWeight.w700,
|
|
|
|
FontWeight
|
|
|
|
|
|
|
|
.w700,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
AppText(
|
|
|
|
AppText(
|
|
|
|
model
|
|
|
|
model
|
|
|
|
.medicalFileList[
|
|
|
|
.medicalFileList[
|
|
|
|
0]
|
|
|
|
0]
|
|
|
|
.entityList[0]
|
|
|
|
.entityList[
|
|
|
|
|
|
|
|
0]
|
|
|
|
.timelines[
|
|
|
|
.timelines[
|
|
|
|
encounterNumber]
|
|
|
|
encounterNumber]
|
|
|
|
.timeLineEvents[0]
|
|
|
|
.timeLineEvents[
|
|
|
|
.consulations[0]
|
|
|
|
0]
|
|
|
|
|
|
|
|
.consulations[
|
|
|
|
|
|
|
|
0]
|
|
|
|
.lstProcedure[
|
|
|
|
.lstProcedure[
|
|
|
|
index]
|
|
|
|
index]
|
|
|
|
.procedureId
|
|
|
|
.procedureId
|
|
|
|
.trim(),
|
|
|
|
.trim(),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(width: 35.0),
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
SizedBox(
|
|
|
|
|
|
|
|
width: 35.0),
|
|
|
|
|
|
|
|
Column(
|
|
|
|
|
|
|
|
children: [
|
|
|
|
AppText(
|
|
|
|
AppText(
|
|
|
|
'Order Date: ',
|
|
|
|
'Order Date: ',
|
|
|
|
fontWeight:
|
|
|
|
fontWeight:
|
|
|
|
FontWeight.w700,
|
|
|
|
FontWeight
|
|
|
|
|
|
|
|
.w700,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Expanded(
|
|
|
|
AppText(
|
|
|
|
child: AppText(
|
|
|
|
Helpers.getDateFormatted(
|
|
|
|
|
|
|
|
DateTime
|
|
|
|
|
|
|
|
.parse(
|
|
|
|
model
|
|
|
|
model
|
|
|
|
.medicalFileList[
|
|
|
|
.medicalFileList[
|
|
|
|
0]
|
|
|
|
0]
|
|
|
|
.entityList[0]
|
|
|
|
.entityList[
|
|
|
|
|
|
|
|
0]
|
|
|
|
.timelines[
|
|
|
|
.timelines[
|
|
|
|
encounterNumber]
|
|
|
|
encounterNumber]
|
|
|
|
.timeLineEvents[
|
|
|
|
.timeLineEvents[
|
|
|
|
0]
|
|
|
|
0]
|
|
|
|
.consulations[0]
|
|
|
|
.consulations[
|
|
|
|
|
|
|
|
0]
|
|
|
|
.lstProcedure[
|
|
|
|
.lstProcedure[
|
|
|
|
index]
|
|
|
|
index]
|
|
|
|
.orderDate
|
|
|
|
.orderDate
|
|
|
|
.trim(),
|
|
|
|
.trim(),
|
|
|
|
|
|
|
|
)),
|
|
|
|
|
|
|
|
fontSize:
|
|
|
|
|
|
|
|
13.5,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
SizedBox(
|
|
|
|
|
|
|
|
height: 20.0,
|
|
|
|
|
|
|
|
),
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
|
@ -671,17 +752,20 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
model
|
|
|
|
model
|
|
|
|
.medicalFileList[
|
|
|
|
.medicalFileList[
|
|
|
|
0]
|
|
|
|
0]
|
|
|
|
.entityList[0]
|
|
|
|
.entityList[
|
|
|
|
|
|
|
|
0]
|
|
|
|
.timelines[
|
|
|
|
.timelines[
|
|
|
|
encounterNumber]
|
|
|
|
encounterNumber]
|
|
|
|
.timeLineEvents[
|
|
|
|
.timeLineEvents[
|
|
|
|
0]
|
|
|
|
0]
|
|
|
|
.consulations[0]
|
|
|
|
.consulations[
|
|
|
|
|
|
|
|
0]
|
|
|
|
.lstProcedure[
|
|
|
|
.lstProcedure[
|
|
|
|
index]
|
|
|
|
index]
|
|
|
|
.procName,
|
|
|
|
.procName,
|
|
|
|
fontWeight:
|
|
|
|
fontWeight:
|
|
|
|
FontWeight.w700,
|
|
|
|
FontWeight
|
|
|
|
|
|
|
|
.w700,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
@ -691,16 +775,20 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
AppText(
|
|
|
|
AppText(
|
|
|
|
'CPT Code : ',
|
|
|
|
'CPT Code : ',
|
|
|
|
fontWeight:
|
|
|
|
fontWeight:
|
|
|
|
FontWeight.w700,
|
|
|
|
FontWeight
|
|
|
|
|
|
|
|
.w700,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
AppText(model
|
|
|
|
AppText(model
|
|
|
|
.medicalFileList[0]
|
|
|
|
.medicalFileList[
|
|
|
|
|
|
|
|
0]
|
|
|
|
.entityList[0]
|
|
|
|
.entityList[0]
|
|
|
|
.timelines[
|
|
|
|
.timelines[
|
|
|
|
encounterNumber]
|
|
|
|
encounterNumber]
|
|
|
|
.timeLineEvents[0]
|
|
|
|
.timeLineEvents[
|
|
|
|
|
|
|
|
0]
|
|
|
|
.consulations[0]
|
|
|
|
.consulations[0]
|
|
|
|
.lstProcedure[index]
|
|
|
|
.lstProcedure[
|
|
|
|
|
|
|
|
index]
|
|
|
|
.patientID
|
|
|
|
.patientID
|
|
|
|
.toString()),
|
|
|
|
.toString()),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
@ -723,14 +811,16 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
isExpand: isProcedureExpand,
|
|
|
|
isExpand: isProcedureExpand,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
|
|
|
|
height: 30,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
|
|
|
height: 1,
|
|
|
|
|
|
|
|
color: Color(0xffCCCCCC),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
// SizedBox(
|
|
|
|
|
|
|
|
// height: 30,
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// Container(
|
|
|
|
|
|
|
|
// width: double.infinity,
|
|
|
|
|
|
|
|
// height: 1,
|
|
|
|
|
|
|
|
// color: Color(0xffCCCCCC),
|
|
|
|
|
|
|
|
// ),
|
|
|
|
SizedBox(
|
|
|
|
SizedBox(
|
|
|
|
height: 30,
|
|
|
|
height: 30,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -743,7 +833,23 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
.consulations
|
|
|
|
.consulations
|
|
|
|
.length !=
|
|
|
|
.length !=
|
|
|
|
0)
|
|
|
|
0)
|
|
|
|
HeaderBodyExpandableNotifier(
|
|
|
|
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),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
border: Border.all(
|
|
|
|
|
|
|
|
color: Colors.grey[200],
|
|
|
|
|
|
|
|
width: 0.5),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
child: Padding(
|
|
|
|
|
|
|
|
padding: const EdgeInsets.all(15.0),
|
|
|
|
|
|
|
|
child: HeaderBodyExpandableNotifier(
|
|
|
|
headerWidget: Row(
|
|
|
|
headerWidget: Row(
|
|
|
|
mainAxisAlignment:
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.spaceBetween,
|
|
|
|
MainAxisAlignment.spaceBetween,
|
|
|
|
@ -751,7 +857,8 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Texts(
|
|
|
|
Texts(
|
|
|
|
TranslationBase.of(context)
|
|
|
|
TranslationBase.of(
|
|
|
|
|
|
|
|
context)
|
|
|
|
.physicalSystemExamination
|
|
|
|
.physicalSystemExamination
|
|
|
|
.toUpperCase(),
|
|
|
|
.toUpperCase(),
|
|
|
|
variant: isPhysicalExam
|
|
|
|
variant: isPhysicalExam
|
|
|
|
@ -759,7 +866,7 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
: '',
|
|
|
|
: '',
|
|
|
|
bold: isPhysicalExam
|
|
|
|
bold: isPhysicalExam
|
|
|
|
? true
|
|
|
|
? true
|
|
|
|
: false,
|
|
|
|
: true,
|
|
|
|
color: Colors.black),
|
|
|
|
color: Colors.black),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -788,8 +895,8 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
.consulations[0]
|
|
|
|
.consulations[0]
|
|
|
|
.lstPhysicalExam
|
|
|
|
.lstPhysicalExam
|
|
|
|
.length,
|
|
|
|
.length,
|
|
|
|
itemBuilder:
|
|
|
|
itemBuilder: (BuildContext ctxt,
|
|
|
|
(BuildContext ctxt, int index) {
|
|
|
|
int index) {
|
|
|
|
return Padding(
|
|
|
|
return Padding(
|
|
|
|
padding: EdgeInsets.all(8.0),
|
|
|
|
padding: EdgeInsets.all(8.0),
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
@ -800,14 +907,17 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
AppText(
|
|
|
|
AppText(
|
|
|
|
'Exam Type: ',
|
|
|
|
'Exam Type: ',
|
|
|
|
fontWeight:
|
|
|
|
fontWeight:
|
|
|
|
FontWeight.w700,
|
|
|
|
FontWeight
|
|
|
|
|
|
|
|
.w700,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
AppText(model
|
|
|
|
AppText(model
|
|
|
|
.medicalFileList[0]
|
|
|
|
.medicalFileList[
|
|
|
|
|
|
|
|
0]
|
|
|
|
.entityList[0]
|
|
|
|
.entityList[0]
|
|
|
|
.timelines[
|
|
|
|
.timelines[
|
|
|
|
encounterNumber]
|
|
|
|
encounterNumber]
|
|
|
|
.timeLineEvents[0]
|
|
|
|
.timeLineEvents[
|
|
|
|
|
|
|
|
0]
|
|
|
|
.consulations[0]
|
|
|
|
.consulations[0]
|
|
|
|
.lstPhysicalExam[
|
|
|
|
.lstPhysicalExam[
|
|
|
|
index]
|
|
|
|
index]
|
|
|
|
@ -823,13 +933,16 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
.entityList[0]
|
|
|
|
.entityList[0]
|
|
|
|
.timelines[
|
|
|
|
.timelines[
|
|
|
|
encounterNumber]
|
|
|
|
encounterNumber]
|
|
|
|
.timeLineEvents[0]
|
|
|
|
.timeLineEvents[
|
|
|
|
.consulations[0]
|
|
|
|
0]
|
|
|
|
|
|
|
|
.consulations[
|
|
|
|
|
|
|
|
0]
|
|
|
|
.lstPhysicalExam[
|
|
|
|
.lstPhysicalExam[
|
|
|
|
index]
|
|
|
|
index]
|
|
|
|
.examDesc,
|
|
|
|
.examDesc,
|
|
|
|
fontWeight:
|
|
|
|
fontWeight:
|
|
|
|
FontWeight.w700,
|
|
|
|
FontWeight
|
|
|
|
|
|
|
|
.w700,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -838,14 +951,17 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
AppText(
|
|
|
|
AppText(
|
|
|
|
'Abnormal: ',
|
|
|
|
'Abnormal: ',
|
|
|
|
fontWeight:
|
|
|
|
fontWeight:
|
|
|
|
FontWeight.w700,
|
|
|
|
FontWeight
|
|
|
|
|
|
|
|
.w700,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
AppText(model
|
|
|
|
AppText(model
|
|
|
|
.medicalFileList[0]
|
|
|
|
.medicalFileList[
|
|
|
|
|
|
|
|
0]
|
|
|
|
.entityList[0]
|
|
|
|
.entityList[0]
|
|
|
|
.timelines[
|
|
|
|
.timelines[
|
|
|
|
encounterNumber]
|
|
|
|
encounterNumber]
|
|
|
|
.timeLineEvents[0]
|
|
|
|
.timeLineEvents[
|
|
|
|
|
|
|
|
0]
|
|
|
|
.consulations[0]
|
|
|
|
.consulations[0]
|
|
|
|
.lstPhysicalExam[
|
|
|
|
.lstPhysicalExam[
|
|
|
|
index]
|
|
|
|
index]
|
|
|
|
@ -857,7 +973,8 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
AppText(
|
|
|
|
AppText(
|
|
|
|
model
|
|
|
|
model
|
|
|
|
.medicalFileList[0]
|
|
|
|
.medicalFileList[
|
|
|
|
|
|
|
|
0]
|
|
|
|
.entityList[0]
|
|
|
|
.entityList[0]
|
|
|
|
.timelines[
|
|
|
|
.timelines[
|
|
|
|
encounterNumber]
|
|
|
|
encounterNumber]
|
|
|
|
@ -882,14 +999,16 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
isExpand: isPhysicalExam,
|
|
|
|
isExpand: isPhysicalExam,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
SizedBox(
|
|
|
|
height: 30,
|
|
|
|
height: 30,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
// Container(
|
|
|
|
width: double.infinity,
|
|
|
|
// width: double.infinity,
|
|
|
|
height: 1,
|
|
|
|
// height: 1,
|
|
|
|
color: Color(0xffCCCCCC),
|
|
|
|
// color: Color(0xffCCCCCC),
|
|
|
|
),
|
|
|
|
// ),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|