From f3265819b8ccf6ee74c6cc085f3704ce61ba1825 Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Thu, 25 Dec 2025 15:54:01 +0300 Subject: [PATCH] QR Scan issue fixed --- lib/core/service/home/scan_qr_service.dart | 4 +++- .../profile/profile_screen/patient_profile_screen.dart | 2 +- lib/screens/qr_reader/QR_reader_screen.dart | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/core/service/home/scan_qr_service.dart b/lib/core/service/home/scan_qr_service.dart index 1e241fc1..2fbd0e6b 100644 --- a/lib/core/service/home/scan_qr_service.dart +++ b/lib/core/service/home/scan_qr_service.dart @@ -10,9 +10,11 @@ class ScanQrService extends BaseService { Future getInPatient( PatientSearchRequestModel requestModel, bool isMyInpatient) async { hasError = false; - await getDoctorProfile(); + await getDoctorProfile(isGetProfile: true); requestModel.loginDoctorID = doctorProfile!.doctorID; requestModel.doctorID = 0; + requestModel.from = "0"; + requestModel.to = "0"; await baseAppClient.post( GET_PATIENT_IN_PATIENT_LIST, onSuccess: (dynamic response, int statusCode) { diff --git a/lib/screens/patients/profile/profile_screen/patient_profile_screen.dart b/lib/screens/patients/profile/profile_screen/patient_profile_screen.dart index 7a632500..ce8d06a3 100644 --- a/lib/screens/patients/profile/profile_screen/patient_profile_screen.dart +++ b/lib/screens/patients/profile/profile_screen/patient_profile_screen.dart @@ -166,7 +166,7 @@ String noteValidation =""; children: [ Column( children: [ - PatientProfileHeaderNewDesignAppBar(patient, arrivalType!, patientType!, + PatientProfileHeaderNewDesignAppBar(patient, arrivalType ?? "1", patientType ?? "1", videoCallDurationStream: videoCallDurationStream, isInpatient: isInpatient, isFromLiveCare: isFromLiveCare, diff --git a/lib/screens/qr_reader/QR_reader_screen.dart b/lib/screens/qr_reader/QR_reader_screen.dart index 9e33f11e..ecf67787 100644 --- a/lib/screens/qr_reader/QR_reader_screen.dart +++ b/lib/screens/qr_reader/QR_reader_screen.dart @@ -112,6 +112,8 @@ class _QrReaderScreenState extends State { Navigator.of(context).pushNamed(PATIENTS_PROFILE, arguments: { "patient": model.inPatientList[0], "isInpatient": true, + "patientType": "1", + "arrivalType": "1", }); } else { DrAppToastMsg.showErrorToast(model.error);