...
Create/Sign composition (general process)
RC_5. Extension / reduction MVTN
RC_6. Refinement (preperson -> person) for MVTN
RC_7. Creating "a replacement" composition
Specification
Link | https://app.swaggerhub.com/apis/bugzi11aehealthua/emalcompositions/12.039.7#2#/async/getAsyncJobStatus |
Resource | /patients/composition/job/{{asyncJobId}} |
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
...
Creation of composition: Asynchronous tasks
...
Expand | ||
---|---|---|
| ||
|
Input parameters
Input parameter | Values | Type | Description | Example |
---|---|---|---|---|
asyncJobId | String | Async Job Object ID | 89678f60-4cdc-4fe3-ae83-e8b3ebd35c59 |
Request structure
Expand | ||
---|---|---|
| ||
/patients/composition/job/{asyncJobId} |
Authorize
API paragraph not found
Headers
...
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
Parameters validation:
asyncJobId
Processing
API paragraph not found
(correct composition ID needed)
404 - in case of error
Response structure
Expand | ||||
---|---|---|---|---|
| ||||
compositionAsyncJobStateResponse{
} |
Example:
Expand | ||
---|---|---|
| ||
|
...
API paragraph not found
HTTP status codes
HTTP status code | Message | What caused the error |
---|---|---|
200 | Task found | Correct answer with one of the possible statuses: PENDING, FAILED, DONE |
400 | Invalid request format | Error in query syntax or other error |
404 | Task not found | The task with the specified ID does not exist or was not found |