This resource contains metadata for any kind of document so that you can locate the document in a system. Typically, you may use this as a reference in another resource type that includes the subject, author, and context for a related document.
You may want to use this resource if:
- You want raw XML data.
- You want to pick which documents to view or retrieve.
If you’re familiar with our Redox data models, this is the FHIR® representation of the ClinicalSummary.DocumentGet. Refer to the DocumentGet schema. Or, if you only want to retrieve the patient’s latest CDA, refer to the PatientQuery schema.
You can review, retrieve, create, or edit document records.
_search
Query for details about a document for a patient, visit, or other clinical concept from one provider. Learn about:
- searching for documents (including transition of care documents)
For data on demand searches, you must include at least one of these query parameters:
- FHIR® resource ID for Patient resource (learn about FHIR® references or review HL7's docs on references)
- _id
- identifier (learn about handling FHIR® identifiers)
cURL request example
Request Body Schema
- typeArray of string
Kind of document
- categoryArray of string
The categorization of the document. Pass
urn:redox:document_kind|CDA
to retrieve XML-formatted CDA documents. - patientArray of string
Who is the subject of the document
- patient.identifierArray of string
One or more external identifiers for the patient
- dateArray of string
The date/time this document reference was created
- encounter-identifierArray of string
Identifier for encounter associated with documents
- encounterArray of string
The encounter associated with the document reference.
- encounter.identifierArray of string
Identifier(s) by which this encounter is known
- identifierArray of string
A master version specific identifier for the document reference
- periodArray of string
The time of service that is being documented
- _elementsArray of string
A comma-separated list of DocumentReference field names to return. This is helpful in reducing the initial response size, especially for DocumentReferences resources where
content
can carry binary data.Redox recommends passing
subject,masterIdentifier,date,type,context
to retrieve meaningful fields while still omitting the content which can be retrieved via subsequent searches or GET operations.
- resourceTyperequired, string
Identifies the type of the resource
Value:Bundle
- typerequired, string
Identifies this bundle as a response to a search
Value:searchset
- totalrequired, number
The total number of matches
- entryArray of DocumentReference or Other
A resource matching the search criteria or related to a matching resource
- resourcerequired, object
A CDA XML document stored in Base64 encoded format
- resourceTyperequired, string
Identifies the type of the resource
Value:DocumentReference
- statusrequired, string
The status of this document reference.
Possible Values:current
,superseded
,entered-in-error
- contentrequired, Array of object
The document and format referenced. There may be multiple content element repetitions, each with a different format.
- attachmentrequired, object
The document or URL of the document along with critical metadata to prove content has integrity.
- contentTypestring
Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate.
Value:text/xml
- datastring
The actual data of the attachment - a sequence of bytes, base64 encoded.
- idstring
The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
- masterIdentifierobject
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.
- extensionArray of Boolean, String, CodeableConcept, Coding
May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
- urlrequired, string
Source of the definition for the extension code - a logical name or a URL.
- valueBooleanboolean
A single value for the extension.
- usestring
The purpose of this identifier.
Possible Values:usual
,official
,temp
,secondary
,old (If known)
- systemstring
Establishes the namespace for the value - that is, a URL that describes a set values that are unique.
- valuestring
The portion of the identifier typically relevant to the user and which is unique within the context of the system.
- typeobject
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.
- codingArray of object
A reference to a code defined by a terminology system.
- systemstring
The identification of the code system that defines the meaning of the symbol in the code.
- codestring
A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).
- textstring
A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.
- categoryArray of object
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.
- codingArray of object
A reference to a code defined by a terminology system.
- systemrequired, string
The identification of the code system that defines the meaning of the symbol in the code.
Value:urn:redox:document_kind
- coderequired, string
A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).
Value:CDA
- textstring
A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.
- subjectobject
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).
Must reference one of the following types of resources:
Patient
Practitioner
Group
Device
- referencestring
A reference to another resource. This is typically either a relative reference which includes the resource type and ID, or an internal reference which starts with
#
and refers to a contained resource.
- datestring
When the document reference was created.
- authorArray of object
Identifies who is responsible for adding the information to the document.
Must reference one of the following types of resources:
Practitioner
PractitionerRole
Organization
Device
Patient
RelatedPerson
- referencestring
A reference to another resource. This is typically either a relative reference which includes the resource type and ID, or an internal reference which starts with
#
and refers to a contained resource.
- authenticatorobject
Which person or organization authenticates that this document is valid.
Must reference one of the following types of resources:
Practitioner
PractitionerRole
Organization
- referencestring
A reference to another resource. This is typically either a relative reference which includes the resource type and ID, or an internal reference which starts with
#
and refers to a contained resource.
- relatesToArray of object
Relationships that this document has with other document references that already exist.
- coderequired, string
The type of relationship that this document has with anther document.
Possible Values:replaces
,transforms
,signs
,appends
- targetrequired, object
The target document of this relationship.
Must be a resource of type
DocumentReference
.- extensionArray of object
Additional information about the related document
- urlrequired, string
Source of the definition for the extension code - a logical name or a URL.
Value:http://hl7.org/fhir/us/ccda/StructureDefinition/VersionNumber
- valueIntegernumber
Value of extension - must be one of a constrained set of the data types (see Extensibility for a list).
- identifierobject
An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents 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.
- extensionArray of Boolean, String, CodeableConcept, Coding
May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
- urlrequired, string
Source of the definition for the extension code - a logical name or a URL.
- valueBooleanboolean
A single value for the extension.
- usestring
The purpose of this identifier.
Possible Values:usual
,official
,temp
,secondary
,old (If known)
- systemstring
Establishes the namespace for the value - that is, a URL that describes a set values that are unique.
- valuestring
The portion of the identifier typically relevant to the user and which is unique within the context of the system.
- descriptionstring
Human-readable description of the source document.
- contextobject
The clinical context in which the document was prepared.
- encounterArray of object
Describes the clinical encounter or type of care that the document content is associated with.
Must reference one of the following types of resources:
Encounter
EpisodeOfCare
- identifierobject
An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents 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.
- extensionArray of Boolean, String, CodeableConcept, Coding
May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
- urlrequired, string
Source of the definition for the extension code - a logical name or a URL.
- valueBooleanboolean
A single value for the extension.
- usestring
The purpose of this identifier.
Possible Values:usual
,official
,temp
,secondary
,old (If known)
- systemstring
Establishes the namespace for the value - that is, a URL that describes a set values that are unique.
- valuestring
The portion of the identifier typically relevant to the user and which is unique within the context of the system.
- periodobject
The time period over which the service that is described by the document was provided.
- startstring
The start of the period. The boundary is inclusive.
- endstring
The end of the period. If the end of the period is missing, it means no end was known or planned at the time the instance was created. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time.
- searchrequired, object
Information about the search process that lead to the creation of this entry.
- moderequired, string
Identifies the DocumentReference as matching the search parameters
Value:match
This response type only supports documents in XML format, which is the standard format for CDA documents.