cdisc-org / cdisc-rules-engine

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

Rule blocked: CORERULES-180 #521

Closed gerrycampion closed 3 weeks ago

gerrycampion commented 1 year ago

Links to related JIRA Tickets

Rule Information

Describe the problem There needs to be a way to sort records when using empty_within_except_last_row

Describe the solution Allow for ordering parameter for the empty_within_except_last_row operator. Refer to has_next_corresponding_record for similar functionality.

Proposed rule logic

Check:
  all:
    - name: SEENDTC
      operator: empty_within_except_last_row
      ordering: SESTDTC
      value: USUBJID
SFJohnson24 commented 4 months ago

during rules office hours, it was brought up that running CORERULE-180 returns an error and appears to not be running properly. When I run CG0209 through the rules editor, I get an error ''PandaDatase' object has no attribute sort_values.' I included the rule editor results and a screenshot of the error. It returns this error for bot the positive and negative datasets for this rule. image CG0209.zip @RamilCDISC @gerrycampion does this ticket need to get sent back to development?