Mobile access to Health Documents (MHD)
4.2.2 - Trial-Implementation
This page is part of the IHE Mobile Access to Health Documents (v4.2.2: Publication) based on FHIR (HL7® FHIR® Standard) R4. This is the current published version. For a full list of available versions, see the Directory of published versions
This section corresponds to transaction [ITI-106] of the IHE Technical Framework. Transaction [ITI-106] is used by the Document Source and Document Recipient Actors. The Generate Metadata [ITI-106] transaction is used to transmit a structured and coded document (i.e., CDA or FHIR-Document) and have the Document Recipient create associated metadata.
The Generate Metadata [ITI-106] transaction passes a Generate Metadata Request from a Document Source to a Document Recipient.
Table 2:3.106.2-1: Actor Roles
Actor | Role |
---|---|
Document Source | Sends document to the Document Recipient |
Document Recipient | Accepts the document and creates metadata |
FHIR-R4 HL7 FHIR Release 4.0
Figure 2:3.106.4-1: Generate Metadata Interactions
This message uses the FHIR Operation method on the target Generate Metadata endpoint to convey the document.
This method is invoked when the Document Source needs to submit one structured and coded document to a Document Recipient.
The Document Source shall initiate an http POST
operation request as defined in FHIR Operations using the Generate Metadata Operation Definition on the DocumentReference
endpoint.
POST http://fhir.someserver.org/fhir/DocumentReference/$generate-metadata
The Document Source provides the document. It can be provided in either a Binary or a Bundle form.
The Document Recipient shall accept both media types application/fhir+json
and application/fhir+xml
.
On receipt of the Generate Metadata Request Message, the Document Recipient shall read the existing document and confirm that the document is sufficiently structured and coded for processing. The Document Recipient may impose specific constraints on the input document, such as conforming to International Patient Summary (IPS) or Consolidated Clinical Document Architecture (C-CDA) 2.1. These constraints may be further refined within the Community. The Document Recipient shall persist the document, the Bundle will be persisted using the original mime-type from the operation. The Document Recipient shall persist the document in a format consistent with the media type in DocumentReference.attachment.contentType. It may make the document available in other formats, for example, making a FHIR Document Bundle submitted in XML format available in JSON format, but it is not required to. The Document Recipient shall generate a valid DocumentReference resource given the document content. The DocumentReference that is generated may be an existing DocumentReference or may be a new one as necessary. The DocumentReference.content.attachment.url shall point at the persisted document.
Note that persist methodology will depend on the actors and functionality grouped with the Document Recipient. For example when grouped with a XDS Document Source, the persistence is achieved using XDS; when grouped with MHDS, the persistence is achieved at the MHDS Document Registry. The Document Recipient may need to produce a SubmissionSet derived off of the DocumentReference, such as when persistence is via XDS, XDR, or MHDS where a SubmissionSet is required to track the provenance of the publication request.
The Document Recipient shall extract the document, generate the DocumentReference metadata, and translate the DocumentReference metadata elements into a SubmissionSet following the PCC TF-2: 4.1 Medical Document Binding to Document Sharing Metadata, and may have further metadata translation requirements specified by the local Document Sharing Community policy.
The Document Recipient shall generate Document Sharing metadata requirements as specified for attributes ITI TF-3: Table 4.3.1-3: “Sending Actor Metadata Attribute Optionality”.
This section applies to grouping MHD Document Recipient with XDS Document Source Actor, XDR Document Source Actor, XDR Limited-Metadata Document Source Actor, and XDM Portable Media Creator Actor (e.g., with the XDM ZIP over Email Option).
The Document Recipient shall transform the DocumentReference content into a proper message for the given grouped actor (e.g., the XDS Document Source using the Provide and Register Document Set-b [ITI-41] transaction). The Document Recipient shall create appropriate metadata from Resources in the FHIR DocumentReference Resource, including SubmissionSet, and DocumentEntry.
Where values provided are References to FHIR resources (e.g., DocumentReference.encounter), the Reference should be converted to a Document Sharing CXi
Identifier Datatype for recording in the Document Sharing ebRIM using the Identifier Type Codes when appropriate (see Appendix Z.9.1.2 ). The conversion may be by using the referenced Resource business .identifier. Note, there is not an obvious conversion of a reference .id to CXi
identifier. Note that DocumentReference.encounter would be mapped into DocumentEntry.referenceIdList as an Identifier Type Code of urn:ihe:iti:xds:2015:encounterId
.
Some FHIR elements do not translate to XDS concepts; the handling of these elements is left to the implementer of the Document Recipient.
Upon successful conversion of the FHIR DocumentReference to XDS Document Sharing metadata, the grouped source actor shall execute the appropriate transaction. The transaction result, and any error or warning messages, shall be reported to the MHD Document Source. The Document Recipient is responsible for translating the response to the appropriate HTTP Status Code and FHIR OperationOutcome Resource in the Generate Metadata Response Message.
The Document Recipient responds with success or failure
This message shall be sent when a success or error condition needs to be communicated. Success is only indicated once the document is received and completely processed and persisted as appropriate to the Document Recipient Actor configuration.
The Document Recipient upon success returns a Parameter resource with a reference to the DocumentReference.
The Document Recipient returns an OperationOutcome upon failure.
The Document Source processes the results according to application-defined rules.
Document Recipient shall provide a CapabilityStatement Resource as described in ITI TF-2x: Appendix Z.3 indicating the transaction has been implemented.
Document Source should provide a CapabilityStatement Resource as described in ITI TF-2x: Appendix Z.3 indicating the transaction has been implemented.
See MHD Security Considerations.
The security audit criteria are similar to those for the Provide and Register Document Set-b ITI-41 transaction as this transaction does export a document.
The Document Source when grouped with ATNA Secure Node or Secure Application Actor shall be able to record a Generate Metadata Audit Event Log. Audit Example for a Generate Metadata Transaction from source perspective.
The Document Recipient when grouped with ATNA Secure Node or Secure Application Actor shall be able to record a Generate Metadata Audit Event Log. Audit Example for a Generate Metadata Bundle Transaction from recipient perspective.