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 DDF00016: studyEpochName should have a one-to-one relationship with studyEpochDescription #70

Closed ASL-rmarshall closed 5 months ago

ASL-rmarshall commented 10 months ago

Create rule defined for #18

ASL-rmarshall commented 10 months ago

Same logic as DDF00001 (#23)

ASL-rmarshall commented 10 months ago

Although the logic for this rule is exactly the same as that for DDF00001, I have created this as a separate rule because we haven't yet decided if DDF00001 should be a generic rule (see discussion in #3).

DianeWold commented 10 months ago

Negative and positive tests returned message "absent variable skips"
"errors":[1 item 0:{2 items "error":"Column not found in data" "message":"isEnabled, isRequired"

DianeWold commented 10 months ago

Apparently ran the test data against the wrong rule. Reran tests. Negative data gave 5 negatives, as expected. Positive data successful.

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.

ASL-rmarshall commented 4 months ago

Rule deleted in DDF Phase 4. Saving a copy of definition:

Authorities:
  - Organization: CDISC
    Standards:
      - Name: USDM
        References:
          - Citations:
              - Cited Guidance: 'USDM'
                Document: 'USDM v2.5'
            Origin: USDM Conformance Rules
            Rule Identifier:
              Id: DDF00016
              Version: '1'
            Validator Rule Message: 'StudyEpoch name does not have a one-to-one relationship
              with description'
            Version: '1.0'
        Version: '3.0'
Check:
  all:
    - name: 'name'
      operator: non_empty
    - name: description
      operator: non_empty
    - name: 'name'
      operator: is_not_unique_relationship
      value: description
    - name: 'rel_type'
      operator: equal_to
      value: 'definition'
Core:
  Id: ''
  Status: Draft
  Version: '1'
Description: If both are provided, name should have a one-to-one relationship
  with description within StudyEpoch
Executability: Fully Executable
Outcome:
  Message: StudyEpoch name does not have a one-to-one relationship with description
  Output Variables:
    - parent_entity
    - parent_id
    - parent_rel
    - id
    - name
    - description
Rule Type: Record Data
Scope:
  Entities:
    Include:
      - StudyEpoch
Sensitivity: Record