-
Notifications
You must be signed in to change notification settings - Fork 4
Make 'Year removed' optional for 'Implanted device has been removed' #761
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
Conversation
21ed1a2 to
c037265
Compare
| ) | ||
|
|
||
|
|
||
| class TestYearField: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added TestYearField. This will be provided by #739 once it has been merged to main and this branch rebased.
c037265 to
2891f9c
Compare
manage_breast_screening/mammograms/forms/implanted_medical_device_history_form.py
Outdated
Show resolved
Hide resolved
| return implanted_medical_device_history | ||
|
|
||
| def full_clean(self): | ||
| # if a removal_year is provided then remove it if device_has_been_removed is False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if FormWithConditionalFields should have a way of handling this use case too (i.e. declaring that a field should only be parsed in a certain case, even if it is not required to pass a value) 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that could be useful. Should I create a ticket in the backlog to investigate that? I don't want it to be a requirement of merging this PR, as these changes are required for DTOSS-11528 (updating implanted medical device history).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah that would be great, don't let it block this work 👍🏻
b55e90a to
1fc4158
Compare
1fc4158 to
93033e4
Compare
93033e4 to
559353e
Compare
Description
On the "Add details of implanted medical device" page make "Year removed" optional for "Removed implants"/"Implanted device has been removed".
This is to make it consistent with "Removed devices"/"Implants have been removed" on the "Add details of breast implants or augmentation" page.
Making this change in preparation for DTOSS-11528 (update implanted medical device history).
Jira link
https://nhsd-jira.digital.nhs.uk/browse/DTOSS-11720
Review notes
Review checklist