Skip to content

get_model_filtered_variables operation not taking into account model Usage Restrictions #1816

Description

@mhungria

Standard

CDISC SDTM/SDTMIG

Reference Rule ID(s)

CG0219

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

CORE-000575

JIRA Ticket

https://jira.cdisc.org/browse/CORERULES-183?jql=text%20~%20%22cg0219%22

CLI Command Used (if applicable)

python core.py -s SDTM -v 3.4 -d /path/to/datasets

Rule YAML

Operations:
  - id: $dataset_variables
    operator: get_column_order_from_dataset
  - id: $timing_variables
    key_name: role
    key_value: Timing
    operator: get_model_filtered_variables

Attach any sample test data file(s)

As in the previously published rules, now under revision for v1.0

Attach any output report and/or log file(s)

"['VISITNUM', 'VISIT', 'VISITDY', 'TAETORD', 'EPOCH', 'RPHASE', 'RPPLDY', 'RPPLSTDY', 'RPPLENDY', 'LBDTC', 'LBSTDTC', 'LBENDTC', 'LBDY', 'LBSTDY', 'LBENDY', 'LBNOMDY', 'LBNOMLBL', 'LBRPDY', 'LBRPSTDY', 'LBRPENDY', 'LBXDY', 'LBXSTDY', 'LBXENDY', 'LBCHDY', 'LBCHSTDY', 'LBCHENDY', 'LBDUR', 'LBTPT', 'LBTPTNUM', 'LBELTM', 'LBTPTREF', 'LBRFTDTC', 'LBSTRF', 'LBENRF', 'LBEVLINT', 'LBEVINTX', 'LBSTRTPT', 'LBSTTPT', 'LBENRTPT', 'LBENTPT', 'MIDS', 'RELMIDS', 'MIDSDTC', 'LBSTINT', 'LBENINT', 'LBDETECT', 'LBPTFL', 'LBPDUR']"

Expected output

"['VISITNUM', 'VISIT', 'VISITDY', 'TAETORD', 'EPOCH', 'RPHASE', 'RPPLDY', 'RPPLSTDY', 'RPPLENDY', 'LBDTC', 'LBENDTC', 'LBENDY', 'LBNOMDY', 'LBNOMLBL', 'LBRPDY', 'LBRPSTDY', 'LBRPENDY', 'LBXDY', 'LBXENDY', 'LBCHDY', 'LBCHENDY', 'LBDUR', 'LBTPT', 'LBTPTNUM', 'LBELTM', 'LBTPTREF', 'LBRFTDTC', 'LBSTRF', 'LBENRF', 'LBEVLINT', 'LBEVINTX', 'LBSTRTPT', 'LBSTTPT', 'LBENRTPT', 'LBENTPT', 'MIDS', 'RELMIDS', 'MIDSDTC', 'LBSTINT', 'LBENINT', 'LBDETECT', 'LBPTFL', 'LBPDUR']"

Any Additional Information

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Priority

    None yet

    T-shirt sizing

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions