/** * @param value The date and time this version of the media was made available to providers, typically after having been reviewed. */ public Media 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 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 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; }
/** * @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; }
/** * 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 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 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 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 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 time when the event was recorded. */ public AuditEvent setRecorded(Date value) { if (this.recorded == null) this.recorded = new InstantType(); this.recorded.setValue(value); return this; }
/** * @param value The date/time that the bundle was assembled - i.e. when the resources were placed in the bundle. */ public Bundle setTimestamp(Date value) { if (value == null) this.timestamp = null; else { if (this.timestamp == null) this.timestamp = new InstantType(); this.timestamp.setValue(value); } return this; }
/** * @param value When the document reference was created. */ public DocumentReference setDate(Date value) { if (value == null) this.date = null; else { if (this.date == null) this.date = new InstantType(); this.date.setValue(value); } return this; }
/** * @param value The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified. */ public Observation 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 appointment is to take place, or requested new start time. */ public AppointmentResponse setStart(Date value) { if (value == null) this.start = null; else { if (this.start == null) this.start = new InstantType(); this.start.setValue(value); } return this; }
/** * @param value Only perform the operation if the last updated date matches. See the API documentation for ["Conditional Read"](http.html#cread). */ public BundleEntryRequestComponent setIfModifiedSince(Date value) { if (value == null) this.ifModifiedSince = null; else { if (this.ifModifiedSince == null) this.ifModifiedSince = new InstantType(); this.ifModifiedSince.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 take place. */ public Appointment setStart(Date value) { if (value == null) this.start = null; else { if (this.start == null) this.start = new InstantType(); this.start.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()); }
public static org.hl7.fhir.r4.model.InstantType convertInstant(org.hl7.fhir.dstu2016may.model.InstantType src) throws FHIRException { org.hl7.fhir.r4.model.InstantType tgt = new org.hl7.fhir.r4.model.InstantType(); if (src.hasValue()) tgt.setValue(src.getValue()); copyElement(src, tgt); return tgt; }
/** * 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()); }