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 DDF99973: A ScheduleTimeline must have at least one ScheduledInstance, exactly one "entry" link to a ScheduledInstance and at least one link to ScheduledTimelineExit. #158

Closed DianeWold closed 2 months ago

DianeWold commented 4 months ago

CHK0084: 1 entry id, 1 exit id and at least 1 referenced instance A ScheduleTimeline must have at least one "instances" link to a ScheduledInstance. Among the ScheduledInstances linked to a ScheduleTimeline via the "instances" link, one must also be linked via the "entry" link. Among theScheduledInstances linked to a ScheduledTimeline, one must have a link to the ScheduledTimelineExit.

DianeWold commented 4 months ago

Added as rule DDF99973.

DianeWold commented 4 months ago

The part of this rule that says a timeline must have an exit duplicates rule DDF00037 (CHK0034).

DianeWold commented 4 months ago

Updated the statement of the rule, in this issue and the rules engine, to clarify that this rule checks links from the ScheduleTimeline.

BSnoeijerCD commented 4 months ago

As discussed during the Scrum, this check is based on ids present in the scheduletimeline class: at least ... specified/referenced in that class. Rule DDF00037 / CHK0034 is based on the scheduledActivityInstance class: at least one of them, within a timeline should have an exit. Of course, the exits referred to should correspond to existing activityInstances/decisionInstances that are included in the specific Scheduletimelin. I created 2 new schema check descriptions to cover this for entry and exitIds: CHK0103 + CHK0104.