/** * Sets the value for <b>date</b> () * * <p> * <b>Definition:</b> * The date that the list was prepared * </p> */ public ListResource setDateWithSecondsPrecision( Date theDate) { myDate = new DateTimeDt(theDate); return this; }
/** * Gets the value(s) for <b>expiry</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * The date and time beyond which this device is no longer valid or should not be used (if applicable) * </p> */ public Date getExpiry() { return getExpiryElement().getValue(); }
@Override public IDateCriterion now() { DateTimeDt dt = DateTimeDt.withCurrentTime(); dt.setPrecision(TemporalPrecisionEnum.SECOND); return constructCriterion(dt); }
@Override public IDateCriterion day(String theValue) { DateTimeDt dt = new DateTimeDt(theValue); dt.setPrecision(TemporalPrecisionEnum.DAY); return constructCriterion(dt); }
private DateTimeDt conformanceDate() { String buildDate = myServerConfiguration.getConformanceDate(); if (buildDate != null) { try { return new DateTimeDt(buildDate); } catch (DataFormatException e) { // fall through } } return DateTimeDt.withCurrentTime(); }
private IDateCriterion constructCriterion(DateTimeDt dt) { String valueAsString = dt.getValueAsString(); Criterion criterion = new Criterion(myPrefix, valueAsString); if (previous != null) { criterion.orCriterion = previous; } return criterion; } }
@Override public ValueSet expand(ValueSet source, String theFilter) { ValueSet retVal = new ValueSet(); retVal.setDate(DateTimeDt.withCurrentTime()); /* * Add composed concepts */ for (ComposeInclude nextInclude : source.getCompose().getInclude()) { for (ComposeIncludeConcept next : nextInclude.getConcept()) { if (isBlank(theFilter)) { addCompose(retVal, nextInclude.getSystem(), next.getCode(), next.getDisplay()); } else { String filter = theFilter.toLowerCase(); if (next.getDisplay().toLowerCase().contains(filter) || next.getCode().toLowerCase().contains(filter)) { addCompose(retVal, nextInclude.getSystem(), next.getCode(), next.getDisplay()); } } } } /* * Add defined concepts */ for (CodeSystemConcept next : source.getCodeSystem().getConcept()) { addCompose(theFilter, retVal, source, next); } return retVal; }
@Override public IDateCriterion day(Date theValue) { DateTimeDt dt = new DateTimeDt(theValue); dt.setPrecision(TemporalPrecisionEnum.DAY); return constructCriterion(dt); }
private DateTimeDt conformanceDate() { IPrimitiveType<Date> buildDate = getServerConfiguration().getConformanceDate(); if (buildDate != null && buildDate.getValue() != null) { try { return new DateTimeDt(buildDate.getValueAsString()); } catch (DataFormatException e) { // fall through } } return DateTimeDt.withCurrentTime(); }
/** * Constructor */ public DateParam(ParamPrefixEnum thePrefix, DateTimeDt theDate) { setPrefix(thePrefix); myValue.setValueAsString(theDate != null ? theDate.getValueAsString() : null); }
@Override public ValueSet expand(ValueSet source, String theFilter) { ValueSet retVal = new ValueSet(); retVal.setDate(DateTimeDt.withCurrentTime()); /* * Add composed concepts */ for (ComposeInclude nextInclude : source.getCompose().getInclude()) { for (ComposeIncludeConcept next : nextInclude.getConcept()) { if (isBlank(theFilter)) { addCompose(retVal, nextInclude.getSystem(), next.getCode(), next.getDisplay()); } else { String filter = theFilter.toLowerCase(); if (next.getDisplay().toLowerCase().contains(filter) || next.getCode().toLowerCase().contains(filter)) { addCompose(retVal, nextInclude.getSystem(), next.getCode(), next.getDisplay()); } } } } /* * Add defined concepts */ for (CodeSystemConcept next : source.getCodeSystem().getConcept()) { addCompose(theFilter, retVal, source, next); } return retVal; }
/** * Sets the value for <b>manufactureDate</b> () * * <p> * <b>Definition:</b> * The date and time when the device was manufactured. * </p> */ public Device setManufactureDate( Date theDate, TemporalPrecisionEnum thePrecision) { myManufactureDate = new DateTimeDt(theDate, thePrecision); return this; }
@Override public IDateCriterion second(Date theValue) { DateTimeDt dt = new DateTimeDt(theValue); dt.setPrecision(TemporalPrecisionEnum.SECOND); return constructCriterion(dt); }
/** * Gets the value(s) for <b>time</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * Indicates when this particular annotation was made * </p> */ public Date getTime() { return getTimeElement().getValue(); }
continue; nextEntity = new ResourceIndexedSearchParamDate(nextSpDef.getName(), nextValue.getStart(), nextValue.getEnd(), nextValue.getStartElement().getValueAsString()); } else { if (!multiType) {
@Override public IDateCriterion now() { DateTimeDt dt = DateTimeDt.withCurrentTime(); dt.setPrecision(TemporalPrecisionEnum.SECOND); return constructCriterion(dt); }
/** * Sets the value for <b>time</b> () * * <p> * <b>Definition:</b> * Indicates when this particular annotation was made * </p> */ public AnnotationDt setTimeWithSecondsPrecision( Date theDate) { myTime = new DateTimeDt(theDate); return this; }
@Override public IDateCriterion second(String theValue) { DateTimeDt dt = new DateTimeDt(theValue); dt.setPrecision(TemporalPrecisionEnum.SECOND); return constructCriterion(dt); }
/** * Gets the value(s) for <b>start</b> (). * creating it if it does * not exist. This method may return <code>null</code>. * * <p> * <b>Definition:</b> * The start of the period. The boundary is inclusive. * </p> */ public Date getStart() { return getStartElement().getValue(); }
private IDateCriterion constructCriterion(DateTimeDt dt) { String valueAsString = dt.getValueAsString(); Criterion criterion = new Criterion(myPrefix, valueAsString); if (previous != null) { criterion.orCriterion = previous; } return criterion; } }