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()
Constructor
|
Reference(org.hl7.fhir.instance.model.api.IAnyResource theResource)
Constructor
|
Reference(org.hl7.fhir.instance.model.api.IIdType theReference)
Constructor
|
Reference(String theReference)
Constructor
|
getReferenceElement, getResource, setResourceaddExtension, addExtension, copyValues, getExtension, getExtensionsByUrl, getExtensionString, getId, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, setId, setIdElementcastToActionDefinition, castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToModuleMetadata, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToTriggerDefinition, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, 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(org.hl7.fhir.instance.model.api.IIdType 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 StringType getReferenceElement_()
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 hasReferenceElement()
public 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.public Reference setReferenceElement(org.hl7.fhir.instance.model.api.IIdType theReference)
value of the given
reference.theReference - The reference, or nullprotected void listChildren(List<Property> childrenList)
listChildren in class Elementpublic Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
getProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic void setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
setProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
setProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
makeProperty 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.