Class ElementDefinition.TypeRefComponent

  • All Implemented Interfaces:
    Serializable, org.hl7.fhir.instance.model.api.IBase, org.hl7.fhir.instance.model.api.IBaseDatatypeElement, org.hl7.fhir.instance.model.api.IBaseElement, org.hl7.fhir.instance.model.api.IBaseHasExtensions
    Enclosing class:
    ElementDefinition

    public static class ElementDefinition.TypeRefComponent
    extends Element
    implements org.hl7.fhir.instance.model.api.IBaseDatatypeElement
    See Also:
    Serialized Form
    • Field Detail

      • code

        protected CodeType code
        Name of Data type or Resource that is a(or the) type used for this element.
      • profile

        protected List<UriType> profile
        Identifies a profile structure or implementation Guide that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile. When more than one profile is specified, the content must conform to all of them. When an implementation guide is specified, the resource SHALL conform to at least one profile defined in the implementation guide.
    • Method Detail

      • getCodeElement

        public CodeType getCodeElement()
        Returns:
        code (Name of Data type or Resource that is a(or the) type used for this element.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value
      • hasCode

        public boolean hasCode()
      • setCodeElement

        public ElementDefinition.TypeRefComponent setCodeElement​(CodeType value)
        Parameters:
        value - code (Name of Data type or Resource that is a(or the) type used for this element.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value
      • getCode

        public String getCode()
        Returns:
        Name of Data type or Resource that is a(or the) type used for this element.
      • getProfile

        public List<UriTypegetProfile()
        Returns:
        profile (Identifies a profile structure or implementation Guide that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile. When more than one profile is specified, the content must conform to all of them. When an implementation guide is specified, the resource SHALL conform to at least one profile defined in the implementation guide.)
      • addProfileElement

        public UriType addProfileElement()
        Returns:
        profile (Identifies a profile structure or implementation Guide that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile. When more than one profile is specified, the content must conform to all of them. When an implementation guide is specified, the resource SHALL conform to at least one profile defined in the implementation guide.)
      • addProfile

        public ElementDefinition.TypeRefComponent addProfile​(String value)
        Parameters:
        value - profile (Identifies a profile structure or implementation Guide that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile. When more than one profile is specified, the content must conform to all of them. When an implementation guide is specified, the resource SHALL conform to at least one profile defined in the implementation guide.)
      • hasProfile

        public boolean hasProfile​(String value)
        Parameters:
        value - profile (Identifies a profile structure or implementation Guide that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile. When more than one profile is specified, the content must conform to all of them. When an implementation guide is specified, the resource SHALL conform to at least one profile defined in the implementation guide.)
      • hasAggregation

        public boolean hasAggregation​(ElementDefinition.AggregationMode value)
        Parameters:
        value - aggregation (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.)
      • setProperty

        public void setProperty​(String name,
                                Base value)
                         throws org.hl7.fhir.exceptions.FHIRException
        Overrides:
        setProperty in class Element
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • addChild

        public Base addChild​(String name)
                      throws org.hl7.fhir.exceptions.FHIRException
        Overrides:
        addChild in class Element
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface org.hl7.fhir.instance.model.api.IBase
        Overrides:
        isEmpty in class Element
      • fhirType

        public String fhirType()
        Specified by:
        fhirType in interface org.hl7.fhir.instance.model.api.IBase
        Overrides:
        fhirType in class Element