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
Base StructureDefinition for Extension Type: Optional Extension Element - found in all resources.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected UriTypeurlSource of the definition for the extension code - a logical name or a URL.protected DataTypevalueValue of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).
-
Method Summary
-
Methods inherited from class org.hl7.fhir.r5.model.BaseExtension
getValueAsPrimitive, setValue
-
Methods inherited from class org.hl7.fhir.r5.model.DataType
copyValues
-
Methods inherited from class org.hl7.fhir.r5.model.Element
addExtension, addExtension, addExtension, copyValues, getExtension, getExtensionByUrl, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, isDisallowExtensions, noExtensions, removeExtension, setDisallowExtensions, setExtension, setId, setIdBase, setIdElement
-
Methods inherited from class org.hl7.fhir.r5.model.Base
children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, copyUserData, copyValues, dateTimeValue, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, getXhtml, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isDateTime, 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
-
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
-
-
-
-
Method Detail
-
getUrlElement
public UriType 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
public boolean hasUrlElement()
-
hasUrl
public boolean hasUrl()
-
setUrlElement
public Extension setUrlElement(UriType value)
- 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
-
getValueBase64BinaryType
public Base64BinaryType getValueBase64BinaryType() 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
-
hasValueBase64BinaryType
public boolean hasValueBase64BinaryType()
-
getValueBooleanType
public BooleanType getValueBooleanType() 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
-
hasValueBooleanType
public boolean hasValueBooleanType()
-
getValueCanonicalType
public CanonicalType getValueCanonicalType() 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
-
hasValueCanonicalType
public boolean hasValueCanonicalType()
-
getValueCodeType
public CodeType getValueCodeType() 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
-
hasValueCodeType
public boolean hasValueCodeType()
-
getValueDateType
public DateType getValueDateType() 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
-
hasValueDateType
public boolean hasValueDateType()
-
getValueDateTimeType
public DateTimeType getValueDateTimeType() 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
-
hasValueDateTimeType
public boolean hasValueDateTimeType()
-
getValueDecimalType
public DecimalType getValueDecimalType() 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
-
hasValueDecimalType
public boolean hasValueDecimalType()
-
getValueIdType
public IdType getValueIdType() 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
-
hasValueIdType
public boolean hasValueIdType()
-
getValueInstantType
public InstantType getValueInstantType() 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
-
hasValueInstantType
public boolean hasValueInstantType()
-
getValueIntegerType
public IntegerType getValueIntegerType() 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
-
hasValueIntegerType
public boolean hasValueIntegerType()
-
getValueInteger64Type
public Integer64Type getValueInteger64Type() 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
-
hasValueInteger64Type
public boolean hasValueInteger64Type()
-
getValueMarkdownType
public MarkdownType getValueMarkdownType() 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
-
hasValueMarkdownType
public boolean hasValueMarkdownType()
-
getValueOidType
public OidType getValueOidType() 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
-
hasValueOidType
public boolean hasValueOidType()
-
getValuePositiveIntType
public PositiveIntType getValuePositiveIntType() 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
-
hasValuePositiveIntType
public boolean hasValuePositiveIntType()
-
getValueStringType
public StringType getValueStringType() 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
-
hasValueStringType
public boolean hasValueStringType()
-
getValueTimeType
public TimeType getValueTimeType() 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
-
hasValueTimeType
public boolean hasValueTimeType()
-
getValueUnsignedIntType
public UnsignedIntType getValueUnsignedIntType() 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
-
hasValueUnsignedIntType
public boolean hasValueUnsignedIntType()
-
getValueUriType
public UriType getValueUriType() 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
-
hasValueUriType
public boolean hasValueUriType()
-
getValueUrlType
public UrlType getValueUrlType() 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
-
hasValueUrlType
public boolean hasValueUrlType()
-
getValueUuidType
public UuidType getValueUuidType() 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
-
hasValueUuidType
public boolean hasValueUuidType()
-
getValueAddress
public Address getValueAddress() 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
-
hasValueAddress
public boolean hasValueAddress()
-
getValueAge
public Age getValueAge() 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
-
hasValueAge
public boolean hasValueAge()
-
getValueAnnotation
public Annotation getValueAnnotation() 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
-
hasValueAnnotation
public boolean hasValueAnnotation()
-
getValueAttachment
public Attachment getValueAttachment() 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
-
hasValueAttachment
public boolean hasValueAttachment()
-
getValueCodeableConcept
public CodeableConcept getValueCodeableConcept() 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
-
hasValueCodeableConcept
public boolean hasValueCodeableConcept()
-
getValueCodeableReference
public CodeableReference getValueCodeableReference() 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
-
hasValueCodeableReference
public boolean hasValueCodeableReference()
-
getValueCoding
public Coding getValueCoding() 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
-
hasValueCoding
public boolean hasValueCoding()
-
getValueContactPoint
public ContactPoint getValueContactPoint() 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
-
hasValueContactPoint
public boolean hasValueContactPoint()
-
getValueCount
public Count getValueCount() 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
-
hasValueCount
public boolean hasValueCount()
-
getValueDistance
public Distance getValueDistance() 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
-
hasValueDistance
public boolean hasValueDistance()
-
getValueDuration
public Duration getValueDuration() 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
-
hasValueDuration
public boolean hasValueDuration()
-
getValueHumanName
public HumanName getValueHumanName() 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
-
hasValueHumanName
public boolean hasValueHumanName()
-
getValueIdentifier
public Identifier getValueIdentifier() 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
-
hasValueIdentifier
public boolean hasValueIdentifier()
-
getValueMoney
public Money getValueMoney() 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
-
hasValueMoney
public boolean hasValueMoney()
-
getValuePeriod
public Period getValuePeriod() 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
-
hasValuePeriod
public boolean hasValuePeriod()
-
getValueQuantity
public Quantity getValueQuantity() 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
-
hasValueQuantity
public boolean hasValueQuantity()
-
getValueRange
public Range getValueRange() 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
-
hasValueRange
public boolean hasValueRange()
-
getValueRatio
public Ratio getValueRatio() 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
-
hasValueRatio
public boolean hasValueRatio()
-
getValueRatioRange
public RatioRange getValueRatioRange() 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
-
hasValueRatioRange
public boolean hasValueRatioRange()
-
getValueReference
public Reference getValueReference() 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
-
hasValueReference
public boolean hasValueReference()
-
getValueSampledData
public SampledData getValueSampledData() 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
-
hasValueSampledData
public boolean hasValueSampledData()
-
getValueSignature
public Signature getValueSignature() 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
-
hasValueSignature
public boolean hasValueSignature()
-
getValueTiming
public Timing getValueTiming() 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
-
hasValueTiming
public boolean hasValueTiming()
-
getValueContactDetail
public ContactDetail getValueContactDetail() 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
-
hasValueContactDetail
public boolean hasValueContactDetail()
-
getValueContributor
public Contributor getValueContributor() 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
-
hasValueContributor
public boolean hasValueContributor()
-
getValueDataRequirement
public DataRequirement getValueDataRequirement() 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
-
hasValueDataRequirement
public boolean hasValueDataRequirement()
-
getValueExpression
public Expression getValueExpression() 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
-
hasValueExpression
public boolean 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
public boolean hasValueParameterDefinition()
-
getValueRelatedArtifact
public RelatedArtifact getValueRelatedArtifact() 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
-
hasValueRelatedArtifact
public boolean hasValueRelatedArtifact()
-
getValueTriggerDefinition
public TriggerDefinition getValueTriggerDefinition() 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
-
hasValueTriggerDefinition
public boolean hasValueTriggerDefinition()
-
getValueUsageContext
public UsageContext getValueUsageContext() 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
-
hasValueUsageContext
public boolean hasValueUsageContext()
-
getValueDosage
public Dosage getValueDosage() 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
-
hasValueDosage
public boolean hasValueDosage()
-
getValueMeta
public Meta getValueMeta() 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
-
hasValueMeta
public boolean hasValueMeta()
-
hasValue
public boolean hasValue()
-
setValue
public Extension setValue(DataType value)
- Specified by:
setValuein 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
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
-
copyValues
public void copyValues(Extension dst)
-
equalsDeep
public boolean equalsDeep(Base other_)
- Overrides:
equalsDeepin classElement
-
equalsShallow
public boolean equalsShallow(Base other_)
- Overrides:
equalsShallowin classElement
-
-