Code used to build the CHoRUS year 1 cohort OMOP tables #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'm adding the code I used to build the CHoRUS year 1 cohort OMOP tables to the protected
chorus_year1_cohort
branch.This code has a lot of changes because it removes back ticks around the @ dataset / table calls.
More importantly, it makes changes to the
SELECT
statements to only include asubject_id
if it is found in an associated table (of the 2,000 subjects being submitted as the year 1 cohort). It also filtershadm_id
by a table that only include IDs for hospital admissions between 2011 - 2016. These are the years we have CXR and Waveform data available. See this line for how this was done to createsrc_admissions
. This approach was taken in general.Finally, it removes the code for adding extracted waveform features to the OMOP tables. Since these tables are not available yet they will be added at a later time by the group at Tufts.