Class 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
Definition: The data type or resource that the value of this element is permitted to be
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionca.uhn.fhir.model.primitive.BoundCodeDt
<AggregationModeEnum> Add a value for aggregation ()ca.uhn.fhir.model.primitive.BoundCodeDt
<AggregationModeEnum> addAggregation
(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 ()addProfile
(String theUri) Adds a new value for profile ()List
<ca.uhn.fhir.model.primitive.BoundCodeDt<AggregationModeEnum>> Gets the value(s) for aggregation ().ca.uhn.fhir.model.primitive.BoundCodeDt
<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> getAllPopulatedChildElementsOfType
(Class<T> theType) getCode()
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
isEmpty()
setAggregation
(AggregationModeEnum theValue) Sets the value(s), and clears any existing value(s) for aggregation ()setAggregation
(List<ca.uhn.fhir.model.primitive.BoundCodeDt<AggregationModeEnum>> theValue) Sets the value(s) for aggregation ()setCode
(ca.uhn.fhir.model.primitive.CodeDt theValue) Sets the value(s) for code ()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
- Specified by:
isEmpty
in interfaceorg.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 interfaceca.uhn.fhir.model.api.ICompositeElement
-
getCodeElement
Gets the value(s) for code (). creating it if it does not exist. Will not returnnull
.Definition: Name of Data type or Resource that is a(or the) type used for this element
-
getCode
Gets the value(s) for code (). creating it if it does not exist. This method may returnnull
.Definition: Name of Data type or Resource that is a(or the) type used for this element
-
setCode
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
Gets the value(s) for profile (). creating it if it does not exist. Will not returnnull
.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
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
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
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 benull
)
-
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
Gets the value(s) for aggregation (). creating it if it does not exist. Will not returnnull
.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 theaddAggregation()
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
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
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.
-