Tabnine Logo
ValueSet$ExpansionContains.getContains
Code IndexAdd Tabnine to your IDE (free)

How to use
getContains
method
in
ca.uhn.fhir.model.dstu2.resource.ValueSet$ExpansionContains

Best Java code snippets using ca.uhn.fhir.model.dstu2.resource.ValueSet$ExpansionContains.getContains (Showing top 5 results out of 315)

origin: jamesagnew/hapi-fhir

private ca.uhn.fhir.jpa.dao.IFhirResourceDaoValueSet.ValidateCodeResult validateCodeIsInContains(List<ExpansionContains> contains, String theSystem, String theCode, CodingDt theCoding,
    CodeableConceptDt theCodeableConcept) {
  for (ExpansionContains nextCode : contains) {
    ca.uhn.fhir.jpa.dao.IFhirResourceDaoValueSet.ValidateCodeResult result = validateCodeIsInContains(nextCode.getContains(), theSystem, theCode, theCoding, theCodeableConcept);
    if (result != null) {
      return result;
    }
    String system = nextCode.getSystem();
    String code = nextCode.getCode();
    if (isNotBlank(theCode)) {
      if (theCode.equals(code) && (isBlank(theSystem) || theSystem.equals(system))) {
        return new ValidateCodeResult(true, "Validation succeeded", nextCode.getDisplay());
      }
    } else if (theCoding != null) {
      if (StringUtils.equals(system, theCoding.getSystem()) && StringUtils.equals(code, theCoding.getCode())) {
        return new ValidateCodeResult(true, "Validation succeeded", nextCode.getDisplay());
      }
    } else {
      for (CodingDt next : theCodeableConcept.getCoding()) {
        if (StringUtils.equals(system, next.getSystem()) && StringUtils.equals(code, next.getCode())) {
          return new ValidateCodeResult(true, "Validation succeeded", nextCode.getDisplay());
        }
      }
    }
  }
  return null;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu2

/**
 * Adds a given new value for <b>contains</b> ()
 *
 * <p>
 * <b>Definition:</b>
 * Other codes and entries contained under this entry in the hierarchy
 * </p>
 * @param theValue The contains to add (must not be <code>null</code>)
 */
public ExpansionContains addContains(ExpansionContains theValue) {
  if (theValue == null) {
    throw new NullPointerException("theValue must not be null");
  }
  getContains().add(theValue);
  return this;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu2

/**
 * Gets the first repetition for <b>contains</b> (),
 * creating it if it does not already exist.
 *
 * <p>
 * <b>Definition:</b>
 * Other codes and entries contained under this entry in the hierarchy
 * </p> 
 */
public ExpansionContains getContainsFirstRep() {
  if (getContains().isEmpty()) {
    return addContains();
  }
  return getContains().get(0); 
}
origin: ca.uhn.hapi.fhir/hapi-fhir-jpaserver-base

private ca.uhn.fhir.jpa.dao.IFhirResourceDaoValueSet.ValidateCodeResult validateCodeIsInContains(List<ExpansionContains> contains, String theSystem, String theCode, CodingDt theCoding,
    CodeableConceptDt theCodeableConcept) {
  for (ExpansionContains nextCode : contains) {
    ca.uhn.fhir.jpa.dao.IFhirResourceDaoValueSet.ValidateCodeResult result = validateCodeIsInContains(nextCode.getContains(), theSystem, theCode, theCoding, theCodeableConcept);
    if (result != null) {
      return result;
    }
    String system = nextCode.getSystem();
    String code = nextCode.getCode();
    if (isNotBlank(theCode)) {
      if (theCode.equals(code) && (isBlank(theSystem) || theSystem.equals(system))) {
        return new ValidateCodeResult(true, "Validation succeeded", nextCode.getDisplay());
      }
    } else if (theCoding != null) {
      if (StringUtils.equals(system, theCoding.getSystem()) && StringUtils.equals(code, theCoding.getCode())) {
        return new ValidateCodeResult(true, "Validation succeeded", nextCode.getDisplay());
      }
    } else {
      for (CodingDt next : theCodeableConcept.getCoding()) {
        if (StringUtils.equals(system, next.getSystem()) && StringUtils.equals(code, next.getCode())) {
          return new ValidateCodeResult(true, "Validation succeeded", nextCode.getDisplay());
        }
      }
    }
  }
  return null;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu2

/**
 * Adds and returns a new value for <b>contains</b> ()
 *
 * <p>
 * <b>Definition:</b>
 * Other codes and entries contained under this entry in the hierarchy
 * </p> 
 */
public ExpansionContains addContains() {
  ExpansionContains newType = new ExpansionContains();
  getContains().add(newType);
  return newType; 
}
ca.uhn.fhir.model.dstu2.resourceValueSet$ExpansionContainsgetContains

Javadoc

Gets the value(s) for contains (). creating it if it does not exist. Will not return null.

Definition: Other codes and entries contained under this entry in the hierarchy

Popular methods of ValueSet$ExpansionContains

  • <init>
  • addContains
    Adds a given new value for contains ()Definition: Other codes and entries contained under this entry
  • getAbstract
    Gets the value(s) for abstract (). creating it if it does not exist. This method may return null.Def
  • getAbstractElement
    Gets the value(s) for abstract (). creating it if it does not exist. Will not return null.Definition
  • getCode
    Gets the value(s) for code (). creating it if it does not exist. This method may return null.Definit
  • getCodeElement
    Gets the value(s) for code (). creating it if it does not exist. Will not return null.Definition: T
  • getDisplay
    Gets the value(s) for display (). creating it if it does not exist. This method may return null.Defi
  • getDisplayElement
    Gets the value(s) for display (). creating it if it does not exist. Will not return null.Definition:
  • getSystem
    Gets the value(s) for system (). creating it if it does not exist. This method may return null.Defin
  • getSystemElement
    Gets the value(s) for system (). creating it if it does not exist. Will not return null.Definition:
  • getVersion
    Gets the value(s) for version (). creating it if it does not exist. This method may return null.Defi
  • getVersionElement
    Gets the value(s) for version (). creating it if it does not exist. Will not return null.Definition:
  • getVersion,
  • getVersionElement,
  • setCode,
  • setDisplay,
  • setSystem

Popular in Java

  • Updating database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • addToBackStack (FragmentTransaction)
  • runOnUiThread (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Top PhpStorm plugins
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