Package com.ibm.fhir.model.resource
Class ValueSet.Expansion
- java.lang.Object
-
- com.ibm.fhir.model.visitor.AbstractVisitable
-
- com.ibm.fhir.model.type.Element
-
- com.ibm.fhir.model.type.BackboneElement
-
- com.ibm.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 classValueSet.Expansion.Builderstatic classValueSet.Expansion.ContainsThe codes that are contained in the value set expansion.static classValueSet.Expansion.ParameterA parameter that controlled the expansion process.
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.type.BackboneElement
modifierExtension
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(String elementName, int elementIndex, Visitor visitor)Accept a Visitor and invoke the appropriate visit methods.static ValueSet.Expansion.Builderbuilder()booleanequals(Object obj)List<ValueSet.Expansion.Contains>getContains()The codes that are contained in the value set expansion.UrigetIdentifier()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.IntegergetOffset()If paging is being used, the offset at which this resource starts.List<ValueSet.Expansion.Parameter>getParameter()A parameter that controlled the expansion process.DateTimegetTimestamp()The time at which the expansion was produced by the expanding system.IntegergetTotal()The total number of concepts in the expansion.booleanhasChildren()inthashCode()ValueSet.Expansion.BuildertoBuilder()Create a new Builder from the contents of this Element-
Methods inherited from class com.ibm.fhir.model.type.BackboneElement
getModifierExtension
-
-
-
-
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
Urithat 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
DateTimethat 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
Integerthat 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
Integerthat may be null.
-
getParameter
public 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.Parameterthat may be empty.
-
getContains
public 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.Containsthat may be empty.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildrenin classBackboneElement
-
accept
public void accept(String elementName, int elementIndex, Visitor visitor)
Description copied from interface:VisitableAccept 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:
acceptin interfaceVisitable- Specified by:
acceptin 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
-
toBuilder
public ValueSet.Expansion.Builder toBuilder()
Description copied from class:ElementCreate a new Builder from the contents of this Element- Specified by:
toBuilderin classBackboneElement
-
builder
public static ValueSet.Expansion.Builder builder()
-
-