Skip to content

PPHA-714: SQL script to export NHS Numbers of submitted responses from DB to CSV#439

Merged
stephhou merged 12 commits intomainfrom
PPHA-714-Script-to-get-submitted-eligible-participants
Apr 30, 2026
Merged

PPHA-714: SQL script to export NHS Numbers of submitted responses from DB to CSV#439
stephhou merged 12 commits intomainfrom
PPHA-714-Script-to-get-submitted-eligible-participants

Conversation

@stephhou
Copy link
Copy Markdown
Contributor

@stephhou stephhou commented Apr 10, 2026

What is the change?

Added a new SQL script that will be run to extract NHS numbers of participants that have completed the questionnaire.

Why are we making this change?

To share the NHS Numbers with one partner to inform them of participants that have completed the questionnaire

@Themitchell Themitchell changed the title PPHA-714 SQL script to export NHS Numbers of submitted responses from DB to CSV PPHA-714: SQL script to export NHS Numbers of submitted responses from DB to CSV Apr 13, 2026
@stephhou stephhou marked this pull request as ready for review April 20, 2026 11:42
Copilot AI review requested due to automatic review settings April 20, 2026 11:42
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a SQL script intended to export NHS numbers for participants who have submitted a questionnaire response to a CSV file (for partner sharing).

Changes:

  • Added scripts/sql/export_valid_responses.sql to export distinct NHS numbers for submitted questions_responseset records.
  • Configured the script to stop on error and write output as CSV with a header.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread scripts/sql/export_valid_responses.sql Outdated
Comment thread scripts/sql/export_valid_responses.sql Outdated
Comment thread scripts/sql/export_valid_responses.sql Outdated
stephhou and others added 3 commits April 21, 2026 13:30
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Steph Housden <167300771+stephhou@users.noreply.github.com>
@sonarqubecloud
Copy link
Copy Markdown

@stephhou stephhou merged commit 0602046 into main Apr 30, 2026
25 checks passed
@stephhou stephhou deleted the PPHA-714-Script-to-get-submitted-eligible-participants branch April 30, 2026 15:17
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