cdisc-org / cdisc-rules-engine

Open source offering of the cdisc rules engine
MIT License
48 stars 13 forks source link

Function request: library_variable_codelist and library_variable_has_codelist #532

Open JozefAerts opened 1 year ago

JozefAerts commented 1 year ago

This function "library_variable_codelist" would return the codelist coded values for the variable (name) provided. It would be similar to function define_variable_codelist_coded_values, but then from the IG, with a lookup in the Library. The function "library_variable_has_codelist" would return a boolean on whether the IG mentions a codelist for the variable or not.

We need such functions for rule SEND40 "Variables with CT (as provided in the IG) must follow the case sensitivity of the CT list". Essentially, this rules ignores the define.xml.