...
Request to process the request using a token in the headers
Наприклад:
Content-Type:application/json
Authorization:Bearer d368a4b0-4a0e-457a-b267-32359fa6288f
...
Search for approval by patient_id + approval_id
Validate person by http://patient.id
In case error return 404 (message "Person not found")
Validate approval by approval.id
In case error return 404 (message "Approval with such id is not found")
Send SMS with OTP-code to persons phone from approvals.urgent.phone_number
Response structure
See on Apiary
Example:
Expand |
---|
|
Code Block |
---|
{
"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"
}
} |
|
...