private List<Base> funcNow(ExecutionContext context, List<Base> focus, ExpressionNode exp) { List<Base> result = new ArrayList<Base>(); result.add(DateTimeType.now()); return result; }
public static DateTimeType today() { DateTimeType retVal = now(); retVal.setPrecision(TemporalPrecisionEnum.DAY); return retVal; }
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(); }
@Override public ValueSetExpansionOutcome expand(ValueSet source) { try { focus = source.copy(); focus.setExpansion(new ValueSet.ValueSetExpansionComponent()); focus.getExpansion().setTimestampElement(DateTimeType.now()); focus.getExpansion().setIdentifier(Factory.createUUID()); handleDefine(source, focus.getExpansion().getParameter()); if (source.hasCompose()) handleCompose(source.getCompose(), focus.getExpansion().getParameter()); for (ValueSetExpansionContainsComponent c : codes) { if (map.containsKey(key(c))) { focus.getExpansion().getContains().add(c); } } return new ValueSetExpansionOutcome(focus, null); } catch (Exception e) { // well, we couldn't expand, so we'll return an interface to a checker that can check membership of the set // that might fail too, but it might not, later. return new ValueSetExpansionOutcome(new ValueSetCheckerSimple(source, factory, context), e.getMessage()); } }
private List<Base> funcNow(ExecutionContext context, List<Base> focus, ExpressionNode exp) { List<Base> result = new ArrayList<Base>(); result.add(DateTimeType.now()); return result; }
public static DateTimeType today() { DateTimeType retVal = now(); retVal.setPrecision(TemporalPrecisionEnum.DAY); return retVal; }
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(); }
@Override public ValueSetExpansionOutcome expand(ValueSet source) { try { focus = source.copy(); focus.setExpansion(new ValueSet.ValueSetExpansionComponent()); focus.getExpansion().setTimestampElement(DateTimeType.now()); focus.getExpansion().setIdentifier(Factory.createUUID()); handleDefine(source, focus.getExpansion().getParameter()); if (source.hasCompose()) handleCompose(source.getCompose(), focus.getExpansion().getParameter()); for (ValueSetExpansionContainsComponent c : codes) { if (map.containsKey(key(c))) { focus.getExpansion().getContains().add(c); } } return new ValueSetExpansionOutcome(focus, null); } catch (Exception e) { // well, we couldn't expand, so we'll return an interface to a checker that can check membership of the set // that might fail too, but it might not, later. return new ValueSetExpansionOutcome(new ValueSetCheckerSimple(source, factory, context), e.getMessage()); } }