Skip to content

πŸ› Fix validation script to require relapse-related fields when disease_status_at_followup is 'Progression NOS'Β #357

@hknahal

Description

@hknahal

Describe the bug

When "disease_status_at_followup" = "Progession NOS", the "relapse_type" and "relapse_interval" fields should be required. Instead, it reports an error 'relapse_type' cannot be provided if 'disease_status_at_followup' is not a state of progression, relapse, or recurrence. This is because the validation script only matches on "progression" at the end of the string:

 const stateOfProgression = (entry) => {return /(progression)$/.test(decodeURI(entry))}; 

This should be corrected so it matches on "progression" anywhere in the string submitted for "disease_status_at_followup".

Steps To Reproduce

Submit "disease_status_at_followup" = "Progression NOS"
Submit "relapse_type" = "distant recurrence/metastasis"
Submit "relapse_interval" = 54

Error message: ``'relapse_type' cannot be provided if 'disease_status_at_followup' is not a state of progression, relapse, or recurrence.`

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions