Skip to content

Commit

Permalink
Updated convenience tables
Browse files Browse the repository at this point in the history
  • Loading branch information
dogversioning committed Aug 28, 2024
1 parent c387a1c commit 6d64441
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cumulus_library_umls/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.0.0"
__version__ = "1.1.0"
9 changes: 5 additions & 4 deletions cumulus_library_umls/umls/umls_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,13 @@ def prepare_queries(
self.queries.append(
"""CREATE TABLE umls__mrrel_is_a AS
SELECT * FROM umls.mrrel
WHERE REL = 'CHD'
OR RELA in ('isa','tradename_of','has_tradename','has_basis_of_strength_substance')"""
WHERE (REL = 'CHD'
OR RELA IN ('isa','tradename_of','has_tradename','has_basis_of_strength_substance'))
AND REL NOT IN ('RB', 'PAR')"""
)
self.queries.append(
"""CREATE TABLE umls__mrconso_drugs AS
SELECT * FROM umls.mrconso
WHERE SAB in ('ATC','CVX','DRUGBANK','GS','MMSL','MMX','MTHCMSFRFMTHSPL','NDDF',
'RXNORM','SNOMEDCT_US','USP','VANDF')"""
WHERE SAB IN ('ATC','CVX','DRUGBANK','GS','MED-RT','MMSL','MMX','MTHCMSFRF','MTHSPL',
'NDDF','RXNORM','SNOMEDCT_US','USP','VANDF')"""
)

0 comments on commit 6d64441

Please sign in to comment.