@Override public IDateCriterion now() { DateTimeDt dt = DateTimeDt.withCurrentTime(); dt.setPrecision(TemporalPrecisionEnum.SECOND); return constructCriterion(dt); }
@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 now() { DateTimeDt dt = DateTimeDt.withCurrentTime(); dt.setPrecision(TemporalPrecisionEnum.SECOND); 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 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(); }
@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; }