Skip to content

Implement opt out#63

Merged
jeremyestein merged 6 commits intodevfrom
jeremy/opt-outs
Feb 18, 2026
Merged

Implement opt out#63
jeremyestein merged 6 commits intodevfrom
jeremy/opt-outs

Conversation

@jeremyestein
Copy link
Collaborator

@jeremyestein jeremyestein commented Feb 13, 2026

Implement opt-out SAFEHR-data/emap#155

We send a "reject without requeue" to rabbitmq for the message and don't write anything out to disk. See also synthetic generator change SAFEHR-data/emap#156 that sets a random 10% of MRNs to be opted out.

Also add unit tests to test opt-out, as well as general error handling in the controller. Fixed one bug discovered this way. Did a small refactor to make controller more testable. So this partially counts towards #23 .

You may want to turn on "hide whitespace" while reviewing this change, as I have refactored some module-level code into a class in src/controller.py.

@jeremyestein jeremyestein linked an issue Feb 16, 2026 that may be closed by this pull request
1 task
Base automatically changed from st/oneday-snakemake to dev February 17, 2026 16:25
@jeremyestein jeremyestein marked this pull request as ready for review February 17, 2026 16:26
Copy link
Collaborator

@skeating skeating left a comment

Choose a reason for hiding this comment

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

Makes sense to me

@jeremyestein jeremyestein merged commit c9fc3ce into dev Feb 18, 2026
2 checks passed
@jeremyestein jeremyestein deleted the jeremy/opt-outs branch February 18, 2026 14:41
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.

Check Patient has not opted out

2 participants

Comments