|
|
|
@ -12,7 +12,7 @@ class PatientProfileButton extends StatelessWidget {
|
|
|
|
|
final dynamic route;
|
|
|
|
|
final PatiantInformtion patient;
|
|
|
|
|
final String patientType;
|
|
|
|
|
final String arrivalType;
|
|
|
|
|
String arrivalType;
|
|
|
|
|
String from;
|
|
|
|
|
String to;
|
|
|
|
|
final String url = "assets/images/";
|
|
|
|
@ -116,12 +116,15 @@ class PatientProfileButton extends StatelessWidget {
|
|
|
|
|
if (to == null) {
|
|
|
|
|
to = DateUtils.convertDateToFormat(DateTime.now(), 'yyyy-MM-dd');
|
|
|
|
|
}
|
|
|
|
|
if(arrivalType == null){
|
|
|
|
|
arrivalType = "0";
|
|
|
|
|
}
|
|
|
|
|
Navigator.of(context).pushNamed(route, arguments: {
|
|
|
|
|
'patient': patient,
|
|
|
|
|
'from': from,
|
|
|
|
|
'to': to,
|
|
|
|
|
'patient-type': patientType,
|
|
|
|
|
'arrival-type': arrivalType
|
|
|
|
|
'patientType': patientType,
|
|
|
|
|
'arrivalType': arrivalType
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|