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
Test bundle BundleClinical should be updated with at least one active problem comment.
Snapshot tests should be updated
Unit test should be added (see "should display comment” test in labsService.test.tsx → “Evaluate Diagnostic Report”)
Use the designs for the Lab Info comments for the Active Problem comments.
Column name for active problems comments: Comments
Functionality: Should be able expand/collapse comments.
Example functionality (from labs):
Collapsed (Default):
Expanded:
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):
Additional Information
Related files:
Lab comments PR for reference: PR #1670
returnProblemsTable function in src/app/view-data/components/common.tsx - renders Active Problems table
For FHIR conversion: Adding comment(s) to fhir-converter/Templates/eCR/Resource/_Condition.liquid
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
BundleClinical
should be updated with at least one active problem comment.labsService.test.tsx
→ “Evaluate Diagnostic Report”)Designs
Figma Designs Figma Clickable Prototype
Use the designs for the Lab Info comments for the Active Problem comments.
Comments
Example functionality (from labs):
Collapsed (Default):
Expanded:
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
):Additional Information
Related files:
returnProblemsTable
function insrc/app/view-data/components/common.tsx
- renders Active Problems tablefhir-converter/Templates/eCR/Resource/_Condition.liquid