Hl7 Message created from PDF only #5842
Replies: 2 comments 3 replies
-
Do you mean "I have a PDF and I need to extract data from the PDF to get patient demographic information to then use in the PID and/or other segments"? In other words you have no discrete metadata separate from the PDF that describes its contents and has the needed fields for HL7? If yes then you must do OCR on the PDF. It involves making java calls and potentially using custom java libraries. Look at https://forums.mirthproject.io/forum/mirth-connect/support/7041-mirth-tools-user-defined-functions?p=95725#post95725. As for your ask to "write a channel for me". That approach doesn't typically work here, but people jump in when you post problems with what you have already tried. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your reply
And I am sorry I left this out earlier, but the PDF's must be printed manually to a PDF virtual printer using Windows "Print to PDF".
The PDF file name can be named to anything ...but it has to be named by the operator of the Telemetry Station.
The operators are nurses and they will probably make mistakes when naming the PDF files.
That is why I wanted to pull the information from the Patient Data, so no one can make a mistake.
Once again thank you for everything you have said. I am here to learn. Rome was not built in a day,
And I am still waiting for the first load of concrete to be delivered.
…________________________________
From: pacmano1 ***@***.***>
Sent: Wednesday, July 5, 2023 9:09 AM
To: nextgenhealthcare/connect ***@***.***>
Cc: Kahless2040 ***@***.***>; Author ***@***.***>
Subject: Re: [nextgenhealthcare/connect] Hl7 Message created from PDF only (Discussion #5842)
You cannot just capture and forward PDFs without the appropriate data in an HL7 message in general. The other side expects your PDF base64 encoded in either an MDM or ORU message with appropriate segments for who the report is for and what visit or order it is associated with and perhaps other information. That data is usually a combination of inbound data from a feed that asked you to do a test and discrete data from your testing tystem.
The telemetry station creates the PDFs I assume - can't it name the file names such that you can parse them? If you are doing something like pritning to a virtual printer that generates PDFs that in turn you want to send downstream, that can get even more complex because the PDF may in fact not be OCR capable, rather it is just images.
As for how others do this? Depends on the place, but more often than not it is a combination of data in from your client and out data from your device that has the patient context information discretely available to send.
Labratory Information Management Systems (LIM) coupled to their testing equipment work in this way. Radiolgy Infromation Systems (RIS) coupled to their diagnostic systems like a CT/MRI works in this way.
Some devices also communicate via ASTM E1381, you might read up on that.
—
Reply to this email directly, view it on GitHub<#5842 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BBCBESHTIB4XWCOFODSPYETXOVYP3ANCNFSM6AAAAAAZ64NDN4>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I am very new to Mirth Connect. I don't understand Java yet.
I think I understand the simple stuff. All my channels are working. I am sending and receiving HL7 messages.
But I have hit a roadblock when trying to send a PDF to the EMR tagged with the PID data.
What I need is a way to take a PDF . Then extract the PID information like the Patient ID (PID 1) and the Patient Name.
Then transform all of this into a HL7 message with the PID information and the actual original PDF document embedded in OBX 5.5
Or an HL7 message with all the PID information and a "attachment" that contains the original PDF document.
I have sent just the PDF both ways to my EMR. As a base 64 binary file and as an "attachment" but they are never tagged!
You actually have to open it up and look at the PDF to see what patient it belongs with. Which makes it useless.
I was hoping that someone could create a channel that does this, to show me how it's done. Because I am clueless.
Below I will describe my approach so far:
I have created a "print to folder" to print the PDF into.
I have a File Reader that reads the document then erases it after processing.
So the "print to folder" is always empty ... ready for the next document.
After I have the "read" PDF, I can send it out as either an "attachment" or as a "base 64"
That always works..... But it is untagged with any PID information. (which makes it useless!)
I really don't know how to proceed.
Any help is appreciated.
If you could post a working channel, I could look at it and learn a lot.
I am using Mirth 4.3.0 as a relay, So I would like to transform the file there if possible.
The Origin Mirth is 3.2 where the PDF is originally read.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions