-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 Stored data inconsistency - therapies stored separately from their treatment records #1186
Comments
Copy from slack for historical records: I took a look at the graphql query and its:
I think whats happening is when steve is designating a donor as lost to follow up via submitter treatment_id 920cec14-2059-5aff-b1da-6671530c7601_3 Additional context:
|
Additional investigation with Ummulkiram. MUTO-INTL was able to submit We suspect they uploaded all 3 files (donor,treatment and treatmentDetails), bypassing data base check. Still creates incorrect data shape however. |
… stored separately from their treatment records
* add program exception check * add check for exception in specimen validation * fix conditional search param object creation * add exception lookup check to treatment * add follow_up exception check * add entity exception check also * fix type error * handling if program_id is undefined * Skip time interval checks when `survival_time` value is missing * cleanup exception code * fix TS build error * remove specimen_acquisition_interval from not info validation info unit test * remove survival_time assertion on follow up unit test --------- Co-authored-by: Ciaran Schutte <[email protected]> Co-authored-by: Jon Eubank <[email protected]>
Describe the bug
Cases have been found in the clinical database where submitted clinical data have the Treatment Details is stored in a new empty treatment, instead of inside the therapies array of its corresponding treatment.
The expected data structure would look like:
But instead it is being inserted as two separate treatment records:
Steps To Reproduce
Unknown how to reproduce. We have attempted to recreate the submission but the data is submitted in the expected structure. As part of this ticket we want to review the submission code to identify any conditional or edge cases that could cause this.
It is believed that all the treatment and therapy records were created as part of the same clinical data submission since their generated Treatment IDs are near to each other (within 20) but not consecutive, and the order is random (some treatments are before therapies and some are after).
Ask @joneubank or @UmmulkiramR for example cases.
Objectives
Identify all donors that have treatments with invalid form
Write a script to correct a clinical database that has records in this invalid form
Review the clinical submission code to identify how therapies can get created in this invalid form
The text was updated successfully, but these errors were encountered: