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 DDF00026: The ids of the StudyProtocolDocumentVersions associated with a StudyProtocolDocument are all distinct. #120

Closed ASL-rmarshall closed 7 months ago

ASL-rmarshall commented 10 months ago

Create rule defined for cdisc-org/ddf-core-poc#113

ASL-rmarshall commented 10 months ago

Changed DDF99986 to DDF00026. Modified the description and output message to refer to "id values" instead of "ids" to make it clear that it's only the value of the id attribute that are being checked.

Ready for review.

ASL-rmarshall commented 10 months ago

Note that the imported dataset is named "STUDYPROTOCOLDOCUMENTVERSIO" (without an "N" at the end). I have raised issue cdisc-org/cdisc-rules-engine#684 about this.

DianeWold commented 10 months ago

The rule seems okay, but test data seems to be missing.

DianeWold commented 10 months ago

I'm getting the message "unit-test-coreid-DDF00025-negative Not implemented" in a box with the title "File Upload" I have to leave now, but perhaps we can sort this out Thursday morning. image

DianeWold commented 10 months ago

Matt helped me synch the test data, which I think will resolve my issues. I ran the test data for DDF00026 and got the expected results.

ASL-rmarshall commented 6 months ago

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

Authorities:
  - Organization: 'CDISC'
    Standards:
      - Name: USDM
        References:
          - Citations:
              - Cited Guidance: 'USDM 2.6'
                Document: 'USDM v2.6'
            Origin: USDM Conformance Rules
            Rule Identifier:
              Id: 'DDF00026'
              Version: '1'
            Validator Rule Message: 'No two versions of a study protocol document have the same id.'
            Version: '1.0'
        Version: '3.0'
Check:
  all:
    - name: id
      operator: is_not_unique_set
      value:
        - parent_id
Core:
  Id: CORE-000418
  Status: Draft
  Version: '1'
Description: 'The StudyProtocolVersions associated with a StudyProtocolDocument
  must all have different id values'
Executability: Fully Executable
Outcome:
  Message: 'The id values of the StudyProtocolVersions associated with a
    StudyProtocolDocument include duplicates.'
  Output Variables:
    - parent_entity
    - parent_id
    - id
    - protocolVersion
    - protocolStatus.decode
Rule Type: Record Data
Scope:
  Entities:
    Include:
      - StudyProtocolDocumentVersion
Sensitivity: Record