diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/SubscriptionStatus43_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/SubscriptionStatus43_50.java index 09733fc4f..1b023ec18 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/SubscriptionStatus43_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv43_50/resources43_50/SubscriptionStatus43_50.java @@ -3,7 +3,9 @@ package org.hl7.fhir.convertors.conv43_50.resources43_50; import org.hl7.fhir.convertors.context.ConversionContext43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Canonical43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Instant43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Integer64_43_50; +import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Time43_50; import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; public class SubscriptionStatus43_50 { @@ -45,6 +47,9 @@ public class SubscriptionStatus43_50 { if (src.hasEventNumber()) { tgt.setEventNumberElement(Integer64_43_50.convertInteger64ToString(src.getEventNumberElement())); } + if (src.hasTimestamp()) { + tgt.setTimestampElement(Instant43_50.convertInstant(src.getTimestampElement())); + } if (src.hasFocus()) { tgt.setFocus(Reference43_50.convertReference(src.getFocus())); } @@ -116,6 +121,9 @@ public class SubscriptionStatus43_50 { if (src.hasEventNumber()) { tgt.setEventNumberElement(Integer64_43_50.convertStringToInteger64(src.getEventNumberElement())); } + if (src.hasTimestamp()) { + tgt.setTimestampElement(Instant43_50.convertInstant(src.getTimestampElement())); + } if (src.hasFocus()) { tgt.setFocus(Reference43_50.convertReference(src.getFocus())); } diff --git a/org.hl7.fhir.convertors/src/test/resources/subscription_status_50.json b/org.hl7.fhir.convertors/src/test/resources/subscription_status_50.json index 47b7410f0..fcd64f203 100644 --- a/org.hl7.fhir.convertors/src/test/resources/subscription_status_50.json +++ b/org.hl7.fhir.convertors/src/test/resources/subscription_status_50.json @@ -9,7 +9,8 @@ "type" : "event-notification", "eventsSinceSubscriptionStart" : "1000", "notificationEvent" : [{ - "eventNumber" : "1000" + "eventNumber" : "1000", + "timestamp" : "2022-02-10T15:12:28-05:00" }], "subscription" : { "reference" : "http://example.org/FHIR/R5/Subscription/123"