Versions Compared

Key

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


n/n Test CasesTest Cases DescriptionTest Cases InputsExpected
Resalts
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
Create employee request -
  • 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

ER