ЕСОЗ - публічна документація

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Purpose

This procedure is designed to expire previously created Request for Medication request after ended time-life in NEW status.


Procedure logic for transition

  1. For info - status charts: Request_for_medication_request
  2. Get Request for Medication request status by $.id
  3. Check status == NEW
    1. if invalid - return 403 error (message: "Invalid status Request for Medication request for reject transition!")'
  4. Update (Set values) Request for Medication request
    1. status  =  REJECTED
    2. updated_by = user_id
    3. updated_at = timestamp
  • No labels