|
|
@ -76,8 +76,10 @@ class ReferredPatientDetailScreen extends StatelessWidget {
|
|
|
|
"patientType": "1",
|
|
|
|
"patientType": "1",
|
|
|
|
"isInpatient": true,
|
|
|
|
"isInpatient": true,
|
|
|
|
"arrivalType": "1",
|
|
|
|
"arrivalType": "1",
|
|
|
|
"from": DateUtils.convertDateToFormat(DateTime.now(), 'yyyy-MM-dd'),
|
|
|
|
"from": DateUtils.convertDateToFormat(
|
|
|
|
"to": DateUtils.convertDateToFormat(DateTime.now(), 'yyyy-MM-dd'),
|
|
|
|
DateTime.now(), 'yyyy-MM-dd'),
|
|
|
|
|
|
|
|
"to": DateUtils.convertDateToFormat(
|
|
|
|
|
|
|
|
DateTime.now(), 'yyyy-MM-dd'),
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
child: Icon(
|
|
|
|
child: Icon(
|
|
|
@ -90,17 +92,47 @@ class ReferredPatientDetailScreen extends StatelessWidget {
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Padding(
|
|
|
|
InkWell(
|
|
|
|
padding: EdgeInsets.only(left: 12.0),
|
|
|
|
onTap: (){
|
|
|
|
child: Container(
|
|
|
|
PatiantInformtion patient =
|
|
|
|
width: 60,
|
|
|
|
model.getPatientFromReferral(referredPatient);
|
|
|
|
height: 60,
|
|
|
|
Navigator.of(context)
|
|
|
|
child: Image.asset(
|
|
|
|
.pushNamed(PATIENTS_PROFILE, arguments: {
|
|
|
|
referredPatient.gender == 1
|
|
|
|
"patient": patient,
|
|
|
|
? 'assets/images/male_avatar.png'
|
|
|
|
"patientType": "1",
|
|
|
|
: 'assets/images/female_avatar.png',
|
|
|
|
"isInpatient": true,
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
"arrivalType": "1",
|
|
|
|
),
|
|
|
|
"from": DateUtils.convertDateToFormat(
|
|
|
|
|
|
|
|
DateTime.now(), 'yyyy-MM-dd'),
|
|
|
|
|
|
|
|
"to": DateUtils.convertDateToFormat(
|
|
|
|
|
|
|
|
DateTime.now(), 'yyyy-MM-dd'),
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
child: Column(
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
Padding(
|
|
|
|
|
|
|
|
padding: EdgeInsets.only(left: 12.0),
|
|
|
|
|
|
|
|
child: Container(
|
|
|
|
|
|
|
|
width: 60,
|
|
|
|
|
|
|
|
height: 60,
|
|
|
|
|
|
|
|
child: Image.asset(
|
|
|
|
|
|
|
|
referredPatient.gender == 1
|
|
|
|
|
|
|
|
? 'assets/images/male_avatar.png'
|
|
|
|
|
|
|
|
: 'assets/images/female_avatar.png',
|
|
|
|
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
SizedBox(
|
|
|
|
|
|
|
|
height: 20,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
AppText(
|
|
|
|
|
|
|
|
TranslationBase.of(context).showDetail,
|
|
|
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
|
|
|
fontSize: 1.7 * SizeConfig.textMultiplier,
|
|
|
|
|
|
|
|
color: Colors.blue,
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
SizedBox(
|
|
|
@ -148,14 +180,15 @@ class ReferredPatientDetailScreen extends StatelessWidget {
|
|
|
|
.fileNumber,
|
|
|
|
.fileNumber,
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontSize: 1.7 * SizeConfig.textMultiplier,
|
|
|
|
fontSize:
|
|
|
|
|
|
|
|
1.7 * SizeConfig.textMultiplier,
|
|
|
|
color: Color(0XFF575757),
|
|
|
|
color: Color(0XFF575757),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
AppText(
|
|
|
|
AppText(
|
|
|
|
"${referredPatient.patientID}",
|
|
|
|
"${referredPatient.patientID}",
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
fontSize:14,
|
|
|
|
fontSize: 14,
|
|
|
|
color: Color(0XFF2E303A),
|
|
|
|
color: Color(0XFF2E303A),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
@ -284,7 +317,7 @@ class ReferredPatientDetailScreen extends StatelessWidget {
|
|
|
|
referredPatient.priorityDescription,
|
|
|
|
referredPatient.priorityDescription,
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
fontSize:14,
|
|
|
|
fontSize: 14,
|
|
|
|
color: Color(0XFF2E303A),
|
|
|
|
color: Color(0XFF2E303A),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
@ -382,7 +415,8 @@ class ReferredPatientDetailScreen extends StatelessWidget {
|
|
|
|
color: Colors.black,
|
|
|
|
color: Colors.black,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
AppText(
|
|
|
|
AppText(
|
|
|
|
referredPatient.referralClinicDescription,
|
|
|
|
referredPatient
|
|
|
|
|
|
|
|
.referralClinicDescription,
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
fontSize: 1.3 *
|
|
|
|
fontSize: 1.3 *
|
|
|
@ -480,7 +514,10 @@ class ReferredPatientDetailScreen extends StatelessWidget {
|
|
|
|
color: Color(0XFF2E303A),
|
|
|
|
color: Color(0XFF2E303A),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
AppText(
|
|
|
|
AppText(
|
|
|
|
referredPatient.referredDoctorRemarks.isNotEmpty? referredPatient.referredDoctorRemarks:" Not Replied yet",
|
|
|
|
referredPatient
|
|
|
|
|
|
|
|
.referredDoctorRemarks.isNotEmpty
|
|
|
|
|
|
|
|
? referredPatient.referredDoctorRemarks
|
|
|
|
|
|
|
|
: " Not Replied yet",
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontSize: 1.6 * SizeConfig.textMultiplier,
|
|
|
|
fontSize: 1.6 * SizeConfig.textMultiplier,
|
|
|
@ -496,28 +533,31 @@ class ReferredPatientDetailScreen extends StatelessWidget {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
if(referredPatient.referralStatus ==1)
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 16, vertical: 16),
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 16, vertical: 16),
|
|
|
|
child: AppButton(
|
|
|
|
child: AppButton(
|
|
|
|
title: TranslationBase.of(context).acknowledged,
|
|
|
|
title: TranslationBase.of(context).acknowledged,
|
|
|
|
color: Colors.red[700],
|
|
|
|
color: Colors.red[700],
|
|
|
|
fontColor: Colors.white,
|
|
|
|
fontColor: Colors.white,
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
fontSize: 1.8,
|
|
|
|
fontSize: 1.8,
|
|
|
|
hPadding: 8,
|
|
|
|
hPadding: 8,
|
|
|
|
vPadding: 12,
|
|
|
|
vPadding: 12,
|
|
|
|
disabled: referredPatient.referredDoctorRemarks.isNotEmpty
|
|
|
|
onPressed: () async {
|
|
|
|
? false
|
|
|
|
await model.verifyReferralDoctorRemarks(referredPatient);
|
|
|
|
: true,
|
|
|
|
if (model.state == ViewState.ErrorLocal) {
|
|
|
|
onPressed: () async {
|
|
|
|
DrAppToastMsg.showErrorToast(model.error);
|
|
|
|
await model.verifyReferralDoctorRemarks(referredPatient);
|
|
|
|
} else {
|
|
|
|
if (model.state == ViewState.ErrorLocal) {
|
|
|
|
DrAppToastMsg.showSuccesToast("Referral is acknowledged");
|
|
|
|
DrAppToastMsg.showErrorToast(model.error);
|
|
|
|
Navigator.pop(context);
|
|
|
|
} else {
|
|
|
|
}
|
|
|
|
DrAppToastMsg.showSuccesToast(
|
|
|
|
},
|
|
|
|
"Referral is acknowledged");
|
|
|
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|