cdisc-org / cdisc-rules-engine

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

Handle DDF Scopes appropriately #681

Open gerrycampion opened 8 months ago

gerrycampion commented 8 months ago

The Engine should be able to handle DDF-specific scopes. When an entity is specified in the Scope, the engine should apply the rules to the items within that class.

rbakercdisc1 commented 8 months ago

There is a red line when you add Entities and Attributes to the Rule Editor. I will delete the other issue.

ASL-rmarshall commented 7 months ago

I agree that Include and Exclude in Scope need to be applied for Entities. At the moment, the rule is applied to all "datasets" (i.e., sheets) included in the test data Excel file. For rules that cross-check between entities, it's likely that information from one entity will be processed using Operations to be made available via an operation variable for checking of the primary entity dataset. In this situation, correct handling of Scope is necessary to prevent the rule being executed for the entity that is intended to be referenced only via Operations.

ASL-rmarshall commented 7 months ago

It should also be possible to define "All" (or "ALL") for Scope / Entities / Include for generic rules that are based on variable existence like DDF00010 (#94) and DDF00014 (#93). All available entity datasets should be processed if "All" or "ALL" is specified.