Purpose
This method allows to get the details of the Composition and detailed information about the related composition.
Used in processes:
1. Пошук та отримання МВ (загальний процес)
Specification
Link | https://app.swaggerhub.com/apis/ehealthua/compositions/2.32.2#/main/getComposition |
Resource | /patients/{patientId}/composition/{compositionId}/episode/{episodeId}/encounter/{encounterId} |
Scope | composition:read |
Components | |
Using Dictionaries | API paragraph not found |
Using Microservices | API paragraph not found |
Protocol type | REST |
Request type | GET |
Sync/Async | Async |
Public/Private/Internal | Public |
Logic
Input parameters
Input parameter | Values | Type | Description | Example |
---|---|---|---|---|
compositionId | String ($uuid) (path) | Composition object ID | 8c696fa4-6607-4aef-bab7-33cabc2dda2c | |
patientId | String ($uuid) (path) | Patient object ID | 6a524088-c3f6-44ef-bcea-12a8e2900431 | |
episodeId | String ($uuid) (path) | Episode of care object ID | e4f8c204-4879-4a90-a89f-707ffd7f02c4 | |
encounterId | String ($uuid) (path) | Encounter object ID | d44ac2e9-9c83-4f5a-9ce1-0b764f260fff |
Request structure
Authorize
Check user scopes in order to perform this action (scope = 'composition:read')
return 401 (Unauthorized) in case of invalid scope(s)
Headers
Content-Type: application/json
Authorization: Bearer {token}
api-key: {secret}
Validation data request
In the case of access denied to view the Composition according to the rules of ABAC - return 403 "Access denied"
In case of wrong request data - return 404 “Not Found“ - “no Route matched with those values”
Processing
API paragraph not found
Response structure
Example:
HTTP status codes
HTTP status code | Message | What caused the error |
---|---|---|
200 | If the object exists and access is authorized |
|
403 | Access denied | In the case of access denied to view the Composition according to the rules of ABAK |
404 | In case the Composition does not exist | The Composition wasn’t found |