R/rxclass-lookups.R

Defines functions get_lookup

get_lookup <-
  function() {
  tibble::tribble(
    ~classType, ~relaSources,
    "ATC1-4", "ATC",
    "CHEM", "DAILYMED",
    "CHEM", "FDASPL",
    "CHEM", "MEDRT",
    "DISEASE", "MEDRT",
    "DISPOS", "SNOMEDCT",
    "EPC", "DAILYMED",
    "EPC", "FDASPL",
    "MESHPA", "MESH",
    "MOA", "DAILYMED",
    "MOA", "FDASPL",
    "MOA", "MEDRT",
    "PE", "DAILYMED",
    "PE", "FDASPL",
    "PE", "MEDRT",
    "PK", "MEDRT",
    "SCHEDULE", "RXNORM",
    "STRUCT", "SNOMEDCT",
    "TC", "FMTSME",
    "VA", "VA")
  }

tibble::tribble(
  ~`classType`, ~`vocabulary_id`,
  'ATC1-4'    , 'ATC'           ,
  'CHEM'      , 'MeSH'          ,
  'DISEASE'   , 'MeSH'          ,
  'DISPOS'    , 'SNOMED'        ,
  'EPC'       , 'MEDRT'         ,
  'MESHPA'    , 'MeSH'          ,
  'MOA'       , 'MEDRT'         ,
  'PE'        , 'MEDRT'         ,
  'PK'        , 'MEDRT'         ,
  'SCHEDULE'  , NA_character_   ,
  'STRUCT'    , 'SNOMED'        ,
  'TC'        , 'MEDRT'         ,
  'VA'        , 'NDFRT'
)

relasource_vocabulary_lookup <-
  tibble::tribble(
    ~`relaSources`, ~`omop_vocabulary_id`, ~`custom_vocabulary_id`,
    'ATC'         , 'ATC'                ,  NA_character_,
    'DAILYMED'    ,  NA_character_       , "DailyMed",
    'FDASPL'      , 'SPL'                ,  NA_character_,
    'MEDRT'       , 'MEDRT'              ,  NA_character_,
    'SNOMEDCT'    , 'SNOMED'             ,  NA_character_,
    'MESH'        , 'MeSH'               ,  NA_character_,
    'RXNORM'      , 'RxNorm'             ,  NA_character_,
    'FMTSME'      , 'MEDRT'              ,  NA_character_,
    'VA'          , NA_character_        , "VA"
  )

classtype_lookup <-
tibble::tribble(
  ~`classType`, ~`omop_vocabulary_id`, ~`custom_vocabulary_id`,
  'ATC1-4'    , 'ATC'                ,  NA_character_,
  'CHEM'      , 'MeSH'               ,  NA_character_,
  'DISEASE'   , 'MeSH'               ,  NA_character_,
  'DISPOS'    , 'SNOMED'             ,  NA_character_,
  'EPC'       , 'MEDRT'              ,  NA_character_,
  'MESHPA'    , 'MeSH'               ,  NA_character_,
  'MOA'       , 'MEDRT'              ,  NA_character_,
  'PE'        , 'MEDRT'              ,  NA_character_,
  'PK'        , 'MEDRT'              ,  NA_character_,
  'SCHEDULE'  , NA_character_        ,  'CSA'        ,
  'STRUCT'    , 'SNOMED'             ,  NA_character_,
  'TC'        , 'MEDRT'              ,  NA_character_,
  'VA'        , NA_character_        , 'VA'
)

relasource_dictionary <-
tibble::tribble(
  ~`relaSources`, ~`relaSourcesDefinition`,
  'ATC', 'The fifth level of the ATC tree contains the drugs.',
  'DailyMed','The DailyMed API maps substances through their UNII Code values to EPC, Chem, MoA and PE classes.',
  'FDASPL','The FDASPL drug source maps drug concepts in MED-RT to EPC, Chem, MoA and PE classes.',
  'FMTSME','The FMTSME drug source maps drug concepts in MED-RT to TC classes.',
  'MEDRT','Drug concepts in MED-RT are associated to Disease, MoA, Chem, PE, and PK classes.',
  'MeSH','MeSH drugs are associated with the pharmacological actions.',
  'RxNorm','CSA schedules for drug products are contained in the RxNorm data set in several drug sources.',
  'SNOMEDCT','Drug classes (groupers) from the medicinal product hierarchy of SNOMED CT, linked to medicinal products (as RxNorm ingredients).',
  'VA','The VA drugs are associated with the VA classes.'
)
meerapatelmd/setupRxNorm documentation built on Sept. 15, 2022, 9:25 a.m.