Skip to content

Bug: Fix unavailable term handling between evaluateNotes and evaluateData #1467

@angelathe

Description

@angelathe

What needs to be done

When Reason for Visit and Clinical Notes sub-sections only contain text from the list of unavailable terms, they are still displayed under the Clinical Info section rather than under the Unavailable Info section. This is likely due to a mismatch between how evaluateNotes formats data and how evaluateData determines whether content is available.

Screenshot 2026-05-11 at 17.00.20.png

Why it needs to be done

Viewer should properly filter out sections with unavailable info.

Acceptance Criteria

  • If Reason for Visit contains only unavailable terms, it is displayed under Unavailable Info instead of Clinical Info.
  • If Clinical Notes contains only unavailable terms, it is displayed under Unavailable Info instead of Clinical Info.
  • All other sub-sections containing valid content continue to appear as normal.
  • Any relevant tests are added/updated.

Technical Notes

In clinical-data.tsx, see:

  • clinicalNotes and reasonForVisitData in evaluateClinicalData function
  • evaluateNotes function

Additional context

To view bug:

  • View Minch Yoda test eCR
  • Scroll to Clinical Info section -> Clinical Notes and/or Reason for Visit
  • Displays No Information when these sub-sections should have only appeared in the Unavailable Info section

Metadata

Metadata

Assignees

No one assigned

    Labels

    streamline eCRIssues for the Streamline eCR team🐛 bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions