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

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 4 Next »

n/n
description
inputs
expected result
step by step script
actual result
CDR1Create Declaration Request
  • token
  • division_id
  • person_id
  • employee_id
201, created declaration request
  • log in
  • send json

CDR2Create Declaration Request w/o scopes
  • token
  • division_id
  • person_id
  • employee_id
403, forbidden
  • log in
  • send json

CDR3

Create Declaration Request person<>token.person

  • token
  • division_id
  • person_id
  • employee_id
422
  • log in
  • send json

CDR4Create Declaration Request inactive division
  • division_id.status='CLOSED'
422
  • log in
  • send json

CDR5Create Declaration Request dismissed doctor
  • employee_id.status='DISMISSED'
422
  • log in
  • send json

CDR6Create Declaration Request different tax_id in user and person
  • invalid person id
422
  • log in
  • send json

CDR7Create Declaration Request doctor doesn't belong to division
  • division_id
  • employee_id - doesn't match
422
  • log in
  • send json

CDR8Create Declaration Request doctor doesn't meet patients' age
  • employee_id -> THERAPIST
  • person_id -> age<18
422
  • log in
  • send json

CDR9Create  Declaration Request for patient with existing declaration and authentificaion_method
  • person_id → current.auth_method='OTP'
422
  • log in
  • send json

CDR10Create  Declaration Request with employee_type<>DOCTOR
  • employee_id -> HR
422
  • log in
  • send json

CDR11Create  Declaration Request with doctor who reached limit
  • employee_id → declaration_qty=2000
422
  • log in
  • send json

  • No labels