Open lindaxiang opened 1 month ago
I am proposing a change to the expected behaviour detailed in the ticket. Instead of having our cross file validations check for the survival_time
exception, we should just check if there is a survival_time
value. If there is no value, then we don't apply the checks (they would always fail). If there is no value and also no exception, then the validation would fail in the donor entity validation, so we don't need to worry about that in the time interval cross validations.
QA check
TEST-QA
Donor-hn-10
result summary:
result details:
specimen_acquisition_interval
submittable with survival_time
exception
treatment_start_interval
submittable with survival_time
exception
interval_of_follow_up
submittable with survival_time
exception
Describe the bug
There're programs (MONSTAR and P1000) requesting program level exceptions on field:
Donor/survival_time
. Since this field is the clinical endpoint in ARGO. It is used to validate all time interval related fields for other clinical events (ie. Follow up, Treatment, Specimen acquisition etc) if a patient is deceased.However, if the program has requested exception on
Donor/survival_time
, we currently still enable the cross fields validations between the following interval fields andsurvival_time
and will issue validation errors.Steps To Reproduce
Context:
Steps to reproduce the behaviour:
treatment: treatment.txt
follow_up: follow_up.txt
[specimen_acquisition_interval] requires [donor.survival_time] in order to complete validation. Please upload data for all fields in this clinical data submission.
[treatment_start_interval] requires [donor.survival_time] in order to complete validation. Please upload data for all fields in this clinical data submission.
[interval_of_followup] requires [donor.survival_time] in order to complete validation. Please upload data for all fields in this clinical data submission.
Expected behaviour
If the program has requested exceptions on
Donor/survival_time
, we need to disable the cross validation between interval fields andsurvival_time
.