-
Notifications
You must be signed in to change notification settings - Fork 166
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
Performing an Observation search with value-quantity that has zero's after decimal gives no results #22
Comments
As far as I can see, the behaviour that Brian mention is not a bug, but by design. 140.0 IS more precise than 140 so. A search for 140.0 should exclude a value of 140.5. While a search for 140 should include a value of 140.5. This behaviour is documented and conforms to our unit tests. See https://github.com/furore-fhir/Fhir.Metrics/blob/master/Fhir.Metrics.Tests/TestSearchableQuantity.cs. The measurement 140 means that the value lies between 139.5 and 140.5. So it is very well possible that the value lies outside of the range of 140.0. Another way of explaining it: with 140 you will find 140.0. Where as with 140.0 you will not find 140. Or am I missing your point here Brian? |
I searched for exactly what was in the value and it didn't get returned. 140.0 was in the db. |
So, appereantly this could be a bug, but is a bug in the Hl7.FhirLibrary that Spark uses: |
If you have an Observation in your database with a quantity value of "140.0" a search with that value will not return any results (with no error)
http://zzzz z.com.au/fhir/Observation?value-quantity=140.0||mm[Hg]
however if you search for 140 (no decimal places) then it works
http://zzzz z.com.au/fhir/Observation?value-quantity=140||mm[Hg]
The text was updated successfully, but these errors were encountered: