Table of Contents | ||||
---|---|---|---|---|
|
Required parameters are marked with "*"
Якщо інформації по відповідному параметру немає, потрібно зазначити: “APIparagraph not found”.Purpose*
Purpose*
Сreate a new episode of care for a patientThis web service is designed to return episodes by search parameters.
Specification*
Page Properties | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
Use period_from period_to to find episodes that were active in a certain period of time.
Filters
Filter | Values | Type | Description | Example |
---|---|---|---|---|
patient_id | String | Patient identifier |
| |
page | Number | Page number |
| |
page_size | Number | A limit on the number of objects to be returned, between 1 and 100. Default: 50 |
| |
period_from | String |
| ||
period_to | String |
| ||
code | String |
| ||
status | String |
| ||
managing_organization_id | String |
|
...
Request to process the request using a token in the headers
Headers*
Наприклад:
Content-Type:application/json
Authorization:Bearer mF_9.B5f-4.1JqM
api-key:aFBLVTZ6Z2dON1V
...
Check user scopes in order to perform this action (scope = 'episode:write')
Return 403 in case invalid scope(s)
Access to the resource is also managed by ABAC module.
Processing*
Set episodes.care_manager.display_value = ((PRM.parties.first_name + PRM.parties.second_name + PRM.parties.last_name) where PRM.parties.id == PRM.employees.party_id) where PRM.employees.id== $.care_manager.identifier.value
Set episodes.managing_organization.display_value = PRM.legal_entities.public_name where ( PRM.legal_entities.id == $.managing_organization.identifier.value)
Create a record in status_hstr
...
Expand | ||
---|---|---|
| ||
|
Order by inserted_at
In case of searching by code:
select episode where ME.patients.episodes.current_diagnoses[*].code.coding[*].code == code(search param)
Post-processing processes*
...