Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

🐛 Disable the cross interval fields validation when there's exception on survival_time. #1186

Open
lindaxiang opened this issue Oct 21, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@lindaxiang
Copy link

lindaxiang commented Oct 21, 2024

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 and survival_time and will issue validation errors.

  • specimen_acquisition_interval
  • treatment_start_interval
  • interval_of_followup

Steps To Reproduce

Context:

  • Environment: QA
  • Program: MONSTAR-JP
  • Submitter Donor ID: MS0010020
  • Exception: survivial_time

Steps to reproduce the behaviour:

  1. Go to 'https://platform-ui.argo-qa.cumulus.genomeinformatics.org/' and login
  2. Click on 'MONSTAR-JP' and tab 'Submit Clinical Data'
  3. Click on 'UPLOAD FILES'
  4. Submit either one or all of the following test files
  1. Click on 'VALIDATE SUBMISSION'
  2. See specific errors
  • specimen: [specimen_acquisition_interval] requires [donor.survival_time] in order to complete validation. Please upload data for all fields in this clinical data submission.
  • treatment: [treatment_start_interval] requires [donor.survival_time] in order to complete validation. Please upload data for all fields in this clinical data submission.
  • follow_up: [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 and survival_time.

@lindaxiang lindaxiang added the bug Something isn't working label Oct 21, 2024
@justincorrigible justincorrigible changed the title 🐛 Disable the cross interval fields validation when there's exception on survivial_time. 🐛 Disable the cross interval fields validation when there's exception on survival_time. Oct 21, 2024
@joneubank
Copy link
Member

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.

@edsu7
Copy link

edsu7 commented Nov 21, 2024

QA check

result summary:

  • passes upload checks and passes validation

result details:

  • deceased donor with no survival time
    image
  • specimen_acquisition_interval submittable with survival_time exception
    image
  • treatment_start_interval submittable with survival_time exception
    image
  • interval_of_follow_up submittable with survival_time exception
    image

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants