Find seed concepts

Methods


SeedConceptFinder$findSeedConcepts()

Return seed concepts given a concept set name and optionally a clinical definition. The llmClient is only used when addSynonyms and/or adjudicateFuzzySearchResults is TRUE in the arguments.

Throws an error of class NoSeedConceptsError when no seed concepts are found.

Usage

SeedConceptFinder$findSeedConcepts(
  name,
  clinicalDefinition = NULL,
  llmClient = NULL,
  costTracker = NULL,
  domainSettings = NULL,
  excludedVocabularyIds = NULL,
  connection = NULL,
  vocabDatabaseSchema = NULL
)

Arguments

name

The name to use to find concepts.

clinicalDefinition

Optional: a clinical definition of the concept set target.

llmClient

An ellmer chat object to connect to a large language model, as created for example using ellmer::chat_ollama().

costTracker

An environment with an amount variable for keeping track of the total LLM costs.

domainSettings

An object of type DomainSettings as created by getDomainSettings().

excludedVocabularyIds

Character vector of OHDSI Vocabulary names to exclude.

connection

An open connection to a database server, as created by DatabaseConnector::connect().

vocabDatabaseSchema

The database and or schema where the OHDSI Vocabulary tables are loaded.

Returns

Returns an object of type Concepts with the seed concepts.


SeedConceptFinder$clone()

The objects of this class are cloneable with this method.

Usage

SeedConceptFinder$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.