Tuesday, August 14, 2012

MDM^T02 with embedded PDF HL7 message sample

MSH|^~\&|PROSOLV|XYZHOSPITAL|SYSTEM|XYZHOSPITAL|200801311600||MDM^T02|PS1-20080131160038|P|2.5
EVN|T10|200801311600
PID|1|987654321|987654321||PROSOLV^SAMPLE||19721201|M||||||||||10000001|111-22-3333
PV1|1|I|CCU^2000^1|||CCU^2003^1|1234^HIPPOCRATES^KOS|9099^KEVORKIAN^JACK|8888^HOUSE^GREGORY||||||||||10000001
ORC|SC|00012345|1-1
OBR|1|00012345|1-1|02585^TransthoracicEcho^PCV4|||20080131155500|||||||||||||||200801311600|||F||||||796.4^^I9M~786.09^^I9M~414.8^^I9M||||54321^Doctorovich^Ivan^
TXA|1|DI|TX|200801311555||200801311600|||IvanDoctorovich|||1.2.840.317.5947431.51.20080131160038|1.2.840.317.5947431.51.20080131155715|00012345|1-1||AU|||||54321^Doctorovich^Ivan^^^^^^^^^^^^200801311600
OBX|1|HD|113014^DICOM Study^DCM||1.2.840.317.5947431.51||||||O
OBX|2|ED|02585^TransthoracicEcho^PCV4||^Application^PDF^Base64^Single_Line_base64_encoded_PDF||||||F


The Single_Line_base64_encoded_PDF, must be a base64 encoded PDF string, in a single line, i.e. the result of this linux command

base64 -w 0 document.pdf

7 comments:

  1. Can an MDM message contain more than one Note type- ex: COnsult note and Discharge summary as OBX ?

    ReplyDelete
  2. When I try your solution I get the error : String length must be a multiple of four

    I am trying to send a MDM HL7 message to my dcm4chee pacs with a PDF file on my computer
    Is it the right thing to do ?

    ReplyDelete
    Replies
    1. Hello Cynthia,

      We are trying to implement something similar to send embedded PDF in HL7 MDM messages . Can you please suggest if its correct or we need to use any otther way

      Delete
  3. When I try your solution, I get the error : String length must be a multiple of four

    I am trying to send a MDM T02 message to my HL7 server with a pdf from my computer

    Is it right to do it with your solution ? Could you help me write the T02 message sample ? thx

    ReplyDelete
    Replies
    1. What tool are you using to send the hl7 message?

      Delete
  4. Hi Cyntha,

    I am also trying to send MDM^T02 messages with a encapsulated Base64 encoding. Did you get to write the T02 message sample and if so could you make this available please. Thanks

    ReplyDelete
  5. Hi Cynthia,

    I am also trying to send MDM messages with encapsulated Base64 encoding PDF and was wondering if you managed to write the T02 message sample. If you have could you possible send me the details for this please. Thanks

    ReplyDelete