[WEBCLIENT-105] Previous Queries appear to be missing value constraints when dropped in Query Tool Created: 15/Apr/15 Updated: 12/May/15 Resolved: 21/Apr/15 |
|
Status: | Closed |
Project: | i2b2 Web Client |
Component/s: | CRC Cell, Web Client |
Affects Version/s: | 1.7.04 |
Fix Version/s: | 1.7.05 |
Type: | Bug | Priority: | Major |
Reporter: | Janice Donahoe | Assignee: | Janice Donahoe |
Resolution: | Fixed | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: | unitsMissingIssue-PQdropped.png unitsMissingIssue-originalQuery.png |
Affects View/s: |
Query Tool
|
i2b2 Feature/s: |
Constraints - Value, Unit Values
|
i2b2 Sponsored Project/s: |
i2b2 Web Client
|
i2b2 Related Project/s: |
BBP, PCORI
|
Affects Web Browser/s: |
All Web Browsers
|
Reproduction Notes: | This can be reproduced in the i2b2 test environment.
STEPS TO REPRODUCE: Issue #1: Units missing 1. Log into the i2b2 Web Client 2. Drag a lab test such as GHBA1C from an Ontology view to a panel in the Query Tool. 3. Select a numerical value constraint when the Value Constraint window opens. 4. Click on OK to save the changes. 5. Notice the units will display on the panel next to the numerical value constraint. 6. Run the query and notice in the sent xml the unit appears correctly. 7. Click on the Clear button in the Query Tool. 8. Drag from Previous Queries the query you just ran and drop it at the Query Name in the Query Tool. 9. Notice the numerical value appears but the units are missing. 10. Run the query and notice the value for the units is "undefined". Issue #2: Enumerated values missing quotes 1. Drag a lab test like Urinalysis \ Bacteria to a panel in the Query tool. 2. Select several enumerated value from the list displaying in the Value Constraint window. 3. Click on OK to save the changes. 4. Notice the string of enumerated values appears correctly. 5. Run the query. 6. Once the query runs, clear the Query Tool. 7. Drag from Previous Queries the query you just ran and drop it at the Query Name in the Query Tool. 8. Notice the beginning quote is missing from the first value and the end quote is missing from the last value. Issue #3: Flag constraint missing 1. Drag a lab test like Chemistry \ Cardiac Tests \ CK-MB (CK2) to a panel in the Query tool. 2. In the Value Constraint window click on radio button next to By Flag. 3. Select a flag from the drop-down list. 4. Click on OK to save the changes. 5. Notice the flag appears correctly next to the item name in the panel. 6. Run the query. 7. Once the query runs, clear the Query Tool. 8. Drag from Previous Queries the query you just ran and drop it at the Query Name in the Query Tool. 9. Notice the flag is missing. |
Testing Notes: | Test Date: 04/21/2015
Build Number: Test Status: Passed Clients Tested : i2b2 Web Client Environments Tested : Browsers: Chrome, Firefox, Internet Explorer, Safari Databases: Not applicable for this test Client OS: Macintosh, Windows Test Comments: Tested with the latest web client build and it appears to be working correctly. I verified all types of result constraints (numerical, enumerated, longtext, and text) are working correctly for both concepts and modifiers. ++++++++++++++++++++++++++++++++++++++++++++++++++++ Test Date: 04/16/2015 Build Number: Test Status: Failed Clients Tested : i2b2 Web Client Environments Tested : Browsers: Chrome, Firefox, Internet Explorer, Safari Databases: Not applicable for this test Client OS: Macintosh, Windows Test Comments: Tested with the latest web client build and two out of the three issues are working. There is still an issue with the units not displaying in the panel and the xml containing the value of "undefined" for the units. The issues with enumerated values and flags is now working correctly. |
Participant/s: |
Description |
The unit of measure is missing when you drop a previous query with a value constraint into the query tool. It does not display in the panel and more importantly it is being sent in the xml as "undefined".
In order for the units to be sent in the new query the user has to go back into the value constraint window and select the units again. XML Message: In the sent xml message for the original query the unit value correctly appears as: <value_unit_of_measure>%</value_unit_of_measure> In the sent xml message for the query run from the previous query the unit value appears as: <value_unit_of_measure>undefined</value_unit_of_measure> ATTACHMENTS: unitsMissingIssue-originalQuery.png - shows how the units (%) are displaying when running the original query. unitsMissingIssue-PQdropped.png - shows how the units (%) are missing from the panel when the previous query is dropped. UPDATED: Upon further testing I found that similar problems are happening for both flagged and enumerated value constraints. Issue with Enumerated values: Normally enumerated values will contain double quotes around them when they are displayed in the panel (Query Tool). When you drop a previous query with an item with enumerated value constraints defined the values are not displaying in the panel correctly. The first item in the list will be missing the beginning quote and the last item in the list will be missing the ending quote. Example: The following is an example of how it should display in the panel: Bacteria (Group:UAS-BACT) = ("1+", "FEW", "SOME") The following is an example of how it displays incorrectly in the panel: Bacteria (Group:UAS-BACT) = (1+", "FEW", "SOME) Issue with Flagged value constraints: When you drop a previous query with an item that has a flag value constraint defined the flag does not appear in the panel next to the item. If you go into the value constraint window the flag will be defined. |
Comments |
Comment by Janice Donahoe [ 16/Apr/15 ] |
Units are still not displaying in panel and "undefined" is being sent in the xml message. |
Comment by Janice Donahoe [ 12/May/15 ] |
Version 1.7.05 of the i2b2 Software has been released and is available for download on the i2b2 website (http://www.i2b2.org/software). |