Skip to content
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

visit-form-validation-again #559

Open
wants to merge 1 commit into
base: live
Choose a base branch
from
Open

Conversation

eatyourpeas
Copy link
Member

Overview

Adds extra validation rules to the visit form
This is to prevent a visit being saved where a group of fields that together are required have missing data. For example, now it should not be possible to submit a height or weight without a date, or height/weight observation date without a corresponding height or weight.

Some of the tests had to be updated as some of the test data only included one field, and the dummy_sheet had to be corrected in some places where for example the patient was a smoker but no smoking date had been offered.

In subsequent commits before closing this PR I will add more tests to ensure the validation rules are working.

Code changes

Please describe the changes you made here.

Documentation changes (done or required as a result of this PR)

Please describe any changes to documentation here.

Related Issues

List any issues related to this PR here.

Mentions

@mentions of the person or team responsible for reviewing proposed changes.

…led. Fix dummy sheet where not valid. Update tests where required fields missing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant