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.

d d1 d d d d dD DD DD DD D d d1 d d d d1 d d d d dD DD DD DD DD DD D d  d1   d d d  d1   d d d d dD DD DD DD DD DD D d d1   d d d
n/n Test Case
Test Case Description
Test Case Inputs
Expected Result
Step by Step Script
Actual result
DR1

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


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

Declaration ddr.1 status new

Declaration ddr.1 2 status new

  1. Create declaration request ddr.1
  2. Create declaration request ddr.2

Declaration

dr.1 status approved

Declaration

dr.

2 status new

  1. Create declaration request
  1. dr.1
  2. Approved declaration request
  1. dr.1
  2. Create declaration request
  1. 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
  1. DR.1 LE !=
  1. DR. 2 LE
  1. DR.1 Empl !=
  1. DR. 2 Empl
  1. DR.1 tax_id =
  1. DR.2 tax_id
  1. DR.1 doc.number =
  1. DR.2 doc.number

Declaration

dr.1 status - from new to cancelled

Declaration

dr.

2 status new

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

Declaration

dr.1 status - from approved to cancelled

Declaration

dr.

2 status new

  1. Create declaration request
  1. dr.1
  2. Approved declaration request
  1. dr.1
  2. Create declaration request
  1. 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
  1. DR.1 LE =
  1. DR. 2 LE
  1. DR.1 Empl =
  1. DR. 2 Empl
  1. DR.1 first_name =
  1. DR. 2 first_name
  1. DR.1 last_name =
  1. DR. 2 last_name
  1. DR.1 birth_date =
  1. DR. 2 birth_date
  1. DR.1 doc.number !=
  1. DR.2 doc.number

Declaration

dr.1 -

 status new

Declaration

dr.

2 -

 status new

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

Declaration

dr.1 -

 status approved

Declaration

dr.

2 -

 status new

  1. Create declaration request
  1. dr.1
  2. Approved declaration request
  1. dr.1
  2. Create declaration request
  1. 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
  1. DR.1 LE !=
  1. DR. 2 LE
  1. DR.1 Empl !=
  1. DR. 2 Empl
  1. DR.1 first_name =
  1. DR. 2 first_name
  1. DR.1 last_name =
  1. DR. 2 last_name
  1. DR.1 birth_date !=
  1. DR. 2 birth_date
  1. DR.1 doc.number =
  1. DR.2 doc.number

Declaration

dr.1 - status from new to cancelled

Declaration

dr.

2 -

 status new

  1. Create declaration request
  1. dr.1
  2. Create declaration request
  1. 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



new
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
  1. Approved declaration request d.1
  2. Sign declaration request d1
  3. 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