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: extract_prevalent_diabetes() #13

Closed Aastedet closed 6 months ago

Aastedet commented 1 year ago

A function that takes the output of create_diabetes_cohort() and filters it to only individuals with prevalent diabetes: individuals with diabetes diagnosed prior to a specified index date who are also alive one this specified index date.

Also re-classifies diabetes type depending on insulin purchases in the year prior to the index date (very few individuals - we could potentially discuss with stakeholders whether to omit this in the future).

lwjohnst86 commented 6 months ago

These issues are outdated, and replaced by others now