Package org.hl7.fhir.dstu3.model
Class ElementDefinition.TypeRefComponent
- java.lang.Object
-
- org.hl7.fhir.dstu3.model.Base
-
- org.hl7.fhir.dstu3.model.Element
-
- org.hl7.fhir.dstu3.model.ElementDefinition.TypeRefComponent
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement,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 Summary
Fields Modifier and Type Field Description protected List<Enumeration<ElementDefinition.AggregationMode>>aggregationIf 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.protected UriTypecodeURL of Data type or Resource that is a(or the) type used for this element.protected UriTypeprofileIdentifies a profile structure or implementation Guide that SHALL hold for the datatype this element refers to.protected UriTypetargetProfileIdentifies a profile structure or implementation Guide that SHALL hold for the target of the reference this element refers to.protected Enumeration<ElementDefinition.ReferenceVersionRules>versioningWhether this reference needs to be version specific or version independent, or whether either can be used.
-
Constructor Summary
Constructors Constructor Description TypeRefComponent()ConstructorTypeRefComponent(UriType code)Constructor
-
Method Summary
-
Methods inherited from class org.hl7.fhir.dstu3.model.Element
addExtension, addExtension, addExtension, copyValues, getExtension, getExtensionByUrl, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, setExtension, setId, setIdBase, setIdElement
-
Methods inherited from class org.hl7.fhir.dstu3.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isMetadataBased, isPrimitive, isResource, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINN
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
code
protected UriType code
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.
-
profile
protected UriType profile
Identifies a profile structure or implementation Guide that SHALL hold for the datatype this element refers to. 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 resource SHALL conform to at least one profile defined in the implementation guide.
-
targetProfile
protected UriType targetProfile
Identifies a profile structure or implementation Guide that SHALL hold for the target of the reference this element refers to. 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 resource SHALL conform to at least one profile defined in the implementation guide.
-
aggregation
protected List<Enumeration<ElementDefinition.AggregationMode>> 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.
-
versioning
protected Enumeration<ElementDefinition.ReferenceVersionRules> versioning
Whether this reference needs to be version specific or version independent, or whether either can be used.
-
-
Constructor Detail
-
TypeRefComponent
public TypeRefComponent()
Constructor
-
TypeRefComponent
public TypeRefComponent(UriType code)
Constructor
-
-
Method Detail
-
getCodeElement
public UriType getCodeElement()
- Returns:
code(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.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value
-
hasCodeElement
public boolean hasCodeElement()
-
hasCode
public boolean hasCode()
-
setCodeElement
public ElementDefinition.TypeRefComponent setCodeElement(UriType value)
- Parameters:
value-code(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.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value
-
getCode
public String getCode()
- Returns:
- 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.
-
setCode
public ElementDefinition.TypeRefComponent setCode(String value)
- Parameters:
value- 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.
-
getProfileElement
public UriType getProfileElement()
- Returns:
profile(Identifies a profile structure or implementation Guide that SHALL hold for the datatype this element refers to. 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 resource SHALL conform to at least one profile defined in the implementation guide.). This is the underlying object with id, value and extensions. The accessor "getProfile" gives direct access to the value
-
hasProfileElement
public boolean hasProfileElement()
-
hasProfile
public boolean hasProfile()
-
setProfileElement
public ElementDefinition.TypeRefComponent setProfileElement(UriType value)
- Parameters:
value-profile(Identifies a profile structure or implementation Guide that SHALL hold for the datatype this element refers to. 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 resource SHALL conform to at least one profile defined in the implementation guide.). This is the underlying object with id, value and extensions. The accessor "getProfile" gives direct access to the value
-
getProfile
public String getProfile()
- Returns:
- Identifies a profile structure or implementation Guide that SHALL hold for the datatype this element refers to. 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 resource SHALL conform to at least one profile defined in the implementation guide.
-
setProfile
public ElementDefinition.TypeRefComponent setProfile(String value)
- Parameters:
value- Identifies a profile structure or implementation Guide that SHALL hold for the datatype this element refers to. 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 resource SHALL conform to at least one profile defined in the implementation guide.
-
getTargetProfileElement
public UriType getTargetProfileElement()
- Returns:
targetProfile(Identifies a profile structure or implementation Guide that SHALL hold for the target of the reference this element refers to. 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 resource SHALL conform to at least one profile defined in the implementation guide.). This is the underlying object with id, value and extensions. The accessor "getTargetProfile" gives direct access to the value
-
hasTargetProfileElement
public boolean hasTargetProfileElement()
-
hasTargetProfile
public boolean hasTargetProfile()
-
setTargetProfileElement
public ElementDefinition.TypeRefComponent setTargetProfileElement(UriType value)
- Parameters:
value-targetProfile(Identifies a profile structure or implementation Guide that SHALL hold for the target of the reference this element refers to. 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 resource SHALL conform to at least one profile defined in the implementation guide.). This is the underlying object with id, value and extensions. The accessor "getTargetProfile" gives direct access to the value
-
getTargetProfile
public String getTargetProfile()
- Returns:
- Identifies a profile structure or implementation Guide that SHALL hold for the target of the reference this element refers to. 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 resource SHALL conform to at least one profile defined in the implementation guide.
-
setTargetProfile
public ElementDefinition.TypeRefComponent setTargetProfile(String value)
- Parameters:
value- Identifies a profile structure or implementation Guide that SHALL hold for the target of the reference this element refers to. 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 resource SHALL conform to at least one profile defined in the implementation guide.
-
getAggregation
public List<Enumeration<ElementDefinition.AggregationMode>> getAggregation()
- Returns:
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.)
-
setAggregation
public ElementDefinition.TypeRefComponent setAggregation(List<Enumeration<ElementDefinition.AggregationMode>> theAggregation)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasAggregation
public boolean hasAggregation()
-
addAggregationElement
public Enumeration<ElementDefinition.AggregationMode> addAggregationElement()
- Returns:
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.)
-
addAggregation
public ElementDefinition.TypeRefComponent addAggregation(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.)
-
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.)
-
getVersioningElement
public Enumeration<ElementDefinition.ReferenceVersionRules> getVersioningElement()
- Returns:
versioning(Whether this reference needs to be version specific or version independent, or whether either can be used.). This is the underlying object with id, value and extensions. The accessor "getVersioning" gives direct access to the value
-
hasVersioningElement
public boolean hasVersioningElement()
-
hasVersioning
public boolean hasVersioning()
-
setVersioningElement
public ElementDefinition.TypeRefComponent setVersioningElement(Enumeration<ElementDefinition.ReferenceVersionRules> value)
- Parameters:
value-versioning(Whether this reference needs to be version specific or version independent, or whether either can be used.). This is the underlying object with id, value and extensions. The accessor "getVersioning" gives direct access to the value
-
getVersioning
public ElementDefinition.ReferenceVersionRules getVersioning()
- Returns:
- Whether this reference needs to be version specific or version independent, or whether either can be used.
-
setVersioning
public ElementDefinition.TypeRefComponent setVersioning(ElementDefinition.ReferenceVersionRules value)
- Parameters:
value- Whether this reference needs to be version specific or version independent, or whether either can be used.
-
listChildren
protected void listChildren(List<Property> children)
- Overrides:
listChildrenin classElement
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getNamedPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
makePropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getTypesForPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
copy
public ElementDefinition.TypeRefComponent copy()
-
equalsDeep
public boolean equalsDeep(Base other_)
- Overrides:
equalsDeepin classElement
-
equalsShallow
public boolean equalsShallow(Base other_)
- Overrides:
equalsShallowin classElement
-
isEmpty
public boolean isEmpty()
-
hasTarget
public boolean hasTarget()
-
-