-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Allow MINUTE precision for datetimes. Closes #604 #655
Conversation
Looks awesome! Merging it now. I've also added you as a committer to the project, which only seems to make sense since you're probably the longest standing HAPI contributor who is still active there is. :) |
"allow MINUTE precision for datetimes" - you know that this is not
conformant?
Grahame
…On Thu, Jun 8, 2017 at 11:30 AM, James Agnew ***@***.***> wrote:
Merged #655 <#655>.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#655 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AFllFaIxxGWApnXzG4oeDhIEpwLYZIvOks5sB067gaJpZM4NnmcX>
.
--
-----
http://www.healthintersections.com.au / grahame@healthintersections.com.au
/ +61 411 867 065
|
Aw man, you're right. Why does HAPI have an enum value for that level of precision even? I think that probably dates back to the 0.1 release. |
Ok this has been reverted. There are some good fixes in this PR though. @ohr do you have a use case for parsing at this precision? Presumably you should be adding Technically we could also always allow this to parse, but notify the IParserErrorHandler about it so that the calling code has the ability to configure how strict they want to be. I am always verrry reluctant to be lenient around date/time issues though. They have caused so many big problems in the V2 codebase over the years, including some pretty serious near-misses I know of in clinical settings. |
Looking at the original bug filing, I think what this PR was trying to fix was to allow minute precision when using date/time search parameters. The STU3 definitions have an example wherein the date param is specified up to the MINUTE precision: http://hl7.org/fhir/STU3/search.html#date [parameter]=lt2013-01-14T10:00 Also this note from the same link:
|
Ahhh this is an interesting distinction. Perhaps the right thing to do here is to apply this PR in BaseDateTimeType/Dt, but block the DateTime type from allowing that level of precision. |
Ok, I've created a new PR #672 that incorporates this fix, but only allows it for search parameters, not for datatypes. Will merge once the CI verifies that we're good. |
No description provided.