/** * Returns true if <code>this</code> identifier has the same {@link #getValueElement() value} and * {@link #getSystemElement() system} (as compared by simple equals comparison). Does not compare other values (e.g. * getUse()) or any extensions. */ public boolean matchesSystemAndValue(BaseIdentifierDt theIdentifier) { if (theIdentifier == null) { return false; } return getValueElement().equals(theIdentifier.getValueElement()) && getSystemElement().equals(theIdentifier.getSystemElement()); }
public TokenCriterion(String theParamName, List<BaseIdentifierDt> theValue) { myName=theParamName; StringBuilder b = new StringBuilder(); for (BaseIdentifierDt next : theValue) { if (next.getSystemElement().isEmpty() && next.getValueElement().isEmpty()) { continue; } if (b.length() > 0) { b.append(','); } b.append(toValue(next.getSystemElement().getValueAsString(), next.getValueElement().getValue())); } myValue = b.toString(); }
/** * Constructor which copies the {@link BaseIdentifierDt#getSystemElement() system} and * {@link BaseIdentifierDt#getValueElement() value} from a {@link BaseIdentifierDt} instance and adds it as a * parameter * * @param theIdentifierDt The identifier */ public TokenParam(BaseIdentifierDt theIdentifierDt) { this(toSystemValue(theIdentifierDt.getSystemElement()), theIdentifierDt.getValueElement().getValue()); }
@Override public ICriterion<TokenClientParam> identifier(BaseIdentifierDt theIdentifier) { return new TokenCriterion(getParamName(), theIdentifier.getSystemElement().getValueAsString(), theIdentifier.getValueElement().getValue()); }
/** * {@inheritDoc} */ @Override public String getValueAsQueryToken(FhirContext theContext) { UriDt system = getSystemElement(); StringDt value = getValueElement(); if (system.getValueAsString() != null) { return ParameterUtil.escape(StringUtils.defaultString(system.getValueAsString())) + '|' + ParameterUtil.escape(value.getValueAsString()); } return ParameterUtil.escape(value.getValueAsString()); }
} else if (theParameter instanceof BaseIdentifierDt) { BaseIdentifierDt id = (BaseIdentifierDt) theParameter; system = id.getSystemElement().getValueAsString(); code = (id.getValueElement().getValue()); } else if (theParameter instanceof BaseCodingDt) {
/** * Returns true if <code>this</code> identifier has the same {@link #getValueElement() value} and * {@link #getSystemElement() system} (as compared by simple equals comparison). Does not compare other values (e.g. * getUse()) or any extensions. */ public boolean matchesSystemAndValue(BaseIdentifierDt theIdentifier) { if (theIdentifier == null) { return false; } return getValueElement().equals(theIdentifier.getValueElement()) && getSystemElement().equals(theIdentifier.getSystemElement()); }
public TokenCriterion(String theParamName, List<BaseIdentifierDt> theValue) { myName=theParamName; StringBuilder b = new StringBuilder(); for (BaseIdentifierDt next : theValue) { if (next.getSystemElement().isEmpty() && next.getValueElement().isEmpty()) { continue; } if (b.length() > 0) { b.append(','); } b.append(toValue(next.getSystemElement().getValueAsString(), next.getValueElement().getValue())); } myValue = b.toString(); }
/** * Constructor which copies the {@link BaseIdentifierDt#getSystemElement() system} and * {@link BaseIdentifierDt#getValueElement() value} from a {@link BaseIdentifierDt} instance and adds it as a * parameter * * @param theIdentifierDt The identifier */ public TokenParam(BaseIdentifierDt theIdentifierDt) { this(toSystemValue(theIdentifierDt.getSystemElement()), theIdentifierDt.getValueElement().getValue()); }
@Override public ICriterion<TokenClientParam> identifier(BaseIdentifierDt theIdentifier) { return new TokenCriterion(getParamName(), theIdentifier.getSystemElement().getValueAsString(), theIdentifier.getValueElement().getValue()); }
/** * {@inheritDoc} */ @Override public String getValueAsQueryToken(FhirContext theContext) { UriDt system = getSystemElement(); StringDt value = getValueElement(); if (system.getValueAsString() != null) { return ParameterUtil.escape(StringUtils.defaultString(system.getValueAsString())) + '|' + ParameterUtil.escape(value.getValueAsString()); } return ParameterUtil.escape(value.getValueAsString()); }
} else if (theParameter instanceof BaseIdentifierDt) { BaseIdentifierDt id = (BaseIdentifierDt) theParameter; system = id.getSystemElement().getValueAsString(); code = (id.getValueElement().getValue()); } else if (theParameter instanceof BaseCodingDt) {