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

Rule blocked: CORERULES-1676 (2)

Open
#362 2 comments 0 reactions 1 assignee Claimed by @jq-medpace-cdisc View on GitHub
ADaM
Dominant language
Python
Stars
113
Forks
43
Avg merge
14h 51m
Merged PRs (30d)
14

Description

Related to rule CDISC.ADAMIG.AD0047
Could we use Scope - Data_Structures to include/exclude certain ADAM Data Structures for rule checking?

{
"Datasets": {
"Include": [
"ADSL"
]
},
"Data_Structures": {
"Include": [
"SUBJECT LEVEL ANALYSIS DATASET"
]
}
}

Links to related JIRA Tickets

https://jira.cdisc.org/projects/CORERULES/issues/CORERULES-1676
Rule Information

Standard: ADAMIG
Rule ID: 47
Rule Description: "Variable SITEID should be present in dataset ADSL"
Describe the bug

**A clear and concise description of what the bug is.**

Error returned from Rule Engine

[
{
"executionStatus": "execution_error",
"domain": "ADVS",
"variables": [],
"message": "rule execution error",
"errors": [
{
"error": "An unknown exception has occurred",
"message": "Output variables: ['SITEID'] not found in dataset"
}
]
}
]

**Describe the problem**
Could we use Scope - DataStructure to include/exclude certain ADAM Data Structures for rule checking?

**Describe the solution**
First the Data structure of all ADaM datasets needs to get identified.
- SUBJECT LEVEL ANALYSIS DATASET: dataset name='ADSL'
- BASIC DATA STRUCTURE: dataset name starts with 'AD' and contains variables PARAM/PARAMCD and/or AVAL/AVALC
- OCCURRENCE DATA STRUCTURE: dataset name starts with 'AD' and contains variables *TRT, *DECOD and not contains PARAM/PARAMCD. [with * being any character(s) ].
- ADAM OTHER: dataset name starts with 'AD' but none of the above structures.
For more info: see attached document.
[Identifying ADaM data structures.docx](https://github.com/cdisc-org/cdisc-rules-engine/files/11150373/Identifying.ADaM.data.structures.docx)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.