MDM documents
Carry HL7v2 MDM document notifications, such as transcribed notes and reports, to FHIR DocumentReference. Planned.
PlannedThis page describes what's coming, not working steps.
Transcription and document systems send HL7v2 MDM messages (MDM^T02, T04, T08 and similar) when a note or report is created or changed. The message carries document metadata in a TXA segment and often the document itself, as text or a base64 PDF in OBX. This recipe will turn each one into a FHIR DocumentReference with its content, so the document is findable next to the patient's other data.
Source and destination
The intended flow takes MDM messages from the MLLP listener and writes a DocumentReference to a FHIR R4 server.
flowchart LR
A[Document system] -->|MDM over MLLP| B[MedHook engine]
B -->|Patient and DocumentReference| C[FHIR R4 server]- Source: HL7v2 MDM over MLLP.
- Destination: a FHIR R4 server, with the document content as an attachment or a Binary.
What exists today
- The MLLP trigger receives MDM messages and ACKs them like any other HL7v2 message.
- The HL7v2 to FHIR transform writes the Patient from PID and a DocumentReference from TXA, with the OBX segments as its content (a base64 document kept as received, text lines as one text attachment). The FHIR to HL7v2 transform turns a DocumentReference into MDM^T02.
- A large base64 document stays inline in the execution history.
What's coming
- Handling for large embedded documents: store the content apart from the message and keep the execution history small.
- A built-in template and a guide.
Status
Planned. The conversion is available; it needs attachment handling that keeps large documents out of the execution history.