|
|
@ -19,9 +19,10 @@ class PatientProfileHeaderNewDesignAppBar extends StatelessWidget
|
|
|
|
final double height;
|
|
|
|
final double height;
|
|
|
|
final bool isInpatient;
|
|
|
|
final bool isInpatient;
|
|
|
|
final bool isDischargedPatient;
|
|
|
|
final bool isDischargedPatient;
|
|
|
|
|
|
|
|
final bool isFromLiveCare;
|
|
|
|
|
|
|
|
|
|
|
|
PatientProfileHeaderNewDesignAppBar(
|
|
|
|
PatientProfileHeaderNewDesignAppBar(
|
|
|
|
this.patient, this.patientType, this.arrivalType, {this.height = 0.0, this.isInpatient=false, this.isDischargedPatient=false});
|
|
|
|
this.patient, this.patientType, this.arrivalType, {this.height = 0.0, this.isInpatient=false, this.isDischargedPatient=false, this.isFromLiveCare = false});
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
@ -152,7 +153,7 @@ class PatientProfileHeaderNewDesignAppBar extends StatelessWidget
|
|
|
|
))
|
|
|
|
))
|
|
|
|
: SizedBox(),
|
|
|
|
: SizedBox(),
|
|
|
|
if (SERVICES_PATIANT2[int.parse(patientType)] ==
|
|
|
|
if (SERVICES_PATIANT2[int.parse(patientType)] ==
|
|
|
|
"List_MyOutPatient")
|
|
|
|
"List_MyOutPatient" && !isFromLiveCare)
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
child: Row(
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
@ -182,7 +183,6 @@ class PatientProfileHeaderNewDesignAppBar extends StatelessWidget
|
|
|
|
SizedBox(
|
|
|
|
SizedBox(
|
|
|
|
width: 3.5,
|
|
|
|
width: 3.5,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
child: AppText(
|
|
|
|
child: AppText(
|
|
|
|
convertDateFormat2(
|
|
|
|
convertDateFormat2(
|
|
|
@ -261,7 +261,7 @@ class PatientProfileHeaderNewDesignAppBar extends StatelessWidget
|
|
|
|
style: TextStyle(fontSize: 14)),
|
|
|
|
style: TextStyle(fontSize: 14)),
|
|
|
|
new TextSpan(
|
|
|
|
new TextSpan(
|
|
|
|
text:
|
|
|
|
text:
|
|
|
|
"${AppDateUtils.getAgeByBirthday(patient.patientDetails != null ? patient.patientDetails.dateofBirth??"" : patient.dateofBirth??"", context,)}",
|
|
|
|
"${AppDateUtils.getAgeByBirthday(patient.patientDetails != null ? patient.patientDetails.dateofBirth??"" : patient.dateofBirth??"", context,isServerFormat: !isFromLiveCare)}",
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.w700, fontSize: 14)),
|
|
|
|
fontWeight: FontWeight.w700, fontSize: 14)),
|
|
|
|
],
|
|
|
|
],
|
|
|
|