FHIR Chat · Error in toQuantity spec? · fhirpath

Stream: fhirpath

Topic: Error in toQuantity spec?


view this post on Zulip Yury Sedinkin (Mar 18 2020 at 21:26):

Hi All,
I am a little bit confused here:
http://hl7.org/fhirpath/index.html#toquantityunit-string-quantity

toQuantity([unit : String]) : Quantity
....

If the input quantity can be converted, the result is true, otherwise, the result is false.

...

I think this is a typo, and if I'm right, then how should this really work?

view this post on Zulip Grahame Grieve (Mar 19 2020 at 01:09):

that's the description for isQuantity not toQuantity

view this post on Zulip Yury Sedinkin (Mar 19 2020 at 12:26):

image.png

view this post on Zulip Paul Lynch (Mar 19 2020 at 13:28):

@Bryn Rhodes ?

view this post on Zulip Bryn Rhodes (Mar 19 2020 at 13:47):

Yes, that highlighted sentence should say "If the input quantity can be converted, the result is the converted quantity, otherwise, the result is empty." Submit a tracker?

view this post on Zulip Yury Sedinkin (Mar 19 2020 at 15:23):

Just few seconds ago: https://jira.hl7.org/browse/FHIR-26610


Last updated: Apr 12 2022 at 19:14 UTC