Skip to content

Rule blocked: CORERULES-1637 #291

Description

@FITZPST
  • Attach test dataset files that can be used to test the new feature
  • Replace the "###" in the issue title with the primary JIRA ticket number for the rule.
  • Fill in the following information

Links to related JIRA Tickets

Rule Information

  • Standard: ADaM
  • Rule ID: 6
  • Rule Description:
    A variable with a suffix of FL is present and a variable with the same root and a suffix of FN has a value that is not 0, 1 or null

Describe the problem
A clear and concise description of the problem.
need to be able to check for:

1.Presence of any variable ending in 'FL' (ADaM rule 5 - ticket logged)
2.Check is there a root variable present that ends with 'FN'
2.1 .Root = string characters up to 'FL' of step 1
3. if root variable exist check record values

Describe the solution
A clear and concise description of how this problem could be solved.

as above

Proposed rule logic

Replace this with an example of how the new solution could be written as a rule

something like :
Check:
  all:
    - name: variable_name ending in 'FL' # (1)
      operator: exists        
    - name: (ROOT|FN)
#Explanation of ROOT|FN : substring(length(1)-2) -> substring/cut up to 'FL' defines root), append chars 'FN' and this check if variable (ROOT Concatenated to 'FN') exists
      operator:  exists
    - name: (ROOT|FN)
      operator: not_contains_all
      value: (0,1)
    - name : (ROOT|FN)     
      operator : non_empty


**Screenshots**
If applicable, add screenshots to help explain your problem and solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for Feature.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions