Table of Contents | ||||
---|---|---|---|---|
|
Purpose
This method is designed to get a compositionallows to get the details of the Composition and detailed information about the related medical report.
Used in processes:
1. Пошук та отримання МВ (загальний процес)
Specification
Link | https://app.swaggerhub.com/apis/bugzi11aehealthua/emalcompositions/12.032.8#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 |
...
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
Expand | ||
---|---|---|
| ||
request GET 'https://{environment}/api/patients/6a524088-c3f6-44ef-bcea-12a8e2900431/composition/8c696fa4-6607-4aef-bab7-33cabc2dda2c/episode/e4f8c204-4879-4a90-a89f-707ffd7f02c4/encounter/d44ac2e9-9c83-4f5a-9ce1-0b764f260fff' \ |
Authorize
API paragraph not found
Headers
API paragraph not found
Validation data request
...
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 ABAK - return 403 "Access denied"
Expand | ||
---|---|---|
| ||
{ |
Processing
API paragraph not found
Response structure
Example:
Expand | ||
---|---|---|
| ||
|
Post-processing processes
API paragraph not found
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 |
...