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

Phrase (Obs.value as Quanity) not behaving as expected #1016

Open
jscherer-motivemi opened this issue Dec 11, 2019 · 0 comments
Open

Phrase (Obs.value as Quanity) not behaving as expected #1016

jscherer-motivemi opened this issue Dec 11, 2019 · 0 comments
Labels

Comments

@jscherer-motivemi
Copy link

This CQL expression should return a list of values from Observation.value.value.

(Original):
define "Diastolic BP From Observations On Latest BP Date": "Diastolic BP Observations" O where date from O.effective = "Latest BP Date" return (O.value as Quantity).value

This above code returns an emptly list although there are Observation.value data.
When we changed the code to the snippet below, the CQL expression behaved as expected.

define "Dastolic BP From Observations On Latest BP Date": "Diastolic BP Observations" O where date from O.effective = "Latest BP Date" return FHIRHelpers.ToQuantity(O.value).value

@brynrhodes brynrhodes added the bug label Jul 9, 2020
@JPercival JPercival transferred this issue from cqframework/cql-engine Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants