Central to the concept of what Rhapsody does is the route, or the path taken by a message as it passes through the Rhapsody engine. This path connects input and output communication points and may include filters designed to complete a variety of tasks, such as conditionally passing the message or transforming the message from one format to another.

Pass-through Route

In this example pass-through route, messages arrive at the "ADT System" communication point and are passed to the "Batch Directory" communication point:

Route Components

The route utilizes the following tools:

  • EDI Explorer - used to generate test messages and connect with the ADT System communication point. Test messages are then sent from EDI Explorer into the route.
    The communication points included in this route are:
  • ADT System - an input TCP Server communication point configured to receive messages from an external application.
  • Batch Directory - an output Directory communication point configured to save received messages to a specified network location.

Building the Route

Define Communication Points

The first thing you need to do is create the communication points. Communication points are entry or exit points to the Rhapsody engine. Communication points are the interface to the external system and are the mechanism by which Rhapsody sends and receives information to and from the external systems. Messages arrive at an Input communication point, are processed by the filters and conditional connectors in the route and passed to one or more Output communication points. From there, the messages are sent to the receiving application(s).

To create a communication point:

  1. Select the New Communication Point iconon the standard toolbar. The Create Communication Point dialog is displayed:

  2. Select TCP Server, and select the Create button. The TCP Server Properties dialog is displayed:

  3. Enter the following details in the General tab:
    • Name - ADT System. A communication point's name is not case-sensitive and must differ from all other communication points in the same folder. An alert is displayed if this is not the case.
    • Type - TCP Server. The TCP Server communication point listens for connections on the port specified as part of its configuration.
  4. Select the Connection tab to display the default connection properties for the communication point, and define the following properties:

    • Connection Mode - Input. Input communication points are configured to receive messages from one or more external systems.

  5. Select the Configuration tab to display the default configuration properties for the communication point, and define the following properties:

    • Local Port - 3001. The port can be changed if there is a conflict.

  6. Select the OK button to save your changes.
  7. Repeat Steps 1 through 6 to create a Directory communication point with the following properties:
    • General tab:
      • Name - Batch Directory.
      • Type - Directory.
      • Connection Mode - Output. Output communication points are configured to send messages to one or more external systems.
    • Configuration tab:
      • Output Directory - the location where files will be sent.

Define the Route

Now that we have the communication points — one for receiving and one for sending messages — let us create a route to link the communication points.

To create a new route:

  1. Select the New Route icon on the standard toolbar. Enter a name for the route and the new route is created in the Route Editor, as shown in the following screenshot. It has an Input section, a Filters section and an Output section. The Input section is where the Input communication point belongs and the Output section is where the Output communication points belong.

     

  2. Drag and drop your Input and Output communication points to the appropriate sections in the Route Editor.

  3. Connect the input communication point to the output communication point.

    1. Select the Connector icon  on the standard toolbar.

    2. Select the Input communication point and drag a line to the Output communication point.

Check in the Components

The next step is to check in your communication points and routes so the engine is aware of your changes.

  1. Select the Check in all routes and communication points icon on the standard toolbar. The Check In dialog is displayed:

  2. Select the components you want to check in, and select the Check In button. Rhapsody checks the configuration of each component when it is checked in.

  3. If any errors are found they are listed in the Information panel at the bottom of the Rhapsody IDE window:

Starting and Stopping Routes and Communication Points

When a route or communication point is first created, its Status is stopped by default, unless its configuration is incomplete. Rhapsody checks the configuration of a component when it is checked in. If any errors are found they are listed in the Information panel.

Routes and communication points must be started before they can process messages. Messages sent to a stopped route or communication point will be queued by Rhapsody until the component is restarted, at which time the backlog is cleared before new messages are processed.

You can start or stop a component in one of the following ways:

Workspace

Right-click on the component, and select Start or Stop.

Object Browser
  1. Right-click the component, and select Start or Stop.
  2. Select the component, and the Start or Stop icons on the Object Browser toolbar.

Management Console
  1. Navigate to Monitoring>Communication Points or Monitoring>Routes.

  2. To change the status, in the Action column, click the Start or Stop link.

    The following icons are used in Rhapsody IDE (Workspace and Object Browser) to identify the component's current status:

    Icon

    Description

    The component has started.

    The component is stopped.

    One or more required properties are missing, therefore, the component cannot be started or stopped.

Testing the Route

The final step is to test the route. EDI Explorer is used to create test messages and send them into Rhapsody via a TCP connection.

  1. Select the EDI Explorer iconon the standard toolbar.
  2. Load a message definition, then create a new message. Refer to the EDI Explorer manual to learn how to load a message definition and create a test message, and configure the application to communicate with the ADT System communication point in Rhapsody. An example message has been created from the HL7v2.3_ACKA01.s3d message definition and auto-filled with dummy data:

  3. Connect to the TCP Server you created earlier, then select the Transmit button to send the message to the route.
  4. If the route is successfully processing messages, the file is processed and passed to the directory specified by the Batch Directory communication point.