cdisc-org / cdisc-org/cdisc-rules-engine
Rule blocked: CORERULES-1637
- 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/projects/CORERULES/issues/CORERULES-1637
- https://jira.cdisc.org/projects/CORERULES/issues/CORERULES-
**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**
```yaml
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.
Contributor guide
Assessment
This issue has not been assessed yet.