diff --git a/cumulus_library_umls/__init__.py b/cumulus_library_umls/__init__.py index 5becc17..6849410 100644 --- a/cumulus_library_umls/__init__.py +++ b/cumulus_library_umls/__init__.py @@ -1 +1 @@ -__version__ = "1.0.0" +__version__ = "1.1.0" diff --git a/cumulus_library_umls/umls/umls_builder.py b/cumulus_library_umls/umls/umls_builder.py index ecd4626..633d2dd 100644 --- a/cumulus_library_umls/umls/umls_builder.py +++ b/cumulus_library_umls/umls/umls_builder.py @@ -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')""" )