public class Extension extends BaseExtension implements org.hl7.fhir.instance.model.api.IBaseExtension<Extension,Type>, org.hl7.fhir.instance.model.api.IBaseHasExtensions
| Modifier and Type | Field and Description |
|---|---|
protected UriType |
url
Source of the definition for the extension code - a logical name or a URL.
|
protected Type |
value
Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).
|
| Constructor and Description |
|---|
Extension()
Constructor
|
Extension(String theUrl)
Constructor
|
Extension(String theUrl,
org.hl7.fhir.instance.model.api.IBaseDatatype theValue)
Constructor
|
Extension(UriType url)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Base |
addChild(String name) |
Extension |
copy() |
void |
copyValues(Extension dst) |
boolean |
equalsDeep(Base other_) |
boolean |
equalsShallow(Base other_) |
String |
fhirType() |
Property |
getNamedProperty(int _hash,
String _name,
boolean _checkValid) |
Base[] |
getProperty(int hash,
String name,
boolean checkValid) |
String[] |
getTypesForProperty(int hash,
String name) |
String |
getUrl() |
UriType |
getUrlElement() |
Type |
getValue() |
boolean |
hasUrl() |
boolean |
hasUrlElement() |
boolean |
hasValue() |
boolean |
isEmpty() |
protected void |
listChildren(List<Property> children) |
Base |
makeProperty(int hash,
String name) |
Base |
setProperty(int hash,
String name,
Base value) |
Base |
setProperty(String name,
Base value) |
Extension |
setUrl(String value) |
Extension |
setUrlElement(UriType value) |
Extension |
setValue(Type value) |
protected Extension |
typedCopy() |
getValueAsPrimitive, setValueaddExtension, addExtension, addExtension, copyValues, getExtension, getExtensionByUrl, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, isDisallowExtensions, noExtensions, removeExtension, setDisallowExtensions, setExtension, setId, setIdBase, setIdElementcastToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCanonical, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExpression, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMarketingStatus, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPopulation, castToPositiveInt, castToProdCharacteristic, castToProductShelfLife, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToSubstanceAmount, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUrl, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, dateTimeValue, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isDateTime, isMetadataBased, isPrimitive, isResource, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINNclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetExtension, setValuegetFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserDataprotected UriType url
public Extension()
public UriType getUrlElement()
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 valuepublic boolean hasUrlElement()
public boolean hasUrl()
public Extension setUrlElement(UriType value)
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 valuepublic boolean hasValue()
public Extension setValue(Type value)
setValue in class BaseExtensionvalue - value (Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).)protected void listChildren(List<Property> children)
listChildren in class Elementpublic Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
getNamedProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
getProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
setProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
setProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
makeProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
getTypesForProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic void copyValues(Extension dst)
public boolean equalsDeep(Base other_)
equalsDeep in class Elementpublic boolean equalsShallow(Base other_)
equalsShallow in class ElementCopyright © 2014–2021 Health Level 7. All rights reserved.