/** * Sets the value for <b>url</b> () * * <p> * <b>Definition:</b> * An alternative location where the data can be accessed * </p> */ public AttachmentDt setUrl( String theUri) { myUrl = new UriDt(theUri); return this; }
private static String toSystemValue(UriDt theSystem) { return theSystem.getValueAsString(); }
/** * Gets the value(s) for <b>system</b> (). * creating it if it does * not exist. Will not return <code>null</code>. * * <p> * <b>Definition:</b> * The identification of the code system that defines the meaning of the symbol in the code. * </p> */ public String getSystem() { return getSystemElement().getValue(); }
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(); }
continue; // No substitution on the resource ID itself! IdDt nextUriString = new IdDt(nextRef.getValueAsString()); if (theIdSubstitutions.containsKey(nextUriString)) { IdDt newId = theIdSubstitutions.get(nextUriString); ourLog.debug(" * Replacing resource ref {} with {}", nextUriString, newId); nextRef.setValue(newId.getValue()); } else { ourLog.debug(" * Reference [{}] does not exist in bundle", nextUriString);
private boolean isSystemPresent() { return !getSystemElement().isEmpty(); }
/** * Returns true if <code>this</code> Coding has the same {@link #getCodeElement() Code} and {@link #getSystemElement() system} (as compared by simple equals comparison). Does not compare other * Codes (e.g. getUseElement()) or any extensions. */ public boolean matchesSystemAndCode(BaseCodingDt theCoding) { if (theCoding == null) { return false; } return getCodeElement().equals(theCoding.getCodeElement()) && getSystemElement().equals(theCoding.getSystemElement()); }
public IdDt setValue(String theValue) throws DataFormatException { super.setValue(theValue); myHaveComponentParts = false; super.setValue(null); myUnqualifiedId = null; myUnqualifiedVersionId = null; myResourceType = null; } else if (theValue.charAt(0) == '#' && theValue.length() > 1) { super.setValue(theValue); myBaseUrl = null; myUnqualifiedId = theValue; super.setValue(null); myHaveComponentParts = true; } else {
@Override public String getValueAsQueryToken(FhirContext theContext) { StringBuilder b= new StringBuilder(); if (getComparatorElement() != null) { b.append(getComparatorElement().getValue()); } if (!getValueElement().isEmpty()) { b.append(getValueElement().getValueAsString()); } b.append('|'); if (!getSystemElement().isEmpty()) { b.append(getSystemElement().getValueAsString()); } b.append('|'); if (!getUnitsElement().isEmpty()) { b.append(getUnitsElement().getValueAsString()); } return b.toString(); }
continue; // No substitution on the resource ID itself! IdDt nextUriString = new IdDt(nextRef.getValueAsString()); if (theIdSubstitutions.containsKey(nextUriString)) { IdDt newId = theIdSubstitutions.get(nextUriString); ourLog.debug(" * Replacing resource ref {} with {}", nextUriString, newId); nextRef.setValue(newId.getValue()); } else { ourLog.debug(" * Reference [{}] does not exist in bundle", nextUriString);
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; UriDt other = (UriDt) obj; if (getValue() == null && other.getValue() == null) { return true; } if (getValue() == null || other.getValue() == null) { return false; } String normalize = normalize(getValue()); String normalize2 = normalize(other.getValue()); return normalize.equals(normalize2); }
@Override public List<IBaseResource> toListOfResources() { ArrayList<IBaseResource> retVal = new ArrayList<IBaseResource>(); for (Entry next : myBundle.getEntry()) { if (next.getResource() != null) { retVal.add(next.getResource()); } else if (next.getResponse().getLocationElement().isEmpty() == false) { IdDt id = new IdDt(next.getResponse().getLocation()); String resourceType = id.getResourceType(); if (isNotBlank(resourceType)) { IResource res = (IResource) myContext.getResourceDefinition(resourceType).newInstance(); res.setId(id); retVal.add(res); } } } return retVal; }
/** * 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 IdDt setValue(String theValue) throws DataFormatException { super.setValue(theValue); myHaveComponentParts = false; super.setValue(null); myUnqualifiedId = null; myUnqualifiedVersionId = null; myResourceType = null; } else if (theValue.charAt(0) == '#' && theValue.length() > 1) { super.setValue(theValue); myBaseUrl = null; myUnqualifiedId = theValue; super.setValue(null); myHaveComponentParts = true; } else {
/** * Sets the value for <b>system</b> () * * <p> * <b>Definition:</b> * The identification of the code system that defines the meaning of the symbol in the code. * </p> */ public CodingDt setSystem( String theUri) { mySystem = new UriDt(theUri); return this; }
private static String toSystemValue(UriDt theSystem) { return theSystem.getValueAsString(); }