cdisc-org / cdisc-rules-engine

Open source offering of the cdisc rules engine
MIT License
46 stars 12 forks source link

As VALIDATOR, I want to cross-check my study data against the study define.xml for inconsistent variable role so that I can stay compliant with CG0010 #305

Open chowsanthony opened 1 year ago

chowsanthony commented 1 year ago

Rule: Metadata attribute of Variable Role = IG Role for domains in IG, Metadata attribute of Variable Role = Model Role for custom domains

ItemRef[@Role] matches those in CDISC Library.

See https://github.com/cdisc-org/cdisc-rules-engine/issues/302 for definition of custom domain. See https://github.com/cdisc-org/cdisc-rules-engine/issues/303 for definition of modeled domain.

Custom domain wills check against the corresponding SDTM. Modeled domains will check against the corresponding SDTMIG.

nickdedonder commented 1 year ago

For custom domains the information needs to be taken from the class in the model and for non-custom domain it merges with the domain metadata from the IG as well as the model. We need a new dataset builder for define with library metadata