-
Notifications
You must be signed in to change notification settings - Fork 14
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
base: main
Are you sure you want to change the base?
Conversation
@@ -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('') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
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