Skip to content

Conversation

@miriam-z
Copy link
Contributor

What is the change?

Added a new "Asbestos Exposure" question page to the lung cancer screening questionnaire flow. The page asks users if they have ever worked in a job where they might have been
exposed to asbestos.

Changes include:

  • Added asbestos_exposure field to ResponseSet model with AsbestosExposureValues (Yes/No choices)
  • Created AsbestosExposureForm with appropriate validation and error messages
  • Created asbestos_exposure view with GET/POST handling
  • Created asbestos_exposure.jinja template following NHS.UK design patterns, including:
  • Collapsible details component explaining what asbestos is
  • Information about industries and roles with potential exposure
  • Examples of jobs at risk (heating engineers, demolition workers, plumbers, etc.)
  • Updated questionnaire flow: ethnicity → asbestos_exposure → responses
  • Updated responses summary page to display asbestos exposure answer
  • Added comprehensive unit tests for both form and view
  • Created and applied database migration 0016_responseset_asbestos_exposure

Why are we making this change?

Asbestos exposure is a significant risk factor for lung cancer. This question helps identify individuals who may have worked in occupations with potential asbestos exposure,
particularly in:

  • Building and construction industries (especially 1950s-1990s)
  • Roles involving work in old buildings

Capturing this information allows for:

  • More accurate lung cancer risk assessment
  • Better identification of high-risk individuals who may benefit from screening
  • Compliance with clinical guidelines that consider occupational exposure history

Themitchell
Themitchell previously approved these changes Nov 12, 2025
@miriam-z miriam-z force-pushed the PPHA-269-asbestos-page branch from 9a46902 to 29270dc Compare November 13, 2025 13:16
@sonarqubecloud
Copy link

@Themitchell Themitchell merged commit a8ba634 into main Nov 13, 2025
23 checks passed
@Themitchell Themitchell deleted the PPHA-269-asbestos-page branch November 13, 2025 13:35
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.

2 participants