- Hl7 Message Viewer For Mac Os
- Hl7 Viewer Mac
- Hl7 Message Example
- Smart Hl7 Viewer
- Hl7 Message Reader
- Hl7 Viewer Free
The topics listed here provide information about the TCP/IPHL7 Adapter sample projects that are installed automatically as partof the TCP/IP HL7 Adapter.
What You Need to Know
These topics provide information you should know about the TCP/IPHL7 sample projects.
What You Need to Do for the StandardInbound and Outbound Sample Project
These topics provide instructions to complete a TCP/IP HL7 Adaptersample project and demonstrate how a TCP/IP HL7 Adapter is implemented.
HL7 Inspector is a tool for managing HL7 messages Brought to you by: elomagic As of 2020-06-12, this project can be found here.
Tip: The HL7 Simulator GUI does not run on the Mac, but you can easily send messages from a Windows machine, simply enter the network address or network name of the target machine in the Host field. For example, when running the Simulator in a Parallels VM, just use the IP address for the Mac (from advanced network setting in system preferences). From a practical standpoint, the HL7 committee has compiled a collection of message formats and related clinical standards that loosely define an ideal presentation of clinical information. Together, the standards provide a framework in which data may be exchanged.
What You Need to Do for the SchematronSample Project
These topics provide instructions to complete the TCP/IP HL7Adapter sample schematron validation project.
The TCP/IP HL7 Adapter includes several sample projects thatyou can use as templates to create your own customized projects toenable communication between external systems. These projects aredesigned to be extended and modified for your specific project requirements.The TCP/IP Adapter includes the following sample projects:
prjHL7Inbound
prjHL7Outbound
prjHL7Inbound-MLLPV2
prjHL7Outbound-MLLPV2
prjHL7Inbound-XML
prjHL7Outbound-XML
prjHL7V2toV3_AND_ebXML
prjHL7V3CommonJcdsInbound
prjHL7V3Inbound
prjHL7V3Inbound_WithSchematron
prjHL7V3Outbound
Some of these projects include a predefined Environment so youdo not have to create one from scratch. This tutorial concentrateson two of the sample projects: prjHL7Inbound and prjHL7Outbound. Each of these projects demonstrate multipleoperations (Collaborations), and the tutorial takes you through configuring,building, and deploying the projects. Ad additional section at theend of this tutorial goes through the prjHL7V3Inbound_WithSchematron sample to illustrate how to implement schematron validationin HL7 V3.
Standard Inbound and Outbound Samples
The first section of the tutorial deals with standard inboundand outbound sample projects, which include a variety of Collaborationsand Connectivity Maps for you to deploy.
prjHL7Inbound Project
Hl7 Message Viewer For Mac Os
The prjHL7Inbound project includes thefollowing Connectivity Maps, both of which use the same Collaboration:
HL7 Inbound: Astandard inbound HL7 messaging operation that receives the HL7 messagesfrom an external system, sends an acknowledgement of the message,provides sequence numbering, writes the HL7 message to a JMS dataqueue, and also writes the HL7 message and ACK to a JMS Journal queue.
HL7 Forward Message Inbound: Inboundforward message mode is used with the outbound delayed ACK. Its purposeis to get a message from an outbound forwarder and return an acknowledgement.
prjHL7Outbound Project
The prjHL7Outbound project includes thefollowing Connectivity Maps:
HL7 Outbound: Astandard outbound HL7 messaging operation that receives the HL7 messagefrom the JMS data queue, provides sequence numbering, sends the HL7message to an external system, receives an acknowledgement from theexternal system, and writes the HL7 message and the ACK to a JMS Journalqueue.
HL7 Forward Outbound: Outboundforward message mode is used with the delayed ACK. Its purpose isto get a message from a JMS queue and send it to an external system.No validation is performed.
HL7 Outbound Delayed ACK: DelayedAcknowledgement is similar to HL7Outbound, but the initial acknowledgementis received from the receiving system. After the sender receives thefirst ACK, it waits for a second ACK that indicates that the messagewas received by the external HL7 system.
Schematron V3 Inbound Sample
The second section of the tutorial deals with standard inboundand outbound sample projects, which include a variety of Collaborationsand Connectivity Maps for you to deploy. The schematron sample illustrateshow to perform schematron validations against the incoming message.Schematron validation uses the concept of finding tree patterns inthe parsed document rather than the grammar, which allows representationof numerous structures that are difficult in grammar-based schemalanguages.
The inbound schematron project includes the following ConnectivityMaps, each of which process message in different ways depending onhow the Adapter is configured in the Connectivity Map and which Collaborationis in use:
HL7 V3 Deferred Inbound
HL7 V3 Inbound
HL7 V3 Message Publisher
HL7 V3 Queue Manager
Sample Project Components
The TCP/IP HL7 Adapter projects provide predefined adapter componentsdesigned to be extended and modified for your specific project requirements.Projects are created using tools in the NetBeans IDE. Use DeploymentProfiles to deploy projects to specific logical hosts in specificEnvironments. Components developed for use in one project can be usedin another, and a project can internally reference another project.
The components found in a typical project include the following:
Services: A serviceprovides a framework for a process or a Collaboration.
External Applications: TheEnterprise Service Bus system integrates external applications whichare logical representation of external software applications. An adapterlinks such applications to a Service.
Schedulers: A Schedulerallows a service to be performed at a prescribed interval.
Component Connections: Whenyou link two components on a Connectivity Map, NetBeans places eitheran adapter or JMS Client connection icon on the link, depending uponthe type of components you are linking. When an External Applicationand a Collaboration are linked, the link contains an adapter. Whena Service and a Message Destination (queue or topic) are linked, thelink contains a JMS Client Connection.
Message Destinations: AMessage Destination is a container for stored data, and can followeither the topic or queue JMS model.
Topic: A topicis a message destination that conforms to the publish-and-subscribemessaging model (one to many).
Queue: A queueis a message destination that conforms to the point-to-point messagingmodel (one to one).
These components are graphically represented in a project'sConnectivity Map. For example, the cmHL7Outbound Connectivity Mapis shown below. This Connectivity Map does not contain a Scheduleror any Topics.
Sample Project Collaborations
The sample projects include multiple Collaborations for youto work with. These Collaborations are designed to work as is forHL7 compliant interfaces, and can be configured for your specificneeds by configuring the External System properties. If an interfacerequires special functionality, the Collaboration's Java code is easilyaccessible for modification, much of which can be created graphically(drag and drop), using the Collaboration Editor's Business Rules Designer.
The Collaborations contain a number of OTDs that extend functionalityfor HL7 message handling, logging, error messaging, journaling, andsequence numbering. These include both generic HL7 OTDs for HL7 ACK/NAKgeneration or verification, and the Resource Adapter that communicatesto the external system and offers services to the application server.The Collaboration controls messaging protocol and all business logic.
The Collaborations are designed to target one unit of work ata time, meaning the resolution of one message at a time. The basicstructure of the Collaborations is a state machine implemented ina Java switch statement. The state machine keeps track of the messagingprotocol so that when a Collaboration is invoked, it can retrievethe state of the connection just handed to it by the RA, and thenexecute proper actions based on the state machine.
At the end of each action, the state is set for the next executionof the Collaboration. There are three main states:
To Establish: Anew or reset connection needs to have an HL7 session established.If sequence numbering is used, the sequence numbers need to be negotiated.
Messaging: Thisis where the exchange of messages and ACKs takes place.
Shutdown: Thisis where any cleanup can happen before the connection is closed, orto close the connection.
Additional Collaborations can be added to a project to increasemessage flow.
Note –The TCP/IP HL7 inbound Collaboration publishes receiveddata as a Byte message in JMS using the sendBytes() method.However, the HL7 outbound Collaboration expects a Text message fromJMS. The Adapter is not designed for the HL7 outbound Collaborationto subscribe to a JMS data queue created by the HL7 inbound Collaborationdirectly. HL7 inbound and outbound Collaborations are designed tocommunicate through an HL7 Adapter TCP/IP connection.
The following topics provide information about the process coveredand this tutorial and the purpose of the sample projects:
Tutorial Process
This tutorial shows you how to work with the standard inboundand outbound sample projects that are provided with the TCP/HL7 Adapter.It also include information on working with the schematron inboundsample.
The tutorial process is divided into the following steps.
Install the TCP/IP Adapter, if it is not already installed,and download the sample files.
Import the projects into the Repository.
Check Out the imported project.
Configure the Connectivity Maps.
Create and configure the Environments.
Create the Deployment Profile.
Build the project.
Start the GlassFish server, which allows you to deployand manage projects.
Tutorial Context
In a typical real-world situation, you have an application withaccess to patient information that is periodically updated (for instance,when a patient is discharged or a lab result is issued). On the otherhand, you have parties who are interested in knowing when that informationchanges. The parties with whom you want to communicate, however, haveno direct access to the data, especially to the manner in which theapplication internally structures the data. Instead, it is likelythat other parties have their own customized methods of handling datainternally. To communicate the data to them, you need to encode itin an HL7 message, which is a widely used standard for transmittinghealthcare-related information. As long as the parties can handleHL7 messages, you can communicate your data to them.
For the purposes of this tutorial, the structure of the datainside your application bears little relation to the format of thedata specified by the HL7 standard. What is needed is an interfacebetween the application and the HL7 message, a way to efficientlyand reliably map the desired information out of the application'sdata structures and into an HL7 message, which can then be sent tointerested parties. The Java CAPS provides a flexible and intuitivemeans of designing HL7 messages and mapping the desired data intothe messages, thus making the data available to the recipient in astandard format.
To create a TCP/IP HL7 Adapter sample project, perform the followingsteps in the order given:
Installing the TCP/IP HL7 Adapterand Sample Projects
The TCP/IP HL7 Adapter is not installed by default with a standardJava CAPS installation; you need to install the Adapter manually.The Adapter is installed with the base HL7 OTD Library files and withV2.6. You can install additional HL7 OTD Library versions if needed.After install the TCP/IP HL7 Adapter to the Repository, the sampleprojects are available to download.
The Java Composite Application Platform Suite Installer is aweb-based application, used to select and upload adapters and add-onfiles to install. The Suite Installer serves as an Update Center,Management Center, and Dashboard to gain access to available applications.
Installing the TCP/IP HL7 Adapter
If you have already installed the TCP/IP HL7 Adapter using theSuite Installer but have not installed the Adapter in NetBeans, skipto Installing the TCP/IP Adapter in the NetBeans IDE. If you have installed the Adapter in both the Repositoryand NetBeans, skip to Downloading the Sample Projects.
To Install the TCP/IP HL7 Adapter
Before You Begin
Java CAPS must be installed before starting this procedure.
Start the Java CAPS Repository.
The start_repository executable file is located in your Java CAPS home directory.
Open a web browser and type the following URL to accessthe Suite Installer:
http://localhost:port_number
where localhost is the TCP/IP host name of the Repository server andnot the name of the Repository itself, and port_number isthe port number you specified during installation for the Repository.
The Login page of the Suite Installer appears.
Enter the username and password, and then click Login.
Note –The default username is admin andthe default password is adminadmin.
The Java Composite Application Platform Suite Uploader pageappears.
On the Administration Page, click to Install AdditionalProducts.
The Welcome to the Java Composite Application Platform SuiteUploader page appears.
Expand eWay under the Product Name column, and then selectHL7eWay.
If you are using a version of HL7 other than V2.6, expandOTD and select HL7OTDLibrary along with the HL7 libraries for theversion you are using.
Note –Note that there are several items to select to installthe full V3 HL7 Library.
Click Next in the top-right or bottom-right corner ofthe page.
The Selecting Files to Install page appears.
Click Browse, and then navigate to and select the SARfile for the listed product. Click Next.
Repeat the above steps for each product to install.
Note –Based on your previous selection, some dependent productsmay have been added to the list.
When you click Next after the last SAR file is selected, theInstallation Status page appears, displaying the status of the installation.The lower portion of the page displays additional information aboutthe installation process. Once a product is installed, a check markappears next to it. This might take several minutes.
Whenthe installation is complete, the following confirmation message appears: Installation finished.
Installing the TCP/IP Adapter in the NetBeansIDE
After you install the TCP/IP Adapter in the Repository, therelated plug-ins can be installed in NetBeans. This allow you to incorporatethe Adapter into your Repository-based projects.
To Install the TCP/IP Adapter in the NetBeansIDE
Start NetBeans from the Java CAPS home directory.
In NetBeans, connect to the Repository (Tools menu > CAPSRepository > Connect).
From the NetBeans IDE menu bar choose Tools and then Plugins.
On the Plugins window, click the Settings tab.
In the Configuration of Update Centers panel, select CAPSRepository Update Center and deselect all other options.
IfCAPS Repository Update Center does not appear in the list, do thefollowing:
On the Settings page, click Add.
The UpdateCenter Customizer dialog box appears.
In the Name field, enter CAPS Repository UpdateCenter.
In the URL field, enter the following:
http://HostName:PortNo/repository/RepName/data/files/InstallManager/catalog.xml
where HostName is the name of theRepository server (or localhost), PortNo isthe Repository base port number, and RepName isthe name of the Repository.
Click OK.
You might need to click Reload Catalog on the Installedtab in order to see the available Java CAPS plug-ins.
Click the Available Plugins tab.
The TCP/IPHL7 components appear in the list.
Select the individual components to install, or right-clickin the list and select Check All.
Click Install.
On the NetBeans IDE Installer, click Next, accept thelicense, and click Install.
Note –Ignore any validation or unsigned warnings and continuewith the installation.
When the installation completes, click Finish.
TheIDE will restart to complete the installation.
Downloading the Sample Projects
The following instructions provide the steps to download theEnterprise Manager from the Suite Installer.
Note –Before beginning this procedure, make sure the Repositoryis running for the Suite Installer.
To Download Files From the Repository
On the Suite Installer, click the Downloads tab.
A list of components ready to be downloaded appears.
For the purposes of this tutorial, select HL7 AdapterInbound Collaboration Project.
Save the prjHL7Inbound.zip file toa local directory.
Repeat the previous step for HL7 Adapter Outbound CollaborationProject.
If you want to work with the schematron validation Projectsfor HL7 V3, download HL7 Adapter Inbound Collaboration Project forHL7V3 PRPA_IN403001UV01 With Schematron Validation Enabled.
Note –In order to import the V3 projects, you must have theHL7 V3 Libraries installed.
Importing the Sample TCP/IP HL7 Adapter Projects
Before you can begin working with the sample projects, you needto import them into the NetBeans IDE. For this tutorial, you needto import two projects: prjHL7Inbound and prjHL7Outbound.
Do the following to import the sample projects and make themavailable for editing:
Importing the TCP/IP Adapter Sample Projects
This section describes how to import the standard inbound andoutbound samples for HL7 V2.x.
To Import TCP/IP HL7 Adapter Sample Projects
Before You Begin
In order to import the TCP/IP HL7 Adapter sample projects, theAdapter needs to be installed and the sample projects downloaded.For more information, see Installing the TCP/IP HL7 Adapter and Sample Projects.
On the NetBeans IDE, save all unsaved work.
On the NetBeans menu bar, select Tools, point to CAPSRepository, and then select Import Project from the drop-down menu.
A confirmation dialog box appears asking if you need to saveany changes.
Click Yes to proceed with importing a project.
TheImport Manager appears.
Click Browse, navigate to the location of the projectZIP files, and select prjHL7Inbound.zip.
Note –The associated top-level project is opened in the projectswindow after the import if you select the Open at Import check box.
Click Import.
Note –A warning message appears if you already have a projectof the same name in the CAPS Repository. Determine whether you wantto overwrite the existing project. In some cases the imported filewill add files to an existing project. If you do not want to overwritethe existing project, cancel the import and exit the Import Manager.Rename and save the existing project, and attempt the import again.
It may take a few seconds to import the project. When the projectis imported, the Import Status dialog box appears.
Click OK on the dialog box.
The CAPS Repositoryis refreshed.
Repeat the above steps on the Import Manager to import prjHL7Outbound.zip.
Close the Import Manager.
You should now havetwo new projects, prjHL7Inbound and prjHL7Outbound, in the tree structureof the projects window, as shown below.
Checking Out the Imported Projects
After you import a project and the Repository refreshes, theproject and all of its components are check into version control,which means they can only be viewed and not edited. You need to checkthe project out to edit the components.
To Check Out the Imported Projects
On the Projects window, right-click prjHL7Inbound, pointto Version Control, and then select Check Out.
The VersionControl - Check Out dialog box appears.
Select Recurse Project to ensure all components of theprjHL7Inbound are listed.
Note –You can select either one or more components.
Click Select All and then click Check Out.
Thischecks out all components of the project so you can edit them as needed.
Repeat the above steps for prjHL7Outbound.
Creating and Configuring the Environments
Environments include External Systems, Logical Hosts, applicationservers, and message servers used by a project. These contain theconfiguration information for these components. Environments are createdusing NetBeans and the Environment Editor. This section describeshow to create and configure Environments for all five of the ConnectivityMaps included in the inbound and outbound projects. You only needto create Environments for the operations you want to run.
The instructions are divided into the following sections:
Creating and Configuring the HL7 OutboundEnvironment
The components required for the HL7 outbound Environment includea Logical Host, application server, JMS IQ Manager, and two externalsystems.
To Create an Environment for the prjHL7Outbound
On the NetBeans Services window, right–click CAPSEnvironment and then select New Environment.
A new environmentis created and is added to the CAPS Environment tree.
Rename the new Environment to envHL7Outbound.
Right-click envHL7Outbound, point to New, and then selectLogical Host.
It takes few seconds to process the LogicalHost into the Environment.
Rename the Logical Host lhHL7Outbound
Create and configure an application server:
Right-click lhHL7Outbound, point to New, and then selectSun Java System Application Server.
A new applicationserver is added to the Environment tree .
Rename the server gfHL7Outbound.
Right-click gfHL7Outbound and select Properties.
The Properties Editor appears.
Click the ellipses button next to the Password property.
The Password Settings dialog box appears.
Click the ellipses available at the end of the field.
The Password Settings dialog box appears.
Enter the password in the Password and the Confirm Passwordfields.
The default Password is adminadmin andthe default Confirm Password is adminadmin.
Click OK.
On the Properties Editor, verify the remaining propertiesand then click OK.
Create and configure a JMS IQ Manager:
Right-click lhHL7Outbound, point to New, and then selectSun JMS IQ Manager.
A new JMS IQ Manager is added to theEnvironment tree.
Rename the IQ Manager iqHL7Outbound.
Right-click iqHL7Outbound, and select Properties.
The Properties Editor appears.
In the Sun JMS IQ Manager URL property, enter the URLof the IQ Manager.
The default URL is stcms://localhost:18007.
Enter a password as described for the application serverabove.
Verify the remaining fields, and then click OK.
Create and configure a File External System:
Right-click envHL7Outbound, point to New, and then selectFile External System.
On the dialog box that appears, enter esFile asthe name.
Click OK.
The external system is added to the Environment tree.
Right-click esFile and select Properties.
TheProperties Editor appears.
On the Properties Editor, expand Inbound File eWay, andmodify the directory from which the File Adapter will pick up theinput file.
Click OK.
Create and Configure an HL7 External System:
Right-click envHL7Outbound, point to New, and then selectHL7 External System.
On the dialog box that appears, enter esHL7 asthe name.
Click OK.
The External System is added tothe Environment tree.
Right-click eHL7 and select Properties.
TheProperties Editor appears.
On the Properties Editor, expand HL7 Outbound eWay, andselect TCPIP Outbound Settings.
Make sure the hostname and port are correct for the applicationthat is listening for HL7 messages.
Click OK.
On the NetBeans toolbar, click Save All.
Creating Environments for the HL7 Inboundand Outbound Samples
Follow the example given in the previous section, create Environmentsfor the remaining TCP/IP HL7 samples. You only need to create Environmentsfor the samples you want to run. Make sure the configure the URL andauthentication information for all the application servers and JMSIQ Managers you add. Any additional required configuration is listedbelow.
Tip –Even if you do not modify the Environment components ofan External System, be sure to open the Properties Editor for eachExternal System. Otherwise, the build process may fail.
HL7 Inbound Sample
Create the envHL7Inbound Environment with the following components:
HL7 External System
Logical Host
GlassFish (Sun Java System Application) Server
Sun JMS IQ Manager
HL7 Inbound Forward MSG Sample
Create the envHL7InboundForwardMSG Environment with the followingcomponents:
HL7 External System
Logical Host
GlassFish (Sun Java System Application) Server
Sun JMS IQ Manager
HL7 Outbound Delayed ACK Sample
Create the envHL7OutboundDelayedACK Environment with the followingcomponents:
HL7 External System
Configure the HL7Outbound eWay > TCPIP Outbound Settings properties.
File External System
Configure the InboundFile eWay > Parameter Settings properties.
Logical Host
GlassFish (Sun Java System Application) Server
Sun JMS IQ Manager
HL7 Outbound Forward Sample
Create the envHL7OutboundForward Environment with the followingcomponents:
HL7 External System
Configure the HL7Outbound eWay > TCPIP Outbound Settings properties.
Logical Host
GlassFish (Sun Java System Application) Server
Sun JMS IQ Manager
Configuring the Connectivity Map Properties
For certain sample projects, the Connectivity Maps do not needto be configured. For Connectivity Maps that include the File Adapter,the name of the input files needs to be configured. If you are runningthe HL7 outbound or the HL7 outbound delayed ACK sample, perform thetask below.
To Configure the Connectivity Map Properties
On the Projects window, expand prjHL7Outbound.
Open either cmHL7Outbound or cmHL7OutboundDelayedAck inthe Connectivity Map Editor.
Double-click the Adapter icon on the line connecting theFile External System to the Service.
The Properties Editorappears.
In the Input File Name field, enter the name or the namepattern for the input file.
Click OK.
Creating the Deployment Profile
A Deployment Profile is used to assign the connectivity componentsto the Environment components, including the application server andmessage server. You only need to create a Deployment Profile for thesample projects that you will run. The following procedure describeshow to create a Deployment Profile for the HL7 outbound sample. ConnectivityMap and Environment combinations for the other samples are listedat the end of this procedure.
To Create the Deployment Profile
On the Projects window, right-click prjHL7Outbound Project,point to New, and then select Deployment Profile.
TheCreate Deployment Profile dialog box appears.
For the Deployment Profile Name, enter dpHL7Outbound.
For the Environment, select envHL7Outbound.
For the Connectivity Map, select cmHL7Outbound and deselectall other Connectivity Maps.
Click OK.
The Deployment Editor appears.
Click Automap.
On the Automap confirmation dialog box, click Close.
The tree structure of the mapped Environment appears, as shown.below
Save the Deployment Profile.
Creating Deployment Profiles for the HL7Inbound and Outbound Samples
Create Deployment Profiles for the remaining TCP/IP HL7 samplesfollowing the procedure above and using the following combinationsof Environments and Connectivity Maps.
HL7Inbound Inbound Sample
Use the following to create the dpHL7Inbound Deployment Profile:
Environment: envHL7Inbound
Connectivity Map:cmHL7Inbound
HL7Inbound ForwardMSG Sample
Use the following to create the dpHL7InboundForwardMSG DeploymentProfile:
Environment: envHL7InboundForwardMSG
Connectivity Map:cmHL7InboundForwardMSG
HL7Outbound OutboundDelayedACK Sample
Use the following to create the dpOutboundDelayedACK DeploymentProfile:
Environment: envOutboundDelayedACK
Connectivity Map:cmOutboundDelayedACK
HL7Outbound Forward Sample
Use the following to create the dpHL7OutboundForward DeploymentProfile:
Environment: envHL7OutboundForward
Connectivity Map:cmHL7OutboundForward
Building and Deploying the Project
The Build process compiles and validates the project's Javafiles and creates a project enterprise application archives (EAR)file. This file runs on an application server. Deploying the projectsdeploys the EAR file to the application server.
Perform the following steps for each of the Deployment Profilesyou want to deploy:
Starting the GlassFish Server
The deployment will fail if the application server is not started.
To Start the GlassFish Server
Before you can deploy a project, you need to start the applicationserver.
On the Services window, expand Servers.
Right-click GlassFish V2 and select Start.
TheGlassFish server starts. This may take a few minutes
Building a Project
Once the Deployment Profile is created and the ConnectivityMap and Environment components are mapped, you can build the project.This creates the EAR file that gets deployed to the application server.
To Build a Project
Open the Deployment Profile you want to build.
Click the Build icon on the Deployment Editor toolbar.
Note –If the build fails, an error dialog box appears and theerrors are listed in the Validation window. Correct any errors andrebuild. Validation errors will occur if you did not open the ExternalSystem Properties Editors in the Environment.
When the build is complete, a confirmation dialog appears.Click OK to close it.
Deploying the Project
Once you deploy the project, it will immediately begin running.If there are any input files in the specified input directory, theywill be processed.
To Deploy the Project
On the Deployment Editor toolbar, click Deploy.
A message appears in the lower left side of the window whenthe project is successfully deployed.
Running the Samples
The inbound and outbound TCP/IP HL7 sample projects demonstrateseveral different operations. Only deploy the Connectivity Maps thatcontain the scenario you want to run. For the outbound projects thatuse a File Adapter, use the following procedure to run data in. Forthe other projects, you will need an HL7 simulator or HL7 applicationto send and receive messages.
To Run a Sample Project
Before You Begin
Make sure the Connectivity Map you want to run is deployed.
Create a text file with the following content. Name thefile HL7Msg1.txt (unless you modified the filename in the Connectivity Map properties).
Place the sample input file in the configured input directoryfor the File Adapter.
When the File Adapter picks up thefile, it appends “.~in” to the filename.
Verify the output data from your output directory.
This sample contains messages that the recipient will acceptas valid and properly formatted. The sample messages are used to designthe interface.
HL7 Messages are ASCII messages (unlike protocols such as DICOM),and the standard requires that they be human readable.
Monitoring the HL7 Adapters
You can monitor a running HL7 Adapter on the Enterprise Manager.In order to do this, you need to have the HL7 Adapter plug-in installedon the Enterprise Manager. See Installing Additional Componentsfor Java CAPS 6 for more information.
Note –For the outbound adapter, monitoring is performed periodicallybased on a time period defined in the HL7 Adapter web applicationsdeployment descriptor, web.xml/
To Monitor the HL7 Adapters
Start the Enterprise Manager.
Tip –You can use the start_emanager shortcutin the Java CAPS home directory.
Open a web browser and log in to the Enterprise Managerusing the following URL:
http://host-name:port-number
where host-name is the name of theserver on which Enterprise Manager is installed, and port-number is the Enterprise Manager port number (15000 by default).
In the left pane of the Enterprise Manager expand JavaEE > prjHL7Inbound > Deployment1 > cmHL7Inbound, and then select eaHL7Inbound.
A new frame appears with a list of actions under a nodenamed eaHL7Inbound => jcdHL7inbound1.
Execute the sample project using an HL7 simulator.
Under eaHL7Inbound => jcdHL7inbound1, select Logging toview log messages.
Select Alerts to view alerts and their statuses.
Select Monitor External Connection to view informationabout the connection to the external system.
This actiondisplays the screen as shown below.
Terminate the external system and observe that the statusinformation of the terminated system no longer appears in the statustable
This sample project receives an HL7 V3 message, PRPA_IN403001UV01,and sends an HL7 V3 ACK or NAK, MCCI_IN000004UV01. This project issame as prjHL7V3Inbound except for the schematron validation for theinput XML.
Follow these steps in the order given to complete the schematronsample:
Importing the Sample Project
Hl7 Viewer Mac
In order to work with the sample project, you need to downloadit from the Repository using the Suite Uploader and then import itusing NetBeans.
To Import the Sample Project
Before You Begin
Make sure the required Message Libraries are installed. In additionto the HL7 OTD Library and HL7 OTD Generic Library, which are installedwith the TCP/IP HL7 Adapter by default, you need to install the followingtwo libraries:
HL7V32006PatientAdmin.sar
HL7V32006TransInfra.sar
If the TCP/IP HL7 Adapter is not already installed, installit now as described in Installing the TCP/IP HL7 Adapter and Installing the TCP/IP Adapter in the NetBeans IDE.
Download the schematron sample project and the HL7 V3outbound project, as described in Downloading the Sample Projects.
Import the project file.
On the NetBeans IDE, save all unsaved work.
On the NetBeans menu bar, select Tools, point to CAPSRepository, and then select Import Project from the drop-down menu.
A confirmation dialog box appears asking if you need to saveany changes.
Click Yes to proceed.
The Import Manager appears.
Click Browse, navigate to the location of the projectZIP files, and select prjHL7Inbound_WithSchematron.zip.
Click Import.
Note –A warning message appears if you already have a projectof the same name in the CAPS Repository. Determine whether you wantto overwrite the existing project. In some cases the imported filewill add files to an existing project. If you do not want to overwritethe existing project, cancel the import and exit the Import Manager.Rename and save the existing project, and attempt the import again.
It may take a few seconds to import the project. When the projectis imported, the Import Status dialog box appears.
Click OK on the dialog box.
The CAPS Repositoryis refreshed.
Close the Import Manager.
You should now havetwo new projects in the tree structure of the Projects window.
In the current example, the JAR file (checkprofileid.jar) is bundled along with the sample project file importedfrom Java CAPS Repository, prjHL7V3Inbound_WithSchematron.
Checking Out the Project
When you first import a project, all of its components are checkedin to version control. This means you cannot edit the project. Youneed to check the components out first.
To Check Out the Project
In the NetBeans Projects window, right–click prjHL7V3Inbound_WithSchematron.
Point to Version Control, and then select Check Out.
On the Version Control dialog box, click Recurse Project,and then click Select All.
Click Check Out.
Modifying the Connectivity Map
To Modify the Connectivity Map
On the NetBeans Projects window, double-click cmHL7V3Inbound.
The Connectivity Map appears in the Connectivity MapEditor.
Double-click the Adapter icon on the connecting line betweenthe eaHL7V3Inbound External System and the jcdHL7V3Inbound1 service.
The Properties Editor appears.
Select Schematron Validation in the left panel.
Modify the properties as follows:
Enable Schematron Validation:true
Schematron Files:Provide a list of Schematron files. Use a comma to separate multiplefiles.
Modifying the Java Collaboration Definition
Hl7 Message Example
The JCD is edited as described in the steps below.
Modify the Collaboration Editor
In the NetBeans Projects window, double-click jcdHL7V3Inbound.
The Collaboration appears in the Java Collaboration Editor.
Modify the Collaboration rules as needed.
Thefollowing sections describe parts of the JCD that define schematronvalidation.
Schematron Validation Inside the JCD
The schematron validation API is invoked from the JCD. The JCDfollows the standard HL7 V3 validation; the schematron validationAPI is only invoked if the Enable Schematron Validation property istrue. Following is an excerpt from the JCD code that scans the schematronfiles list and calls the method validateWithSchematron() if schematron validation is enabled.
Excerpt for Beginning Schematron Validation
The above text has been wrapped for display purposes. The imagesbelow show the code as it appears in the Collaboration Editor.
validateWithSchematron() method
The schematron method invokes the schematron API. It reads theschematron files from classpath and constructs a DOM source. The DOMsource passes it to obtain the SchematronValidator object.The object invokes the validate() methodto pass the hl7payload. The following excerpt from the JCD definesthe validation method.
The above text has been wrapped for display purposes. The imagesbelow show the code as it appears in the Collaboration Editor.
Retrieving the Validation Results
The makeNAK() method retrieves theXML document generated from the schematron validation. The XML documentis embedded in the AcknowledgementDetail section of HL7V3 AcknowledgementXML. The following excerpt defines the makeNAK() method.
makeNAK() method
The above text has been wrapped for display purposes. The imagebelow shows the code as it appears in the Collaboration Editor.
Creating and Importing Sample Files
This section provides sample schematron validation and inputfiles, and also gives instructions on importing the validation filefor use in the JCD.
Sample Schematron
Below is a sample schematron validation file that checks forthe presence of the profileid field in the PRPA_IN403001UV01OTD.
Sample Input Document
Smart Hl7 Viewer
The above text has been wrapped for display purposes.It contains extra line breaks.
Importing a Schematron XML File
This tutorial includes a JAR file, checkprofileid.jar.which includes the sample schematron validation file described above.Follow this procedure if you want to create your own validation fileand package it for the JCD.
To Import a Schematron XML and Add it to theJCD
Create a JAR file containing the schematron validationfile in XML format.
Do the following to import the JAR file:
Right-click the schematron project, point to Import, andthen select File.
Navigate to and select the JAR file.
Click Select, and then click Import.
The filenow appears in the Projects window beneath the schematron project.
Open the Collaboration in the Collaboration Editor.
On the Collaboration Editor toolbar, click Add JAR.
On the Add/Remove Jar Files dialog box, click Add.
Navigate to and select he JAR file to add, and then clickImport.
On the Add/Remove Jar Files dialog box, click Close.
Creating the Environment
Follow the steps below to create an Environment for the cmHL7V3InboundConnectivity Map in the schematron sample project.
To Create an Environment
On the NetBeans Services window, right-click CAPS Environments,point to New, and then select Environment.
A new environmentis created and is added to the CAPS Environment tree.
Rename the new environment to envHL7V3Outbound.
Right-click envHL7V3Outbound, point to New, and then selectLogical Host from the drop-down menu.
It takesfew seconds to process the Logical Host into the Environment.
Right-click LogicalHost1, point to New, and then selectSun Java System Application Server.
A new applicationserver (SunJavaSystemApplicationServer1) is added to the EnvironmentExplorer tree under LogicalHost1.
Right-click LogicalHost1, point to New, and then selectSun JMS IQ Manager.
A new JMS IQ Manager (SunJmsIQMgr1)is added to the Environment tree under LogicalHost1.
Right-click envHL7V3Outbound, point to New, and then selectFile External System.
For the name of the External System, enter esFile.
Click OK.
The External System is added to the Environment tree.
Right-click envHL7V3Outbound, point to New, and then selectHL7V3 External System.
For the Name of the External System, enter esHL7V3.
Click OK.
The new External System is added to the Environment tree.
On the NetBeans toolbar, click Save All.
Building and Deploying the Sample Project
Hl7 Message Reader
Once you create the Environment, you need to create a DeploymentProfile in order to build and deploy the project.
To Build and Deploy the Sample Project
Create a Deployment Profile.
In the NetBeans Projects window, right-click prjHL7V3Inbound,point to New, and then select Deployment Profile.
For the Environment, select envHL7V3Outbound.
For the Connectivity Map, select cmHL7V3Inbound and deselectany other Connectivity Maps.
Click OK.
The Deployment Profile Editor appears.
Click Automap.
The Automap Results dialog box appears.
Click Close.
On the NetBeans toolbar, click Save All.
On the Deployment Editor toolbar, click Build.
When the Build confirmation dialog box appears, clickOK.
On the Deployment Editor toolbar, click Deploy.
Executing a Sample Project
To run data through the sample project, you need to use an HL7simulator or HL7 application.
To Execute the Sample Project
Hl7 Viewer Free
Create a sample file named PRPA_IN403001UV01.xml.
Enter the following text into the file (you can copy andpaste this excerpt).
The above text has been wrapped to fit the page. The followingimage shows the text in an XML editor.
Copy the XML file to a location where the simulator orHL7 application will pick it up.
Open the server log file and check the results at thefollowing location:
Drivename:JavaCAPS6U1appserverdomainsdomian1logs
This action displays the following message.
Schematron Validation Failed