Versions Compared

Key

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

Table of Contents
Specification

...

  1. Check exist Medication by $.id.

    1. if invalid - return 404 error (message: "Medication is not found!")

...

Purpose validation:  Medication should be active (is_active == TRUE) necessary type 

Validate `type` == MEDICATION

    1. if invalid  - return 409 eror (message: "Type of record by id is not MEDICATION !")