I'm new to Mirth and I have about 100 questions, so I'll just summarize all my questions into one:
I want to receive an HL7 message on LLP Listener like the one below:
MSH|^~\\&|NIST Test Sending Application|NIST Test Facility|NIST Test Receiving Application|NIST Test Facility|20060207125135||ADT^A01^ADT_A01|MSG.0|D|2 .4
PID|1||A74329^^^^MR~999 99 999^^^^SSN||Smith^Simon
PV1|1|O|^108^B^^^H^1043^4
DG1|1||451.2^Phlebitis And Thrombophlebitis^I9
DG1|2||550.00^Unilateral Inguinal Hernia^I9
and call a web service (through SOAP Sender I suppose) that exposes a method admitPatient as described below:
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:wd="http://www.w3.org/2001/XMLSchema">
<env:Body>
<m:admitPatient xmlns:m="schemas-whatever-com">
<patient>
<identification>
<idType>MR</idType>
<idValue>A74329</idValue>
</identification>
<identification>
<idType>SSN</idType>
<idValue>999 99 999</idValue>
</identification>
<name>
<firstName>Simon</firstName>
<lastName>Smith</lastName>
</name>
</patient>
<diagnosis>
<code>451.2</code>
<description>Phlebitis And Thrombophlebitis</description>
</diagnosis>
<diagnosis>
<code>550.00</code>
<description>Unilateral Inguinal Hernia</description>
</diagnosis>
</m:admitPatient>
</env:Body>
</env:Envelope>
My guess before trying Mirth was that there was a way to simply use XSLT on the xml encoded HL7 message to generate the soap envelope, but it looks like some kind of javascript transformer would need to be used + how do we handle repetable segments and fields (DG1 and PID-3 in my example) + any namespace issues, do I need to create one different javascript variable per value that I want to put in the soap envelope template generated by Mirth (Channel destination tab, SOAP Sender connector type)...
It sounds trivial, but I wasn't able to find documentation nor any tutorial about sending SOAP messages with Mirth, a detailed explanation on how to accomplish the above would probably answer all the questions I have at once + it could really be a nice SOAP Sender tutorial
Thanks and good work guys, this product looks really cool!
I want to receive an HL7 message on LLP Listener like the one below:
MSH|^~\\&|NIST Test Sending Application|NIST Test Facility|NIST Test Receiving Application|NIST Test Facility|20060207125135||ADT^A01^ADT_A01|MSG.0|D|2 .4
PID|1||A74329^^^^MR~999 99 999^^^^SSN||Smith^Simon
PV1|1|O|^108^B^^^H^1043^4
DG1|1||451.2^Phlebitis And Thrombophlebitis^I9
DG1|2||550.00^Unilateral Inguinal Hernia^I9
and call a web service (through SOAP Sender I suppose) that exposes a method admitPatient as described below:
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:wd="http://www.w3.org/2001/XMLSchema">
<env:Body>
<m:admitPatient xmlns:m="schemas-whatever-com">
<patient>
<identification>
<idType>MR</idType>
<idValue>A74329</idValue>
</identification>
<identification>
<idType>SSN</idType>
<idValue>999 99 999</idValue>
</identification>
<name>
<firstName>Simon</firstName>
<lastName>Smith</lastName>
</name>
</patient>
<diagnosis>
<code>451.2</code>
<description>Phlebitis And Thrombophlebitis</description>
</diagnosis>
<diagnosis>
<code>550.00</code>
<description>Unilateral Inguinal Hernia</description>
</diagnosis>
</m:admitPatient>
</env:Body>
</env:Envelope>
My guess before trying Mirth was that there was a way to simply use XSLT on the xml encoded HL7 message to generate the soap envelope, but it looks like some kind of javascript transformer would need to be used + how do we handle repetable segments and fields (DG1 and PID-3 in my example) + any namespace issues, do I need to create one different javascript variable per value that I want to put in the soap envelope template generated by Mirth (Channel destination tab, SOAP Sender connector type)...
It sounds trivial, but I wasn't able to find documentation nor any tutorial about sending SOAP messages with Mirth, a detailed explanation on how to accomplish the above would probably answer all the questions I have at once + it could really be a nice SOAP Sender tutorial

Thanks and good work guys, this product looks really cool!
Comment