get_name_cluster: Get a Name Cluster

Description Usage Arguments Examples

View source: R/get_name_cluster.R

Description

A 'Name Cluster' is a character vector of all the unique labels associated with a concept, including labels derived from 'Maps to' relationships from the Concept Relationship table.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
get_name_cluster(
  concept_obj,
  vocab_schema = "omop_vocabulary",
  conn,
  conn_fun = "connectAthena()",
  cache_only = FALSE,
  skip_cache = FALSE,
  override_cache = FALSE,
  render_sql = TRUE,
  verbose = TRUE,
  sleepTime = 1
)

Arguments

concept_obj

May be an integer or a 'concept' class object.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
library(chariot)
library(tidyverse)

conn <- connectAthena()


# Drug Domain
concept_obj <- get_concept(conn = conn,
                           concept_id = 1308216)
concept_obj
get_name_cluster(conn = conn,
                 concept_obj = concept_obj)


# Cancer Condition Domain
concept_obj <- get_concept(conn = conn,
                           concept_id = 4187868)
concept_obj
get_name_cluster(conn = conn,
                 concept_obj = concept_obj)

# Chronic Disease Domain
concept_obj <- get_concept(conn = conn,
                           concept_id = 319835)
concept_obj
get_name_cluster(conn = conn,
                 concept_obj = concept_obj)

# Measurement Domain
concept_obj <- get_concept(conn = conn, concept_id = 4298431)
concept_obj
get_name_cluster(conn = conn,
                 concept_obj = concept_obj)


dcAthena(conn = conn)

patelm9/chariot documentation built on Feb. 19, 2022, 11:29 a.m.