A small project demonstrating the use of the eHealth Infrastructure for retrieving and displaying Questionnaries and sending QuestionnarieResponses. This is the backend for the FUT Patient Demo - web project.
- OpenJDK 17 or Docker
Options:
- Run main in
dk.kvalitetsit.fut.Application
. - Run the documentation Dockerfile (see below).
Documentation of the API is build as a separate Docker image. Documentation is build using Swagger. The documentation image is post-fixed with -documentation
. The file documentation/docker/compose/docker-compose.yml
contains a setup that starts both the service and documentation image. The documentation can be accessed at http://localhost/test
and the service can be called through the Swagger UI.
The service is listening for connections on port 8080. Spring boot actuator is listening for connections on port 8081. This is used as prometheus scrape endpoint and health monitoring.
Prometheus scrape endpoint: http://localhost:8081/actuator/prometheus
Health URL that can be used for readiness probe: http://localhost:8081/actuator/health
Login and security is currently not implemented in this demo application. All authentication is handled automatically from mock credentials supplied as environment variables.
Environment variable | Description | Required |
---|---|---|
FUT_AUTH_USERNAME | The mock patient username for the eHealth Infrastructure Platform | Yes |
FUT_AUTH_PASSWORD | The mock patient password for the eHealth Infrastructure Platform | Yes |
FUT_PATIENT_CPR | The CPR number for the mock patient in the platform | Yes |
E_HEALTH_ENV | The name of the test environment | Yes |