Package org.hl7.fhir.r4.model
Class Resource
- java.lang.Object
-
- org.hl7.fhir.r4.model.Base
-
- org.hl7.fhir.r4.model.BaseResource
-
- org.hl7.fhir.r4.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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected IdTypeidThe logical id of the resource, as used in the URL for the resource.protected UriTypeimplicitRulesA reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.protected CodeTypelanguageThe base language in which the resource is written.protected MetametaThe metadata about the resource.
-
Constructor Summary
Constructors Constructor Description Resource()Constructor
-
Method Summary
-
Methods inherited from class org.hl7.fhir.r4.model.BaseResource
getStructureFhirVersionEnum, isResource, setId
-
Methods inherited from class org.hl7.fhir.r4.model.Base
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, 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
-
-
-
-
Field Detail
-
id
protected IdType id
The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
-
meta
protected Meta 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
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. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.
-
-
Constructor Detail
-
Resource
public Resource()
Constructor
-
-
Method Detail
-
getIdElement
public IdType 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
public boolean hasIdElement()
-
hasId
public boolean hasId()
-
setIdElement
public Resource setIdElement(IdType value)
- 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
public String 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
public Resource setId(String value)
- 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
public Meta 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
public boolean hasMeta()
-
setMeta
public Resource setMeta(Meta value)
- 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
public UriType 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
public boolean hasImplicitRulesElement()
-
hasImplicitRules
public boolean hasImplicitRules()
-
setImplicitRulesElement
public Resource setImplicitRulesElement(UriType value)
- 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
public String 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
public Resource setImplicitRules(String value)
- 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
public CodeType 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
public boolean hasLanguageElement()
-
hasLanguage
public boolean hasLanguage()
-
setLanguageElement
public Resource setLanguageElement(CodeType value)
- 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
public String getLanguage()
- Returns:
- The base language in which the resource is written.
-
setLanguage
public Resource setLanguage(String value)
- Parameters:
value- The base language in which the resource is written.
-
listChildren
protected void listChildren(List<Property> children)
- Specified by:
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
public Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classBase- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
- 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
-
copyValues
public void copyValues(Resource dst)
-
equalsDeep
public boolean equalsDeep(Base other_)
- Overrides:
equalsDeepin classBase
-
equalsShallow
public boolean equalsShallow(Base other_)
- Overrides:
equalsShallowin classBase
-
isEmpty
public boolean isEmpty()
-
getResourceType
public abstract ResourceType getResourceType()
-
getLanguage
public String getLanguage(String defValue)
-
-