Versions Compared

Key

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

...

This WS allows to set date and time when Specimen was received for processing by laboratory employee.

Specification

Link

Apiary

Resource

 /api/patients/patient_id/specimens/id/actions/

Scope

 specimen:process

Components

 Specimen

Microservices

 

Protocol type

 REST

Request type

 PATCH

Sync/Async

 Async

Public/Private/Internal

 Public

Key points

  1. Only authenticated and authorized employee with appropriate scope can process a Specimen.

  2. DS isn't used here.

  3. The specimen is processed asynchronously

...

https://e-health-ua.atlassian.net/wiki/spaces/EH/pages/17629118915/RC.#%D0%9E%D0%B1%D0%BB%D1%96%D0%BA-%D0%B4%D0%B0%D1%82%D0%B8-%D1%82%D0%B0-%D1%87%D0%B0%D1%81%D1%83-%D0%BE%D1%82%D1%80%D0%B8%D0%BC%D0%B0%D0%BD%D0%BD%D1%8F-%D0%97%D1%80%D0%B0%D0%B7%D0%BA%D0%B0

 

Input parameters

Input parameter

Values

Type

Description

Example

patient_id

 

String

Unique patient identifier

7075e0e2-6b57-47fd-aff7-324806efa7e5

id

 

String

Unique specimen identifier

aff00bf6-68bf-4b49-b66d-f031d48922b3

Request structure

See on Apiary

...

See on Apiary

HTTP status codes

HTTP status code

Message

What caused the error

200

 

 

401

Invalid access token

 

403

  • Access denied. Party is deceased

  • Your scope does not allow to access this resource. Missing allowances: specimen:process

 

404

not found

409

  • client_id refers to legal entity that is not active

  • Specimen is not in available status

422

  • Value is already set and cannot be changed

  • Should be between collected datetime and current datetime