Adding the Configuration Map Properties
The example channel also relies on some configuration map properties to store database connection information. If you don't already have configuration map properties set, you can import this file:
PostgreSQL:
# The type of database server (postgres, sqlserver).
fhirDBDatabaseType = postgres
# The JDBC Driver class to use when connecting to the FHIR database.
fhirDBDriver = org.postgresql.Driver
# The JDBC connection URL to use when connecting to the FHIR database.
fhirDBUrl = jdbc:postgresql://localhost:5432/fhirdb
# The username to use when connecting to the FHIR database.
fhirDBUsername = postgres
# The password to use when connecting to the FHIR database.
fhirDBPassword = postgres
# The maximum amount of retry attempts when a database connection fails.
fhirDBMaxRetries = 3
SQL Server:
# The type of database server (postgres, sqlserver).
fhirDBDatabaseType = sqlserver
# The JDBC Driver class to use when connecting to the FHIR database.
fhirDBDriver = net.sourceforge.jtds.jdbc.Driver
# The JDBC connection URL to use when connecting to the FHIR database.
fhirDBUrl = jdbc:jtds:sqlserver://localhost:1433/fhirdb
# The username to use when connecting to the FHIR database.
fhirDBUsername = sa
# The password to use when connecting to the FHIR database.
fhirDBPassword = admin
# The maximum amount of retry attempts when a database connection fails.
fhirDBMaxRetries = 3
Otherwise, you can add them to the configuration map table:
Make sure to change the connection information (URL, username, and password) as needed.