|
|
|
|
@ -83,7 +83,26 @@ class _PatientsScreenState extends State<PatientsScreen> {
|
|
|
|
|
final _controller = TextEditingController();
|
|
|
|
|
|
|
|
|
|
PatientModel patient;
|
|
|
|
|
|
|
|
|
|
var _patientSearchFormValues = PatientModel(
|
|
|
|
|
FirstName: "0",
|
|
|
|
|
MiddleName: "0",
|
|
|
|
|
LastName: "0",
|
|
|
|
|
PatientMobileNumber: "0",
|
|
|
|
|
PatientIdentificationID: "0",
|
|
|
|
|
PatientID: 0,
|
|
|
|
|
From: DateUtils.convertDateToFormat(DateTime.now(), 'yyyy-MM-dd')
|
|
|
|
|
.toString(),
|
|
|
|
|
To: DateUtils.convertDateToFormat(DateTime.now(), 'yyyy-MM-dd')
|
|
|
|
|
.toString(),
|
|
|
|
|
LanguageID: 2,
|
|
|
|
|
stamp: "2020-03-02T13:56:39.170Z",
|
|
|
|
|
IPAdress: "11.11.11.11",
|
|
|
|
|
VersionID: 1.2,
|
|
|
|
|
Channel: 9,
|
|
|
|
|
TokenID: "2Fi7HoIHB0eDyekVa6tCJg==",
|
|
|
|
|
SessionID: "5G0yXn0Jnq",
|
|
|
|
|
IsLoginForDoctorApp: true,
|
|
|
|
|
PatientOutSA: false);
|
|
|
|
|
searchData(String str) {
|
|
|
|
|
this.responseModelList = this.responseModelList2;
|
|
|
|
|
var strExist = str.length > 0 ? true : false;
|
|
|
|
|
@ -252,6 +271,9 @@ class _PatientsScreenState extends State<PatientsScreen> {
|
|
|
|
|
isView = routeArgs['isView'];
|
|
|
|
|
patient.Searchtype = 1;
|
|
|
|
|
}
|
|
|
|
|
if (routeArgs != null && routeArgs.containsKey('activeFilter')) {
|
|
|
|
|
_activeLocation = routeArgs['activeFilter'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!projectsProvider.isArabic)
|
|
|
|
|
patientTypeTitle = SERVICES_PATIANT_HEADER[int.parse(patientType)];
|
|
|
|
|
@ -752,11 +774,12 @@ class _PatientsScreenState extends State<PatientsScreen> {
|
|
|
|
|
)),
|
|
|
|
|
),
|
|
|
|
|
onTap: () {
|
|
|
|
|
filterBooking(item.toString());
|
|
|
|
|
//filterBooking(item.toString());
|
|
|
|
|
|
|
|
|
|
setState(() {
|
|
|
|
|
_activeLocation = _locations.indexOf(item);
|
|
|
|
|
});
|
|
|
|
|
filterPatient(item.toString());
|
|
|
|
|
}),
|
|
|
|
|
_isActive
|
|
|
|
|
? Container(
|
|
|
|
|
@ -775,4 +798,25 @@ class _PatientsScreenState extends State<PatientsScreen> {
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
filterPatient(item) {
|
|
|
|
|
if (item == 'Tomorrow') {
|
|
|
|
|
_patientSearchFormValues.To = DateUtils.convertDateToFormat(
|
|
|
|
|
DateTime(DateTime.now().year, DateTime.now().month,
|
|
|
|
|
DateTime.now().day + 1),
|
|
|
|
|
'yyyy-MM-dd');
|
|
|
|
|
} else if (item == 'Next Week') {
|
|
|
|
|
_patientSearchFormValues.To = DateUtils.convertDateToFormat(
|
|
|
|
|
DateTime(DateTime.now().year, DateTime.now().month,
|
|
|
|
|
DateTime.now().day + 6),
|
|
|
|
|
'yyyy-MM-dd');
|
|
|
|
|
}
|
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
|
Navigator.of(context).pushNamed(PATIENTS, arguments: {
|
|
|
|
|
"patientSearchForm": _patientSearchFormValues,
|
|
|
|
|
"selectedType": "7",
|
|
|
|
|
"arrivalType": "1",
|
|
|
|
|
"activeFilter": _activeLocation
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|