You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 10
Next »
Purpose
Allows to cancel approval by it's identifier in patient context.
Specification
Logic
Allows to cancel approval by it's identifier in patient context. It is allowed only for the doctor who has an active declaration with a patient from url (can cancel all approvals) or approval is granted to user (can cancel own approval).
Input parameter | Values | Type | Description | Example |
---|
patiend_id | | String | identifier of the patient | aff00bf6-68bf-4b49-b66d-f031d48922b3
|
id | | String | identifier of the approval | aff00bf6-68bf-4b49-b66d-f031d48922b3
|
Request structure
API paragraph not found
Authorize
Request to process the request using a token in the headers
Наприклад:
Content-Type:application/json
Authorization:Bearer c2778f3064753ea70de870a53795f5c9
api-key:uXhEczJ56adsfh3Ri9SUkc4en
Request data validation
API paragraph not found
Processing
API paragraph not found
Response structure
See on Apiary
Example:
Response example
{
"data": {
"status": "pending",
"eta": "2018-08-02T10:45:16.000Z",
"links": [
{
"entity": "job",
"href": "/Jobs/NBXk9EyErUZv1RhXgyvgg"
}
]
},
"meta": {
"code": 202,
"url": "http://example.com/resource",
"type": "object",
"request_id": "req-adasdoijasdojsda"
}
}
Response example
{
"data": {
"id": "d5a5d991-0bf7-476f-b3cf-bec73f044b2e",
"granted_resources": [
{
"identifier": {
"type": {
"coding": [
{
"system": "eHealth/resources",
"code": "episode_of_care"
}
]
},
"value": "d5a5d991-0bf7-476f-b3cf-bec73f044b2e"
},
"display_value": "null"
}
],
"granted_to": {
"identifier": {
"type": {
"coding": [
{
"system": "eHealth/resources",
"code": "employee"
}
]
},
"value": "9183a36b-4d45-4244-9339-63d81cd08d9c"
},
"display_value": "null"
},
"expires_at": 1498749591,
"reason": {
"identifier": {
"type": {
"coding": [
{
"system": "eHealth/resources",
"code": "service_request"
}
]
},
"value": "9183a36b-4d45-4244-9339-63d81cd08d9c"
},
"display_value": "null"
},
"status": "new",
"access_level": "read",
"authentication_method_current": {
"type": "OTP",
"number": "+38093*****85"
}
},
"meta": {
"code": 201,
"url": "http://example.com/resource",
"type": "object",
"request_id": "req-adasdoijasdojsda"
}
}
Post-processing processes
API paragraph not found
HTTP status codes