Package org.hl7.fhir.dstu3.model
Class Resource
java.lang.Object
org.hl7.fhir.dstu3.model.Base
org.hl7.fhir.dstu3.model.BaseResource
org.hl7.fhir.dstu3.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
public abstract class Resource
extends BaseResource
implements org.hl7.fhir.instance.model.api.IAnyResource
This is the base resource type for everything.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected IdType
The logical id of the resource, as used in the URL for the resource.protected UriType
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
The base language in which the resource is written.protected Meta
The 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_TAG
Fields inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
INCLUDE_ALL, WILDCARD_ALL_SET
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Resource
copy()
void
copyValues
(Resource dst) boolean
equalsDeep
(Base other_) boolean
equalsShallow
(Base other_) fhirType()
getId()
getMeta()
getNamedProperty
(int _hash, String _name, boolean _checkValid) Base[]
getProperty
(int hash, String name, boolean checkValid) abstract ResourceType
String[]
getTypesForProperty
(int hash, String name) boolean
hasId()
boolean
boolean
boolean
boolean
boolean
boolean
hasMeta()
boolean
isEmpty()
protected void
listChildren
(List<Property> children) makeProperty
(int hash, String name) void
setIdElement
(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) Methods inherited from class org.hl7.fhir.dstu3.model.BaseResource
getStructureFhirVersionEnum, isResource, setId
Methods inherited from class org.hl7.fhir.dstu3.model.Base
castToAddress, 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, getNamedProperty, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isMetadataBased, isPrimitive, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINN
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
getUserData, setUserData
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, hasFormatComment
Methods 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 may 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. -
language
The base language in which the resource is written.
-
-
Constructor Details
-
Resource
public Resource()Constructor
-
-
Method Details
-
getIdElement
- Specified by:
getIdElement
in interfaceorg.hl7.fhir.instance.model.api.IAnyResource
- Specified by:
getIdElement
in 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:
setIdElement
in 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:
getId
in interfaceorg.hl7.fhir.instance.model.api.IAnyResource
- Returns:
- The id value of the resource. Once assigned, this value never changes.
- See Also:
-
setId
- Specified by:
setId
in interfaceorg.hl7.fhir.instance.model.api.IAnyResource
- Specified by:
setId
in interfaceorg.hl7.fhir.instance.model.api.IBaseResource
- Returns:
- The most complete id value of the resource, containing all available context and history. Once assigned this value never changes. NOTE: this value is NOT limited to just the logical id property of a resource id.
- See Also:
-
getIdPart
- Returns:
- the logical ID part of this resource's id
- See Also:
-
getMeta
- Specified by:
getMeta
in 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 may 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 may 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.). 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.). 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.
-
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.
-
getLanguageElement
- Specified by:
getLanguageElement
in 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
- Specified by:
listChildren
in classBase
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getNamedProperty
in classBase
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getProperty
in classBase
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
setProperty
in classBase
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
- Overrides:
setProperty
in classBase
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
- Overrides:
makeProperty
in classBase
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getTypesForProperty
in classBase
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
-
fhirType
-
copy
-
copyValues
-
equalsDeep
- Overrides:
equalsDeep
in classBase
-
equalsShallow
- Overrides:
equalsShallow
in classBase
-
isEmpty
-
getIdBase
-
setIdBase
-
getResourceType
-