Skip to content

Rule blocked: CORERULES-1670 #236

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

  • ADaMIG v1.3
  • **Rule 41 (AD0041)
  • a numeric variable ending in DT, does not have a human readable date format

Describe the problem

  1. Query if a variable is numeric
  2. Query format associated with variable

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

  1. e.g name :variable_type operator :"is_numeric" operator applied to determine variable type
  2. e.g extract format from supplied data and either compare to a predefined lookup list of formats and/ or provide users the ability to supply additional format (extensible list): name: variable_fmt operator: contains_valid_fmt
    see pbi specifically for adding formats to test data in the rule editor: [https://github.com/Support format variable metadata in test data conformance-rules-editor#145](https://urldefense.com/v3/__

Proposed rule logic

Replace this with an example of how the new solution could be written as a rule
check:
   -name: variable_type:
     operator: is_numeric
  -name: variable_fmt 
    operator: is_valid_format 
or 

     operator: is_valid_date_format (predefined list) and contains
     values:   (extensible user supplied format list>


**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