This is in continuation to my earlier blog on OIC Healthcare features. You can find out more about this feature and an overview of the new features in my earlier post.
In this blog I will demonstrate how to use Oracle Integration cloud to create a HL7 file to a SFTP folder location for an updated patient record. We will use the new Healthcare action to parse the incoming message and match it to one of the HL7 messages that has been defined in the Oracle Integration HL7 editor and write it into a SFTP server.
In OIC scheduler based integration, updated patient record is fetched from Oracle database (here I am using Oracle ADW) and transformed and translated HL7 message (using Healthcare action) is written to SFTP server folder location.
Login to Oracle Integration Console then Home > Design > Connections
Create Autonomous Data Warehouse Connection
Create FTP Connection
(Using the embedded SFTP-compliant repository in Oracle Integration for storing and retrieving files)
Navigate to Oracle Integration Home. You can see the new Healthcare Capability
In the navigation pane, click Healthcare, then Schemas. On the Schemas page, click Create to create a new schema
You create a healthcare schema using a standard HL7 schema definition as a starting point. All HL7 base schemas from version 2.3.1 onwards are supported and provided with Oracle Integration. You can also customize the schema according to your needs.
Full editing capability allows :
- Start a new schema from any base definition/version
- Add/delete new segments and fields
- Define element types and cardinality
- Replicate base or customized segments and fields for reuse in multiple document definitions
Customize the schema according to your needs and Save
In the left navigation pane, click Documents. On the Documents page, click Create to create a new Document.
The document represents a specific snapshot of a schema to use in an integration. You later select the document for conversion into a supported format when you configure the healthcare action during design of your integration.
Once you have created your schema and document, you can design an integration with a healthcare action.
Navigate to Home > Design > Integrations and Create a Scheduled integration
Invoke action to fetch the updated patient records from Oracle database
A New Healthcare action in the developer palette for processing HL7 messages. The Healthcare action does all the heavy lifting and provides conversion of native HL7 messages in and out of OIC.
Drag and drop Healthcare action from Actions tab for translating fetched patient records to HL7 standard message
Select an operation to perform:
- Convert message reference to document: Use this operation to identify the incoming message type and version. This operation returns a reference to a translated message and metadata needed to route the integration to an appropriate child integration to process the message. When you call the operation, you need to specify a list of HL7 documents with which you want to match.
- Match and translate inbound message: Use this operation to convert inbound HL7-formatted messages into XML format. Specify the documents you want this action to receive. These are the documents that you configured during design time. This operation takes a raw HL7 message off the wire, parses it, and matches it with the document definition you select in the Choose documents section. The message is then converted to an Oracle Integration XML payload.
- Translate to outbound message: Use this operation to convert an XML payload message to an outbound HL7 message.
We will first translate the inbound XML message to HL7 format
From the dropdown, select the document that you created earlier
Map the fetched patient update record to Translate HL7 request message
Map translated HL7 message to File Reference field. Use decodeBase64ToReference function while mapping
Validate and return to Integration canvas.
Select the Business Identifier for tracking, Save, Exit and activate the Integration.
Testing and Validation
Update patient record in the database table
Hover on to the integration and click on Run button. Then again, Run button
From the Activity Stream we can see record has been pickup by OIC and successfully created a HL7 file in FTP location.
Verify the Patient record HL7 file created in the SFTP server folder location.
This completes the blog on HL7 outbound processing using OIC.
































































