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( Future getInPatient(
PatientSearchRequestModel requestModel, bool isMyInpatient) async { PatientSearchRequestModel requestModel, bool isMyInpatient) async {
hasError = false; hasError = false;
await getDoctorProfile(); await getDoctorProfile(isGetProfile: true);
requestModel.loginDoctorID = doctorProfile!.doctorID; requestModel.loginDoctorID = doctorProfile!.doctorID;
requestModel.doctorID = 0; requestModel.doctorID = 0;
requestModel.from = "0";
requestModel.to = "0";
await baseAppClient.post( await baseAppClient.post(
GET_PATIENT_IN_PATIENT_LIST, GET_PATIENT_IN_PATIENT_LIST,
onSuccess: (dynamic response, int statusCode) { onSuccess: (dynamic response, int statusCode) {

@ -166,7 +166,7 @@ String noteValidation ="";
children: [ children: [
Column( Column(
children: [ children: [
PatientProfileHeaderNewDesignAppBar(patient, arrivalType!, patientType!, PatientProfileHeaderNewDesignAppBar(patient, arrivalType ?? "1", patientType ?? "1",
videoCallDurationStream: videoCallDurationStream, videoCallDurationStream: videoCallDurationStream,
isInpatient: isInpatient, isInpatient: isInpatient,
isFromLiveCare: isFromLiveCare, isFromLiveCare: isFromLiveCare,

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

Loading…
Cancel
Save