|
|
|
@ -27,7 +27,7 @@ class ERSignInViewModel extends BaseViewModel {
|
|
|
|
Future signInERPatient({int patientId, int signInType}) async {
|
|
|
|
Future signInERPatient({int patientId, int signInType}) async {
|
|
|
|
hasError = false;
|
|
|
|
hasError = false;
|
|
|
|
await getDoctorProfile();
|
|
|
|
await getDoctorProfile();
|
|
|
|
DoctorErSignAssessmentReqModel doctorErSignAssessmentReqModel = new DoctorErSignAssessmentReqModel(setupID:"010266", signInType:signInType, loginDoctorID:doctorProfile.doctorID, patientID: patientId );
|
|
|
|
DoctorErSignAssessmentReqModel doctorErSignAssessmentReqModel = new DoctorErSignAssessmentReqModel(signInType:signInType, loginDoctorID:doctorProfile.doctorID, patientID: patientId );
|
|
|
|
setState(ViewState.BusyLocal);
|
|
|
|
setState(ViewState.BusyLocal);
|
|
|
|
await _ERSignInService.signInERPatient(doctorErSignAssessmentReqModel: doctorErSignAssessmentReqModel);
|
|
|
|
await _ERSignInService.signInERPatient(doctorErSignAssessmentReqModel: doctorErSignAssessmentReqModel);
|
|
|
|
if (_ERSignInService.hasError) {
|
|
|
|
if (_ERSignInService.hasError) {
|
|
|
|
|