cdisc-org / ddf-core-poc

This repository will contain the results from the Proof of Concept project.
MIT License
0 stars 1 forks source link

Create rule DDF00029: For classes with next and previous relationships, the next and previous relationships must establish an ordered list of instances of the class (valid Encounter id values for nextId and previousId). #134

Closed ASL-rmarshall closed 5 months ago

ASL-rmarshall commented 8 months ago

Create rule to check for valid nextId and previousId values for Encounter as defined for #89

ASL-rmarshall commented 8 months ago

@DianeWold And another one. This is checking the valid id values are used in nextId and previousId in the Encounter class.

DianeWold commented 8 months ago

Ran negative test data, and rules engine found the 4 errors: Row 1: previousID is not an encounter in this study design (not in the data) Row 4: nextID is an encounter in the wrong study design. Row 6: previousID is an encounter in the wrong study design. Row 7: nextID is not an encounter in this study design (not in data) Positive data ran as expected.

ASL-rmarshall commented 6 months ago

This rule has been updated to only report where rel_type = "definition". Associated test data have been updated and unit tests have been rerun successfully.