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

Functions to extract the DoB / age from CHI #42

Closed
Moohan opened this issue Aug 18, 2020 · 1 comment · Fixed by #70
Closed

Functions to extract the DoB / age from CHI #42

Moohan opened this issue Aug 18, 2020 · 1 comment · Fixed by #70
Assignees
Labels
enhancement New feature or request

Comments

@Moohan
Copy link
Member

Moohan commented Aug 18, 2020

This is something I've been doing a bit recently and have done in the past. Have also had conversations with other people where they have needed to do the same thing.

University of Edinburgh do it here https://github.com/SurgicalInformatics/chiTools which I think is a pretty fast implementation (although could probably be faster with gsub instead of stringr) but would need some modification to align with phsmethods other CHI related functions.

I think my implementation https://github.com/Health-SocialCare-Scotland/cocin-scotland/blob/master/functions/fix_age_sex_from_chi.R is probably slower, it also has a fixed max age.

I like the idea of the UoE cutoff_year param, could also have a max_age param which would serve the same purpose but obviously take input slightly differently.

@Moohan
Copy link
Member Author

Moohan commented May 21, 2021

@Moohan Moohan mentioned this issue Oct 5, 2021
@Tina815 Tina815 closed this as completed May 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants