|
|
|
|
@ -12,14 +12,12 @@ import 'package:url_launcher/url_launcher.dart';
|
|
|
|
|
|
|
|
|
|
import 'large_avatar.dart';
|
|
|
|
|
|
|
|
|
|
class PatientProfileAppBar extends StatelessWidget
|
|
|
|
|
with PreferredSizeWidget {
|
|
|
|
|
class PatientProfileAppBar extends StatelessWidget with PreferredSizeWidget {
|
|
|
|
|
final PatientProfileAppBarModel patientProfileAppBarModel;
|
|
|
|
|
final bool isFromLabResult;
|
|
|
|
|
final VoidCallback? onPressed;
|
|
|
|
|
|
|
|
|
|
PatientProfileAppBar(
|
|
|
|
|
{required this.patientProfileAppBarModel, this.isFromLabResult=false, this.onPressed});
|
|
|
|
|
PatientProfileAppBar({required this.patientProfileAppBarModel, this.isFromLabResult = false, this.onPressed});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
@ -53,23 +51,18 @@ class PatientProfileAppBar extends StatelessWidget
|
|
|
|
|
icon: Icon(Icons.arrow_back_ios),
|
|
|
|
|
color: Color(0xFF2B353E), //Colors.black,
|
|
|
|
|
onPressed: () {
|
|
|
|
|
if(onPressed!=null)
|
|
|
|
|
onPressed!();
|
|
|
|
|
if (onPressed != null) onPressed!();
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: AppText(
|
|
|
|
|
patientProfileAppBarModel.patient!.firstName != null
|
|
|
|
|
? (Helpers.capitalize(
|
|
|
|
|
patientProfileAppBarModel.patient!.firstName) +
|
|
|
|
|
? (Helpers.capitalize(patientProfileAppBarModel.patient!.firstName) +
|
|
|
|
|
" " +
|
|
|
|
|
Helpers.capitalize(
|
|
|
|
|
patientProfileAppBarModel.patient!.lastName))
|
|
|
|
|
: Helpers.capitalize(
|
|
|
|
|
patientProfileAppBarModel.patient!.fullName ??
|
|
|
|
|
patientProfileAppBarModel
|
|
|
|
|
.patient!.patientDetails!.fullName!),
|
|
|
|
|
Helpers.capitalize(patientProfileAppBarModel.patient!.lastName))
|
|
|
|
|
: Helpers.capitalize(patientProfileAppBarModel.patient!.fullName ??
|
|
|
|
|
patientProfileAppBarModel.patient!.patientDetails!.fullName!),
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.8,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
@ -89,8 +82,7 @@ class PatientProfileAppBar extends StatelessWidget
|
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 4),
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
launch("tel://" +
|
|
|
|
|
patientProfileAppBarModel.patient!.mobileNumber!);
|
|
|
|
|
launch("tel://" + patientProfileAppBarModel.patient!.mobileNumber!);
|
|
|
|
|
},
|
|
|
|
|
child: Icon(
|
|
|
|
|
Icons.phone,
|
|
|
|
|
@ -107,9 +99,7 @@ class PatientProfileAppBar extends StatelessWidget
|
|
|
|
|
width: 60,
|
|
|
|
|
height: 60,
|
|
|
|
|
child: Image.asset(
|
|
|
|
|
gender == 1
|
|
|
|
|
? 'assets/images/male_avatar.png'
|
|
|
|
|
: 'assets/images/female_avatar.png',
|
|
|
|
|
gender == 1 ? 'assets/images/male_avatar.png' : 'assets/images/female_avatar.png',
|
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -126,9 +116,7 @@ class PatientProfileAppBar extends StatelessWidget
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
patientProfileAppBarModel
|
|
|
|
|
.patient!.patientStatusType ==
|
|
|
|
|
43
|
|
|
|
|
patientProfileAppBarModel.patient!.patientStatusType == 43
|
|
|
|
|
? AppText(
|
|
|
|
|
TranslationBase.of(context).arrivedP,
|
|
|
|
|
color: Colors.green,
|
|
|
|
|
@ -143,14 +131,10 @@ class PatientProfileAppBar extends StatelessWidget
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
),
|
|
|
|
|
patientProfileAppBarModel.patient!.startTime !=
|
|
|
|
|
null
|
|
|
|
|
patientProfileAppBarModel.patient!.startTime != null
|
|
|
|
|
? AppText(
|
|
|
|
|
patientProfileAppBarModel
|
|
|
|
|
.patient!.startTime !=
|
|
|
|
|
null
|
|
|
|
|
? patientProfileAppBarModel
|
|
|
|
|
.patient!.startTime
|
|
|
|
|
patientProfileAppBarModel.patient!.startTime != null
|
|
|
|
|
? patientProfileAppBarModel.patient!.startTime
|
|
|
|
|
: '',
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
@ -165,9 +149,7 @@ class PatientProfileAppBar extends StatelessWidget
|
|
|
|
|
children: [
|
|
|
|
|
RichText(
|
|
|
|
|
text: TextSpan(
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 1.6 * SizeConfig.textMultiplier,
|
|
|
|
|
color: Colors.black),
|
|
|
|
|
style: TextStyle(fontSize: 1.6 * SizeConfig.textMultiplier, color: Colors.black),
|
|
|
|
|
children: <TextSpan>[
|
|
|
|
|
new TextSpan(
|
|
|
|
|
text: TranslationBase.of(context).fileNumber,
|
|
|
|
|
@ -179,9 +161,7 @@ class PatientProfileAppBar extends StatelessWidget
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
new TextSpan(
|
|
|
|
|
text: patientProfileAppBarModel
|
|
|
|
|
.patient!.patientId
|
|
|
|
|
.toString(),
|
|
|
|
|
text: patientProfileAppBarModel.patient!.patientId.toString(),
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
@ -195,27 +175,20 @@ class PatientProfileAppBar extends StatelessWidget
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
patientProfileAppBarModel.patient!.nationalityName ??
|
|
|
|
|
patientProfileAppBarModel
|
|
|
|
|
.patient!.nationality ??
|
|
|
|
|
patientProfileAppBarModel
|
|
|
|
|
.patient!.nationalityId ??
|
|
|
|
|
patientProfileAppBarModel.patient!.nationality ??
|
|
|
|
|
patientProfileAppBarModel.patient!.nationalityId ??
|
|
|
|
|
'',
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
),
|
|
|
|
|
patientProfileAppBarModel
|
|
|
|
|
.patient!.nationalityFlagURL !=
|
|
|
|
|
null
|
|
|
|
|
patientProfileAppBarModel.patient!.nationalityFlagURL != null
|
|
|
|
|
? ClipRRect(
|
|
|
|
|
borderRadius: BorderRadius.circular(20.0),
|
|
|
|
|
child: Image.network(
|
|
|
|
|
patientProfileAppBarModel
|
|
|
|
|
.patient!.nationalityFlagURL!,
|
|
|
|
|
patientProfileAppBarModel.patient!.nationalityFlagURL!,
|
|
|
|
|
height: 25,
|
|
|
|
|
width: 30,
|
|
|
|
|
errorBuilder: (BuildContext context,
|
|
|
|
|
Object exception,
|
|
|
|
|
StackTrace? stackTrace) {
|
|
|
|
|
errorBuilder: (BuildContext context, Object exception, StackTrace? stackTrace) {
|
|
|
|
|
return Text('No Image');
|
|
|
|
|
},
|
|
|
|
|
))
|
|
|
|
|
@ -253,10 +226,9 @@ class PatientProfileAppBar extends StatelessWidget
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
if (patientProfileAppBarModel.patient!.appointmentDate !=
|
|
|
|
|
null &&
|
|
|
|
|
patientProfileAppBarModel
|
|
|
|
|
.patient!.appointmentDate!.isNotEmpty && !isFromLabResult)
|
|
|
|
|
if (patientProfileAppBarModel.patient!.appointmentDate != null &&
|
|
|
|
|
patientProfileAppBarModel.patient!.appointmentDate!.isNotEmpty &&
|
|
|
|
|
!isFromLabResult)
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
@ -272,9 +244,7 @@ class PatientProfileAppBar extends StatelessWidget
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
AppDateUtils.getDayMonthYearDateFormatted(
|
|
|
|
|
AppDateUtils.convertStringToDate(
|
|
|
|
|
patientProfileAppBarModel
|
|
|
|
|
.patient!.appointmentDate!)),
|
|
|
|
|
AppDateUtils.convertStringToDate(patientProfileAppBarModel.patient!.appointmentDate!)),
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
|
@ -305,9 +275,7 @@ class PatientProfileAppBar extends StatelessWidget
|
|
|
|
|
new TextSpan(
|
|
|
|
|
text:
|
|
|
|
|
'${AppDateUtils.getDayMonthYearDateFormatted(patientProfileAppBarModel.appointmentDate!, isArabic: projectViewModel.isArabic)}',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
fontSize: 12)),
|
|
|
|
|
style: TextStyle(fontWeight: FontWeight.w700, fontSize: 12)),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -316,10 +284,8 @@ class PatientProfileAppBar extends StatelessWidget
|
|
|
|
|
Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
if (patientProfileAppBarModel.patient!.admissionDate !=
|
|
|
|
|
null &&
|
|
|
|
|
patientProfileAppBarModel
|
|
|
|
|
.patient!.admissionDate!.isNotEmpty)
|
|
|
|
|
if (patientProfileAppBarModel.patient!.admissionDate != null &&
|
|
|
|
|
patientProfileAppBarModel.patient!.admissionDate!.isNotEmpty)
|
|
|
|
|
Container(
|
|
|
|
|
child: RichText(
|
|
|
|
|
text: new TextSpan(
|
|
|
|
|
@ -331,18 +297,12 @@ class PatientProfileAppBar extends StatelessWidget
|
|
|
|
|
),
|
|
|
|
|
children: <TextSpan>[
|
|
|
|
|
new TextSpan(
|
|
|
|
|
text: patientProfileAppBarModel
|
|
|
|
|
.patient!.admissionDate ==
|
|
|
|
|
null
|
|
|
|
|
text: patientProfileAppBarModel.patient!.admissionDate == null
|
|
|
|
|
? ""
|
|
|
|
|
: TranslationBase.of(context)
|
|
|
|
|
.admissionDate! +
|
|
|
|
|
" : ",
|
|
|
|
|
: TranslationBase.of(context).admissionDate! + " : ",
|
|
|
|
|
style: TextStyle(fontSize: 10)),
|
|
|
|
|
new TextSpan(
|
|
|
|
|
text: patientProfileAppBarModel
|
|
|
|
|
.patient!.admissionDate ==
|
|
|
|
|
null
|
|
|
|
|
text: patientProfileAppBarModel.patient!.admissionDate == null
|
|
|
|
|
? ""
|
|
|
|
|
: "${AppDateUtils.getDayMonthYearDateFormatted((AppDateUtils.getDateTimeFromServerFormat(patientProfileAppBarModel.patient!.admissionDate.toString())))}",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
@ -351,20 +311,13 @@ class PatientProfileAppBar extends StatelessWidget
|
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
|
)),
|
|
|
|
|
]))),
|
|
|
|
|
if (patientProfileAppBarModel.patient!.admissionDate !=
|
|
|
|
|
null)
|
|
|
|
|
if (patientProfileAppBarModel.patient!.admissionDate != null)
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
"${TranslationBase.of(context).numOfDays}: ",
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
color: Color(0xFF575757)),
|
|
|
|
|
if (patientProfileAppBarModel!
|
|
|
|
|
.isDischargedPatient! &&
|
|
|
|
|
patientProfileAppBarModel
|
|
|
|
|
.patient!.dischargeDate !=
|
|
|
|
|
null)
|
|
|
|
|
AppText("${TranslationBase.of(context).numOfDays}: ",
|
|
|
|
|
fontSize: 10, fontWeight: FontWeight.w600, color: Color(0xFF575757)),
|
|
|
|
|
if (patientProfileAppBarModel.isDischargedPatient! &&
|
|
|
|
|
patientProfileAppBarModel.patient!.dischargeDate != null)
|
|
|
|
|
AppText(
|
|
|
|
|
"${AppDateUtils.getDateTimeFromServerFormat(patientProfileAppBarModel.patient!.dischargeDate!).difference(AppDateUtils.getDateTimeFromServerFormat(patientProfileAppBarModel.patient!.admissionDate!)).inDays + 1}",
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
@ -394,14 +347,11 @@ class PatientProfileAppBar extends StatelessWidget
|
|
|
|
|
width: 30,
|
|
|
|
|
height: 30,
|
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
|
left: projectViewModel.isArabic ? 10 : 85,
|
|
|
|
|
right: projectViewModel.isArabic ? 85 : 10,
|
|
|
|
|
top: 5),
|
|
|
|
|
left: projectViewModel.isArabic ? 10 : 85, right: projectViewModel.isArabic ? 85 : 10, top: 5),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
|
border: Border(
|
|
|
|
|
bottom:
|
|
|
|
|
BorderSide(color: Colors.grey[400]!, width: 2.5),
|
|
|
|
|
bottom: BorderSide(color: Colors.grey[400]!, width: 2.5),
|
|
|
|
|
left: BorderSide(color: Colors.grey[400]!, width: 2.5),
|
|
|
|
|
)),
|
|
|
|
|
),
|
|
|
|
|
@ -424,19 +374,15 @@ class PatientProfileAppBar extends StatelessWidget
|
|
|
|
|
flex: 5,
|
|
|
|
|
child: Container(
|
|
|
|
|
margin: EdgeInsets.all(10),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: <Widget>[
|
|
|
|
|
AppText(
|
|
|
|
|
'${TranslationBase.of(context).dr}${patientProfileAppBarModel.doctorName}',
|
|
|
|
|
color: Color(0xFF2E303A),
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
),
|
|
|
|
|
if (patientProfileAppBarModel.orderNo !=
|
|
|
|
|
null &&
|
|
|
|
|
!patientProfileAppBarModel
|
|
|
|
|
.isPrescriptions!)
|
|
|
|
|
if (patientProfileAppBarModel.orderNo != null &&
|
|
|
|
|
!patientProfileAppBarModel.isPrescriptions!)
|
|
|
|
|
Row(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
AppText(
|
|
|
|
|
@ -445,17 +391,11 @@ class PatientProfileAppBar extends StatelessWidget
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
color: Color(0xFF575757),
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
patientProfileAppBarModel
|
|
|
|
|
.orderNo ??
|
|
|
|
|
'',
|
|
|
|
|
fontSize: 12)
|
|
|
|
|
AppText(patientProfileAppBarModel.orderNo ?? '', fontSize: 12)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
if (patientProfileAppBarModel.invoiceNO !=
|
|
|
|
|
null &&
|
|
|
|
|
!patientProfileAppBarModel!
|
|
|
|
|
.isPrescriptions!)
|
|
|
|
|
if (patientProfileAppBarModel.invoiceNO != null &&
|
|
|
|
|
!patientProfileAppBarModel.isPrescriptions!)
|
|
|
|
|
Row(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
AppText(
|
|
|
|
|
@ -464,15 +404,10 @@ class PatientProfileAppBar extends StatelessWidget
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
color: Color(0xFF575757),
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
patientProfileAppBarModel
|
|
|
|
|
.invoiceNO ??
|
|
|
|
|
"",
|
|
|
|
|
fontSize: 12)
|
|
|
|
|
AppText(patientProfileAppBarModel.invoiceNO ?? "", fontSize: 12)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
if (patientProfileAppBarModel.branch !=
|
|
|
|
|
null)
|
|
|
|
|
if (patientProfileAppBarModel.branch != null)
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
@ -481,15 +416,10 @@ class PatientProfileAppBar extends StatelessWidget
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
color: Color(0xFF575757),
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
patientProfileAppBarModel
|
|
|
|
|
.branch ??
|
|
|
|
|
'',
|
|
|
|
|
fontSize: 12)
|
|
|
|
|
AppText(patientProfileAppBarModel.branch ?? '', fontSize: 12)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
if (patientProfileAppBarModel.clinic !=
|
|
|
|
|
null)
|
|
|
|
|
if (patientProfileAppBarModel.clinic != null)
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
@ -498,17 +428,11 @@ class PatientProfileAppBar extends StatelessWidget
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
color: Color(0xFF575757),
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
patientProfileAppBarModel
|
|
|
|
|
.clinic ??
|
|
|
|
|
'',
|
|
|
|
|
fontSize: 12)
|
|
|
|
|
AppText(patientProfileAppBarModel.clinic ?? '', fontSize: 12)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
if (patientProfileAppBarModel
|
|
|
|
|
.isMedicalFile! &&
|
|
|
|
|
patientProfileAppBarModel.episode !=
|
|
|
|
|
null)
|
|
|
|
|
if (patientProfileAppBarModel.isMedicalFile! &&
|
|
|
|
|
patientProfileAppBarModel.episode != null)
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
@ -517,17 +441,11 @@ class PatientProfileAppBar extends StatelessWidget
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
color: Color(0xFF575757),
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
patientProfileAppBarModel
|
|
|
|
|
.episode ??
|
|
|
|
|
'',
|
|
|
|
|
fontSize: 12)
|
|
|
|
|
AppText(patientProfileAppBarModel.episode ?? '', fontSize: 12)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
if (patientProfileAppBarModel
|
|
|
|
|
.isMedicalFile! &&
|
|
|
|
|
patientProfileAppBarModel.visitDate !=
|
|
|
|
|
null)
|
|
|
|
|
if (patientProfileAppBarModel.isMedicalFile! &&
|
|
|
|
|
patientProfileAppBarModel.visitDate != null)
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
@ -536,20 +454,14 @@ class PatientProfileAppBar extends StatelessWidget
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
color: Color(0xFF575757),
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
patientProfileAppBarModel
|
|
|
|
|
.visitDate ??
|
|
|
|
|
'',
|
|
|
|
|
fontSize: 12)
|
|
|
|
|
AppText(patientProfileAppBarModel.visitDate ?? '', fontSize: 12)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
if (!patientProfileAppBarModel
|
|
|
|
|
.isMedicalFile!)
|
|
|
|
|
if (!patientProfileAppBarModel.isMedicalFile!)
|
|
|
|
|
Row(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
AppText(
|
|
|
|
|
!patientProfileAppBarModel
|
|
|
|
|
.isPrescriptions!
|
|
|
|
|
!patientProfileAppBarModel.isPrescriptions!
|
|
|
|
|
? 'Result Date:'
|
|
|
|
|
: 'Prescriptions Date ',
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
@ -583,12 +495,16 @@ class PatientProfileAppBar extends StatelessWidget
|
|
|
|
|
patientProfileAppBarModel.height == 0
|
|
|
|
|
? patientProfileAppBarModel.isAppointmentHeader!
|
|
|
|
|
? 270
|
|
|
|
|
: ((patientProfileAppBarModel.patient!.appointmentDate! != null &&patientProfileAppBarModel.patient!.appointmentDate!.isNotEmpty )
|
|
|
|
|
? patientProfileAppBarModel.isFromLabResult!?170:150
|
|
|
|
|
: ((patientProfileAppBarModel.patient!.appointmentDate!.isNotEmpty)
|
|
|
|
|
? patientProfileAppBarModel.isFromLabResult!
|
|
|
|
|
? 170
|
|
|
|
|
: 150
|
|
|
|
|
: patientProfileAppBarModel.patient!.admissionDate != null
|
|
|
|
|
? patientProfileAppBarModel.isFromLabResult!?170:150
|
|
|
|
|
? patientProfileAppBarModel.isFromLabResult!
|
|
|
|
|
? 170
|
|
|
|
|
: 150
|
|
|
|
|
: patientProfileAppBarModel.isDischargedPatient!
|
|
|
|
|
? 240!
|
|
|
|
|
: 130!)
|
|
|
|
|
? 240
|
|
|
|
|
: 130)
|
|
|
|
|
: patientProfileAppBarModel.height!);
|
|
|
|
|
}
|
|
|
|
|
|