@Override public ValueSet expand(ValueSet source, String theFilter) { ValueSet toExpand = new ValueSet(); // for (UriType next : source.getCompose().getInclude()) { // ConceptSetComponent include = toExpand.getCompose().addInclude(); // include.setSystem(next.getValue()); // addFilterIfPresent(theFilter, include); // } for (ConceptSetComponent next : source.getCompose().getInclude()) { toExpand.getCompose().addInclude(next); addFilterIfPresent(theFilter, next); } if (toExpand.getCompose().isEmpty()) { throw new InvalidRequestException("ValueSet does not have any compose.include or compose.import values, can not expand"); } toExpand.getCompose().getExclude().addAll(source.getCompose().getExclude()); ValueSet retVal = doExpand(toExpand); if (isNotBlank(theFilter)) { applyFilter(retVal.getExpansion().getTotalElement(), retVal.getExpansion().getContains(), theFilter); } return retVal; }
@Override public ValueSet expand(ValueSet source, String theFilter) { ValueSet toExpand = new ValueSet(); // for (UriType next : source.getCompose().getInclude()) { // ConceptSetComponent include = toExpand.getCompose().addInclude(); // include.setSystem(next.getValue()); // addFilterIfPresent(theFilter, include); // } for (ConceptSetComponent next : source.getCompose().getInclude()) { toExpand.getCompose().addInclude(next); addFilterIfPresent(theFilter, next); } if (toExpand.getCompose().isEmpty()) { throw new InvalidRequestException("ValueSet does not have any compose.include or compose.import values, can not expand"); } toExpand.getCompose().getExclude().addAll(source.getCompose().getExclude()); ValueSet retVal = doExpand(toExpand); if (isNotBlank(theFilter)) { applyFilter(retVal.getExpansion().getTotalElement(), retVal.getExpansion().getContains(), theFilter); } return retVal; }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case -1618432855: return getIdentifierElement(); case 55126294: return getTimestampElement(); case 110549828: return getTotalElement(); case -1019779949: return getOffsetElement(); case 1954460585: return addParameter(); case -567445985: return addContains(); default: return super.makeProperty(hash, name); } }