Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: abnormal flag display #2941

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix: abnormal flag display #2941

wants to merge 1 commit into from

Conversation

mcmcgrath13
Copy link
Collaborator

PULL REQUEST

Summary

Fix the display of interpretation codes so that they always display.

With the prior logic, due to the set nature of fhirpath, if the value and the interpretation were the same, then only the value would display along with empty parens.

Related Issue

Fixes #2715

Additional Information

image

@@ -126,7 +126,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('')
Copy link
Collaborator

@BobanL BobanL Nov 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of using the display, I think the ticket and the screenshot specifically called out using the coding.code instead.
image

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It did use the word code, but I interpretted that more colloquially since the emphasis was on the missingness and other results had the long form and that wasn't called out in the ticket as an issue. @ashton-skylight which would you prefer? (I kind of prefer the short, but it does leave more room for interpretation)

image

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mcmcgrath13 From what you've seen, are the two values generally abnormal and high?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in all of our sample data that has interpretations, they use this codeset. Most common sightings: High, Normal, Low, Abnormal, Alert Abnormal, Critical Abnormal

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mcmcgrath13 There are quite a few codesets. Wondering if user readability is easier with the display name?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ashton-skylight upon looking at the codes, I think it's probably better to be explicit/long here even though the common codes are kinda obvious. There are some in there that I would not know how to interpret without going to do the lookup

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mcmcgrath13 Agreed, it might be somewhat redundant, but would hopefully save time for users to not have to interpret codes outside of the common sightings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Interpretation code does not always display in lab table "Value" column
3 participants