public interface IResource extends ICompositeElement, IBaseResource
@ResourceDef annotation.
Note that this class is a part of HAPI's model API, used to define structure classes. Users will often interact with this interface, but should not need to implement it directly.
INCLUDE_ALL, WILDCARD_ALL_SET| Modifier and Type | Method and Description |
|---|---|
BaseContainedDt |
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
|
IBaseMetaType |
getMeta()
Returns a view of the
resource metadata map. |
ResourceMetadataMap |
getResourceMetadata()
Returns the metadata map for this object, creating it if neccesary.
|
String |
getResourceName()
Returns a String representing the name of this Resource.
|
FhirVersionEnum |
getStructureFhirVersionEnum()
Returns the FHIR version represented by this structure
|
BaseNarrativeDt<?> |
getText()
Returns the narrative block for this resource
|
void |
setId(IdDt theId)
Sets the ID of this resource.
|
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(ResourceMetadataMap theMap)
Sets the metadata map for this object.
|
getAllPopulatedChildElementsOfTypegetIdElement, setId, setIdBaseContainedDt getContained()
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#setManagingOrganization(ResourceReferenceDt) ) and the resource will be automatically contained. In a client, contained resources will be automatically
populated into their appropriate fields by the HAPI parser.
IdDt getId()
This ID is specified as the "Logical ID" and "Version ID" in the FHIR specification, see here
CodeDt getLanguage()
IBaseMetaType getMeta()
resource metadata map.
Note that getters from this map return immutable objects, but the addFoo()
and setFoo() methods may be used to modify metadata.getMeta in interface IBaseResourceResourceMetadataMap getResourceMetadata()
Keys in this map are enumerated in the ResourceMetadataKeyEnum, and each key has a specific value type that it must use.
String getResourceName()
FhirVersionEnum getStructureFhirVersionEnum()
getStructureFhirVersionEnum in interface IBaseResourceBaseNarrativeDt<?> getText()
void setId(IdDt theId)
This ID is specified as the "Logical ID" and "Version ID" in the FHIR specification, see here
void setLanguage(CodeDt theLanguage)
void setResourceMetadata(ResourceMetadataMap theMap)
NullPointerException - The map must not be nullCopyright © 2014–2019 University Health Network. All rights reserved.