The kit original design is to communicate with one remote application.
The workaround is to have multiple instances of the HL7 service running. The services can connect to the same database but each mush have it's own queue table.
Each will have it's own configuration file and it's own mapping rules file and mapping definitions but they will all write to the same log file and there can be only one active tray icon.
Here's how to set this up step by step:
- Stop the HL7 Service.
- In windows explorer navigate to the installation folder (default is c:\program files\rz software services\hl7) and make a copy of the folder, so you have hl7 and hl72.
- Create a copy of the HL7_QUEUE table so you have two queue tables or if you prefer, use each service on a different database schema.
- Use the HL7ServiceConfiguration.exe application in each folder to configure the port settings, mapping files and queue table names. Alternatively you can edit the HL7Service.exe.config file manually.
- Test your setup by running "HL7Service.exe -run" from two separate command line windows.
- Configure the new service to run on system startup. This is a bit tricky but here's a way that works:
- Run regedit
- navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HL7Service and export it.
- Edit the reg file and replace all "HL7Service" with "HL7Service2"
- Save it and double click it to import it to the registry.
- In regedit change the ImagePath entry of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HL7Service2 to the copied HL7 Folder (hl72)
- Restart the computer.
Of course, you can duplicate them as well.
I hope to have a new release soon that will allow multiple destinations and sources of messages.
Roni
No comments:
Post a Comment