Table of Contents | ||||
---|---|---|---|---|
|
...
This method allows to get the details of the Composition and detailed information about the related medical reportcomposition.
Used in processes:
1. Пошук та отримання МВ (загальний процес)
Specification
Link | https://app.swaggerhub.com/apis/ehealthua/compositions/2.3239.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
...
Expand | ||
---|---|---|
| ||
MIS/Medical employee->Compositions: Create Composition POST/patients/composition |
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
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' \ |
...
Content-Type: application/json
Authorization: Bearer {token}
api-key: {secret}
Validation data request
Composition is not directly involved in the processing of the access authorization module (in the ABAC rules and in the creation of approvals). However, the getComposition request contains encounter's and episod's IDs. That's mean approve for obtain a composition is inherited from these objects and determined by the approvals on them.
In the case of access denied to view the Composition according to the rules of ABAK ABAC - return 403 "Access denied"
Expand | ||
---|---|---|
| ||
{ |
In case of wrong request data - return 404 “Not Found“ - “no Route matched with those values”
Processing
API paragraph not found
Response structure
Example:
Expand | ||
---|---|---|
| ||
|
...
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 |