Being New to Mirth am still working my way around. Please excuse me if this has been answered before. I have been trying to create an HL7 message(say ADT A08) using Mirth connecting to a database(MySql).
I have created an outbound channel with source: Database reader (I'm using Select statement(s) to get database variables i'll need to populate the message) and Destination: file writer (where I define a transformation for each message segment PID, PV1,...).
For the transformation how do I define which database variable is to populate the HL7 message stucture?
For Example, I want my database variable 'pno' to be filled in ['PID']['PID.4']['CX.1']. How can I define this?
hl7_xml['PID']['PID.4']['CX.1']=msg['pno'] ?
Am I using the correct method to create the message or is there any other way of achieving this? I could not find any documentation on this.
Thank you
Anna
I have created an outbound channel with source: Database reader (I'm using Select statement(s) to get database variables i'll need to populate the message) and Destination: file writer (where I define a transformation for each message segment PID, PV1,...).
For the transformation how do I define which database variable is to populate the HL7 message stucture?
For Example, I want my database variable 'pno' to be filled in ['PID']['PID.4']['CX.1']. How can I define this?
hl7_xml['PID']['PID.4']['CX.1']=msg['pno'] ?
Am I using the correct method to create the message or is there any other way of achieving this? I could not find any documentation on this.
Thank you
Anna
Comment