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

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

Version 1 Next »

Purpose

This WS allows to get Specimen without patient context by its accession identifier.

Key points

  1. Returns a single Specimen that has a specified accession_identifier

  2. ABAC isn’t used here

Specification

Apiary

Authorization

  • Verify the validity of access token

    • Return (401, 'Invalid access token') in case of validation fails

  • Verify that token is not expired

    • in case of error - return (401, 'Invalid access token')

  • Check user scopes in order to perform this action (scope = 'specimen:read')

    • Return (403, 'Your scope does not allow to access this resource. Missing allowances: specimen:read') in case of invalid scope(s)

Service logic

Service returns a single Specimen that has a specified accession_identifier:

  1. Get Specimen by ID from specimens collection (MongoDB)

  2. Enrich identity object in the response with person’s age and gender, but w/o patient’s name

  3. Render a response according to specification.

  • No labels