Versions Compared

Key

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

Purpose

This WS is designed to create new Innm (post).

...

Input parameters (filters)

  • name
  • innm_identifier

Authorize

  1. Verify the validity of access token
  2. Check user scope (scope = 'innm:write') in order to perform this action
    1. In case error - generate 401 response

Validate request (JSON schema)

Validate request using JSON schema (link !!! TBD)

Validate unique for Innms

  1. Check unique by `innm_identifier`.
    1. if  found - return 409 error (message: "Duplicate innm identifier!")

Create new Innm

  1. Create new record in innms with status INACTIVE
  2. Mapping (where <rd> request_for_medication_request.data )

  3. Destination
    Source
    id
    name$.name
    innm_identifier$.innm_identifier
    status INACTIVE
    is_active TRUE
    inserted_at:timestamp
    inserted_byuser_id
    updated_at:timestamp
    updated_byuser_id