Originally posted by Ian Morris
I need to translate an ORU made up of the typical segments... MSH, PID, OBR, OBX's, pull out certain elements of the result message, and put them in a one line output message. I'm not sure what the best way to go about it is. Here's an example of what they want output:
|1|D011111|Last, First|F|YYYYMMDD|111-11-1111|K.PN|Doctor Office Visit|20110502|e:textfilename.rtf|PRACTICE|DOCTORNAME|FACILITY|
ON TOP of that, they want me to increment the message number from within the engine. The message number in this case is "1". But, apparently they can't send that in their outbound message. Instead, I've been instructed to magically calculate it, sequentially, for each translated message and then start back over at "1" at midnight.
Any thoughts on this? I was thinking about jamming everything they are asking for into the MSH field of the outbound message. However, I don't want "MSH..."at the beginning of each file.
I'm thinking this whole thing can't be done. What do you think?