cdisc-org / analysis-results-standard

This repository will be where all the results for the Analysis Results Standard will be delivered.
MIT License
50 stars 10 forks source link

As analysis design I want to use groupings with compound expressions #136

Closed drewcdisc closed 7 months ago

drewcdisc commented 1 year ago

Regarding using groupings with compound expressions.:

ASL-rmarshall commented 1 year ago

While developing the FDA STF example, I tried to create some age group groupings using compound expressions. The compound expressions could be converted from the Excel template into YAML format, but conversion of YAML to JSON failed because the whereClauses in the CompoundGroupExpression class can currently only be specified as groupId references (not as fully specified conditions or where clauses). I've seen some LinkML examples using:

any_of:
  - inlined: true
  - inlined: false

(i.e. sub-classes can either be fully specified or referenced by identifier) but haven't managed to get this to work without getting an error at some point in the process (generation of YAML, conversion to JSON, etc.).

ASL-rmarshall commented 1 year ago

Additional thoughts:

ASL-rmarshall commented 7 months ago

The model has been updated to support the definition of compound expressions using, in the whereClauses attribute, either of the following:

This change has been applied for all types of WhereClause, including WhereClause, AnalysisSet, DataSubset and Group.