Skip to content

Configuration Guide

Configure FHIR Electronic Medical Records for your environment.

Application Properties

Edit src/main/resources/application.properties:

Server Configuration

server.port=8080
server.servlet.context-path=/
server.compression.enabled=true

FHIR Configuration

hapi.fhir.server_address=http://localhost:8080/api/fhir
hapi.fhir.default_page_size=20
hapi.fhir.max_page_size=100

Logging

logging.level.root=INFO
logging.level.com.emr.fhir=DEBUG
logging.level.ca.uhn.fhir=INFO

Environment Variables

Override properties with environment variables:

export SPRING_DATASOURCE_URL=jdbc:postgresql://db-server:5432/medicare_erp
export SPRING_DATASOURCE_USERNAME=medicare_user
export SPRING_DATASOURCE_PASSWORD=secure_password
export SERVER_PORT=8080

Production Configuration

See deployment documentation for production setup including: - HTTPS configuration - Database tuning - Connection pooling - Security hardening - Monitoring setup