OHDSI / ClinicalCharacteristics

[under development] table shell approach to OMOP characterization
Apache License 2.0
0 stars 0 forks source link

Work on ConceptSet Class #25

Closed mdlavallee92 closed 2 months ago

mdlavallee92 commented 2 months ago

From this PR the following will work on a ConceptSetDefinition Line Item:

library(Capr)
cs1 <- list(
  't2d' = cs(descendants(201826), name = "t2d"),
  'ckd' = cs(descendants(46271022), name = "ckd")
)

hh <- createConceptSetLineItem(
  name = "Baseline Conditions",
  ordinal = 1,
  statistic = createPresence(),
  timeWindows = createTimeWindows(
    timeInterval(lb = -365, rb = -1),
    timeInterval(lb = 0, rb = 90)
  ),
  conceptSets = cs1,
  domain = "condition_occurrence"
)

hh$getTimeWindows()
hh$getConceptSets()
hh$getDomain()
hh$getDefinitionType()
hh$getStatisticType()
mdlavallee92 commented 2 months ago

Additional Updates: