Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...

Table of Contents

...

This job is designed to expire previously created Medication requests. All active medication requests where dispense_valid_to in the past must be expired

Process configuration

...

Parameter

...

Description

...

Value

...

MEDICATION_REQUEST_AUTOTERMINATION_SCHEDULE

...

Procedure logic for transition

...

Get list Medication request 

Code Block
languagesql
SELECT * FROM medication_requests MR
    WHERE MR.status == ACTIVE
        AND MR.dispense_valid_to < current_date()

...

  1. status  =  EXPIRED
  2. updated_by = SYSTEM_USER
  3. updated_at = timestamp

...

The page is not supported. The method requirements can be found here [AUTO] Terminate Medication Request