|  |  |  | @ -15,6 +15,7 @@ import 'package:hmg_patient_app_new/core/utils/loading_utils.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:hmg_patient_app_new/core/utils/request_utils.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:hmg_patient_app_new/core/utils/utils.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:hmg_patient_app_new/core/utils/validation_utils.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:hmg_patient_app_new/extensions/context_extensions.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:hmg_patient_app_new/extensions/string_extensions.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:hmg_patient_app_new/features/authentication/authentication_repo.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:hmg_patient_app_new/features/authentication/models/request_models/check_activation_code_register_request_model.dart'; | 
		
	
	
		
			
				
					|  |  |  | @ -30,6 +31,7 @@ import 'package:hmg_patient_app_new/services/dialog_service.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:hmg_patient_app_new/services/error_handler_service.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:hmg_patient_app_new/services/localauth_service.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:hmg_patient_app_new/services/navigation_service.dart'; | 
		
	
		
			
				|  |  |  |  | import 'package:hmg_patient_app_new/widgets/bottomsheet/exception_bottom_sheet.dart'; | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  | import 'models/request_models/insert_patient_mobile_deviceinfo.dart'; | 
		
	
		
			
				|  |  |  |  | import 'models/request_models/patient_insert_device_imei_request.dart'; | 
		
	
	
		
			
				
					|  |  |  | @ -615,19 +617,31 @@ class AuthenticationViewModel extends ChangeNotifier { | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |   Future<void> checkUserStatusForRegistration({required dynamic response, required dynamic request}) async { | 
		
	
		
			
				|  |  |  |  |     if (response is Map) { | 
		
	
		
			
				|  |  |  |  |       _appState.setAppAuthToken = response["LogInTokenID"]; | 
		
	
		
			
				|  |  |  |  |       if (response["MessageStatus"] == 2) { | 
		
	
		
			
				|  |  |  |  |         print(response["ErrorEndUserMessage"]); | 
		
	
		
			
				|  |  |  |  |         return; | 
		
	
		
			
				|  |  |  |  |       } | 
		
	
		
			
				|  |  |  |  |       if (response['hasFile'] == true) { | 
		
	
		
			
				|  |  |  |  |         //TODO: Show Here Ok And Cancel Dialog and On OKPress it will go for sendActivationCode | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |         _navigationService.context?.showBottomSheet( | 
		
	
		
			
				|  |  |  |  |             child: ExceptionBottomSheet( | 
		
	
		
			
				|  |  |  |  |           message: response["ErrorMessage"], | 
		
	
		
			
				|  |  |  |  |           showCancel: true, | 
		
	
		
			
				|  |  |  |  |           showOKButton: true, | 
		
	
		
			
				|  |  |  |  |           onOkPressed: () { | 
		
	
		
			
				|  |  |  |  |             _navigationService.popUntilNamed(AppRoutes.loginScreen); | 
		
	
		
			
				|  |  |  |  |           }, | 
		
	
		
			
				|  |  |  |  |           onCancelPressed: () { | 
		
	
		
			
				|  |  |  |  |             _navigationService.pop(); | 
		
	
		
			
				|  |  |  |  |           }, | 
		
	
		
			
				|  |  |  |  |         )); | 
		
	
		
			
				|  |  |  |  |       } else { | 
		
	
		
			
				|  |  |  |  |         request['forRegister'] = true; | 
		
	
		
			
				|  |  |  |  |         request['isRegister'] = true; | 
		
	
		
			
				|  |  |  |  |         _appState.setAppAuthToken = response['LogInTokenID']; | 
		
	
		
			
				|  |  |  |  |         if (isPatientOutsideSA(request: response)) { | 
		
	
		
			
				|  |  |  |  |           print("=======OUT SA======="); | 
		
	
		
			
				|  |  |  |  |           _appState.setAppAuthToken = response['LogInTokenID']; | 
		
	
		
			
				|  |  |  |  |           sendActivationCode( | 
		
	
		
			
				|  |  |  |  |               otpTypeEnum: OTPTypeEnumExtension.fromInt(request["OTP_SendType"]), | 
		
	
		
			
				|  |  |  |  |               nationalIdOrFileNumber: request["PatientIdentificationID"].toString(), | 
		
	
	
		
			
				
					|  |  |  | 
 |