I need to get a document out of our transcription system in a flat .txt format. The documents come out as MDM message types with the full text of the document itself in OBX 5.
I’d like to take that OBX 5 field and convert it to a readable text document that I can then upload into a system that does not accept HL7 transactions, but I really don’t know where to start.
You could write a tcl proc that takes whatever is in the OBX-5 and writes it to a flat file using the patient account number and the document number as the file name.
If you want someone else to upload these documents then I’d write them to a file share instead of on your interface engine server.
Based on a couple of conversations with Jim, I’ve been using FRL and then the HRL to account for the repeating subfield, and then rounded it all out with a translation and have made some progress.
So far, I’ve been able to get the document into 1 of 2 states:
1) the entire report on one line — this happens when I don’t use a line feed in the FRL
2) one line per page, so a 50 line report is 50 pages long — this happens when I do use a line feed in the FRL
Author
Replies
Viewing 3 reply threads
The forum ‘Cloverleaf’ is closed to new topics and replies.