Package org.hl7.fhir.r5.model
Class Extension
java.lang.Object
org.hl7.fhir.r5.model.Base
org.hl7.fhir.r5.model.Element
org.hl7.fhir.r5.model.DataType
org.hl7.fhir.r5.model.BaseExtension
org.hl7.fhir.r5.model.Extension
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement
,Serializable
,org.hl7.fhir.instance.model.api.IBase
,org.hl7.fhir.instance.model.api.IBaseDatatype
,org.hl7.fhir.instance.model.api.IBaseElement
,org.hl7.fhir.instance.model.api.IBaseExtension<Extension,
,DataType> org.hl7.fhir.instance.model.api.IBaseHasExtensions
,org.hl7.fhir.instance.model.api.ICompositeType
public class Extension
extends BaseExtension
implements org.hl7.fhir.instance.model.api.IBaseExtension<Extension,DataType>, org.hl7.fhir.instance.model.api.IBaseHasExtensions
Extension Type: Optional Extension Element - found in all resources.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.hl7.fhir.r5.model.Base
Base.ProfileSource, Base.ValidationInfo, Base.ValidationMode, Base.ValidationReason
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
void
copyValues
(Extension dst) boolean
equalsDeep
(Base other_) boolean
equalsShallow
(Base other_) fhirType()
getNamedProperty
(int _hash, String _name, boolean _checkValid) Base[]
getProperty
(int hash, String name, boolean checkValid) String[]
getTypesForProperty
(int hash, String name) getUrl()
getValue()
boolean
hasUrl()
boolean
boolean
hasValue()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isEmpty()
protected void
listChildren
(List<Property> children) makeProperty
(int hash, String name) void
removeChild
(String name, Base value) setProperty
(int hash, String name, Base value) setProperty
(String name, Base value) setUrlElement
(UriType value) toString()
protected Extension
Methods inherited from class org.hl7.fhir.r5.model.BaseExtension
getValueAsPrimitive, setValue
Methods inherited from class org.hl7.fhir.r5.model.DataType
copyValues, getTranslation, isTranslatable
Methods inherited from class org.hl7.fhir.r5.model.Element
addExtension, addExtension, addExtension, copyExtensions, copyNewExtensions, copyValues, getExtension, getExtensionByUrl, getExtensionFirstRep, getExtensionsByUrl, getExtensionsByUrl, getExtensionString, getExtensionString, getFHIRPublicationVersion, getId, getIdBase, getIdElement, getStandardsStatus, hasExtension, hasExtension, hasExtension, hasExtension, hasId, hasIdElement, isDisallowExtensions, noExtensions, removeExtension, setDisallowExtensions, setExtension, setId, setIdBase, setIdElement, setStandardsStatus
Methods inherited from class org.hl7.fhir.r5.model.Base
addDefinition, addFormatCommentsPost, addFormatCommentsPre, addValidationMessage, canHavePrimitiveValue, children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, copyFormatComments, copyUserData, copyValues, dateTimeValue, equals, getChildByName, getChildValueByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, getValidationInfo, getValidationMessages, getXhtml, hasFormatComment, hasFormatCommentPost, hasFormatCommentPre, hasPrimitiveValue, hasType, hasUserData, hasValidated, hasValidationInfo, hasValidationMessages, isBooleanPrimitive, isCopyUserData, isDateTime, isMetadataBased, isPrimitive, isResource, listChildrenByName, listChildrenByName, primitiveValue, setCopyUserData, setUserData, setUserDataINN
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
Methods inherited from interface org.hl7.fhir.instance.model.api.IBaseElement
getUserData, setUserData
Methods inherited from interface org.hl7.fhir.instance.model.api.IBaseExtension
getExtension, setValue
Methods inherited from interface org.hl7.fhir.instance.model.api.IBaseHasExtensions
addExtension, getExtension, hasExtension
-
Field Details
-
url
Source of the definition for the extension code - a logical name or a URL. -
value
Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).
-
-
Constructor Details
-
Extension
public Extension()Constructor -
Extension
Constructor -
Extension
Constructor
-
-
Method Details
-
toString
-
getUrlElement
- Returns:
url
(Source of the definition for the extension code - a logical name or a URL.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
-
hasUrlElement
-
hasUrl
-
setUrlElement
- Parameters:
value
-url
(Source of the definition for the extension code - a logical name or a URL.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
-
getUrl
-
setUrl
-
getValue
-
getValueBase64BinaryType
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueBase64BinaryType
-
getValueBooleanType
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueBooleanType
-
getValueCanonicalType
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueCanonicalType
-
getValueCodeType
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueCodeType
-
getValueDateType
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueDateType
-
getValueDateTimeType
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueDateTimeType
-
getValueDecimalType
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueDecimalType
-
getValueIdType
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueIdType
-
getValueInstantType
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueInstantType
-
getValueIntegerType
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueIntegerType
-
getValueInteger64Type
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueInteger64Type
-
getValueMarkdownType
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueMarkdownType
-
getValueOidType
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueOidType
-
getValuePositiveIntType
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValuePositiveIntType
-
getValueStringType
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueStringType
-
getValueTimeType
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueTimeType
-
getValueUnsignedIntType
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueUnsignedIntType
-
getValueUriType
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueUriType
-
getValueUrlType
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueUrlType
-
getValueUuidType
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueUuidType
-
getValueAddress
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueAddress
-
getValueAge
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueAge
-
getValueAnnotation
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueAnnotation
-
getValueAttachment
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueAttachment
-
getValueCodeableConcept
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueCodeableConcept
-
getValueCodeableReference
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueCodeableReference
-
getValueCoding
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueCoding
-
getValueContactPoint
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueContactPoint
-
getValueCount
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueCount
-
getValueDistance
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueDistance
-
getValueDuration
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueDuration
-
getValueHumanName
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueHumanName
-
getValueIdentifier
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueIdentifier
-
getValueMoney
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueMoney
-
getValuePeriod
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValuePeriod
-
getValueQuantity
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueQuantity
-
getValueRange
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueRange
-
getValueRatio
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueRatio
-
getValueRatioRange
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueRatioRange
-
getValueReference
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueReference
-
getValueSampledData
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueSampledData
-
getValueSignature
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueSignature
-
getValueTiming
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueTiming
-
getValueContactDetail
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueContactDetail
-
getValueDataRequirement
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueDataRequirement
-
getValueExpression
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueExpression
-
getValueParameterDefinition
public ParameterDefinition getValueParameterDefinition() throws org.hl7.fhir.exceptions.FHIRException- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueParameterDefinition
-
getValueRelatedArtifact
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueRelatedArtifact
-
getValueTriggerDefinition
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueTriggerDefinition
-
getValueUsageContext
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueUsageContext
-
getValueAvailability
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueAvailability
-
getValueExtendedContactDetail
public ExtendedContactDetail getValueExtendedContactDetail() throws org.hl7.fhir.exceptions.FHIRException- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueExtendedContactDetail
-
getValueDosage
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueDosage
-
getValueMeta
- Returns:
value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasValueMeta
-
hasValue
-
setValue
- Specified by:
setValue
in classBaseExtension
- Parameters:
value
-value
(Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)
-
listChildren
- Overrides:
listChildren
in classElement
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getNamedProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
setProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
- Overrides:
setProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
removeChild
- Overrides:
removeChild
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
- Overrides:
makeProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getTypesForProperty
in classElement
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
-
fhirType
-
copy
-
copyValues
-
typedCopy
-
equalsDeep
- Overrides:
equalsDeep
in classElement
-
equalsShallow
- Overrides:
equalsShallow
in classElement
-
isEmpty
-