cdisc-org / cdisc-rules-engine

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

Rule blocked: CORERULES-576 #501

Closed JozefAerts closed 3 months ago

JozefAerts commented 1 year ago

Rule SEND-130 uses date sorting, the rule being "SESEQ values must be assigned in chronological order within a subject". The YAML code in the rule editor uses the function "target_is_not_sorted_by", which seems to cause an execution error "string indices must be integers". I attach the download (Export Artifcats button) from the rule editor.

Or do we need another operator when sorting is for dates? Rule_editor_export_execution_error_SEND130.zip

JozefAerts commented 1 year ago

Update: I don't get the error "string indices must be integers" anymore, but now get an error "column not found in dataset: sort_order". May however be due to choice of scope. Will discuss next office hours. All files attached. Rule_editor_export_execution_error_SEND130_2023-09-15.zip

JozefAerts commented 11 months ago

It looks as there was an error in my script, had "order = asc". After replacement by "sort_order = asc", there is no error anymore and the rule runs fine. P.S.: Rule Type: Record Data , Sensitivity: Record. Same functionality was also tested on rule SEND354. Also there, it works well now.

nickdedonder commented 3 months ago

Covered by #557