/** * Returns a new instance of DateTimeType with the current system time and MILLI precision and the system local time * zone */ public static InstantType now() { return new InstantType(new Date(), TemporalPrecisionEnum.MILLI, 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 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; }
/** * @return {@link #effective} (The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the "physiologically relevant time". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.) */ public InstantType getEffectiveInstantType() throws FHIRException { if (this.effective == null) this.effective = new InstantType(); if (!(this.effective instanceof InstantType)) throw new FHIRException("Type mismatch: the type InstantType was expected, but "+this.effective.getClass().getName()+" was encountered"); return (InstantType) this.effective; }
/** * Creates a new instance by parsing an HL7 v3 format date time string */ public static InstantType parseV3(String theV3String) { InstantType retVal = new InstantType(); retVal.setValueAsV3String(theV3String); return retVal; }
/** * @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; }
/** * @return {@link #maxValue} (The maximum allowed value for the element. The value is inclusive. This is allowed for the types date, dateTime, instant, time, decimal, integer, and Quantity.) */ public InstantType getMaxValueInstantType() throws FHIRException { if (this.maxValue == null) this.maxValue = new InstantType(); if (!(this.maxValue instanceof InstantType)) throw new FHIRException("Type mismatch: the type InstantType was expected, but "+this.maxValue.getClass().getName()+" was encountered"); return (InstantType) this.maxValue; }
/** * @return {@link #end} (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.). This is the underlying object with id, value and extensions. The accessor "getEnd" gives direct access to the value */ public InstantType getEndElement() { if (this.end == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create AppointmentResponse.end"); else if (Configuration.doAutoCreate()) this.end = new InstantType(); // bb return this.end; }
/** * @return {@link #timestamp} (The date/time that the bundle was assembled - i.e. when the resources were placed in the bundle.). This is the underlying object with id, value and extensions. The accessor "getTimestamp" gives direct access to the value */ public InstantType getTimestampElement() { if (this.timestamp == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Bundle.timestamp"); else if (Configuration.doAutoCreate()) this.timestamp = new InstantType(); // bb return this.timestamp; }
/** * @return {@link #time} (Describes the time last calibration has been performed.). This is the underlying object with id, value and extensions. The accessor "getTime" gives direct access to the value */ public InstantType getTimeElement() { if (this.time == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create DeviceMetricCalibrationComponent.time"); else if (Configuration.doAutoCreate()) this.time = new InstantType(); // bb return this.time; }
/** * @return {@link #start} (Date/Time that the slot is to begin.). This is the underlying object with id, value and extensions. The accessor "getStart" gives direct access to the value */ public InstantType getStartElement() { if (this.start == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Slot.start"); else if (Configuration.doAutoCreate()) this.start = new InstantType(); // bb return this.start; }
/** * @return {@link #date} (When the document reference was created.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value */ public InstantType getDateElement() { if (this.date == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create DocumentReference.date"); else if (Configuration.doAutoCreate()) this.date = new InstantType(); // bb return this.date; }
/** * @return {@link #ifModifiedSince} (Only perform the operation if the last updated date matches. See the API documentation for ["Conditional Read"](http.html#cread).). This is the underlying object with id, value and extensions. The accessor "getIfModifiedSince" gives direct access to the value */ public InstantType getIfModifiedSinceElement() { if (this.ifModifiedSince == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create BundleEntryRequestComponent.ifModifiedSince"); else if (Configuration.doAutoCreate()) this.ifModifiedSince = new InstantType(); // bb return this.ifModifiedSince; }
/** * @return {@link #when} (When the digital signature was signed.). This is the underlying object with id, value and extensions. The accessor "getWhen" gives direct access to the value */ public InstantType getWhenElement() { if (this.when == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Signature.when"); else if (Configuration.doAutoCreate()) this.when = new InstantType(); // bb return this.when; }
/** * @return {@link #end} (Date/Time that the slot is to conclude.). This is the underlying object with id, value and extensions. The accessor "getEnd" gives direct access to the value */ public InstantType getEndElement() { if (this.end == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Slot.end"); else if (Configuration.doAutoCreate()) this.end = new InstantType(); // bb return this.end; }
/** * @return {@link #recorded} (The instant of time at which the activity was recorded.). This is the underlying object with id, value and extensions. The accessor "getRecorded" gives direct access to the value */ public InstantType getRecordedElement() { if (this.recorded == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Provenance.recorded"); else if (Configuration.doAutoCreate()) this.recorded = new InstantType(); // bb return this.recorded; }
/** * @return {@link #issued} (The date and time this version of the media was made available to providers, typically after having been reviewed.). This is the underlying object with id, value and extensions. The accessor "getIssued" gives direct access to the value */ public InstantType getIssuedElement() { if (this.issued == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Media.issued"); else if (Configuration.doAutoCreate()) this.issued = new InstantType(); // bb return this.issued; }
/** * @return {@link #start} (Date/Time that the appointment is to take place.). This is the underlying object with id, value and extensions. The accessor "getStart" gives direct access to the value */ public InstantType getStartElement() { if (this.start == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Appointment.start"); else if (Configuration.doAutoCreate()) this.start = new InstantType(); // bb return this.start; }
/** * @return {@link #end} (The time for the server to turn the subscription off.). This is the underlying object with id, value and extensions. The accessor "getEnd" gives direct access to the value */ public InstantType getEndElement() { if (this.end == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Subscription.end"); else if (Configuration.doAutoCreate()) this.end = new InstantType(); // bb return this.end; }
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; }