Class DocumentReference

java.lang.Object
ca.uhn.fhir.model.api.BaseElement
ca.uhn.fhir.model.dstu2.resource.BaseResource
ca.uhn.fhir.model.dstu2.resource.DocumentReference
All Implemented Interfaces:
ca.uhn.fhir.model.api.ICompositeElement, ca.uhn.fhir.model.api.IElement, ca.uhn.fhir.model.api.IResource, ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions, Serializable, org.hl7.fhir.instance.model.api.IBase, org.hl7.fhir.instance.model.api.IBaseResource

public class DocumentReference extends BaseResource implements ca.uhn.fhir.model.api.IResource
HAPI/FHIR DocumentReference Resource (infrastructure.documents)

Definition: A reference to a document .

Requirements:

Profile Definition: http://hl7.org/fhir/profiles/DocumentReference

See Also:
  • Field Details

    • SP_IDENTIFIER

      public static final String SP_IDENTIFIER
      Search parameter constant for identifier

      Description:
      Type: token
      Path: DocumentReference.masterIdentifier | DocumentReference.identifier

      See Also:
    • IDENTIFIER

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER
      Fluent Client search parameter constant for identifier

      Description:
      Type: token
      Path: DocumentReference.masterIdentifier | DocumentReference.identifier

    • SP_SUBJECT

      public static final String SP_SUBJECT
      Search parameter constant for subject

      Description:
      Type: reference
      Path: DocumentReference.subject

      See Also:
    • SUBJECT

      public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT
      Fluent Client search parameter constant for subject

      Description:
      Type: reference
      Path: DocumentReference.subject

    • SP_TYPE

      public static final String SP_TYPE
      Search parameter constant for type

      Description:
      Type: token
      Path: DocumentReference.type

      See Also:
    • TYPE

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE
      Fluent Client search parameter constant for type

      Description:
      Type: token
      Path: DocumentReference.type

    • SP_CLASS

      public static final String SP_CLASS
      Search parameter constant for class

      Description:
      Type: token
      Path: DocumentReference.class

      See Also:
    • CLASS

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam CLASS
      Fluent Client search parameter constant for class

      Description:
      Type: token
      Path: DocumentReference.class

    • SP_AUTHOR

      public static final String SP_AUTHOR
      Search parameter constant for author

      Description:
      Type: reference
      Path: DocumentReference.author

      See Also:
    • AUTHOR

      public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam AUTHOR
      Fluent Client search parameter constant for author

      Description:
      Type: reference
      Path: DocumentReference.author

    • SP_CUSTODIAN

      public static final String SP_CUSTODIAN
      Search parameter constant for custodian

      Description:
      Type: reference
      Path: DocumentReference.custodian

      See Also:
    • CUSTODIAN

      public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam CUSTODIAN
      Fluent Client search parameter constant for custodian

      Description:
      Type: reference
      Path: DocumentReference.custodian

    • SP_AUTHENTICATOR

      public static final String SP_AUTHENTICATOR
      Search parameter constant for authenticator

      Description:
      Type: reference
      Path: DocumentReference.authenticator

      See Also:
    • AUTHENTICATOR

      public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam AUTHENTICATOR
      Fluent Client search parameter constant for authenticator

      Description:
      Type: reference
      Path: DocumentReference.authenticator

    • SP_CREATED

      public static final String SP_CREATED
      Search parameter constant for created

      Description:
      Type: date
      Path: DocumentReference.created

      See Also:
    • CREATED

      public static final ca.uhn.fhir.rest.gclient.DateClientParam CREATED
      Fluent Client search parameter constant for created

      Description:
      Type: date
      Path: DocumentReference.created

    • SP_INDEXED

      public static final String SP_INDEXED
      Search parameter constant for indexed

      Description:
      Type: date
      Path: DocumentReference.indexed

      See Also:
    • INDEXED

      public static final ca.uhn.fhir.rest.gclient.DateClientParam INDEXED
      Fluent Client search parameter constant for indexed

      Description:
      Type: date
      Path: DocumentReference.indexed

    • SP_STATUS

      public static final String SP_STATUS
      Search parameter constant for status

      Description:
      Type: token
      Path: DocumentReference.status

      See Also:
    • STATUS

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS
      Fluent Client search parameter constant for status

      Description:
      Type: token
      Path: DocumentReference.status

    • SP_RELATESTO

      public static final String SP_RELATESTO
      Search parameter constant for relatesto

      Description:
      Type: reference
      Path: DocumentReference.relatesTo.target

      See Also:
    • RELATESTO

      public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam RELATESTO
      Fluent Client search parameter constant for relatesto

      Description:
      Type: reference
      Path: DocumentReference.relatesTo.target

    • SP_RELATION

      public static final String SP_RELATION
      Search parameter constant for relation

      Description:
      Type: token
      Path: DocumentReference.relatesTo.code

      See Also:
    • RELATION

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam RELATION
      Fluent Client search parameter constant for relation

      Description:
      Type: token
      Path: DocumentReference.relatesTo.code

    • SP_DESCRIPTION

      public static final String SP_DESCRIPTION
      Search parameter constant for description

      Description:
      Type: string
      Path: DocumentReference.description

      See Also:
    • DESCRIPTION

      public static final ca.uhn.fhir.rest.gclient.StringClientParam DESCRIPTION
      Fluent Client search parameter constant for description

      Description:
      Type: string
      Path: DocumentReference.description

    • SP_SECURITYLABEL

      public static final String SP_SECURITYLABEL
      Search parameter constant for securitylabel

      Description:
      Type: token
      Path: DocumentReference.securityLabel

      See Also:
    • SECURITYLABEL

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam SECURITYLABEL
      Fluent Client search parameter constant for securitylabel

      Description:
      Type: token
      Path: DocumentReference.securityLabel

    • SP_FORMAT

      public static final String SP_FORMAT
      Search parameter constant for format

      Description:
      Type: token
      Path: DocumentReference.content.format

      See Also:
    • FORMAT

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam FORMAT
      Fluent Client search parameter constant for format

      Description:
      Type: token
      Path: DocumentReference.content.format

    • SP_LANGUAGE

      public static final String SP_LANGUAGE
      Search parameter constant for language

      Description:
      Type: token
      Path: DocumentReference.content.attachment.language

      See Also:
    • LANGUAGE

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam LANGUAGE
      Fluent Client search parameter constant for language

      Description:
      Type: token
      Path: DocumentReference.content.attachment.language

    • SP_LOCATION

      public static final String SP_LOCATION
      Search parameter constant for location

      Description:
      Type: uri
      Path: DocumentReference.content.attachment.url

      See Also:
    • LOCATION

      public static final ca.uhn.fhir.rest.gclient.UriClientParam LOCATION
      Fluent Client search parameter constant for location

      Description:
      Type: uri
      Path: DocumentReference.content.attachment.url

    • SP_EVENT

      public static final String SP_EVENT
      Search parameter constant for event

      Description:
      Type: token
      Path: DocumentReference.context.event

      See Also:
    • EVENT

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam EVENT
      Fluent Client search parameter constant for event

      Description:
      Type: token
      Path: DocumentReference.context.event

    • SP_PERIOD

      public static final String SP_PERIOD
      Search parameter constant for period

      Description:
      Type: date
      Path: DocumentReference.context.period

      See Also:
    • PERIOD

      public static final ca.uhn.fhir.rest.gclient.DateClientParam PERIOD
      Fluent Client search parameter constant for period

      Description:
      Type: date
      Path: DocumentReference.context.period

    • SP_FACILITY

      public static final String SP_FACILITY
      Search parameter constant for facility

      Description:
      Type: token
      Path: DocumentReference.context.facilityType

      See Also:
    • FACILITY

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam FACILITY
      Fluent Client search parameter constant for facility

      Description:
      Type: token
      Path: DocumentReference.context.facilityType

    • SP_PATIENT

      public static final String SP_PATIENT
      Search parameter constant for patient

      Description:
      Type: reference
      Path: DocumentReference.subject

      See Also:
    • PATIENT

      public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT
      Fluent Client search parameter constant for patient

      Description:
      Type: reference
      Path: DocumentReference.subject

    • SP_SETTING

      public static final String SP_SETTING
      Search parameter constant for setting

      Description:
      Type: token
      Path: DocumentReference.context.practiceSetting

      See Also:
    • SETTING

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam SETTING
      Fluent Client search parameter constant for setting

      Description:
      Type: token
      Path: DocumentReference.context.practiceSetting

    • SP_ENCOUNTER

      public static final String SP_ENCOUNTER
      Search parameter constant for encounter

      Description:
      Type: reference
      Path: DocumentReference.context.encounter

      See Also:
    • ENCOUNTER

      public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER
      Fluent Client search parameter constant for encounter

      Description:
      Type: reference
      Path: DocumentReference.context.encounter

    • SP_RELATESTO_RELATION

      public static final String SP_RELATESTO_RELATION
      Search parameter constant for relatesto-relation

      Description: Combination of relation and relatesTo
      Type: composite
      Path: relatesto & relation

      See Also:
    • RELATESTO_RELATION

      public static final ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.ReferenceClientParam,ca.uhn.fhir.rest.gclient.TokenClientParam> RELATESTO_RELATION
      Fluent Client search parameter constant for relatesto-relation

      Description: Combination of relation and relatesTo
      Type: composite
      Path: relatesto & relation

    • INCLUDE_AUTHENTICATOR

      public static final ca.uhn.fhir.model.api.Include INCLUDE_AUTHENTICATOR
      Constant for fluent queries to be used to add include statements. Specifies the path value of "DocumentReference:authenticator".
    • INCLUDE_AUTHOR

      public static final ca.uhn.fhir.model.api.Include INCLUDE_AUTHOR
      Constant for fluent queries to be used to add include statements. Specifies the path value of "DocumentReference:author".
    • INCLUDE_CUSTODIAN

      public static final ca.uhn.fhir.model.api.Include INCLUDE_CUSTODIAN
      Constant for fluent queries to be used to add include statements. Specifies the path value of "DocumentReference:custodian".
    • INCLUDE_ENCOUNTER

      public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER
      Constant for fluent queries to be used to add include statements. Specifies the path value of "DocumentReference:encounter".
    • INCLUDE_PATIENT

      public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT
      Constant for fluent queries to be used to add include statements. Specifies the path value of "DocumentReference:patient".
    • INCLUDE_RELATESTO

      public static final ca.uhn.fhir.model.api.Include INCLUDE_RELATESTO
      Constant for fluent queries to be used to add include statements. Specifies the path value of "DocumentReference:relatesto".
    • INCLUDE_SUBJECT

      public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT
      Constant for fluent queries to be used to add include statements. Specifies the path value of "DocumentReference:subject".
  • Constructor Details

  • Method Details

    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.hl7.fhir.instance.model.api.IBase
    • getAllPopulatedChildElementsOfType

      public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
      Specified by:
      getAllPopulatedChildElementsOfType in interface ca.uhn.fhir.model.api.ICompositeElement
    • getMasterIdentifier

      Gets the value(s) for masterIdentifier (id). creating it if it does not exist. Will not return null.

      Definition: 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

    • setMasterIdentifier

      Sets the value(s) for masterIdentifier (id)

      Definition: 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

    • getIdentifier

      Gets the value(s) for identifier (id). creating it if it does not exist. Will not return null.

      Definition: Other identifiers associated with the document, including version independent identifiers

    • setIdentifier

      Sets the value(s) for identifier (id)

      Definition: Other identifiers associated with the document, including version independent identifiers

    • addIdentifier

      Adds and returns a new value for identifier (id)

      Definition: Other identifiers associated with the document, including version independent identifiers

    • addIdentifier

      Adds a given new value for identifier (id)

      Definition: Other identifiers associated with the document, including version independent identifiers

      Parameters:
      theValue - The identifier to add (must not be null)
    • getIdentifierFirstRep

      Gets the first repetition for identifier (id), creating it if it does not already exist.

      Definition: Other identifiers associated with the document, including version independent identifiers

    • getSubject

      Gets the value(s) for subject (who.focus). creating it if it does not exist. Will not return null.

      Definition: 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)

    • setSubject

      Sets the value(s) for subject (who.focus)

      Definition: 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)

    • getType

      Gets the value(s) for type (class). creating it if it does not exist. Will not return null.

      Definition: 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.

    • setType

      Sets the value(s) for type (class)

      Definition: 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.

    • getClassElement

      Gets the value(s) for class (class). creating it if it does not exist. Will not return null.

      Definition: 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

    • setClassElement

      Sets the value(s) for class (class)

      Definition: 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

    • getAuthor

      Gets the value(s) for author (who.author). creating it if it does not exist. Will not return null.

      Definition: Identifies who is responsible for adding the information to the document

    • setAuthor

      Sets the value(s) for author (who.author)

      Definition: Identifies who is responsible for adding the information to the document

    • addAuthor

      Adds and returns a new value for author (who.author)

      Definition: Identifies who is responsible for adding the information to the document

    • getCustodian

      Gets the value(s) for custodian (). creating it if it does not exist. Will not return null.

      Definition: Identifies the organization or group who is responsible for ongoing maintenance of and access to the document

    • setCustodian

      Sets the value(s) for custodian ()

      Definition: Identifies the organization or group who is responsible for ongoing maintenance of and access to the document

    • getAuthenticator

      Gets the value(s) for authenticator (who.witness). creating it if it does not exist. Will not return null.

      Definition: Which person or organization authenticates that this document is valid

    • setAuthenticator

      Sets the value(s) for authenticator (who.witness)

      Definition: Which person or organization authenticates that this document is valid

    • getCreatedElement

      public ca.uhn.fhir.model.primitive.DateTimeDt getCreatedElement()
      Gets the value(s) for created (when.done). creating it if it does not exist. Will not return null.

      Definition: When the document was created

    • getCreated

      public Date getCreated()
      Gets the value(s) for created (when.done). creating it if it does not exist. This method may return null.

      Definition: When the document was created

    • setCreated

      public DocumentReference setCreated(ca.uhn.fhir.model.primitive.DateTimeDt theValue)
      Sets the value(s) for created (when.done)

      Definition: When the document was created

    • setCreatedWithSecondsPrecision

      Sets the value for created (when.done)

      Definition: When the document was created

    • setCreated

      public DocumentReference setCreated(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)
      Sets the value for created (when.done)

      Definition: When the document was created

    • getIndexedElement

      public ca.uhn.fhir.model.primitive.InstantDt getIndexedElement()
      Gets the value(s) for indexed (when.recorded). creating it if it does not exist. Will not return null.

      Definition: When the document reference was created

    • getIndexed

      public Date getIndexed()
      Gets the value(s) for indexed (when.recorded). creating it if it does not exist. This method may return null.

      Definition: When the document reference was created

    • setIndexed

      public DocumentReference setIndexed(ca.uhn.fhir.model.primitive.InstantDt theValue)
      Sets the value(s) for indexed (when.recorded)

      Definition: When the document reference was created

    • setIndexedWithMillisPrecision

      Sets the value for indexed (when.recorded)

      Definition: When the document reference was created

    • setIndexed

      public DocumentReference setIndexed(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)
      Sets the value for indexed (when.recorded)

      Definition: When the document reference was created

    • getStatusElement

      public ca.uhn.fhir.model.primitive.BoundCodeDt<DocumentReferenceStatusEnum> getStatusElement()
      Gets the value(s) for status (status). creating it if it does not exist. Will not return null.

      Definition: The status of this document reference

    • getStatus

      public String getStatus()
      Gets the value(s) for status (status). creating it if it does not exist. This method may return null.

      Definition: The status of this document reference

    • setStatus

      public DocumentReference setStatus(ca.uhn.fhir.model.primitive.BoundCodeDt<DocumentReferenceStatusEnum> theValue)
      Sets the value(s) for status (status)

      Definition: The status of this document reference

    • setStatus

      Sets the value(s) for status (status)

      Definition: The status of this document reference

    • getDocStatus

      Gets the value(s) for docStatus (status). creating it if it does not exist. Will not return null.

      Definition: The status of the underlying document

    • setDocStatus

      Sets the value(s) for docStatus (status)

      Definition: The status of the underlying document

    • getRelatesTo

      Gets the value(s) for relatesTo (). creating it if it does not exist. Will not return null.

      Definition: Relationships that this document has with other document references that already exist

    • setRelatesTo

      Sets the value(s) for relatesTo ()

      Definition: Relationships that this document has with other document references that already exist

    • addRelatesTo

      Adds and returns a new value for relatesTo ()

      Definition: Relationships that this document has with other document references that already exist

    • addRelatesTo

      Adds a given new value for relatesTo ()

      Definition: Relationships that this document has with other document references that already exist

      Parameters:
      theValue - The relatesTo to add (must not be null)
    • getRelatesToFirstRep

      Gets the first repetition for relatesTo (), creating it if it does not already exist.

      Definition: Relationships that this document has with other document references that already exist

    • getDescriptionElement

      public ca.uhn.fhir.model.primitive.StringDt getDescriptionElement()
      Gets the value(s) for description (). creating it if it does not exist. Will not return null.

      Definition: Human-readable description of the source document. This is sometimes known as the \"title\"

    • getDescription

      Gets the value(s) for description (). creating it if it does not exist. This method may return null.

      Definition: Human-readable description of the source document. This is sometimes known as the \"title\"

    • setDescription

      public DocumentReference setDescription(ca.uhn.fhir.model.primitive.StringDt theValue)
      Sets the value(s) for description ()

      Definition: Human-readable description of the source document. This is sometimes known as the \"title\"

    • setDescription

      Sets the value for description ()

      Definition: Human-readable description of the source document. This is sometimes known as the \"title\"

    • getSecurityLabel

      Gets the value(s) for securityLabel (). creating it if it does not exist. Will not return null.

      Definition: 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

    • setSecurityLabel

      Sets the value(s) for securityLabel ()

      Definition: 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

    • addSecurityLabel

      Adds and returns a new value for securityLabel ()

      Definition: 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

    • addSecurityLabel

      Adds a given new value for securityLabel ()

      Definition: 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

      Parameters:
      theValue - The securityLabel to add (must not be null)
    • getSecurityLabelFirstRep

      Gets the first repetition for securityLabel (), creating it if it does not already exist.

      Definition: 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

    • getContent

      Gets the value(s) for content (). creating it if it does not exist. Will not return null.

      Definition: The document and format referenced. There may be multiple content element repetitions, each with a different format.

    • setContent

      Sets the value(s) for content ()

      Definition: The document and format referenced. There may be multiple content element repetitions, each with a different format.

    • addContent

      Adds and returns a new value for content ()

      Definition: The document and format referenced. There may be multiple content element repetitions, each with a different format.

    • addContent

      Adds a given new value for content ()

      Definition: The document and format referenced. There may be multiple content element repetitions, each with a different format.

      Parameters:
      theValue - The content to add (must not be null)
    • getContentFirstRep

      Gets the first repetition for content (), creating it if it does not already exist.

      Definition: The document and format referenced. There may be multiple content element repetitions, each with a different format.

    • getContext

      Gets the value(s) for context (). creating it if it does not exist. Will not return null.

      Definition: The clinical context in which the document was prepared

    • setContext

      Sets the value(s) for context ()

      Definition: The clinical context in which the document was prepared

    • getResourceName

      Specified by:
      getResourceName in interface ca.uhn.fhir.model.api.IResource
    • getStructureFhirVersionEnum

      public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum()
      Specified by:
      getStructureFhirVersionEnum in interface org.hl7.fhir.instance.model.api.IBaseResource
      Specified by:
      getStructureFhirVersionEnum in interface ca.uhn.fhir.model.api.IResource