
Package org.hl7.fhir.r5.model
Class Resource
java.lang.Object
org.hl7.fhir.r5.model.Base
org.hl7.fhir.r5.model.BaseResource
org.hl7.fhir.r5.model.Resource
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement,Serializable,org.hl7.fhir.instance.model.api.IAnyResource,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseResource
- Direct Known Subclasses:
BaseBinary,Bundle,DomainResource,Parameters,TestCases
public abstract class Resource
extends BaseResource
implements org.hl7.fhir.instance.model.api.IAnyResource
This is the base resource type for everything.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.hl7.fhir.r5.model.Base
Base.ProfileSource, Base.ValidationInfo, Base.ValidationMode, Base.ValidationReason -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IdTypeThe logical id of the resource, as used in the URL for the resource.protected UriTypeA reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.protected CodeTypeThe base language in which the resource is written.protected MetaThe metadata about the resource.Fields inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
RES_ID, RES_LAST_UPDATED, RES_PROFILE, RES_SECURITY, RES_TAG, SP_RES_ID, SP_RES_LAST_UPDATED, SP_RES_PROFILE, SP_RES_SECURITY, SP_RES_TAGFields inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
INCLUDE_ALL, WILDCARD_ALL_SET -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Resourcecopy()voidcopyValues(Resource dst) booleanequalsDeep(Base other_) booleanequalsShallow(Base other_) fhirType()org.hl7.fhir.utilities.FhirPublicationgetId()getLanguage(String defValue) getMeta()getNamedProperty(int _hash, String _name, boolean _checkValid) Base[]getProperty(int hash, String name, boolean checkValid) abstract ResourceTypeString[]getTypesForProperty(int hash, String name) booleanhasId()booleanbooleanbooleanbooleanbooleanbooleanhasMeta()booleanbooleanbooleanisEmpty()protected voidlistChildren(List<Property> children) makeProperty(int hash, String name) voidremoveChild(String name, Base value) voidsetIdElement(IdType value) setImplicitRules(String value) setImplicitRulesElement(UriType value) setLanguage(String value) setLanguageElement(CodeType value) setProperty(int hash, String name, Base value) setProperty(String name, Base value) voidsetSourcePackage(PackageInformation sourcePackage) voidsetWebPath(String webPath) Methods inherited from class org.hl7.fhir.r5.model.BaseResource
getStructureFhirVersionEnum, isResource, setIdMethods inherited from class org.hl7.fhir.r5.model.Base
addDefinition, addFormatCommentsPost, addFormatCommentsPre, addValidationMessage, canHavePrimitiveValue, children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, copyFormatComments, copyUserData, copyValues, dateTimeValue, equals, executeFunction, getChildByName, getChildValueByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, getValidationInfo, getValidationMessages, getXhtml, hasFormatComment, hasFormatCommentPost, hasFormatCommentPre, hasPrimitiveValue, hasType, hasUserData, hasValidated, hasValidationInfo, hasValidationMessages, isBooleanPrimitive, isCopyUserData, isDateTime, isMetadataBased, isPrimitive, listChildrenByName, listChildrenByName, primitiveValue, setCopyUserData, setUserData, setUserDataINN, setXhtmlMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
getUserData, setUserDataMethods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, hasFormatCommentMethods inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
getStructureFhirVersionEnum, isDeleted, setId
-
Field Details
-
id
The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes. -
meta
The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource. -
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. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc. -
language
The base language in which the resource is written.
-
-
Constructor Details
-
Resource
public Resource()Constructor
-
-
Method Details
-
getIdElement
- Specified by:
getIdElementin interfaceorg.hl7.fhir.instance.model.api.IAnyResource- Specified by:
getIdElementin interfaceorg.hl7.fhir.instance.model.api.IBaseResource- Returns:
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 value
-
hasIdElement
-
hasId
-
setIdElement
- Specified by:
setIdElementin classBaseResource- Parameters:
value-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 value
-
getId
- Specified by:
getIdin interfaceorg.hl7.fhir.instance.model.api.IAnyResource- Returns:
- The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
-
setId
- Specified by:
setIdin interfaceorg.hl7.fhir.instance.model.api.IAnyResource- Specified by:
setIdin interfaceorg.hl7.fhir.instance.model.api.IBaseResource- Parameters:
value- The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
-
getMeta
- Specified by:
getMetain interfaceorg.hl7.fhir.instance.model.api.IBaseResource- Returns:
meta(The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.)
-
hasMeta
-
setMeta
- Parameters:
value-meta(The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.)
-
getImplicitRulesElement
- Returns:
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. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.). This is the underlying object with id, value and extensions. The accessor "getImplicitRules" gives direct access to the value
-
hasImplicitRulesElement
-
hasImplicitRules
-
setImplicitRulesElement
- Parameters:
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. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.). This is the underlying object with id, value and extensions. The accessor "getImplicitRules" gives direct access to the value
-
getImplicitRules
- Returns:
- A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.
-
setImplicitRules
- Parameters:
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. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.
-
getLanguageElement
- Specified by:
getLanguageElementin interfaceorg.hl7.fhir.instance.model.api.IAnyResource- Returns:
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 value
-
hasLanguageElement
-
hasLanguage
-
setLanguageElement
- Parameters:
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 value
-
getLanguage
- Returns:
- The base language in which the resource is written.
-
setLanguage
- Parameters:
value- The base language in which the resource is written.
-
listChildren
- Overrides:
listChildrenin classBase
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getNamedPropertyin classBase- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getPropertyin classBase- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
setPropertyin classBase- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
- Overrides:
setPropertyin classBase- Throws:
org.hl7.fhir.exceptions.FHIRException
-
removeChild
- Overrides:
removeChildin classBase- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
- Overrides:
makePropertyin classBase- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getTypesForPropertyin classBase- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
-
fhirType
-
copy
-
copyValues
-
equalsDeep
- Overrides:
equalsDeepin classBase
-
equalsShallow
- Overrides:
equalsShallowin classBase
-
isEmpty
-
getIdBase
-
setIdBase
-
getResourceType
-
getLanguage
-
hasWebPath
-
getWebPath
-
setWebPath
-
hasSourcePackage
-
getSourcePackage
-
setSourcePackage
-
getIdPart
- Returns:
- the logical ID part of this resource's id
- See Also:
-
getFHIRPublicationVersion
- Specified by:
getFHIRPublicationVersionin classBase
-