You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The FHIR bridge has generated code from the SDK. In the composition classes, there is a private TemporalAccessor startTimeValue; field, which accepts, among other values, Instant.
If we do compo.setStartTimeValue(Instant.now()) then use the EHRBase client, the serialization of the compo fails in Archie. (exception below).
With compo.setStartTimeValue(ZonedDateTime.now()) it works OK.
It seems there are some TemporalAccessor implementer classes that are not supported by the Archie serialization.
Actual result
Caused by: com.fasterxml.jackson.databind.JsonMappingException: Unsupported field: Year (through reference chain: com.nedap.archie.rm.composition.Composition["context"]->com.nedap.archie.rm.composition.EventContext["start_time"]->com.nedap.archie.rm.datavalues.quantity.datetime.DvDateTime["value"])
...
Caused by: java.time.temporal.UnsupportedTemporalTypeException: Unsupported field: Year
at java.base/java.time.Instant.getLong(Instant.java:602) ~[na:na]
at java.base/java.time.format.DateTimePrintContext.getValue(DateTimePrintContext.java:308) ~[na:na]
Expected result (Acceptance Criteria)
Serialize OK.
Definition of Done
Talk to Pieter, he already knows about this and needs to understand why we use TemporalAccessor
The defect is checked by an unit or an integration test (Robot)
Merge Request approved
Unit tests passed
Build without errors
Release notes prepared
No additional runtime warnings
The text was updated successfully, but these errors were encountered:
Configuration information
Steps to reproduce
The FHIR bridge has generated code from the SDK. In the composition classes, there is a
private TemporalAccessor startTimeValue;
field, which accepts, among other values, Instant.If we do
compo.setStartTimeValue(Instant.now())
then use the EHRBase client, the serialization of the compo fails in Archie. (exception below).With
compo.setStartTimeValue(ZonedDateTime.now())
it works OK.It seems there are some TemporalAccessor implementer classes that are not supported by the Archie serialization.
Actual result
Expected result (Acceptance Criteria)
Serialize OK.
Definition of Done
The text was updated successfully, but these errors were encountered: