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

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 Test CasesTest Cases DescriptionTest Cases InputsExpected ResultsStep by Step ScriptsActual Result
ER1Register new Doctor employee by Doctor
  • party - New
  • employee_type - Doctor
  • specialities - PEDIATRICIAN

Response 401

  • access_denied - Invalid access token
  1. Get doc authorize token
  2. Authorize scopes 4 doc
  3. Exchange grant token 4 doc
  4. Create employee request

ER2Register new Doctor employee by Owner
  • party - New
  • employee_type - Doctor
  • specialities - PEDIATRICIAN
  • email - your email

Response 200

  • sent link to email "Запрошення до співпраці з eHealth"
  • Employee saved in DB with status APPROVED



  1. Get owner authorize token
  2. Authorize scopes owner
  3. Exchange grant token owner
  4. Create employee request
  5. Pass register steps via link in email

ER3Register old employee by Owner
  • party - Old
  • employee_type - New
  • specialities - no
  • email - your email

Response 200

?

  1. Get owner authorize token
  2. Authorize scopes owner
  3. Exchange grant token owner
  4. Create employee request
  5. Pass register steps via link in email

ER4Create employee request W/O authorization
  • party - New
  • employee_type - Doctor
  • specialities - PEDIATRICIAN
  • Authorization Header - No

Response 401

  • access_denied
  1. Create employee request - W/O authorization

ER5Create employee request for different legal entity 
  • legal_entity_id - New
  • division_id - Old
Response 4**
  1. Get owner authorize token
  2. Authorize scopes owner
  3. Exchange grant token owner
  4. Create employee request by another legal_entity

ER6Create Employee request without the block "Doctor"
  • party - New
  • employee_type - Doctor
  • Doctor - No

Response 422

  • validation_failed
  1. Get owner authorize token
  2. Authorize scopes owner
  3. Exchange grant token owner
  4. Create employee request

ER7Create employee request with incorrect tax number
  • party - New
  • employee_type - Doctor
  • tax_id - 00000000

Response 422

  • validation_failed
  1. Get owner authorize token
  2. Authorize scopes owner
  3. Exchange grant token owner
  4. Create employee request

ER8Create employee request with incorrect employee_type
  • employee_id - f7693095-157d-4911-b021-c0d2f819daee
  • employee_type - OWNER
  • Doctor - No

Response 409

  • employee_type doens't match
  1. Get owner authorize token
  2. Authorize scopes owner
  3. Exchange grant token owner
  4. Create employee request

  • No labels