The name of each line item will be set to the name of its Capr concept set. All line items will use the same statistic, domain, type concepts, and visit concepts. It is not possible to specify source concept IDs.

createConceptSetLineItemBatch(
  name,
  statistic,
  domain,
  conceptSets,
  timeIntervals,
  typeConceptIds = c(),
  visitOccurrenceConceptIds = c()
)

Arguments

name

The name of the concept set batch

statistic

The Statistic object to be used to evaluate the line items

domain

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

conceptSets

A list of concept set Capr objects

timeIntervals

A list of TimeInterval class objects

typeConceptIds

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

visitOccurrenceConceptIds

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

Value

A list of ConceptSetLineItem objects