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(
  sectionLabel,
  domain,
  conceptSets,
  timeIntervals,
  statistic
)

Arguments

sectionLabel

The name of the concept set batch

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 TimeIntervalClass objects

statistic

The Statistic object to be used to evaluate the line items

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