cdisc-org / cdisc-org/cdisc-rules-engine
Rule blocked: CORERULES-1670
- Dominant language
- Python
- Stars
- 113
- Forks
- 43
- Avg merge
- 14h 51m
- Merged PRs (30d)
- 14
Description
- 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**
- https://jira.cdisc.org/browse/CORERULES-
- https://jira.cdisc.org/browse/CORERULES-
**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/cdisc-org/conformance-rules-editor/issues/145](https://urldefense.com/v3/__
**Proposed rule logic**
```yaml
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.
Contributor guide
Assessment
This issue has not been assessed yet.