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

Create Declaration Request Online tests

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
  • 200
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
422 "description": "Division is not active"
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

user+ - person - -422

user- -person+ - 200

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
422 Doctor speciality does not meet the patient's age requirement
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

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