Class 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.
    • 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.
      • 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 interface Visitable
        Specified by:
        accept in class AbstractVisitable
        Parameters:
        elementName - the name of the element in the context of this visit
        elementIndex - the index of the element in a list or -1 if it is not contained within a List
        visitor - the visitor to use
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object