Skip to content

Bug: Multiple notes for active problems #1627

Description

@angelathe

What needs to be done

Recently, a FHIR converter PR added the possibility of multiple notes in a Condition resource. This results in issues when evaluating the notes column in the Active Problems table because it expects only one result (but can get multiple). Please fix so that all notes are displayed in the Viewer, and not just the first.

Example eCR: admission diagnosis 2 (Peach Ice Tea) -- see Sharepoint -> Cleared eCR Test Data

Screenshot 2026-07-16 at 13.15.30.png

Example: Condition resource note field (multiple)

                "note": [
                    {
                        "text": "Note 1"
                    },
                    {
                        "text": "Note 2"
                    }
                ],

Why it needs to be done

Bug found -- non-breaking, but additional notes for certain active problems are not displaying.

Acceptance Criteria

GIVEN a Condition resource that has multiple notes (see example below)

  • All notes should be displayed in the Active Problems Table
  • No more console errors will appear
  • Add any relevant unit/snapshot tests

Technical Notes

FHIR conversion should NOT be required for this ticket. Note that it is valid FHIR for the notes field to be an array of Annotations. We just need to figure out a way to display all possible notes (separate notes with a line break in the Viewer?). Ask Chinelo if design updates are needed.

FHIR R4 Condition Resource - Link

Additional context

FHIR converter PR that added more notes: https://github.com/CDCgov/dibbs-FHIR-Converter/pull/143/changes

Metadata

Metadata

Labels

needs design reviewThe PR for this issue needs design review before mergestreamline eCRIssues for the Streamline eCR team🐛 bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions