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 `include_diabetes_diagnosis()` #91

Open signekb opened 4 months ago

signekb commented 4 months ago

Following the functionality flow, this function filters necessary diagnoses from lpr_adm and lpr_diag to create the diabetes cohort.

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

From @Aastedet 's original issue #6 :

At a point we may have to address differences between LPR2 and LPR3 data, unless we delegate that to the users' preprocessing of raw data.

lwjohnst86 commented 3 months ago

Include logic in algorithm.csv as well