Open ASL-rmarshall opened 8 months ago
This is the generic equivalent of the specific StudyEpoch rules created for #48, which are based on the checking components identified to determine correct ordering. I'd expect there to be at least two rules to check all the ordering components:
previous
and next
attributes. See #73.StudyDesign
). See #117.For all of these checks, I'd expect the logic to be the same as the corresponding StudyEpoch check, but either with additional entities specified in the Scope, or with the relevant entities being identified via a Match Datasets
specification.
Not all these rules should be run for EligibilityCriteria
because ordering for EligibilityCriteria
is within both StudyDesign
and category
. This may only affect the StudyDesign
components.
Checking for complementary nextId
/previousId
will be simple if references (rel_type = "reference"
) are available in the (test) data. To avoid having to update the whole test data template, the rel_type
column could be added manually. The check would be report where (rel_type
equal_to
"reference"
and (parent_rel
equal_to
nextId
or parent_rel
equal_to
previousId
) and not ((parent_rel
equal_to
nextId
and parent_id
equal_to
previousId
) or (parent_rel
equal_to
previousId
and parent_id
equal_to
nextId
))), with a Scope that Include
s all the classes than have both nextId
and previousId
Create rule defined for #89