Getting Started

Import the SDK into IntelliJ IDEA or Eclipse and run a local workflow.

Requirements

ComponentRequirement
JavaJDK 25
BuildMaven
IDEIntelliJ IDEA or Eclipse
ProjectFireSonic SDK distribution

Project structure

firesonic-sdk/
├── pom.xml
├── src/
│   └── main/
│       └── java/
│           └── io/firesonic/runner/
│               └── RunSdk.java
├── config/
│   ├── sdk.properties
│   ├── firesonic-sdk.lic
│   └── certs/
├── scripts/
│   ├── Main.groovy
│   ├── script.properties
│   └── core/
├── rules/
│   └── semantic/
├── input/
└── output/
PathPurpose
pom.xmlMaven project definition and SDK dependencies.
src/main/java/io/firesonic/runner/RunSdk.javaLocal SDK launcher used to run or debug workflows from the IDE.
config/sdk.propertiesLocal SDK runtime settings such as input, output mode, FHIR endpoint and SDK directories.
config/firesonic-sdk.licFireSonic Developer SDK license file.
config/certs/Additional trusted TLS certificates used by local SDK integrations when required.
scripts/script.propertiesCustomer workflow configuration injected into scripts.
scripts/Main.groovyMain integration script implementing IntegrationScript.
scripts/core/Reusable helper classes and customer-specific workflow components.
rules/semantic/Semantic validation rules executed before FHIR delivery.
input/Representative HL7 messages used for local testing.
output/Generated FHIR Bundles and local execution results.
Two configuration files, two responsibilities

sdk.properties controls local SDK execution. script.properties contains customer and workflow settings injected into Groovy scripts.

IDE setup

IDE

IntelliJ IDEA

  1. Extract the SDK distribution to a local working folder.
  2. Open the SDK directory or its pom.xml as a Maven project.
  3. Set the Project SDK to Java 25.
  4. Allow IntelliJ IDEA to import and resolve Maven dependencies.
  5. Mark scripts/ and rules/ as source roots when required.
  6. Create or select the SDK launcher configuration and choose Run or Debug.
IntelliJ IDEA setup walkthrough

First local run

Start with local Bundle output. This keeps the first execution independent of a FHIR server and makes it easy to inspect the generated resources.

sdk.input.dir=./input
sdk.output.mode=folder
sdk.output.dir=./output
sdk.scripts.dir=./scripts
IDE

IntelliJ IDEA

  1. Place a representative HL7 message under input/.
  2. Configure config/sdk.properties.
  3. Open src/main/java/io/firesonic/runner/RunSdk.java in IntelliJ IDEA.
  4. Run or debug RunSdk.java using the SDK launcher configuration.
  5. Inspect the generated FHIR Bundle under output/.
  6. When needed, switch the SDK output mode to a development FHIR server and run the same workflow again.
IntelliJ IDEA first local run walkthrough
Continue with Testing & Debugging

Set breakpoints, inspect MessageEnvelope and generated FHIR resources, and turn important scenarios into repeatable tests.

Testing & Debugging →