Skip to contents

Get a vocabulary concept, from the vocabulary_id and the concept_id or the concept_name

Usage

get_vocabulary_concept(
  output,
  m = shiny::reactiveValues(),
  i18n = character(),
  ns = character(),
  vocabulary_id = character(),
  concept_name = character(),
  concept_id = integer(),
  method = character()
)

Arguments

output

Shiny output variable

m

A shiny::reactiveValues object, used to communicate between modules

i18n

Translator object from shiny.i18n library

ns

Shiny namespace

vocabulary_id

Value of vocabulary_id where the concept will be added (character)

concept_name

Value of concept_name (character)

concept_id

Valud of concept_id (integer)

method

Method used to get the vocabulary concept. Could be "concept_name" or "concept_id" (character)

Examples

if (FALSE) {
get_vocabulary_concept(output = output, m = m,  i18n = i18n, ns = ns,
  vocabulary_id = "MIMIC-IV", concept_name = "Diuresis", method = "concept_name")
}