cdisc-org / cdisc-org/cdisc-rules-engine

similar function like "inconsistent_enumerated_columns" but then for column labels

Open
#1,856 0 comments 0 reactions 0 assignees Claimed by @aniemes View on GitHub
Dominant language
Python
Stars
113
Forks
43
Avg merge
14h 51m
Merged PRs (30d)
14

Description

### Standard

CDISC SEND

### Reference Rule ID(s)

SEND313

### Conformance Rule ID(s) (if published in CORE)

_No response_

### JIRA Ticket

https://jira.cdisc.org/browse/CORERULES-746

### Proposed Rule YAML

```YAML
N/A
```

### Attach any sample test data file(s)

For SEND313 "When using COVAL1-COVALn, the **variable labe**l should match the corresponding variable name (e.g., Comment1, Comment2)."
E.g. when we have COVAL1 as a variable, its label is expected to be "Comment1" or "Comment 1".
For COVAL2, the label is expected to be "Comment2" or "Comment 2".
We do already have the function "inconsistent_enumerated_columns", but we need something similar for the labels.
The function could e.g. be named "inconsistent_enumerated_column_labels".

### Expected output

boolean whether the label of COVALn has the correct label

### Any Additional Information

_No response_

Contributor guide

Open the contributing guide

Research direction

Search the repository for the existing `inconsistent_enumerated_columns` function and inspect how its rules and tests are organized. Implement the corresponding column-label check for COVALn, accepting the stated label forms, and add or update tests that verify the boolean result for matching and non-matching labels.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.