steno-aarhus / osdc

Open-Source Diabetes Classifier: an R package to classify diabetes status in Danish registers
https://steno-aarhus.github.io/osdc/
Other
1 stars 1 forks source link

Create function `exclude_potential_pcos()` #98

Open signekb opened 5 months ago

signekb commented 5 months ago

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).

https://github.com/steno-aarhus/osdc/blob/375e652fa27810feddb9e9cf53bc8673e2b43baa/vignettes/function-flow.Rmd#L150-L163

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

lwjohnst86 commented 4 months ago

Include logic in algorithm.csv as well