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

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

Create function include_diabetes_diagnosis() #91

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

Comments

@signekb
Copy link
Contributor

signekb commented May 16, 2024

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

### Hospital diagnosis of diabetes
The function `include_diabetes_diagnoses()` uses the hospital contacts
from LPR2 and 3 to include all dates of diabetes diagnoses. Diabetes
diagnoses from both ICD 8 and ICD 10 are included.
This function contains two helper functions:
- `keep_diabetes_icd10()`
- `keep_diabetes_icd8()`
<!-- TODO: Add details on how this filtering should be done, e.g., diagnosis codes -->
<!-- TODO: Which specific ICD 8 and 10 codes are included? -->

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
Copy link
Member

Include logic in algorithm.csv as well

@signekb signekb self-assigned this Jun 19, 2024
@signekb signekb changed the title Create function: include_diabetes_diagnosis() Create function include_diabetes_diagnosis() 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