Class ElementDefinitionDt.Type

java.lang.Object
ca.uhn.fhir.model.api.BaseElement
ca.uhn.fhir.model.api.BaseIdentifiableElement
ca.uhn.fhir.model.dstu2.composite.ElementDefinitionDt.Type
All Implemented Interfaces:
ca.uhn.fhir.model.api.ICompositeElement, ca.uhn.fhir.model.api.IElement, ca.uhn.fhir.model.api.IIdentifiableElement, ca.uhn.fhir.model.api.IResourceBlock, ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions, Serializable, org.hl7.fhir.instance.model.api.IBase
Enclosing class:
ElementDefinitionDt

public static class ElementDefinitionDt.Type extends ca.uhn.fhir.model.api.BaseIdentifiableElement implements ca.uhn.fhir.model.api.IResourceBlock
Block class for child element: ElementDefinition.type ()

Definition: The data type or resource that the value of this element is permitted to be

See Also:
  • Constructor Details

    • Type

      public Type()
  • Method Details

    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.hl7.fhir.instance.model.api.IBase
    • getAllPopulatedChildElementsOfType

      public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
      Specified by:
      getAllPopulatedChildElementsOfType in interface ca.uhn.fhir.model.api.ICompositeElement
    • getCodeElement

      public ca.uhn.fhir.model.primitive.CodeDt getCodeElement()
      Gets the value(s) for code (). creating it if it does not exist. Will not return null.

      Definition: Name of Data type or Resource that is a(or the) type used for this element

    • getCode

      public String getCode()
      Gets the value(s) for code (). creating it if it does not exist. This method may return null.

      Definition: Name of Data type or Resource that is a(or the) type used for this element

    • setCode

      public ElementDefinitionDt.Type setCode(ca.uhn.fhir.model.primitive.CodeDt theValue)
      Sets the value(s) for code ()

      Definition: Name of Data type or Resource that is a(or the) type used for this element

    • setCode

      Sets the value for code ()

      Definition: Name of Data type or Resource that is a(or the) type used for this element

    • getProfile

      public List<ca.uhn.fhir.model.primitive.UriDt> getProfile()
      Gets the value(s) for profile (). creating it if it does not exist. Will not return null.

      Definition: 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

    • setProfile

      public ElementDefinitionDt.Type setProfile(List<ca.uhn.fhir.model.primitive.UriDt> theValue)
      Sets the value(s) for profile ()

      Definition: 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 ca.uhn.fhir.model.primitive.UriDt addProfile()
      Adds and returns a new value for profile ()

      Definition: 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 ElementDefinitionDt.Type addProfile(ca.uhn.fhir.model.primitive.UriDt theValue)
      Adds a given new value for profile ()

      Definition: 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

      Parameters:
      theValue - The profile to add (must not be null)
    • getProfileFirstRep

      public ca.uhn.fhir.model.primitive.UriDt getProfileFirstRep()
      Gets the first repetition for profile (), creating it if it does not already exist.

      Definition: 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

      Adds a new value for profile ()

      Definition: 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

      Returns:
      Returns a reference to this object, to allow for simple chaining.
    • getAggregation

      public List<ca.uhn.fhir.model.primitive.BoundCodeDt<AggregationModeEnum>> getAggregation()
      Gets the value(s) for aggregation (). creating it if it does not exist. Will not return null.

      Definition: 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.

    • setAggregation

      public ElementDefinitionDt.Type setAggregation(List<ca.uhn.fhir.model.primitive.BoundCodeDt<AggregationModeEnum>> theValue)
      Sets the value(s) for aggregation ()

      Definition: 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.

    • addAggregation

      public ca.uhn.fhir.model.primitive.BoundCodeDt<AggregationModeEnum> addAggregation(AggregationModeEnum theValue)
      Add a value for aggregation () using an enumerated type. This is intended as a convenience method for situations where the FHIR defined ValueSets are mandatory or contain the desirable codes. If you wish to use codes other than those which are built-in, you may also use the addAggregation() method.

      Definition: 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.

    • getAggregationFirstRep

      public ca.uhn.fhir.model.primitive.BoundCodeDt<AggregationModeEnum> getAggregationFirstRep()
      Gets the first repetition for aggregation (), creating it if it does not already exist.

      Definition: 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.

    • addAggregation

      public ca.uhn.fhir.model.primitive.BoundCodeDt<AggregationModeEnum> addAggregation()
      Add a value for aggregation ()

      Definition: 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.

    • setAggregation

      Sets the value(s), and clears any existing value(s) for aggregation ()

      Definition: 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.