-
Notifications
You must be signed in to change notification settings - Fork 27
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
Decimal for lowBoundary and highBoundary #238
Comments
I am still confused, myself, on how to implement the low/high boundary functions in FHIRPath (and subsequently sof). Also in the fhirpath spec that I shared it says that decimal should have a minimum of 8 digits of precision. I believe a |
I just found this implementation from the fhirpath.js zulip chat: https://chat.fhir.org/#narrow/stream/179298-fhirpath.2Ejs/topic/lowBoundary.20and.20highBoundary.20functions.20implementation/near/436916972 |
Thank you. I will review it. However, even 8 digits of precision JS can not hold in some cases, for example:
So, case when input value like if consider FHIR datatypes maximum input value can be this: As for step of 0.05, in my opinion this is an error in the tests, because it does not make sense and the expected number does not really change in length, that is it does not fulfill what the boundary function intended. |
Here is a link to where I am trying to get a resolution on the intended behaviour for these functions: https://chat.fhir.org/#narrow/stream/179266-fhirpath/topic/Boundary.20functions I think the SQL on FHIR spec is fine as is, as our link goes to the CI build of the FHIRPath spec. The reference implementation may need to change to reflect any updates to the semantics. |
In #229 I implemented lowBoundary and highBoundary for dateTime, date, and time.
How should I interpret lowBoundary and highBodunary for Decimal? The expectation here says lowBoundary for 1.0 should be 0.95 but why is it not 1.000000000000000000e+000000000?
JavaScript can't have numbers as big as the FHIR spec? What should we do? One option is just to make them as big as JavaScript can be.
The text was updated successfully, but these errors were encountered: