public class ResourceReferenceDt extends ca.uhn.fhir.model.base.composite.BaseResourceReferenceDt implements ca.uhn.fhir.model.api.ICompositeDatatype
Definition: A reference from one resource to another
Requirements:
| Constructor and Description |
|---|
ResourceReferenceDt()
Constructor
|
ResourceReferenceDt(ca.uhn.fhir.model.primitive.IdDt theResourceId)
Constructor which accepts a reference directly (this can be an ID, a partial/relative URL or a complete/absolute
URL)
|
ResourceReferenceDt(org.hl7.fhir.instance.model.api.IIdType theResourceId)
Constructor which accepts a reference directly (this can be an ID, a partial/relative URL or a complete/absolute
URL)
|
ResourceReferenceDt(ca.uhn.fhir.model.api.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 ca.uhn.fhir.model.api.IElement> |
getAllPopulatedChildElementsOfType(Class<T> theType) |
ca.uhn.fhir.model.primitive.StringDt |
getDisplay()
Gets the value(s) for display (Text alternative for the resource).
|
ca.uhn.fhir.model.primitive.StringDt |
getDisplayElement() |
ca.uhn.fhir.model.primitive.IdDt |
getReference()
Gets the value(s) for reference (Relative, internal or absolute URL reference).
|
ca.uhn.fhir.model.primitive.IdDt |
getReferenceElement() |
boolean |
isEmpty() |
ResourceReferenceDt |
setDisplay(String theString)
Sets the value for display (Text alternative for the resource)
|
ResourceReferenceDt |
setDisplay(ca.uhn.fhir.model.primitive.StringDt theValue)
Sets the value(s) for display (Text alternative for the resource)
|
ResourceReferenceDt |
setReference(ca.uhn.fhir.model.primitive.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, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, hasFormatCommentpublic ResourceReferenceDt()
public ResourceReferenceDt(ca.uhn.fhir.model.api.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(ca.uhn.fhir.model.primitive.IdDt theResourceId)
theResourceId - The reference itselfpublic ResourceReferenceDt(org.hl7.fhir.instance.model.api.IIdType theResourceId)
theResourceId - The reference itselfpublic boolean isEmpty()
isEmpty in interface org.hl7.fhir.instance.model.api.IBasepublic <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
getAllPopulatedChildElementsOfType in interface ca.uhn.fhir.model.api.ICompositeElementpublic ca.uhn.fhir.model.primitive.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 ca.uhn.fhir.model.base.composite.BaseResourceReferenceDtpublic ca.uhn.fhir.model.primitive.IdDt getReferenceElement()
getReferenceElement in interface org.hl7.fhir.instance.model.api.IBaseReferencepublic ResourceReferenceDt setReference(ca.uhn.fhir.model.primitive.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 ca.uhn.fhir.model.base.composite.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 org.hl7.fhir.instance.model.api.IBaseReferencepublic ca.uhn.fhir.model.primitive.StringDt getDisplay()
null.
Definition: Plain text narrative that identifies the resource in addition to the resource reference
public ResourceReferenceDt setDisplay(ca.uhn.fhir.model.primitive.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 org.hl7.fhir.instance.model.api.IBaseReferencepublic ca.uhn.fhir.model.primitive.StringDt getDisplayElement()
getDisplayElement in interface org.hl7.fhir.instance.model.api.IBaseReferencegetDisplayElement in class ca.uhn.fhir.model.base.composite.BaseResourceReferenceDtCopyright © 2014–2018 University Health Network. All rights reserved.