DefaultSeedConceptFinder constructor

Super class

SeedConceptFinder -> DefaultSeedConceptFinder

Methods


DefaultSeedConceptFinder$new()

Usage

DefaultSeedConceptFinder$new(
  addSynonyms = TRUE,
  maxN = 25,
  minCount = 0,
  fuzzyVocabSearchType = "HECATE",
  adjudicateFuzzySearchResults = TRUE
)

Arguments

addSynonyms

Generate synonyms of the concept target name before search for matching concepts?

maxN

Maximum number of seed concepts to return.

minCount

Minimum number of record counts for a concept to be included.

fuzzyVocabSearchType

Type of fuzzy vocabulary search. Currently only 'HECATE' is supported.

adjudicateFuzzySearchResults

Perform a first pass adjudication on the fuzzy vocabulary search results to remove concepts that are obviously wrong?

Returns

An object of type DefaultSeedConceptFinder


DefaultSeedConceptFinder$findSeedConcepts()

Default implementation of the concept finder.

Usage

DefaultSeedConceptFinder$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.


DefaultSeedConceptFinder$clone()

The objects of this class are cloneable with this method.

Usage

DefaultSeedConceptFinder$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.