US Core Implementation Guide, published by HL7 International / Cross-Group Projects. This guide is not an authorized publication; it is the continuous build for version 10.0.0-ballot built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/US-Core/ and changes regularly. See the Directory of published versions
| Page standards status: Informative |
The conformance verbs used below describe the intended semantics if the content is adopted, but they carry no US Core conformance or certification requirements until the page standards status changes from 'informative'.
$submit-bundle is an optional operation for writing documents, based on the Submit CGM Bundle Operation in the FHIR Continuous Glucose Monitoring guide. It combines two behaviors that neither a standard batch nor a standard transaction provides together: references between entries resolve within the Bundle, and the server can accept part of the submission.
The $submit-bundle transport mechanism uses the FHIR operation interaction, through HTTP POST, to invoke the $submit-bundle operation on the DocumentReference resource type, as defined in this guide. It lets a client include additional FHIR resources in a submission, such as discrete Observation resources.
http://hl7.org/fhir/us/core/OperationDefinition/us-core-documentreference-submit-bundlesubmit-bundlePOST [base]/DocumentReference/$submit-bundle| Name | Cardinality | Type | Use | Documentation |
|---|---|---|---|---|
resource |
1..1 | Bundle |
in | A Bundle with Bundle.type of collection containing the focal DocumentReference and any supporting resources. |
return |
0..1 | DocumentReference |
out | The persisted DocumentReference as accepted by the server. |
When an operation has a single input parameter that is a resource, the client can post the resource directly or as a Parameters resource containing the resource parameter.
Client Requirements
Bundle.type to collection.DocumentReference in the Bundle.DocumentReference as the first entry.fullUrl for every entry.urn:uuid: values in fullUrl for resources that don't yet exist on the server.Server Requirements
Guidance
DocumentReference is the focal resource of the submission and has the same requirements as one submitted with RESTful create. See the Required and Must-Support Elements for details. All other entries are supporting resources related to it, such as Observations reported in the attached document.Bundle, references between entries resolve to other entries by fullUrl or to resources on the server.Server Requirements
DocumentReference under the same rules as one submitted with RESTful create, including the processing expectation, submission modes, solicitation, and documented support.201 Created and a Location header for the DocumentReference when it is available on return, or 202 Accepted when it is held for review.OperationOutcome describing the reason.DocumentReference without accepting the supporting resources.DocumentReference in the response body.Guidance
transaction. A server can keep the document and drop supporting resources it doesn't support, rather than rejecting the whole submission.Request: POST [base]/DocumentReference/$submit-bundle
{
"resourceType" : "Bundle",
"type" : "collection",
"entry" : [ {
"fullUrl" : "urn:uuid:0f9f4e1c-5c9c-4d3c-9a3d-8e3b1a7c4a01",
"resource" : {
"resourceType" : "DocumentReference",
"status" : "current",
"type" : {
"coding" : [ {
"system" : "http://loinc.org",
"code" : "73985-4",
"display" : "Exercise Activity"
} ]
},
"category" : [ {
"coding" : [ {
"system" : "http://hl7.org/fhir/us/core/CodeSystem/us-core-documentreference-category",
"code" : "medical-history",
"display" : "Medical History"
} ]
} ],
"subject" : {
"reference" : "Patient/512cd664-6cd2-4a56-b462-0133464ffaa0"
},
"date" : "2026-07-21T00:00:00Z",
"description" : "July 2026 activity data report for Lin Zhang.",
"content" : [ {
"attachment" : {
"contentType" : "application/pdf",
"url" : "http://example.org/documents/activity-202607.pdf",
"title" : "Lin Zhang activity report for July 2026",
"creation" : "2026-07-21T00:00:00Z"
}
} ]
}
}, {
"fullUrl" : "urn:uuid:0f9f4e1c-5c9c-4d3c-9a3d-8e3b1a7c4a02",
"resource" : {
"resourceType" : "Observation",
"status" : "final",
"category" : [ {
"coding" : [ {
"system" : "http://terminology.hl7.org/CodeSystem/observation-category",
"code" : "activity"
} ]
} ],
"code" : {
"coding" : [ {
"system" : "http://loinc.org",
"code" : "55423-8",
"display" : "Number of steps in unspecified time Pedometer"
} ]
},
"subject" : {
"reference" : "Patient/512cd664-6cd2-4a56-b462-0133464ffaa0"
},
"effectiveDateTime" : "2026-07-20",
"valueQuantity" : {
"value" : 8214,
"unit" : "steps"
},
"derivedFrom" : [ {
"reference" : "urn:uuid:0f9f4e1c-5c9c-4d3c-9a3d-8e3b1a7c4a01"
} ]
}
} ]
}
Response: 201 OK with the Location header and the persisted DocumentReference as the body.