|
|
|
|
@ -1,14 +1,10 @@
|
|
|
|
|
import 'package:doctor_app_flutter/core/viewModel/medical_file_view_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/viewModel/project_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/patients/profile/patient_profile_screen.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/util/date-utils.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/util/helpers.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/patients/profile/patient-profile-header-new-design-app-bar.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/patients/profile/patient-profile-header-new-design.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/patients/profile/patient_profile_header_with_appointment_card_app_bar.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/Text.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart';
|
|
|
|
|
@ -100,7 +96,11 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
ProjectViewModel projectViewModel = Provider.of(context);
|
|
|
|
|
return BaseView<MedicalFileViewModel>(
|
|
|
|
|
onModelReady: (model) => model.getMedicalFile(mrn: pp),
|
|
|
|
|
onModelReady: (model) async {
|
|
|
|
|
if (model.medicalFileList.length == 0) {
|
|
|
|
|
model.getMedicalFile(mrn: pp);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
builder:
|
|
|
|
|
(BuildContext context, MedicalFileViewModel model, Widget child) =>
|
|
|
|
|
AppScaffold(
|
|
|
|
|
@ -128,8 +128,6 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
|
child: Container(
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
// PatientProfileHeaderNewDesign(patient,
|
|
|
|
|
// patient.patientType.toString(), patient.arrivedOn),
|
|
|
|
|
model.medicalFileList.length != 0 &&
|
|
|
|
|
model
|
|
|
|
|
.medicalFileList[0]
|
|
|
|
|
@ -144,161 +142,6 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
|
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(
|
|
|
|
|
// children: [
|
|
|
|
|
// 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)
|
|
|
|
|
// Row(
|
|
|
|
|
// children: [
|
|
|
|
|
// AppText(
|
|
|
|
|
// TranslationBase.of(context)
|
|
|
|
|
// .clinic +
|
|
|
|
|
// ": ",
|
|
|
|
|
// ),
|
|
|
|
|
// 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,
|
|
|
|
|
// fontWeight: FontWeight.w700,
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// 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[0]
|
|
|
|
|
// .episodeID
|
|
|
|
|
// .toString(),
|
|
|
|
|
// fontWeight: FontWeight.w700,
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// 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(
|
|
|
|
|
// '${DateUtils.getDayMonthYearDateFormatted(DateUtils.getDateTimeFromServerFormat(
|
|
|
|
|
// model
|
|
|
|
|
// .medicalFileList[0]
|
|
|
|
|
// .entityList[0]
|
|
|
|
|
// .timelines[
|
|
|
|
|
// encounterNumber]
|
|
|
|
|
// .date,
|
|
|
|
|
// ), isArabic: projectViewModel.isArabic)}',
|
|
|
|
|
// color: Colors.black,
|
|
|
|
|
// fontWeight: FontWeight.w700,
|
|
|
|
|
// fontSize: 14,
|
|
|
|
|
// ),
|
|
|
|
|
// SizedBox(width: 35.0),
|
|
|
|
|
// // AppText(
|
|
|
|
|
// // 'Appt Date : ',
|
|
|
|
|
// // fontWeight: FontWeight.w700,
|
|
|
|
|
// // ),
|
|
|
|
|
// // AppText(
|
|
|
|
|
// // '23/12/2020',
|
|
|
|
|
// // ),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
|
|
SizedBox(height: 25.0),
|
|
|
|
|
if (model.medicalFileList.length != 0 &&
|
|
|
|
|
model
|
|
|
|
|
@ -655,14 +498,7 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
// SizedBox(
|
|
|
|
|
// height: 30,
|
|
|
|
|
// ),
|
|
|
|
|
// Container(
|
|
|
|
|
// width: double.infinity,
|
|
|
|
|
// height: 1,
|
|
|
|
|
// color: Color(0xffCCCCCC),
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 30,
|
|
|
|
|
),
|
|
|
|
|
@ -889,14 +725,7 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
// SizedBox(
|
|
|
|
|
// height: 30,
|
|
|
|
|
// ),
|
|
|
|
|
// Container(
|
|
|
|
|
// width: double.infinity,
|
|
|
|
|
// height: 1,
|
|
|
|
|
// color: Color(0xffCCCCCC),
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 30,
|
|
|
|
|
),
|
|
|
|
|
@ -1086,11 +915,6 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 30,
|
|
|
|
|
),
|
|
|
|
|
// Container(
|
|
|
|
|
// width: double.infinity,
|
|
|
|
|
// height: 1,
|
|
|
|
|
// color: Color(0xffCCCCCC),
|
|
|
|
|
// ),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|