public static org.hl7.fhir.dstu3.model.InstantType convertInstant(org.hl7.fhir.dstu2016may.model.InstantType src) throws FHIRException { org.hl7.fhir.dstu3.model.InstantType tgt = new org.hl7.fhir.dstu3.model.InstantType(); if (src.hasValue()) tgt.setValue(src.getValue()); copyElement(src, tgt); return tgt; }
/** * Sets the value of this instant to the current time (from the system * clock) and the local/default timezone (as retrieved using * {@link TimeZone#getDefault()}. This TimeZone is generally obtained from * the underlying OS. */ public void setToCurrentTimeInLocalTimeZone() { setValue(new Date()); setTimeZone(TimeZone.getDefault()); }
/** * @param value When the digital signature was signed. */ public Signature setWhen(Date value) { if (this.when == null) this.when = new InstantType(); this.when.setValue(value); return this; }
/** * @param value The time that the message was sent. */ public MessageHeader setTimestamp(Date value) { if (this.timestamp == null) this.timestamp = new InstantType(); this.timestamp.setValue(value); return this; }
/** * @param value The instant of time at which the activity was recorded. */ public Provenance setRecorded(Date value) { if (this.recorded == null) this.recorded = new InstantType(); this.recorded.setValue(value); return this; }
/** * @param value The date and time that this version of the report was released from the source diagnostic service. */ public DiagnosticReport setIssued(Date value) { if (value == null) this.issued = null; else { if (this.issued == null) this.issued = new InstantType(); this.issued.setValue(value); } return this; }
/** * @param value Date/Time that the slot is to begin. */ public Slot setStart(Date value) { if (this.start == null) this.start = new InstantType(); this.start.setValue(value); return this; }
/** * @param value The timestamp for the most recent system change which includes device configuration or setting change. */ public DeviceComponent setLastSystemChange(Date value) { if (value == null) this.lastSystemChange = null; else { if (this.lastSystemChange == null) this.lastSystemChange = new InstantType(); this.lastSystemChange.setValue(value); } return this; }
/** * @param value This may be either the same as the appointment request to confirm the details of the appointment, or alternately a new time to request a re-negotiation of the end time. */ public AppointmentResponse setEnd(Date value) { if (value == null) this.end = null; else { if (this.end == null) this.end = new InstantType(); this.end.setValue(value); } return this; }
/** * @param value The time for the server to turn the subscription off. */ public Subscription setEnd(Date value) { if (value == null) this.end = null; else { if (this.end == null) this.end = new InstantType(); this.end.setValue(value); } return this; }
/** * @param value When the resource last changed - e.g. when the version changed. */ public Meta setLastUpdated(Date value) { if (value == null) this.lastUpdated = null; else { if (this.lastUpdated == null) this.lastUpdated = new InstantType(); this.lastUpdated.setValue(value); } return this; }
/** * @param value The date/time that the resource was modified on the server. */ public BundleEntryResponseComponent setLastModified(Date value) { if (value == null) this.lastModified = null; else { if (this.lastModified == null) this.lastModified = new InstantType(); this.lastModified.setValue(value); } return this; }
/** * @param value Date/Time that the appointment is to conclude. */ public Appointment setEnd(Date value) { if (value == null) this.end = null; else { if (this.end == null) this.end = new InstantType(); this.end.setValue(value); } return this; }
/** * @param value The time when the event occurred on the source. */ public AuditEvent setRecorded(Date value) { if (this.recorded == null) this.recorded = new InstantType(); this.recorded.setValue(value); return this; }
/** * @param value Date/Time that the slot is to conclude. */ public Slot setEnd(Date value) { if (this.end == null) this.end = new InstantType(); this.end.setValue(value); return this; }
/** * @param value When the document reference was created. */ public DocumentReference setIndexed(Date value) { if (this.indexed == null) this.indexed = new InstantType(); this.indexed.setValue(value); return this; }
/** * @param value Describes the time last calibration has been performed. */ public DeviceMetricCalibrationComponent setTime(Date value) { if (value == null) this.time = null; else { if (this.time == null) this.time = new InstantType(); this.time.setValue(value); } return this; }
/** * Constructor which accepts a date value and a precision value. Valid * precisions values for this type are: * <ul> * <li>{@link TemporalPrecisionEnum#SECOND} * <li>{@link TemporalPrecisionEnum#MILLI} * </ul> */ public InstantType(Date theDate, TemporalPrecisionEnum thePrecision) { setValue(theDate); setPrecision(thePrecision); setTimeZone(TimeZone.getDefault()); }
/** * Create a new DateTimeDt using an existing value. <b>Use this constructor with caution</b>, * as it may create more precision than warranted (since for example it is possible to pass in * a DateTime with only a year, and this constructor will convert to an InstantDt with * milliseconds precision). */ public InstantType(BaseDateTimeType theDateTime) { // Do not call super(foo) here, we don't want to trigger a DataFormatException setValue(theDateTime.getValue()); setPrecision(DEFAULT_PRECISION); setTimeZone(theDateTime.getTimeZone()); }
public static org.hl7.fhir.dstu3.model.InstantType convertInstant(org.hl7.fhir.dstu2016may.model.InstantType src) throws FHIRException { org.hl7.fhir.dstu3.model.InstantType tgt = new org.hl7.fhir.dstu3.model.InstantType(); if (src.hasValue()) tgt.setValue(src.getValue()); copyElement(src, tgt); return tgt; }