This application exposes a REST API around the laboResultVisualization toolset, enabling users to submit FHIR resources and receive HTML visualizations and validation feedback.
If you wish to view the API documentation without running the app, you can access the latest published documentation at resources/static/api/api-docs.yaml.
A prebuilt Docker image is publicly available for quick testing.
To pull and run the latest image:
docker run -p 8912:8912 ehealthplatformstandards/fhir-vizualization-api:latestOnce running, open your browser at http://localhost:8912/api/index.html to explore the API via Swagger UI.
This approach is ideal if you want to modify the source code or work with the latest unreleased changes.
Clone and build the laboResultVisualization project.
git clone https://github.com/ehealthplatformstandards/laboResultVisualization.git
cd laboResultVisualization
mvn clean deploy -DskipTestsThis will:
- Generate the JAR artifact
- Publish it to a local Maven repository under
target/mvn-repo/
In your fhir-vizualization-api project’s build.gradle.kts, update the repositories block to include the local repo path:
repositories {
mavenCentral()
maven { url = uri("/home/<your-username>/IdeaProjects/laboResultVisualization/target/mvn-repo") }
}Replace
<your-username>with your actual username or path as appropriate.
This ensures Gradle finds the fhir-visualization-tool dependency locally.
Open EhealthFhirVisualization.kt and run the main() method directly.
Build the project:
./gradlew buildThen run the JAR:
java -jar build/libs/ehealth-fhirviz-<version>.jarExample:
java -jar build/libs/ehealth-fhirviz-0.1-51-g96a7cbc.dirty.jar
Once running, access the Swagger UI:
📍 http://localhost:8912/api/index.html
You can use this interface to:
- Explore available endpoints
- Submit test FHIR resources (in JSON or XML)
- View validation results and HTML rendering
- Converts FHIR resources to human-readable HTML
- Validates resources against the Belgian eHealth vaccination profile
- Supports both
application/jsonandapplication/xml - Includes OpenAPI documentation (Swagger)