|
|
|
|
@ -69,19 +69,19 @@ class _PatientSearchScreenState extends State<PatientSearchScreen> {
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
Map profile = await sharedPref.getObj(DOCTOR_PROFILE);
|
|
|
|
|
/* Map profile = await sharedPref.getObj(DOCTOR_PROFILE);
|
|
|
|
|
DoctorProfileModel doctorProfile =
|
|
|
|
|
new DoctorProfileModel.fromJson(profile);
|
|
|
|
|
new DoctorProfileModel.fromJson(profile)*/;
|
|
|
|
|
if (_formKey.currentState.validate()) {
|
|
|
|
|
_formKey.currentState.save();
|
|
|
|
|
|
|
|
|
|
sharedPref.setString(SLECTED_PATIENT_TYPE, _selectedType);
|
|
|
|
|
/* sharedPref.setString(SLECTED_PATIENT_TYPE, _selectedType);
|
|
|
|
|
String token = await sharedPref.getString(TOKEN);
|
|
|
|
|
|
|
|
|
|
_patientSearchFormValues.TokenID = token;
|
|
|
|
|
_patientSearchFormValues.ProjectID = doctorProfile.projectID; //15
|
|
|
|
|
_patientSearchFormValues.DoctorID = doctorProfile.doctorID;
|
|
|
|
|
_patientSearchFormValues.ClinicID = doctorProfile.clinicID;
|
|
|
|
|
_patientSearchFormValues.ClinicID = doctorProfile.clinicID;*/
|
|
|
|
|
|
|
|
|
|
if ((_patientSearchFormValues.From == "0" ||
|
|
|
|
|
_patientSearchFormValues.To == "0") &&
|
|
|
|
|
|