Tabnine Logo
UriDt.getValueAsString
Code IndexAdd Tabnine to your IDE (free)

How to use
getValueAsString
method
in
ca.uhn.fhir.model.primitive.UriDt

Best Java code snippets using ca.uhn.fhir.model.primitive.UriDt.getValueAsString (Showing top 20 results out of 315)

origin: jamesagnew/hapi-fhir

private static String toSystemValue(UriDt theSystem) {
  return theSystem.getValueAsString();
}
origin: jamesagnew/hapi-fhir

private static String toSystemValue(UriDt theSystem) {
  return theSystem.getValueAsString();
}
origin: jamesagnew/hapi-fhir

/**
 * Compares the given string to the string representation of this URI. In many cases it is preferable to use this
 * instead of the standard {@link #equals(Object)} method, since that method returns <code>false</code> unless it is
 * passed an instance of {@link UriDt}
 */
public boolean equals(String theString) {
  return StringUtils.equals(getValueAsString(), theString);
}
origin: jamesagnew/hapi-fhir

/**
 * Creates an ID based on a given URL
 */
public IdDt(UriDt theUrl) {
  setValue(theUrl.getValueAsString());
}
origin: jamesagnew/hapi-fhir

private boolean isSystemBlank() {
  return isSystemPresent() && getSystemElement().getValueAsString().equals("");
}
origin: jamesagnew/hapi-fhir

/**
 * {@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());
}
origin: jamesagnew/hapi-fhir

@Override
public IBaseResource read(UriDt theUrl) {
  IdDt id = new IdDt(theUrl);
  String resourceType = id.getResourceType();
  if (isBlank(resourceType)) {
    throw new IllegalArgumentException(myContext.getLocalizer().getMessage(I18N_INCOMPLETE_URI_FOR_READ, theUrl.getValueAsString()));
  }
  RuntimeResourceDefinition def = myContext.getResourceDefinition(resourceType);
  if (def == null) {
    throw new IllegalArgumentException(myContext.getLocalizer().getMessage(I18N_CANNOT_DETEMINE_RESOURCE_TYPE, theUrl.getValueAsString()));
  }
  return read(def.getImplementingClass(), id);
}
origin: jamesagnew/hapi-fhir

/**
 * Copy constructor: Creates a new Coding with the system and code copied out of the given coding
 */
public CodingDt(BaseCodingDt theCoding) {
  this(theCoding.getSystemElement().getValueAsString(), theCoding.getCodeElement().getValue());
}

origin: jamesagnew/hapi-fhir

/**
 * Copy constructor: Creates a new Coding with the system and code copied out of the given coding
 */
public CodingDt(BaseCodingDt theCoding) {
  this(theCoding.getSystemElement().getValueAsString(), theCoding.getCodeElement().getValue());
}

origin: jamesagnew/hapi-fhir

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();
}
origin: jamesagnew/hapi-fhir

/**
 * Loops through the {@link #getCoding() codings} in this codeable concept
 * and returns the first bound enumerated type that matches. <b>Use
 * caution</b> using this method, see the return description for more
 * information.
 * 
 * @return Returns the bound enumerated type, or <code>null</code> if none
 *         are found. Note that a null return value doesn't neccesarily
 *         imply that this Codeable Concept has no codes, only that it has
 *         no codes that match the enum.
 */
public Set<T> getValueAsEnum() {
  Validate.notNull(myBinder, "This object does not have a binder. Constructor BoundCodeableConceptDt() should not be called!");
  Set<T> retVal = new HashSet<T>();
  for (CodingDt next : getCoding()) {
    if (next == null) {
      continue;
    }
    T nextT = myBinder.fromCodeString(defaultString(next.getCodeElement().getValue()), defaultString(next.getSystemElement().getValueAsString()));
    if (nextT != null) {
      retVal.add(nextT);
    } else {
      // TODO: throw special exception type?
    }
  }
  return retVal;
}
origin: jamesagnew/hapi-fhir

/**
 * {@inheritDoc}
 */
@Override
public String getValueAsQueryToken(FhirContext theContext) {
  if (getSystemElement().getValueAsString() != null) {
    return ParameterUtil.escape(StringUtils.defaultString(getSystemElement().getValueAsString())) + '|' + ParameterUtil.escape(getCodeElement().getValueAsString());
  } 
  return ParameterUtil.escape(getCodeElement().getValueAsString());
}
origin: jamesagnew/hapi-fhir

private void extractTokensFromCoding(List<String> theSystems, List<String> theCodes, ResourceTable theEntity, Set<BaseResourceIndexedSearchParam> theListToPopulate, RuntimeSearchParam theParameterDef, CodingDt nextCoding) {
  if (nextCoding != null && !nextCoding.isEmpty()) {
    String nextSystem = nextCoding.getSystemElement().getValueAsString();
    String nextCode = nextCoding.getCodeElement().getValue();
    if (isNotBlank(nextSystem) || isNotBlank(nextCode)) {
      theSystems.add(nextSystem);
      theCodes.add(nextCode);
    }
    if (!nextCoding.getDisplayElement().isEmpty()) {
      addStringParam(theEntity, theListToPopulate, theParameterDef, nextCoding.getDisplayElement().getValue());
    }
  }
}
origin: jamesagnew/hapi-fhir

@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();
}

origin: jamesagnew/hapi-fhir

@Override
public ICriterion<TokenClientParam> identifier(BaseIdentifierDt theIdentifier) {
  return new TokenCriterion(getParamName(), theIdentifier.getSystemElement().getValueAsString(), theIdentifier.getValueElement().getValue());
}
origin: jamesagnew/hapi-fhir

  continue;
String system = StringUtils.defaultIfBlank(nextValue.getSystemElement().getValueAsString(), null);
String value = nextValue.getValueElement().getValue();
if (isNotBlank(value)) {
origin: jamesagnew/hapi-fhir

String system = define.getSystemElement().getValueAsString();
for (CodeSystemConcept nextConcept : define.getConcept()) {
  addDefinedConcept(vs, system, nextConcept);
String system = nextInclude.getSystemElement().getValueAsString();
for (ComposeIncludeConcept nextConcept : nextInclude.getConcept()) {
  String nextCodeValue = nextConcept.getCode();
origin: jamesagnew/hapi-fhir

ResourceIndexedSearchParamQuantity nextEntity = new ResourceIndexedSearchParamQuantity(resourceName, nextValue.getValueElement().getValue(), nextValue.getSystemElement().getValueAsString(), nextValue.getCode());
nextEntity.setResource(theEntity);
retVal.add(nextEntity);
origin: jamesagnew/hapi-fhir

} else if (theParameter instanceof BaseIdentifierDt) {
  BaseIdentifierDt id = (BaseIdentifierDt) theParameter;
  system = id.getSystemElement().getValueAsString();
  code = (id.getValueElement().getValue());
} else if (theParameter instanceof BaseCodingDt) {
  BaseCodingDt id = (BaseCodingDt) theParameter;
  system = id.getSystemElement().getValueAsString();
  code = (id.getCodeElement().getValue());
} else if (theParameter instanceof NumberParam) {
origin: jamesagnew/hapi-fhir

systemValue = param.getSystemElement().getValueAsString();
unitsValue = param.getUnitsElement().getValueAsString();
cmpValue = ParamPrefixEnum.forValue(param.getComparatorElement().getValueAsString());
ca.uhn.fhir.model.primitiveUriDtgetValueAsString

Popular methods of UriDt

  • <init>
    Create a new String
  • getValue
  • isEmpty
  • equals
    Compares the given string to the string representation of this URI. In many cases it is preferable t
  • setValue
  • isBaseEmpty
  • normalize
  • setValueAsString

Popular in Java

  • Reading from database using SQL prepared statement
  • setScale (BigDecimal)
  • getContentResolver (Context)
  • setRequestProperty (URLConnection)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • ImageIO (javax.imageio)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now