Create a batch of source concept set line items from a list of SourceConceptSet classes.

createSourceConceptSetLineItemBatch(
  sectionLabel,
  domain,
  sourceConceptSets,
  timeIntervals,
  statistic,
  typeConceptIds = c()
)

Arguments

sectionLabel

(OPTIONAL) The name of the line item (if not provided, the name will be set to the Capr concept set name)

domain

The domain of the concept set (must be one of 'Condition', 'Drug', 'Procedure', 'Observation', 'Measurement', 'Device')

timeIntervals

A list of TimeIntervalClass objects

statistic

The Statistic object to be used to evaluate the line item

typeConceptIds

(OPTIONAL) A list of type concept IDs to use to limit the concept set

sourceConceptSet

A list of SourceConcept R6 object created using the sourceConceptSet function

Value

A list of SourceConceptSetLineItem objects