QR Scan issue fixed

update_flutter_3.16.0_sdk-upgrade
haroon amjad 3 weeks ago
parent 0e54255e0a
commit f3265819b8

@ -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) {

@ -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,

@ -112,6 +112,8 @@ class _QrReaderScreenState extends State<QrReaderScreen> {
Navigator.of(context).pushNamed(PATIENTS_PROFILE, arguments: {
"patient": model.inPatientList[0],
"isInpatient": true,
"patientType": "1",
"arrivalType": "1",
});
} else {
DrAppToastMsg.showErrorToast(model.error);

Loading…
Cancel
Save