public abstract class Resource extends BaseResource implements IAnyResource
| Modifier and Type | Field and Description |
|---|---|
protected IdType |
id
The logical id of the resource, as used in the URL for the resource.
|
protected UriType |
implicitRules
A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.
|
protected CodeType |
language
The base language in which the resource is written.
|
protected Meta |
meta
The metadata about the resource.
|
RES_ID, SP_RES_ID, SP_RES_LANGUAGEINCLUDE_ALL, WILDCARD_ALL_SET| Constructor and Description |
|---|
Resource()
Constructor
|
getStructureFhirVersionEnum, isResource, setIdcastToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINNclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetUserData, setUserDatagetStructureFhirVersionEnum, setIdgetFormatCommentsPost, getFormatCommentsPre, hasFormatCommentprotected IdType id
protected Meta meta
protected UriType implicitRules
public Resource()
public IdType getIdElement()
getIdElement in interface IAnyResourcegetIdElement in interface IBaseResourceid (The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.). 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 Resource setIdElement(IdType value)
setIdElement in class BaseResourcevalue - id (The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.). This is the underlying object with id, value and extensions. The accessor "getId" gives direct access to the valuepublic String getId()
getId in interface IAnyResourcepublic Resource setId(String value)
setId in interface IAnyResourcesetId in interface IBaseResourcevalue - The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.public Meta getMeta()
getMeta in interface IBaseResourcemeta (The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource.)public boolean hasMeta()
public Resource setMeta(Meta value)
value - meta (The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource.)public UriType getImplicitRulesElement()
implicitRules (A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.). This is the underlying object with id, value and extensions. The accessor "getImplicitRules" gives direct access to the valuepublic boolean hasImplicitRulesElement()
public boolean hasImplicitRules()
public Resource setImplicitRulesElement(UriType value)
value - implicitRules (A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.). This is the underlying object with id, value and extensions. The accessor "getImplicitRules" gives direct access to the valuepublic String getImplicitRules()
public Resource setImplicitRules(String value)
value - A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.public CodeType getLanguageElement()
getLanguageElement in interface IAnyResourcelanguage (The base language in which the resource is written.). This is the underlying object with id, value and extensions. The accessor "getLanguage" gives direct access to the valuepublic boolean hasLanguageElement()
public boolean hasLanguage()
public Resource setLanguageElement(CodeType value)
value - language (The base language in which the resource is written.). This is the underlying object with id, value and extensions. The accessor "getLanguage" gives direct access to the valuepublic String getLanguage()
public Resource setLanguage(String value)
value - The base language in which the resource is written.protected void listChildren(List<Property> childrenList)
listChildren in class Basepublic Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException
getProperty in class BaseFHIRExceptionpublic Base setProperty(int hash, String name, Base value) throws FHIRException
setProperty in class BaseFHIRExceptionpublic Base setProperty(String name, Base value) throws FHIRException
setProperty in class BaseFHIRExceptionpublic Base makeProperty(int hash, String name) throws FHIRException
makeProperty in class BaseFHIRExceptionpublic String[] getTypesForProperty(int hash, String name) throws FHIRException
getTypesForProperty in class BaseFHIRExceptionpublic Base addChild(String name) throws FHIRException
addChild in class BaseFHIRExceptionpublic void copyValues(Resource dst)
public boolean equalsDeep(Base other)
equalsDeep in class Basepublic boolean equalsShallow(Base other)
equalsShallow in class Basepublic boolean isEmpty()
public abstract ResourceType getResourceType()
Copyright © 2014–2017 University Health Network. All rights reserved.