Versions Compared

Key

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

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

...