JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Java CAPS Adapter for TCP/IP HL7 User's Guide     Java CAPS Documentation
search filter icon
search icon

Document Information

Oracle Java CAPS Adapter for TCP/IP HL7 User's Guide

Oracle Java CAPS Adapter for TCP/IP HL7 Overview

About Oracle Java CAPS Adapter for TCP/IP HL7

TCP/IP HL7 Features

TCP/IP HL7 Adapter Components

About HL7

The TCP/IP HL7 Adapter Architecture

TCP/IP HL7 Resource Adapter

HL7 Collaborations

Generic HL7 Message Libraries

Oracle Java Composite Application Suite Functionality

Modes and Roles

Standard Mode

HL7 Adapter Sender Role

HL7 Adapter Receiver Role

Delayed ACK Mode

Inbound Functionality

Inbound Adapter Data Flow

Standard Inbound Message Mode Data Flow and Architecture

Inbound Receiver Message Mode

Message Verification

Acknowledgment Processing

Recourse Actions

Outbound Functionality

Outbound Adapter Data Flow

Outbound Standard Messaging Mode

Outbound Adapter Roles for Delayed ACK Scenarios

Outbound Delayed ACK Role

Outbound Forwarder Role

Message Verification

Acknowledgment Processing

Recourse Actions

General Functionality

Non-blocking I/O

HL7 Sequence Numbering Protocol

Failed Message Handling

Recourse Actions

Stopping the Collaboration with a Fatal Alert

TCP/IP HL7 Adapter Operation

Direction

Connection Type

Lower Layer Protocol

MLLP

HLLP

HL7 Acknowledgment Level

Journaling

Error Queues

Alerts and Monitoring

Support for HL7 Version 2.5 SFT Segments

Delayed Acknowledgements

Monitoring the HL7 Adapter

Schematron Support in the HL7 Adapter

Schematron Configuration in HL7 Adapter

API for Schematron Validation

Using the Schematron API

Obtaining the Factory Object

Obtaining the Validator Object

Performing the Validation

Adding and Configuring a TCP/IP HL7 Adapter in a Connectivity Map

Adding a TCP/IP HL7 External Application to a Connectivity Map

To Add a TCP/IP HL7 External Application

Modifying the TCP/IP HL7 Adapter Properties in the Connectivity Map

Modifying Adapter Properties in the Connectivity Map

TCP/IP HL7 V2 Adapter Inbound Connectivity Map Properties

General Inbound Settings - TCP/IP HL7 V2 Inbound Adapter

TCPIP Inbound Settings -- TCP/IP HL7 V2 Inbound Adapter

TCPIP Inbound Settings - Server Port Binding -- TCP/IP HL7 V2 Inbound Adapter

TCPIP Inbound Settings - Client Connection Establishment -- TCP/IP HL7 V2 Inbound Adapter

TCPIP Inbound Settings - Inbound Connection Management -- TCP/IP HL7 V2 Inbound Adapter

TCPIP Inbound Schedules - Listener Schedule -- TCP/IP HL7 V2 Inbound Adapter

TCPIP Inbound Schedules - Service Schedule TCP/IP HL7 V2 Inbound Adapter

HL7 Acknowledgment -- TCP/IP HL7 V2 Inbound Adapter

Lower Layer Protocol -- TCP/IP HL7 V2 Inbound Adapter

Sequence Number Protocol -- TCP/IP HL7 V2 Inbound Adapter

HL7 MSH Segment -- TCP/IP HL7 V2 Inbound Adapter

HL7 SFT Segment -- TCP/IP HL7 V2 Inbound Adapter

Communication Control -- TCP/IP HL7 V2 Inbound Adapter

HL7 Recourse Action -- TCP/IP HL7 V2 Inbound Adapter

TCP/IP HL7 V2 Adapter Outbound Connectivity Map Properties

General Outbound Settings -- TCP/IP HL7 V2 Outbound Adapter

TCPIP Outbound Settings -- TCP/IP HL7 V2 Outbound Adapter

TCPIP Outbound Settings - Client Connection Establishment -- TCP/IP HL7 V2 Outbound Adapter

TCPIP Outbound Settings - Server Port Binding -- TCP/IP HL7 V2 Outbound Adapter

HL7 Acknowledgment -- TCP/IP HL7 V2 Outbound Adapter

Lower Layer Protocol -- TCP/IP HL7 V2 Outbound Adapter

Sequence Number Protocol -- TCP/IP HL7 V2 Outbound Adapter

HL7 MSH Segment -- TCP/IP HL7 V2 Outbound Adapter

HL7 SFT Segment -- TCP/IP HL7 V2 Outbound Adapter

Communication Control -- TCP/IP HL7 V2 Outbound Adapter

HL7 Recourse Action -- TCP/IP HL7 V2 Outbound Adapter

TCP/IP HL7 V3 Adapter Inbound Connectivity Map Properties

General Inbound Settings -- TCP/IP HL7 V3 Inbound Adapter

TCPIP Inbound Settings -- TCP/IP HL7 V3 Inbound Adapter

TCPIP Inbound Settings - Server Port Binding -- TCP/IP HL7 V3 Inbound Adapter

TCPIP Inbound Settings - Client Connection Establishment -- TCP/IP HL7 V3 Inbound Adapter

TCPIP Inbound Settings - Inbound Connection Management -- TCP/IP HL7 V3 Inbound Adapter

TCPIP Inbound Schedules - Listener Schedule -- TCP/IP HL7 V3 Inbound Adapter

TCPIP Inbound Schedules - Service Schedule -- TCP/IP HL7 V3 Inbound Adapter

HL7 Acknowledgment -- TCP/IP HL7 V3 Inbound Adapter

Lower Layer Protocol -- TCP/IP HL7 V3 Inbound Adapter

Sequence Number Protocol -- TCP/IP HL7 V3 Inbound Adapter

HL7v3 Transmission Wrapper -- TCP/IP HL7 V3 Inbound Adapter

Communication Control -- TCP/IP HL7 V3 Inbound Adapter

HL7 Recourse Action -- TCP/IP HL7 V3 Inbound Adapter

Schematron Validation -- TCP/IP HL7 V3 Inbound Adapter

TCP/IP HL7 V3 Adapter Outbound Connectivity Map Properties

General Outbound Settings -- TCP/IP HL7 V3 Outbound Adapter

TCPIP Outbound Settings -- TCP/IP HL7 V3 Outbound Adapter

TCPIP Outbound Settings - Client Connection Establishment -- TCP/IP HL7 V3 Outbound Adapter

TCPIP Outbound Settings - Server Port Binding -- TCP/IP HL7 V3 Outbound Adapter

HL7 Acknowledgment -- TCP/IP HL7 V3 Outbound Adapter

Lower Layer Protocol -- TCP/IP HL7 V3 Outbound Adapter

Sequence Number Protocol -- TCP/IP HL7 V3 Outbound Adapter

HL7v3 Transmission Wrapper -- TCP/IP HL7 V3 Outbound Adapter

Communication Control -- TCP/IP HL7 V3 Outbound Adapter

HL7 Recourse Action -- TCP/IP HL7 V3 Outbound Adapter

Configuring Oracle Java CAPS Adapter for TCP/IP HL7 Environment Properties

Configuring TCP/IP HL7 Adapter Environment Properties

To Configure the Environment Properties

TCP/IP HL7 Inbound Adapter Environment Properties

HL7 Inbound Adapter - TCPIP Inbound Settings

HL7 Inbound Adapter - MDB Pool Settings

HL7 Inbound Adapter - Sequence Number Protocol

HL7 Inbound Adapter - Database Settings

TCP/IP HL7 Inbound Adapter Environment Properties

HL7 Outbound Adapter - TCPIP Outbound Settings

HL7 Outbound Adapter - Connection Pool Settings

HL7 Outbound Adapter - Sequence Number Protocol

Using the TCP/IP HL7 Predefined Templates

Prerequisites for the HL7 V3 Sample Projects

Creating a Copy of an HL7 Sample Project

To Create a Copy of a Project

Customizing Predefined Collaborations for HL7

Creating Copies of HL7 Collaborations

To Create Copies of HL7 Collaborations

Adding an HL7 Message Library to an Existing Collaboration

To Add HL7 Message Library to an Existing Collaboration

About TCP/IP HL7 V2 Collaborations

TCP/IP HL7 V2 Adapter Projects Overview

TCP/IP HL7 V2 Adapter Collaborations

Inbound HL7 V2 Collaboration Overview

Inbound HL7 V2 Collaboration - Part 1

Inbound HL7 V2 Collaboration - Part 2

Inbound HL7 V2 Collaboration - Part 3

Outbound HL7 V2 Collaboration Overview

Outbound HL7 V2 Collaboration - Part 1

Outbound HL7 V2 Collaboration - Part 2

Outbound HL7 V2 Collaboration - Part 3

HL7 V2 Outbound Test Collaboration

About TCP/IP HL7 V3 Collaborations

About HL7 V3

TCP/IP HL7 V3 Adapter Projects Overview

TCP/IP HL7 V3 Adapter Collaborations

Inbound HL7 V3 Immediate Collaboration Overview

HL7 V3 Standard Inbound Message Mode Data Flow (For Immediate Mode of ACK Process) -- Part 1

HL7 V3 Standard Inbound Message Mode Data Flow (For Immediate Mode of ACK Process) -- Part 2

Inbound HL7 V3 Deferred Collaboration Overview

HL7 V3 Standard Inbound Message Mode Data Flow (For Deferred Mode of ACK Process) -- Part 1

HL7 V3 Standard Inbound Message Mode Data Flow (For Deferred Mode of ACK Process) -- Part 2

HL7 V3 Standard Inbound Message Mode Data Flow (For Deferred Mode of ACK Process) -- Part 3

Outbound HL7 V3 Collaboration Overview

HL7 V3 Standard Outbound Message Mode Data Flow (For Immediate and Deferred Mode of ACK Process) -- Part 1

HL7 V3 Standard Outbound Message Mode Data Flow (For Immediate and Deferred Mode of ACK Process) -- Part 2

HL7 V3 Standard Outbound Message Mode Data Flow (For Immediate and Deferred Mode of ACK Process) -- Part 3

HL7 V3 Outbound Test Collaboration

MLLP V2 and the Sample Projects

Creating and Configuring the MLLP V2.0 Database

To Create and Connect to the Database

To Run the MLLP V2.0 Database Scripts

To Create the Connection Pool and JDBC Resource

Associating the MLLP Database With the Adapter

MLLP V2 Content Exchange Model

Standard Inbound HL7 V2 Collaboration Overview over MLLPV2

HL7 V2 Standard Inbound Message Mode Data Flow over MLLPV2 -- Part 1

HL7 V2 Standard Inbound Message Mode Data Flow over MLLPV2 -- Part 2

HL7 V2 Standard Inbound Message Mode Data Flow over MLLPV2 -- Part 3

TCP/IP HL7 V2 Adapter Inbound Connectivity Map Properties

The TCP/IP HL7 V2 inbound adapter configuration properties are organized into the following sections on the Properties Editor accessed from the Connectivity Map:

General Inbound Settings – TCP/IP HL7 V2 Inbound Adapter

The following table lists and describes the TCP/IP HL7 V2 inbound adapter properties that appear on the General Inbound Settings page of the Properties Editor accessed from the Connectivity Map.

Table 2 Connectivity Map - General Inbound Settings

Name
Description
Max Data Size
A number that indicates the maximum amount of data that the programs can hold internally. The valid range is a numeric value from 1 to 2147483647 bytes (2GB), which is the maximum value of a Java integer.
Scope Of State
The scope of the state object, which is a Message Library node. Select one of the following options for this property:
  • Resource Adapter Level – The state has the same life cycle as the resource adapter.

  • Connection Level – The state has the same life cycle as the connection.

  • OTD Level – The state has the same life cycle as the Message Library object.

    This scope represents the life cycle of the state.

Dedicated Session Mode
An indicator of whether the server Dedicated Session Mode is enabled. When the server Dedicated Session Mode is enabled, the current client’s request exclusively holds the server port to which it connects. The next client’s request to the same port is blocked or rejected until the previous request concludes and releases the connection.

Select true to enable the Dedicated Session Mode, or select false to disable the Dedicated Session Mode.

TCPIP Inbound Settings — TCP/IP HL7 V2 Inbound Adapter

The following table lists and describes the properties on the TCPIP Inbound Settings page of the Properties Editor accessed from the Connectivity Map. These properties configure the Java socket and server socket options.

Table 3 Connectivity Map - TCPIP Inbound Settings

Name
Description
Connection Type
The way the adapter establishes the TCP/IP connection. Select one of the following options:
  • Client – The adapter connects to an external server (host/port) to establish the connection. The adapter is in active mode.

  • Server – The adapter waits and listens on a certain port for an incoming connection request from an external client. Once the request is received, the adapter accepts the request and establishes the connection. The adapter is in passive mode.

Server is the default setting. Unless you specifically require Client mode, leave the default value.

ServerSO Timeout
The value (in milliseconds) of the SO_TIMEOUT parameter for ServerSocket. The timeout must be greater than zero (0). A timeout of zero is interpreted as an infinite timeout.

This value is used for the ServerSocket.accept() method. When this option is set to a non-zero timeout, calling accept() for this ServerSocket will block for the configured length of time. If the timeout expires, a java.net.SocketTimeoutException (or java.net.InterruptedIOException) is thrown, but the ServerSocket remains valid.

Enable this option prior to entering the blocking operation. This property is only used when the Connection Type property is set to Server.

Server Socket Factory Implementation Class Name
The name of the Java class that implements the server socket factory. This class is used to create the server socket. If you have provided your own server socket implementation, enter the name of the Java class that contains this implementation here. The factory implementation class must implement the com.stc.connector.tcpip.model.factory.TCPIPSocketFactory interface. A default interface, com.stc.connector.tcpip.model.factory.TCPIPSocketFactoryImpl, is provided.
Keep Alive
An indicator of whether the client’s SO_KEEPALIVE option is enabled or disabled. Select true to enable SO_KEEPALIVE; otherwise, select false.

When the option is enabled for a TCP socket and no data has been exchanged across the socket in either direction for two hours, TCP automatically sends a KEEPALIVE probe to the peer (the actual value is implementation dependent). This probe is a TCP segment to which the peer must respond. One of three responses is expected:

  1. The peer responds with the expected ACK. The application is not notified (since everything is OK). TCP will send another probe following another two hours of inactivity.

  2. The peer responds with an RST, which tells the local TCP that the peer host has crashed and rebooted. The socket is closed.

  3. There is no response from the peer. The socket is closed. The purpose of this option is to detect if the peer host has crashed. This is used for the accepted client Socket.


Note - For some properties, the server socket itself does not have direct property settings associated with it. Instead, the properties map to the accepted client socket.


Receive Buffer Size
A number indicating the receive buffer size. This is the value of the SO_RCVBUF option for the current socket, which is the buffer size used by the operating system for input on this socket. It provides an estimate of the size of the underlying buffers used by the platform for incoming network I/O.

When used in set mode, this is a suggestion for the kernel from the application regarding the size of buffers to use for the data to be received over the socket. When used in get mode, this must return the actual size of the buffer used by the platform when receiving data on this socket.

Send Buffer Size
A number indicating the send buffer size. This is the value of the SO_SNDBUF option for the current socket, which is the buffer size used by the operating system for output on this socket. It provides an estimate of the size of the underlying buffers used by the platform for outgoing network I/O.

When used in set mode, this is a suggestion for the kernel from the application regarding the size of buffers to use for the data to be sent over the socket. When used in get mode, this must return the actual size of the buffer used by the platform when sending out data on this socket.

SoLinger
An indicator of whether the adapter performs a “linger-on-close” timeout. This option disables or enables an immediate return from a call to the close() method for a TCP Socket. To enable the linger-on-close timeout, select true; otherwise, select false.

If you enable this property, specify the maximum length of the timeout in the SoLinger Timeout property.

SoLinger Timeout
The server’s linger–on–close timeout in seconds. Use SoLinger Timeout when SoLinger is set to true (see the description for SoLinger above). You can specify an integer between -1 and 65535. The default is -1 seconds, which indicates that the SoLinger option is disabled.

When SoLinger is set to true, the SoLinger Timeout value indicates the following:

  • A non-zero integer means that calling close() will block pending the transmission and acknowledgement of all data written to the peer. When all data is written, the socket is closed gracefully. Upon reaching the linger timeout value specified here, the socket is closed forcefully with a TCP RST. If the specified timeout value exceeds 65,535 it will be reduced to 65,535.

  • A zero integer means that a forceful close is performed immediately.

SoTimeout
The value of the SoTimeout in milliseconds. This is used for the accepted client socket. You can enter a value greater than or equal to zero (0). When set to zero (0), the timeout is infinite.

With this option set to a non-zero value, calling the read() method on the input stream associated with this socket will block for only the configured length of time. If the timeout expires, a java.io.InterruptedIOException or java.net.SocketTimeoutException is thrown, but the socket remains valid.

Enable this option prior to entering the blocking operation.

TcpNoDelay
An indicator of whether data packets that are smaller than the maximum transfer unit (MTU) size are sent out immediately over the network (this refers to Nagle’s algorithm). Select one of the following options:
  • True – Indicates that the server allows data packets that are smaller than the MTU size to be sent out immediately over the network. This can improve performance for higher-speed networks.

  • False– Indicates that the server does not allow data packets that are less than the MTU size be sent out immediately over the network.

    This is used for the accepted client socket.

TCPIP Inbound Settings - Server Port Binding — TCP/IP HL7 V2 Inbound Adapter

The following table lists and describes the properties that appear on the Server Port Binding page of the Properties Editor accessed from the Connectivity Map. The properties define the server port binding retry options. This section is only used when the Connection Type under TCPIP Inbound Settings is set to Server.

Table 4 Connectivity Map - TCPIP Inbound Settings - Server Port Binding

Name
Description
Max Binding Retry
The maximum number of times the adapter attempts to bind to the specified TCP/IP port on the localhost. This value must be an integer.
Retry Binding Interval
The length of time (in milliseconds) the adapter waits between attempts to bind to the specified TCP/IP port on the localhost.

TCPIP Inbound Settings - Client Connection Establishment — TCP/IP HL7 V2 Inbound Adapter

The following table lists and describes the property that appears on the Client Connection Establishment page of the Properties Editor accessed from the Connectivity Map. This property defines a wait time before connecting to the external system. This section is only used when the Connection Type under TCPIP Inbound Settings is set to Client.

Table 5 Connectivity Map - TCPIP Inbound Settings - Client Connection Establishment

Name
Description
Time to Wait Before Attempting Connection
The length of time (in milliseconds) that the adapter waits before attempting to connect to the external system.

TCPIP Inbound Settings - Inbound Connection Management — TCP/IP HL7 V2 Inbound Adapter

The following table lists and describes the properties that appear on the Inbound Connection Management page of the Properties Editor accessed from the Connectivity Map. These properties manage the connection to inbound systems. For example, these properties include the connection pool and the life cycle of the accepted connection.

Table 6 Connectivity Map - TCPIP Inbound Settings - Inbound Connection Management

Name
Description
Max Connection Pool Size
The maximum number of concurrent connections allowed for the specific listener or monitor that is listening or monitoring the specified TCP/IP port. 0 (zero) indicates that there is no limit.

This value indicates the capability or availability of this server’s services. Each connection request from a client gains one concurrent connection. This value also indicates the maximum number of clients that can concurrently connect to this server’s services and can be served by the specific listener or monitor at the same time.

Scope Of Connection
The scope of the accepted connection that is used by the adapter. Select one of the following options:
  • Resource Adapter Level – The resource adapter closes the connection upon request (by way of ClosureCommandMessage) so the connection may “keep alive” during multiple executions of the Collaboration.

  • Collaboration Level – The resource adapter closes the connection once the Collaboration has been executed so the connection has the same life cycle as the Collaboration.

Close Notification
A String indicating the trigger value that notifies the server to close the connection. When the server receives a notification with content that matches this parameter’s value, the server safely closes the connection and cancels any corresponding schedules.

The default value is QUIT.

Idle Timeout
The length of time (in milliseconds) for inactivity of the requestor (client). The adapter attempts to detect in/out activity from the client. If there is no client activity for a specified time period, then the connection is closed from the server side to release the resource. To disable idle timeout checking, specify 0 (zero) for this parameter.

TCPIP Inbound Schedules - Listener Schedule — TCP/IP HL7 V2 Inbound Adapter

The following table lists and describes the properties that appear on the Listener Schedule page of the Properties Editor accessed from the Connectivity Map. These properties configure the scheduler used by the inbound TCP/IP server. The server waits for a new client connection establishment request. These parameters are used to configure the listener.

Two Java EE schedulers are available, both of which provide the functionality required by the inbound TCP/IP Server.

Table 7 Connectivity Map - TCPIP Inbound Schedules - Listener Schedule

Name
Description
Scheduler
The scheduler type for this inbound communication. Select one of the following options:
  • Timer Service – The task is scheduled through the Java EE Timer Service. Timer Service is supported by Java EE.

  • Work Manager – The task is scheduled through the Java EE Work Manager. Work Manager is supported by Java EE (JCA 1.5 and above).

If your container doesn’t support JCA Work Manager, select Timer Service.

Schedule Type
This property, though visible from the Properties Editor, is disabled. The only available schedule type is Repeated, indicating that the task is scheduled for repeated execution at regular intervals defined by the Period property.
Delay
An integer indicating the length of time (in milliseconds) before the task is executed. This property applies to both the Timer Service and the Work Manager.
Period
An integer indicating the length of time (in milliseconds) between successive task executions. This property applies to both the Timer Service and the Work Manager.
At Fixed Rate
An indicator of whether a fixed-rate execution or fixed-delay execution is used. This property applies to the Timer Service configuration only. Select true to indicate fixed-rate; select false to indicate fixed-delay.
  • Fixed-Rate – Each execution is scheduled relative to the scheduled time of the initial execution. If an execution is delayed for any reason (such as garbage collection or other background activity), two or more executions occur in rapid succession to “catch up.” In the long run, the frequency of execution is exactly the reciprocal of the specified period, assuming the system clock underlying Object.wait(long) is accurate.

  • Fixed-Delay – Each execution is scheduled relative to the actual time of the previous execution. If an execution is delayed for any reason (such as garbage collection or other background activity), subsequent executions are delayed as well. As a result, the frequency of execution is generally slightly lower than the reciprocal of the specified period, assuming the system clock underlying Object.wait(long) is accurate.

TCPIP Inbound Schedules - Service Schedule TCP/IP HL7 V2 Inbound Adapter

The following table lists and describes the properties that appear on the Service Schedule page of the Properties Editor accessed from the Connectivity Map. These properties configure the scheduler used by the TCP/IP server that executes the business tasks (Collaboration rules) over the existing connection. This scheduler affects the actual business rules you define.

You can use either of the following two Java EE schedulers, both of which provide the functionality required by the inbound TCP/IP server.

Table 8 Connectivity Map - TCPIP Inbound Schedules - Service Schedule

Name
Description
Scheduler
The scheduler type for this inbound communication. Select one of the following options:
  • Timer Service – The task is scheduled through the Java EE Timer Service. Timer Service is supported by Java EE.

  • Work Manager – The task is scheduled through the Java EE Work Manager. Work Manager is supported by Java EE (JCA 1.5 and above).

If your container doesn’t support JCA Work Manager, select Timer Service.

Schedule Type
An indicator of whether the task is scheduled to occur once or be repeated. This property applies to both the Timer Service and the Work Manager. Select one of the following options:
  • OneTime – The task is scheduled for one-time execution.

  • Repeated – The task is scheduled for repeated execution at regular intervals defined by Period property, described below.

Delay
An integer indicating the length of time (in milliseconds) before the task is executed. This property applies to both the Timer Service and the Work Manager.
Period
An integer indicating the length of time (in milliseconds) between successive task executions. This property applies to both the Timer Service and the Work Manager. This is used when the Schedule Type property is set to Repeated.
At Fixed Rate
An indicator of whether a fixed-rate execution or fixed-delay execution is used. This property applies to the Timer Service configuration only, and is used when the Schedule Type property is set to Repeated. Select true to indicate fixed-rate; select false to indicate fixed-delay.
  • Fixed-Rate – Each execution is scheduled relative to the scheduled time of the initial execution. If an execution is delayed for any reason (such as garbage collection or other background activity), two or more executions occur in rapid succession to “catch up.” In the long run, the frequency of execution is exactly the reciprocal of the specified period, assuming the system clock underlying Object.wait(long) is accurate.

  • Fixed-Delay – Each execution is scheduled relative to the actual time of the previous execution. If an execution is delayed for any reason (such as garbage collection or other background activity), subsequent executions are delayed as well. As a result, the frequency of execution is generally slightly lower than the reciprocal of the specified period, assuming the system clock underlying Object.wait(long) is accurate.

HL7 Acknowledgment — TCP/IP HL7 V2 Inbound Adapter

The following table lists and describes the properties that appear on the HL7 Acknowledgment page of the Properties Editor accessed from the Connectivity Map. These properties define how the application acknowledgment events are handled.

Table 9 Connectivity Map - HL7 Acknowledgment

Name
Description
Acknowledgment Level
An indicator of whether the external application sends an Acknowledgement after successfully receiving a message, or after the message has been successfully committed to the application database. Select one of the following options:
  • A – Application acknowledgment. The acknowledgement is sent after the message is successfully and functionally processed by one receiving system.

  • C – Commit (accept) acknowledgment. The acknowledgement is sent when the message is successfully received.

eGate Sends App Acks
An indicator of whether the HL7 application acknowledgment sent to the external system is generated by the adapter or forwarded from the application server. Select one of the following options:
  • true – Indicates that the application server receives or creates the HL7 application acknowledgment and sends it to the adapter, which in turn forwards it to the external system.

  • false – Indicates that the adapter creates and sends the HL7 application acknowledgment directly to the external system.

    This property is used in the inbound Collaboration code.

Forward External Acks
An indicator of whether the HL7 application acknowledgment is forwarded to the application server. When an HL7 application acknowledgment is received, it is sometimes necessary to forward the contents of the HL7 application acknowledgment to the application server (as data). This property is used for inbound Collaboration code.

Select true if the adapter forwards HL7 application acknowledgments from the external system to the application server for processing; otherwise select false.

Timeout For Delayed Ack
A number indicating the timeout value for delayed ACK in milliseconds. This property is used in the inbound Collaboration code.

Lower Layer Protocol — TCP/IP HL7 V2 Inbound Adapter

The following table lists and describes the properties that appear on the Lower Layer Protocol page of the Properties Editor accessed from the Connectivity Map. These properties define the Lower Layer Protocol (LLP) configuration.

Table 10 Connectivity Map - Lower Layer Protocol

Name
Description
LLP Type
The lower layer protocol (LLP) type. Select one of the following options:
  • MLLP (Minimal Lower Layer Protocol)

  • HLLP (Hybrid Lower Layer Protocol)

  • MLLP v2.0 (Minimal Lower Layer Protocol v2.0)

For more information on the available envelope types, see Lower Layer Protocol.

Start Block Character
The first envelope marker character in the HL7 envelope, as a decimal ASCII number. Enter a number from 1 to 127. Unless there is a conflict, the value should be ASCII VT (decimal 11).
End Data Character
The second to the last envelope marker character in the HL7 envelope, as a decimal ASCII number. Enter a number from 1 to 127. Unless there is a conflict, the value should be ASCII FS (decimal 28).
End Block Character
The last envelope marker character in the HL7 envelope, as a decimal ASCII number. Enter a number from 1 to 127. To strictly comply with the HL7 Standard, this property must be set to a carriage return (decimal 13).
HLLP Checksum Enabled
An indicator of whether the HLLP Checksum is enabled or disabled.

Select true to enable checksum values; otherwise select false.

Max Number of Retries
The maximum number of times the adapter tries to send a message upon receiving the MLLP v2.0 Negative Commit Acknowledgement from the peer before giving up. This property is used by the adapter in outbound mode. Enter any integer.

Sequence Number Protocol — TCP/IP HL7 V2 Inbound Adapter

The following table lists and describes the property that appears on the Sequence Number Protocol page of the Properties Editor accessed from the Connectivity Map. This property enables or disables HL7 sequence numbering, which is used to help prevent duplication of data.

Table 11 Connectivity Map - Sequence Number Protocol

Name
Description
Sequence Number Enabled
An indicator of whether sequence numbering is enabled or disabled. Enabling sequence numbering helps prevent duplication of data. Select true to enable sequence numbering; otherwise select false.

HL7 MSH Segment — TCP/IP HL7 V2 Inbound Adapter

The following table lists and describes the properties that appear on the HL7 MSH Segment page of the Properties Editor accessed from the Connectivity Map. These properties define the configuration of the MSH segment of the HL7 message. For more information about this segment, refer to the HL7 specification (http://www.hl7.org).

Table 12 Connectivity Map - HL7 MSH Segment

Name
Description
Field Separator
The character that separates the segment ID and the first real field. This value defines the character that is used as a separator for the rest of the message and is the first field in the HL7 MSH segment (MSH-01).

The value is a decimal ASCII number, and the allowed range is 1 to 127. The default setting is 124, which is the pipe character (|).

Encoding Characters
Encoding characters in the following order:
  • Component separator

  • Repetition separator

  • Escape character

  • Subcomponent separator

    This is the second field in the HL7 MSH segment (MSH-02).

The default is ^~\&, (ASCII 94, 126, 92, and 38 respectively).

Sending Application
A user-defined value for the sending application among other applications within the network enterprise. The network enterprise consists of the applications that participate in the exchange of HL7 messages within the enterprise.

This is the third field in the HL7 MSH segment (MSH-03).

Sending Facility
A user-defined value that further identifies the sending application among multiple identical instances of the application running on behalf of different organizations.

This is the fourth field in the HL7 MSH segment (MSH-04).

Receiving Application
A user-defined value for the receiving application among other applications within the network enterprise.

This is the fifth field in the HL7 MSH segment (MSH-05).

Receiving Facility
A user-defined value that further identifies the receiving application among multiple identical instances of the application running on behalf of different organizations.

This is the sixth field in the HL7 MSH segment (MSH-06).

Security
The implemented application level security features.

This is the eighth field in the HL7 MSH segment (MSH-08).

Processing ID
The subcomponent processing ID of the MSH-11 field. MSH-11 is used to indicate whether a message is processed as defined in the HL7 Application processing rules.

Specify one of the following options:

  • D - The message is part of a debugging system.

  • P - The message is part of a production system.

  • T - The message is part of a training system.

    In some cases there may be an additional value, the processing mode, following the initial value. This value can be A (archive), R (restore from archive), or I (initial load).

Version ID
The HL7 version as displayed in HL7 Table 0104 - Version ID. This value is matched by the receiving system to its own version to ensure that messages are interpreted correctly.

This is the 12th field in the HL7 MSH segment (MSH-12).

Country Code
A code that indicates the country of origin for the message (see HL7 Table 0399). Use the 3-character (alphabetic) form of ISO 3166. This value is used to specify default elements in a message, such as currency.

This is the 17th field in the HL7 MSH segment (MSH-17).

Character Set
The character set(s) used by the messages (see HL7 Table 0211). If the field is left blank, the character set is assumed to be the 7-bit ASCII set. The default value is 8859/1 (printable 7-bit ASCII character set).

This is the 18th field in the HL7 MSH segment (MSH-18).

Principal Language of Message
The 2-character ISO 639 alphabetic code that specifies the principal language of the message.

This is the 19th field in the HL7 MSH segment (MSH-19).

Alternate Character Set Handling Scheme
The value for the alternate character set handling scheme to be used when any alternative character sets are used and a special handling scheme is necessary (see HL7 Table 0356). Possible values are ISO 2022-1994, 2.3, or <null> (blank). Leaving the field blank indicates that no character set switching will occur.

This is the 20th field in the HL7 MSH segment (MSH-20).

Conformance Statement ID
A unique identifier that applies to a query’s conformance statement. It can also be used as a Message Profile Identifier to assert constancy with a message profile (grammar, syntax, usage, and so on).

This is the 21st field in the HL7 MSH segment (MSH-21).

Validate MSH
An indicator of whether to validate the MSH segment of the data message (for inbound) and the MSH segment of the ACK (for outbound). Select true if you want the Collaboration to validate the MSH segment; otherwise select false.

This parameter is used in Collaboration code.


Note - This property does not affect structural validation of the entire HL7 message itself. Structural validation is always performed.


HL7 SFT Segment — TCP/IP HL7 V2 Inbound Adapter

The following table lists and describes the properties that appear on the HL7 SFT Segment page of the Properties Editor accessed from the Connectivity Map. These properties define the configuration of the SFT segment of the HL7 message, which provides additional information about one or more software products used as sending applications. The primary purpose of this segment is for diagnostic use. There may be additional uses per site-specific agreements. For more information about this segment, refer to the HL7 specification (http://www.hl7.org).


Note - The SFT segment is available starting with HL7 version 2.5.


Table 13 Connectivity Map - HL7 SFT Segment

Name
Description
Enable
An indicator of whether the SFT optional segment is enabled in the ACK. Select true to enable the segment; otherwise select false.

Note - If Enable is set to true, and the HL7 version is not configured as 2.5, the adapter will error upon startup.


Software Vendor Organization
The name of the company that publishes or distributes the sending software that created the transaction. This field identifies the vendor responsible for maintaining the application. The purpose of this field, along with the remaining fields in this segment, is to provide a more complete profile of the sending applications.

This is the first field in the HL7 SFT segment (SFT-01).

Software Certified Version or Release Number
The latest software version number or release number for the sending system, which helps provide a more complete profile of the application that is sending or receiving HL7 messages.

Version numbers are important in identifying the specific release of an application. In some situations, the receiving application validates the software certified version or release number against a list of certified versions or releases of the particular software. This helps determine whether the sending application adheres to specific business rules required by the receiving application. Alternatively, the software may perform different processing, depending on the version of the sending software.

This is the second field in the HL7 SFT segment (SFT-02).

Software Product Name
The name of the software product that submitted the transaction. The default value is TCP/IP HL7 eWay Intelligent Adapter.

This is the third field in the HL7 SFT segment (SFT-03).

Software Binary ID
The unique software binary ID. Software binary IDs are issued by a vendor for each unique software version instance. These IDs are used to differentiate between multiple versions of the same software. Identical primary IDs indicate that the software is identical at the binary level, but configuration settings may differ.

This is the fourth field in the HL7 SFT segment (SFT-04).

Software Product Information
Any additional information about the sending application for more complete identification. This could include a description of the software application, configuration settings, modifications made to the software, and so on. This information is used for diagnostic purposes and provides greater flexibility in identifying the application software.

This is the fifth field in the HL7 SFT segment (SFT-05).

Software Install Date
The date on which the submitting software was installed at the sending site. The software installation date on its own can often provide key information about the behavior of the application.

This is the sixth field in the HL7 SFT segment (SFT-06).

Communication Control — TCP/IP HL7 V2 Inbound Adapter

The following table lists and describes the properties that appears on the Communication Control page of the Properties Editor accessed from the Connectivity Map. These properties define how data is transferred (that is, sent and received) over the TCP/IP connection.

Table 14 Connectivity Map - Communication Control

Name
Description
Time To Wait For A Response
The amount of time (in milliseconds) that the adapter waits for a response from the external system before taking recourse action (see Action on No Response in HL7 Recourse Action). Any data from the external system is considered a response.

This property corresponds to the initial read/receive operation timeout. Once a response is received, the subsequent read/receive operation uses the value specified for SoTimeout ( see TCPIP Inbound Settings). A value of 0 (zero) indicates an infinite timeout.

Max Empty Read Retry
The maximum number of times the adapter attempts to read data from the external system after the read/receive operation returns nothing. This applies to the read or receive operation after a response starts to arrive. Empty Read means that a timeout occurs on the read/receive operation, which uses the SoTimeout parameter in the TCPIP Server Base Settings section as the timeout setting (see TCPIP Inbound Settings). The corresponding recourse action is specified by the Action on Max Failed Read Retry (see HL7 Recourse Action).
Max No Response
The maximum number of response timeouts the adapter allows while waiting for data from the external system before taking recourse action (see Action on Max No Response in HL7 Recourse Action).

This property is used in the inbound Collaboration code. It is only used by outbound adapters and works in conjunction with the Resend option of the Action on No Response property. It configures the adapter to resend the last message for the specified maximum number of times before the subsequent recourse action is taken.

Max NAK Receive Retry
The maximum number of negative acknowledgments (NAKs) the adapter receives before taking recourse action (see Action on Max Nak Received in HL7 Recourse Action).

This property is used for the inbound Collaboration code.

Max NAK Send Retry
The maximum number of negative acknowledgments (NAKs) the adapter sends before taking recourse action (see Action on Max Nak Sent in HL7 Recourse Action).

This property is used in the inbound Collaboration code.

Max Canned NAK Send Retry
The maximum number of canned negative acknowledgments that the adapter sends before taking recourse action (see Action on Max Nak Sent in HL7 Recourse Action). A value of 0 (zero) indicates that the adapter will not attempt to create or send a canned NAK.
Enable Journaling
An indicator of whether message journaling is enabled. To enable message journaling, select true; otherwise select false.

This property is used for inbound Collaboration code.

HL7 Recourse Action — TCP/IP HL7 V2 Inbound Adapter

The following table lists and describes the properties that appear on the HL7 Recourse Action page of the Properties Editor accessed from the Connectivity Map. These properties define the actions the adapter takes when operations occur outside the configured constraints.

Table 15 Connectivity Map - HL7 Recourse Action

Name
Description
Action on No Response
The action the adapter takes when no ACK is received from the external system in the allotted time. The amount of time is determined by the Time To Wait For A Response property (see Communication Control). Select one of the following options:
  • Exit – The adapter terminates its connection with the external system and shuts down.

  • Resend – The adapter attempts to resend the message to the external system. The Resend option is only allowed when sequence numbering is in effect.

  • Reset – The adapter closes its connection with the external system and goes through the connection scenario.

    This property is used for inbound Collaboration code.

Action on Max No Response
The action the adapter takes when it attempts to send a message to the external system the maximum allowed number of times and does not receive any response (HL7 Application Acknowledgement) from the external system. The maximum number times the adapter sends a message without receiving a response is determined by the Max No Response property (see Communication Control). Select one of the following options:
  • Exit – The adapter terminates its connection with the external system and shuts down.

  • Reset – The adapter closes its connection with the external system and goes through the connection scenario.

    This property is used for inbound Collaboration code.

Action on Max Failed Read Retry
The action the adapter takes after it has reached the empty read limit set by the Max Empty Read Retry property. This property is used by inbound adapters only. Select one of the following recourse options:
  • Exit – The adapter terminates its connection with the external system and shuts down.

  • Reset – The adapter closes its connection with the external system and goes through the connection scenario.

    This property is used for inbound Collaboration code.

Action on Nak Received
The action the adapter takes when it receives an HL7 Application NAK from the external system. Select one of the following options:
  • Resend – The adapter attempts to resend the message to the external system.

  • Reset – The adapter closes its connection with the external system and goes through the connection scenario.

  • Skip Message – The adapter remains connected, but writes the message to an error queue.


    Note - Do not set both the Action On NAK Received and Action On Max NAK Received properties to Skip Message.


    This property is used for inbound Collaboration code.

Action on Max Nak Received
The action the adapter takes when the maximum number of HL7 Application NAKs have been received from the external system, as set by the Max NAK Receive Retry property (see Communication Control). Select one of the following options:
  • Exit – The adapter terminates its connection with the external system and shuts down.

  • Reset – The adapter closes its connection with the external system and goes through the connection scenario.

  • Skip Message – The adapter remains connected, but writes the message to an error queue.

    This property is used for inbound Collaboration code.


    Note - Do not set both the Action On NAK Received and Action On Max NAK Received properties to Skip Message.


Action on Max Nak Sent
The action the adapter takes when it has sent the maximum allowed number of NAKs to the external system, as set by the Max NAK Send Retry parameter (see Communication Control). Select one of the following options:
  • Exit – The adapter terminates its connection with the external system and shuts down.

  • Reset – The adapter closes its connection with the external system and goes through the connection scenario.

    This property is used for inbound Collaboration code.