Merge branch 'development' of https://gitlab.com/Cloud_Solution/doctor_app_flutter into sultan
commit
4587fdda59
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,18 @@
|
||||
class MedicalFileRequestModel {
|
||||
int patientMRN;
|
||||
String vidaAuthTokenID;
|
||||
|
||||
MedicalFileRequestModel({this.patientMRN, this.vidaAuthTokenID});
|
||||
|
||||
MedicalFileRequestModel.fromJson(Map<String, dynamic> json) {
|
||||
patientMRN = json['PatientMRN'];
|
||||
vidaAuthTokenID = json['VidaAuthTokenID'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['PatientMRN'] = this.patientMRN;
|
||||
data['VidaAuthTokenID'] = this.vidaAuthTokenID;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
import 'package:doctor_app_flutter/config/config.dart';
|
||||
import 'package:doctor_app_flutter/core/model/medical_file_model.dart';
|
||||
import 'package:doctor_app_flutter/core/model/medical_file_request_model.dart';
|
||||
import 'package:doctor_app_flutter/core/model/prescription_req_model.dart';
|
||||
import 'package:doctor_app_flutter/core/service/base/base_service.dart';
|
||||
|
||||
class MedicalFileService extends BaseService {
|
||||
List<MedicalFileModel> _medicalFileList = List();
|
||||
List<MedicalFileModel> get medicalFileList => _medicalFileList;
|
||||
|
||||
MedicalFileRequestModel _fileRequestModel = MedicalFileRequestModel(
|
||||
patientMRN: 1231755,
|
||||
vidaAuthTokenID:
|
||||
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMDAyIiwianRpIjoiNDM1MGNjZTYtYzc3MS00YjBiLThiNDItMGZhY2IzYzgxMjQ4IiwiZW1haWwiOiIiLCJpZCI6IjEwMDIiLCJOYW1lIjoiVEVNUCAtIERPQ1RPUiIsIkVtcGxveWVlSWQiOiI0NzA5IiwiRmFjaWxpdHlHcm91cElkIjoiMDEwMjY2IiwiRmFjaWxpdHlJZCI6IjE1IiwiUGhhcmFtY3lGYWNpbGl0eUlkIjoiNTUiLCJJU19QSEFSTUFDWV9DT05ORUNURUQiOiJUcnVlIiwiRG9jdG9ySWQiOiI0NzA5IiwiU0VTU0lPTklEIjoiMjE1OTYwNTQiLCJDbGluaWNJZCI6IjEiLCJyb2xlIjpbIkRPQ1RPUlMiLCJIRUFEIERPQ1RPUlMiLCJBRE1JTklTVFJBVE9SUyIsIlJFQ0VQVElPTklTVCIsIkVSIE5VUlNFIiwiRVIgUkVDRVBUSU9OSVNUIiwiUEhBUk1BQ1kgQUNDT1VOVCBTVEFGRiIsIlBIQVJNQUNZIE5VUlNFIiwiSU5QQVRJRU5UIFBIQVJNQUNJU1QiLCJBRE1JU1NJT04gU1RBRkYiLCJBUFBST1ZBTCBTVEFGRiIsIkNPTlNFTlQgIiwiTUVESUNBTCBSRVBPUlQgLSBTSUNLIExFQVZFIE1BTkFHRVIiXSwibmJmIjoxNjA5MjI1MjMwLCJleHAiOjE2MTAwODkyMzAsImlhdCI6MTYwOTIyNTIzMH0.rs7lTBQ1ON4PbR11PBkOyjf818DdeMKuqz2IrCJMYQU",
|
||||
);
|
||||
|
||||
Future getMedicalFile() async {
|
||||
hasError = false;
|
||||
_medicalFileList.clear();
|
||||
await baseAppClient.post(GET_MEDICAL_FILE,
|
||||
onSuccess: (dynamic response, int statusCode) {
|
||||
_medicalFileList
|
||||
.add(MedicalFileModel.fromJson(response['PatientFileList']));
|
||||
}, onFailure: (String error, int statusCode) {
|
||||
hasError = true;
|
||||
super.error = error;
|
||||
}, body: _fileRequestModel.toJson());
|
||||
}
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
import 'package:doctor_app_flutter/core/enum/viewstate.dart';
|
||||
import 'package:doctor_app_flutter/core/model/medical_file_model.dart';
|
||||
import 'package:doctor_app_flutter/core/service/medical_file_service.dart';
|
||||
|
||||
import 'package:doctor_app_flutter/core/viewModel/base_view_model.dart';
|
||||
import 'package:doctor_app_flutter/locator.dart';
|
||||
|
||||
class MedicalFileViewModel extends BaseViewModel {
|
||||
bool hasError = false;
|
||||
MedicalFileService _medicalFileService = locator<MedicalFileService>();
|
||||
|
||||
List<MedicalFileModel> get medicalFileList =>
|
||||
_medicalFileService.medicalFileList;
|
||||
|
||||
Future getMedicalFile() async {
|
||||
hasError = false;
|
||||
//_insuranceCardService.clearInsuranceCard();
|
||||
setState(ViewState.Busy);
|
||||
await _medicalFileService.getMedicalFile();
|
||||
if (_medicalFileService.hasError) {
|
||||
error = _medicalFileService.error;
|
||||
setState(ViewState.ErrorLocal);
|
||||
} else
|
||||
setState(ViewState.Idle);
|
||||
}
|
||||
}
|
@ -0,0 +1,428 @@
|
||||
import 'package:doctor_app_flutter/core/viewModel/medical_file_view_model.dart';
|
||||
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/screens/base/base_view.dart';
|
||||
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
||||
import 'package:doctor_app_flutter/widgets/patients/profile/patient_profile_widget.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_texts_widget.dart';
|
||||
import 'package:doctor_app_flutter/widgets/shared/expandable-widget-header-body.dart';
|
||||
import 'package:eva_icons_flutter/eva_icons_flutter.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class MedicalFileDetails extends StatefulWidget {
|
||||
String age;
|
||||
String firstName;
|
||||
String lastName;
|
||||
String gender;
|
||||
MedicalFileDetails({this.age, this.firstName, this.lastName, this.gender});
|
||||
|
||||
@override
|
||||
_MedicalFileDetailsState createState() => _MedicalFileDetailsState(
|
||||
firstName: firstName, age: age, lastName: lastName, gender: gender);
|
||||
}
|
||||
|
||||
class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
||||
String age;
|
||||
String firstName;
|
||||
String lastName;
|
||||
String gender;
|
||||
|
||||
_MedicalFileDetailsState(
|
||||
{this.age, this.firstName, this.lastName, this.gender});
|
||||
bool isPhysicalExam = false;
|
||||
bool isProcedureExpand = false;
|
||||
bool isHistoryExpand = false;
|
||||
bool isAssessmentExpand = false;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return BaseView<MedicalFileViewModel>(
|
||||
//onModelReady: (model) => model.getMedicalFile(),
|
||||
builder:
|
||||
(BuildContext context, MedicalFileViewModel model, Widget child) =>
|
||||
AppScaffold(
|
||||
isShowAppBar: true,
|
||||
appBarTitle: 'medical file'.toUpperCase(),
|
||||
body: SingleChildScrollView(
|
||||
child: Container(
|
||||
child: Column(
|
||||
children: [
|
||||
Padding(
|
||||
padding: EdgeInsets.all(8.0),
|
||||
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,
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsets.all(10.0),
|
||||
child: Container(
|
||||
child: Column(
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
AppText(
|
||||
'Visit Date : ',
|
||||
fontWeight: FontWeight.w700,
|
||||
),
|
||||
AppText(
|
||||
'23/12/2020',
|
||||
),
|
||||
SizedBox(width: 35.0),
|
||||
AppText(
|
||||
'Appt Date : ',
|
||||
fontWeight: FontWeight.w700,
|
||||
),
|
||||
AppText(
|
||||
'23/12/2020',
|
||||
),
|
||||
],
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
AppText(
|
||||
'Doctor : '.toUpperCase(),
|
||||
fontWeight: FontWeight.w700,
|
||||
),
|
||||
AppText(
|
||||
'Muhammad assad'.toUpperCase(),
|
||||
fontWeight: FontWeight.w700,
|
||||
),
|
||||
],
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
AppText(
|
||||
'Clinic : ',
|
||||
fontWeight: FontWeight.w700,
|
||||
),
|
||||
AppText(
|
||||
'Gastroenterology',
|
||||
),
|
||||
],
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
AppText(
|
||||
'Episode Number : ',
|
||||
fontWeight: FontWeight.w700,
|
||||
),
|
||||
AppText(
|
||||
'200012334',
|
||||
),
|
||||
],
|
||||
),
|
||||
SizedBox(height: 15.0),
|
||||
Divider(
|
||||
height: 1.0,
|
||||
thickness: 1.0,
|
||||
color: Colors.grey.shade400,
|
||||
),
|
||||
SizedBox(height: 25.0),
|
||||
HeaderBodyExpandableNotifier(
|
||||
headerWidget: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
Texts(
|
||||
'History of present illness'
|
||||
.toUpperCase(),
|
||||
variant:
|
||||
isHistoryExpand ? "bodyText" : '',
|
||||
bold: isHistoryExpand ? true : false,
|
||||
color: Colors.black),
|
||||
],
|
||||
),
|
||||
InkWell(
|
||||
onTap: () {
|
||||
setState(() {
|
||||
isHistoryExpand = !isHistoryExpand;
|
||||
});
|
||||
},
|
||||
child: Icon(isHistoryExpand
|
||||
? EvaIcons.minus
|
||||
: EvaIcons.plus))
|
||||
],
|
||||
),
|
||||
bodyWidget: Column(
|
||||
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.')
|
||||
],
|
||||
),
|
||||
isExpand: isHistoryExpand,
|
||||
),
|
||||
SizedBox(
|
||||
height: 30,
|
||||
),
|
||||
Container(
|
||||
width: double.infinity,
|
||||
height: 1,
|
||||
color: Color(0xffCCCCCC),
|
||||
),
|
||||
SizedBox(
|
||||
height: 30,
|
||||
),
|
||||
HeaderBodyExpandableNotifier(
|
||||
headerWidget: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
Texts('assessment'.toUpperCase(),
|
||||
variant:
|
||||
isAssessmentExpand ? "bodyText" : '',
|
||||
bold: isAssessmentExpand ? true : false,
|
||||
color: Colors.black),
|
||||
],
|
||||
),
|
||||
InkWell(
|
||||
onTap: () {
|
||||
setState(() {
|
||||
isAssessmentExpand = !isAssessmentExpand;
|
||||
});
|
||||
},
|
||||
child: Icon(isAssessmentExpand
|
||||
? EvaIcons.minus
|
||||
: EvaIcons.plus))
|
||||
],
|
||||
),
|
||||
bodyWidget: Column(
|
||||
children: [
|
||||
Texts('ssss'),
|
||||
],
|
||||
),
|
||||
isExpand: isAssessmentExpand,
|
||||
),
|
||||
SizedBox(
|
||||
height: 30,
|
||||
),
|
||||
Container(
|
||||
width: double.infinity,
|
||||
height: 1,
|
||||
color: Color(0xffCCCCCC),
|
||||
),
|
||||
SizedBox(
|
||||
height: 30,
|
||||
),
|
||||
HeaderBodyExpandableNotifier(
|
||||
headerWidget: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
Texts('Test / procedures'.toUpperCase(),
|
||||
variant:
|
||||
isProcedureExpand ? "bodyText" : '',
|
||||
bold: isProcedureExpand ? true : false,
|
||||
color: Colors.black),
|
||||
],
|
||||
),
|
||||
InkWell(
|
||||
onTap: () {
|
||||
setState(() {
|
||||
isProcedureExpand = !isProcedureExpand;
|
||||
});
|
||||
},
|
||||
child: Icon(isProcedureExpand
|
||||
? EvaIcons.minus
|
||||
: EvaIcons.plus))
|
||||
],
|
||||
),
|
||||
bodyWidget: Column(
|
||||
children: [
|
||||
SizedBox(
|
||||
height: 20.0,
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
AppText(
|
||||
'Exam Type : ',
|
||||
fontWeight: FontWeight.w700,
|
||||
),
|
||||
AppText(
|
||||
'59',
|
||||
),
|
||||
],
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
AppText(
|
||||
'ABDOMEN',
|
||||
fontWeight: FontWeight.w700,
|
||||
),
|
||||
],
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
AppText(
|
||||
'Abnormal: ',
|
||||
fontWeight: FontWeight.w700,
|
||||
),
|
||||
AppText(
|
||||
'no',
|
||||
),
|
||||
],
|
||||
),
|
||||
SizedBox(height: 15.0),
|
||||
Row(
|
||||
children: [
|
||||
AppText(
|
||||
'Some short remark about the allergy',
|
||||
fontWeight: FontWeight.w300,
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
isExpand: isProcedureExpand,
|
||||
),
|
||||
SizedBox(
|
||||
height: 30,
|
||||
),
|
||||
Container(
|
||||
width: double.infinity,
|
||||
height: 1,
|
||||
color: Color(0xffCCCCCC),
|
||||
),
|
||||
SizedBox(
|
||||
height: 30,
|
||||
),
|
||||
HeaderBodyExpandableNotifier(
|
||||
headerWidget: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
Texts('physical exam'.toUpperCase(),
|
||||
variant: isPhysicalExam ? "bodyText" : '',
|
||||
bold: isPhysicalExam ? true : false,
|
||||
color: Colors.black),
|
||||
],
|
||||
),
|
||||
InkWell(
|
||||
onTap: () {
|
||||
setState(() {
|
||||
isPhysicalExam = !isPhysicalExam;
|
||||
});
|
||||
},
|
||||
child: Icon(isPhysicalExam
|
||||
? EvaIcons.minus
|
||||
: EvaIcons.plus))
|
||||
],
|
||||
),
|
||||
bodyWidget: Column(
|
||||
children: [
|
||||
SizedBox(
|
||||
height: 20.0,
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
AppText(
|
||||
'Exam Type : ',
|
||||
fontWeight: FontWeight.w700,
|
||||
),
|
||||
AppText(
|
||||
'59',
|
||||
),
|
||||
],
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
AppText(
|
||||
'ABDOMEN',
|
||||
fontWeight: FontWeight.w700,
|
||||
),
|
||||
],
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
AppText(
|
||||
'Abnormal: ',
|
||||
fontWeight: FontWeight.w700,
|
||||
),
|
||||
AppText(
|
||||
'no',
|
||||
),
|
||||
],
|
||||
),
|
||||
SizedBox(height: 15.0),
|
||||
Row(
|
||||
children: [
|
||||
AppText(
|
||||
'Some short remark about the allergy',
|
||||
fontWeight: FontWeight.w300,
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
isExpand: isPhysicalExam,
|
||||
),
|
||||
SizedBox(
|
||||
height: 30,
|
||||
),
|
||||
Container(
|
||||
width: double.infinity,
|
||||
height: 1,
|
||||
color: Color(0xffCCCCCC),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
@ -0,0 +1,173 @@
|
||||
import 'package:doctor_app_flutter/core/viewModel/medical_file_view_model.dart';
|
||||
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/screens/base/base_view.dart';
|
||||
import 'package:doctor_app_flutter/screens/medical-file/medical_file_details.dart';
|
||||
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
||||
import 'package:doctor_app_flutter/widgets/patients/profile/patient_profile_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/network_base_view.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class MedicalFilePage extends StatefulWidget {
|
||||
@override
|
||||
_MedicalFilePageState createState() => _MedicalFilePageState();
|
||||
}
|
||||
|
||||
class _MedicalFilePageState extends State<MedicalFilePage> {
|
||||
PatiantInformtion patient;
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final routeArgs = ModalRoute.of(context).settings.arguments as Map;
|
||||
patient = routeArgs['patient'];
|
||||
return BaseView<MedicalFileViewModel>(
|
||||
onModelReady: (model) => model.getMedicalFile(),
|
||||
builder:
|
||||
(BuildContext context, MedicalFileViewModel model, Widget child) =>
|
||||
AppScaffold(
|
||||
isShowAppBar: true,
|
||||
appBarTitle: 'medical Report'.toUpperCase(),
|
||||
body: NetworkBaseView(
|
||||
baseViewModel: model,
|
||||
child: Container(
|
||||
child: Column(
|
||||
children: [
|
||||
Padding(
|
||||
padding: EdgeInsets.all(8.0),
|
||||
child: Row(
|
||||
children: <Widget>[
|
||||
AvatarWidget(
|
||||
Icon(
|
||||
patient.genderDescription == "Male"
|
||||
? DoctorApp.male
|
||||
: DoctorApp.female_icon,
|
||||
size: 70,
|
||||
color: Colors.white,
|
||||
),
|
||||
),
|
||||
SizedBox(
|
||||
width: 20,
|
||||
),
|
||||
Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
AppText(
|
||||
patient.firstName + ' ' + patient.lastName,
|
||||
color: Colors.black,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
AppText(
|
||||
TranslationBase.of(context).fileNo,
|
||||
color: Colors.black,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
SizedBox(
|
||||
width: 5.0,
|
||||
),
|
||||
AppText(
|
||||
patient.age.toString(),
|
||||
color: Colors.black,
|
||||
fontWeight: FontWeight.normal,
|
||||
),
|
||||
],
|
||||
),
|
||||
AppText(
|
||||
"ALLERGIC TO: FOOD, ASPIRIN",
|
||||
color: Color(0xFFB9382C),
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
],
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
Divider(
|
||||
height: 1.0,
|
||||
thickness: 1.0,
|
||||
color: Colors.grey,
|
||||
),
|
||||
ListView.builder(
|
||||
scrollDirection: Axis.vertical,
|
||||
shrinkWrap: true,
|
||||
itemCount: 2,
|
||||
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(
|
||||
'Branch : ',
|
||||
fontWeight: FontWeight.w700,
|
||||
),
|
||||
AppText(
|
||||
model.medicalFileList[0].entityList[0]
|
||||
.admissions[index].projectName,
|
||||
),
|
||||
],
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
AppText(
|
||||
'Doctor : '.toUpperCase(),
|
||||
fontWeight: FontWeight.w700,
|
||||
),
|
||||
AppText(
|
||||
model.medicalFileList[0].entityList[0]
|
||||
.admissions[index].doctor
|
||||
.toUpperCase(),
|
||||
fontWeight: FontWeight.w700,
|
||||
),
|
||||
],
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
AppText(
|
||||
'Clinic : ',
|
||||
fontWeight: FontWeight.w700,
|
||||
),
|
||||
AppText(
|
||||
model.medicalFileList[0].entityList[0]
|
||||
.admissions[index].clinic,
|
||||
),
|
||||
],
|
||||
),
|
||||
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,
|
||||
)),
|
||||
);
|
||||
},
|
||||
),
|
||||
);
|
||||
})
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue