Beruflich Dokumente
Kultur Dokumente
Channel>
<id>65e8ccd7-c2ac-4131-8077-8faff557fe04</id>
<name>ADT Message Processor</name>
<description></description>
<enabled>true</enabled>
<version>2.0.1.5164</version>
<lastModified>
<time>1398699323619</time>
<timezone>Asia/Calcutta</timezone>
</lastModified>
<revision>12</revision>
<sourceConnector>
<name>sourceConnector</name>
<properties>
<property name="messageEnd">0x1C</property>
<property name="ackCodeError">AE</property>
<property name="messageStart">0x0B</property>
<property name="ackMsgRejected">Message Rejected.</property>
<property name="ackCodeRejected">AR</property>
<property name="receiveTimeout">0</property>
<property name="charEncoding">hex</property>
<property name="bufferSize">65536</property>
<property name="useStrictLLP">1</property>
<property name="reconnectInterval">5000</property>
<property name="waitForEndOfMessageCharacter">0</property>
<property name="sendACK">1</property>
<property name="port">6661</property>
<property name="ackOnNewConnection">0</property>
<property name="checkMSH15">0</property>
<property name="ackMsgSuccessful"></property>
<property name="tcpProtocolClassName">org.mule.providers.tcp.protocols.TcpProtocol</property>
<property name="responseFromTransformer">0</property>
<property name="segmentEnd">0x0D</property>
<property name="ackPort"></property>
<property name="charsetEncoding">DEFAULT_ENCODING</property>
<property name="host">127.0.0.1</property>
<property name="responseValue">None</property>
<property name="DataType">LLP Listener</property>
<property name="processBatchFiles">0</property>
<property name="ackMsgError">An Error Occured Processing Message.</property>
<property name="serverMode">1</property>
<property name="ackCodeSuccessful">AA</property>
<property name="ackIP"></property>
<property name="recordSeparator">0x0D</property>
</properties>
<transformer>
<steps/>
<inboundTemplate encoding="base64"></inboundTemplate>
<inboundProtocol>HL7V2</inboundProtocol>
<outboundProtocol>HL7V2</outboundProtocol>
<inboundProperties>
<property name="handleRepetitions">false</property>
<property name="stripNamespaces">true</property>
<property name="convertLFtoCR">true</property>
<property name="useStrictParser">false</property>
<property name="useStrictValidation">false</property>
<property name="handleSubcomponents">false</property>
</inboundProperties>
<outboundProperties>
<property name="handleRepetitions">false</property>
<property name="stripNamespaces">true</property>
<property name="convertLFtoCR">true</property>
<property name="useStrictParser">false</property>
<property name="useStrictValidation">false</property>
<property name="handleSubcomponents">false</property>
</outboundProperties>
</transformer>
<filter>
<rules/>
</filter>
<transportName>LLP Listener</transportName>
<mode>SOURCE</mode>
<enabled>true</enabled>
<version>2.0.1.5164</version>
</sourceConnector>
<destinationConnectors>
<com.mirth.connect.model.Connector>
<name>Destination 1</name>
<properties>
<property name="script"> </property>
<property name="DataType">JavaScript Writer</property>
<property name="host">sink</property>
</properties>
<transformer>
<steps>
<step>
<sequenceNumber>0</sequenceNumber>
<name>Patient_Fname</name>
<script>var mapping;try { mapping =
msg['PID']['PID.5']['PID.5.2'].toString(); }catch (e) {
logger.error(e); mapping = '';}channelMap.put('Patient_Fname', validate(
mapping , '', new Array()));</script>
<type>Mapper</type>
<data class="map">
<entry>
<string>Variable</string>
<string>Patient_Fname</string>
</entry>
<entry>
<string>DefaultValue</string>
<string></string>
</entry>
<entry>
<string>Mapping</string>
<string>msg['PID']['PID.5']['PID.5.2'].toString()</string>
</entry>
<entry>
<string>RegularExpressions</string>
<list/>
</entry>
<entry>
<string>isGlobal</string>
<string>channel</string>
</entry>
</data>
</step>
<step>
<sequenceNumber>1</sequenceNumber>
<name>Patient_Lname</name>
<script>var mapping;try { mapping =
msg['PID']['PID.5']['PID.5.1'].toString(); }catch (e) {
logger.error(e); mapping = '';}channelMap.put('Patient_Lname', validate(
mapping , '', new Array()));</script>
<type>Mapper</type>
<data class="map">
<entry>
<string>Variable</string>
<string>Patient_Lname</string>
</entry>
<entry>
<string>DefaultValue</string>
<string></string>
</entry>
<entry>
<string>RegularExpressions</string>
<list/>
</entry>
<entry>
<string>Mapping</string>
<string>msg['PID']['PID.5']['PID.5.1'].toString()</string>
</entry>
<entry>
<string>isGlobal</string>
<string>channel</string>
</entry>
</data>
</step>
<step>
<sequenceNumber>2</sequenceNumber>
<name>New Step</name>
<script>FileUtil.write("c://Patient_Info.txt",true,"Patient First Name is =
"+$('Patient_Fname')+"\r\n");
FileUtil.write("c://Patient_Info.txt",true,"Patient Last Name is =
"+$('Patient_Lname')+"\r\n");
//Velos Database Connection Variables
var VelosDBDriverName =
"sun.jdbc.odbc.JdbcOdbcDriver";
var VelosDBDSNName =
"jdbc:odbc:cs";
var VelosDBUserID = "dba";
var VelosDBPassword =
"sql";
var VelosDBCon = "null";
//function to Open Velos Database Connection
function OpenVelosDBCon()
{
try
 {
 return VelosDBCon =
DatabaseConnectionFactory.createDatabaseConnection(VelosDBDriverName,VelosDBDSNName,VelosD
BUserID,VelosDBPassword);
 } catch(err)
 {
//LogErrorInfo("Velos Database Is Down At -
"+GetCurrentDateTime()+"\r\n");
FileUtil.write(gErrorFileNameOnDBDown , true, $('Message_Raw_Data') +
"\r\n");
 //if (!(CheckEmailAlreadySentInLastOneHour()))
//SendMail(gMailTo,gMailCC,gMailFrom,gVelosMailSubject,gMailBody);
 return
false; 
 }
}
if(!(OpenVelosDBCon()))
{
FileUtil.write("c://Patient_Info.txt",true,"nOT ABLE TO Connected to
dATABHASE");
}
else
{
FileUtil.write("c://Patient_Info.txt",true," Connected to dATABHASE");
}</script>
<type>JavaScript</type>
<data class="map">
<entry>
<string>Script</string>
<string>FileUtil.write("c://Patient_Info.txt",true,"Patient First Name is =
"+$('Patient_Fname')+"\r\n");
FileUtil.write("c://Patient_Info.txt",true,"Patient Last Name is =
"+$('Patient_Lname')+"\r\n");
//Velos Database Connection Variables
var VelosDBDriverName =
"sun.jdbc.odbc.JdbcOdbcDriver";
var VelosDBDSNName =
"jdbc:odbc:cs";
var VelosDBUserID = "dba";
var VelosDBPassword =
"sql";
var VelosDBCon = "null";
//function to Open Velos Database Connection
function OpenVelosDBCon()
{
try
 {
 return VelosDBCon =
DatabaseConnectionFactory.createDatabaseConnection(VelosDBDriverName,VelosDBDSNName,VelosD
BUserID,VelosDBPassword);
 } catch(err)
 {
//LogErrorInfo("Velos Database Is Down At -
"+GetCurrentDateTime()+"\r\n");
FileUtil.write(gErrorFileNameOnDBDown , true, $('Message_Raw_Data') +
"\r\n");
 //if (!(CheckEmailAlreadySentInLastOneHour()))
//SendMail(gMailTo,gMailCC,gMailFrom,gVelosMailSubject,gMailBody);
 return
false; 
 }
}
if(!(OpenVelosDBCon()))
{
FileUtil.write("c://Patient_Info.txt",true,"nOT ABLE TO Connected to
dATABHASE");
}
else
{
FileUtil.write("c://Patient_Info.txt",true," Connected to dATABHASE");
}</string>
</entry>
</data>
</step>
</steps>
<inboundTemplate
encoding="base64">TVNIfF5+XCZ8fENPQ1FBMUF8fHwyMDA4MTAzMDAwMDB8fEFEVF5BMDV8UUExQ
UdUQURNLjEuMTQ5
NTk0fER8Mi4xCkVWTnxBMDV8MjAwODEwMzAwMDAwClBJRHwxfHxKMDAwMTA2Mzc2fEoxMDcwMz
N8
VEVTVF5BQlNeMjUwN15eXnx8MTkyMjA3MDd8RnxeXl5eXnxNfDEyMTUgQ0VEQVIgTEFORV5eTkFT
SFZJTExFXlROXjY2MTIzXl5eXnx8KDczMSk5OTItOTY4NHx8fFN8Q0hSfEowMDAwODAzNjQyMXw0
NTYtNDUtNjQ0NApOSzF8MXxURVNUXk5PS15eXl58T1R8MTAxIE5PVkVMXl5TTUFMTCBDUkVFS15U
Tl4zNzExMV5eXl58KDYxNSkzNDQtMTkxOQpQVjF8MXxQfEouUFReXnxFTHx8fE1BUlNeTUFSU15e
Xl5efHx8T1BEWHx8fHxQUnx8WXx8UkNSfHxDT01NfHx8fHx8fHx8fHx8fHx8fHx8fENPQ1FBMUF8
VEVTVHxQUkV8fHwyMDA4MTEwMTAwMDAKR1QxfDF8fFRFU1ReREFOXl5eXnx8MzY1MTQgUVVJVklS
QV5eS0NeS1NeMjkxMzBeXl5efCgzMjEpMjMxLTIzMTF8fDE5NjYwNzA1fE18fEhVfDk2My05Ni0z
OTYzfHx8QkVUVEVSIEJVU0lORVNTIEVRVUlQTUVOVHwzMDAgN1RIIEFWRU5VRSBTT1VUSF5eTkFT
SFZJTExFXlROXjM3MjAyfCg2MTUpMjU1LTY0ODUKR1QxfDJ8fFRFU1ReREVCQklFXl5eXnx8MTIx
NSBDRURBUiBMQU5FXkFQVCAyQV5OQVNIVklMTEVeVE5eNjYxMjNeXl5efHx8MTk2MTAzMTV8Rnx8
T1R8MTMyMTMyNDU0fHx8TUFUVElFIFBFVCBTVVBQTElFU3w2NTAwIEJBQ0tZQVJEIEJMVkReXk5B
U0hWSUxMRV5UTl4zNzIwMXw2MTUtMzQ0LTIwMDAKSU4xfDF8RkFSTXx8RkFSTSBCVVJFQVV8UE8g
Qk9YIDEwMTExXl5ERVMgTU9JTkVTXklBXjU3MTUxXnx8KDMwMik1MTItMTExMXx8fHx8fHx8fFRF
U1ReQUJTXjI1MDdeXl58MDF8MTkyMjA3MDd8fHx8fHx8fHx8fHx8fHx8fHw0NTY0NTY0NDR8fHx8
fHx8RgpJTjF8MnxCQ1ROfHxCTFVFIENST1NTIFRFTk5FU1NFRXxJTlNVUkFOQ0UgTEFORSBPTkVe
SU5TVVJBTkNFIExBTkUgVFdPXkNJVFleU1ReMTExMTFefHw2MTUzMTM2MzAwfEJMVUUgQ1JPU1Mg
R1JQI3xCTFVFIENST1NTIEdST1VQIE5BTUV8fHx8WXx8fFRFU1ReQUJTXjI1MDdeXl58MDF8MTky
MjA3MDd8fHx8fHx8fHx8fHx8fHx8fHw0NTY0NTY0NDR8fHx8fHx8RgpJTjF8M3xDSUdOQXx8Q0lH
TkEgSEVBTFRIfEFERFJFU1MgT05FXkFERFJFU1MgVFdPXk5BU0hWSUxMRV5UTl4zNzIxMF58fDU1
NTE0MTR8fHx8fHx8fHxURVNUXkFCU14yNTA3Xl5efDAxfDE5MjIwNzA3fHx8fHx8fHx8fHx8fHx8
fHx8NDU2NDU2NDQ0fHx8fHx8fEYK</inboundTemplate>
<outboundTemplate encoding="base64"></outboundTemplate>
<inboundProtocol>HL7V2</inboundProtocol>
<outboundProtocol>HL7V2</outboundProtocol>
<inboundProperties>
<property name="handleRepetitions">false</property>
<property name="stripNamespaces">true</property>
<property name="convertLFtoCR">true</property>
<property name="useStrictValidation">false</property>
<property name="useStrictParser">false</property>
<property name="handleSubcomponents">false</property>
</inboundProperties>
<outboundProperties>
<property name="handleRepetitions">false</property>
<property name="stripNamespaces">true</property>
<property name="convertLFtoCR">true</property>
<property name="useStrictValidation">false</property>
<property name="useStrictParser">false</property>
<property name="handleSubcomponents">false</property>
</outboundProperties>
</transformer>
<filter>
<rules/>
</filter>
<transportName>JavaScript Writer</transportName>
<mode>DESTINATION</mode>
<enabled>true</enabled>
<version>2.0.1.5164</version>
</com.mirth.connect.model.Connector>
</destinationConnectors>
<properties>
<property name="synchronous">true</property>
<property name="clearGlobalChannelMap">true</property>
<property name="transactional">false</property>
<property name="initialState">started</property>
<property name="dont_store_filtered">false</property>
<property name="error_messages_only">false</property>
<property name="max_message_age">-1</property>
<property name="store_messages">true</property>
<property name="encryptData">false</property>
</properties>
<preprocessingScript>// Modify the message variable below to pre process data
return message;</preprocessingScript>
<postprocessingScript>// This script executes once after a message has been processed
return;</postprocessingScript>
<deployScript>// This script executes once when the channel is deployed
// You only have access to the globalMap and globalChannelMap here to persist data
return;</deployScript>
<shutdownScript>// This script executes once when the channel is undeployed
// You only have access to the globalMap and globalChannelMap here to persist data
return;</shutdownScript>
</com.mirth.connect.model.Channel>