public abstract class Element extends Base implements org.hl7.fhir.instance.model.api.IBaseHasExtensions, org.hl7.fhir.instance.model.api.IBaseElement
| 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 StringType |
id
Unique id for the element within a resource (for internal references).
|
| Constructor and Description |
|---|
Element()
Constructor
|
castToAddress, 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, waitprotected StringType id
protected List<Extension> extension
public Element()
public StringType getIdElement()
id (Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.). 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(StringType value)
value - id (Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.). This is the underlying object with id, value and extensions. The accessor "getId" gives direct access to the valuepublic String getId()
getId in interface org.hl7.fhir.instance.model.api.IBaseElementpublic Element setId(String value)
setId in interface org.hl7.fhir.instance.model.api.IBaseElementvalue - Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.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. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.)public Element setExtension(List<Extension> theExtension)
this for easy method chainingpublic boolean hasExtension()
hasExtension in interface org.hl7.fhir.instance.model.api.IBaseHasExtensionspublic Extension addExtension()
addExtension in interface org.hl7.fhir.instance.model.api.IBaseHasExtensionspublic Element addExtension(Extension t)
public Extension getExtensionFirstRep()
extension, creating it if it does not already existpublic 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> children)
listChildren in class Basepublic Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
getNamedProperty in class Baseorg.hl7.fhir.exceptions.FHIRExceptionpublic Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
getProperty in class Baseorg.hl7.fhir.exceptions.FHIRExceptionpublic Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
setProperty in class Baseorg.hl7.fhir.exceptions.FHIRExceptionpublic Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
setProperty in class Baseorg.hl7.fhir.exceptions.FHIRExceptionpublic Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
makeProperty in class Baseorg.hl7.fhir.exceptions.FHIRExceptionpublic String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
getTypesForProperty 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 Basepublic boolean isEmpty()
public void addExtension(String url, Type value)
public Extension getExtensionByUrl(String theUrl)
public void removeExtension(String theUrl)
public boolean isDisallowExtensions()
public Element setDisallowExtensions(boolean disallowExtensions)
public Element noExtensions()
Copyright © 2014–2021 Health Level 7. All rights reserved.