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

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

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

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

private LookupCodeResult lookup(List<ExpansionContains> theContains, String theSystem, String theCode) {
  for (ExpansionContains nextCode : theContains) {
    String system = nextCode.getSystem();
    String code = nextCode.getCode();
    if (theSystem.equals(system) && theCode.equals(code)) {
      LookupCodeResult retVal = new LookupCodeResult();
      retVal.setSearchedForCode(code);
      retVal.setSearchedForSystem(system);
      retVal.setFound(true);
      if (nextCode.getAbstract() != null) {
        retVal.setCodeIsAbstract(nextCode.getAbstract());
      }
      retVal.setCodeDisplay(nextCode.getDisplay());
      retVal.setCodeSystemVersion(nextCode.getVersion());
      retVal.setCodeSystemDisplayName("Unknown"); // TODO: implement
      return retVal;
    }
  }
  return null;
}
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-jpaserver-base

private LookupCodeResult lookup(List<ExpansionContains> theContains, String theSystem, String theCode) {
  for (ExpansionContains nextCode : theContains) {
    String system = nextCode.getSystem();
    String code = nextCode.getCode();
    if (theSystem.equals(system) && theCode.equals(code)) {
      LookupCodeResult retVal = new LookupCodeResult();
      retVal.setSearchedForCode(code);
      retVal.setSearchedForSystem(system);
      retVal.setFound(true);
      if (nextCode.getAbstract() != null) {
        retVal.setCodeIsAbstract(nextCode.getAbstract());
      }
      retVal.setCodeDisplay(nextCode.getDisplay());
      retVal.setCodeSystemVersion(nextCode.getVersion());
      retVal.setCodeSystemDisplayName("Unknown"); // TODO: implement
      return retVal;
    }
  }
  return null;
}
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-structures-dstu2

/**
 * Gets the value(s) for <b>abstract</b> ().
 * creating it if it does
 * not exist. This method may return <code>null</code>.
 *
 * <p>
 * <b>Definition:</b>
 * If true, this entry is included in the expansion for navigational purposes, and the user cannot select the code directly as a proper value
 * </p> 
 */
public Boolean getAbstract() {  
  return getAbstractElement().getValue();
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu2

/**
 * Adds and returns a new value for <b>contains</b> ()
 *
 * <p>
 * <b>Definition:</b>
 * The codes that are contained in the value set expansion
 * </p> 
 */
public ExpansionContains addContains() {
  ExpansionContains newType = new ExpansionContains();
  getContains().add(newType);
  return newType; 
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu2

/**
 * Gets the value(s) for <b>code</b> ().
 * creating it if it does
 * not exist. This method may return <code>null</code>.
 *
 * <p>
 * <b>Definition:</b>
 * The code for this item in the expansion hierarchy. If this code is missing the entry in the hierarchy is a place holder (abstract) and does not represent a valid code in the value set
 * </p> 
 */
public String getCode() {  
  return getCodeElement().getValue();
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu2

/**
 * Gets the value(s) for <b>display</b> ().
 * creating it if it does
 * not exist. This method may return <code>null</code>.
 *
 * <p>
 * <b>Definition:</b>
 * The recommended display for this item in the expansion
 * </p> 
 */
public String getDisplay() {  
  return getDisplayElement().getValue();
}
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; 
}
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;
}
ca.uhn.fhir.model.dstu2.resourceValueSet$ExpansionContains

Javadoc

Block class for child element: ValueSet.expansion.contains ()

Definition: The codes that are contained in the value set expansion

Most used methods

  • getContains
    Gets the value(s) for contains (). creating it if it does not exist. Will not return null.Definition
  • <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
  • getSystemElement,
  • getVersion,
  • getVersionElement,
  • setCode,
  • setDisplay,
  • setSystem

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSystemService (Context)
  • addToBackStack (FragmentTransaction)
  • runOnUiThread (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Permission (java.security)
    Legacy security code; do not use.
  • JFileChooser (javax.swing)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top 12 Jupyter Notebook extensions
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