public void setUpdated(InstantDt theUpdated) { myUpdated = theUpdated.getValue(); }
public static void datatypes() { // START SNIPPET: datatypes Observation obs = new Observation(); // These are all equivalent obs.setIssued(new InstantDt(new Date())); obs.setIssued(new Date(), TemporalPrecisionEnum.MILLI); obs.setIssuedWithMillisPrecision(new Date()); // The InstantDt also lets you work with the instant as a Java Date // object or as a FHIR String. Date date = obs.getIssuedElement().getValue(); // A date object String dateString = obs.getIssuedElement().getValueAsString(); // "2014-03-08T12:59:58.068-05:00" // END SNIPPET: datatypes System.out.println(date); System.out.println(dateString); }
public void setPublished(InstantDt thePublished) { myPublished = thePublished.getValue(); }
/** * Invokes {@link Date#after(Date)} on the contained Date against the given * date * * @throws NullPointerException * If the {@link #getValue() contained Date} is null */ public boolean after(Date theDate) { return getValue().after(theDate); }
/** * Invokes {@link Date#before(Date)} on the contained Date against the given * date * * @throws NullPointerException * If the {@link #getValue() contained Date} is null */ public boolean before(Date theDate) { return getValue().before(theDate); }
/** * Gets the value(s) for <b>when</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * When the digital signature was signed. * </p> */ public Date getWhen() { return getWhenElement().getValue(); }
/** * Gets the value(s) for <b>lastUpdated</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * When the resource last changed - e.g. when the version changed * </p> */ public Date getLastUpdated() { return getLastUpdatedElement().getValue(); }
@Override protected Date doParse(String theString) { return new InstantDt(theString).getValue(); }
/** * Gets the value(s) for <b>dateTime</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * The time when the event occurred on the source * </p> */ public Date getDateTime() { return getDateTimeElement().getValue(); }
InstantDt lastModifiedDt = ResourceMetadataKeyEnum.UPDATED.get((IResource) responseResource); if (lastModifiedDt != null) { lastModified = lastModifiedDt.getValue();
/** * Invokes {@link Date#after(Date)} on the contained Date against the given * date * * @throws NullPointerException * If the {@link #getValue() contained Date} is null */ public boolean after(Date theDate) { return getValue().after(theDate); }
/** * Invokes {@link Date#before(Date)} on the contained Date against the given * date * * @throws NullPointerException * If the {@link #getValue() contained Date} is null */ public boolean before(Date theDate) { return getValue().before(theDate); }
Date deletedTimestampOrNull = deletedInstantOrNull != null ? deletedInstantOrNull.getValue() : null; if (theUpdatedEntities.contains(nextOutcome.getEntity())) { updateInternal(theRequestDetails, nextResource, true, false, nextOutcome.getEntity(), nextResource.getIdElement(), nextOutcome.getPreviousResource());
@Override public Date getLastUpdated() { InstantDt lu = ResourceMetadataKeyEnum.UPDATED.get(BaseResource.this); if (lu != null) { return lu.getValue(); } return null; }
@Override public Date getLastUpdated() { InstantDt lu = ResourceMetadataKeyEnum.UPDATED.get(BaseResource.this); if (lu != null) { return lu.getValue(); } return null; }
/** * Gets the value(s) for <b>dateTime</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * The time when the event occurred on the source * </p> */ public Date getDateTime() { return getDateTimeElement().getValue(); }
/** * Gets the value(s) for <b>timestamp</b> (when.init). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * The time that the message was sent * </p> */ public Date getTimestamp() { return getTimestampElement().getValue(); }
/** * Gets the value(s) for <b>start</b> (when.planned). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * * </p> */ public Date getStart() { return getStartElement().getValue(); }