CDCgov / phdi

https://cdcgov.github.io/dibbs-site/
Creative Commons Zero v1.0 Universal
34 stars 14 forks source link

Indicate no results on query customization page #2557

Closed m-goggins closed 1 month ago

m-goggins commented 1 month ago

Not all queries have concepts for labs, medications, and conditions, e.g., Cancer only has a single condition. When users get to the query customization page for queries without concepts, it looks like they did something wrong. We should update the page to indicate that the lack of labs/medications/conditions is expected.

We could notify the user on the tab, or right below the Query: XXX title, e.g. 0 labs found, 0 medications found, 1 condition found, which could re-use the concept counts that are in the table already.

We could also consider getting rid of the "include all X" for tabs that don't have any values as well.

Whoever picks this ticket up should also consult with Laura.

image.png
robertandremitchell commented 1 month ago

Remove include all if 0 Include summary under query with 0 labs found, 0 medications found, 1 condition found

"No labs available for this query".

lg-king commented 1 month ago

under each tab with no results: "no labs available for this query."

summary of what's available below query label: "0 labs, 0 medications and 1 condition are available for this query."

remove "include all" when no results