-
Notifications
You must be signed in to change notification settings - Fork 293
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
Quantity type is not supported yet for minValue and MaxValue extension #881
Comments
Isn't this because minValue is suppose to be applied only to date, dateTime, time, decimal, integer? I think we could improve the error message to say quantity type is not supported by the min/maxvalue extensions. |
yeah i don't undrestand why shouldn't the min/max value validation support quantity - i kinda feel like we should propose a change to the standard. can you do that please @epicadk (if you agree)? i kinda think we should at least try to compare on a best-effort basis and in this case the unit test shouldn't throw exception. |
that's interesting, so we probably want to support |
@epicadk you already have a few things on your plate. If you don't mind let's let @juanchazo work on this and for you for focus on the other issues? Thanks |
Oh sure |
linked to #1849 |
Dear all, it works on some quantity but not all this "works" (the error message show null instead of the boundary, we do have a fork that push the unit from http://hl7.org/fhir/StructureDefinition/questionnaire-unit which is not the fully correct way, here is the PR that should be more correct #2014)
but this does not (I simplified with only minValue but still failed)
here is the error I am getting
|
Until FHIR/Ucum-java#26 is resolved, I think we can put in a workaround here:
to at least attempt to compare two quantities if they cannot be canonicalized but have the same unit. @khyativyasargus @delcroip please feel free to send a PR - this should be a quick fix. |
Is your feature request related to a problem? Please describe.
It gives error not implemented yet.
Implemented below unit test, but it had thrown quantity type is not implemented yet.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Would you like to work on the issue?
Please state if this issue should be assigned to you or who you think could help to solve this issue.
The text was updated successfully, but these errors were encountered: