Digibee Documentation
Request documentationBook a demo
English
English
  • Quick start
  • Highlights
    • Release notes
      • Release notes 2025
        • May
        • April
        • March
        • February
        • January
      • Release notes 2024
        • December
        • November
        • October
        • September
        • August
          • Connectors release 08/20/2024
        • July
        • June
        • May
        • April
        • March
        • February
        • January
      • Release notes 2023
        • December
        • November
        • October
        • September
        • August
        • July
        • June
        • May
        • April
        • March
        • February
        • January
      • Release notes 2022
        • December
        • November
        • October
        • September
        • August
        • July
        • June
        • May
        • April
        • March
        • February
        • January
      • Release notes 2021
      • Release notes 2020
    • AI Pair Programmer
    • Digibeectl
      • Getting started
        • How to install Digibeectl on Windows
      • Digibeectl syntax
      • Digibeectl operations
  • Digibee in action
    • Use Cases in Action
      • Improving integration performance with API pagination
      • Automating file storage with Digibee
      • Reprocessing strategy in event-driven integrations
      • Key practices for securing sensitive information in pipelines with Digibee
      • OAuth2 for secure API access
      • Secure your APIs with JWT in Digibee
      • Integration best practices for developers on the Digibee Integration Platform
      • How to use Event-driven architecture on the Digibee Integration Platform
      • Dynamic file download with Digibee
      • Microservices: Circuit Breaker pattern for improving resilience
      • Error handling strategy in event-driven integrations
    • Troubleshooting
      • Integration guidance
        • How to resolve common pipeline issues
        • How to resolve Error 409: “You cannot update a pipeline that is not on draft mode”
        • How to resolve the "Pipeline execution was aborted" error
        • Integrated authentication with Microsoft Entra ID
        • How to resolve the "Failed to initialize pool: ONS configuration failed" error
        • How to perform IP address mapping with Progress database
        • How to build integration flows that send error notifications
        • How to send pipeline logs to external monitoring systems
        • How JSONPath differs in connectors and the Execution panel
        • Using JSONPath to validate numbers with specific initial digits
        • How to analyze the "Network error: Failed to fetch" in the Execution panel
        • How to handle request payloads larger than 5MB
        • How to configure Microsoft Entra ID to display groups on the Digibee Integration Platform
        • How to build an HL7 message
      • Connectors behavior and configuration
        • Timeout in the Pipeline Executor connector
        • How to use DISTINCT and COUNT in the Object Store
        • Understanding @@DGB_TRUNCATED@@ on the Digibee Integration Platform
        • How to resolve names without a DNS - REST, SOAP, SAP (web protocols)
        • How to read and write files inside a folder
        • AuthToken Reuse for Salesforce connector
        • How to resolve the "Invalid payload" error in API Integration
        • Supported databases
          • Functions and uses for databases
      • Connectors implementation and usage examples
        • Google Storage: Usage scenarios
        • DB V2: Usage scenarios
        • For Each: Usage example
        • Template and its uses
        • Digibee JWT implementation
        • Email V1: Usage example (Deprecated)
      • JOLT applications
        • Transformer: Getting to know JOLT
        • Transformer: Transformations with JOLT
        • Transformer: Add values to list elements
        • Transformer: Operations overview
        • Transformer: Date formatting using split and concat
        • Transformer: Simple IF-ELSE logic with JOLT
      • Platform access and performance tips
        • How to solve login problems on the Digibee Integration Platform
        • How to receive updates from Digibee Status Page
        • How to clean the Digibee Integration Platform cache
      • Governance troubleshooting guidance
        • How to consume Internal API pipelines using ZTNA
        • How to use Internal API with and without a VPN
        • How to generate, convert, and register SSH Keys
        • mTLS authentication
          • How to configure mTLS on the Digibee Integration Platform
          • FAQs: Certificates in mTLS
        • How to connect Digibee to Oracle RAC
        • How to connect Digibee to SAP
        • How to connect Digibee to MongoDB Atlas using VPN
        • How to manage IPs on the Digibee Integration Platform
        • Configuring the Dropbox account
        • How to use your Gmail account with the Digibee email component (SMTP)
        • How to use the CORS policy on the Digibee Integration Platform
      • Deployment scenarios
        • Solving the “Out of memory” errors in deployment
        • Warning of route conflicts
    • Best practices
      • JOLT and Double Braces on Digibee: Choosing the right method for data transformation
      • Best practices for building a pipeline
      • Best practices on validating messages in a consumer pipeline
      • Avoiding loops and maximizing pipeline efficiency
      • Naming: Global, Accounts, and API Keys
      • Pagination tutorial
        • Pagination tutorial - part 1
        • Pagination tutorial - part 2
        • Pagination tutorial - part 3
        • Pagination tutorial - part 4
      • Pagination example
      • Event-driven architecture
      • Notification model in event-driven integrations
      • OAuth2 integration model with Digibee
      • Best practices for error handling in pipelines
      • Highly scalable ETL model for Digibee
    • Digibee Academy
      • Integration Developer Bootcamp
  • Reference guides
    • Connectors
      • AI Tools
        • LLM Connector
      • AWS
        • S3 Storage
        • SQS
        • AWS Secrets Manager
        • AWS Athena
        • AWS CloudWatch
        • AWS Elastic Container Service (ECS)
        • AWS Eventbridge
        • AWS Identity and Access Management (IAM)
        • AWS Kinesis
        • AWS Kinesis Firehose
        • AWS Key Management Service (KMS)
        • AWS Lambda
        • AWS MQ
        • AWS Simple Email Service (SES)
        • AWS Simple Notification System (SNS)
        • AWS Security Token Service (STS)
        • AWS Translate
      • Azure
        • Azure CosmosDB
        • Azure Event Hubs
        • Azure Key Vault
        • Azure ServiceBus
        • Azure Storage DataLake Service
        • Azure Storage Queue Service
      • Enterprise applications
        • SAP
        • Salesforce
        • Braintree
        • Facebook
        • GitHub
        • Jira
        • ServiceNow
        • Slack
        • Telegram
        • Twilio
        • WhatsApp
        • Wordpress
        • Workday
        • Zendesk
      • File storage
        • Blob Storage (Azure)
        • Digibee Storage
        • Dropbox
        • FTP
        • Google Drive
        • Google Storage
        • OneDrive
        • SFTP
        • WebDav V2
        • WebDav (Deprecated)
      • Files
        • Append Files
        • Avro File Reader
        • Avro File Writer
        • CSV to Excel
        • Excel
        • File Reader
        • File Writer
        • GZIP V2
        • GZIP V1 (Deprecated)
        • Parquet File Reader
        • Parquet File Writer
        • Stream Avro File Reader
        • Stream Excel
        • Stream File Reader
        • Stream File Reader Pattern
        • Stream JSON File Reader
        • Stream Parquet File Reader
        • Stream XML File Reader
        • XML Schema Validator
        • ZIP File
        • NFS
      • Flow
        • Delayer
      • Google/GCP
        • Google BigQuery
        • Google BigQuery Standard SQL
        • Google Calendar
        • Google Cloud Functions
        • Google Mail
        • Google PubSub
        • Google Secret Manager
        • Google Sheets
      • Industry solutions
        • FHIR (Beta)
        • Gupy Public API
        • HL7
        • HubSpot: Sales and CMS
        • Mailgun API
        • Oracle NetSuite (Beta)
        • Orderful
        • Protheus: Billing and Inventory of Cost
      • Logic
        • Block Execution
        • Choice
        • Do While
        • For Each
        • Retry
        • Parallel Execution
      • Queues and messaging
        • Event Publisher
        • JMS
        • Kafka
        • RabbitMQ
      • Security
        • AES Cryptography
        • Asymmetric Cryptography
        • CMS
        • Digital Signature
        • JWT (Deprecated)
        • JWT V2
        • Google IAP Token
        • Hash
        • Digibee JWT (Generate and Decode)
        • LDAP
        • PBE Cryptography
        • PGP
        • RSA Cryptography
        • Symmetric Cryptography
      • Structured data
        • CassandraDB
        • DB V2
        • DB V1 (Deprecated)
        • DynamoDB
        • Google Big Table
        • Memcached
        • MongoDB
        • Object Store
        • Relationship
        • Session Management
        • Stored Procedure
        • Stream DB V3
        • Stream DB V1 (Deprecated)
        • ArangoDb
        • Caffeine Cache
        • Caffeine LoadCache
        • Couchbase
        • CouchDB
        • Ehcache
        • InfluxDB
      • Tools
        • Assert V2
        • Assert V1 (Deprecated)
        • Base64
        • CSV to JSON V2
        • CSV to JSON V1 (Deprecated)
        • HL7 Message Transformer (Beta)
        • HTML to PDF
        • Transformer (JOLT) V2
        • JSLT
        • JSON String to JSON Transformer
        • JSON to JSON String Transformer
        • JSON to XML Transformer
        • JSON to CSV V2
        • JSON to CSV Transformer (Deprecated)
        • JSON Path Transformer V2
        • JSON Path Transformer
        • JSON Transformer
        • Log
        • Pipeline Executor
        • QuickFix (Beta)
        • SSH Remote Command
        • Script (JavaScript)
        • Secure PDF
        • Store Account
        • Template Transformer
        • Throw Error
        • Transformer (JOLT)
        • Validator V1 (Deprecated)
        • Validator V2
        • XML to JSON Transformer
        • XML Transformer
        • JSON Generator (Mock)
      • Web protocols
        • Email V2
        • Email V1 (Deprecated)
        • REST V2
        • REST V1 (Deprecated)
        • SOAP V1 (Deprecated)
        • SOAP V2
        • SOAP V3
        • WGet (Download HTTP)
        • gRPC
    • Triggers
      • Web Protocols
        • API Trigger
        • Email Trigger
        • Email Trigger V2
        • HTTP Trigger
        • HTTP File Trigger
          • HTTP File Trigger - Downloads
          • HTTP File Trigger - Uploads
        • REST Trigger
      • Scheduling
        • Scheduler Trigger
      • Messaging and Events
        • Event Trigger
        • JMS Trigger
        • Kafka Trigger
        • RabbitMQ Trigger
      • Others
        • DynamoDB Streams Trigger
        • HL7 Trigger
        • Salesforce Trigger - Events
    • Double Braces
      • How to reference data using Double Braces
      • Double Braces functions
        • Math functions
        • Utilities functions
        • Numerical functions
        • String functions
        • JSON functions
        • Date functions
        • Comparison functions
        • File functions
        • Conditional functions
      • Double Braces autocomplete
  • Development cycle
    • Build
      • Canvas
        • AI Assistant
        • Smart Connector User Experience
        • Execution panel
        • Design and Inspect Mode
        • Linter: Canvas building validation
        • Connector Mocking
      • Pipeline
        • How to create a pipeline
        • How to scaffold a pipeline using an OpenAPI specification
        • How to create a project
        • Pipeline version history
        • Pipeline versioning
        • Messages processing
        • Subpipelines
      • Capsules
        • How to use Capsules
          • How to create a Capsule collection
            • Capsule header dimensions
          • How to create a Capsule group
          • How to configure a Capsule
          • How to build a Capsule
          • How to test a Capsule
          • How to save a Capsule
          • How to publish a Capsule
          • How to change a Capsule collection or group
          • How to archive and restore a Capsule
        • Capsules versioning
        • Public capsules
          • SAP
          • Digibee Tools
          • Google Sheets
          • Gupy
          • Send notifications via email
          • Totvs Live
          • Canvas LMS
        • AI Assistant for Capsules Docs Generation
    • Run
      • Run concepts
        • Autoscalling
      • Deployment
        • Deploying a pipeline
        • How to redeploy a pipeline
        • How to promote pipelines across environments
        • How to check the pipeline deployment History
        • How to rollback to a previous deployment version
        • Using deployment history advanced functions
        • Pipeline deployment status
      • How warnings work on pipelines in Run
    • Monitor
      • Monitor Insights (Beta)
      • Completed executions
        • Pipeline execution logs download
      • Pipeline logs
      • Pipeline Metrics
        • Pipeline Metrics API
          • How to set up Digibee API metrics with Datadog
          • How to set up Digibee API metrics with Prometheus
        • Connector Latency
      • Alerts
        • How to create an alert
        • How to edit an alert
        • How to activate, deactivate or duplicate an alert
        • How to delete an alert
        • How to configure alerts on Slack
        • How to configure alerts on Telegram
        • How to configure alerts through a webhook
        • Available metrics
        • Best practices about alerts
        • Use cases for alerts
      • VPN connections monitoring
        • Alerts for VPN metrics
  • Connectivity management
    • Connectivity
    • Zero Trust Network Access (ZTNA)
      • Prerequisites for using ZTNA
      • How to view connections (Edge Routers)
      • How to view the Network Mappings associated with an Edge Router
      • How to add new ZTNA connections (Edge Routers)
      • How to delete connections (Edge Routers)
      • How to view routes (Network Mapping)
      • How to add new routes (Network Mapping)
      • How to add routes in batch for ZTNA
      • How to edit routes (Network Mapping)
      • How to delete routes (Network Mapping)
      • How to generate new keys (Edge Router)
      • How to change the environment of Edge routers
      • ZTNA Inverse Flow
      • ZTNA Groups
    • Virtual Private Network (VPN)
  • Platform administration
    • Administration
      • Audit
      • Access control
        • Users
        • Groups
        • Roles
          • List of permissions by service
          • Roles and responsibilities: Governance and key stakeholder identification
      • Identity provider integration
        • How to integrate an identity provider
        • Authentication rules
        • Integration of IdP groups with Digibee groups
          • How to create a group integration
          • How to test a group integration
          • How to enable group integrations
          • How to edit a group integration
          • How to delete a group integration
      • User authentication and authorization
        • How to activate and deactivate two-factor authentication
        • Login flow
      • Organization groups
    • Settings
      • Globals
        • How to create Globals
        • How to edit or delete Globals
        • How to use Globals
      • Accounts
        • Configuring each account type
        • Monitor changes to account settings in deployed pipelines
        • OAuth2 Architecture
          • Registration of new OAuth providers
      • Consumers (API Keys)
      • Relationship model
      • Multi-Instance
        • Deploying a multi-instance pipeline
      • Data Streaming
        • How to use Data Streaming with Datadog
    • Governance
      • Policies
        • Security
          • Internal API access policy
          • External API access policy
          • Sensitive fields policy
        • Transformation
          • Custom HTTP header
          • CORS HTTP header
        • Limit of Replicas policy
    • Licensing
      • Licensing models
        • Consumption Based model
      • Capacity and quotas
      • License consumption
    • Digibee APIs
      • How to create API credentials
  • Digibee concepts
    • Pipeline Engine
      • Digibee Integration Platform Pipeline Engine v2
      • Support Dynamic Accounts (Restricted Beta)
    • Introduction to ZTNA
  • Help & FAQ
    • Digibee Customer Support
    • Request documentation, suggest features, or send feedback
    • Beta Program
    • Security and compliance
    • About Digibee
Powered by GitBook
On this page
  • Parameters
  • General tab
  • Documentation tab
  • Additional information
  • Supported versions
  • Format changes in HL7-JSON conversions
  • Usage examples
  • HL7 message examples

Was this helpful?

  1. Reference guides
  2. Connectors
  3. Tools

HL7 Message Transformer (Beta)

Discover more about the HL7 Message Transformer connector and how to use it on the Digibee Integration Platform.

PreviousCSV to JSON V1 (Deprecated)NextHTML to PDF

Last updated 2 months ago

Was this helpful?

The HL7 Message Transformer connector is currently in beta phase. Learn more about the .

HL7 Message Transformer converts HL7 messages to and from JSON format, enabling efficient data transformation in healthcare integrations.

Parameters

Take a look at the configuration parameters for the connector. Parameters supported by are marked with (DB).

General tab

Parameter
Description
Default value
Data type

Output Format

The format to which the message or object will be converted. Options: JSON or HL7.

JSON

String

Message (DB)

The HL7 message or JSON object to convert.

N/A

String

Fail On Error

If the option is active, the execution of the pipeline with an error will be interrupted. Otherwise, the pipeline execution proceeds, but the result will show a false value for the "success" property.

False

String

Documentation tab

Parameter
Description
Default value
Data type

Documentation

Section for documenting any necessary information about the connector configuration and business rules.

N/A

String

Additional information

Supported versions

The supported HL7 message versions are:

  • 2.1

  • 2.2

  • 2.3

  • 2.3.1

  • 2.4

  • 2.5

  • 2.5.1

  • 2.6

  • 2.7

  • 2.8

  • 2.8.1

Format changes in HL7-JSON conversions

When converting an HL7 message to JSON and back to HL7, the final message may differ from the original.

For example, a segment ending in |ABC|||| will appear as |ABC. Similarly, fields with values like |^^| or |ABCˆˆ will be represented as || and |ABC, respectively.

This happens because these characters serve as field separators (|) or encoding characters (^^), not actual values. This behavior follows HL7 standards and doesn’t affect message integrity. The JSON structure used in conversion also adheres to HL7 standards.

Usage examples

HL7 to JSON

Connector’s configuration:

  • Output Format: JSON

  • Data:

MSH|^~\&#|NIST EHR|NIST EHR Facility|NIST Test Lab APP|NIST Lab Facility|20130211184101-0500||OML^O21^OML_O21|NIST-LOI_5.0_1.1-NG|T|2.5.1|||AL|AL|||||
PID|1||PATID5421^^^NIST MPI^MR||Wilson^Patrice^Natasha^^^^L||19820304|F||2106-3^White^HL70005|144 East 12th Street^^Los Angeles^CA^90012^^H||^PRN^PH^^^203^2290210|||||||||N^Not Hispanic or Latino^HL70189
NK1|1|Wilson^Phillip^Arthur^^^^L|SPO^Spouse^HL70063|144 East 12th Street^^Los Angeles^CA^90012^^H|||||||||
ORC|NW|ORD448811^NIST EHR|||||||20120628070100|||5742200012^Radon^Nicholas^^^^^^NPI^L^^^NPI
OBR|1|ORD448811^NIST EHR||1000^Hepatitis A  B  C Panel^99USL|||20120628070100|||||||||5742200012^Radon^Nicholas^^^^^^NPI^L^^^NPI
DG1|1||F11.129^Opioid abuse with intoxication,unspecified^I10C|||W|||||||||1

Connector’s output:

{
  "OML_O21": {
    "MSH": {
      "MSH.1": "|",
      "MSH.2": "^~\\&#",
      "MSH.3": {
        "HD.1": "NIST EHR"
      },
      "MSH.4": {
        "HD.1": "NIST EHR Facility"
      },
      "MSH.5": {
        "HD.1": "NIST Test Lab APP"
      },
      "MSH.6": {
        "HD.1": "NIST Lab Facility"
      },
      "MSH.7": {
        "TS.1": "20130211184101-0500"
      },
      "MSH.9": {
        "MSG.1": "OML",
        "MSG.2": "O21",
        "MSG.3": "OML_O21"
      },
      "MSH.10": "NIST-LOI_5.0_1.1-NG",
      "MSH.11": {
        "PT.1": "T"
      },
      "MSH.12": {
        "VID.1": "2.5.1"
      },
      "MSH.15": "AL",
      "MSH.16": "AL"
    },
    "OML_O21.PATIENT": {
      "PID": {
        "PID.1": "1",
        "PID.3": {
          "CX.1": "PATID5421",
          "CX.4": {
            "HD.1": "NIST MPI"
          },
          "CX.5": "MR"
        },
        "PID.5": {
          "XPN.1": {
            "FN.1": "Wilson"
          },
          "XPN.2": "Patrice",
          "XPN.3": "Natasha",
          "XPN.7": "L"
        },
        "PID.7": {
          "TS.1": "19820304"
        },
        "PID.8": "F",
        "PID.10": {
          "CE.1": "2106-3",
          "CE.2": "White",
          "CE.3": "HL70005"
        },
        "PID.11": {
          "XAD.1": {
            "SAD.1": "144 East 12th Street"
          },
          "XAD.3": "Los Angeles",
          "XAD.4": "CA",
          "XAD.5": "90012",
          "XAD.7": "H"
        },
        "PID.13": {
          "XTN.2": "PRN",
          "XTN.3": "PH",
          "XTN.6": "203",
          "XTN.7": "2290210"
        },
        "PID.22": {
          "CE.1": "N",
          "CE.2": "Not Hispanic or Latino",
          "CE.3": "HL70189"
        }
      },
      "NK1": {
        "NK1.1": "1",
        "NK1.2": {
          "XPN.1": {
            "FN.1": "Wilson"
          },
          "XPN.2": "Phillip",
          "XPN.3": "Arthur",
          "XPN.7": "L"
        },
        "NK1.3": {
          "CE.1": "SPO",
          "CE.2": "Spouse",
          "CE.3": "HL70063"
        },
        "NK1.4": {
          "XAD.1": {
            "SAD.1": "144 East 12th Street"
          },
          "XAD.3": "Los Angeles",
          "XAD.4": "CA",
          "XAD.5": "90012",
          "XAD.7": "H"
        }
      }
    },
    "OML_O21.ORDER": {
      "ORC": {
        "ORC.1": "NW",
        "ORC.2": {
          "EI.1": "ORD448811",
          "EI.2": "NIST EHR"
        },
        "ORC.9": {
          "TS.1": "20120628070100"
        },
        "ORC.12": {
          "XCN.1": "5742200012",
          "XCN.2": {
            "FN.1": "Radon"
          },
          "XCN.3": "Nicholas",
          "XCN.9": {
            "HD.1": "NPI"
          },
          "XCN.10": "L",
          "XCN.13": "NPI"
        }
      },
      "OML_O21.OBSERVATION_REQUEST": {
        "OBR": {
          "OBR.1": "1",
          "OBR.2": {
            "EI.1": "ORD448811",
            "EI.2": "NIST EHR"
          },
          "OBR.4": {
            "CE.1": "1000",
            "CE.2": "Hepatitis A  B  C Panel",
            "CE.3": "99USL"
          },
          "OBR.7": {
            "TS.1": "20120628070100"
          },
          "OBR.16": {
            "XCN.1": "5742200012",
            "XCN.2": {
              "FN.1": "Radon"
            },
            "XCN.3": "Nicholas",
            "XCN.9": {
              "HD.1": "NPI"
            },
            "XCN.10": "L",
            "XCN.13": "NPI"
          }
        },
        "DG1": {
          "DG1.1": "1",
          "DG1.3": {
            "CE.1": "F11.129",
            "CE.2": "Opioid abuse with intoxication,unspecified",
            "CE.3": "I10C"
          },
          "DG1.6": "W",
          "DG1.15": "1"
        }
      }
    }
  }
}
JSON to HL7

Connector’s configuration:

  • Output Format: HL7

  • Data:

{
  "ORU_R01": {
    "MSH": {
      "MSH.1": "|",
      "MSH.2": "^~\\&",
      "MSH.3": {
        "HD.1": "NIST Test Lab APP"
      },
      "MSH.4": {
        "HD.1": "NIST Lab Facility"
      },
      "MSH.6": {
        "HD.1": "NIST EHR Facility"
      },
      "MSH.7": {
        "TS.1": "20150926140551"
      },
      "MSH.9": {
        "MSG.1": "ORU",
        "MSG.2": "R01",
        "MSG.3": "ORU_R01"
      },
      "MSH.10": "NIST-LOI_5.0_1.1-NG",
      "MSH.11": {
        "PT.1": "T"
      },
      "MSH.12": {
        "VID.1": "2.5.1"
      },
      "MSH.15": "AL",
      "MSH.16": "AL"
    },
    "ORU_R01.PATIENT_RESULT": {
      "ORU_R01.PATIENT": {
        "PID": {
          "PID.1": "1",
          "PID.3": {
            "CX.1": "PATID5421",
            "CX.4": {
              "HD.1": "NIST MPI"
            },
            "CX.5": "MR"
          },
          "PID.5": {
            "XPN.1": {
              "FN.1": "Wilson"
            },
            "XPN.2": "Patrice",
            "XPN.3": "Natasha",
            "XPN.7": "L"
          },
          "PID.7": {
            "TS.1": "19820304"
          },
          "PID.8": "F",
          "PID.10": {
            "CE.1": "2106-3",
            "CE.2": "White",
            "CE.3": "HL70005"
          },
          "PID.11": {
            "XAD.1": {
              "SAD.1": "144 East 12th Street"
            },
            "XAD.3": "Los Angeles",
            "XAD.4": "CA",
            "XAD.5": "90012",
            "XAD.7": "H"
          },
          "PID.13": {
            "XTN.2": "PRN",
            "XTN.3": "PH",
            "XTN.6": "203",
            "XTN.7": "2290210"
          },
          "PID.22": {
            "CE.1": "N",
            "CE.2": "Not Hispanic or Latino",
            "CE.3": "HL70189"
          }
        }
      },
      "ORU_R01.ORDER_OBSERVATION": {
        "ORC": {
          "ORC.1": "NW",
          "ORC.2": {
            "EI.1": "ORD448811",
            "EI.2": "NIST EHR"
          },
          "ORC.3": {
            "EI.1": "R-511",
            "EI.2": "NIST Lab Filler"
          },
          "ORC.9": {
            "TS.1": "20120628070100"
          },
          "ORC.12": {
            "XCN.1": "5742200012",
            "XCN.2": {
              "FN.1": "Radon"
            },
            "XCN.3": "Nicholas",
            "XCN.9": {
              "HD.1": "NPI"
            },
            "XCN.10": "L",
            "XCN.13": "NPI"
          }
        },
        "OBR": {
          "OBR.1": "1",
          "OBR.2": {
            "EI.1": "ORD448811",
            "EI.2": "NIST EHR"
          },
          "OBR.3": {
            "EI.1": "R-511",
            "EI.2": "NIST Lab Filler"
          },
          "OBR.4": {
            "CE.1": "1000",
            "CE.2": "Hepatitis A B C Panel",
            "CE.3": "99USL"
          },
          "OBR.7": {
            "TS.1": "20120628070100"
          },
          "OBR.16": {
            "XCN.1": "5742200012",
            "XCN.2": {
              "FN.1": "Radon"
            },
            "XCN.3": "Nicholas",
            "XCN.9": {
              "HD.1": "NPI"
            },
            "XCN.10": "L",
            "XCN.13": "NPI"
          }
        },
        "ORU_R01.OBSERVATION": [
          {
            "OBX": {
              "OBX.1": "1",
              "OBX.2": "CWE",
              "OBX.3": {
                "CE.1": "22314-9",
                "CE.2": "Hepatitis A virus IgM Ab [Presence] in Serum",
                "CE.3": "LN",
                "CE.4": "HAVM",
                "CE.5": "Hepatitis A IgM antibodies (IgM anti-HAV)",
                "CE.6": "L"
              },
              "OBX.5": {
                "CWE.1": "260385009",
                "CWE.2": "Negative (qualifier value)",
                "CWE.3": "SCT",
                "CWE.4": "NEG",
                "CWE.5": "NEGATIVE",
                "CWE.6": "L",
                "CWE.7": "201509USEd",
                "CWE.9": "Negative (qualifier value)"
              },
              "OBX.7": "Negative",
              "OBX.8": "N",
              "OBX.11": "F",
              "OBX.14": {
                "TS.1": "20150925"
              },
              "OBX.19": {
                "TS.1": "201509261400"
              }
            }
          },
          {
            "OBX": {
              "OBX.1": "2",
              "OBX.2": "CWE",
              "OBX.3": {
                "CE.1": "20575-7",
                "CE.2": "Hepatitis A virus Ab [Presence] in Serum",
                "CE.3": "LN",
                "CE.4": "HAVAB",
                "CE.5": "Hepatitis A antibodies (anti-HAV)",
                "CE.6": "L"
              },
              "OBX.5": {
                "CWE.1": "260385009",
                "CWE.2": "Negative (qualifier value)",
                "CWE.3": "SCT",
                "CWE.4": "NEG",
                "CWE.5": "NEGATIVE",
                "CWE.6": "L",
                "CWE.7": "201509USEd",
                "CWE.9": "Negative (qualifier value)"
              },
              "OBX.7": "Negative",
              "OBX.8": "N",
              "OBX.11": "F",
              "OBX.14": {
                "TS.1": "20150925"
              },
              "OBX.19": {
                "TS.1": "201509261400"
              }
            }
          },
          {
            "OBX": {
              "OBX.1": "3",
              "OBX.2": "NM",
              "OBX.3": {
                "CE.1": "22316-4",
                "CE.2": "Hepatitis B virus core Ab [Units/volume] in Serum",
                "CE.3": "LN",
                "CE.4": "HBcAbQ",
                "CE.5": "Hepatitis B core antibodies (anti-HBVc) Quant",
                "CE.6": "L"
              },
              "OBX.5": "0.70",
              "OBX.6": {
                "CE.1": "[IU]/mL",
                "CE.2": "international unit per milliliter",
                "CE.3": "UCUM",
                "CE.4": "IU/ml",
                "CE.6": "L"
              },
              "OBX.7": "<0.50 IU/mL",
              "OBX.8": "H",
              "OBX.11": "F",
              "OBX.14": {
                "TS.1": "20150925"
              },
              "OBX.19": {
                "TS.1": "201509261400"
              }
            }
          }
        ]
      }
    }
  }
}

Connector’s output:

{
  "data": "MSH|^~\\&|NIST Test Lab APP|NIST Lab Facility||NIST EHR Facility|20150926140551||ORU^R01^ORU_R01|NIST-LOI_5.0_1.1-NG|T|2.5.1|||AL|AL\rPID|1||PATID5421^^^NIST MPI^MR||Wilson^Patrice^Natasha^^^^L||19820304|F||2106-3^White^HL70005|144 East 12th Street^^Los Angeles^CA^90012^^H||^PRN^PH^^^203^2290210|||||||||N^Not Hispanic or Latino^HL70189\rORC|NW|ORD448811^NIST EHR|R-511^NIST Lab Filler||||||20120628070100|||5742200012^Radon^Nicholas^^^^^^NPI^L^^^NPI\rOBR|1|ORD448811^NIST EHR|R-511^NIST Lab Filler|1000^Hepatitis A B C Panel^99USL|||20120628070100|||||||||5742200012^Radon^Nicholas^^^^^^NPI^L^^^NPI\rOBX|1|CWE|22314-9^Hepatitis A virus IgM Ab [Presence] in Serum^LN^HAVM^Hepatitis A IgM antibodies (IgM anti-HAV)^L||260385009^Negative (qualifier value)^SCT^NEG^NEGATIVE^L^201509USEd^^Negative (qualifier value)||Negative|N|||F|||20150925|||||201509261400\rOBX|2|CWE|20575-7^Hepatitis A virus Ab [Presence] in Serum^LN^HAVAB^Hepatitis A antibodies (anti-HAV)^L||260385009^Negative (qualifier value)^SCT^NEG^NEGATIVE^L^201509USEd^^Negative (qualifier value)||Negative|N|||F|||20150925|||||201509261400\rOBX|3|NM|22316-4^Hepatitis B virus core Ab [Units/volume] in Serum^LN^HBcAbQ^Hepatitis B core antibodies (anti-HBVc) Quant^L||0.70|[IU]/mL^international unit per milliliter^UCUM^IU/ml^^L|<0.50 IU/mL|H|||F|||20150925|||||201509261400\r"
}

HL7 message examples

ADT_A01

HL7 message:

MSH|^~\&|ADT1|GOOD HEALTH HOSPITAL|GHH LAB, INC.|GOOD HEALTH HOSPITAL|198808181126|SECURITY|ADT^A01^ADT_A01|MSG00001|P|2.8||
EVN|A01|200708181123||
PID|1||PATID1234^5^M11^ADT1^MR^GOOD HEALTH HOSPITAL~123456789^^^USSSA^SS||EVERYMAN^ADAM^A^III||19610615|M||C|2222 HOME STREET^^GREENSBORO^NC^27401-1020|GL|(555) 555-2004|(555)555-2004||S||PATID12345001^2^M10^ADT1^AN^A|444333333|987654^NC|
NK1|1|NUCLEAR^NELDA^W|SPO^SPOUSE||||NK^NEXT OF KIN
PV1|1|I|2000^2012^01||||004777^ATTEND^AARON^A|||SUR||||ADM|A0|

JSON representation:

{
  "ADT_A01": {
    "MSH": {
      "MSH.1": "|",
      "MSH.2": "^~\\&",
      "MSH.3": {
        "HD.1": "ADT1"
      },
      "MSH.4": {
        "HD.1": "GOOD HEALTH HOSPITAL"
      },
      "MSH.5": {
        "HD.1": "GHH LAB, INC."
      },
      "MSH.6": {
        "HD.1": "GOOD HEALTH HOSPITAL"
      },
      "MSH.7": "198808181126",
      "MSH.8": "SECURITY",
      "MSH.9": {
        "MSG.1": "ADT",
        "MSG.2": "A01",
        "MSG.3": "ADT_A01"
      },
      "MSH.10": "MSG00001",
      "MSH.11": {
        "PT.1": "P"
      },
      "MSH.12": {
        "VID.1": "2.8"
      }
    },
    "EVN": {
      "EVN.1": "A01",
      "EVN.2": "200708181123"
    },
    "PID": {
      "PID.1": "1",
      "PID.3": [
        {
          "CX.1": "PATID1234",
          "CX.2": "5",
          "CX.3": "M11",
          "CX.4": {
            "HD.1": "ADT1"
          },
          "CX.5": "MR",
          "CX.6": {
            "HD.1": "GOOD HEALTH HOSPITAL"
          }
        },
        {
          "CX.1": "123456789",
          "CX.4": {
            "HD.1": "USSSA"
          },
          "CX.5": "SS"
        }
      ],
      "PID.5": {
        "XPN.1": {
          "FN.1": "EVERYMAN"
        },
        "XPN.2": "ADAM",
        "XPN.3": "A",
        "XPN.4": "III"
      },
      "PID.7": "19610615",
      "PID.8": {
        "CWE.1": "M"
      },
      "PID.10": {
        "CWE.1": "C"
      },
      "PID.11": {
        "XAD.1": {
          "SAD.1": "2222 HOME STREET"
        },
        "XAD.3": "GREENSBORO",
        "XAD.4": "NC",
        "XAD.5": "27401-1020"
      },
      "PID.12": "GL",
      "PID.13": {
        "XTN.1": "(555) 555-2004"
      },
      "PID.14": {
        "XTN.1": "(555)555-2004"
      },
      "PID.16": {
        "CWE.1": "S"
      },
      "PID.18": {
        "CX.1": "PATID12345001",
        "CX.2": "2",
        "CX.3": "M10",
        "CX.4": {
          "HD.1": "ADT1"
        },
        "CX.5": "AN",
        "CX.6": {
          "HD.1": "A"
        }
      },
      "PID.19": "444333333",
      "PID.20": "987654"
    },
    "NK1": {
      "NK1.1": "1",
      "NK1.2": {
        "XPN.1": {
          "FN.1": "NUCLEAR"
        },
        "XPN.2": "NELDA",
        "XPN.3": "W"
      },
      "NK1.3": {
        "CWE.1": "SPO",
        "CWE.2": "SPOUSE"
      },
      "NK1.7": {
        "CWE.1": "NK",
        "CWE.2": "NEXT OF KIN"
      }
    },
    "PV1": {
      "PV1.1": "1",
      "PV1.2": {
        "CWE.1": "I"
      },
      "PV1.3": {
        "PL.1": {
          "HD.1": "2000"
        },
        "PL.2": {
          "HD.1": "2012"
        },
        "PL.3": {
          "HD.1": "01"
        }
      },
      "PV1.7": {
        "XCN.1": "004777",
        "XCN.2": {
          "FN.1": "ATTEND"
        },
        "XCN.3": "AARON",
        "XCN.4": "A"
      },
      "PV1.10": {
        "CWE.1": "SUR"
      },
      "PV1.14": {
        "CWE.1": "ADM"
      },
      "PV1.15": {
        "CWE.1": "A0"
      }
    }
  }
}
RDE_O01

HL7 message:

MSH|^~\&|EPIC|NMHPL|ES|ES|20210708113648|JHILAO|RDE^O01|5619|D|2.3
PID|||111011393329^^^MR^MR||IDSTEST^ONE||19850718|M||W|711 E 63RD ST^^CHICAGO^IL^60651^USA^^^COOK|COOK|(773)785-9879^P^PH||ENGLISH|S||200014156735||||H
PV1||I|616E^1611^01^NMHH^R^^NMHH^^^^NMHCDEP||||35671^TEST MD2^TESTMD2^^||||||||||92438^DOCTOR^TEST^FIVE^~35671^TEST MD2^TESTMD2^^||200014156735|||||||||||||||||||||||||20180718105700
ORC|DC|1164023444^EPC|||||^DAILY^^20210709090000^20210708113647^^^||20210708113550|JHILAO^HILAO^JAMES^J^|231871^HILAO^JAMES^^|90189^TEST ONE^KEITH^BELL^|||||||||NORTHWESTERN MEMORIAL HOSPITAL IP|251 E HURON ST^^CHICAGO^IL^60611-2908^|(312)926-2000|P1 TESTING ONLY^^^^^|||||I
RXE|^DAILY^^20210709090000^20210708113647^^^|STD006663^STUDY: NBI-98854-HD3006 VALBENAZINE 80 MG CAPSULE^ADS^^^^^^Study: NBI-98854-HD3006 Valbenazine 80 mg capsule 80 mg|80||3^mg||Study ID: 123456. Take 1capsule(s) (80mg) at the same time each morning. Swallow the capsule with about 4 ounces of water or other liquid, with or without food.~*FOR INVESTIGATIONAL USE ONLY*|||1|Each^each||^TEST ONE^KEITH^BELL^|||||||||||||||||STANDARD||||||||||^NMH GALTER 17 INVESTIGATIONAL PHARMACY||||UD w/ bc
RXR|Oral^Oral
RXC||STD006663^STUDY: NBI-98854-HD3006 VALBENAZINE 80 MG CAPSULE^ADS|80|mg^mg|80|mg^mg

JSON representation:

{
  "RDE_O01": {
    "MSH": {
      "MSH.1": "|",
      "MSH.2": "^~\\&",
      "MSH.3": {
        "HD.1": "EPIC"
      },
      "MSH.4": {
        "HD.1": "NMHPL"
      },
      "MSH.5": {
        "HD.1": "ES"
      },
      "MSH.6": {
        "HD.1": "ES"
      },
      "MSH.7": {
        "TS.1": "20210708113648"
      },
      "MSH.8": "JHILAO",
      "MSH.9": {
        "CM_MSG.1": "RDE",
        "CM_MSG.2": "O01"
      },
      "MSH.10": "5619",
      "MSH.11": {
        "PT.1": "D"
      },
      "MSH.12": "2.3"
    },
    "RDE_O01.PATIENT": {
      "PID": {
        "PID.3": {
          "CX.1": "111011393329",
          "CX.4": {
            "HD.1": "MR"
          },
          "CX.5": "MR"
        },
        "PID.5": {
          "XPN.1": "IDSTEST",
          "XPN.2": "ONE"
        },
        "PID.7": {
          "TS.1": "19850718"
        },
        "PID.8": "M",
        "PID.10": "W",
        "PID.11": {
          "XAD.1": "711 E 63RD ST",
          "XAD.3": "CHICAGO",
          "XAD.4": "IL",
          "XAD.5": "60651",
          "XAD.6": "USA",
          "XAD.9": "COOK"
        },
        "PID.12": "COOK",
        "PID.13": {
          "XTN.1": "(773)785-9879",
          "XTN.2": "P",
          "XTN.3": "PH"
        },
        "PID.15": {
          "CE.1": "ENGLISH"
        },
        "PID.16": "S",
        "PID.18": {
          "CX.1": "200014156735"
        },
        "PID.22": "H"
      },
      "RDE_O01.PATIENT_VISIT": {
        "PV1": {
          "PV1.2": "I",
          "PV1.3": {
            "PL.1": "616E",
            "PL.2": "1611",
            "PL.3": "01",
            "PL.4": {
              "HD.1": "NMHH"
            },
            "PL.5": "R",
            "PL.7": "NMHH"
          },
          "PV1.7": {
            "XCN.1": "35671",
            "XCN.2": "TEST MD2",
            "XCN.3": "TESTMD2"
          },
          "PV1.17": [
            {
              "XCN.1": "92438",
              "XCN.2": "DOCTOR",
              "XCN.3": "TEST",
              "XCN.4": "FIVE"
            },
            {
              "XCN.1": "35671",
              "XCN.2": "TEST MD2",
              "XCN.3": "TESTMD2"
            }
          ],
          "PV1.19": {
            "CX.1": "200014156735"
          },
          "PV1.44": {
            "TS.1": "20180718105700"
          }
        }
      }
    },
    "RDE_O01.ORDER": {
      "ORC": {
        "ORC.1": "DC",
        "ORC.2": {
          "EI.1": "1164023444",
          "EI.2": "EPC"
        },
        "ORC.7": {
          "TQ.2": {
            "CM_RI.1": "DAILY"
          },
          "TQ.4": {
            "TS.1": "20210709090000"
          },
          "TQ.5": {
            "TS.1": "20210708113647"
          }
        },
        "ORC.9": {
          "TS.1": "20210708113550"
        },
        "ORC.10": {
          "XCN.1": "JHILAO",
          "XCN.2": "HILAO",
          "XCN.3": "JAMES",
          "XCN.4": "J"
        },
        "ORC.11": {
          "XCN.1": "231871",
          "XCN.2": "HILAO",
          "XCN.3": "JAMES"
        },
        "ORC.12": {
          "XCN.1": "90189",
          "XCN.2": "TEST ONE",
          "XCN.3": "KEITH",
          "XCN.4": "BELL"
        },
        "ORC.21": "NORTHWESTERN MEMORIAL HOSPITAL IP",
        "ORC.22": {
          "UNKNOWN.1": "251 E HURON ST",
          "UNKNOWN.3": "CHICAGO",
          "UNKNOWN.4": "IL",
          "UNKNOWN.5": "60611-2908"
        },
        "ORC.23": "(312)926-2000",
        "ORC.24": "P1 TESTING ONLY",
        "ORC.29": "I"
      },
      "RXE": {
        "RXE.1": {
          "TQ.2": {
            "CM_RI.1": "DAILY"
          },
          "TQ.4": {
            "TS.1": "20210709090000"
          },
          "TQ.5": {
            "TS.1": "20210708113647"
          }
        },
        "RXE.2": {
          "CE.1": "STD006663",
          "CE.2": "STUDY: NBI-98854-HD3006 VALBENAZINE 80 MG CAPSULE",
          "CE.3": "ADS"
        },
        "RXE.3": "80",
        "RXE.5": {
          "CE.1": "3",
          "CE.2": "mg"
        },
        "RXE.7": [
          {
            "CE.1": "Study ID: 123456. Take 1capsule(s) (80mg) at the same time each morning. Swallow the capsule with about 4 ounces of water or other liquid, with or without food."
          },
          {
            "CE.1": "*FOR INVESTIGATIONAL USE ONLY*"
          }
        ],
        "RXE.10": "1",
        "RXE.11": {
          "CE.1": "Each",
          "CE.2": "each"
        },
        "RXE.13": {
          "CN.2": "TEST ONE",
          "CN.3": "KEITH",
          "CN.4": "BELL"
        },
        "RXE.30": "STANDARD",
        "RXE.40": {
          "UNKNOWN.2": "NMH GALTER 17 INVESTIGATIONAL PHARMACY"
        },
        "RXE.44": "UD w/ bc"
      },
      "RXR": {
        "RXR.1": {
          "CE.1": "Oral",
          "CE.2": "Oral"
        }
      },
      "RXC": {
        "RXC.2": {
          "CE.1": "STD006663",
          "CE.2": "STUDY: NBI-98854-HD3006 VALBENAZINE 80 MG CAPSULE",
          "CE.3": "ADS"
        },
        "RXC.3": "80",
        "RXC.4": {
          "CE.1": "mg",
          "CE.2": "mg"
        },
        "RXC.5": "80",
        "RXC.6": {
          "CE.1": "mg",
          "CE.2": "mg"
        }
      }
    }
  }
}
VXU_V04

HL7 message:

MSH|^~\&|WIR11.3.2^^^|WIR^^^||WIRPH^^^|20200514||VXU^V04|2020051409183900|P^|2.3.1^^|||ER
PID|||3019189^^^^^||NEW^BORNGIRL^^^^^^||20180711|F||W^^^^^|800 ECLIPSE CENTER^^BELOIT^WI^53511^^^^WI105^^||(608)999-9999^PRN^PH^^^608^9999^^|||||||||NH^^^^^|||||||
PD1|||||||||||02^^^^^|Y||A
NK1|1|NEW^BORNGIRL^^^^^^|18^SELF^HL70063^^^|800 ECLIPSE CENTER^^BELOIT^WI^53511^^^^^^|(608)999-9999^PRN^PH^^^608^9999999^^
NK1|2|ZZZGIRL^MOTHER^^^^^^|G8^OTHER RELATIONSHIP^HL70063^^^|800 LEFT ST^^MILWAUKEE^WI^53212^^^^^^|(414)999-9999^PRN^PH^^^414^9999999^^
NK1|3|ZZZGIRL^MOTHER^^^^^^|32^MOTHER^HL70063^^^|800 LEFT ST^^MILWAUKEE^WI^53212^^^^^^|(414)999-9999^PRN^PH^^^414^9999999^^
RXA|0|999|20180711|20180711|08^HepB pediatric^CVX^90744^HepB pediatric^CPT|1.0|||00^^^^^~38133698^WIR immunization id^IMM_ID^^^|^Test  Doctor^^^^^^^^^^^^^|^^^WIR Physicians^^^^^^^^^^^||||GSKFlulaval||SKB^SKB^MVX^^^
RXR|IM^^^^^|LA^^^^^
RXA|0|999|20180710|20180711|20^DtaP^CVX^90700^DtaP^CPT|1.0|||01^^^^^~38150833^WIR immunization id^IMM_ID^^^||||||||

JSON representation:

{
  "VXU_V04": {
    "MSH": {
      "MSH.1": "|",
      "MSH.2": "^~\\&",
      "MSH.3": {
        "HD.1": "WIR11.3.2"
      },
      "MSH.4": {
        "HD.1": "WIR"
      },
      "MSH.6": {
        "HD.1": "WIRPH"
      },
      "MSH.7": {
        "TS.1": "20200514"
      },
      "MSH.9": {
        "MSG.1": "VXU",
        "MSG.2": "V04"
      },
      "MSH.10": "2020051409183900",
      "MSH.11": {
        "PT.1": "P"
      },
      "MSH.12": {
        "VID.1": "2.3.1"
      },
      "MSH.15": "ER"
    },
    "PID": {
      "PID.3": {
        "CX.1": "3019189"
      },
      "PID.5": {
        "XPN.1": {
          "FN.1": "NEW"
        },
        "XPN.2": "BORNGIRL"
      },
      "PID.7": {
        "TS.1": "20180711"
      },
      "PID.8": "F",
      "PID.10": {
        "CE.1": "W"
      },
      "PID.11": {
        "XAD.1": "800 ECLIPSE CENTER",
        "XAD.3": "BELOIT",
        "XAD.4": "WI",
        "XAD.5": "53511",
        "XAD.9": "WI105"
      },
      "PID.13": {
        "XTN.1": "(608)999-9999",
        "XTN.2": "PRN",
        "XTN.3": "PH",
        "XTN.6": "608",
        "XTN.7": "9999"
      },
      "PID.22": {
        "CE.1": "NH"
      }
    },
    "PD1": {
      "PD1.11": {
        "CE.1": "02"
      },
      "PD1.12": "Y",
      "PD1.14": "A"
    },
    "NK1": [
      {
        "NK1.1": "1",
        "NK1.2": {
          "XPN.1": {
            "FN.1": "NEW"
          },
          "XPN.2": "BORNGIRL"
        },
        "NK1.3": {
          "CE.1": "18",
          "CE.2": "SELF",
          "CE.3": "HL70063"
        },
        "NK1.4": {
          "XAD.1": "800 ECLIPSE CENTER",
          "XAD.3": "BELOIT",
          "XAD.4": "WI",
          "XAD.5": "53511"
        },
        "NK1.5": {
          "XTN.1": "(608)999-9999",
          "XTN.2": "PRN",
          "XTN.3": "PH",
          "XTN.6": "608",
          "XTN.7": "9999999"
        }
      },
      {
        "NK1.1": "2",
        "NK1.2": {
          "XPN.1": {
            "FN.1": "ZZZGIRL"
          },
          "XPN.2": "MOTHER"
        },
        "NK1.3": {
          "CE.1": "G8",
          "CE.2": "OTHER RELATIONSHIP",
          "CE.3": "HL70063"
        },
        "NK1.4": {
          "XAD.1": "800 LEFT ST",
          "XAD.3": "MILWAUKEE",
          "XAD.4": "WI",
          "XAD.5": "53212"
        },
        "NK1.5": {
          "XTN.1": "(414)999-9999",
          "XTN.2": "PRN",
          "XTN.3": "PH",
          "XTN.6": "414",
          "XTN.7": "9999999"
        }
      },
      {
        "NK1.1": "3",
        "NK1.2": {
          "XPN.1": {
            "FN.1": "ZZZGIRL"
          },
          "XPN.2": "MOTHER"
        },
        "NK1.3": {
          "CE.1": "32",
          "CE.2": "MOTHER",
          "CE.3": "HL70063"
        },
        "NK1.4": {
          "XAD.1": "800 LEFT ST",
          "XAD.3": "MILWAUKEE",
          "XAD.4": "WI",
          "XAD.5": "53212"
        },
        "NK1.5": {
          "XTN.1": "(414)999-9999",
          "XTN.2": "PRN",
          "XTN.3": "PH",
          "XTN.6": "414",
          "XTN.7": "9999999"
        }
      }
    ],
    "VXU_V04.ORCRXARXROBXNTE": [
      {
        "RXA": {
          "RXA.1": "0",
          "RXA.2": "999",
          "RXA.3": {
            "TS.1": "20180711"
          },
          "RXA.4": {
            "TS.1": "20180711"
          },
          "RXA.5": {
            "CE.1": "08",
            "CE.2": "HepB pediatric",
            "CE.3": "CVX",
            "CE.4": "90744",
            "CE.5": "HepB pediatric",
            "CE.6": "CPT"
          },
          "RXA.6": "1.0",
          "RXA.9": [
            {
              "CE.1": "00"
            },
            {
              "CE.1": "38133698",
              "CE.2": "WIR immunization id",
              "CE.3": "IMM_ID"
            }
          ],
          "RXA.10": {
            "XCN.2": {
              "FN.1": "Test  Doctor"
            }
          },
          "RXA.11": {
            "LA2.4": {
              "HD.1": "WIR Physicians"
            }
          },
          "RXA.15": "GSKFlulaval",
          "RXA.17": {
            "CE.1": "SKB",
            "CE.2": "SKB",
            "CE.3": "MVX"
          }
        },
        "RXR": {
          "RXR.1": {
            "CE.1": "IM"
          },
          "RXR.2": {
            "CE.1": "LA"
          }
        }
      },
      {
        "RXA": {
          "RXA.1": "0",
          "RXA.2": "999",
          "RXA.3": {
            "TS.1": "20180710"
          },
          "RXA.4": {
            "TS.1": "20180711"
          },
          "RXA.5": {
            "CE.1": "20",
            "CE.2": "DtaP",
            "CE.3": "CVX",
            "CE.4": "90700",
            "CE.5": "DtaP",
            "CE.6": "CPT"
          },
          "RXA.6": "1.0",
          "RXA.9": [
            {
              "CE.1": "01"
            },
            {
              "CE.1": "38150833",
              "CE.2": "WIR immunization id",
              "CE.3": "IMM_ID"
            }
          ]
        }
      }
    ]
  }
}
DFT_P03

HL7 message:

MSH|^~\&|Healthmatics|Healthmatics EHR|Ntierprise|Ntierprise Clinic|20190416084748||DFT^P03|1477-3|P|2.3|||NE|NE
EVN|P03|20190416084748||01
PID|1|A4EMR640|640|67359|Test^Patient1^D||19700101|F||3|1212 Dillard Drive^^Cary^NC^27511|||(222)222-2222^^^^^222^2222222||S
PV1|1|R|MainOffi||||Manning^Manning^Terry^^^^^^&7654321&UPIN|||||||||||||||||||||||||||||||||||||20190416110000||||||1203
FT1|1|E8866||20190416110000|20190416110000|CG||||1||||||^^^MainOffi|||J11.1^INFLUENZA WITH OTHER RESPIRATORY MANIFESTATIONS^I10~487.1^INFLUENZA WITH OTHER RESPIRATORY MANIFESTATIONS^I9~J03.90^INFLUENZA WITH OTHER RESPIRATORY MANIFESTATIONS^I10~J40^BRONCHITIS, NOT SPECIFIED AS ACUTE OR CHRONIC^I10~490^BRONCHITIS, NOT SPECIFIED AS ACUTE OR CHRONIC^I9|TM^Manning^Terry^^^^^^&7654321&UPIN|Manning^Manning^Terry^^^^^^&7654321&UPIN||||99214^OFFICE OUTPATIENT VISIT 25 MINUTES
PR1|1||99214^OFFICE OUTPATIENT VISIT 25 MINUTES||20190416110000|D|||||||||J11.1^^I10
DG1|1|I|J11.1^INFLUENZA WITH OTHER RESPIRATORY MANIFESTATIONS^I10|||F
DG1|2|I|487.1^INFLUENZA WITH OTHER RESPIRATORY MANIFESTATIONS^I9|||F
DG1|3|I|J03.90^INFLUENZA WITH OTHER RESPIRATORY MANIFESTATIONS^I10|||F
DG1|4|I|J40^BRONCHITIS, NOT SPECIFIED AS ACUTE OR CHRONIC^I10|||F
DG1|5|I|490^BRONCHITIS, NOT SPECIFIED AS ACUTE OR CHRONIC^I9|||F

JSON representation:

{
  "DFT_P03": {
    "MSH": {
      "MSH.1": "|",
      "MSH.2": "^~\\&",
      "MSH.3": {
        "HD.1": "Healthmatics"
      },
      "MSH.4": {
        "HD.1": "Healthmatics EHR"
      },
      "MSH.5": {
        "HD.1": "Ntierprise"
      },
      "MSH.6": {
        "HD.1": "Ntierprise Clinic"
      },
      "MSH.7": {
        "TS.1": "20190416084748"
      },
      "MSH.9": {
        "CM_MSG.1": "DFT",
        "CM_MSG.2": "P03"
      },
      "MSH.10": "1477-3",
      "MSH.11": {
        "PT.1": "P"
      },
      "MSH.12": "2.3",
      "MSH.15": "NE",
      "MSH.16": "NE"
    },
    "EVN": {
      "EVN.1": "P03",
      "EVN.2": {
        "TS.1": "20190416084748"
      },
      "EVN.4": "01"
    },
    "PID": {
      "PID.1": "1",
      "PID.2": {
        "CX.1": "A4EMR640"
      },
      "PID.3": {
        "CX.1": "640"
      },
      "PID.4": {
        "CX.1": "67359"
      },
      "PID.5": {
        "XPN.1": "Test",
        "XPN.2": "Patient1",
        "XPN.3": "D"
      },
      "PID.7": {
        "TS.1": "19700101"
      },
      "PID.8": "F",
      "PID.10": "3",
      "PID.11": {
        "XAD.1": "1212 Dillard Drive",
        "XAD.3": "Cary",
        "XAD.4": "NC",
        "XAD.5": "27511"
      },
      "PID.14": {
        "XTN.1": "(222)222-2222",
        "XTN.6": "222",
        "XTN.7": "2222222"
      },
      "PID.16": "S"
    },
    "PV1": {
      "PV1.1": "1",
      "PV1.2": "R",
      "PV1.3": {
        "PL.1": "MainOffi"
      },
      "PV1.7": {
        "XCN.1": "Manning",
        "XCN.2": "Manning",
        "XCN.3": "Terry",
        "XCN.9": {
          "HD.2": "7654321",
          "HD.3": "UPIN"
        }
      },
      "PV1.44": {
        "TS.1": "20190416110000"
      },
      "PV1.50": {
        "CX.1": "1203"
      }
    },
    "DFT_P03.FINANCIAL": {
      "FT1": {
        "FT1.1": "1",
        "FT1.2": "E8866",
        "FT1.4": {
          "TS.1": "20190416110000"
        },
        "FT1.5": {
          "TS.1": "20190416110000"
        },
        "FT1.6": "CG",
        "FT1.10": "1",
        "FT1.16": {
          "PL.4": {
            "HD.1": "MainOffi"
          }
        },
        "FT1.19": [
          {
            "CE.1": "J11.1",
            "CE.2": "INFLUENZA WITH OTHER RESPIRATORY MANIFESTATIONS",
            "CE.3": "I10"
          },
          {
            "CE.1": "487.1",
            "CE.2": "INFLUENZA WITH OTHER RESPIRATORY MANIFESTATIONS",
            "CE.3": "I9"
          },
          {
            "CE.1": "J03.90",
            "CE.2": "INFLUENZA WITH OTHER RESPIRATORY MANIFESTATIONS",
            "CE.3": "I10"
          },
          {
            "CE.1": "J40",
            "CE.2": "BRONCHITIS, NOT SPECIFIED AS ACUTE OR CHRONIC",
            "CE.3": "I10"
          },
          {
            "CE.1": "490",
            "CE.2": "BRONCHITIS, NOT SPECIFIED AS ACUTE OR CHRONIC",
            "CE.3": "I9"
          }
        ],
        "FT1.20": {
          "XCN.1": "TM",
          "XCN.2": "Manning",
          "XCN.3": "Terry",
          "XCN.9": {
            "HD.2": "7654321",
            "HD.3": "UPIN"
          }
        },
        "FT1.21": {
          "XCN.1": "Manning",
          "XCN.2": "Manning",
          "XCN.3": "Terry",
          "XCN.9": {
            "HD.2": "7654321",
            "HD.3": "UPIN"
          }
        },
        "FT1.25": {
          "CE.1": "99214",
          "CE.2": "OFFICE OUTPATIENT VISIT 25 MINUTES"
        }
      },
      "DFT_P03.FINANCIAL_PROCEDURE": {
        "PR1": {
          "PR1.1": "1",
          "PR1.3": {
            "CE.1": "99214",
            "CE.2": "OFFICE OUTPATIENT VISIT 25 MINUTES"
          },
          "PR1.5": {
            "TS.1": "20190416110000"
          },
          "PR1.6": "D",
          "PR1.15": {
            "CE.1": "J11.1",
            "CE.3": "I10"
          }
        }
      }
    },
    "DG1": [
      {
        "DG1.1": "1",
        "DG1.2": "I",
        "DG1.3": {
          "CE.1": "J11.1",
          "CE.2": "INFLUENZA WITH OTHER RESPIRATORY MANIFESTATIONS",
          "CE.3": "I10"
        },
        "DG1.6": "F"
      },
      {
        "DG1.1": "2",
        "DG1.2": "I",
        "DG1.3": {
          "CE.1": "487.1",
          "CE.2": "INFLUENZA WITH OTHER RESPIRATORY MANIFESTATIONS",
          "CE.3": "I9"
        },
        "DG1.6": "F"
      },
      {
        "DG1.1": "3",
        "DG1.2": "I",
        "DG1.3": {
          "CE.1": "J03.90",
          "CE.2": "INFLUENZA WITH OTHER RESPIRATORY MANIFESTATIONS",
          "CE.3": "I10"
        },
        "DG1.6": "F"
      },
      {
        "DG1.1": "4",
        "DG1.2": "I",
        "DG1.3": {
          "CE.1": "J40",
          "CE.2": "BRONCHITIS, NOT SPECIFIED AS ACUTE OR CHRONIC",
          "CE.3": "I10"
        },
        "DG1.6": "F"
      },
      {
        "DG1.1": "5",
        "DG1.2": "I",
        "DG1.3": {
          "CE.1": "490",
          "CE.2": "BRONCHITIS, NOT SPECIFIED AS ACUTE OR CHRONIC",
          "CE.3": "I9"
        },
        "DG1.6": "F"
      }
    ]
  }
}
Beta Program
Double Braces expressions