Process diagram
Step | Description |
---|---|
Get pending declarations | External system call E-Health.IL to get all declarations in status Pending. |
GET_DeclarationList |
URL example:
|
Response format:
| ||||||||||||||
Choose appropriated declaration | External system starts to processing any element from declaration list received in previous step. | |||||||||||||
Get declaration_request details by id | System call E-Health.IL to get specific declaration from previous step. | |||||||||||||
GET_Declaration_Request | Apiary: service description Query parameters:
URL example:
|
Response format |
language | js |
---|---|
theme | RDark |
title | Response body |
linenumbers | true |
collapse | true |
: |
Get content by ID | Call |
GCS services to download the document by URL |
GET_MediaStorageContent |
- Parse Response from step GET_Declaration
JPATH:
No Format |
---|
$.data.media_storage |
Example:
Code Block | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
{
{
...
"scope": "family doctor",
"active": true,
"media_storage": [
"http://ehealth.nebo15.com/media_content_storage/msp/declaration_requests/7f93-4fc2-b2ec-2d81b19a9b7b/SjhYsnx.jpg",
"http://ehealth.nebo15.com/media_content_storage/msp/declaration_requests/7f93-4fc2-b2ec-2d81b19a9b7b/JnvHsqIW.jpg",
"http://ehealth.nebo15.com/media_content_storage/msp/declaration_requests/7f93-4fc2-b2ec-2d81b19a9b7b/NbbShPzQ.jpg"
]
}
} |
- For each record (or only some documents can be processed, depends on the type of implementation) in array call web-service:
Apiary: service description
Query parameters:
No Format |
---|
id={declaration_request_id}
filename={media_storage_filename} |
URL example:
No Format |
---|
/media_content_storage/msp/declaration_requests/{id}/{filename} |
Verification | User conducts declaration verification according to internal rules, and make decision. |
Update declaration status to Verification Passed | Call web-service PATH_Declaration to send verification result " |
ACTIVE". |
Update declaration status to Verification Rejected |
Call web-service PATH_Declaration |
Apiary: service description
Query parameters:
No Format |
---|
id={declaration_id} |
URL example:
No Format |
---|
/api/declarations/{id} |
Request format:
language | js |
---|---|
theme | RDark |
title | Response body |
linenumbers | true |
collapse | true |
Response format:
to send verification result "REJECTED". | |
PATCH_Declaration |