-
Notifications
You must be signed in to change notification settings - Fork 160
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
Issue #1446 - enable parsing dateTime fractional seconds up to 9 digits #1499
Conversation
Signed-off-by: Mike Schroeder <mschroed@us.ibm.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also were there any previously disabled tests in fhir-persistence-jdbc?
please add a test in AbstractSearchDateTest
Actually @michaelwschroeder that may not be so easy, if others think necessary, let's add, else skip. |
@michaelwschroeder where does the truncation happen? |
@JohnTimm truncation happens in the DateTime and Instant constructors - this was already being done:
|
Signed-off-by: Mike Schroeder <mschroed@us.ibm.com>
Signed-off-by: Mike Schroeder <mschroed@us.ibm.com>
Gotcha. I forgot that we added that. I thought that perhaps there was a truncate option in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -29,10 +29,13 @@ | |||
* A date, date-time or partial date (e.g. just year or year + month). If hours and minutes are specified, a time zone | |||
* SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds must be | |||
* provided due to schema type constraints but may be zero-filled and may be ignored. Dates SHALL be valid dates. | |||
* If seconds are specified, fractions of seconds may be specified up to nanosecond precision (9 digits). However, any |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pretty minor, but I'd like to see a <p>
tag here. otherwise the javadoc gets consensed into one long paragraph and its not as clear whats from the spec vs from us
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
@@ -23,10 +23,12 @@ | |||
|
|||
/** | |||
* An instant in time - known at least to the second | |||
* Fractions of seconds may be specified up to nanosecond precision (9 digits). However, any fractions of seconds |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment, would like a <p>
tag here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
import com.ibm.fhir.model.util.ValidationSupport; | ||
import com.ibm.fhir.model.visitor.Visitor; | ||
|
||
/** | ||
* A time during the day, with no date specified | ||
* Fractions of seconds may be specified up to nanosecond precision (9 digits). However, any fractions of seconds |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment, would like a <p>
tag here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
Signed-off-by: Mike Schroeder <mschroed@us.ibm.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>
Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>
Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>
Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>
Signed-off-by: Mike Schroeder mschroed@us.ibm.com