DefaultSeedConceptFinder constructor
SeedConceptFinder -> DefaultSeedConceptFinder
DefaultSeedConceptFinder$new()DefaultSeedConceptFinder$new(
addSynonyms = TRUE,
maxN = 25,
minCount = 0,
fuzzyVocabSearchType = "HECATE",
adjudicateFuzzySearchResults = TRUE
)addSynonymsGenerate synonyms of the concept target name before search for matching concepts?
maxNMaximum number of seed concepts to return.
minCountMinimum number of record counts for a concept to be included.
fuzzyVocabSearchTypeType of fuzzy vocabulary search. Currently only 'HECATE' is supported.
adjudicateFuzzySearchResultsPerform a first pass adjudication on the fuzzy vocabulary search results to remove concepts that are obviously wrong?
DefaultSeedConceptFinder$findSeedConcepts()Default implementation of the concept finder.
DefaultSeedConceptFinder$findSeedConcepts(
name,
clinicalDefinition = NULL,
llmClient = NULL,
costTracker = NULL,
domainSettings = NULL,
excludedVocabularyIds = NULL,
connection = NULL,
vocabDatabaseSchema = NULL
)nameThe name to use to find concepts.
clinicalDefinitionOptional: a clinical definition of the concept set target.
llmClientAn ellmer chat object to connect to a large language model, as created for example using
ellmer::chat_ollama().
costTrackerAn environment with an amount variable for keeping track of the total LLM costs.
domainSettingsAn object of type DomainSettings as created by getDomainSettings().
excludedVocabularyIdsCharacter vector of OHDSI Vocabulary names to exclude.
connectionAn open connection to a database server, as created by DatabaseConnector::connect().
vocabDatabaseSchemaThe database and or schema where the OHDSI Vocabulary tables are loaded.