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

Create function exclude_potential_pcos() #98

Open
signekb opened this issue May 16, 2024 · 1 comment
Open

Create function exclude_potential_pcos() #98

signekb opened this issue May 16, 2024 · 1 comment
Assignees

Comments

@signekb
Copy link
Contributor

signekb commented May 16, 2024

Based on the functionality flow, this function should censor prescription purchases of metformin due to potential polycystic ovary syndrome (using sex and date of birth from BEF data).

### Metformin purchases for women below age 40
The function `exclude_potential_pcos()` as input to exclude all
purchases of metformin by women below age 40 (i.e., \<= 39 years old) at
the date of purchase. It relies on REGISTER as input.
This function contains two helper functions:
- `keep_women()`
- `drop_age_40_below()`
<!-- TODO: Add details on how this filtering should be done -->
<!-- TODO: Add which register this uses -->

In @Aastedet 's original script is it located at the top of population.R.

@lwjohnst86
Copy link
Member

Include logic in algorithm.csv as well

@signekb signekb changed the title Create function: exclude_potential_pcos() Create function exclude_potential_pcos() Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants