Skip to content

TX5: send-documents ​

Transaction Overview ​

The send-documents transaction is used to send one or more maternal health documents to support pregnancy notification, birth-services referral, antepartum information sharing, and continuity of care across settings.

The canonical transaction code is send-documents. TX5 is a local editorial label assigned by the cc-maternal-health-birth Use Case Guide for readability and navigation; it is not the interoperable transaction identifier. The canonical transaction code is intended to remain stable and reusable across use cases.

The transaction’s payload and metadata can be packaged using XDM or FHIR packaging.

The transaction is designed to support the following payloads:

  • Pregnancy Notification and Risk Assessment

  • Pregnancy Notification

  • Pregnancy Risk Assessment

SMTP/MIME Message Header ​

The following SMTP/MIME message-header metadata supports early message routing and processing, use-case awareness, reusable transaction identification, Payload Metadata representation, Direct final-destination delivery notification, and optional workflow-status return.

Message-header layering. x-direct-useCase identifies the use-case context known to the sender; x-direct-transaction identifies the reusable exchange behavior; and x-direct-metadataTypeCode identifies how Payload Metadata is represented. Message Delivery confirms arrival of the Message at its Final Destination. Workflow Status provides the stronger assurance that the Payload reached its intended workflow. Both responses use the Direct address supplied in Disposition-Notification-To.

Final Destination is intentionally implementation-dependent. Depending on the receiving architecture and edge protocol, successful delivery may be established through SMTP, an IMAP/mailbox arrangement, XDR, a custom API, or another supported receiving interface. A successful Final Destination Delivery Notification does not establish that the Payload was parsed, matched, routed, accepted, or delivered into its intended business workflow.

Conf.Header elementFixed value / constraintImplementation guidance
RContent-Typemultipart/mixedOuter message content type.
Rx-direct-metadata-payload-versionIdentifier1Metadata and payload framework version identifier.
Rx-direct-useCasecc-maternal-health-birthIdentifies the use-case context known to the sender. It is not an exclusive internal-routing instruction; the Receiver Actor may apply received information to other authorized workflows for which it is relevant.
Rx-direct-metadataTypeCodeurn:dt-org:dsm:map:SMTP+XD:1.0Identifies the Payload Metadata representation. This value indicates that XD metadata/XDM package processing applies; Subject is not used as an XDM processing signal.
Ox-direct-purposeTREATMENTPurpose of use.
OSubjectNo fixed value specifiedHuman-readable subject line. SHALL NOT be relied upon as the machine-processable indication that the message carries XD/XDM metadata.
ODisposition-Notification-OptionsX-DIRECT-FINAL-DESTINATION-DELIVERY=optional,trueInclude when Direct Final Destination Delivery Notification is requested.
RE/R2Disposition-Notification-ToSender-designated Direct addressReturn address for a requested MDN and for requested TX8 Workflow Status. SHALL be populated when x-direct-workflow-status-requested=true and when final-destination delivery notification is requested.
Rx-direct-transactionsend-documentsCanonical, stable reusable transaction code. SHALL carry the canonical transaction identity, not the local editorial TX number.
Ox-direct-workflow-status-requestedtrue | false; absent = falseWhen true, requests TX8 send-workflow-status after the Payload reaches, or fails to reach, its intended workflow. The response is sent to Disposition-Notification-To.

Note that messages carrying XDM metadata packaging additional are required to include

RSome sort of XDM 1.0 valueRequired label for messaging carrying XDM packages.

XD Metadata Guidance ​

XD is the fully specified representation of Payload Metadata for this transaction. The requirements in this section define the package-level and payload-object metadata semantics used as the source requirements for alternative metadata representations.

The following SMTP/MIME message-header metadata supports reporting, routing, correlation, and use-case-aware processing of TX1 messages using the XDM Packaging syntax and structure.

Payload Packaging Structure ​

The Direct message SHALL use multipart/mixed packaging.

It SHALL contain a human-readable healthcare communication and an XDM ZIP package containing the machine-processable notification and an identical human-readable communication conveying the essential notification information.

Conf.MIME partContentMIME type
RMIME Part 1Human-readable healthcare communicationtext/plain
OMIME Part 1 alternativeHTML healthcare communicationtext/html
RMIME Part 2XDM ZIP packageapplication/zip
RXDM SubmissionSetXDM SubmissionSet
RContained XDM document 1HL7 CDA DocumentApplication/xml+cda
OContained XDM document 2HL7 CDA DocumentApplication/xml+cda

MIME Part 1 – Human Readable Communication ​

The human readable communication summarizes the metadata provided for each document included in the payload.

For text representation, this information is presented in a simple table. For html representation, it is presented in the same format as supported by the stylesheet for rendering available document metadata.

MIME Part 2 – Structured Data Package ​

MIME Part 2 holds the structured data package which includes both machine processable and human readable information combined.

Conf.Metadata elementValue / constraintNotes
RContent-Typeapplication/zipThe second outer MIME part is the XDM package.
RContent-Transfer-Encodingbase64Required for the binary ZIP package.
RContent-IDSystem-assignedPopulate a MIME Content-ID.
RContent-Dispositionattachment; filename="xdm.zip"Fixed value from the workbook.

SubmissionSet ​

Conf.Metadata elementValue / sourceUse-case guidance
RuniqueIdSystem-assignedAdded by the system.
RavailabilityStatusurn:oasis:names:tc:ebxml-regrep:StatusType:ApprovedFixed status.
RsubmissionTimeSystem-generated submission timeNo additional use-case constraint.
RintendedRecipientDirect address selected for the recipientThe telecommunication component SHALL contain the registered Direct address corresponding to the SMTP RCPT TO recipient.
RE/R2patientIdClinicalDocument/recordTarget/id or a patient identifier known to the intended recipientMay be obtained from a known-patient-identifier source; the workbook notes that it may not always be known.
OsourcePatientInfoPatient demographics from the notification, including PID-derived name and related dataPopulate from the source patient information used for matching.
RsourcePatientIdPatient identifier from PID / source systemRepresents the identifier known to the sender.
RauthorSending author/person and represented organization; include the Direct address in telecomThe SubmissionSet author identifies who is sending the package, not necessarily the clinical author.
RsourceIdIdentifier for the SubmissionSet authorThe workbook suggests that the Direct address may be suitable for this workflow.
Rpurposesend-documentsCanonical transaction code used as the transaction purpose. SHALL match x-direct-transaction.
RE/R2contentTypeCodesend-documentsCanonical transaction code. SHALL match x-direct-transaction and identify the reusable transaction represented by this package. The local editorial TX number is not carried as interoperable metadata.
Otitlecc-maternal-health-birth:send-disharge-notification:Use the display name associated with the selected event code.
OdescriptionHuman-readable description of the notificationWorkbook maps this concept to ClinicalDocument/sdtc:text; for an HL7 V2 notification, populate an equivalent concise description.
OreferenceIdListurn:dt-org:dsm:map:2025:pregnancyPregnancy Context Instance Identifier.
OreferenceIdListurn:dt-org:dsm:map:2026:visitVisit Context Instance Identifier.
OreferenceIdListurn:dt-org:dsm:map:2026:requestRequest Context Instance Identifier, when applicable.
OlimitedMetadataNo fixed value specifiedUse as defined by the base XDM/XDR specification.
RentryUUIDSystem-assigned UUIDSubmissionSet registry object identifier for each attachment.
Oslot/@nameList of UUIDs for documents contained in the SubmissionSetPopulate when the selected packaging approach uses this extension.

Document Entry – HL7 CDA Minimally Structured Document ​

The first DocumentEntry contians the HL7 CDA Document.

Conf.Metadata elementValue / sourceUse-case guidance
RentryUUIDSystem-assignedRegistry entry identifier.
R/XURISystem-assigned package URIAs required by the selected XDM option.
RuniqueIdSystem-assignedGlobally unique identifier for this payload instance.
RmimeTypeApplication/xml+cdaFixed MIME type.
RE/R2formatCodeNo fixed value specifiedUse an applicable HL7 V2 notification format code when established.
RE/R2languageCodeLanguage of human-readable contentPopulate when known.
RE/R2classCodesend-documentsCanonical transaction classification. SHALL match x-direct-transaction and SubmissionSet.contentTypeCode. DocumentEntry.typeCode separately identifies the specific payload object or clinical/event type.
RE/R2typeCode
OtitleIdentical to SubmissionSet.titleKeep title consistent across the package.
OreferenceIdListApplicable subset of the SubmissionSet context identifiersThe individual document may have a narrower context.
RE/R2patientIdPatient identifier known to the receiverUse the same patient identity strategy as the SubmissionSet.
RE/R2sourcePatientIdFrom PIDSource patient identifier.
RE/R2sourcePatientInfoFrom PIDSource patient demographics.
RE/R2creationTimeFrom EVNUse the event time represented in the notification.
RE/R2authorTreating facility name from PV1 or the location where representedIdentifies the treating facility responsible for the event.
Rauthor.roleTF (Treating Facility)Fixed author role.
Oauthor.specialtyNo additional use-case constraintPopulate if available.
OserviceStartTimeEvent/encounter start time when knownPopulate from the HL7 V2 event/visit data.
OserviceStopTimeEvent/encounter stop time when knownPopulate when applicable.
RE/R2practiceSettingCodeCode describing the clinical practice settingPopulate from available event/facility data.
RE/R2confidentialityCodeApplicable confidentiality codePopulate consistently with organizational policy.
RE/R2healthcareFacilityTypeCodeCode describing the treating facilityPopulate from the facility/location represented in the event.
OlimitedMetadataNo fixed value specifiedUse as defined in the base profile.
RobjectTypeurn:oasis:names:tc:ebxml-regrep:ObjectType:RegistryObject:ExtrinsicObjectFixed XDS object type.
OSlot/@nameAvailable extensionsUse only extensions permitted by the base profile.
R/OhashCalculated document hashFollow the base XDM/XDR option requirements.
R/OsizeDocument size in bytesFollow the base XDM/XDR option requirements.

FHIR Metadata Guidance ​

When FHIR is used to represent Payload Metadata, implementers SHALL apply the same metadata requirements, coding, and semantics specified in the XD Metadata Guidance, using Appendix C - Mapping XD Metadata to FHIR Resources. SubmissionSet metadata is represented in a FHIR List Resource, and corresponding XD DocumentEntry metadata is represented in FHIR DocumentReference Resources referenced by the List. This is an alternative representation of the same Payload Metadata, not a different metadata model.

Context IG Metadata Guidance ​

TBD - Context IG Metadata Guidance. Guidance for representing this transaction's Payload Metadata using the DirectTrust Context IG specification will be added following completion of the current major Context IG redesign.

Technical Actor Functional Requirements ​

ActorRequirement categoryNormative requirement
Content CreatorPayload creationSHALL create the payload content required by send-documents and preserve the responsible Information Source and applicable clinical/workflow provenance.
Message SenderTransmissionSHALL package and transmit the Direct message using the message-header, Payload Metadata, and packaging constraints defined for this transaction.
Message ReceiverReceiptSHALL receive and validate the Direct message and make the Payload and Payload Metadata available to the Content Consumer.
Content ConsumerProcessingSHALL process the Payload according to the supported transaction behavior and applicable local workflow.
Receiver ActorWorkflow statusWhen x-direct-workflow-status-requested=true, SHALL initiate TX8 after determining whether the Payload reached its intended workflow and SHALL send TX8 to Disposition-Notification-To.