fix live care label and vital sign data

merge-requests/218/head
Mohammad Aljammal 4 years ago
parent 5e3f6363cf
commit 519a474d41

@ -1287,4 +1287,8 @@ const Map localizedValues = {
"en": "If you have a card / Document Scan now", "en": "If you have a card / Document Scan now",
"ar": "إذا كانت لديك بطاقة / مستند ارفقها الان" "ar": "إذا كانت لديك بطاقة / مستند ارفقها الان"
}, },
"liveCare": {
"en": "Live Care",
"ar": "لايف كير"
},
}; };

@ -34,7 +34,7 @@ class PatientLabOrders {
String qR; String qR;
String setupID; String setupID;
List<String> speciality; List<String> speciality;
bool isLiveCareAppointment;
PatientLabOrders( PatientLabOrders(
{this.actualDoctorRate, {this.actualDoctorRate,
this.clinicDescription, this.clinicDescription,
@ -68,7 +68,7 @@ class PatientLabOrders {
this.projectNameN, this.projectNameN,
this.qR, this.qR,
this.setupID, this.setupID,
this.speciality}); this.speciality,this.isLiveCareAppointment});
PatientLabOrders.fromJson(Map<String, dynamic> json) { PatientLabOrders.fromJson(Map<String, dynamic> json) {
actualDoctorRate = json['ActualDoctorRate']; actualDoctorRate = json['ActualDoctorRate'];
@ -103,6 +103,7 @@ class PatientLabOrders {
projectNameN = json['ProjectNameN']; projectNameN = json['ProjectNameN'];
qR = json['QR']; qR = json['QR'];
setupID = json['SetupID']; setupID = json['SetupID'];
isLiveCareAppointment = json['IsLiveCareAppointment'];
// speciality = json['Speciality'].cast<String>(); // speciality = json['Speciality'].cast<String>();
} }
@ -141,6 +142,7 @@ class PatientLabOrders {
data['QR'] = this.qR; data['QR'] = this.qR;
data['SetupID'] = this.setupID; data['SetupID'] = this.setupID;
data['Speciality'] = this.speciality; data['Speciality'] = this.speciality;
data['IsLiveCareAppointment'] = this.isLiveCareAppointment;
return data; return data;
} }
} }

@ -27,6 +27,7 @@ class Prescriptions {
bool isDoctorAllowVedioCall; bool isDoctorAllowVedioCall;
bool isExecludeDoctor; bool isExecludeDoctor;
bool isInOutPatient; bool isInOutPatient;
bool isLiveCareAppointment;
String isInOutPatientDescription; String isInOutPatientDescription;
String isInOutPatientDescriptionN; String isInOutPatientDescriptionN;
bool isInsurancePatient; bool isInsurancePatient;
@ -68,7 +69,7 @@ class Prescriptions {
this.nationalityFlagURL, this.nationalityFlagURL,
this.noOfPatientsRate, this.noOfPatientsRate,
this.qR, this.qR,
this.speciality}); this.speciality,this.isLiveCareAppointment});
Prescriptions.fromJson(Map<String, dynamic> json) { Prescriptions.fromJson(Map<String, dynamic> json) {
setupID = json['SetupID']; setupID = json['SetupID'];
@ -103,6 +104,7 @@ class Prescriptions {
nationalityFlagURL = json['NationalityFlagURL']; nationalityFlagURL = json['NationalityFlagURL'];
noOfPatientsRate = json['NoOfPatientsRate']; noOfPatientsRate = json['NoOfPatientsRate'];
qR = json['QR']; qR = json['QR'];
isLiveCareAppointment = json['IsLiveCareAppointment'];
// speciality = json['Speciality'].cast<String>(); // speciality = json['Speciality'].cast<String>();
} }
@ -141,6 +143,7 @@ class Prescriptions {
data['NoOfPatientsRate'] = this.noOfPatientsRate; data['NoOfPatientsRate'] = this.noOfPatientsRate;
data['QR'] = this.qR; data['QR'] = this.qR;
data['Speciality'] = this.speciality; data['Speciality'] = this.speciality;
data['IsLiveCareAppointment'] = this.isLiveCareAppointment;
return data; return data;
} }
} }

@ -41,6 +41,7 @@ class FinalRadiology {
List<String> speciality; List<String> speciality;
bool isCVI; bool isCVI;
bool isRadMedicalReport; bool isRadMedicalReport;
bool isLiveCareAppointment;
FinalRadiology( FinalRadiology(
{this.setupID, {this.setupID,
@ -82,7 +83,7 @@ class FinalRadiology {
this.reportDataTextString, this.reportDataTextString,
this.speciality, this.speciality,
this.isCVI, this.isCVI,
this.isRadMedicalReport}); this.isRadMedicalReport,this.isLiveCareAppointment});
FinalRadiology.fromJson(Map<String, dynamic> json) { FinalRadiology.fromJson(Map<String, dynamic> json) {
try { try {
@ -121,11 +122,13 @@ class FinalRadiology {
orderNo = json['OrderNo']; orderNo = json['OrderNo'];
projectName = json['ProjectName']; projectName = json['ProjectName'];
qR = json['QR']; qR = json['QR'];
isLiveCareAppointment = json['IsLiveCareAppointment'];
reportDataHTML = json['ReportDataHTML']; reportDataHTML = json['ReportDataHTML'];
reportDataTextString = json['ReportDataTextString']; reportDataTextString = json['ReportDataTextString'];
// speciality = json['Speciality'].cast<String>(); // speciality = json['Speciality'].cast<String>();
isCVI = json['isCVI']; isCVI = json['isCVI'];
isRadMedicalReport = json['isRadMedicalReport']; isRadMedicalReport = json['isRadMedicalReport'];
} catch (e) { } catch (e) {
print(e); print(e);
} }

@ -32,6 +32,7 @@ class SickLeave {
String projectName; String projectName;
String qR; String qR;
List<String> speciality; List<String> speciality;
bool isLiveCareAppointment;
SickLeave( SickLeave(
{this.setupID, {this.setupID,
@ -64,7 +65,7 @@ class SickLeave {
this.patientName, this.patientName,
this.projectName, this.projectName,
this.qR, this.qR,
this.speciality}); this.speciality,this.isLiveCareAppointment});
SickLeave.fromJson(Map<String, dynamic> json) { SickLeave.fromJson(Map<String, dynamic> json) {
setupID = json['SetupID']; setupID = json['SetupID'];
@ -97,6 +98,7 @@ class SickLeave {
patientName = json['PatientName']; patientName = json['PatientName'];
projectName = json['ProjectName']; projectName = json['ProjectName'];
qR = json['QR']; qR = json['QR'];
isLiveCareAppointment = json['IsLiveCareAppointment'];
if(json['Speciality']!=null) if(json['Speciality']!=null)
speciality = json['Speciality'].cast<String>(); speciality = json['Speciality'].cast<String>();
} }

@ -11,7 +11,15 @@ class VitalSignViewModel extends BaseViewModel {
List<VitalSignResModel> get vitalSignResModelList => List<VitalSignResModel> get vitalSignResModelList =>
_vitalSignService.vitalSignResModelList; _vitalSignService.vitalSignResModelList;
getPatientRadOrders({int appointmentNo, int projectID}) async { String heightCm = "0";
String weightKg = "0";
String bodyMax = "0";
String temperatureCelcius = "0";
String hartRat = "0";
String respirationBeatPerMinute = "0";
String bloodPressure = "0 / 0";
getPatientVitalSign({int appointmentNo, int projectID}) async {
setState(ViewState.Busy); setState(ViewState.Busy);
if (appointmentNo != null && projectID != null) { if (appointmentNo != null && projectID != null) {
@ -23,7 +31,41 @@ class VitalSignViewModel extends BaseViewModel {
if (_vitalSignService.hasError) { if (_vitalSignService.hasError) {
error = _vitalSignService.error; error = _vitalSignService.error;
setState(ViewState.Error); setState(ViewState.Error);
} else } else {
_vitalSignService.vitalSignResModelList.forEach((element) {
if (heightCm == "0" || heightCm == null || heightCm == 'null') {
heightCm = element.heightCm.toString();
}
if (weightKg == "0" || weightKg == null || weightKg == 'null') {
weightKg = element.weightKg.toString();
}
if (bodyMax == "0" ||
bodyMax == null ||
bodyMax == 'null') {
bodyMax = element.bodyMassIndex.toString();
}
if (temperatureCelcius == "0" ||
temperatureCelcius == null ||
temperatureCelcius == 'null') {
temperatureCelcius = element.temperatureCelcius.toString();
}
if (hartRat == "0" || hartRat == null || hartRat == 'null') {
hartRat = element.pulseBeatPerMinute.toString();
}
if (respirationBeatPerMinute == "0" ||
respirationBeatPerMinute == null ||
respirationBeatPerMinute == 'null') {
respirationBeatPerMinute =
element.respirationBeatPerMinute.toString();
}
if (bloodPressure == "0 / 0" ||
bloodPressure == null ||
bloodPressure == 'null') {
bloodPressure = element.bloodPressure.toString();
}
});
setState(ViewState.Idle); setState(ViewState.Idle);
} }
}
} }

@ -50,6 +50,7 @@ class AppoitmentAllHistoryResultList {
bool isExecludeDoctor; bool isExecludeDoctor;
int isFollowup; int isFollowup;
bool isLiveCareAppointment; bool isLiveCareAppointment;
bool isInOutPatient;
bool isMedicalReportRequested; bool isMedicalReportRequested;
bool isOnlineCheckedIN; bool isOnlineCheckedIN;
String latitude; String latitude;
@ -188,6 +189,7 @@ class AppoitmentAllHistoryResultList {
isExecludeDoctor = json['IsExecludeDoctor']; isExecludeDoctor = json['IsExecludeDoctor'];
isFollowup = json['IsFollowup']; isFollowup = json['IsFollowup'];
isLiveCareAppointment = json['IsLiveCareAppointment']; isLiveCareAppointment = json['IsLiveCareAppointment'];
isInOutPatient = json['IsInOutPatient'];
isMedicalReportRequested = json['IsMedicalReportRequested']; isMedicalReportRequested = json['IsMedicalReportRequested'];
isOnlineCheckedIN = json['IsOnlineCheckedIN']; isOnlineCheckedIN = json['IsOnlineCheckedIN'];
latitude = json['Latitude']; latitude = json['Latitude'];
@ -259,6 +261,7 @@ class AppoitmentAllHistoryResultList {
data['IsExecludeDoctor'] = this.isExecludeDoctor; data['IsExecludeDoctor'] = this.isExecludeDoctor;
data['IsFollowup'] = this.isFollowup; data['IsFollowup'] = this.isFollowup;
data['IsLiveCareAppointment'] = this.isLiveCareAppointment; data['IsLiveCareAppointment'] = this.isLiveCareAppointment;
data['IsInOutPatient'] = this.isInOutPatient;
data['IsMedicalReportRequested'] = this.isMedicalReportRequested; data['IsMedicalReportRequested'] = this.isMedicalReportRequested;
data['IsOnlineCheckedIN'] = this.isOnlineCheckedIN; data['IsOnlineCheckedIN'] = this.isOnlineCheckedIN;
data['Latitude'] = this.latitude; data['Latitude'] = this.latitude;

@ -55,12 +55,58 @@ class _ApointmentCardState extends State<AppointmentCard> {
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[ children: <Widget>[
Container(
width: projectViewModel.isArabic ? 27 : 20,
height: projectViewModel.isArabic ? 165 : 140,
decoration: BoxDecoration(
//Colors.red[900] Color(0xff404545)
color: widget.appo.isLiveCareAppointment
? Color(0xff404545)
: !widget.appo.isInOutPatient
? Colors.red[900]
: Theme.of(context).primaryColor,
borderRadius: BorderRadius.only(
topLeft: projectViewModel.isArabic
? Radius.circular(0)
: Radius.circular(8),
bottomLeft: projectViewModel.isArabic
? Radius.circular(0)
: Radius.circular(8),
topRight: projectViewModel.isArabic
? Radius.circular(8)
: Radius.circular(0),
bottomRight: projectViewModel.isArabic
? Radius.circular(8)
: Radius.circular(0),
),
),
child: RotatedBox(
quarterTurns: 3,
child: Center(
child: Text(
widget.appo.isLiveCareAppointment
? TranslationBase.of(context)
.liveCare
.toUpperCase()
: !widget.appo.isInOutPatient
? TranslationBase.of(context)
.inPatient
.toUpperCase()
: TranslationBase.of(context)
.outpatient
.toUpperCase(),
style: TextStyle(color: Colors.white),
),
)),
),
SizedBox(width: 8,),
ClipRRect( ClipRRect(
borderRadius: BorderRadius.circular(100.0), borderRadius: BorderRadius.circular(100.0),
child: Image.network(widget.appo.doctorImageURL, child: Image.network(widget.appo.doctorImageURL,
fit: BoxFit.fill, height: 60.0, width: 60.0), fit: BoxFit.fill, height: 60.0, width: 60.0),
), ),
Container( Expanded(
child: Container(
width: MediaQuery.of(context).size.width * 0.61, width: MediaQuery.of(context).size.width * 0.61,
margin: EdgeInsets.fromLTRB(20.0, 10.0, 10.0, 0.0), margin: EdgeInsets.fromLTRB(20.0, 10.0, 10.0, 0.0),
child: Column( child: Column(
@ -161,6 +207,7 @@ class _ApointmentCardState extends State<AppointmentCard> {
], ],
), ),
), ),
),
], ],
), ),
), ),

@ -97,6 +97,7 @@ class LabsHomePage extends StatelessWidget {
billNo: ' ${labOrder.invoiceNo}', billNo: ' ${labOrder.invoiceNo}',
profileUrl: labOrder.doctorImageURL, profileUrl: labOrder.doctorImageURL,
subName: labOrder.projectName, subName: labOrder.projectName,
isLiveCareAppointment: labOrder.isLiveCareAppointment,
date: projectViewModel.isArabic?DateUtil.getMonthDayYearDateFormattedAr(labOrder.orderDate):DateUtil.getMonthDayYearDateFormatted(labOrder.orderDate), date: projectViewModel.isArabic?DateUtil.getMonthDayYearDateFormattedAr(labOrder.orderDate):DateUtil.getMonthDayYearDateFormatted(labOrder.orderDate),
); );
}).toList(), }).toList(),

@ -45,6 +45,7 @@ class _PatientSickLeavePageState extends State<PatientSickLeavePage> {
child: ListView.builder( child: ListView.builder(
itemCount: model.sickLeaveList.length, itemCount: model.sickLeaveList.length,
itemBuilder: (context, index) => DoctorCard( itemBuilder: (context, index) => DoctorCard(
isLiveCareAppointment: model.sickLeaveList[index].isLiveCareAppointment,
name: model.sickLeaveList[index].doctorName, name: model.sickLeaveList[index].doctorName,
date:projectViewModel.isArabic? DateUtil.getMonthDayYearDateFormattedAr(model.sickLeaveList[index].requestDate):DateUtil.getMonthDayYearDateFormatted(model.sickLeaveList[index].requestDate), date:projectViewModel.isArabic? DateUtil.getMonthDayYearDateFormattedAr(model.sickLeaveList[index].requestDate):DateUtil.getMonthDayYearDateFormatted(model.sickLeaveList[index].requestDate),
profileUrl: model.sickLeaveList[index].doctorImageURL, profileUrl: model.sickLeaveList[index].doctorImageURL,

@ -24,7 +24,6 @@ class PrescriptionsHistoryDetailsPage extends StatelessWidget {
appBarTitle: TranslationBase.of(context).orderDetails, appBarTitle: TranslationBase.of(context).orderDetails,
baseViewModel: model, baseViewModel: model,
body: SingleChildScrollView( body: SingleChildScrollView(
physics: BouncingScrollPhysics(),
child: Container( child: Container(
margin: EdgeInsets.all(15.0), margin: EdgeInsets.all(15.0),
child: Column( child: Column(
@ -118,7 +117,8 @@ class PrescriptionsHistoryDetailsPage extends StatelessWidget {
], ],
), ),
), ),
) ),
SizedBox(height: 120,)
], ],
), ),
), ),

@ -92,6 +92,7 @@ class PrescriptionsPage extends StatelessWidget {
rat: prescriptions.actualDoctorRate.toDouble(), rat: prescriptions.actualDoctorRate.toDouble(),
subName: prescriptions.name, subName: prescriptions.name,
isInOutPatient: prescriptions.isInOutPatient, isInOutPatient: prescriptions.isInOutPatient,
isLiveCareAppointment: prescriptions.isLiveCareAppointment,
date:projectViewModel.isArabic? DateUtil.getMonthDayYearDateFormattedAr( DateUtil.convertStringToDate(prescriptions.appointmentDate) ):DateUtil.getMonthDayYearDateFormatted(DateUtil.convertStringToDate(prescriptions.appointmentDate)), date:projectViewModel.isArabic? DateUtil.getMonthDayYearDateFormattedAr( DateUtil.convertStringToDate(prescriptions.appointmentDate) ):DateUtil.getMonthDayYearDateFormatted(DateUtil.convertStringToDate(prescriptions.appointmentDate)),
), ),
); );

@ -94,6 +94,7 @@ class RadiologyHomePage extends StatelessWidget {
), ),
child: DoctorCard( child: DoctorCard(
isInOutPatient: radiology.isInOutPatient, isInOutPatient: radiology.isInOutPatient,
isLiveCareAppointment: radiology.isLiveCareAppointment,
name: radiology.doctorName, name: radiology.doctorName,
profileUrl: radiology.doctorImageURL, profileUrl: radiology.doctorImageURL,
billNo: '${radiology.invoiceNo}', billNo: '${radiology.invoiceNo}',

@ -28,9 +28,9 @@ class VitalSignDetailsScreen extends StatelessWidget {
imagesInfo.add(ImagesInfo(imageEn: 'https://hmgwebservices.com/Images/MobileAppDq/imges-info/my-vital-signs/en/1.png',imageAr: 'https://hmgwebservices.com/Images/MobileAppDq/imges-info/my-vital-signs/ar/1.png')); imagesInfo.add(ImagesInfo(imageEn: 'https://hmgwebservices.com/Images/MobileAppDq/imges-info/my-vital-signs/en/1.png',imageAr: 'https://hmgwebservices.com/Images/MobileAppDq/imges-info/my-vital-signs/ar/1.png'));
return BaseView<VitalSignViewModel>( return BaseView<VitalSignViewModel>(
onModelReady: appointmentNo != null && projectID != null onModelReady: appointmentNo != null && projectID != null
? (model) => model.getPatientRadOrders( ? (model) => model.getPatientVitalSign(
appointmentNo: appointmentNo, projectID: projectID) appointmentNo: appointmentNo, projectID: projectID)
: (model) => model.getPatientRadOrders(), : (model) => model.getPatientVitalSign(),
builder: (_, mode, widget) => AppScaffold( builder: (_, mode, widget) => AppScaffold(
isShowAppBar: true, isShowAppBar: true,
appBarTitle: TranslationBase.of(context).vitalSigns, appBarTitle: TranslationBase.of(context).vitalSigns,
@ -58,11 +58,7 @@ class VitalSignDetailsScreen extends StatelessWidget {
child: VitalSignItem( child: VitalSignItem(
des: TranslationBase.of(context).height, des: TranslationBase.of(context).height,
icon: DQIcons.height, icon: DQIcons.height,
lastVal: mode lastVal: mode.heightCm,
.vitalSignResModelList[
mode.vitalSignResModelList.length - 1]
.heightCm
.toString(),
unit: TranslationBase.of(context).cm, unit: TranslationBase.of(context).cm,
), ),
), ),
@ -82,11 +78,7 @@ class VitalSignDetailsScreen extends StatelessWidget {
des: TranslationBase.of(context).weight, des: TranslationBase.of(context).weight,
icon: DQIcons.weight_scale, icon: DQIcons.weight_scale,
unit: TranslationBase.of(context).kg, unit: TranslationBase.of(context).kg,
lastVal: mode lastVal: mode.weightKg,
.vitalSignResModelList[
mode.vitalSignResModelList.length - 1]
.weightKg
.toString(),
), ),
), ),
], ],
@ -108,9 +100,7 @@ class VitalSignDetailsScreen extends StatelessWidget {
child: VitalSignItem( child: VitalSignItem(
des: TranslationBase.of(context).body, des: TranslationBase.of(context).body,
icon: DQIcons.bmi, icon: DQIcons.bmi,
lastVal: mode lastVal: mode.bodyMax,
.vitalSignResModelList[ mode.vitalSignResModelList.length - 1].pulseBeatPerMinute
.toString(),
unit: TranslationBase.of(context).mass, unit: TranslationBase.of(context).mass,
), ),
), ),
@ -130,9 +120,7 @@ class VitalSignDetailsScreen extends StatelessWidget {
child: VitalSignItem( child: VitalSignItem(
des: TranslationBase.of(context).temperature, des: TranslationBase.of(context).temperature,
icon: DQIcons.thermometer, icon: DQIcons.thermometer,
lastVal: mode lastVal: mode.temperatureCelcius,
.vitalSignResModelList[ mode.vitalSignResModelList.length - 1].temperatureCelcius
.toString(),
unit: TranslationBase.of(context).tempC, unit: TranslationBase.of(context).tempC,
), ),
), ),
@ -155,11 +143,7 @@ class VitalSignDetailsScreen extends StatelessWidget {
child: VitalSignItem( child: VitalSignItem(
des: TranslationBase.of(context).heart, des: TranslationBase.of(context).heart,
icon: DQIcons.heart, icon: DQIcons.heart,
lastVal: mode lastVal: mode.hartRat,
.vitalSignResModelList[
mode.vitalSignResModelList.length - 1]
.pulseBeatPerMinute
.toString(),
unit: TranslationBase.of(context).bpm, unit: TranslationBase.of(context).bpm,
), ),
), ),
@ -178,11 +162,7 @@ class VitalSignDetailsScreen extends StatelessWidget {
child: VitalSignItem( child: VitalSignItem(
des: TranslationBase.of(context).respirationRate, des: TranslationBase.of(context).respirationRate,
icon: DQIcons.outline, icon: DQIcons.outline,
lastVal: mode lastVal: mode.respirationBeatPerMinute,
.vitalSignResModelList[
mode.vitalSignResModelList.length - 1]
.respirationBeatPerMinute
.toString(),
unit: TranslationBase.of(context).respirationSigns, unit: TranslationBase.of(context).respirationSigns,
), ),
), ),
@ -205,11 +185,7 @@ class VitalSignDetailsScreen extends StatelessWidget {
child: VitalSignItem( child: VitalSignItem(
des: TranslationBase.of(context).bloodPressure, des: TranslationBase.of(context).bloodPressure,
icon: DQIcons.blood_pressure, icon: DQIcons.blood_pressure,
lastVal: mode lastVal: mode.bloodPressure,
.vitalSignResModelList[
mode.vitalSignResModelList.length - 1]
.bloodPressure
.toString(),
unit: TranslationBase.of(context).sysDias, unit: TranslationBase.of(context).sysDias,
), ),
), ),

@ -883,6 +883,7 @@ class TranslationBase {
String get range => localizedValues['range'][locale.languageCode]; String get range => localizedValues['range'][locale.languageCode];
String get outpatient => localizedValues['out-patient'][locale.languageCode]; String get outpatient => localizedValues['out-patient'][locale.languageCode];
String get inPatient => localizedValues['in-patient'][locale.languageCode]; String get inPatient => localizedValues['in-patient'][locale.languageCode];
String get liveCare => localizedValues['liveCare'][locale.languageCode];
String get report => localizedValues['report'][locale.languageCode]; String get report => localizedValues['report'][locale.languageCode];
String get openRad => localizedValues['open-rad'][locale.languageCode]; String get openRad => localizedValues['open-rad'][locale.languageCode];
String get sendCopyRad => localizedValues['send-copy'][locale.languageCode]; String get sendCopyRad => localizedValues['send-copy'][locale.languageCode];

@ -19,6 +19,7 @@ class DoctorCard extends StatelessWidget {
final Function onTap; final Function onTap;
final Function onEmailTap; final Function onEmailTap;
final bool isInOutPatient; final bool isInOutPatient;
final bool isLiveCareAppointment;
DoctorCard( DoctorCard(
{this.name, {this.name,
@ -29,7 +30,8 @@ class DoctorCard extends StatelessWidget {
this.billNo, this.billNo,
this.onTap, this.onTap,
this.onEmailTap, this.onEmailTap,
this.isInOutPatient}); this.isInOutPatient,
this.isLiveCareAppointment = false});
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
@ -53,11 +55,18 @@ class DoctorCard extends StatelessWidget {
Row( Row(
children: <Widget>[ children: <Widget>[
Container( Container(
width:projectViewModel.isArabic? 27:20, width: projectViewModel.isArabic ? 27 : 20,
height: date == null ? projectViewModel.isArabic? 185 :100 : 180, height: date == null
? projectViewModel.isArabic
? 185
: 100
: 180,
decoration: BoxDecoration( decoration: BoxDecoration(
color: !isInOutPatient //Colors.red[900] Color(0xff404545)
color: isLiveCareAppointment
? Color(0xff404545) ? Color(0xff404545)
: !isInOutPatient
? Colors.red[900]
: Theme.of(context).primaryColor, : Theme.of(context).primaryColor,
borderRadius: BorderRadius.only( borderRadius: BorderRadius.only(
topLeft: projectViewModel.isArabic topLeft: projectViewModel.isArabic
@ -66,15 +75,23 @@ class DoctorCard extends StatelessWidget {
bottomLeft: projectViewModel.isArabic bottomLeft: projectViewModel.isArabic
? Radius.circular(0) ? Radius.circular(0)
: Radius.circular(8), : Radius.circular(8),
topRight: projectViewModel.isArabic? Radius.circular(8):Radius.circular(0), topRight: projectViewModel.isArabic
bottomRight: projectViewModel.isArabic? Radius.circular(8):Radius.circular(0), ? Radius.circular(8)
: Radius.circular(0),
bottomRight: projectViewModel.isArabic
? Radius.circular(8)
: Radius.circular(0),
), ),
), ),
child: RotatedBox( child: RotatedBox(
quarterTurns: 3, quarterTurns: 3,
child: Center( child: Center(
child: Text( child: Text(
!isInOutPatient isLiveCareAppointment
? TranslationBase.of(context)
.liveCare
.toUpperCase()
: !isInOutPatient
? TranslationBase.of(context) ? TranslationBase.of(context)
.inPatient .inPatient
.toUpperCase() .toUpperCase()
@ -96,7 +113,7 @@ class DoctorCard extends StatelessWidget {
Expanded( Expanded(
flex: 1, flex: 1,
child: LargeAvatar( child: LargeAvatar(
name:name, name: name,
url: profileUrl, url: profileUrl,
), ),
), ),
@ -108,23 +125,22 @@ class DoctorCard extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[ children: <Widget>[
Texts( Texts(
TranslationBase.of(context).dr+" "+ name, TranslationBase.of(context).dr +
" " +
name,
bold: true, bold: true,
), ),
Texts( Texts(
subName, subName,
), ),
if (billNo != null) if (billNo != null)
Row( Row(
children: <Widget>[ children: <Widget>[
Texts( Texts(
'${TranslationBase.of(context).billNo}: ', '${TranslationBase.of(context).billNo}: ',
), ),
Texts( Texts(
billNo, billNo,
) )
], ],
), ),

Loading…
Cancel
Save