gtuk / diga-api-service

This project is a basic api around the excellent diga-api-client It supports validation and billing.
Apache License 2.0
7 stars 4 forks source link
diga-api dvg healthcare-application kotlin xrechnung

Diga Api Service

This project is a basic api around the excellent diga-api-client It supports validation and billing.

Prerequisites

You need to download the following things before running the api:

java -jar secon-keystore-generator.jar -k annahme-rsa4096.key -p my.prv.key.pem -c my.chain.p7c # This creates one keystore that contains the your private key and all the public insurance keys

Usage

You can run the diga api service as a jar or inside a docker container.

Jar

Download the latest the release from github and make sure the required env variables are set.

# Run
java -jar diga-api-service-<version>.jar

Docker

Please make sure you set the proper values in the .env file and mount the mapping file and keystores under the expected path.

# Build
git clone git@github.com:gtuk/diga-api-service.git
cd diga-api-service
docker build -t diga_api_service .

# Configuration
cp .env.local .env

# Run
docker run --env-file .env -p 5000:5000 -v /tmp/Krankenkassenverzeichnis_DiGA.xml:/tmp/Krankenkassenverzeichnis_DiGA.xml -v /tmp/keystore.p12:/tmp/keystore.p12 --name digaApiService diga_api_service

Endpoints

TODOS