---
title: Consolidated Message Examples
slug: xdr/guide/consolidated-message-examples
docTags: 
createdAt: 2026-07-30T21:09:39.181Z
---

This section collects the message examples used throughout the guide into one place and arranges them in the order they occur in a live exchange. It also adds complete examples for scenarios the body describes but does not show in full: a complete failure Delivery Status Notification (DSN) and a complete received message. Each entry notes the section where the example is introduced or discussed.

All examples use the synthetic, illustrative data described in the guide (Example Clinic sending to Example Hospital, patient Jane Doe). The same original message identifier (urn\:uuid:7f4d7c90-d803-4c33-b053-92f77a59c10f) and DSN identifier appear across the examples, so a single message can be traced from submission through delivery notification and acknowledgement.

## Index of Examples

| **Description**                                                                                                                        | **Direction**    | **Format**      |
| -------------------------------------------------------------------------------------------------------------------------------------- | ---------------- | --------------- |
| [Message Identification Headers (MessageID / RelatesTo)](docId\:xZ0MTs_W6FVT5WxkvD-Q0)                                                 | Send             | XML fragment    |
| [Patient Identifier in HL7 CX Format](docId\:xZ0MTs_W6FVT5WxkvD-Q0)                                                                    | Send             | Text            |
| [Submitting a Message With Curl (Mutual TLS)](docId\:xZ0MTs_W6FVT5WxkvD-Q0)                                                            | Send (transport) | Shell           |
| [Synchronous Failure Response (RegistryResponse with a RegistryErrorList)](docId\:xZ0MTs_W6FVT5WxkvD-Q0)                               | Response (sync)  | XML             |
| [Synchronous Success Response (No Delivery Notification Tracking)](docId\:xZ0MTs_W6FVT5WxkvD-Q0)                                       | Response (sync)  | XML             |
| [Illustrative Incoming Address Block: Two Recipients Hosted by the Same Receiving System](docId\:XyQrOSGPZ8458uzH0p8sU)                | Receive          | XML fragment    |
| [Direct\:Notification in the Address Block, Linking the DSN to the Original Message](docId\:XyQrOSGPZ8458uzH0p8sU)                     | Return (DSN)     | XML fragment    |
| [DSN Success Disposition (Before Base64 Encoding)](docId\:XyQrOSGPZ8458uzH0p8sU)                                                       | Return (DSN)     | XML             |
| [DSN Failure Disposition With a Reason (Before Base64 Encoding)](docId\:XyQrOSGPZ8458uzH0p8sU)                                         | Return (DSN)     | XML             |
| [Acknowledgment of the DSN (Synchronous Response)](docId\:XyQrOSGPZ8458uzH0p8sU)                                                       | Return (sync)    | XML             |
| [Complete Submission: Minimal Metadata With Document Classifications, MTOM (Attachment Payload Omitted)](docId:4pSAzF9OZZ3BbPh9NMOB7)  | Send             | Multipart / XML |
| [Complete DSN message (Success)](docId:4pSAzF9OZZ3BbPh9NMOB7)                                                                          | Return (DSN)     | Multipart / XML |
| [Complete DSN Message (Failure)](docId:4pSAzF9OZZ3BbPh9NMOB7)                                                                          | Return (DSN)     | Multipart / XML |
| [Complete Received Message (As Delivered to the Receiving System)](docId:4pSAzF9OZZ3BbPh9NMOB7)                                        | Receive          | Multipart / XML |

## End-to-End Exchange (Happy Path, with Delivery Notification)

The happy-path exchange proceeds in four steps, and the same original message identifier links every step. The full submission and DSN messages are shown after the steps below; the shorter responses are shown inline here.

### Step 1 - The sender submits the message.&#x20;

The customer POSTs the complete Provide and Register Document Set-b request (MTOM / multipart/related) to Surescripts. The full message is in [Complete Submission Message](docId:4pSAzF9OZZ3BbPh9NMOB7), and the curl transport is in the [Submitting a Message With Curl (Mutual TLS)](docId\:xZ0MTs_W6FVT5WxkvD-Q0) example. Its MessageID is urn\:uuid:7f4d7c90-d803-4c33-b053-92f77a59c10f.

### Step 2 - Surescripts returns the synchronous response.&#x20;

Surescripts accepts the message and returns a synchronous Success response whose RelatesTo carries the original MessageID. If the message could not be accepted, Surescripts would instead return a Failure response ([Synchronous Failure Response (RegistryResponse with a RegistryErrorList)](docId\:xZ0MTs_W6FVT5WxkvD-Q0) Example).

:::CodeblockTabs
Synchronous Success response&#x20;

```xml
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"
    xmlns:a="http://www.w3.org/2005/08/addressing">
    <s:Header>
        <a:Action s:mustUnderstand="1">urn:ihe:iti:2007:ProvideAndRegisterDocumentSet-bResponse</a:Action>
        <a:RelatesTo>urn:uuid:7f4d7c90-d803-4c33-b053-92f77a59c10f</a:RelatesTo>
    </s:Header>
    <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:xsd="http://www.w3.org/2001/XMLSchema">
        <RegistryResponse status="urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Success"
            xmlns="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0"/>
    </s:Body>
</s:Envelope>
```
:::

### Step 3 - Surescripts returns the DSN.&#x20;

Once delivery is determined, Surescripts sends the asynchronous DSN back toward the sender as its own Provide and Register Document Set-b transaction. The DSN's RelatesTo and direct\:notification both carry the original MessageID, and the DSN has its own MessageID. See the complete success DSN and failure variant examples in this section

### Step 4 - The sender acknowledges the DSN.&#x20;

The sender returns a synchronous acknowledgement whose RelatesTo carries the DSN's MessageID, closing the workflow.

:::CodeblockTabs
DSN acknowledgement

```xml
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"
    xmlns:a="http://www.w3.org/2005/08/addressing">
    <s:Header>
        <a:Action s:mustUnderstand="1">urn:ihe:iti:2007:ProvideAndRegisterDocumentSet-bResponse</a:Action>
        <a:RelatesTo>urn:uuid:2c8b0e13-9f1a-4b6e-8b5a-6d7e8f901234</a:RelatesTo>
    </s:Header>
    <s:Body>
        <RegistryResponse status="urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Success"
            xmlns="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0"/>
    </s:Body>
</s:Envelope>
```
:::

**Failure path.** If the submission is rejected at Step 2, Surescripts returns [Synchronous Failure Response (RegistryResponse with a RegistryErrorList)](docId\:xZ0MTs_W6FVT5WxkvD-Q0) instead of the Success response, and no DSN follows ([Synchronous Failure Response](docId\:daGa7Uw8ataRiYlZ3RtU9)). If the message is accepted but delivery later fails, Step 3 returns a failure DSN ([Complete DSN Message (Failure)](docId:4pSAzF9OZZ3BbPh9NMOB7)) rather than a success DSN.

## Complete Submission Message

This is the complete submission referenced by [Complete Referral Example](docId\:xZ0MTs_W6FVT5WxkvD-Q0) a referral carrying a C-CDA clinical summary, modeled on a validated production-style message. It uses minimal metadata (note the limitedMetadata classification nodes) while still including the document classifications that full-featured senders commonly send. The C-CDA payload is omitted, with a comment marking where it belongs.

### Complete Submission: Minimal Metadata With Document Classifications, MTOM (Attachment Payload Omitted) Example

:::CodeblockTabs
Example

```xml
Content-Type: multipart/related; type="application/xop+xml"; start="<http://tempuri.org/0>"; start-info="application/soap+xml"; boundary="MIMEBoundary_xdr_example"

--MIMEBoundary_xdr_example
Content-ID: <http://tempuri.org/0>
Content-Transfer-Encoding: 8bit
Content-Type: application/xop+xml; charset=utf-8; type="application/soap+xml"
MIME-Version: 1.0

<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"
            xmlns:a="http://www.w3.org/2005/08/addressing">
  <s:Header>
    <a:Action s:mustUnderstand="1">urn:ihe:iti:2007:ProvideAndRegisterDocumentSet-b</a:Action>
    <a:MessageID>urn:uuid:7f4d7c90-d803-4c33-b053-92f77a59c10f</a:MessageID>
    <a:ReplyTo><a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address></a:ReplyTo>
    <a:To s:mustUnderstand="1">https://[xdr-endpoint-provided-at-onboarding]/DocumentRepository_Service.svc</a:To>
    <direct:addressBlock s:role="urn:direct:addressing:destination" s:relay="1"
                         xmlns:direct="urn:direct:addressing">
      <direct:from>dr.smith@direct.example-clinic.com</direct:from>
      <direct:to>intake@direct.example-hospital.com</direct:to>
      <direct:metadata-level>minimal</direct:metadata-level>
    </direct:addressBlock>
  </s:Header>
  <s:Body>
    <ProvideAndRegisterDocumentSetRequest xmlns="urn:ihe:iti:xds-b:2007">
      <SubmitObjectsRequest xmlns="urn:oasis:names:tc:ebxml-regrep:xsd:lcm:3.0">
        <RegistryObjectList xmlns="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0">

          <!-- ===== Document Entry: the referral C-CDA ===== -->
          <ExtrinsicObject id="doc-1" mimeType="text/xml"
                           objectType="urn:uuid:7edca82f-054d-47f2-a032-9b2a5b5186c1"
                           status="urn:oasis:names:tc:ebxml-regrep:StatusType:Approved">
            <Slot name="creationTime"><ValueList><Value>20260722200019</Value></ValueList></Slot>
            <Slot name="languageCode"><ValueList><Value>en-US</Value></ValueList></Slot>
            <Slot name="sourcePatientId">
              <ValueList><Value>PATID1234^^^&amp;1.3.6.1.4.1.99999.1&amp;ISO</Value></ValueList>
            </Slot>
            <Slot name="sourcePatientInfo">
              <ValueList>
                <Value>PID-3|PATID1234^^^&amp;1.3.6.1.4.1.99999.1&amp;ISO</Value>
                <Value>PID-5|Doe^Jane^^^^^L</Value>
                <Value>PID-7|19600615</Value>
                <Value>PID-8|F</Value>
                <Value>PID-11|123 Main St^^Portland^OR^97201^US</Value>
              </ValueList>
            </Slot>
            <Slot name="hash"><ValueList><Value>28f1b1d1d49a85bdd7a7cb4d7d87eb5d93b8ef45</Value></ValueList></Slot>
            <Slot name="size"><ValueList><Value>36100</Value></ValueList></Slot>
            <Name><LocalizedString value="Cardiology Referral"/></Name>
            <!-- limitedMetadata marker (minimal metadata) -->
            <Classification classifiedObject="doc-1" id="cl-doc-limited"
                            classificationNode="urn:uuid:ab9b591b-83ab-4d03-8f5d-f93b1fb92e85"/>
            <!-- author -->
            <Classification classificationScheme="urn:uuid:93606bcf-9494-43ec-9b4e-a7748d1a838d"
                            classifiedObject="doc-1" id="cl-doc-author" nodeRepresentation="">
              <Slot name="authorPerson"><ValueList><Value>E12345^Smith^John^^^^MD^^&amp;2.16.840.1.113883.3.9999.2&amp;ISO</Value></ValueList></Slot>
              <Slot name="authorInstitution"><ValueList><Value>Example Clinic^^^^^&amp;2.16.840.1.113883.3.9999&amp;ISO^^^^0001</Value></ValueList></Slot>
            </Classification>
            <!-- classCode -->
            <Classification classificationScheme="urn:uuid:41a5887f-8865-4c09-adf7-e362475b143a"
                            classifiedObject="doc-1" id="cl-doc-class" nodeRepresentation="57133-1">
              <Slot name="codingScheme"><ValueList><Value>2.16.840.1.113883.6.1</Value></ValueList></Slot>
              <Name><LocalizedString value="Referral Note"/></Name>
            </Classification>
            <!-- confidentialityCode -->
            <Classification classificationScheme="urn:uuid:f4f85eac-e6cb-4883-b524-f2705394840f"
                            classifiedObject="doc-1" id="cl-doc-conf" nodeRepresentation="N">
              <Slot name="codingScheme"><ValueList><Value>2.16.840.1.113883.5.25</Value></ValueList></Slot>
              <Name><LocalizedString value="Normal"/></Name>
            </Classification>
            <!-- formatCode -->
            <Classification classificationScheme="urn:uuid:a09d5840-386c-46f2-b5ad-9c3699a4309d"
                            classifiedObject="doc-1" id="cl-doc-format" nodeRepresentation="urn:hl7-org:sdwg:ccda-structuredBody:2.1">
              <Slot name="codingScheme"><ValueList><Value>1.3.6.1.4.1.19376.1.2.3</Value></ValueList></Slot>
              <Name><LocalizedString value="HL7 C-CDA structured body"/></Name>
            </Classification>
            <!-- healthcareFacilityTypeCode -->
            <Classification classificationScheme="urn:uuid:f33fb8ac-18af-42cc-ae0e-ed0b0bdb91e1"
                            classifiedObject="doc-1" id="cl-doc-hft" nodeRepresentation="394747008">
              <Slot name="codingScheme"><ValueList><Value>2.16.840.1.113883.6.96</Value></ValueList></Slot>
              <Name><LocalizedString value="Ambulatory care site"/></Name>
            </Classification>
            <!-- practiceSettingCode -->
            <Classification classificationScheme="urn:uuid:cccf5598-8b07-4b77-a05e-ae952c785ead"
                            classifiedObject="doc-1" id="cl-doc-ps" nodeRepresentation="394579002">
              <Slot name="codingScheme"><ValueList><Value>2.16.840.1.113883.6.96</Value></ValueList></Slot>
              <Name><LocalizedString value="Cardiology"/></Name>
            </Classification>
            <!-- typeCode -->
            <Classification classificationScheme="urn:uuid:f0306f51-975f-434e-a61c-c59651d33983"
                            classifiedObject="doc-1" id="cl-doc-type" nodeRepresentation="57133-1">
              <Slot name="codingScheme"><ValueList><Value>2.16.840.1.113883.6.1</Value></ValueList></Slot>
              <Name><LocalizedString value="Referral Note"/></Name>
            </Classification>
            <!-- DocumentEntry.patientId -->
            <ExternalIdentifier identificationScheme="urn:uuid:58a6f841-87b3-4a3e-92fd-a8ffeff98427"
                                registryObject="doc-1" id="ei-doc-pid"
                                value="PATID1234^^^&amp;1.3.6.1.4.1.99999.1&amp;ISO">
              <Name><LocalizedString value="XDSDocumentEntry.patientId"/></Name>
            </ExternalIdentifier>
            <!-- DocumentEntry.uniqueId -->
            <ExternalIdentifier identificationScheme="urn:uuid:2e82c1f6-a085-4c72-9da3-8640a32e42ab"
                                registryObject="doc-1" id="ei-doc-uid"
                                value="2.16.840.1.113883.3.9999.1.100001">
              <Name><LocalizedString value="XDSDocumentEntry.uniqueId"/></Name>
            </ExternalIdentifier>
          </ExtrinsicObject>

          <!-- ===== Submission Set ===== -->
          <RegistryPackage id="SubmissionSet01"
                           status="urn:oasis:names:tc:ebxml-regrep:StatusType:Approved">
            <Slot name="submissionTime"><ValueList><Value>20260722200019</Value></ValueList></Slot>
            <Slot name="intendedRecipient">
              <ValueList><Value>Example Hospital^^^^^&amp;2.16.840.1.113883.3.9999.3&amp;ISO^^^^0002||^^Internet^intake@direct.example-hospital.com</Value></ValueList>
            </Slot>
            <Name><LocalizedString value="Cardiology referral"/></Name>
            <!-- author (with role and specialty) -->
            <Classification classificationScheme="urn:uuid:a7058bb9-b4e4-4307-ba5b-e3f0ab85e12d"
                            classifiedObject="SubmissionSet01" id="cl-ss-author" nodeRepresentation="">
              <Slot name="authorPerson"><ValueList><Value>E12345^Smith^John^^^^MD^^&amp;2.16.840.1.113883.3.9999.2&amp;ISO</Value></ValueList></Slot>
              <Slot name="authorInstitution"><ValueList><Value>Example Clinic^^^^^&amp;2.16.840.1.113883.3.9999&amp;ISO^^^^0001</Value></ValueList></Slot>
              <Slot name="authorRole"><ValueList><Value>Referring Physician</Value></ValueList></Slot>
              <Slot name="authorSpecialty"><ValueList><Value>Cardiology</Value></ValueList></Slot>
              <Slot name="authorTelecommunication"><ValueList><Value>^^Internet^dr.smith@direct.example-clinic.com</Value></ValueList></Slot>
            </Classification>
            <!-- contentTypeCode -->
            <Classification classificationScheme="urn:uuid:aa543740-bdda-424e-8c96-df4873be8500"
                            classifiedObject="SubmissionSet01" id="cl-ss-content" nodeRepresentation="57133-1">
              <Slot name="codingScheme"><ValueList><Value>2.16.840.1.113883.6.1</Value></ValueList></Slot>
              <Name><LocalizedString value="Referral Note"/></Name>
            </Classification>
            <!-- limitedMetadata marker (minimal metadata) -->
            <Classification classifiedObject="SubmissionSet01" id="cl-ss-limited"
                            classificationNode="urn:uuid:5003a9db-8d8d-49e6-bf0c-990e34ac7707"/>
            <!-- SubmissionSet.sourceId -->
            <ExternalIdentifier identificationScheme="urn:uuid:554ac39e-e3fe-47fe-b233-965d2a147832"
                                registryObject="SubmissionSet01" id="ei-ss-src"
                                value="2.16.840.1.113883.3.9999.1">
              <Name><LocalizedString value="XDSSubmissionSet.sourceId"/></Name>
            </ExternalIdentifier>
            <!-- SubmissionSet.uniqueId -->
            <ExternalIdentifier identificationScheme="urn:uuid:96fdda7c-d067-4183-912e-bf5ee74998a8"
                                registryObject="SubmissionSet01" id="ei-ss-uid"
                                value="2.16.840.1.113883.3.9999.1.1">
              <Name><LocalizedString value="XDSSubmissionSet.uniqueId"/></Name>
            </ExternalIdentifier>
            <!-- SubmissionSet.patientId -->
            <ExternalIdentifier identificationScheme="urn:uuid:6b5aea1a-874d-4603-a4bc-96a0a7b38446"
                                registryObject="SubmissionSet01" id="ei-ss-pid"
                                value="PATID1234^^^&amp;1.3.6.1.4.1.99999.1&amp;ISO">
              <Name><LocalizedString value="XDSSubmissionSet.patientId"/></Name>
            </ExternalIdentifier>
          </RegistryPackage>

          <!-- Classifies the RegistryPackage as a Submission Set -->
          <Classification classifiedObject="SubmissionSet01" id="cl-ss-node"
                          classificationNode="urn:uuid:a54d6aa5-d40d-43f9-88c5-b4633d873bdd"/>

          <!-- The document is a member of the submission set -->
          <Association associationType="urn:oasis:names:tc:ebxml-regrep:AssociationType:HasMember"
                       sourceObject="SubmissionSet01" targetObject="doc-1" id="as-01">
            <Slot name="SubmissionSetStatus"><ValueList><Value>Original</Value></ValueList></Slot>
          </Association>

        </RegistryObjectList>
      </SubmitObjectsRequest>

      <!-- Referral C-CDA, carried as a separate MIME part via MTOM/XOP.
           The binary payload is omitted here; see the second MIME part below. -->
      <Document id="doc-1">
        <xop:Include href="cid:http://tempuri.org/1" xmlns:xop="http://www.w3.org/2004/08/xop/include"/>
      </Document>

    </ProvideAndRegisterDocumentSetRequest>
  </s:Body>
</s:Envelope>

--MIMEBoundary_xdr_example
Content-ID: <http://tempuri.org/1>
Content-Transfer-Encoding: binary
Content-Type: text/xml

***** The referral C-CDA document bytes belong here. *****
The binary content of the referral attachment is omitted from this example.
This MIME part is referenced by the <xop:Include> element in the Document above.
--MIMEBoundary_xdr_example--

```
:::

:::hint{type="info"}
**Note:** This example is for illustrative purposes only, and represents one valid way to construct a message; other structures and metadata combinations are equally valid. Addresses, OIDs, identifiers, demographics, and code values are samples, and the referral document content is omitted where indicated.
:::

## Complete DSN Message - Success

This is the complete success DSN referenced by [Full DSN Message](docId\:XyQrOSGPZ8458uzH0p8sU), delivered as its own ProvideAndRegisterDocumentSet-b transaction back toward the original sender. The a\:RelatesTo header and the direct\:notification element both carry the original message's MessageID, and the Base64-encoded Document decodes to the success disposition.

### Complete DSN Message Example

:::CodeblockTabs
Example

```xml
Content-Type: multipart/related; type="application/xop+xml"; start="<http://tempuri.org/0>"; start-info="application/soap+xml"; boundary="MIMEBoundary_dsn_example"

--MIMEBoundary_dsn_example
Content-ID: <http://tempuri.org/0>
Content-Transfer-Encoding: 8bit
Content-Type: application/xop+xml; charset=utf-8; type="application/soap+xml"

<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"
            xmlns:a="http://www.w3.org/2005/08/addressing">
  <s:Header>
    <a:Action s:mustUnderstand="1">urn:ihe:iti:2007:ProvideAndRegisterDocumentSet-b</a:Action>
    <a:MessageID>urn:uuid:2c8b0e13-9f1a-4b6e-8b5a-6d7e8f901234</a:MessageID>
    <a:RelatesTo>urn:uuid:7f4d7c90-d803-4c33-b053-92f77a59c10f</a:RelatesTo>
    <a:From><a:Address>urn:oid:2.16.840.1.113883.3.9999.3</a:Address></a:From>
    <a:ReplyTo><a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address></a:ReplyTo>
    <direct:addressBlock s:role="urn:direct:addressing:destination" s:relay="1"
                         xmlns:direct="urn:direct:addressing">
      <direct:from>intake@direct.example-hospital.com</direct:from>
      <direct:to>dr.smith@direct.example-clinic.com</direct:to>
      <direct:metadata-level>minimal</direct:metadata-level>
      <direct:notification relatesTo="urn:uuid:7f4d7c90-d803-4c33-b053-92f77a59c10f"/>
    </direct:addressBlock>
    <a:To s:mustUnderstand="1">https://xdr.example-clinic.com/DocumentRepository_Service.svc</a:To>
  </s:Header>
  <s:Body>
    <ProvideAndRegisterDocumentSetRequest xmlns="urn:ihe:iti:xds-b:2007">
      <SubmitObjectsRequest xmlns="urn:oasis:names:tc:ebxml-regrep:xsd:lcm:3.0">
        <RegistryObjectList xmlns="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0">
          <RegistryPackage id="SubmissionSet01"
                           status="urn:oasis:names:tc:ebxml-regrep:StatusType:Approved">
            <Slot name="submissionTime"><ValueList><Value>20260722200021</Value></ValueList></Slot>
            <Classification classificationScheme="urn:uuid:a7058bb9-b4e4-4307-ba5b-e3f0ab85e12d"
                            classifiedObject="SubmissionSet01" id="ss-c-1" nodeRepresentation="">
              <Slot name="authorTelecommunication"><ValueList><Value>^^Internet^intake@direct.example-hospital.com</Value></ValueList></Slot>
            </Classification>
            <!-- limitedMetadata marker -->
            <Classification classifiedObject="SubmissionSet01" id="ss-c-2"
                            classificationNode="urn:uuid:5003a9db-8d8d-49e6-bf0c-990e34ac7707"/>
            <ExternalIdentifier id="ss-ei-1" registryObject="SubmissionSet01"
                                identificationScheme="urn:uuid:554ac39e-e3fe-47fe-b233-965d2a147832"
                                value="2.16.840.1.113883.3.9999.3">
              <Name><LocalizedString value="XDSSubmissionSet.sourceId"/></Name>
            </ExternalIdentifier>
            <ExternalIdentifier id="ss-ei-2" registryObject="SubmissionSet01"
                                identificationScheme="urn:uuid:96fdda7c-d067-4183-912e-bf5ee74998a8"
                                value="2.16.840.1.113883.3.9999.3.1">
              <Name><LocalizedString value="XDSSubmissionSet.uniqueId"/></Name>
            </ExternalIdentifier>
          </RegistryPackage>
          <Classification classifiedObject="SubmissionSet01" id="ss-classifier"
                          classificationNode="urn:uuid:a54d6aa5-d40d-43f9-88c5-b4633d873bdd"/>
          <ExtrinsicObject id="doc-1" mimeType="text/xml"
                           objectType="urn:uuid:7edca82f-054d-47f2-a032-9b2a5b5186c1">
            <Slot name="creationTime"><ValueList><Value>20260722200021</Value></ValueList></Slot>
            <Slot name="size"><ValueList><Value>221</Value></ValueList></Slot>
            <Slot name="hash"><ValueList><Value>149B15E48A99C96FDFFEF1473D1F71E5EF3FC5A0</Value></ValueList></Slot>
            <!-- limitedMetadata marker -->
            <Classification classifiedObject="doc-1" id="doc-c-1"
                            classificationNode="urn:uuid:ab9b591b-83ab-4d03-8f5d-f93b1fb92e85"/>
            <ExternalIdentifier id="doc-ei-1" registryObject="doc-1"
                                identificationScheme="urn:uuid:2e82c1f6-a085-4c72-9da3-8640a32e42ab"
                                value="2.16.840.1.113883.3.9999.3.2">
              <Name><LocalizedString value="XDSDocumentEntry.uniqueId"/></Name>
            </ExternalIdentifier>
          </ExtrinsicObject>
          <Association associationType="urn:oasis:names:tc:ebxml-regrep:AssociationType:HasMember"
                       sourceObject="SubmissionSet01" targetObject="doc-1" id="as-1">
            <Slot name="SubmissionSetStatus"><ValueList><Value>Original</Value></ValueList></Slot>
          </Association>
        </RegistryObjectList>
      </SubmitObjectsRequest>
      <!-- Base64-encoded direct:messageDisposition from Example 5.6-2 -->
      <Document id="doc-1">PGRpcmVjdDptZXNzYWdlRGlzcG9zaXRpb24geG1sbnM6ZGlyZWN0PSJ1cm46ZGlyZWN0OmFkZHJlc3NpbmciPg0KICA8ZGlyZWN0OnJlY2lwaWVudD5pbnRha2VAZGlyZWN0LmV4YW1wbGUtaG9zcGl0YWwuY29tPC9kaXJlY3Q6cmVjaXBpZW50Pg0KICA8ZGlyZWN0OmRpc3Bvc2l0aW9uPnN1Y2Nlc3M8L2RpcmVjdDpkaXNwb3NpdGlvbj4NCjwvZGlyZWN0Om1lc3NhZ2VEaXNwb3NpdGlvbj4=</Document>
    </ProvideAndRegisterDocumentSetRequest>
  </s:Body>
</s:Envelope>
--MIMEBoundary_dsn_example--
```
:::

:::hint{type="info"}
**Note:** This example is for illustrative purposes only. The Document value Base64-decodes to the success disposition; the size and hash correspond to that decoded disposition.
:::

## Complete DSN Message - Failure

The body shows the failure disposition body and a complete success DSN (Example C.4-1), but not a complete failure DSN. The example below combines them: a complete DSN transaction whose Base64-encoded Document decodes to the failure disposition (mailbox not found). It is structurally identical to Example C.4-1 except for the disposition payload, its size and hash, and the DSN's own MessageID.

### Complete DSN Message (Failure) Example

:::CodeblockTabs
Example

```xml
Content-Type: multipart/related; type="application/xop+xml"; start="<http://tempuri.org/0>"; start-info="application/soap+xml"; boundary="MIMEBoundary_dsn_failure_example"

--MIMEBoundary_dsn_failure_example
Content-ID: <http://tempuri.org/0>
Content-Transfer-Encoding: 8bit
Content-Type: application/xop+xml; charset=utf-8; type="application/soap+xml"

<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"
            xmlns:a="http://www.w3.org/2005/08/addressing">
  <s:Header>
    <a:Action s:mustUnderstand="1">urn:ihe:iti:2007:ProvideAndRegisterDocumentSet-b</a:Action>
    <a:MessageID>urn:uuid:3d9c1f24-a0b2-4c5d-9e6f-7a8b9c0d1e2f</a:MessageID>
    <a:RelatesTo>urn:uuid:7f4d7c90-d803-4c33-b053-92f77a59c10f</a:RelatesTo>
    <a:From><a:Address>urn:oid:2.16.840.1.113883.3.9999.3</a:Address></a:From>
    <a:ReplyTo><a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address></a:ReplyTo>
    <direct:addressBlock s:role="urn:direct:addressing:destination" s:relay="1"
                         xmlns:direct="urn:direct:addressing">
      <direct:from>intake@direct.example-hospital.com</direct:from>
      <direct:to>dr.smith@direct.example-clinic.com</direct:to>
      <direct:metadata-level>minimal</direct:metadata-level>
      <direct:notification relatesTo="urn:uuid:7f4d7c90-d803-4c33-b053-92f77a59c10f"/>
    </direct:addressBlock>
    <a:To s:mustUnderstand="1">https://xdr.example-clinic.com/DocumentRepository_Service.svc</a:To>
  </s:Header>
  <s:Body>
    <ProvideAndRegisterDocumentSetRequest xmlns="urn:ihe:iti:xds-b:2007">
      <SubmitObjectsRequest xmlns="urn:oasis:names:tc:ebxml-regrep:xsd:lcm:3.0">
        <RegistryObjectList xmlns="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0">
          <RegistryPackage id="SubmissionSet01"
                           status="urn:oasis:names:tc:ebxml-regrep:StatusType:Approved">
            <Slot name="submissionTime"><ValueList><Value>20260722200521</Value></ValueList></Slot>
            <Classification classificationScheme="urn:uuid:a7058bb9-b4e4-4307-ba5b-e3f0ab85e12d"
                            classifiedObject="SubmissionSet01" id="ss-c-1" nodeRepresentation="">
              <Slot name="authorTelecommunication"><ValueList><Value>^^Internet^intake@direct.example-hospital.com</Value></ValueList></Slot>
            </Classification>
            <!-- limitedMetadata marker -->
            <Classification classifiedObject="SubmissionSet01" id="ss-c-2"
                            classificationNode="urn:uuid:5003a9db-8d8d-49e6-bf0c-990e34ac7707"/>
            <ExternalIdentifier id="ss-ei-1" registryObject="SubmissionSet01"
                                identificationScheme="urn:uuid:554ac39e-e3fe-47fe-b233-965d2a147832"
                                value="2.16.840.1.113883.3.9999.3">
              <Name><LocalizedString value="XDSSubmissionSet.sourceId"/></Name>
            </ExternalIdentifier>
            <ExternalIdentifier id="ss-ei-2" registryObject="SubmissionSet01"
                                identificationScheme="urn:uuid:96fdda7c-d067-4183-912e-bf5ee74998a8"
                                value="2.16.840.1.113883.3.9999.3.11">
              <Name><LocalizedString value="XDSSubmissionSet.uniqueId"/></Name>
            </ExternalIdentifier>
          </RegistryPackage>
          <Classification classifiedObject="SubmissionSet01" id="ss-classifier"
                          classificationNode="urn:uuid:a54d6aa5-d40d-43f9-88c5-b4633d873bdd"/>
          <ExtrinsicObject id="doc-1" mimeType="text/xml"
                           objectType="urn:uuid:7edca82f-054d-47f2-a032-9b2a5b5186c1">
            <Slot name="creationTime"><ValueList><Value>20260722200521</Value></ValueList></Slot>
            <Slot name="size"><ValueList><Value>294</Value></ValueList></Slot>
            <Slot name="hash"><ValueList><Value>0E2C7D036FDB41DEE1538F4ECD47553C384001A0</Value></ValueList></Slot>
            <!-- limitedMetadata marker -->
            <Classification classifiedObject="doc-1" id="doc-c-1"
                            classificationNode="urn:uuid:ab9b591b-83ab-4d03-8f5d-f93b1fb92e85"/>
            <ExternalIdentifier id="doc-ei-1" registryObject="doc-1"
                                identificationScheme="urn:uuid:2e82c1f6-a085-4c72-9da3-8640a32e42ab"
                                value="2.16.840.1.113883.3.9999.3.12">
              <Name><LocalizedString value="XDSDocumentEntry.uniqueId"/></Name>
            </ExternalIdentifier>
          </ExtrinsicObject>
          <Association associationType="urn:oasis:names:tc:ebxml-regrep:AssociationType:HasMember"
                       sourceObject="SubmissionSet01" targetObject="doc-1" id="as-1">
            <Slot name="SubmissionSetStatus"><ValueList><Value>Original</Value></ValueList></Slot>
          </Association>
        </RegistryObjectList>
      </SubmitObjectsRequest>
      <!-- Base64-encoded direct:messageDisposition (failure) - decodes to Example 5.6-3 -->
      <Document id="doc-1">PGRpcmVjdDptZXNzYWdlRGlzcG9zaXRpb24geG1sbnM6ZGlyZWN0PSJ1cm46ZGlyZWN0OmFkZHJlc3NpbmciPg0KICA8ZGlyZWN0OnJlY2lwaWVudD5pbnRha2VAZGlyZWN0LmV4YW1wbGUtaG9zcGl0YWwuY29tPC9kaXJlY3Q6cmVjaXBpZW50Pg0KICA8ZGlyZWN0OmRpc3Bvc2l0aW9uPmZhaWx1cmU8L2RpcmVjdDpkaXNwb3NpdGlvbj4NCiAgPGRpcmVjdDpyZWFzb25Gb3JGYWlsdXJlPk1haWxib3ggbm90IGZvdW5kLjwvZGlyZWN0OnJlYXNvbkZvckZhaWx1cmU+DQo8L2RpcmVjdDptZXNzYWdlRGlzcG9zaXRpb24+</Document>
    </ProvideAndRegisterDocumentSetRequest>
  </s:Body>
</s:Envelope>
--MIMEBoundary_dsn_failure_example--
```
:::

:::hint{type="info"}
**Note:** This example is for illustrative purposes only. The Document value Base64-decodes to the failure disposition (a reasonForFailure of "Mailbox not found."). The size and hash correspond to that decoded disposition.
:::

## Complete Received Message

[Message Structure](docId\:XyQrOSGPZ8458uzH0p8sU) notes that a received message carries the same XDS metadata structure as the [Complete Referral Example](docId\:xZ0MTs_W6FVT5WxkvD-Q0) and shows only the incoming address block ([Illustrative Incoming Address Block: Two Recipients Hosted by the Same Receiving System](docId\:XyQrOSGPZ8458uzH0p8sU)). The example below shows a complete message as delivered to a receiving customer's endpoint: the receive-direction address block, the a\:To addressed to the receiving customer's repository, and a submission set with one document entry. The metadata is abbreviated relative to [Complete Submission: Minimal Metadata With Document Classifications, MTOM (Attachment Payload Omitted) Example](docId:4pSAzF9OZZ3BbPh9NMOB7); a received message may carry the full classification set shown there.

### Complete Received Message (As Delivered to the Receiving System) Example

:::CodeblockTabs
Example

```xml
Content-Type: multipart/related; type="application/xop+xml"; start="<http://tempuri.org/0>"; start-info="application/soap+xml"; boundary="MIMEBoundary_xdr_delivery_example"

--MIMEBoundary_xdr_delivery_example
Content-ID: <http://tempuri.org/0>
Content-Transfer-Encoding: 8bit
Content-Type: application/xop+xml; charset=utf-8; type="application/soap+xml"
MIME-Version: 1.0

<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"
            xmlns:a="http://www.w3.org/2005/08/addressing">
  <s:Header>
    <a:Action s:mustUnderstand="1">urn:ihe:iti:2007:ProvideAndRegisterDocumentSet-b</a:Action>
    <a:MessageID>urn:uuid:7f4d7c90-d803-4c33-b053-92f77a59c10f</a:MessageID>
    <a:ReplyTo><a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address></a:ReplyTo>
    <a:To s:mustUnderstand="1">https://xdr.example-hospital.com/DocumentRepository_Service.svc</a:To>
    <direct:addressBlock s:role="urn:direct:addressing:destination" s:relay="1"
                         xmlns:direct="urn:direct:addressing">
      <direct:from>dr.smith@direct.example-clinic.com</direct:from>
      <direct:to>intake@direct.example-hospital.com</direct:to>
      <direct:metadata-level>minimal</direct:metadata-level>
    </direct:addressBlock>
  </s:Header>
  <s:Body>
    <ProvideAndRegisterDocumentSetRequest xmlns="urn:ihe:iti:xds-b:2007">
      <SubmitObjectsRequest xmlns="urn:oasis:names:tc:ebxml-regrep:xsd:lcm:3.0">
        <RegistryObjectList xmlns="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0">

          <ExtrinsicObject id="doc-1" mimeType="text/xml"
                           objectType="urn:uuid:7edca82f-054d-47f2-a032-9b2a5b5186c1"
                           status="urn:oasis:names:tc:ebxml-regrep:StatusType:Approved">
            <Slot name="creationTime"><ValueList><Value>20260722200019</Value></ValueList></Slot>
            <Slot name="sourcePatientId">
              <ValueList><Value>PATID1234^^^&amp;1.3.6.1.4.1.99999.1&amp;ISO</Value></ValueList>
            </Slot>
            <Name><LocalizedString value="Cardiology Referral"/></Name>
            <!-- limitedMetadata marker (minimal metadata) -->
            <Classification classifiedObject="doc-1" id="cl-doc-limited"
                            classificationNode="urn:uuid:ab9b591b-83ab-4d03-8f5d-f93b1fb92e85"/>
            <!-- classCode -->
            <Classification classificationScheme="urn:uuid:41a5887f-8865-4c09-adf7-e362475b143a"
                            classifiedObject="doc-1" id="cl-doc-class" nodeRepresentation="57133-1">
              <Slot name="codingScheme"><ValueList><Value>2.16.840.1.113883.6.1</Value></ValueList></Slot>
              <Name><LocalizedString value="Referral Note"/></Name>
            </Classification>
            <!-- DocumentEntry.patientId -->
            <ExternalIdentifier identificationScheme="urn:uuid:58a6f841-87b3-4a3e-92fd-a8ffeff98427"
                                registryObject="doc-1" id="ei-doc-pid"
                                value="PATID1234^^^&amp;1.3.6.1.4.1.99999.1&amp;ISO">
              <Name><LocalizedString value="XDSDocumentEntry.patientId"/></Name>
            </ExternalIdentifier>
            <!-- DocumentEntry.uniqueId -->
            <ExternalIdentifier identificationScheme="urn:uuid:2e82c1f6-a085-4c72-9da3-8640a32e42ab"
                                registryObject="doc-1" id="ei-doc-uid"
                                value="2.16.840.1.113883.3.9999.1.100001">
              <Name><LocalizedString value="XDSDocumentEntry.uniqueId"/></Name>
            </ExternalIdentifier>
          </ExtrinsicObject>

          <RegistryPackage id="SubmissionSet01"
                           status="urn:oasis:names:tc:ebxml-regrep:StatusType:Approved">
            <Slot name="submissionTime"><ValueList><Value>20260722200019</Value></ValueList></Slot>
            <Slot name="intendedRecipient">
              <ValueList><Value>Example Hospital^^^^^&amp;2.16.840.1.113883.3.9999.3&amp;ISO^^^^0002||^^Internet^intake@direct.example-hospital.com</Value></ValueList>
            </Slot>
            <Name><LocalizedString value="Cardiology referral"/></Name>
            <!-- limitedMetadata marker (minimal metadata) -->
            <Classification classifiedObject="SubmissionSet01" id="cl-ss-limited"
                            classificationNode="urn:uuid:5003a9db-8d8d-49e6-bf0c-990e34ac7707"/>
            <!-- SubmissionSet.uniqueId -->
            <ExternalIdentifier identificationScheme="urn:uuid:96fdda7c-d067-4183-912e-bf5ee74998a8"
                                registryObject="SubmissionSet01" id="ei-ss-uid"
                                value="2.16.840.1.113883.3.9999.1.1">
              <Name><LocalizedString value="XDSSubmissionSet.uniqueId"/></Name>
            </ExternalIdentifier>
            <!-- SubmissionSet.patientId -->
            <ExternalIdentifier identificationScheme="urn:uuid:6b5aea1a-874d-4603-a4bc-96a0a7b38446"
                                registryObject="SubmissionSet01" id="ei-ss-pid"
                                value="PATID1234^^^&amp;1.3.6.1.4.1.99999.1&amp;ISO">
              <Name><LocalizedString value="XDSSubmissionSet.patientId"/></Name>
            </ExternalIdentifier>
          </RegistryPackage>

          <!-- Classifies the RegistryPackage as a Submission Set -->
          <Classification classifiedObject="SubmissionSet01" id="cl-ss-node"
                          classificationNode="urn:uuid:a54d6aa5-d40d-43f9-88c5-b4633d873bdd"/>

          <!-- The document is a member of the submission set -->
          <Association associationType="urn:oasis:names:tc:ebxml-regrep:AssociationType:HasMember"
                       sourceObject="SubmissionSet01" targetObject="doc-1" id="as-01">
            <Slot name="SubmissionSetStatus"><ValueList><Value>Original</Value></ValueList></Slot>
          </Association>

        </RegistryObjectList>
      </SubmitObjectsRequest>
      <Document id="doc-1">
        <xop:Include href="cid:http://tempuri.org/1" xmlns:xop="http://www.w3.org/2004/08/xop/include"/>
      </Document>
    </ProvideAndRegisterDocumentSetRequest>
  </s:Body>
</s:Envelope>

--MIMEBoundary_xdr_delivery_example
Content-ID: <http://tempuri.org/1>
Content-Transfer-Encoding: binary
Content-Type: text/xml

***** The referral C-CDA document bytes belong here. *****
The binary content of the referral attachment is omitted from this example.
--MIMEBoundary_xdr_delivery_example--
```
:::

:::hint{type="info"}
**Note:** This example is for illustrative purposes only. For traceability it reuses the original MessageID; because Surescripts forms the outbound message from the inbound one ([Patient Identification](docId\:XyQrOSGPZ8458uzH0p8sU)), the delivered message may carry a different identifier. The receiving system must return a synchronous Provide and Register Document Set-b Response ([Sending the Message Response](docId\:XyQrOSGPZ8458uzH0p8sU)) with the same structure as [Synchronous Success Response (No Delivery Notification Tracking)](docId\:xZ0MTs_W6FVT5WxkvD-Q0) or [Synchronous Failure Response (RegistryResponse with a RegistryErrorList)](docId\:xZ0MTs_W6FVT5WxkvD-Q0).
:::

****
