Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


n/n
description
inputs
expected result
step by step script
actual result
CDR1Create Declaration Request
  • token
  • division_id
  • person_id
  • employee_id
201
200, created declaration request
  • log in
  • send json
  • mpi_id is null in declaration request
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
422
403
  • log in
  • send json
403, forbidden
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