FHIR Chat · 10 ~ 11? · fhirpath

Stream: fhirpath

Topic: 10 ~ 11?


view this post on Zulip Paul Lynch (Oct 17 2018 at 16:26):

Do trailing zeros mean any zeros right of the right-most non-zero, or just trailing zeros after the decimal point? If the former, then we should have 10 ~ 11, like 1.0 ~ 1.1 (because trailing zeros are ignored in determining precision, per the spec for ~.)

view this post on Zulip Grahame Grieve (Oct 17 2018 at 18:51):

I think that trailing zeros before the decimal are significant

view this post on Zulip Paul Lynch (Oct 17 2018 at 21:27):

I think you are saying that we should regard those zeros (left of the decimal) as part of the precision. Semantically, 10 is ambiguous about its significant digits-- it could be 1 or 2 digits. I will add a GForge ticket for clarifying the spec (GF#19434). I also don't see a test case for something like 10 ~ 11. What does your FHIRPath engine return for 10 ~ 11?

view this post on Zulip Brian Postlethwaite (Oct 17 2018 at 22:44):

And exponent notation would also get in here, as the 0s to the left of the point may not exist too.

view this post on Zulip Paul Lynch (Oct 17 2018 at 23:11):

It would, and I do have to worry about that in the JavaScript implementation, but the FHIRPath spec says, "Note that decimal literals cannot use exponential notation."

view this post on Zulip Grahame Grieve (Oct 17 2018 at 23:13):

oh? really?

view this post on Zulip Paul Lynch (Oct 17 2018 at 23:14):

See http://hl7.org/fhirpath/2018Sep/#decimal (4.1.4)

view this post on Zulip Bryn Rhodes (Oct 17 2018 at 23:18):

Yes, and we got a ballot comment on that GF#18582 and resolved it Not Persuasive with Mod.


Last updated: Apr 12 2022 at 19:14 UTC