HL7 MLLP Connector

Version 24.1.8899


HL7 MLLP Connector


Health Level-7 is a set of standards for the transfer of clinical data used by hospitals and other healthcare providers. HL7 MLLP connectors support generating and parsing HL7 documents in conjunction with MLLP as the transport protocol.

Overview

HL7 MLLP connectors provide two sets of functionality:

  • File transfer over the MLLP transport protocol
  • EDI document parsing and generation according to the HL7 EDI standard

An HL7 MLLP connection is configured in two places. Configure the HL7 MLLP Profiles page with the settings that identify CData Arc as an HL7 and MLLP entity. Then configure individual HL7 MLLP connectors with the HL7 and MLLP details for each trading partner.

When an HL7 MLLP connector receives an inbound message from a trading partner, it verifies the HL7 identification details to confirm that the document was sent from and to the expected parties. Then it translates the document into XML for further processing in an Arc flow.

When an HL7 MLLP connector sends files to a trading partner:

  • XML files are translated to HL7 before being sent
  • HL7 documents are sent as-is

CData strongly recommends that you use the HL7 MLLP connector in conjunction with the XML Map connector to ensure that input and output XML is formatted correctly. See Use with the XML Map Connector for more information.

Profile Configuration

The HL7 MLLP Profile must be configured before connections can be established with individual HL7 MLLP connectors. Click Profiles on the top menu bar, then click the HL7 MLLP tab.

HL7 MLLP Profile Tab

Server Configuration

Settings for hosting a local MLLP server.

  • Port The port on which to listen for incoming MLLP connections.
  • Use SSL/TLS Whether to require incoming connections to use SSL/TLS encryption for transport security.
  • TLS Server Certificate TLS / SSL サーバーのID を検証するために使用される公開鍵証明書。ターゲットサーバーがTLS / SSL を使用する場合は、このフィールドにサーバーを識別する証明書を設定します。サーバーの証明書が利用できない場合は、この設定を空白のままにして基盤となるOS / JVM に証明書の検証を実行させるか、任意の証明書 に設定してサーバーのID を暗黙的に信頼させることができます。 (This field only appears if you check Use SSL/TLS.)

HL7 Personal Ids

  • Application Namespace Id (MSH3.1) The application Id that identifies the local namespace for the HL7 protocol exchange.
  • Application Universal Id (MSH3.2) The local application universal Id for the HL7 protocol exchange.
  • Application Universal Id Type (MSH3.3) A type qualifier to provide context to the local application universal Id.
  • Facility Namespace Id (MSH4.1) The facility Id that identifies the local namespace for the HL7 protocol exchange.
  • Facility Universal Id (MSH4.2) The local facility universal Id for the HL7 protocol exchange.
  • Facility Universal Id Type (MSH4.3) A type qualifier to provide context to the local facility universal Id.

Other Settings

Settings that rarely need to be modified.

  • Inactivity Timeout The amount of time (in seconds) that the server allows clients to remain inactive before the connection is terminated.

Logging

Settings that govern the creation and storage of logs.

  • Log Level The verbosity of logs generated by the connector. When you request support, set this to Debug.
  • Log Rotate Interval The number of days to wait before creating a new log file.
  • Log Delete Interval The number of days to wait before deleting old log files.

Miscellaneous

Miscellaneous settings are for specific use cases.

  • Other Settings Enables you to configure hidden connector settings in a semicolon-separated list (for example, setting1=value1;setting2=value2). Normal connector use cases and functionality should not require the use of these settings.

Connector Configuration

Once you configure the global HL7 MLLP profile settings, create and configure individual HL7 MLLP connectors for each trading partner on the Flows page.

Settings Tab

Connector Settings

Settings related to the core operation of the connector.

  • コネクタId コネクタの静的な一意の識別子。
  • コネクタの種類 コネクタ名とその機能の説明が表示されます。
  • コネクタの説明 コネクタとフローにおけるロールについて自由形式の説明を記載するオプションのフィールド。
  • Remote Host The hostname or IP address of your remote host.
  • Port The port on which to listen for incoming MLLP connections.
  • Version The version of MLLP being used.
  • Connection Timeout The length of time (in seconds) the connector waits for a connection response before throwing a timeout error.
  • Use SSL/TLS Whether to require incoming connections to use SSL/TLS encryption for transport security.

HL7 Configuration

Settings related to the message headers. When converting HL7 documents into XML, the document headers are validated against these settings; when generating HL7 documents from XML, these settings are used to generate document headers.

  • Application Namespace Id (MSH5.1) In conjunction with the other 5.X elements, identifies the application on the remote side of the HL7 exchange.
  • Application Universal Id (MSH5.2) In conjunction with the other 5.X elements, identifies the application on the remote side of the HL7 exchange.
  • Application Universal Id Type (MSH5.3) In conjunction with the other 5.X elements, identifies the application on the remote side of the HL7 exchange.
  • Facility Namespace Id (MSH6.1) In conjunction with the other 6.X elements, identifies the facility on the remote side of the HL7 exchange.
  • Facility Universal Id (MSH6.2) In conjunction with the other 6.X elements, identifies the facility on the remote side of the HL7 exchange.
  • Facility Universal Id Type (MSH6.3) In conjunction with the other 6.X elements, identifies the facility on the remote side of the HL7 exchange.

Acknowledgments

Settings related to generating and requesting acknowledgments.

  • Acknowledgment Type Whether or not acknowledgments should be generated and requested.

Automation Tab

Automation Settings

Settings related to the automatic processing of files by the connector.

  • Send Whether files arriving at the connector are automatically sent as HL7 or XML messages.
  • Retry Interval The number of minutes before a failed send is retried. A retry is triggered when the server does not respond to a send attempt, or responds negatively to communicate that the file was not received.
  • Max Attempts The maximum number of times the connector processes the input file. Success is based on a successful server acknowledgement and validation of the receipt (when requested synchronously). If you set this to 0, the connect retries the file indefinitely.
  • Resend Interval The number of minutes before unacknowledged messages are resent. A resend is triggered when the server receives the file, but an asynchronous MDN receipt is not provided within the expected timeframe.
  • Max Attempts (async) The maximum number of times the connector processes the input file when asynchronous receipts are requested. Success is based on the return of an asynchronous receipt within the Resend Interval after a successful server acknowledgement. If a successful server acknowledgement is not returned, Max Attempts is applied instead. If this is set to 0, the connector resends the file indefinitely.

Performance

コネクタへのリソースの割り当てに関する設定。

  • 最大ワーカー数 このコネクタでファイルを処理するためにスレッドプールで消費されるワーカースレッドの最大数。設定された場合、これは設定 > オートメーションページのデフォルト設定をオーバーライドします。
  • 最大ファイル数 コネクタに割り当てられた各スレッドが送信するファイルの最大数。設定された場合、これは設定 > オートメーションページのデフォルト設定をオーバーライドします。

アラートタブ

アラートとサービスレベル(SLA)の設定に関連する設定。

コネクタのE メール設定

サービスレベル(SLA)を実行する前に、通知用のE メールアラートを設定する必要があります。アラートを設定をクリックすると、新しいブラウザウィンドウで設定ページが開き、システム全体のアラートを設定することができます。詳しくは、アラートを参照してください。

サービスレベル(SLA)の設定

サービスレベルでは、フロー内のコネクタが送受信すると予想される処理量を設定し、その量が満たされると予想される時間枠を設定できます。CData Arc は、サービスレベルが満たされていない場合にユーザーに警告するE メールを送信し、SLA を At Risk(危険) としてマークします。これは、サービスレベルがすぐに満たされない場合に Violated(違反) としてマークされることを意味します。これにより、ユーザーはサービスレベルが満たされていない理由を特定し、適切な措置を講じることができます。At Risk の期間内にサービスレベルが満たされなかった場合、SLA はViolated としてマークされ、ユーザーに再度通知されます。

サービスレベルを定義するには、予想処理量の条件を追加をクリックします。

  • コネクタに個別の送信アクションと受信アクションがある場合は、ラジオボタンを使用してSLA に関連する方向を指定します。
  • 検知基準(最小)を、処理が予想されるトランザクションの最小値(量)に設定し、フィールドを使用して期間を指定します。
  • デフォルトでは、SLA は毎日有効です。これを変更するには、毎日のチェックをOFF にし、希望する曜日のチェックをON にします。
  • 期間終了前にステータスを’At Risk’ に設定するタイミングを使用して、SLA がAt Risk としてマークされるようにします。
  • デフォルトでは、通知はSLA が違反のステータスになるまで送信されません。これを変更するには、‘At Risk’ 通知を送信のチェックをON にします。

次の例は、月曜日から金曜日まで毎日1000ファイルを受信すると予想されるコネクタに対して構成されたSLA を示しています。1000ファイルが受信されていない場合、期間終了の1時間前にAt Risk 通知が送信されます。

Advanced Tab

EDI Delimiters

Settings that specify which characters separate elements, segments, and so on.

  • Data Element Separator The character that separates individual data elements in the document.
  • Component Element Separator The character that separates elements within a composite data structure in the document.
  • Segment Terminator The character that indicates the end of a segment in the document.
  • Release Char The character that releases (escapes) the next character, overriding its usual meaning. This allows reserved characters to appear as data within documents, as long as they are preceded by the Release Char.
  • Repetition Char The character that indicates repetition of element values.
  • Suffix Appended to the Segment Terminator to distinguish segments.

Proxy Settings

These are a collection of settings that identify and authenticate to the proxy through which the HL7 MLLP connection should be routed. By default, this section uses the global settings on the Settings Page. Clear the checkbox to supply settings specific to your connector.

  • プロキシの種類 プロキシベースのファイアウォールで使用されるプロトコル。
  • プロキシホスト プロキシベースのファイアウォールの名前またはIP アドレス。
  • プロキシポート プロキシベースのファイアウォールのTCP ポート。
  • プロキシユーザー プロキシベースのファイアウォールでの認証に使用するユーザー名。
  • プロキシパスワード プロキシベースのファイアウォールに認証するために使われるパスワード。
  • 認証スキーム デフォルトのNone のままにするか、以下の認証スキームから1つを選択します:BasicDigestProprietaryNTLM

Advanced Settings

Settings not included in the previous categories.

  • Generate Description As When translating HL7 into XML, descriptions of the HL7 segments and elements can be provided as context for the HL7 data. Use this dropdown to choose whether to add this context as an XML comment or as XML attributes.
  • 処理の遅延 インプットフォルダに置かれたファイルの処理を遅延させる時間(秒)。これは旧式の設定です。代替として、ローカルファイルシステムの管理にはFile コネクタの使用がベストプラクティスです。
  • Strict Schema Validation Whether the connector should Ignore, Warn, or Fail when the following are detected: repeat counts above the allowed number, missing required elements or segments, invalid qualifier and code values, disallowed element lengths, and invalid element values.
  • ローカルファイルスキーム コネクタがアウトプットするメッセージにファイル名を割り当てるスキーム。ファイル名にマクロを動的に使用して、識別子やタイムスタンプなどの情報を含めることができます。詳しくは、マクロ を参照してください。
  • TLS Enabled Protocols The list of TLS/SSL protocols supported when establishing outgoing connections. Best practice is to only use TLS protocols. Some obsolete operating systems do not support TLS 1.2.
  • Validate Identifiers When checked, the connector ensures that the identifiers in the translated document match the identifiers specified in the connector configuration.

Message

  • Sent フォルダに保存 チェックすると、コネクタで処理されたファイルをコネクタのSent フォルダにコピーします。
  • Sent フォルダのスキーム 選択された時間間隔に従ってSent フォルダ内のメッセージをグループ化するようコネクタに指示します。例えば、Weekly オプションを選択すると、コネクタは毎週新しいサブフォルダを作成してその週のすべてのメッセージをそのフォルダに格納します。ブランクに設定すると、コネクタはすべてのメッセージをSent フォルダに直接保存します。多くのメッセージを処理するコネクタの場合、サブフォルダを使用するとメッセージが整理されてパフォーマンスが向上します。

Logging

  • Log Level The verbosity of logs generated by the connector. When you request support, set this to Debug.
  • Log Subfolder Scheme Instructs the connector to group files in the Logs folder according to the selected interval. For example, the Weekly option instructs the connector to create a new subfolder each week and store all logs for the week in that folder. The blank setting tells the connector to save all logs directly in the Logs folder. For connectors that process many transactions, using subfolders helps keep logs organized and improves performance.
  • Log Messages Check this to have the log entry for a processed file include a copy of the file itself. If you disable this, you might not be able to download a copy of the file from the Input or Output tabs.

Miscellaneous

Miscellaneous settings are for specific use cases.

  • Other Settings Enables you to configure hidden connector settings in a semicolon-separated list (for example, setting1=value1;setting2=value2). Normal connector use cases and functionality should not require the use of these settings.

Generating HL7 Documents

When generating HL7 files from XML, the connector applies transaction headers based on the HL7 Personal Ids on the HL7 MLLP Profile tab, and the HL7 Configuration in the connector. The remaining data comes from XML input files. See Use with the XML Map Connector for more information on generating the appropriate XML input files.

Files that arrive in the Input tab for the connector are packaged into HL7 documents and sent out over MLLP. Files can arrive in the Input tab either by dropping the file directly into the folder path on disk, or by connecting another Arc connector to the HL7 MLLP connector in the flow.

HL7 to XML

When converting HL7 documents into XML, the application verifies the interchange headings from the inbound document against the HL7 Personal Ids on the HL7 MLLP Profile tab, and the HL7 Configuration in the connector. The XML generated from the HL7 document is placed in the Output tab to be passed along in the flow for further processing. See Use with the XML Map Connector for more information on processing the translated XML.

Use With the XML Map Connector

In accordance with the typical Arc convention, the HL7 MLLP connector expects XML input and generates XML output. To ensure that these input and output files have the correct XML structure, CData strongly recommends that you use the XML Map connector as the previous step in the flow when generating outbound HL7 documents, or as the following step in the flow when receiving inbound HL7 documents.

The interaction between the XML Map connector and the HL7 MLLP connector is made simple by the Upload Test File feature. This feature is on the HL7 MLLP connector’s Input tab, under the More dropdown. Select this, then navigate to an HL7 file on disk that represents the structure of HL7 documents that the connector should process. The connector models the sample document as XML internally, and the XML Map connector can detect this XML model.

When an XML Map connector is connected to an HL7 MLLP connector in the flow, it detects any XML models generated from the Upload Test File feature. These models are made available as Source Template or Destination Template files in the XML Map connector (depending on where the XML Map connector is in the flow). These auto-detected templates are used to easily map data to or from the HL7 structure.

Note: XML Map connectors require both a source and destination template, so the remaining template must be set based on the structure the data originates from, or the structure it should be converted to. For example, if the data from the HL7 document needs to be inserted into a database, the other template in the XML Map connector would be the XML model of a database insert. See the XML Map connector’s Using the Mapping Editor for more information on creating the mapping between two template files.

Macros

ファイルの命名規則にマクロを使用することで、組織の効率とデータの文脈的理解を高めることができます。マクロをファイル名に組み込むことで、識別子、タイムスタンプ、ヘッダー情報などの関連情報を動的に含めることができ、各ファイルに有益なコンテキストを付与できます。これにより、組織にとって重要な詳細をファイル名に反映させることができます。

CData Arc はこれらのマクロをサポートしており、すべて次の構文を使用します:%Macro%

Macro 説明
ConnectorID コネクタのConnectorID を返します。
Ext コネクタが処理中のファイルの拡張子を返します。
Filename コネクタが処理中のファイルのファイル名(拡張子を含む)を返します。
FilenameNoExt コネクタが処理中のファイルのファイル名(拡張子なし)を返します。
MessageId コネクタがアウトプットするメッセージのMessageId を返します。
RegexFilename:pattern コネクタで処理中のファイルのファイル名にRegEx パターンを適用します。
Header:headername コネクタが処理中のメッセージのヘッダー(headername)の値を返します。
LongDate システムの現在の日時を長い形式(例:Wednesday, January 24, 2024)で返します。
ShortDate システムの現在の日時をyyyy-MM-dd 形式(例:2024-01-24)で返します。
DateFormat:format システムの現在の日時を指定されたフォーマット(format)で返します。使用可能な日付フォーマットについては、サンプル日付フォーマット を参照してください。
Vault:vaultitem 指定されたvault 項目の値を返します。

%Ext% や%ShortDate% などの引数を必要としないマクロもありますが、引数を必要とするマクロもあります。引数を渡すマクロはすべて次の構文を用います:%Macro:argument%

以下は、引数を渡すマクロの例です。

  • %Header:headername%:headername はメッセージのヘッダー名です。
  • %Header:mycustomheader% は、インプットメッセージで設定されたmycustomheader ヘッダーの値を返します。
  • %Header:ponum% は、インプットメッセージで設定されたponum ヘッダーの値に対応します。
  • %RegexFilename:pattern%:pattern は正規表現パターンです。例えば、%RegexFilename:^([\w][A-Za-z]+)% はファイル名の最初の単語と照合し、大文字と小文字を区別せずに結果を返します(test_file.xmltest に変換されます)。
  • %Vault:vaultitem%:vaultitem は、vault のアイテム名です。例えば、%Vault:companyname% はVault に保存されているcompanyname アイテムの値を返します。
  • %DateFormat:format%:format は使用可能な日付フォーマットです(詳細はサンプル日付フォーマット を参照してください)。例えば、%DateFormat:yyyy-MM-dd-HH-mm-ss-fff% はファイルの日付とタイムスタンプを返します。

以下の例に示すように、より詳細なマクロを作成することもできます。

  • 複数のマクロを1つのファイル名にまとめる:%DateFormat:yyyy-MM-dd-HH-mm-ss-fff%%EXT%
  • マクロの外側にテキストを含める:MyFile_%DateFormat:yyyy-MM-dd-HH-mm-ss-fff%
  • マクロ内にテキストを含める:%DateFormat:'DateProcessed-'yyyy-MM-dd_'TimeProcessed-'HH-mm-ss%