Stream: fhirpath
Topic: 10 ~ 11?
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 ~.)
Grahame Grieve (Oct 17 2018 at 18:51):
I think that trailing zeros before the decimal are significant
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?
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.
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."
Grahame Grieve (Oct 17 2018 at 23:13):
oh? really?
Paul Lynch (Oct 17 2018 at 23:14):
See http://hl7.org/fhirpath/2018Sep/#decimal (4.1.4)
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