|
|
|
|
@ -1,3 +1,4 @@
|
|
|
|
|
import 'package:doctor_app_flutter/core/enum/filter_type.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/enum/patient_type.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/enum/viewstate.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/core/model/PatientSearchRequestModel.dart';
|
|
|
|
|
@ -83,11 +84,10 @@ class PatientSearchViewModel extends BaseViewModel{
|
|
|
|
|
|
|
|
|
|
getPatientBasedOnDate (
|
|
|
|
|
{item, PatientSearchRequestModel patientSearchRequestModel, PatientType selectedPatientType,
|
|
|
|
|
bool isSearchWithKeyInfo })async {
|
|
|
|
|
bool isSearchWithKeyInfo,OutPatientFilterType outPatientFilterType })async {
|
|
|
|
|
String dateTo;
|
|
|
|
|
String dateFrom;
|
|
|
|
|
// TODO Fix this in Arabic
|
|
|
|
|
if (item == 'Previous') {
|
|
|
|
|
if (OutPatientFilterType.Previous == outPatientFilterType) {
|
|
|
|
|
|
|
|
|
|
selectedFromDate = DateTime(DateTime.now().year, DateTime.now().month-1,
|
|
|
|
|
DateTime.now().day);
|
|
|
|
|
@ -101,7 +101,7 @@ class PatientSearchViewModel extends BaseViewModel{
|
|
|
|
|
'yyyy-MM-dd');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else if (item == 'Next Week') {
|
|
|
|
|
} else if (OutPatientFilterType.NextWeek == outPatientFilterType) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dateTo = DateUtils.convertDateToFormat(
|
|
|
|
|
|