EDI Parser for Java Installation

The parser runs as part of your Java application, so all you need to do is it to add it as a dependency and set your license key.

Adding Parser as a Dependency

Add our maven repository to your gradle.build file:

repositories {
    mavenCentral()
    maven {
        url = 'https://repo.datainsight.health/repository/maven-releases/'
    }
}

Add the following dependencies:

dependencies {
    implementation "hdi:edi:2.12.2"
    implementation "com.fasterxml.jackson.core:jackson-databind:2.18.+"

You can find a complete build.gradle in our GitHub repo.

License Key

You need a license key to run the parser. Request your trial license key here.

Save your license key in the “etc” folder of your Java project. I.e., the default path to the license file is “./etc/edi-license.txt”.

Alternatively, you can define the following environment variables or Java system properties.

  • EDI_LICENSE_FILE environment variable or edi-license-file Java system property. The value is the absolute path to your license file.
  • EDI_LICENSE_KEY environment variable or edi-license-key Java system property. The value is the license key. Copy the content of the edi-license.txt file and paste it as a value of this variable/property.

Logging

The parser uses logback for logging, so you need to a “logback.xml” file with the logback configuration. You can use our sample logback.xml as a starting point.