Skip to contents

query concept records by concept_id from omop concepts table

super short name func to get info about a concept_id

Usage

omop_id(c_id, columns = "all")

oid(c_id, columns = "all")

Arguments

c_id

concept_id s to get records of

columns

which columns from omop concept table to return. default "all", options c("concept_name") & c("concept_name","domain_id")

Examples

omop_id(196523)
#> # A tibble: 1 × 10
#>   concept_id concept_name domain_id vocabulary_id concept_class_id
#>        <int> <chr>        <chr>     <chr>         <chr>           
#> 1     196523 Diarrhea     Condition SNOMED        Clinical Finding
#> # ℹ 5 more variables: standard_concept <chr>, concept_code <chr>,
#> #   valid_start_date <date>, valid_end_date <date>, invalid_reason <chr>
#can specify as an integer or not
omop_id(196523L)
#> # A tibble: 1 × 10
#>   concept_id concept_name domain_id vocabulary_id concept_class_id
#>        <int> <chr>        <chr>     <chr>         <chr>           
#> 1     196523 Diarrhea     Condition SNOMED        Clinical Finding
#> # ℹ 5 more variables: standard_concept <chr>, concept_code <chr>,
#> #   valid_start_date <date>, valid_end_date <date>, invalid_reason <chr>

oid(43807321L)
#> # A tibble: 1 × 10
#>   concept_id concept_name               domain_id vocabulary_id concept_class_id
#>        <int> <chr>                      <chr>     <chr>         <chr>           
#> 1   43807321 5 ML Epirubicin 2 MG/ML I… Drug      RxNorm Exten… Quant Clinical …
#> # ℹ 5 more variables: standard_concept <chr>, concept_code <chr>,
#> #   valid_start_date <date>, valid_end_date <date>, invalid_reason <chr>