dbmi-pitt / dbmi-annotator

based on annotator.js, an annotation framework enable user account and annotation permission management and templating annotation plugin in biomedical domain.
Apache License 2.0
4 stars 5 forks source link

[form validation] when drug2 is N/A, marking as precipitant will causes N/A appears in assertion #218

Open ningyifan opened 7 years ago

ningyifan commented 7 years ago

From Eric: Annotation editor permits user to choose Drug2 as Precipitant when Drug2 is “N/A”. Thus an example claim in the Annotation Table shows up as “N/A_inhibits_cyp2c9” which doesn’t seem like it should be correct. Article used: http://localhost/test/test9384460.html

Solution: (1) Form validation should check drug selection with precipitant as pair, required drug mention other than N/A when marked as precipitant (2) When drug required, not allowing N/A as valid selection