public class Reference extends BaseReference implements org.hl7.fhir.instance.model.api.IBaseReference, org.hl7.fhir.instance.model.api.ICompositeType
| Modifier and Type | Field and Description |
|---|---|
protected StringType |
display
Plain text narrative that identifies the resource in addition to the resource reference.
|
protected StringType |
reference
A reference to a location at which the other resource is found.
|
| Constructor and Description |
|---|
Reference() |
Reference(org.hl7.fhir.instance.model.api.IAnyResource theResource)
Constructor
|
Reference(IdType theReference)
Constructor
|
Reference(String theReference)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Base |
addChild(String name) |
Reference |
copy() |
boolean |
equalsDeep(Base other) |
boolean |
equalsShallow(Base other) |
String |
fhirType() |
String |
getDisplay() |
StringType |
getDisplayElement() |
String |
getReference() |
boolean |
hasDisplay() |
boolean |
hasDisplayElement() |
boolean |
hasReference() |
boolean |
hasReferenceElement() |
boolean |
isEmpty() |
protected void |
listChildren(List<Property> childrenList) |
Reference |
setDisplay(String value) |
Reference |
setDisplayElement(StringType value) |
void |
setProperty(String name,
Base value) |
Reference |
setReference(String value) |
Reference |
setReferenceElement(StringType value) |
protected Reference |
typedCopy() |
getReferenceElement, getResource, setResourceaddExtension, addExtension, copyValues, getExtension, getExtensionsByUrl, getExtensionString, getId, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, setId, setIdElementcastToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, primitiveValue, setUserData, setUserDataINNclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected StringType reference
protected StringType display
public Reference()
public Reference(String theReference)
theReference - The given reference string (e.g. "Patient/123" or "http://example.com/Patient/123")public Reference(IdType theReference)
theReference - The given reference as an IdType (e.g. "Patient/123" or "http://example.com/Patient/123")public Reference(org.hl7.fhir.instance.model.api.IAnyResource theResource)
theResource - The resource represented by this referencepublic boolean hasReferenceElement()
reference (A reference to a location at which the other resource is found. The reference may be 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.). This is the underlying object with id, value and extensions. The accessor "getReference" gives direct access to the valuepublic boolean hasReference()
public Reference setReferenceElement(StringType value)
value - reference (A reference to a location at which the other resource is found. The reference may be 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.). This is the underlying object with id, value and extensions. The accessor "getReference" gives direct access to the valuepublic String getReference()
public Reference setReference(String value)
setReference in interface org.hl7.fhir.instance.model.api.IBaseReferencevalue - A reference to a location at which the other resource is found. The reference may be 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.public StringType getDisplayElement()
getDisplayElement in interface org.hl7.fhir.instance.model.api.IBaseReferencedisplay (Plain text narrative that identifies the resource in addition to the resource reference.). This is the underlying object with id, value and extensions. The accessor "getDisplay" gives direct access to the valuepublic boolean hasDisplayElement()
public boolean hasDisplay()
public Reference setDisplayElement(StringType value)
value - display (Plain text narrative that identifies the resource in addition to the resource reference.). This is the underlying object with id, value and extensions. The accessor "getDisplay" gives direct access to the valuepublic String getDisplay()
public Reference setDisplay(String value)
setDisplay in interface org.hl7.fhir.instance.model.api.IBaseReferencevalue - Plain text narrative that identifies the resource in addition to the resource reference.protected void listChildren(List<Property> childrenList)
listChildren in class Elementpublic void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
setProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic boolean equalsDeep(Base other)
equalsDeep in class Elementpublic boolean equalsShallow(Base other)
equalsShallow in class Elementpublic boolean isEmpty()
isEmpty in interface org.hl7.fhir.instance.model.api.IBaseisEmpty in class BaseReferenceCopyright © 2014–2018 University Health Network. All rights reserved.