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 Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    ca.uhn.fhir.model.primitive.BoundCodeDt<ca.uhn.fhir.model.dstu2.valueset.AggregationModeEnum>
    Add a value for aggregation ()
    ca.uhn.fhir.model.primitive.BoundCodeDt<ca.uhn.fhir.model.dstu2.valueset.AggregationModeEnum>
    addAggregation(ca.uhn.fhir.model.dstu2.valueset.AggregationModeEnum theValue)
    Add a value for aggregation () using an enumerated type.
    ca.uhn.fhir.model.primitive.UriDt
    Adds and returns a new value for profile ()
    addProfile(ca.uhn.fhir.model.primitive.UriDt theValue)
    Adds a given new value for profile ()
    Adds a new value for profile ()
    List<ca.uhn.fhir.model.primitive.BoundCodeDt<ca.uhn.fhir.model.dstu2.valueset.AggregationModeEnum>>
    Gets the value(s) for aggregation ().
    ca.uhn.fhir.model.primitive.BoundCodeDt<ca.uhn.fhir.model.dstu2.valueset.AggregationModeEnum>
    Gets the first repetition for aggregation (), creating it if it does not already exist.
    <T extends ca.uhn.fhir.model.api.IElement>
    List<T>
     
    Gets the value(s) for code ().
    ca.uhn.fhir.model.primitive.CodeDt
    Gets the value(s) for code ().
    List<ca.uhn.fhir.model.primitive.UriDt>
    Gets the value(s) for profile ().
    ca.uhn.fhir.model.primitive.UriDt
    Gets the first repetition for profile (), creating it if it does not already exist.
    boolean
     
    setAggregation(ca.uhn.fhir.model.dstu2.valueset.AggregationModeEnum theValue)
    Sets the value(s), and clears any existing value(s) for aggregation ()
    setAggregation(List<ca.uhn.fhir.model.primitive.BoundCodeDt<ca.uhn.fhir.model.dstu2.valueset.AggregationModeEnum>> theValue)
    Sets the value(s) for aggregation ()
    setCode(ca.uhn.fhir.model.primitive.CodeDt theValue)
    Sets the value(s) for code ()
    setCode(String theCode)
    Sets the value for code ()
    setProfile(List<ca.uhn.fhir.model.primitive.UriDt> theValue)
    Sets the value(s) for profile ()

    Methods inherited from class ca.uhn.fhir.model.api.BaseIdentifiableElement

    getElementSpecificId, getId, setElementSpecificId, setId, setId

    Methods inherited from class ca.uhn.fhir.model.api.BaseElement

    addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, isBaseEmpty, setUserData

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.hl7.fhir.instance.model.api.IBase

    fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData

    Methods inherited from interface ca.uhn.fhir.model.api.IIdentifiableElement

    getElementSpecificId, getId, setElementSpecificId, setId, setId
  • 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. Will not 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

      public ElementDefinitionDt.Type setCode(String theCode)
      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

      public ElementDefinitionDt.Type addProfile(String theUri)
      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<ca.uhn.fhir.model.dstu2.valueset.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 aggreated - 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<ca.uhn.fhir.model.dstu2.valueset.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 aggreated - 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<ca.uhn.fhir.model.dstu2.valueset.AggregationModeEnum> addAggregation(ca.uhn.fhir.model.dstu2.valueset.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 aggreated - 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<ca.uhn.fhir.model.dstu2.valueset.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 aggreated - 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<ca.uhn.fhir.model.dstu2.valueset.AggregationModeEnum> addAggregation()
      Add a value for aggregation ()

      Definition: If the type is a reference to another resource, how the resource is or can be aggreated - 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(ca.uhn.fhir.model.dstu2.valueset.AggregationModeEnum theValue)
      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 aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle