public abstract class Element extends Base implements org.hl7.fhir.instance.model.api.IBaseHasExtensions
| Modifier and Type | Field and Description |
|---|---|
protected List<Extension> |
extension
May be used to represent additional information that is not part of the basic definition of the element.
|
protected IdType |
id
unique id for the element within a resource (for internal references).
|
| Constructor and Description |
|---|
Element() |
| Modifier and Type | Method and Description |
|---|---|
Base |
addChild(String name) |
Extension |
addExtension() |
Element |
addExtension(Extension t) |
abstract Element |
copy() |
void |
copyValues(Element dst) |
boolean |
equalsDeep(Base other) |
boolean |
equalsShallow(Base other) |
String |
fhirType() |
List<Extension> |
getExtension() |
List<Extension> |
getExtensionsByUrl(String theUrl)
Returns an unmodifiable list containing all extensions on this element which
match the given URL.
|
String |
getExtensionString(String theUrl) |
String |
getId() |
IdType |
getIdElement() |
boolean |
hasExtension() |
boolean |
hasExtension(String theUrl) |
boolean |
hasId() |
boolean |
hasIdElement() |
boolean |
isEmpty() |
protected void |
listChildren(List<Property> childrenList) |
Element |
setId(String value) |
Element |
setIdElement(IdType value) |
void |
setProperty(String name,
Base value) |
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, primitiveValue, setUserData, setUserDataINNprotected List<Extension> extension
public Element()
public IdType getIdElement()
id (unique id for the element within a resource (for internal references).). This is the underlying object with id, value and extensions. The accessor "getId" gives direct access to the valuepublic boolean hasIdElement()
public boolean hasId()
public Element setIdElement(IdType value)
value - id (unique id for the element within a resource (for internal references).). This is the underlying object with id, value and extensions. The accessor "getId" gives direct access to the valuepublic String getId()
public Element setId(String value)
value - unique id for the element within a resource (for internal references).public List<Extension> getExtension()
getExtension in interface org.hl7.fhir.instance.model.api.IBaseHasExtensionsextension (May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.)public boolean hasExtension()
hasExtension in interface org.hl7.fhir.instance.model.api.IBaseHasExtensionspublic Extension addExtension()
addExtension in interface org.hl7.fhir.instance.model.api.IBaseHasExtensionsextension (May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.)public Element addExtension(Extension t)
public List<Extension> getExtensionsByUrl(String theUrl)
theUrl - The URL. Must not be blank or null.public boolean hasExtension(String theUrl)
public String getExtensionString(String theUrl) throws org.hl7.fhir.exceptions.FHIRException
org.hl7.fhir.exceptions.FHIRExceptionprotected void listChildren(List<Property> childrenList)
listChildren in class Basepublic void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
setProperty in class Baseorg.hl7.fhir.exceptions.FHIRExceptionpublic void copyValues(Element dst)
public boolean equalsDeep(Base other)
equalsDeep in class Basepublic boolean equalsShallow(Base other)
equalsShallow in class BaseCopyright © 2014–2018 University Health Network. All rights reserved.