Adjudicate concepts

Methods


ConceptAdjudicator$adjudicateConcepts()

Usage

ConceptAdjudicator$adjudicateConcepts(
  concepts,
  name,
  clinicalDefinition = NULL,
  llmClient,
  costTracker = NULL
)

Arguments

concepts

An object of type Concepts as created using asConcepts().

name

The name of the concept set.

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.

Returns

The same concepts as provided in the input, but with their status tag set to either 'APPROVED' or 'REJECTED', and an additional rationale column capturing the LLM rationale.


ConceptAdjudicator$clone()

The objects of this class are cloneable with this method.

Usage

ConceptAdjudicator$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.