cdisc-org / cdisc-rules-engine

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

There needs to be better ways of Include/Excluding Supp Domains #752

Open SFJohnson24 opened 1 month ago

SFJohnson24 commented 1 month ago

Rule Information

Describe the bug Currently in rule editor Supp domains are assigned their dataset name as the domain. https://github.com/cdisc-org/conformance-rules-editor/pull/232 This PR rolled back the fix for that issue as it broke several published rules. We need a defined way to ID supp domains in engine.

Error returned from Rule Engine CG0017 gives incorrect issues as it perceives SUPP-- as a name that is too long due to SUPP-- domain not being excluded CG0140 skips validation as it looks to include the domain SUPP--, when the RDOMAIN is correctly extracted from the data it SUPP-- as a domain does not exist.

SFJohnson24 commented 1 month ago

I believe the easiest way would be to add a 'include_supp_dataset' flag to to the domains portion of scope. This would look like: "Scope": { "Domains": include_split_datasets: false include_supp_datasets: true } This would replace the use of SUPP-- as a domain in scope that can be excluded and included and the flag would allow us to correctly grab the RDOMAIN off the supp. This would involve edits to:

SFJohnson24 commented 1 month ago

After working with this ticket, it appears the issue with CG0140 is 2 fold: