public abstract class BaseResource extends BaseElement implements IResource
| Modifier and Type | Field and Description |
|---|---|
static StringClientParam |
RES_ID
Fluent Client search parameter constant for _id
|
static String |
SP_RES_ID
Search parameter constant for _id
|
static String |
SP_RES_LANGUAGE
Search parameter constant for _language
|
| Constructor and Description |
|---|
BaseResource() |
| Modifier and Type | Method and Description |
|---|---|
ContainedDt |
getContained()
Returns the contained resource list for this resource.
|
IdDt |
getId()
Returns the ID of this resource.
|
CodeDt |
getLanguage()
Gets the language of the resource itself - NOTE that this language attribute
applies to the resource itself, it is not (for example) the language spoken by
a practitioner or patient
|
Map<ResourceMetadataKeyEnum<?>,Object> |
getResourceMetadata()
Returns the metadata map for this object, creating it if neccesary.
|
NarrativeDt |
getText()
Returns the narrative block for this resource
|
protected boolean |
isBaseEmpty()
Intended to be called by extending classes
IElement.isEmpty() implementations, returns true if all
content in this superclass instance is empty per the semantics of IElement.isEmpty(). |
void |
setContained(ContainedDt theContained) |
void |
setId(IdDt theId)
Sets the ID of this resource.
|
void |
setId(String theId) |
void |
setLanguage(CodeDt theLanguage)
Sets the language of the resource itself - NOTE that this language attribute
applies to the resource itself, it is not (for example) the language spoken by
a practitioner or patient
|
void |
setResourceMetadata(Map<ResourceMetadataKeyEnum<?>,Object> theMap)
Sets the metadata map for this object.
|
void |
setText(NarrativeDt theText) |
String |
toString() |
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetResourceNamegetAllPopulatedChildElementsOfTypepublic static final String SP_RES_LANGUAGE
public static final String SP_RES_ID
public static final StringClientParam RES_ID
Description: the _id of a resource
Type: string
Path: Resource._id
public ContainedDt getContained()
IResource
Usage note: HAPI will generally populate and use the resources from this
list automatically (placing inline resources in the contained list when
encoding, and copying contained resources from this list to their
appropriate references when parsing) so it is generally not neccesary to
interact with this list directly. Instead, in a server you can place
resource instances in reference fields (such as Patient)
and the resource will be automatically contained. In a client, contained resources will
be automatically populated into their appropriate fields by the HAPI parser.
getContained in interface IResourcepublic IdDt getId()
IResourceThis ID is specified as the "Logical ID" and "Version ID" in the FHIR specification, see here
public CodeDt getLanguage()
IResourcegetLanguage in interface IResourcepublic Map<ResourceMetadataKeyEnum<?>,Object> getResourceMetadata()
IResource
Keys in this map are enumerated in the ResourceMetadataKeyEnum,
and each key has a specific value type that it must use.
getResourceMetadata in interface IResourcefor a list of allowable keys and the object
types that values of a given key must use.public NarrativeDt getText()
IResourcepublic void setContained(ContainedDt theContained)
public void setId(IdDt theId)
IResourceThis ID is specified as the "Logical ID" and "Version ID" in the FHIR specification, see here
public void setId(String theId)
public void setLanguage(CodeDt theLanguage)
IResourcesetLanguage in interface IResourcepublic void setResourceMetadata(Map<ResourceMetadataKeyEnum<?>,Object> theMap)
IResourcesetResourceMetadata in interface IResourcepublic void setText(NarrativeDt theText)
protected boolean isBaseEmpty()
IElement.isEmpty() implementations, returns true if all
content in this superclass instance is empty per the semantics of IElement.isEmpty().isBaseEmpty in class BaseElementCopyright © 2014 University Health Network. All rights reserved.