diff --git a/containers/ecr-viewer/src/app/services/labsService.tsx b/containers/ecr-viewer/src/app/services/labsService.tsx index bb2e085fe..8fac36177 100644 --- a/containers/ecr-viewer/src/app/services/labsService.tsx +++ b/containers/ecr-viewer/src/app/services/labsService.tsx @@ -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; diff --git a/containers/ecr-viewer/src/app/tests/assets/BundleLab.json b/containers/ecr-viewer/src/app/tests/assets/BundleLab.json index 5136dc422..7be4f6862 100644 --- a/containers/ecr-viewer/src/app/tests/assets/BundleLab.json +++ b/containers/ecr-viewer/src/app/tests/assets/BundleLab.json @@ -83,6 +83,10 @@ { "display": "Organism ID", "reference": "Observation/2a4f8fb5-f957-3c30-1353-a30aa441a12b" + }, + { + "reference": "Observation/e9c8e4b3-3fec-4f29-a5c5-e45f96680a4c", + "display": "Lab Interpretation" } ] } @@ -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" } @@ -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": {