Class ElementDefinition.Type

  • All Implemented Interfaces:
    Visitable
    Enclosing class:
    ElementDefinition

    public static class ElementDefinition.Type
    extends BackboneElement
    The data type or resource that the value of this element is permitted to be.
    • Method Detail

      • getCode

        public Uri getCode()
        URL of Data type or Resource that is a(or the) type used for this element. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition e.g. "string" is a reference to http://hl7. org/fhir/StructureDefinition/string. Absolute URLs are only allowed in logical models.
        Returns:
        An immutable object of type Uri that is non-null.
      • getProfile

        public List<Canonical> getProfile()
        Identifies a profile structure or implementation Guide that applies to the datatype this element refers to. If any profiles are specified, then the content must conform to at least one of them. The URL can be a local reference - to a contained StructureDefinition, or a reference to another StructureDefinition or Implementation Guide by a canonical URL. When an implementation guide is specified, the type SHALL conform to at least one profile defined in the implementation guide.
        Returns:
        An unmodifiable list containing immutable objects of type Canonical that may be empty.
      • getTargetProfile

        public List<Canonical> getTargetProfile()
        Used when the type is "Reference" or "canonical", and identifies a profile structure or implementation Guide that applies to the target of the reference this element refers to. If any profiles are specified, then the content must conform to at least one of them. The URL can be a local reference - to a contained StructureDefinition, or a reference to another StructureDefinition or Implementation Guide by a canonical URL. When an implementation guide is specified, the target resource SHALL conform to at least one profile defined in the implementation guide.
        Returns:
        An unmodifiable list containing immutable objects of type Canonical that may be empty.
      • getAggregation

        public List<AggregationMode> getAggregation()
        If the type is a reference to another resource, how the resource is or can be aggregated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle.
        Returns:
        An unmodifiable list containing immutable objects of type AggregationMode that may be empty.
      • getVersioning

        public ReferenceVersionRules getVersioning()
        Whether this reference needs to be version specific or version independent, or whether either can be used.
        Returns:
        An immutable object of type ReferenceVersionRules that may be null.
      • accept

        public void accept​(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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object