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

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 »

When flag `USE_DEDUPLICATION_MODEL` turn on on IL, we have new logic.

n/n Test Case
Test Case Description
Test Case Inputs
Expected Result
Step by Step Script
Actual result
DR1

Patient's declaration request dr.1 and declaration dr.2 in one employee with tax_id


  1. Patient - Adult, New
  2. Tax_id - Yes
  3. Active declarations - No
  4. DR.1 LE = DR. 2 LE
  5. DR.1 Empl = DR. 2 Empl
  6. DR.1 tax_id = DR.2 tax_id
  7. DR.1 doc.number != DR.2 doc.number

Declaration dr.1 status - new

Declaration dr.2 status - new

  1. Create declaration request dr.1
  2. Create declaration request dr.2

Declaration dr.1 status - approved

Declaration dr.2 status - new

  1. Create declaration request dr.1
  2. Approved declaration request dr.1
  3. Create declaration request dr.2

DR2Patient's declaration request dr.1 and declaration dr.2 in different employeewith tax_id
  1. Patient - Adult, New
  2. Tax_id - Yes
  3. Active declarations - No
  4. DR.1 LE != DR. 2 LE
  5. DR.1 Empl != DR. 2 Empl
  6. DR.1 tax_id = DR.2 tax_id
  7. DR.1 doc.number = DR.2 doc.number

Declaration dr.1 status - from new to cancelled

Declaration dr.2 status - new

  1. Create declaration request dr.1
  2. Create declaration request dr.2

Declaration dr.1 status - from approved to cancelled

Declaration dr.2 status - new

  1. Create declaration request dr.1
  2. Approved declaration request dr.1
  3. Create declaration request dr.2

DR3Patient's declaration request dr.1 and declaration dr.2 in one employee w/o tax_id
  1. Patient - Adult, New
  2. Tax_id - No
  3. Active declarations - No
  4. DR.1 LE = DR. 2 LE
  5. DR.1 Empl = DR. 2 Empl
  6. DR.1 first_name = DR. 2 first_name
  7. DR.1 last_name = DR. 2 last_name
  8. DR.1 birth_date = DR. 2 birth_date
  9. DR.1 doc.number != DR.2 doc.number

Declaration dr.1 - status new

Declaration dr.2 - status new

  1. Create declaration request dr.1
  2. Create declaration request dr.2

Declaration dr.1 - status approved

Declaration dr.2 - status new

  1. Create declaration request dr.1
  2. Approved declaration request dr.1
  3. Create declaration request dr.2

DR4Patient's declaration request dr.1 and declaration dr.2 in different employee w/o tax_id
  1. Patient - Adult, New
  2. Tax_id - No
  3. Active declarations - No
  4. DR.1 LE != DR. 2 LE
  5. DR.1 Empl != DR. 2 Empl
  6. DR.1 first_name = DR. 2 first_name
  7. DR.1 last_name = DR. 2 last_name
  8. DR.1 birth_date != DR. 2 birth_date
  9. DR.1 doc.number = DR.2 doc.number

Declaration dr.1 - status from new to cancelled

Declaration dr.2 - status new

  1. Create declaration request dr.1
  2. Create declaration request dr.2

Declaration dr.1 - status from approved to cancelled

Declaration dr.2 - status new

  1. Create declaration request dr.1
  2. Approved declaration request dr.1
  3. Create declaration request dr.2

DR5

Declaration request OTP with auth.phone = conf.phone
  1. Patient - Adult, New
  2. Confidant person - Yes
  3. Authentication method - OTP
  4. Phone number - Verified
  5. Person auth_phone = confidant person phone
Response - 200Create declaration request



DR6Declaration request OTP with auth.phone != conf.phone
  1. Patient - Adult, New
  2. Confidant person - Yes
  3. Authentication method - OTP
  4. Phone number - Verified
  5. Person auth_phone != confidant person phone

Validation error - 422

  • "Confidant person should use own phone for authentication"
Create declaration request
DR7Declaration request tax_id id not null and related with bd and gender
  1. Patient - Adult, New
  2. Confidant person - Yes
  3. Phone number - Verified
  4. Person.tax_id is related with birth_date and gender
  5. Conf_person.tax_id is related with birth_date and gender
Response - 200Create declaration request
DR8Declaration request tax_id id not null and is not related with bd and gender
  1. Person.tax_id is related with birth_date and gender
  2. Conf_person.tax_id is not related with birth_date and gender
Validation error - 422
  • Person's tax ID is not valid

Create declaration request



  1. Person.tax_id is not related with birth_date and gender
  2. Conf_person.tax_id is related with birth_date and gender
  1. Person.tax_id is not related with birth_date and gender
  2. Conf_person.tax_id is not related with birth_date and gender
n/n Test Case
Test Case Description
Test Case Inputs
Expected Result
Step by Step Script
Actual result
DR1Create declaration request OTP dr.2 with person.id(have same tax_id and auth.phone
  1. Patient - Adult, New
  2. Active declarations - Yes
  3. Authentication method - OTP
  4. DR2.person.id = d1.person_id
  5. DR2.person.tax_id = d1.tax_id
  6. DR2.person.auth_phone = d1.auth_phone

Response - 200

On decl request dr.2 in il.declaration_request.mpi = d1.person_id


  1. Create declaration request d.1
  2. Approved declaration request d.1
  3. Sign declaration request d1
  4. Create declaration request dr.2

DR2Create declaration request OTP dr.2 w/o person.id (have same tax_id and auth.phone
  1. Patient - Adult, New
  2. Active declarations - Yes
  3. Authentication method - OTP
  4. DR2.person.id = d1.person_id
  5. DR2.person.tax_id = d1.tax_id
  6. DR2.person.auth_phone = d1.auth_phone
Validation error - 422
  • Such person exists. Update this person
  1. Create declaration request d.1
  2. Approved declaration request d.1
  3. Sign declaration request d1
  4. Create declaration request dr.2

DR3Approved declaration request OTP dr.2 with person.id(have same tax_id and auth.phone
  1. Patient - Adult, New
  2. Active declarations - Yes
  3. Authentication method - OTP
  4. DR2.person.id = d1.person_id
  5. DR2.person.tax_id = d1.tax_id
  6. DR2.person.auth_phone = d1.auth_phone

Responce - 200

  • verified code for old nunber
  • Declaration request  dr2  status APPROVED
  1. Create declaration request d.1
  2. Approved declaration request d.1
  3. Sign declaration request d1
  4. Create declaration request dr.2
  5. Approved declaration request dr.1













  • No labels