Hi Michael,
I tried to stay out of this thread, but I couldn?t help myself. Ummm? if I understand correctly, you would like to have a desktop version of your PHP (web-based) application, right? If so, then I would suggest you learn VB.Net or C#, leaning more toward VB.Net, for learning and time sake. I would love to help you out with your project, but as you are well aware of, I?m currently trying to finish the new Letter Writer. I think what you are asking for wouldn?t take that long to program, since you already have some programming experience, and you know the HL7 structure and fields, which is a plus.
Also, the solutions that Roger and JamesNT (nice flow diagrams James) have provided are good ones.