Class DocumentReference
- java.lang.Object
-
- org.hl7.fhir.Resource
-
- org.hl7.fhir.DomainResource
-
- org.hl7.fhir.DocumentReference
-
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
public class DocumentReference extends DomainResource implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
If the element is present, it must have either a @value, an @id, or extensionsJava class for DocumentReference complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="DocumentReference"> <complexContent> <extension base="{http://hl7.org/fhir}DomainResource"> <sequence> <element name="masterIdentifier" type="{http://hl7.org/fhir}Identifier" minOccurs="0"/> <element name="identifier" type="{http://hl7.org/fhir}Identifier" maxOccurs="unbounded" minOccurs="0"/> <element name="subject" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> <element name="type" type="{http://hl7.org/fhir}CodeableConcept"/> <element name="class" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/> <element name="author" type="{http://hl7.org/fhir}Reference" maxOccurs="unbounded" minOccurs="0"/> <element name="custodian" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> <element name="authenticator" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> <element name="created" type="{http://hl7.org/fhir}dateTime" minOccurs="0"/> <element name="indexed" type="{http://hl7.org/fhir}instant"/> <element name="status" type="{http://hl7.org/fhir}DocumentReferenceStatus"/> <element name="docStatus" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/> <element name="relatesTo" type="{http://hl7.org/fhir}DocumentReference.RelatesTo" maxOccurs="unbounded" minOccurs="0"/> <element name="description" type="{http://hl7.org/fhir}string" minOccurs="0"/> <element name="securityLabel" type="{http://hl7.org/fhir}CodeableConcept" maxOccurs="unbounded" minOccurs="0"/> <element name="content" type="{http://hl7.org/fhir}DocumentReference.Content" maxOccurs="unbounded"/> <element name="context" type="{http://hl7.org/fhir}DocumentReference.Context" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected Referenceauthenticatorprotected java.util.List<Reference>authorprotected CodeableConceptclazzprotected java.util.List<DocumentReferenceContent>contentprotected DocumentReferenceContextcontextprotected DateTimecreatedprotected Referencecustodianprotected Stringdescriptionprotected CodeableConceptdocStatusprotected java.util.List<Identifier>identifierprotected Instantindexedprotected IdentifiermasterIdentifierprotected java.util.List<DocumentReferenceRelatesTo>relatesToprotected java.util.List<CodeableConcept>securityLabelprotected DocumentReferenceStatusstatusprotected Referencesubjectprotected CodeableConcepttype-
Fields inherited from class org.hl7.fhir.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class org.hl7.fhir.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description DocumentReference()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringBuilderappend(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)java.lang.StringBuilderappendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)booleanequals(java.lang.Object object)booleanequals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)ReferencegetAuthenticator()Gets the value of the authenticator property.java.util.List<Reference>getAuthor()Gets the value of the author property.CodeableConceptgetClazz()Gets the value of the clazz property.java.util.List<DocumentReferenceContent>getContent()Gets the value of the content property.DocumentReferenceContextgetContext()Gets the value of the context property.DateTimegetCreated()Gets the value of the created property.ReferencegetCustodian()Gets the value of the custodian property.StringgetDescription()Gets the value of the description property.CodeableConceptgetDocStatus()Gets the value of the docStatus property.java.util.List<Identifier>getIdentifier()Gets the value of the identifier property.InstantgetIndexed()Gets the value of the indexed property.IdentifiergetMasterIdentifier()Gets the value of the masterIdentifier property.java.util.List<DocumentReferenceRelatesTo>getRelatesTo()Gets the value of the relatesTo property.java.util.List<CodeableConcept>getSecurityLabel()Gets the value of the securityLabel property.DocumentReferenceStatusgetStatus()Gets the value of the status property.ReferencegetSubject()Gets the value of the subject property.CodeableConceptgetType()Gets the value of the type property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetAuthenticator(Reference value)Sets the value of the authenticator property.voidsetClazz(CodeableConcept value)Sets the value of the clazz property.voidsetContext(DocumentReferenceContext value)Sets the value of the context property.voidsetCreated(DateTime value)Sets the value of the created property.voidsetCustodian(Reference value)Sets the value of the custodian property.voidsetDescription(String value)Sets the value of the description property.voidsetDocStatus(CodeableConcept value)Sets the value of the docStatus property.voidsetIndexed(Instant value)Sets the value of the indexed property.voidsetMasterIdentifier(Identifier value)Sets the value of the masterIdentifier property.voidsetStatus(DocumentReferenceStatus value)Sets the value of the status property.voidsetSubject(Reference value)Sets the value of the subject property.voidsetType(CodeableConcept value)Sets the value of the type property.java.lang.StringtoString()DocumentReferencewithAuthenticator(Reference value)DocumentReferencewithAuthor(java.util.Collection<Reference> values)DocumentReferencewithAuthor(Reference... values)DocumentReferencewithClazz(CodeableConcept value)DocumentReferencewithContained(java.util.Collection<ResourceContainer> values)DocumentReferencewithContained(ResourceContainer... values)DocumentReferencewithContent(java.util.Collection<DocumentReferenceContent> values)DocumentReferencewithContent(DocumentReferenceContent... values)DocumentReferencewithContext(DocumentReferenceContext value)DocumentReferencewithCreated(DateTime value)DocumentReferencewithCustodian(Reference value)DocumentReferencewithDescription(String value)DocumentReferencewithDocStatus(CodeableConcept value)DocumentReferencewithExtension(java.util.Collection<Extension> values)DocumentReferencewithExtension(Extension... values)DocumentReferencewithId(Id value)DocumentReferencewithIdentifier(java.util.Collection<Identifier> values)DocumentReferencewithIdentifier(Identifier... values)DocumentReferencewithImplicitRules(Uri value)DocumentReferencewithIndexed(Instant value)DocumentReferencewithLanguage(Code value)DocumentReferencewithMasterIdentifier(Identifier value)DocumentReferencewithMeta(Meta value)DocumentReferencewithModifierExtension(java.util.Collection<Extension> values)DocumentReferencewithModifierExtension(Extension... values)DocumentReferencewithRelatesTo(java.util.Collection<DocumentReferenceRelatesTo> values)DocumentReferencewithRelatesTo(DocumentReferenceRelatesTo... values)DocumentReferencewithSecurityLabel(java.util.Collection<CodeableConcept> values)DocumentReferencewithSecurityLabel(CodeableConcept... values)DocumentReferencewithStatus(DocumentReferenceStatus value)DocumentReferencewithSubject(Reference value)DocumentReferencewithText(Narrative value)DocumentReferencewithType(CodeableConcept value)-
Methods inherited from class org.hl7.fhir.DomainResource
getContained, getExtension, getModifierExtension, getText, setText
-
Methods inherited from class org.hl7.fhir.Resource
getId, getImplicitRules, getLanguage, getMeta, setId, setImplicitRules, setLanguage, setMeta
-
-
-
-
Field Detail
-
masterIdentifier
protected Identifier masterIdentifier
-
identifier
protected java.util.List<Identifier> identifier
-
subject
protected Reference subject
-
type
protected CodeableConcept type
-
clazz
protected CodeableConcept clazz
-
author
protected java.util.List<Reference> author
-
custodian
protected Reference custodian
-
authenticator
protected Reference authenticator
-
created
protected DateTime created
-
indexed
protected Instant indexed
-
status
protected DocumentReferenceStatus status
-
docStatus
protected CodeableConcept docStatus
-
relatesTo
protected java.util.List<DocumentReferenceRelatesTo> relatesTo
-
description
protected String description
-
securityLabel
protected java.util.List<CodeableConcept> securityLabel
-
content
protected java.util.List<DocumentReferenceContent> content
-
context
protected DocumentReferenceContext context
-
-
Method Detail
-
getMasterIdentifier
public Identifier getMasterIdentifier()
Gets the value of the masterIdentifier property.- Returns:
- possible object is
Identifier
-
setMasterIdentifier
public void setMasterIdentifier(Identifier value)
Sets the value of the masterIdentifier property.- Parameters:
value- allowed object isIdentifier
-
getIdentifier
public java.util.List<Identifier> getIdentifier()
Gets the value of the identifier property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the identifier property.For example, to add a new item, do as follows:
getIdentifier().add(newItem);Objects of the following type(s) are allowed in the list
Identifier
-
getSubject
public Reference getSubject()
Gets the value of the subject property.- Returns:
- possible object is
Reference
-
setSubject
public void setSubject(Reference value)
Sets the value of the subject property.- Parameters:
value- allowed object isReference
-
getType
public CodeableConcept getType()
Gets the value of the type property.- Returns:
- possible object is
CodeableConcept
-
setType
public void setType(CodeableConcept value)
Sets the value of the type property.- Parameters:
value- allowed object isCodeableConcept
-
getClazz
public CodeableConcept getClazz()
Gets the value of the clazz property.- Returns:
- possible object is
CodeableConcept
-
setClazz
public void setClazz(CodeableConcept value)
Sets the value of the clazz property.- Parameters:
value- allowed object isCodeableConcept
-
getAuthor
public java.util.List<Reference> getAuthor()
Gets the value of the author property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the author property.For example, to add a new item, do as follows:
getAuthor().add(newItem);Objects of the following type(s) are allowed in the list
Reference
-
getCustodian
public Reference getCustodian()
Gets the value of the custodian property.- Returns:
- possible object is
Reference
-
setCustodian
public void setCustodian(Reference value)
Sets the value of the custodian property.- Parameters:
value- allowed object isReference
-
getAuthenticator
public Reference getAuthenticator()
Gets the value of the authenticator property.- Returns:
- possible object is
Reference
-
setAuthenticator
public void setAuthenticator(Reference value)
Sets the value of the authenticator property.- Parameters:
value- allowed object isReference
-
getCreated
public DateTime getCreated()
Gets the value of the created property.- Returns:
- possible object is
DateTime
-
setCreated
public void setCreated(DateTime value)
Sets the value of the created property.- Parameters:
value- allowed object isDateTime
-
getIndexed
public Instant getIndexed()
Gets the value of the indexed property.- Returns:
- possible object is
Instant
-
setIndexed
public void setIndexed(Instant value)
Sets the value of the indexed property.- Parameters:
value- allowed object isInstant
-
getStatus
public DocumentReferenceStatus getStatus()
Gets the value of the status property.- Returns:
- possible object is
DocumentReferenceStatus
-
setStatus
public void setStatus(DocumentReferenceStatus value)
Sets the value of the status property.- Parameters:
value- allowed object isDocumentReferenceStatus
-
getDocStatus
public CodeableConcept getDocStatus()
Gets the value of the docStatus property.- Returns:
- possible object is
CodeableConcept
-
setDocStatus
public void setDocStatus(CodeableConcept value)
Sets the value of the docStatus property.- Parameters:
value- allowed object isCodeableConcept
-
getRelatesTo
public java.util.List<DocumentReferenceRelatesTo> getRelatesTo()
Gets the value of the relatesTo property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the relatesTo property.For example, to add a new item, do as follows:
getRelatesTo().add(newItem);Objects of the following type(s) are allowed in the list
DocumentReferenceRelatesTo
-
getDescription
public String getDescription()
Gets the value of the description property.- Returns:
- possible object is
String
-
setDescription
public void setDescription(String value)
Sets the value of the description property.- Parameters:
value- allowed object isString
-
getSecurityLabel
public java.util.List<CodeableConcept> getSecurityLabel()
Gets the value of the securityLabel property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the securityLabel property.For example, to add a new item, do as follows:
getSecurityLabel().add(newItem);Objects of the following type(s) are allowed in the list
CodeableConcept
-
getContent
public java.util.List<DocumentReferenceContent> getContent()
Gets the value of the content property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the content property.For example, to add a new item, do as follows:
getContent().add(newItem);Objects of the following type(s) are allowed in the list
DocumentReferenceContent
-
getContext
public DocumentReferenceContext getContext()
Gets the value of the context property.- Returns:
- possible object is
DocumentReferenceContext
-
setContext
public void setContext(DocumentReferenceContext value)
Sets the value of the context property.- Parameters:
value- allowed object isDocumentReferenceContext
-
withMasterIdentifier
public DocumentReference withMasterIdentifier(Identifier value)
-
withIdentifier
public DocumentReference withIdentifier(Identifier... values)
-
withIdentifier
public DocumentReference withIdentifier(java.util.Collection<Identifier> values)
-
withSubject
public DocumentReference withSubject(Reference value)
-
withType
public DocumentReference withType(CodeableConcept value)
-
withClazz
public DocumentReference withClazz(CodeableConcept value)
-
withAuthor
public DocumentReference withAuthor(Reference... values)
-
withAuthor
public DocumentReference withAuthor(java.util.Collection<Reference> values)
-
withCustodian
public DocumentReference withCustodian(Reference value)
-
withAuthenticator
public DocumentReference withAuthenticator(Reference value)
-
withCreated
public DocumentReference withCreated(DateTime value)
-
withIndexed
public DocumentReference withIndexed(Instant value)
-
withStatus
public DocumentReference withStatus(DocumentReferenceStatus value)
-
withDocStatus
public DocumentReference withDocStatus(CodeableConcept value)
-
withRelatesTo
public DocumentReference withRelatesTo(DocumentReferenceRelatesTo... values)
-
withRelatesTo
public DocumentReference withRelatesTo(java.util.Collection<DocumentReferenceRelatesTo> values)
-
withDescription
public DocumentReference withDescription(String value)
-
withSecurityLabel
public DocumentReference withSecurityLabel(CodeableConcept... values)
-
withSecurityLabel
public DocumentReference withSecurityLabel(java.util.Collection<CodeableConcept> values)
-
withContent
public DocumentReference withContent(DocumentReferenceContent... values)
-
withContent
public DocumentReference withContent(java.util.Collection<DocumentReferenceContent> values)
-
withContext
public DocumentReference withContext(DocumentReferenceContext value)
-
withText
public DocumentReference withText(Narrative value)
- Overrides:
withTextin classDomainResource
-
withContained
public DocumentReference withContained(ResourceContainer... values)
- Overrides:
withContainedin classDomainResource
-
withContained
public DocumentReference withContained(java.util.Collection<ResourceContainer> values)
- Overrides:
withContainedin classDomainResource
-
withExtension
public DocumentReference withExtension(Extension... values)
- Overrides:
withExtensionin classDomainResource
-
withExtension
public DocumentReference withExtension(java.util.Collection<Extension> values)
- Overrides:
withExtensionin classDomainResource
-
withModifierExtension
public DocumentReference withModifierExtension(Extension... values)
- Overrides:
withModifierExtensionin classDomainResource
-
withModifierExtension
public DocumentReference withModifierExtension(java.util.Collection<Extension> values)
- Overrides:
withModifierExtensionin classDomainResource
-
withId
public DocumentReference withId(Id value)
- Overrides:
withIdin classDomainResource
-
withMeta
public DocumentReference withMeta(Meta value)
- Overrides:
withMetain classDomainResource
-
withImplicitRules
public DocumentReference withImplicitRules(Uri value)
- Overrides:
withImplicitRulesin classDomainResource
-
withLanguage
public DocumentReference withLanguage(Code value)
- Overrides:
withLanguagein classDomainResource
-
equals
public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)- Specified by:
equalsin interfaceorg.jvnet.jaxb2_commons.lang.Equals2- Overrides:
equalsin classDomainResource
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classDomainResource
-
hashCode
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)- Specified by:
hashCodein interfaceorg.jvnet.jaxb2_commons.lang.HashCode2- Overrides:
hashCodein classDomainResource
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDomainResource
-
toString
public java.lang.String toString()
- Overrides:
toStringin classDomainResource
-
append
public java.lang.StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)- Specified by:
appendin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendin classDomainResource
-
appendFields
public java.lang.StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)- Specified by:
appendFieldsin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendFieldsin classDomainResource
-
-