Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
minLevel1
maxLevel7

...

Link

https://app.swaggerhub.com/apis/ehealthua/compositions/2.32.2#/main/patch_patients_composition__compositionId__erln

Resource

/patients/composition/{compositionId}/erln

Scope

composition:create

Components

Compositions

Using Dictionaries

API paragraph not found

Using Microservices

API paragraph not found

Protocol type

REST

Request type

PATCH

Sync/Async

Async

Public/Private/Internal

Public

...

  1. Searching for the last scheduled ERLN task for this composition

    1. In case of error (ERLN task was not found) - return 404 ('Not Found')

  2. Searching for the composition

    1. In case of error (composition was not found) - return 404 ('Not Found')

  3. Check the composition’s type

    1. In case of error (composition’s type isn’t Тemporary Disability) - return 400 ('Bad Request')

  4. Check the composition’s status

    1. In case of error (composition’s type status isn’t “FINAL”) - return 400 ('Bad Request')

  5. Check the composition’s integration status

    1. In case of error (composition’s integration status isn’t “ERROR”) - return 400 ('Bad Request')

  6. Check the previous task status

    1. In case of error (task status is still in progress) - return 400 ('Bad Request')

...

HTTP status code

Message

What caused the error

200

The request was successfully submitted for processing

 

400

This request is not allowed to be resubmitted (inappropriate status or type of request)

  1. Composition’s type isn’t Тemporary Disability

  2. Composition’s status isn’t “FINAL”

  3. Composition’s integration status isn’t “ERROR”

  4. Previous task status is still in progress

404

No conclusion found

  1. ERLN task was not found

  2. Composition not found