Versions Compared

Key

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

Table of Contents
Status

Page Properties


Specification

Status
colourGreen
titledone

Apiary

Status
colourGreen
titledone

JSON Schema request

Status
colourGrey
titleabsent

JSON Schema response
Status
colourRed
titlespecs


...

  1. Check exist Medication by $.id .

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

Validate status

...

  1. with type=INNM & status is_active=

...

  1. Validate `is_active` == TRUE

    true

    1. if invalid

       

      - return

      409 eror 

      404 error (message: "

      Substance is not active !")
    Validate `type` ==
    1. INNM

    2. if invalid  - return 409 eror (message: "Type of record by id

      is not

      INNM

      found!")

Prepare & return response data structure

...