ЕСОЗ - публічна документація

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

n/n
description
inputs
expected result
step by step script
actual result
CDR1Create Declaration Request
  • token
  • division_id
  • person_id
  • employee_id
200, created declaration request
  • log in
  • send json
  • mpi_id is null in declaration request
  • tax_id from users.tax_id=persons.tax_id
CDR2Create Declaration Request w/o scopes
  • token
  • division_id
  • person_id
  • employee_id
403, forbidden
  • log in
  • send json

403, forbidden, 

Your scope does not allow to access this resource. Missing allowances: declaration_request:write

CDR3

Create Declaration Request person<>token.person

  • token
  • division_id
  • person_id
  • employee_id
403
  • log in
  • send json
403, forbidden
CDR4Create Declaration Request inactive division
  • division_id.status='CLOSED'
422
  • log in
  • send json
200
CDR5Create Declaration Request dismissed doctor
  • employee_id.status='DISMISSED'
422
  • log in
  • send json
422, 
Invalid employee status
CDR6Create Declaration Request different tax_id in user and person
  • invalid person id
422
  • log in
  • send json
422, Person's tax ID in not valid
CDR7Create Declaration Request doctor doesn't belong to division
  • division_id
  • employee_id - doesn't match
200
  • log in
  • send json
200
CDR8Create Declaration Request doctor doesn't meet patients' age
  • employee_id -> THERAPIST
  • person_id -> age<18
422
  • log in
  • send json
200, doesn't check speciality
CDR9Create  Declaration Request for patient with existing declaration and authentificaion_method
  • person_id → current.auth_method='OTP'
200, N/A
  • log in
  • send json
200, N/A
CDR10Create  Declaration Request with employee_type<>DOCTOR
  • employee_id -> HR
422
  • log in
  • send json
422, Employee ID must reference a doctor
CDR11Create  Declaration Request with doctor who reached limit
  • employee_id → declaration_qty=2000
422
  • log in
  • send json
200
  • No labels