public class Reference extends BaseReference implements IBaseReference, ICompositeType
| Modifier and Type | Field and Description |
|---|---|
protected StringType |
display
Plain text narrative that identifies the resource in addition to the resource reference.
|
protected Identifier |
identifier
An identifier for the other resource.
|
protected StringType |
reference
A reference to a location at which the other resource is found.
|
| Constructor and Description |
|---|
Reference()
Constructor
|
Reference(IAnyResource theResource)
Constructor
|
Reference(IIdType theReference)
Constructor
|
Reference(String theReference)
Constructor
|
getReferenceElement, getResource, setResourceaddExtension, addExtension, addExtension, copyValues, getExtension, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, setExtension, setId, setIdBase, setIdElementcastToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isMetadataBased, isPrimitive, isResource, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINNclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetReferenceElement, getResource, setResourcegetFormatCommentsPost, getFormatCommentsPre, hasFormatCommentprotected StringType reference
protected Identifier identifier
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(IIdType theReference)
theReference - The given reference as an IdType (e.g. "Patient/123" or "http://example.com/Patient/123")public Reference(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 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 Identifier getIdentifier()
identifier (An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.)public boolean hasIdentifier()
public Reference setIdentifier(Identifier value)
value - identifier (An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.)public StringType getDisplayElement()
getDisplayElement in interface 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 IBaseReferencevalue - Plain text narrative that identifies the resource in addition to the resource reference.public Reference setReferenceElement(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 FHIRException
getProperty in class ElementFHIRExceptionpublic Base setProperty(int hash, String name, Base value) throws FHIRException
setProperty in class ElementFHIRExceptionpublic Base setProperty(String name, Base value) throws FHIRException
setProperty in class ElementFHIRExceptionpublic Base makeProperty(int hash, String name) throws FHIRException
makeProperty in class ElementFHIRExceptionpublic String[] getTypesForProperty(int hash, String name) throws FHIRException
getTypesForProperty in class ElementFHIRExceptionpublic Base addChild(String name) throws FHIRException
addChild in class ElementFHIRExceptionpublic boolean equalsDeep(Base other)
equalsDeep in class Elementpublic boolean equalsShallow(Base other)
equalsShallow in class Elementpublic boolean isEmpty()
isEmpty in interface IBaseisEmpty in class BaseReferenceCopyright © 2014–2017 University Health Network. All rights reserved.