Package com.ibm.fhir.model.resource
Class DocumentReference
- java.lang.Object
-
- com.ibm.fhir.model.visitor.AbstractVisitable
-
- com.ibm.fhir.model.resource.Resource
-
- com.ibm.fhir.model.resource.DomainResource
-
- com.ibm.fhir.model.resource.DocumentReference
-
- All Implemented Interfaces:
Visitable
@Generated("com.ibm.fhir.tools.CodeGenerator") public class DocumentReference extends DomainResource
A reference to a document of any kind for any purpose. Provides metadata about the document so that the document can be discovered and managed. The scope of a document is any seralized object with a mime-type, so includes formal patient centric documents (CDA), cliical notes, scanned paper, and non-patient specific documents like policy text.Maturity level: FMM3 (Trial Use)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDocumentReference.Builderstatic classDocumentReference.ContentThe document and format referenced.static classDocumentReference.ContextThe clinical context in which the document was prepared.static classDocumentReference.RelatesToRelationships that this document has with other document references that already exist.
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.resource.DomainResource
contained, extension, modifierExtension, text
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(String elementName, int elementIndex, Visitor visitor)Accept a Visitor and invoke the appropriate visit methods.static DocumentReference.Builderbuilder()booleanequals(Object obj)ReferencegetAuthenticator()Which person or organization authenticates that this document is valid.List<Reference>getAuthor()Identifies who is responsible for adding the information to the document.List<CodeableConcept>getCategory()A categorization for the type of document referenced - helps for indexing and searching.List<DocumentReference.Content>getContent()The document and format referenced.DocumentReference.ContextgetContext()The clinical context in which the document was prepared.ReferencegetCustodian()Identifies the organization or group who is responsible for ongoing maintenance of and access to the document.InstantgetDate()When the document reference was created.StringgetDescription()Human-readable description of the source document.ReferredDocumentStatusgetDocStatus()The status of the underlying document.List<Identifier>getIdentifier()Other identifiers associated with the document, including version independent identifiers.IdentifiergetMasterIdentifier()Document identifier as assigned by the source of the document.List<DocumentReference.RelatesTo>getRelatesTo()Relationships that this document has with other document references that already exist.List<CodeableConcept>getSecurityLabel()A set of Security-Tag codes specifying the level of privacy/security of the Document.DocumentReferenceStatusgetStatus()The status of this document reference.ReferencegetSubject()Who or what the document is about.CodeableConceptgetType()Specifies the particular kind of document referenced (e.g.booleanhasChildren()inthashCode()DocumentReference.BuildertoBuilder()Create a new Builder from the contents of this Resource-
Methods inherited from class com.ibm.fhir.model.resource.DomainResource
getContained, getExtension, getModifierExtension, getText
-
Methods inherited from class com.ibm.fhir.model.resource.Resource
as, getId, getImplicitRules, getLanguage, getMeta, is
-
-
-
-
Method Detail
-
getMasterIdentifier
public Identifier getMasterIdentifier()
Document identifier as assigned by the source of the document. This identifier is specific to this version of the document. This unique identifier may be used elsewhere to identify this version of the document.- Returns:
- An immutable object of type
Identifierthat may be null.
-
getIdentifier
public List<Identifier> getIdentifier()
Other identifiers associated with the document, including version independent identifiers.- Returns:
- An unmodifiable list containing immutable objects of type
Identifierthat may be empty.
-
getStatus
public DocumentReferenceStatus getStatus()
The status of this document reference.- Returns:
- An immutable object of type
DocumentReferenceStatusthat is non-null.
-
getDocStatus
public ReferredDocumentStatus getDocStatus()
The status of the underlying document.- Returns:
- An immutable object of type
ReferredDocumentStatusthat may be null.
-
getType
public CodeableConcept getType()
Specifies the particular kind of document referenced (e.g. History and Physical, Discharge Summary, Progress Note). This usually equates to the purpose of making the document referenced.- Returns:
- An immutable object of type
CodeableConceptthat may be null.
-
getCategory
public List<CodeableConcept> getCategory()
A categorization for the type of document referenced - helps for indexing and searching. This may be implied by or derived from the code specified in the DocumentReference.type.- Returns:
- An unmodifiable list containing immutable objects of type
CodeableConceptthat may be empty.
-
getSubject
public Reference getSubject()
Who or what the document is about. The document can be about a person, (patient or healthcare practitioner), a device (e.g. a machine) or even a group of subjects (such as a document about a herd of farm animals, or a set of patients that share a common exposure).- Returns:
- An immutable object of type
Referencethat may be null.
-
getDate
public Instant getDate()
When the document reference was created.- Returns:
- An immutable object of type
Instantthat may be null.
-
getAuthor
public List<Reference> getAuthor()
Identifies who is responsible for adding the information to the document.- Returns:
- An unmodifiable list containing immutable objects of type
Referencethat may be empty.
-
getAuthenticator
public Reference getAuthenticator()
Which person or organization authenticates that this document is valid.- Returns:
- An immutable object of type
Referencethat may be null.
-
getCustodian
public Reference getCustodian()
Identifies the organization or group who is responsible for ongoing maintenance of and access to the document.- Returns:
- An immutable object of type
Referencethat may be null.
-
getRelatesTo
public List<DocumentReference.RelatesTo> getRelatesTo()
Relationships that this document has with other document references that already exist.- Returns:
- An unmodifiable list containing immutable objects of type
DocumentReference.RelatesTothat may be empty.
-
getDescription
public String getDescription()
Human-readable description of the source document.- Returns:
- An immutable object of type
Stringthat may be null.
-
getSecurityLabel
public List<CodeableConcept> getSecurityLabel()
A set of Security-Tag codes specifying the level of privacy/security of the Document. Note that DocumentReference.meta. security contains the security labels of the "reference" to the document, while DocumentReference.securityLabel contains a snapshot of the security labels on the document the reference refers to.- Returns:
- An unmodifiable list containing immutable objects of type
CodeableConceptthat may be empty.
-
getContent
public List<DocumentReference.Content> getContent()
The document and format referenced. There may be multiple content element repetitions, each with a different format.- Returns:
- An unmodifiable list containing immutable objects of type
DocumentReference.Contentthat is non-empty.
-
getContext
public DocumentReference.Context getContext()
The clinical context in which the document was prepared.- Returns:
- An immutable object of type
DocumentReference.Contextthat may be null.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildrenin classDomainResource
-
accept
public void accept(String elementName, int elementIndex, Visitor visitor)
Description copied from interface:VisitableAccept a Visitor and invoke the appropriate visit methods. A typical implementation would look like this:if (visitor.preVisit(this)) { visitor.visitStart(elementName, elementIndex, this); if (visitor.visit(elementName, elementIndex, this)) { // visit children } visitor.visitEnd(elementName, elementIndex, this); visitor.postVisit(this); }- Specified by:
acceptin interfaceVisitable- Specified by:
acceptin classAbstractVisitable- Parameters:
elementName- the name of the element in the context of this visitelementIndex- the index of the element in a list or -1 if it is not contained within a Listvisitor- the visitor to use
-
toBuilder
public DocumentReference.Builder toBuilder()
Description copied from class:ResourceCreate a new Builder from the contents of this Resource- Specified by:
toBuilderin classDomainResource
-
builder
public static DocumentReference.Builder builder()
-
-