Class ValueSet.Expansion
- 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
-
- All Implemented Interfaces:
Visitable
- Enclosing class:
- ValueSet
public static class ValueSet.Expansion extends BackboneElement
A value set can also be "expanded", where the value set is turned into a simple collection of enumerated codes. This element holds the expansion, if it has been performed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ValueSet.Expansion.Builder
static class
ValueSet.Expansion.Contains
The codes that are contained in the value set expansion.static class
ValueSet.Expansion.Parameter
A parameter that controlled the expansion process.
-
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.Builder
builder()
boolean
equals(java.lang.Object obj)
java.util.List<ValueSet.Expansion.Contains>
getContains()
The codes that are contained in the value set expansion.Uri
getIdentifier()
An identifier that uniquely identifies this expansion of the valueset, based on a unique combination of the provided parameters, the system default parameters, and the underlying system code system versions etc.Integer
getOffset()
If paging is being used, the offset at which this resource starts.java.util.List<ValueSet.Expansion.Parameter>
getParameter()
A parameter that controlled the expansion process.DateTime
getTimestamp()
The time at which the expansion was produced by the expanding system.Integer
getTotal()
The total number of concepts in the expansion.boolean
hasChildren()
int
hashCode()
ValueSet.Expansion.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
-
getIdentifier
public Uri getIdentifier()
An identifier that uniquely identifies this expansion of the valueset, based on a unique combination of the provided parameters, the system default parameters, and the underlying system code system versions etc. Systems may re-use the same identifier as long as those factors remain the same, and the expansion is the same, but are not required to do so. This is a business identifier.- Returns:
- An immutable object of type
Uri
that may be null.
-
getTimestamp
public DateTime getTimestamp()
The time at which the expansion was produced by the expanding system.- Returns:
- An immutable object of type
DateTime
that is non-null.
-
getTotal
public Integer getTotal()
The total number of concepts in the expansion. If the number of concept nodes in this resource is less than the stated number, then the server can return more using the offset parameter.- Returns:
- An immutable object of type
Integer
that may be null.
-
getOffset
public Integer getOffset()
If paging is being used, the offset at which this resource starts. I.e. this resource is a partial view into the expansion. If paging is not being used, this element SHALL NOT be present.- Returns:
- An immutable object of type
Integer
that may be null.
-
getParameter
public java.util.List<ValueSet.Expansion.Parameter> getParameter()
A parameter that controlled the expansion process. These parameters may be used by users of expanded value sets to check whether the expansion is suitable for a particular purpose, or to pick the correct expansion.- Returns:
- An unmodifiable list containing immutable objects of type
ValueSet.Expansion.Parameter
that may be empty.
-
getContains
public java.util.List<ValueSet.Expansion.Contains> getContains()
The codes that are contained in the value set expansion.- 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.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.Builder builder()
-
-