We're updating the issue view to help you get more done. 

Entering phenotypes or diseases in the export filters sometimes causes 0 results to be returned

Description

Two scenarios:

With match all selected symptoms selected:

1. Open the All data table
1. Open the Export database dialog
1. Select match *all* of the selected phenotypes
1. Search for and select a phenotype that should have at least one matching record
1. 0 matching records are reported

This bug deals with the fact that the request is created before the suggest field is cleared, so the requested phenotypes include both the HP code and the user-entered name of the symptom, and both are required to be in the phenotype field of matching patient records.

With values selected in the data table:

1. Open the All data table
1. Expand the Advanced data filters area
1. Search for and select a phenotype, for example Intellectual disability, which should have at least one matching record
1. Open the Export database dialog
1. Search for and select the same phenotype
1. 0 matching records are reported, and the selected phenotype is not displayed

In addition to the previous bug, this deals with the fact that trying to select a phenotype that was previously selected, although in a different area of the HTML page, will re-check that phenotype checkbox again instead of adding a new input in the proper form

Environment

None

Status

Assignee

SergiuD

Reporter

Sergiu Dumitriu

External issue ID

871

External issue ID

None

Fix versions

Priority

Medium