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

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

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

origin: jamesagnew/hapi-fhir

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

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

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

@Override
public int hashCode() {
  final int prime = 31;
  int result = 1;
  String normalize = normalize(getValue());
  result = prime * result + ((normalize == null) ? 0 : normalize.hashCode());
  return result;
}
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

if (new UriDt(SearchParamConstants.UCUM_NS).equals(nextValue.getSystemElement())) {
  if (isNotBlank(nextValue.getCode())) {
origin: jamesagnew/hapi-fhir

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

if (super.getValue() == null && myHaveComponentParts) {
  super.setValue(value);
return super.getValue();
origin: jamesagnew/hapi-fhir

private boolean isSystemPresent() {
  return !getSystemElement().isEmpty();
}
origin: jamesagnew/hapi-fhir

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

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 {
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: ca.uhn.hapi.fhir/hapi-fhir-jpaserver-base

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

@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);
}
origin: ca.uhn.hapi.fhir/hapi-fhir-base

if (super.getValue() == null && myHaveComponentParts) {
  super.setValue(value);
return super.getValue();
origin: jamesagnew/hapi-fhir

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

/**
 * 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());
}
origin: ca.uhn.hapi.fhir/hapi-fhir-base

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 {
origin: jamesagnew/hapi-fhir

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

private static String toSystemValue(UriDt theSystem) {
  return theSystem.getValueAsString();
}
ca.uhn.fhir.model.primitiveUriDt

Most used methods

  • <init>
    Create a new String
  • getValueAsString
  • 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

  • Updating database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getExternalFilesDir (Context)
  • startActivity (Activity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JLabel (javax.swing)
  • 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