CDCgov / phdi

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

BUG: Categorize empty Misc Notes section as Unavailable Data #2601

Open angelathe opened 2 months ago

angelathe commented 2 months ago

Description

Please fix the bug in the eCR below where a section is incorrectly displayed as available information, even though no actual data is present.

Steps to reproduce

If a section has no available data, it should automatically be categorized under the Unavailable Data section.

  1. View this eCR: ff7023af-515e-42ac-9f2b-5e4dace9ea16
  2. Open the Clinical Info section -> Miscellaneous Notes.
  3. The "Miscellaneous Notes" field displays "Not on file documented in this encounter." This should have triggered the evaluateData function to categorize it under the Unavailable Info section. However, it is incorrectly being shown as available information instead.

Expected Result

In the eCR below, the Clinical info section should display "No clinical information was found in this eCR." because there is no available info in the whole section.

Screenshot 2024-09-20 at 12.47.57.png

Actual result

Screenshot 2024-09-20 at 12.46.03.png

Priority

Provide an estimate for level of impact the bug has today by placing an X in the applicable bracket

Priority

Notes

Relevant files: