/** * @return When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry. */ public Date getExpiry() { return this.expiry == null ? null : this.expiry.getValue(); }
public static DateTimeType newDateTime(String value) throws ParseException { if (value == null) return null; return new DateTimeType(value); }
@Override public DateTimeType copy() { return new DateTimeType(getValueAsString()); }
/** * @param value The date (and optionally time) when the system was registered or published. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the registration changes. */ public NamingSystem setDate(Date value) { if (this.date == null) this.date = new DateTimeType(); this.date.setValue(value); return this; }
public static DateTimeType today() { DateTimeType retVal = now(); retVal.setPrecision(TemporalPrecisionEnum.DAY); return retVal; }
public boolean isEmpty() { return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (subject == null || subject.isEmpty()) && (status == null || status.isEmpty()) && (context == null || context.isEmpty()) && (period == null || period.isEmpty()) && (author == null || author.isEmpty()) && (modified == null || modified.isEmpty()) && (category == null || category.isEmpty()) && (description == null || description.isEmpty()) && (addresses == null || addresses.isEmpty()) && (support == null || support.isEmpty()) && (relatedPlan == null || relatedPlan.isEmpty()) && (participant == null || participant.isEmpty()) && (goal == null || goal.isEmpty()) && (activity == null || activity.isEmpty()) && (note == null || note.isEmpty()); }
private DateTimeType conformanceDate() { IPrimitiveType<Date> buildDate = getServerConfiguration().getConformanceDate(); if (buildDate != null && buildDate.getValue() != null) { try { return new DateTimeType(buildDate.getValueAsString()); } catch (DataFormatException e) { // fall through } } return DateTimeType.now(); }
/** * Constructor */ public DateTimeType(Calendar theCalendar) { if (theCalendar != null) { setValue(theCalendar.getTime()); setPrecision(DEFAULT_PRECISION); setTimeZone(theCalendar.getTimeZone()); } }
public org.hl7.fhir.r4.model.DateTimeType convertDateTime(org.hl7.fhir.instance.model.DateTimeType src) throws FHIRException { org.hl7.fhir.r4.model.DateTimeType tgt = new org.hl7.fhir.r4.model.DateTimeType(src.getValueAsString()); copyElement(src, tgt); return tgt; }
public boolean getTzSign() { return getTimeZone().getRawOffset() >= 0; }
private List<Base> funcNow(ExecutionContext context, List<Base> focus, ExpressionNode exp) { List<Base> result = new ArrayList<Base>(); result.add(DateTimeType.now()); return result; }
public boolean isEmpty() { return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (status == null || status.isEmpty()) && (type == null || type.isEmpty()) && (parent == null || parent.isEmpty()) && (subject == null || subject.isEmpty()) && (accessionIdentifier == null || accessionIdentifier.isEmpty()) && (receivedTime == null || receivedTime.isEmpty()) && (collection == null || collection.isEmpty()) && (treatment == null || treatment.isEmpty()) && (container == null || container.isEmpty()); }
private DateTimeType conformanceDate() { IPrimitiveType<Date> buildDate = getServerConfiguration().getConformanceDate(); if (buildDate != null && buildDate.getValue() != null) { try { return new DateTimeType(buildDate.getValueAsString()); } catch (DataFormatException e) { // fall through } } return DateTimeType.now(); }
/** * Constructor */ public DateTimeType(Calendar theCalendar) { if (theCalendar != null) { setValue(theCalendar.getTime()); setPrecision(DEFAULT_PRECISION); setTimeZone(theCalendar.getTimeZone()); } }
/** * @param value The date and time that this nutrition order was requested. */ public NutritionOrder setDateTime(Date value) { if (this.dateTime == null) this.dateTime = new DateTimeType(); this.dateTime.setValue(value); return this; }
public org.hl7.fhir.r4.model.DateType convertDate(org.hl7.fhir.instance.model.DateTimeType src) throws FHIRException { org.hl7.fhir.r4.model.DateType tgt = new org.hl7.fhir.r4.model.DateType(src.getValueAsString()); copyElement(src, tgt); return tgt; }
public Timing copy() { Timing dst = new Timing(); copyValues(dst); if (event != null) { dst.event = new ArrayList<DateTimeType>(); for (DateTimeType i : event) dst.event.add(i.copy()); }; dst.repeat = repeat == null ? null : repeat.copy(); dst.code = code == null ? null : code.copy(); return dst; }
public static DateTimeType today() { DateTimeType retVal = now(); retVal.setPrecision(TemporalPrecisionEnum.DAY); return retVal; }
public int getTzMin() { return (int) (getTimeZone().getRawOffset() / DateUtils.MILLIS_PER_MINUTE) % 60; }