-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add New Patient -> Don't reset patient form if there's an error #307
Comments
I tested this out in the dev branch (Jun 26th) and crashes the app. |
Okay @daisuke-plangrid, could you report the crash as a separate new issue? It should be labelled P0 because it's a crash. Also, the version number of the app is visible in the title bar on the first screen—please include that number when you report an issue. Thanks! |
Yeah sure! |
projectbuendia#307 Easy enough to not close the dialog on hitting submit. Question is tracing through to what needs to be listened to for either success or error response in order to close dialog.
Easy enough to not close the dialog on hitting submit. Question is tracing through to what needs to be listened to for either success or error response in order to close dialog. |
@zestyping Is pointing me towards PatientSearchController.mCreationSubscriber for how this request is listened to. |
And AddPatientTask.PatientAddFailedEvent and Update>PatientTask.PatientUpdateFailedEvent |
projectbuendia#307 Do not close patient_dialog_fragment on hitting "Ok". Wait until ItemCreateEvent<Patient> or ItemUpdatedEvent<Patient> to dismiss dialog. Also, disable the Ok button while request is in flight. Re-enable if submission failed. Would like a second set of eyes to check the event bus wiring. I am concerned about the potential for leaks here.
When there is an error creating the new patient, it would be good to keep showing the patient information instead of resetting everything.
Example Case 1:
Result: Server Error 500 that didn't create user. All patient info I entered is gone. I need to re-enter everything via the Add New Patient button.
Expected: Some kind of form validation to indicate I need to fill it out ID field. Or at least, keep the patient box up with the info I typed.
Example Case 2:
This is also applicable when I create a patient with the same ID as an existing patient.
The text was updated successfully, but these errors were encountered: