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

Phecode_mapping -- include date. #12

Closed
gpbatra opened this issue May 6, 2019 · 3 comments
Closed

Phecode_mapping -- include date. #12

gpbatra opened this issue May 6, 2019 · 3 comments
Assignees

Comments

@gpbatra
Copy link
Contributor

gpbatra commented May 6, 2019

How do we choose which date to include in phecode_mapping output table?

Admidate, operdate, etc?

Should we have a best value, or include all dates?

Should we create an ordered disease progression table, so multiple phecodes don't appear over the years if a patient is assigned a phecode early on?

Should pick one protocol and stick with it, including MPG mappings.

@carbocation
Copy link
Collaborator

Re: dates, for my work, I have preferentially used admidate if not null, then opdate if not null, then epistart if the others are unavailable. Not sure if others have a different experience or different preferences.

Re: ordered disease progression table, I think that would be a straightforward MIN(date) / GROUP BY if the table has all the data.

@carbocation
Copy link
Collaborator

Note to look at this code again once we're satisfied with the disease code, which makes some decisions about date order.

@lucidtronix
Copy link
Collaborator

@carbocation and I did this a while back. We jerry-rigged the phecodes into tab files and passed it to disease.linux. The disease code is siiiiickkkk! The tab files live at: gs://ml4cvd/phecode_tab_files/ and the TSVs that have been imported into bigquery are at gs://ml4cvd/phecode_bq_tsvs/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants