diff --git a/lib/screens/home/home_screen.dart b/lib/screens/home/home_screen.dart index 7c8a9442..84cc7575 100644 --- a/lib/screens/home/home_screen.dart +++ b/lib/screens/home/home_screen.dart @@ -714,7 +714,7 @@ class _HomeScreenState extends State { context, MaterialPageRoute( builder: (context) => - PatientSearchScreen(), + PatientSearchScreenNew(), )); }, ), diff --git a/lib/screens/patients/patient_search/patients_screen_new.dart b/lib/screens/patients/patient_search/patients_screen_new.dart index d78f41d2..2597d397 100644 --- a/lib/screens/patients/patient_search/patients_screen_new.dart +++ b/lib/screens/patients/patient_search/patients_screen_new.dart @@ -396,25 +396,22 @@ class _PatientsScreenNewState extends State { isInpatient: isInpatient, onTap: () { + // TODO change the parameter to daynamic Navigator.of(context) .pushNamed( PATIENTS_PROFILE, arguments: { "patient": item, "patientType": - patientType, - "from": patient - .getFrom, - "to": patient - .getTo, + "1", + "from": widget.patientSearchRequestModel.from, + "to": widget.patientSearchRequestModel.from, "isSearch": isSearch, "isInpatient": isInpatient, "arrivalType": - arrivalType, - "isInpatient": - isInpatient + "7", }); }, );