Merge branch 'fix-issues' into 'development'

hussam

See merge request Cloud_Solution/doctor_app_flutter!350
merge-requests/351/merge
Mohammad Aljammal 5 years ago
commit 4122b80969

@ -70,7 +70,9 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
body: NetworkBaseView(
baseViewModel: model,
child: SingleChildScrollView(
child: Center(
child: Container(
color: Colors.white,
child: Column(
children: [
Padding(
@ -207,7 +209,8 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
Row(
children: [
AppText(
TranslationBase.of(context).clinicName +
TranslationBase.of(context)
.clinicName +
": ",
fontWeight: FontWeight.w700,
),
@ -338,7 +341,8 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
.entityList[0]
.timelines[
encounterNumber]
.timeLineEvents[0]
.timeLineEvents[
0]
.consulations[0]
.lstCheifComplaint[
index]
@ -438,7 +442,8 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
),
AppText(
model
.medicalFileList[0]
.medicalFileList[
0]
.entityList[0]
.timelines[
encounterNumber]
@ -457,7 +462,8 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
),
AppText(
model
.medicalFileList[0]
.medicalFileList[
0]
.entityList[0]
.timelines[
encounterNumber]
@ -474,7 +480,8 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
children: [
AppText(
model
.medicalFileList[0]
.medicalFileList[
0]
.entityList[0]
.timelines[
encounterNumber]
@ -502,7 +509,8 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
encounterNumber]
.timeLineEvents[0]
.consulations[0]
.lstAssessments[index]
.lstAssessments[
index]
.type),
],
),
@ -589,7 +597,8 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
],
),
bodyWidget: ListView.builder(
physics: NeverScrollableScrollPhysics(),
physics:
NeverScrollableScrollPhysics(),
scrollDirection: Axis.vertical,
shrinkWrap: true,
itemCount: model
@ -618,13 +627,15 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
),
AppText(
model
.medicalFileList[0]
.medicalFileList[
0]
.entityList[0]
.timelines[
encounterNumber]
.timeLineEvents[0]
.consulations[0]
.lstProcedure[index]
.lstProcedure[
index]
.procedureId
.trim(),
),
@ -642,7 +653,8 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
.entityList[0]
.timelines[
encounterNumber]
.timeLineEvents[0]
.timeLineEvents[
0]
.consulations[0]
.lstProcedure[
index]
@ -662,7 +674,8 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
.entityList[0]
.timelines[
encounterNumber]
.timeLineEvents[0]
.timeLineEvents[
0]
.consulations[0]
.lstProcedure[
index]
@ -763,7 +776,8 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
],
),
bodyWidget: ListView.builder(
physics: NeverScrollableScrollPhysics(),
physics:
NeverScrollableScrollPhysics(),
scrollDirection: Axis.vertical,
shrinkWrap: true,
itemCount: model
@ -804,7 +818,8 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
children: [
AppText(
model
.medicalFileList[0]
.medicalFileList[
0]
.entityList[0]
.timelines[
encounterNumber]
@ -848,7 +863,8 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
encounterNumber]
.timeLineEvents[0]
.consulations[0]
.lstPhysicalExam[index]
.lstPhysicalExam[
index]
.remarks,
),
Divider(
@ -885,6 +901,7 @@ class _MedicalFileDetailsState extends State<MedicalFileDetails> {
),
),
),
),
);
}
}

@ -31,7 +31,9 @@ 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
@ -64,7 +66,8 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
Row(
children: [
AppText(
TranslationBase.of(context).branch +
TranslationBase.of(context)
.branch +
": ",
fontWeight: FontWeight.w700,
),
@ -131,7 +134,8 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
age: patient.age,
firstName: patient.firstName,
lastName: patient.lastName,
gender: patient.genderDescription,
gender:
patient.genderDescription,
encounterNumber: index,
pp: patient.patientId,
)),
@ -153,6 +157,7 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
),
),
),
),
);
}
}

@ -35,7 +35,7 @@ class _NewPrescriptionScreenState extends State<NewPrescriptionScreen> {
final routeArgs = ModalRoute.of(context).settings.arguments as Map;
patient = routeArgs['patient'];
return BaseView<PrescriptionViewModel>(
onModelReady: (model) => model.getPrescription(mrn: patient.patientMRN),
onModelReady: (model) => model.getPrescription(mrn: 0),
builder:
(BuildContext context, PrescriptionViewModel model, Widget child) =>
AppScaffold(
@ -45,6 +45,7 @@ class _NewPrescriptionScreenState extends State<NewPrescriptionScreen> {
baseViewModel: model,
child: SingleChildScrollView(
child: Container(
color: Colors.white,
child: Column(
children: [
PatientPageHeaderWidget(patient),
@ -135,6 +136,7 @@ class _NewPrescriptionScreenState extends State<NewPrescriptionScreen> {
height: 50.0,
width: 450.0,
decoration: BoxDecoration(
color: Colors.white,
border: Border.all(
color: Colors.grey),
borderRadius:
@ -174,12 +176,13 @@ class _NewPrescriptionScreenState extends State<NewPrescriptionScreen> {
},
),
SizedBox(
height: 15.0,
height: 10.0,
),
...List.generate(
model.prescriptionList[0]
.rowcount,
(index) => Container(
color: Colors.white,
child: Column(
children: [
SizedBox(
@ -197,6 +200,7 @@ class _NewPrescriptionScreenState extends State<NewPrescriptionScreen> {
// CrossAxisAlignment.start,
children: [
Container(
color: Colors.white,
height: MediaQuery.of(
context)
.size
@ -260,6 +264,7 @@ class _NewPrescriptionScreenState extends State<NewPrescriptionScreen> {
),
),
Container(
color: Colors.white,
// height: MediaQuery.of(
// context)
// .size
@ -324,6 +329,8 @@ class _NewPrescriptionScreenState extends State<NewPrescriptionScreen> {
Row(
children: [
Container(
color: Colors
.white,
child:
Expanded(
child:
@ -533,6 +540,8 @@ class _NewPrescriptionScreenState extends State<NewPrescriptionScreen> {
Expanded(
child:
Container(
color: Colors
.white,
// height: MediaQuery.of(context).size.height *
// 0.038,
child:
@ -567,6 +576,7 @@ class _NewPrescriptionScreenState extends State<NewPrescriptionScreen> {
),
),
Container(
color: Colors.white,
height: MediaQuery.of(
context)
.size

@ -47,6 +47,7 @@ class _NewPrescriptionHistoryScreenState
baseViewModel: model,
child: SingleChildScrollView(
child: Container(
color: Colors.white,
child: Column(
children: [
PatientPageHeaderWidget(patient),
@ -83,6 +84,7 @@ class _NewPrescriptionHistoryScreenState
model.prescriptionList[0]
.rowcount,
(index) => Container(
color: Colors.white,
child: Column(
children: [
SizedBox(

@ -34,7 +34,7 @@ class _ProcedureScreenState extends State<ProcedureScreen> {
final routeArgs = ModalRoute.of(context).settings.arguments as Map;
patient = routeArgs['patient'];
return BaseView<ProcedureViewModel>(
onModelReady: (model) => model.getProcedure(mrn: patient.patientMRN),
onModelReady: (model) => model.getProcedure(mrn: 0),
builder: (BuildContext context, ProcedureViewModel model, Widget child) =>
AppScaffold(
isShowAppBar: true,
@ -43,6 +43,7 @@ class _ProcedureScreenState extends State<ProcedureScreen> {
baseViewModel: model,
child: SingleChildScrollView(
child: Container(
color: Colors.white,
child: Column(
children: [
PatientPageHeaderWidget(patient),
@ -130,6 +131,7 @@ class _ProcedureScreenState extends State<ProcedureScreen> {
height: 50.0,
width: 450.0,
decoration: BoxDecoration(
color: Colors.white,
border: Border.all(
color: Colors.grey),
borderRadius:
@ -189,11 +191,12 @@ class _ProcedureScreenState extends State<ProcedureScreen> {
// ),
// ),
SizedBox(
height: 35.0,
height: 10.0,
),
...List.generate(
model.procedureList[0].rowcount,
(index) => Container(
color: Colors.white,
child: Column(
children: [
SizedBox(

@ -17,7 +17,6 @@ import '../../../config/size_config.dart';
import '../../shared/app_texts_widget.dart';
class ProfileMedicalInfoWidget extends StatelessWidget {
String from;
String to;
PatiantInformtion patient;
@ -132,7 +131,7 @@ class ProfileMedicalInfoWidget extends StatelessWidget {
? PatientProfileButton(
key: key,
patient: patient,
route: ORDER_PRESCRIPTION,
route: ORDER_PRESCRIPTION_HISTORY,
nameLine1: TranslationBase.of(context).orders,
nameLine2: TranslationBase.of(context).prescription,
icon: 'lab.png')

Loading…
Cancel
Save