diff --git a/lib/core/service/patient/LiveCarePatientServices.dart b/lib/core/service/patient/LiveCarePatientServices.dart index b6ed526a..fff803d8 100644 --- a/lib/core/service/patient/LiveCarePatientServices.dart +++ b/lib/core/service/patient/LiveCarePatientServices.dart @@ -43,7 +43,6 @@ class LiveCarePatientServices extends BaseService { onSuccess: (dynamic response, int statusCode) { List localPatientList= []; - localPatientList.clear(); response['List_PendingPatientList'].forEach((v) { localPatientList.add(PatiantInformtion.fromJson(v)); @@ -59,7 +58,6 @@ class LiveCarePatientServices extends BaseService { /// remove items. List removedPatientList= []; - removedPatientList.clear(); _patientList.forEach((element) { if ((localPatientList.singleWhere((it) => it.patientId == element.patientId, orElse: () => null)) == null) { diff --git a/lib/core/viewModel/LiveCarePatientViewModel.dart b/lib/core/viewModel/LiveCarePatientViewModel.dart index 638306f7..03cb0a7b 100644 --- a/lib/core/viewModel/LiveCarePatientViewModel.dart +++ b/lib/core/viewModel/LiveCarePatientViewModel.dart @@ -245,6 +245,7 @@ class LiveCarePatientViewModel extends BaseViewModel { if(e.patientId == patient.patientId) { e.episodeNo = 0 ; e.appointmentNo = appointmentNo; + return; } });