Class ValueSet.Expansion.Contains
- java.lang.Object
-
- org.linuxforhealth.fhir.model.visitor.AbstractVisitable
-
- org.linuxforhealth.fhir.model.type.Element
-
- org.linuxforhealth.fhir.model.type.BackboneElement
-
- org.linuxforhealth.fhir.model.resource.ValueSet.Expansion.Contains
-
- All Implemented Interfaces:
Visitable
- Enclosing class:
- ValueSet.Expansion
public static class ValueSet.Expansion.Contains extends BackboneElement
The codes that are contained in the value set expansion.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ValueSet.Expansion.Contains.Builder
-
Field Summary
-
Fields inherited from class org.linuxforhealth.fhir.model.type.BackboneElement
modifierExtension
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(java.lang.String elementName, int elementIndex, Visitor visitor)
Accept a Visitor and invoke the appropriate visit methods.static ValueSet.Expansion.Contains.Builder
builder()
boolean
equals(java.lang.Object obj)
Boolean
getAbstract()
If true, this entry is included in the expansion for navigational purposes, and the user cannot select the code directly as a proper value.Code
getCode()
The code for this item in the expansion hierarchy.java.util.List<ValueSet.Expansion.Contains>
getContains()
Other codes and entries contained under this entry in the hierarchy.java.util.List<ValueSet.Compose.Include.Concept.Designation>
getDesignation()
Additional representations for this item - other languages, aliases, specialized purposes, used for particular purposes, etc.String
getDisplay()
The recommended display for this item in the expansion.Boolean
getInactive()
If the concept is inactive in the code system that defines it.Uri
getSystem()
An absolute URI which is the code system in which the code for this item in the expansion is defined.String
getVersion()
The version of the code system from this code was taken.boolean
hasChildren()
int
hashCode()
ValueSet.Expansion.Contains.Builder
toBuilder()
Create a new Builder from the contents of this Element-
Methods inherited from class org.linuxforhealth.fhir.model.type.BackboneElement
getModifierExtension
-
Methods inherited from class org.linuxforhealth.fhir.model.type.Element
as, getExtension, getId, hasValue, is
-
-
-
-
Method Detail
-
getSystem
public Uri getSystem()
An absolute URI which is the code system in which the code for this item in the expansion is defined.- Returns:
- An immutable object of type
Uri
that may be null.
-
getAbstract
public Boolean getAbstract()
If true, this entry is included in the expansion for navigational purposes, and the user cannot select the code directly as a proper value.- Returns:
- An immutable object of type
Boolean
that may be null.
-
getInactive
public Boolean getInactive()
If the concept is inactive in the code system that defines it. Inactive codes are those that are no longer to be used, but are maintained by the code system for understanding legacy data. It might not be known or specified whether an concept is inactive (and it may depend on the context of use).- Returns:
- An immutable object of type
Boolean
that may be null.
-
getVersion
public String getVersion()
The version of the code system from this code was taken. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.- Returns:
- An immutable object of type
String
that may be null.
-
getCode
public Code getCode()
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.- Returns:
- An immutable object of type
Code
that may be null.
-
getDisplay
public String getDisplay()
The recommended display for this item in the expansion.- Returns:
- An immutable object of type
String
that may be null.
-
getDesignation
public java.util.List<ValueSet.Compose.Include.Concept.Designation> getDesignation()
Additional representations for this item - other languages, aliases, specialized purposes, used for particular purposes, etc. These are relevant when the conditions of the expansion do not fix to a single correct representation.- Returns:
- An unmodifiable list containing immutable objects of type
Designation
that may be empty.
-
getContains
public java.util.List<ValueSet.Expansion.Contains> getContains()
Other codes and entries contained under this entry in the hierarchy.- Returns:
- An unmodifiable list containing immutable objects of type
ValueSet.Expansion.Contains
that may be empty.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildren
in classBackboneElement
-
accept
public void accept(java.lang.String elementName, int elementIndex, Visitor visitor)
Description copied from interface:Visitable
Accept a Visitor and invoke the appropriate visit methods. A typical implementation would look like this:if (visitor.preVisit(this)) { visitor.visitStart(elementName, elementIndex, this); if (visitor.visit(elementName, elementIndex, this)) { // visit children } visitor.visitEnd(elementName, elementIndex, this); visitor.postVisit(this); }
- Specified by:
accept
in interfaceVisitable
- Specified by:
accept
in classAbstractVisitable
- Parameters:
elementName
- the name of the element in the context of this visitelementIndex
- the index of the element in a list or -1 if it is not contained within a Listvisitor
- the visitor to use
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toBuilder
public ValueSet.Expansion.Contains.Builder toBuilder()
Description copied from class:Element
Create a new Builder from the contents of this Element- Specified by:
toBuilder
in classBackboneElement
-
builder
public static ValueSet.Expansion.Contains.Builder builder()
-
-