n/n | description | inputs | expected_result | actual_result |
---|---|---|---|---|
ACR_MSP1 | Approve Contract Request without scope |
| 403 | 403 |
ACR_MSP2 | Approve Contract Request in status<>APPROVED |
| 409 | 409, Incorrect status of contract_request to modify it |
ACR_MSP3 | Approve Contract Request which doesn't exist |
| 404 | 404 |
ACR_MSP4 | Approve Contract Request with contractor_division<>'ACTIVE' |
| 422 | 422, Division is not active |
ACR_MSP5 | Approve Contract Request with invalid start_date from past |
| 422200, when contract_request is new and there is no parent_contract_id check start_date in future | 422, start date must be greater than current date |
ACR_MSP6 | Approve Contract Request with dismissed employee |
| 422 | 422, Employee must be active DOCTOR |
ACR_MSP7 | Approve Contract Request which belongs to other MSP |
| 403200, check $token.client_id=contrctor_legal_entity_id | 403, Client is not allowed to modify contract_request |
ACR_MSP8 | Approve Updating Contract Request with start_date in the past |
| 200, event added to event manager | 200 |
ACR_MSP9 | Approve valid Contract Request by MSP |
| 200, event added to event manager | 200 |
...