CDCgov / phdi

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

Given an active problem, add comments if available (Clinical Info) #2076

Closed angelathe closed 1 week ago

angelathe commented 2 weeks ago

Action Requested

Add a new column for Comments in Active Problems table. If comments are present for a given row, the user will be able to click "View Comment" to see the full comment.

AS a user, I want to be able to view any comments associated with active problem(s) SO THAT I can have comprehensive information about a user's active problems.

Acceptance Criteria

GIVEN an eCR with active problems (Clinical Info section) WHEN problems have comments associated with them THEN these comments should be viewable in the eCR viewer.

NOTE: If there are breaks/newlines in comments in the HTML view, they should also be kept in the eCR Viewer.

Testing

Designs

Figma Designs Figma Clickable Prototype

Use the designs for the Lab Info comments for the Active Problem comments.

Example functionality (from labs):

Collapsed (Default):

image.png

Expanded:

image.png

Background & Context

Currently, comments are only available in the HTML table portion of the eICR XML. May require some FHIR conversion to add these comments to the Condition resources.

Example (seed data ID 61f13d32-b25c-4fb6-998b-73de2dbf87f2):

Screenshot 2024-07-06 at 09.51.20.png

Additional Information

Related files:

gordonfarrell commented 2 weeks ago

Look at other lab tables for examples of how we're doing this