Skip to content

Conversation

@swebberuk
Copy link
Contributor

@swebberuk swebberuk commented Nov 25, 2025

Description

Alter breast augmentation form to use YearField.

Also added visually_hidden_label_prefix/visually_hidden_label_suffix to procedure fields, to be consistent with other forms.

Jira link

https://nhsd-jira.digital.nhs.uk/browse/DTOSS-11723

Review notes

Review checklist

  • Check database queries are correctly scoped to current_provider

@swebberuk swebberuk marked this pull request as ready for review November 25, 2025 09:16
@swebberuk swebberuk requested a review from a team as a code owner November 25, 2025 09:16
min_year = max_year - 80
year_outside_range_error_message = (
f"Year should be between {min_year} and {max_year}."
self.create_year_outside_range_error_messsage(procedure_year)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I preferred this as it was, rather than extracting a helper, as it's easier to see what's being asserted

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, have reverted back to how it was. Have removed create_year_outside_range_error_messsage.

@swebberuk swebberuk force-pushed the DTOSS-11723-breast-augmentation-year-field branch from d7d8249 to 941eb13 Compare November 25, 2025 09:53
@malcolmbaig malcolmbaig changed the title breast augmentation form uses YearField Breast augmentation form uses YearField Nov 25, 2025
@swebberuk swebberuk merged commit 5ba7bfd into main Nov 25, 2025
23 of 24 checks passed
@swebberuk swebberuk deleted the DTOSS-11723-breast-augmentation-year-field branch November 25, 2025 11:01
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.

3 participants