Skip to content

Commit

Permalink
fix: don't display "Lab Interpretation" component (#3071)
Browse files Browse the repository at this point in the history
* fix: don't display "Lab Interpretation" component

* fix: reset ecr formatting

* fix: pr feedback
  • Loading branch information
mcmcgrath13 authored Dec 18, 2024
1 parent 750289c commit 29a88f2
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 1 deletion.
6 changes: 5 additions & 1 deletion containers/ecr-viewer/src/app/services/labsService.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,11 @@ export function evaluateObservationTable(
).filter(
(observation) =>
!observation.component &&
observation.code?.coding.some((c: Coding) => c?.display),
// Make sure there is a component name, but it isn't "Lab Interpretation" as that's handled
// via the tab on the result's name
observation.code?.coding.some(
(c: Coding) => c?.display && c?.display !== "Lab Interpretation",
),
);

let obsTable;
Expand Down
74 changes: 74 additions & 0 deletions containers/ecr-viewer/src/app/tests/assets/BundleLab.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@
{
"display": "Organism ID",
"reference": "Observation/2a4f8fb5-f957-3c30-1353-a30aa441a12b"
},
{
"reference": "Observation/e9c8e4b3-3fec-4f29-a5c5-e45f96680a4c",
"display": "Lab Interpretation"
}
]
}
Expand Down Expand Up @@ -265,6 +269,9 @@
{
"reference": "Observation/1c0f3367-0588-c90e-fed0-0d8c15c5ac1b"
},
{
"reference": "Observation/e9c8e4b3-3fec-4f29-a5c5-e45f96680a4c"
},
{
"reference": "Observation/ab1ecbd4-6de0-4f78-cea6-a880a15e88bb"
}
Expand Down Expand Up @@ -396,6 +403,73 @@
"url": "DiagnosticReport/b0f590a6-4bf5-7add-9716-2bd3ba6defb2"
}
},
{
"fullUrl": "urn:uuid:e9c8e4b3-3fec-4f29-a5c5-e45f96680a4c",
"resource": {
"resourceType": "Observation",
"id": "e9c8e4b3-3fec-4f29-a5c5-e45f96680a4c",
"meta": {
"profile": [
"http://hl7.org/fhir/us/core/StructureDefinition/us-core-observationresults"
],
"source": "ecr"
},
"identifier": [
{
"system": "urn:oid:1.2.840.114350.1.13.202.3.7.2.798268",
"value": "476858944"
}
],
"category": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/observation-category",
"code": "laboratory"
}
]
}
],
"status": "final",
"code": {
"coding": [
{
"code": "56850-1",
"system": "http://loinc.org",
"display": "Lab Interpretation"
}
]
},
"effectiveDateTime": "2022-09-29T21:13:00Z",
"valueString": "Abnormal",
"extension": [
{
"url": "http://hl7.org/fhir/R4/specimen.html",
"extension": [
{
"url": "specimen source",
"valueString": "Stool"
},
{
"url": "specimen collection time",
"valueDateTime": "2022-09-28T20:51:00Z"
},
{
"url": "specimen receive time",
"valueDateTime": "2022-09-28T20:51:36Z"
}
]
}
],
"subject": {
"reference": "Patient/1586f68b-1a17-4188-ac0b-82c3cbdbfbda"
}
},
"request": {
"method": "PUT",
"url": "Observation/e9c8e4b3-3fec-4f29-a5c5-e45f96680a4c"
}
},
{
"fullUrl": "urn:uuid:1c0f3367-0588-c90e-fed0-0d8c15c5ac1b",
"resource": {
Expand Down

0 comments on commit 29a88f2

Please sign in to comment.