Skip to content
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

Switch to inclusion table for T1OO handling #1034

Merged
merged 8 commits into from
Aug 2, 2024
Merged

Conversation

evansd
Copy link
Contributor

@evansd evansd commented Jul 24, 2024

This switches the T1OO logic to use a table of explicitly allowed patients, rather than a table of exclusions. This allows TPP to apply more complex criteria in determining the appropriate set of patients.

The handling of different values of the `?include_t1oo` parameter is
already tested in `test_tpp_backend_modify_dsn`. Here we want to test
the query behaviour.
@evansd evansd marked this pull request as draft July 24, 2024 13:47
@evansd evansd marked this pull request as ready for review August 2, 2024 11:14
We now only include patients who exist in a specific list of allowed
patients. This allows TPP to apply more complex logic in the
inclusion/exclusion criteria than just the presence of an opt-out
record.
This affects whether or not the initial join is with the `Patient` table
or a temporary table and so we should test that the T1OO code correctly
handles both cases.
These were sensitive to the exact number of joins the T1OO logic used.
@evansd evansd merged commit f07867c into main Aug 2, 2024
6 checks passed
@evansd evansd deleted the evansd/t1oo-update-v2 branch August 2, 2024 14:05
@evansd evansd mentioned this pull request Aug 2, 2024
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