Introduction
The HL7 Simulator is a Windows program, so you cannot use it on Linux or the Mac — or can you?
Actually you can send messages from any Windows machine on the same network — simply enter the network address or network name of the target machine in the Simulator Host field. A common way to set this up is to use a Windows VM on your Linux or Mac computer.
Task [top]
Using the HL7 Simulator on Linux or Mac.
Procedure [top]
- Use a windows VM — or a windows machine on the local network:
The usual way this is done is by setting up a Windows VM (virtual machine) on a development or testing computer. You could also use another physical Windows machine so long as it is on the same network.
- Network the windows VM:
You can use the Shared Network (usually default) or the Bridged Network option.
Note: Your workplace may have a standard method of setting up Virtual Machines — if they do we suggest that you follow the recommended method.
- Get the IP address of your machine:
Sometimes the address of your machine might not be 100% obvious but don’t worry you can safely try different addresses until it works. Using the wrong address can’t break anything — it just won’t work.
- Lixux:
- Terminal Command: Display the IP addresse(es) for the machine:
ifconfig | grep "inet "
- Record the IP address:
Usually the correct IP looks like something like a 192.168.x.x address — so try this one first. If that does not work you could try the other addresses or talk to the person who setup the Linux machine. In this case there are two IP addresses the other one looks like the DNS server (probably on the wireless router).
- Terminal Command: Display the IP addresse(es) for the machine:
- Mac System Preferences:
- Open System Preferences from Apple Menu or Toolbar.
- Click the Network icon:
- Select the network you are using from the list on the left:
This will usually Wi Fi or perhaps Ethernet if you are using an ethernet cable.
- Click the Advanced button at the bottom right.
- Select the TCP/IP tab and record the IPv4 Address:
- Close System Preferences.
- Mac Terminal Command:
- Terminal Command: Display the IP addresse(es) for the machine:
ifconfig | grep "inet "
- Record the IP address:
Usually the correct IP looks like something like a 192.168.x.x address — so try this one first. If that does not work you could try the other addresses or talk to the person who setup your Mac. In this case there are two IP addresses as there are two virtual machine networks as well as the local network.
- Terminal Command: Display the IP addresse(es) for the machine:
- Lixux:
- Setup the HL7 Simulator:
- Enter the IP Address of your machine.
- Enter the Port Number for the target channel:
You will this is in the LLP Source properties of the channel that you are sending messages too.
- The HL7 Simulator Basic Settings will look something like this:
- Run the receiving channel and the Simulator, should see something like this:
Note: You can also receive messages from a channel using the HL7 Listener in the same way:
- Enter the Port number from the LLP Client into the HL7 Listener:
- Enter the address of the remote machine into LLP Client properties:
How it works [top]
Basically so long as the machine that the HL7 Simulator is running on can see the target machine then this will work. The HL7 Simulator can be running on a virtual or a real Windows machine — though almost always this would be done by developers (or testers) using a Windows VM.
Using the Bridged Network option for your Virtual Machine works well — this means that the virtual machine is treated like another computer on the local network. The Shared Network (default) option should also work — this sets up a separate private subnet and uses NAT to translate addresses.
In fact any network setup that enables the HL7 Simulator to send messages to the target machine will work — you can discuss this with your network administrator.
More information [top]
- Sending and receiving HL7 test messages
- Reprocessing and Resubmitting Log Messages
- Send HL7 sample data using LLP Client