# | Description | Expected result | Actual result | |
---|---|---|---|---|
Valid input data | 200, record created in DB | |||
Wrong scopes | token of user, who doesn't have the scope | 403 | ||
Declaration validation(link to test cases) handled | id of the patient, who does not have a declaration with the doctor | 403 | ||
Patient status | id of the patient that is not active | 209 | ||
PK is unique | $.id not unique | 422 | ||
Managing organization is not a legal_entity | $.managing_organization.identifier.type.coding.[0].code != "legal_entity" | 422 | ||
Attempt to create episode for another legal_entity | $.managing_organization.identifier.value != token.client_id | 422 | ||
Start date is in future | $.period.start !<= current_date | 422 | ||
End date is present in request | end_date | |||
Care_manager is not an employee | $.care_manager.identifier.type.coding.[0].code != "employee" | 422 | ||
Care_manager is not a DOCTOR | PRM.employee.type != "DOCTOR" | 409 | ||
Care_manager is not active | PRM.employee.status!= "active" | 409 | ||
Care_manager is not from the same legal_entity | PRM.employee.legal_entity! = token.client_id | 409 |
ЕСОЗ - публічна документація
General
Content
Integrations