Render associated clinical information in the eCR Summary
Action Requested
When given an eICR ID and SNOMED condition code in the eCR Viewer, show "clinical results relevant to associated condition" in the eCR summary.
Acceptance Criteria
The "clinical results relevant to reportable condition" field is filled out for all eCRs where the information is available.
Testing
We'll likely want unit and integration testing for this feature.
Designs
There are three separate types of clinical information that could be displayed here: a diagnosis/problem, a suspected disorder, and a medication. We should consult with Sarah to see if these should all be listed out or separated in some way in the design.
Background & Context
When NBS sends a request to the eCR Viewer, it will include two pieces of information: the eICR ID and the SNOMED code for the specific condition a user is viewing. (The condition code is necessary because some eCRs have multiple conditions associated to the RR). Given these two pieces of information, our viewer should be able to render the eCR viewer and the "clinical results relevant to reportable condition".
To do this, we'll need to scan relevant portions of the FHIR bundle for SNOMED codes matching the condition_code parameter.
Additional Information
The "associated lab info" ticket (#1157) will probably be tackled first and add the condition_code param to the eCR Viewer. This ticket will just be responsible for:
- Finding all clinical results relevant to the condition
- Displaying those results in the eCR Summary