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 stringKind of document 
- categoryArray of stringThe categorization of the document. Pass urn:redox:document_kind|CDAto retrieve XML-formatted CDA documents.
- patientArray of stringWho is the subject of the document 
- patient.identifierArray of stringOne or more external identifiers for the patient 
- dateArray of stringThe date/time this document reference was created 
- encounter-identifierArray of stringIdentifier for encounter associated with documents 
- encounterArray of stringThe encounter associated with the document reference. 
- encounter.identifierArray of stringIdentifier(s) by which this encounter is known 
- identifierArray of stringA master version specific identifier for the document reference 
- periodArray of stringThe time of service that is being documented 
- _elementsArray of stringA comma-separated list of DocumentReference field names to return. This is helpful in reducing the initial response size, especially for DocumentReferences resources where contentcan carry binary data.Redox recommends passing subject,masterIdentifier,date,type,contextto retrieve meaningful fields while still omitting the content which can be retrieved via subsequent searches or GET operations.
- resourceTyperequired, stringIdentifies the type of the resource Value:Bundle
- typerequired, stringIdentifies this bundle as a response to a search Value:searchset
- totalrequired, numberThe total number of matches 
- entryArray of DocumentReference or OtherA resource matching the search criteria or related to a matching resource - resourcerequired, objectA CDA XML document stored in Base64 encoded format - resourceTyperequired, stringIdentifies the type of the resource Value:DocumentReference
- statusrequired, stringThe status of this document reference. Possible Values:current,superseded,entered-in-error
- contentrequired, Array of objectThe document and format referenced. There may be multiple content element repetitions, each with a different format. - attachmentrequired, objectThe document or URL of the document along with critical metadata to prove content has integrity. - contentTypestringIdentifies 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
- datastringThe actual data of the attachment - a sequence of bytes, base64 encoded. 
 
 
- idstringThe logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes. 
- masterIdentifierobjectDocument 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, CodingMay 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, stringSource of the definition for the extension code - a logical name or a URL. 
- valueBooleanbooleanA single value for the extension. 
 
- usestringThe purpose of this identifier. Possible Values:usual,official,temp,secondary,old (If known)
- systemstringEstablishes the namespace for the value - that is, a URL that describes a set values that are unique. 
- valuestringThe portion of the identifier typically relevant to the user and which is unique within the context of the system. 
 
- typeobjectSpecifies 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 objectA reference to a code defined by a terminology system. - systemstringThe identification of the code system that defines the meaning of the symbol in the code. 
- codestringA 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). 
 
- textstringA 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 objectA 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 objectA reference to a code defined by a terminology system. - systemrequired, stringThe identification of the code system that defines the meaning of the symbol in the code. Value:urn:redox:document_kind
- coderequired, stringA 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
 
- textstringA 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. 
 
- subjectobjectWho 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
 - referencestringA 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.
 
- datestringWhen the document reference was created. 
- authorArray of objectIdentifies 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
 - referencestringA 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.
 
- authenticatorobjectWhich person or organization authenticates that this document is valid. Must reference one of the following types of resources: - Practitioner
- PractitionerRole
- Organization
 - referencestringA 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 objectRelationships that this document has with other document references that already exist. - coderequired, stringThe type of relationship that this document has with anther document. Possible Values:replaces,transforms,signs,appends
- targetrequired, objectThe target document of this relationship. Must be a resource of type DocumentReference.- extensionArray of objectAdditional information about the related document - urlrequired, stringSource of the definition for the extension code - a logical name or a URL. Value:http://hl7.org/fhir/us/ccda/StructureDefinition/VersionNumber
- valueIntegernumberValue of extension - must be one of a constrained set of the data types (see Extensibility for a list). 
 
- identifierobjectAn 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, CodingMay 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, stringSource of the definition for the extension code - a logical name or a URL. 
- valueBooleanbooleanA single value for the extension. 
 
- usestringThe purpose of this identifier. Possible Values:usual,official,temp,secondary,old (If known)
- systemstringEstablishes the namespace for the value - that is, a URL that describes a set values that are unique. 
- valuestringThe portion of the identifier typically relevant to the user and which is unique within the context of the system. 
 
 
 
- descriptionstringHuman-readable description of the source document. 
- contextobjectThe clinical context in which the document was prepared. - encounterArray of objectDescribes 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
 - identifierobjectAn 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, CodingMay 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, stringSource of the definition for the extension code - a logical name or a URL. 
- valueBooleanbooleanA single value for the extension. 
 
- usestringThe purpose of this identifier. Possible Values:usual,official,temp,secondary,old (If known)
- systemstringEstablishes the namespace for the value - that is, a URL that describes a set values that are unique. 
- valuestringThe portion of the identifier typically relevant to the user and which is unique within the context of the system. 
 
 
- periodobjectThe time period over which the service that is described by the document was provided. - startstringThe start of the period. The boundary is inclusive. 
- endstringThe 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, objectInformation about the search process that lead to the creation of this entry. - moderequired, stringIdentifies 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.