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 DDF00004: If AdministrationDuration has durationWillVary true, then reasonDurationWillVary must be present #92

Closed ASL-rmarshall closed 5 months ago

ASL-rmarshall commented 10 months ago

Create rule defined for #85

ASL-rmarshall commented 10 months ago

Rule originally drafted as DDF99996 has been finalised as (repurposed) DDF00004.

rbakercdisc1 commented 9 months ago

Review complete. The logic is defined, the positive and negative test data is defined. The rule executes completely for both success and failure.

ASL-rmarshall commented 3 months ago

Saving POC rule definition before overwriting for DDF4:

#If AdministrationDuration has durationWillVary true, then reasonDurationWillVary must be present

Authorities:
  - Organization: CDISC
    Standards:
      - Name: USDM
        References:
          - Citations:
              - Cited Guidance: 'USDM'
                Document: 'USDM v2.6'
            Origin: USDM Conformance Rules

            Rule Identifier:
              Id: 'DDF00004'
              Version: '1'
            Validator Rule Message: 'If AdministrationDuration has durationWillVary true,
              then reasonDurationWillVary must be present'
            Version: '1.0'
        Version: '3.0'

Check:
  all:
    - any:
        - name: durationWillVary
          operator: not_equal_to
          value: false
        - name: reasonDurationWillVary
          operator: non_empty
    - not:
        all:
          - name: durationWillVary
            operator: equal_to
            value: true
          - name: reasonDurationWillVary
            operator: non_empty

Core:
  Id: 'CORE-000400'
  Status: Draft
  Version: '1'
Description: A variable administration duration must be fully defined. If either
  durationWillVary is not "false" or reasonDurationWillVary is populated,
  durationWillVary must be "true" and reasonDurationWillVary must be populated.
Executability: Fully Executable
Outcome:
  Message: The variable AdministrationDuration is not fully defined
    (durationWillVary is not 'true' or reasonDurationWillVary is missing).
  Output Variables:
    - id
    - description
    - durationWillVary
    - reasonDurationWillVary

Rule Type: Record Data

Scope:
  Entities:
    Include:
      - AdministrationDuration

Sensitivity: Record