public class ResourceReferenceDt extends BaseResourceReferenceDt implements ICompositeDatatype
Definition: A reference from one resource to another
Requirements:
| Constructor and Description |
|---|
ResourceReferenceDt()
Constructor
|
ResourceReferenceDt(IdDt theResourceId)
Constructor which accepts a reference directly (this can be an ID, a partial/relative URL or a complete/absolute
URL)
|
ResourceReferenceDt(IIdType theResourceId)
Constructor which accepts a reference directly (this can be an ID, a partial/relative URL or a complete/absolute
URL)
|
ResourceReferenceDt(IResource theResource)
Constructor which creates a resource reference containing the actual resource in question.
|
ResourceReferenceDt(String theId)
Constructor which accepts a reference directly (this can be an ID, a partial/relative URL or a complete/absolute
URL)
|
| Modifier and Type | Method and Description |
|---|---|
<T extends IElement> |
getAllPopulatedChildElementsOfType(Class<T> theType) |
StringDt |
getDisplay()
Gets the value(s) for display (Text alternative for the resource).
|
StringDt |
getDisplayElement() |
IdDt |
getReference()
Gets the value(s) for reference (Relative, internal or absolute URL reference).
|
IdDt |
getReferenceElement() |
boolean |
isEmpty() |
ResourceReferenceDt |
setDisplay(String theString)
Sets the value for display (Text alternative for the resource)
|
ResourceReferenceDt |
setDisplay(StringDt theValue)
Sets the value(s) for display (Text alternative for the resource)
|
ResourceReferenceDt |
setReference(IdDt theValue)
Sets the value(s) for reference (Relative, internal or absolute URL reference)
|
ResourceReferenceDt |
setReference(String theId)
Sets the value for reference (Relative, internal or absolute URL reference)
|
getResource, isBaseEmpty, loadResource, setReference, setResource, toStringgetElementSpecificId, getId, setElementSpecificId, setId, setIdaddUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensionspublic ResourceReferenceDt()
public ResourceReferenceDt(IResource theResource)
When using this in a server: Generally if this is serialized, it will be serialized as a contained resource, so this should not be used if the intent is not to actually supply the referenced resource. This is not a hard-and-fast rule however, as the server can be configured to not serialized this resource, or to load an ID and contain even if this constructor is not used.
theResource - The resource instancepublic ResourceReferenceDt(String theId)
theId - The reference itselfpublic ResourceReferenceDt(IdDt theResourceId)
theResourceId - The reference itselfpublic ResourceReferenceDt(IIdType theResourceId)
theResourceId - The reference itselfpublic <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
getAllPopulatedChildElementsOfType in interface ICompositeElementpublic IdDt getReference()
null.
Definition: A reference to a location at which the other resource is found. The reference may a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources
getReference in class BaseResourceReferenceDtpublic IdDt getReferenceElement()
getReferenceElement in interface IBaseReferencepublic ResourceReferenceDt setReference(IdDt theValue)
Definition: A reference to a location at which the other resource is found. The reference may a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources
setReference in class BaseResourceReferenceDtpublic ResourceReferenceDt setReference(String theId)
Definition: A reference to a location at which the other resource is found. The reference may a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources
setReference in interface IBaseReferencepublic StringDt getDisplay()
null.
Definition: Plain text narrative that identifies the resource in addition to the resource reference
public ResourceReferenceDt setDisplay(StringDt theValue)
Definition: Plain text narrative that identifies the resource in addition to the resource reference
public ResourceReferenceDt setDisplay(String theString)
Definition: Plain text narrative that identifies the resource in addition to the resource reference
setDisplay in interface IBaseReferencepublic StringDt getDisplayElement()
getDisplayElement in interface IBaseReferencegetDisplayElement in class BaseResourceReferenceDtCopyright © 2014–2016 University Health Network. All rights reserved.