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

Define rule DDF99978: For a ScheduledInsance that references a ScheduleTimeline, the id of the referenced ScheduledTimeline cannot be the same as the id of the parent ScheduleTimeline of the ScheduledInstance. #148

Closed DianeWold closed 5 months ago

DianeWold commented 7 months ago

CHK0100: A scheduledInstance should not point to it's own timeline. The ScheduledInstance can be either a ScheduledDecisionInstance or a ScheduledActivityInstance.

DianeWold commented 7 months ago

The string of classes involved in this rule: ScheduleTimeline as the parent of ScheduledInstance via the "instances" relationship ScheduledInstance as the parent of ScheduleTimeline via the "timeline" relationship ScheduleTimeline I think that the fact that a ScheduledInstance can be a ScheduledDecisionInstance or a ScheduledActivityInstance is not relevant for the check. I don't know whether this is a check that can be executed.

ASL-rmarshall commented 7 months ago

This should be possible as a check for timelineId equal_to parent_id with a Scope that Includes ScheduledActivityInstance and ScheduledDecisionInstance

ASL-rmarshall commented 6 months ago

Moving to Done as work has progressed for #161