Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hapi 7.0.3 #2

Merged
merged 8 commits into from
Sep 17, 2024
Merged

Hapi 7.0.3 #2

merged 8 commits into from
Sep 17, 2024

Conversation

daniellrgn
Copy link
Collaborator

Upgrade to HAPI version 7.0.3 with improvements to $summary support

@daniellrgn daniellrgn self-assigned this Jun 3, 2024
@daniellrgn daniellrgn requested a review from ivan-c June 3, 2024 20:41
@daniellrgn daniellrgn mentioned this pull request Jun 3, 2024
Copy link
Member

@ivan-c ivan-c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Had some suggestions for making the IPS-specific configs easier to maintain across new Hapi releases

dev/config/hapi/application.yaml Show resolved Hide resolved
environment:
SPRING_CONFIG_LOCATION: file:///opt/application.yaml
spring.datasource.url: jdbc:postgresql://db:5432/hapifhir
spring.datasource.username: postgres
spring.datasource.password: postgres
spring.datasource.driverClassName: org.postgresql.Driver
spring.jpa.hibernate.dialect: org.hibernate.dialect.PostgreSQL94Dialect
spring.jpa.properties.hibernate.dialect: ca.uhn.fhir.jpa.model.dialect.HapiFhirPostgres94Dialect

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest configuring any overrides to the default application.yaml as environment variables (and use the vanilla application.yaml from Hapi)

Since env vars take precedence over values in application.yaml, it may not be obvious later which config is actually being used. It'll also be fewer changes to maintain when Hapi is upgraded in the future.

In the past, Hapi has required a application.yaml, but ideally we'd remove that in the future (since it's all defaults anyway)

Suggested change
# enable IPS; use latest version
hapi.fhir.ips_enabled: "true"
hapi.fhir.implementationguides.ips_1_1_0.packageUrl: https://build.fhir.org/ig/HL7/fhir-ips/package.tgz
hapi.fhir.implementationguides.ips_1_1_0.name: hl7.fhir.uv.ips
hapi.fhir.implementationguides.ips_1_1_0.version: 1.1.0
# IPS needs this for $REASON
hapi.fhir.allow_external_references: "true"
hapi.fhir.enforce_referential_integrity_on_write: "false"
hapi.fhir.auto_create_placeholder_reference_targets: "true"
hapi.fhir.cr_enabled: "true"

(I tested the above values via /actuator/configprops to confirm they work)

@daniellrgn daniellrgn merged commit 3bd7f1d into main Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants