Class ResourceReferenceDt
- All Implemented Interfaces:
ca.uhn.fhir.model.api.ICompositeDatatype
,ca.uhn.fhir.model.api.ICompositeElement
,ca.uhn.fhir.model.api.IDatatype
,ca.uhn.fhir.model.api.IElement
,ca.uhn.fhir.model.api.IIdentifiableElement
,ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions
,Serializable
,org.hl7.fhir.instance.model.api.IBase
,org.hl7.fhir.instance.model.api.IBaseDatatype
,org.hl7.fhir.instance.model.api.IBaseReference
,org.hl7.fhir.instance.model.api.ICompositeType
Definition: A reference from one resource to another
Requirements:
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructorResourceReferenceDt
(ca.uhn.fhir.model.api.IResource theResource) Constructor which creates a resource reference containing the actual resource in question.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
(String theId) 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) -
Method Summary
Modifier and TypeMethodDescription<T extends ca.uhn.fhir.model.api.IElement>
List<T> getAllPopulatedChildElementsOfType
(Class<T> theType) ca.uhn.fhir.model.primitive.StringDt
Gets the value(s) for display (Text alternative for the resource).ca.uhn.fhir.model.primitive.StringDt
ca.uhn.fhir.model.primitive.IdDt
Gets the value(s) for reference (Relative, internal or absolute URL reference).ca.uhn.fhir.model.primitive.IdDt
boolean
isEmpty()
setDisplay
(ca.uhn.fhir.model.primitive.StringDt theValue) Sets the value(s) for display (Text alternative for the resource)setDisplay
(String theString) Sets the value for display (Text alternative for the resource)setReference
(ca.uhn.fhir.model.primitive.IdDt theValue) Sets the value(s) for reference (Relative, internal or absolute URL reference)setReference
(String theId) Sets the value for reference (Relative, internal or absolute URL reference)Methods inherited from class ca.uhn.fhir.model.base.composite.BaseResourceReferenceDt
getResource, isBaseEmpty, loadResource, setReference, setResource, toString
Methods inherited from class ca.uhn.fhir.model.api.BaseIdentifiableElement
getElementSpecificId, getId, setElementSpecificId, setId, setId
Methods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, setUserData
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
Methods inherited from interface org.hl7.fhir.instance.model.api.IBaseReference
hasIdentifier
-
Constructor Details
-
ResourceReferenceDt
public ResourceReferenceDt()Constructor -
ResourceReferenceDt
Constructor which creates a resource reference containing the actual resource in question.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.
- Parameters:
theResource
- The resource instance
-
ResourceReferenceDt
Constructor which accepts a reference directly (this can be an ID, a partial/relative URL or a complete/absolute URL)- Parameters:
theId
- The reference itself
-
ResourceReferenceDt
Constructor which accepts a reference directly (this can be an ID, a partial/relative URL or a complete/absolute URL)- Parameters:
theResourceId
- The reference itself
-
ResourceReferenceDt
Constructor which accepts a reference directly (this can be an ID, a partial/relative URL or a complete/absolute URL)- Parameters:
theResourceId
- The reference itself
-
-
Method Details
-
isEmpty
- Specified by:
isEmpty
in interfaceorg.hl7.fhir.instance.model.api.IBase
-
getAllPopulatedChildElementsOfType
public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) - Specified by:
getAllPopulatedChildElementsOfType
in interfaceca.uhn.fhir.model.api.ICompositeElement
-
getReference
Gets the value(s) for reference (Relative, internal or absolute URL reference). creating it if it does not exist. Will not returnnull
.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
- Specified by:
getReference
in classca.uhn.fhir.model.base.composite.BaseResourceReferenceDt
-
getReferenceElement
- Specified by:
getReferenceElement
in interfaceorg.hl7.fhir.instance.model.api.IBaseReference
-
setReference
Sets the value(s) for reference (Relative, internal or absolute URL reference)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
- Specified by:
setReference
in classca.uhn.fhir.model.base.composite.BaseResourceReferenceDt
-
setReference
Sets the value for reference (Relative, internal or absolute URL reference)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
- Specified by:
setReference
in interfaceorg.hl7.fhir.instance.model.api.IBaseReference
-
getDisplay
Gets the value(s) for display (Text alternative for the resource). creating it if it does not exist. Will not returnnull
.Definition: Plain text narrative that identifies the resource in addition to the resource reference
-
setDisplay
Sets the value(s) for display (Text alternative for the resource)Definition: Plain text narrative that identifies the resource in addition to the resource reference
-
setDisplay
Sets the value for display (Text alternative for the resource)Definition: Plain text narrative that identifies the resource in addition to the resource reference
- Specified by:
setDisplay
in interfaceorg.hl7.fhir.instance.model.api.IBaseReference
-
getDisplayElement
- Specified by:
getDisplayElement
in interfaceorg.hl7.fhir.instance.model.api.IBaseReference
- Specified by:
getDisplayElement
in classca.uhn.fhir.model.base.composite.BaseResourceReferenceDt
-