lh-ehr
lh-ehr copied to clipboard
Displays unrelated drug search results together with error message ‘No results to display.’
A) Outreachy Username: elizabeth
B) Issue Title: Displays unrelated drug search results together with error message ‘No results to display.’.
C) Bug Report Date: March 15, 2019.
D) Site Affected: Documentation Site and NHANES
E) OS/ Browser Used: Chrome on Ubuntu 16.04
F) Which Workflow Module in LHEHR: Reports => Inventory => Activity
G) Steps to Reproduce the Bug:
- Login to LibreHealth EHR.
- Select Inventory drop down option from the Reports menu item and click on Activity.
- Select citrizen, f32 or nuro from the For drop down options.
- Select a From and To date range (Optional to reproduce bug).
- Click on Submit button.
H) At Point of the Bug, the Expected Behavior: User expects to see a the results of the performed drug search activity in an orderly manner, say, a table for example.
I) Details of What Actually Happened: User gets the error message ‘No results to display.’ which is OK if no specified drug activity was found but then, the user is still presented with search results for other drugs which is clearly irrelevant since it is not was the user selected from drop down options.
J) Provide Relevant Screenshot and Explain the Screenshot:
Illustration 1: Showing normal search results for panadol.
Illustration 2: Showing error message and irrelevant search results for citrizen drug search in a table
K) Estimation of The Bug Severity: Module function continues with ongoing errors (Critical).
M) Suggested Solution: I suggest that when a user selects a particular drug from a drop down menu, since this is obviously not a spelling error, the user should be presented with a search results only if the drug is found. If the drug is not found like citrizen above, user should get the message 'No Resluts to Display' and no other results displayed alongside this message.
@muarachman, @aethelwulffe Is this ok to fix with my suggested solution.
@Ngai-E Do you have a way of making your suggested solution happen?