Skip to content

Commit

Permalink
fix: abnormal flag display (#2941)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmcgrath13 authored Nov 25, 2024
1 parent dc2094d commit 035cf00
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion containers/ecr-viewer/src/app/api/fhirPath.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ specimenSource: "Observation.extension[0].extension.where(url = 'specimen source
observationReferenceValue: "Observation.extension[0].extension.where(url = 'observation entry reference value').valueString"
observationComponent: "code.coding.display.first()"
# observationValue logic: <value> <units> (<interpretation>)
observationValue: (valueQuantity.value.toString() | valueString | valueCodeableConcept.coding.display | iif(valueQuantity.unit.exists(), iif(valueQuantity.unit = '%', valueQuantity.unit, ' ' | valueQuantity.unit), '') | iif(interpretation.coding.display.exists(), ' (' | interpretation.coding.display | ')', '')).join('')
observationValue: (valueQuantity.value.toString() | valueString | valueCodeableConcept.coding.display | iif(valueQuantity.unit.exists(), iif(valueQuantity.unit = '%', valueQuantity.unit, ' ' + valueQuantity.unit), '') | iif(interpretation.coding.display.exists(), ' (' + interpretation.coding.display + ')', '')).join('')
observationReferenceRange: "referenceRange.text"
observationDeviceReference: "device.reference"
observationNote: "note.text"
Expand Down
13 changes: 12 additions & 1 deletion containers/ecr-viewer/src/app/tests/assets/BundleLab.json
Original file line number Diff line number Diff line change
Expand Up @@ -440,12 +440,23 @@
]
},
"effectiveDateTime": "2022-09-28T21:00:53Z",
"valueString": "Not Detected",
"valueString": "Abnormal",
"referenceRange": [
{
"text": "Not Detected"
}
],
"interpretation": [
{
"coding": [
{
"code": "A",
"system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
"display": "Abnormal"
}
]
}
],
"extension": [
{
"url": "http://hl7.org/fhir/R4/specimen.html",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ Burbank, CA
<td
class="text-top"
>
Not Detected
Abnormal (Abnormal)
</td>
<td
class="text-top"
Expand Down

0 comments on commit 035cf00

Please sign in to comment.