-
Notifications
You must be signed in to change notification settings - Fork 1
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
🐛 tumour related fields in Specimen should only be required if specimen is tumour #54
Comments
@hknahal related to this ticket, do you need another ticket to change the "required" to "dependency" in the dictionary? |
@kcullion - sure, we can make a separate ticket for changing "required" to "dependency". This ticket is more about creating a script validation. |
Ok so I just spoke with @blabadi. This is possible, but it would not be done within a script that runs upon upload. These fields sitting in |
@wajiha-oicr ok that sounds good. so will you make them NOT required on upload, then when user hits "validate submission" the submitter will see if they are missing any because it's a tumour? |
I will have to remove the |
yes exactly |
sounds great. Thanks @wajiha-oicr and @blabadi |
@hknahal so just to be crystal clear, not only are these fields not required when the tumour designation is set to normal, but they shouldn't be filled in at all? I.e. throw an error if someone is providing values for these fields when the corresponding tumour designation is set to normal. Is the correct? |
Yes, if the |
So I was testing my changes, and they work as intended upon the
The user is left confused wondering why they had to first FILL in a value only to be told they weren't allowed to fill in those values. Since the script has no knowledge about the value of the tumour designation, it is behaving as intended. However I can see this being annoying to a user in these edge cases. Not sure what can be done about this at the moment. |
thanks @wajiha-oicr I see what you mean and it would be frustrating. I have a feeling the submitters would probably know what the specimen designation is (normal or tumour) when filling out the specimen file and probably would know to leave those tumour fields blank for the normals. @hknahal what do you think? Do you think the submitter will just get used to what fields go with normal and what go with tumour? @hknahal also, was there a reason the tumour_normal_designation was in the sample-registration file and not the specimen file? |
These are the two error messages I wrote for this ticket. Please provide your feedback on them. For a missing field
For example: "pathological_tumour_staging_system is a required field because the corresponding record in sample_registration.tsv had tumour_normal_desgination set to Tumour." For when a value for a field was provided when it shouldn't have been
For example: "pathological_tumour_staging_system should not be filled in. This field must be left empty because the corresponding record in sample_registration.tsv had tumour_normal_desgination set to Normal." |
Thanks @wajiha-oicr! well done :) I think we have been making them more general and not related to the files. so I would suggest something consistent with the other errors (eg when submitter didn't specify cause of death) pathological_tumour_staging_system must be provided when the tumour_normal_designation is Tumour. and pathological_tumour_staging_system should not be provided when the tumour_normal_designation is Normal. |
rc/1.3.0 related to icgc-argo/argo-dictionary#54
@wajiha-oicr this is looking really good! Thanks |
Tested in production and just noticed a couple fields that weren't required if tumour. Made a new ticket icgc-argo/argo-docs#139 |
tested on prod - looks great! |
Describe the bug
Currently, the data submitter is expected to submit clinical data for the tumour-related specific fields when the
tumour_normal_designation
isNormal
which is incorrect.Expected behaviour
The following tumour-related fields should only need to be completed only if
tumour_normal_designation
isTumour
. Iftumour_normal_designation
isNormal
, then these fields should not be filled in:pathological_tumour_staging_system
pathological_T_category
pathological_N_category
pathological_M_category
pathological_stage_group
tumour_grading_system
tumour_grade
percent_tumour_cells
percent_proliferating_cells
percent_stromal_cells
percent_necrosis
The text was updated successfully, but these errors were encountered: