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

[DC-3893] Add note and note_nlp to legacy deid #1880

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions data_steward/deid/config/ids/tables/note.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"suppress": [
{
"comment": "removing rows containing values along the following ICD9CM and ICD10CM parent codes using a lookup table for all concept_ids to be suppressed for note_type_concept_id",
"on": " exists (select * from `:idataset.note` as record2 where note.note_id = record2.note_id and note_type_concept_id in (select concept_id from `:idataset._concept_ids_suppression`)) "
},
{
"comment": "removing rows containing values along the following ICD9CM and ICD10CM parent codes using a lookup table for all concept_ids to be suppressed for note_class_concept_id",
"on": " exists (select * from `:idataset.note` as record2 where note.note_id = record2.note_id and note_class_concept_id in (select concept_id from `:idataset._concept_ids_suppression`)) "
},
{
"comment": "removing rows containing values along the following ICD9CM and ICD10CM parent codes using a lookup table for all concept_ids to be suppressed for encoding_concept_id",
"on": " exists (select * from `:idataset.note` as record2 where note.note_id = record2.note_id and encoding_concept_id in (select concept_id from `:idataset._concept_ids_suppression`)) "
},
{
"comment": "removing rows containing values along the following ICD9CM and ICD10CM parent codes using a lookup table for all concept_ids to be suppressed for language_concept_id",
"on": " exists (select * from `:idataset.note` as record2 where note.note_id = record2.note_id and language_concept_id in (select concept_id from `:idataset._concept_ids_suppression`)) "
}
]
}
12 changes: 12 additions & 0 deletions data_steward/deid/config/ids/tables/note_nlp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"suppress": [
{
"comment": "removing rows containing values along the following ICD9CM and ICD10CM parent codes using a lookup table for all concept_ids to be suppressed for note_nlp_concept_id",
"on": " exists (select * from `:idataset.note_nlp` as record2 where note_nlp.note_nlp_id = record2.note_nlp_id and note_nlp_concept_id in (select concept_id from `:idataset._concept_ids_suppression`)) "
},
{
"comment": "removing rows containing values along the following ICD9CM and ICD10CM parent codes using a lookup table for all concept_ids to be suppressed for note_nlp_source_concept_id",
"on": " exists (select * from `:idataset.note_nlp` as record2 where note_nlp.note_nlp_id = record2.note_nlp_id and note_nlp_source_concept_id in (select concept_id from `:idataset._concept_ids_suppression`)) "
}
]
}