Commit Graph

186 Commits

Author SHA1 Message Date
Patrick Werner
2ce85f064f feat: update CORS configuration to set allow_Credentials default to false 2026-03-12 20:03:50 +01:00
Patrick Werner
8069b7019a feat: enhance CORS configuration with customizable headers and methods 2026-03-12 19:44:31 +01:00
c-schuler
8f3335e8bb Standalone Java health check
- Updated Dockerfile to compile HealthCheck.java into the distroless image at /app
- Updated README with a "Docker Health Check" section documenting how to run the health check on-demand and how to enable periodic checks
- Also fixed Hibernate dialect override (SPRING_JPA_PROPERTIES_HIBERNATE_DIALECT → HIBERNATE_DIALECT) to resolve DDL failures when starting with a fresh PostgreSQL database.
2026-02-19 12:23:18 -07:00
Patrick Werner
636e445e1f Merge pull request #919 from hapifhir/fix-FilesystemBinaryStorage-interceptor
Fix filesystem binary storage interceptor
2026-02-16 12:48:30 +01:00
Steve Swinsburg
fbb67dd978 make the bulk export retention time configurable (#917)
* #710 make the bulk export retention time configurable

* #710 spotless fix

---------

Co-authored-by: Steve Swinsburg <steve.swinsburg@digitalhealth.gov.au>
2026-02-16 12:33:00 +01:00
Patrick Werner
d45bf8027e removed testing config 2026-02-16 12:17:14 +01:00
Patrick Werner
7d482e30c9 refactor: rename inline_resource_storage_below_size to binary_storage_minimum_binary_size in AppProperties and application.yaml 2026-02-16 11:59:08 +01:00
Jens Kristian Villadsen
78a068ab45 Feature/elastic back in green (#893)
* Getting automated tests back into green

* using native API's

* formatting

* refactoring

* getting 8.X ES working

* Removed sleep

* Update src/test/java/ca/uhn/fhir/jpa/starter/ElasticsearchLastNR4IT.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Reintroduced sleep as indicies are a bit slow ?

* Using the production bean instead of a test one

* updating default parameters for es

* Making separate profile for ES

* works from here

* remove all not needed code anymore

* removing parent defined version

* fixed tests

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-08 17:18:28 +01:00
darth.cav
b81e2abe81 Add Elasticsearch index prefix configuration (#891)
* Add Elasticsearch configuration section to application.yaml

* Add configuration for reindexing resources upon search parameter change

* Add Elasticsearch client configuration for testing

* Update logback dependencies because of a security issue and enable resource filtering in pom.xml

* Add application name and tester configuration to application.yaml. Refactor hibernate properties

* Add custom Elasticsearch configuration to create ElasticsearchClient bean

* Add index prefix configuration for Elasticsearch indices

* Fix Elasticsearch URI format in test initialization

* Refactor ElasticsearchConfig for improved readability and code style consistency (spotless:apply)

* Refactor ElasticsearchConfig for improved readability and code style consistency (spotless:apply)

* Update index prefix in application.yaml for Elasticsearch configuration

* Enhance index prefix validation and add sanitization method for Elasticsearch index names

* Merged with master in upstream

* Refactor ElasticsearchBootSvcImpl and ElasticsearchConfig for improved readability (mvn spotless)

* Comment out custom_content_path in application.yaml for clarity

* - Refactor application.yaml for improved structure and readability;
- Add PostgresLucenePatientIT integration test; and
- Update testcontainers dependencies to avoid compatibility issues with newer Docker APIs.

* Refactor PostgresLucenePatientIT to use external configuration file for test properties

* Add integration tests for PostgreSQL and Elasticsearch with dynamic configuration

* Increase socket timeout in CdsHooksServletIT for improved stability during tests

* Remove deprecated tester configuration from application.yaml
2026-01-20 15:32:24 +01:00
Simon Ringuette
bf7f6a3b6a Restore the testers in the default configuration (fixes #896) (#907) 2026-01-20 08:12:19 +01:00
gbks121
eb04bbcaa4 Adding custom-bean-packages property in application.yaml
Adding the missing custom-bean-packages property in application.yaml and removing the duplicate custom-provider-classes property
2025-11-11 15:46:59 +01:00
Patrick Werner
159f1eb3e1 add missing property in application.yaml 2025-10-30 16:56:09 +01:00
Shamus Husheer
cf003331e4 Add configurable filesystem binary storage (fix #860) (#864)
* Add configurable filesystem binary storage (fix #860)

* Refine binary storage configuration handling

* Refine binary storage bean wiring

* Refine binary storage conditional beans

* Add integration coverage for binary storage configs

* Exercise binary storage via REST integration tests

* Update src/main/resources/application.yaml

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Ubuntu <ubuntu@ip-172-31-35-43.eu-west-2.compute.internal>
Co-authored-by: Ubuntu <ubuntu@ip-172-31-10-131.eu-west-2.compute.internal>
Co-authored-by: Jens Kristian Villadsen <jenskristianvilladsen@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-09 14:39:01 +02:00
Patrick Werner
a55c8f20a9 make thread count configurable (#868)
* feat: add configuration for reindex and expunge thread counts

* fix formatting
2025-10-09 14:15:17 +02:00
Jens Kristian Villadsen
d76662c9e9 Feature/cds config (#857)
* Added MCP support using SSE on http://localhost:8080/sse

* Reverted change that IntelliJ complains about

* Pre-rework

* Cleaned up the code a fair bit

* Renamed

* Renamed

* Running spotless

* Reuse FhirContext in result serialization to make MCP server work with R5

* Added support for transactions

* PoC tool for CDS Hooks

* some cleanup

* Upgrade of model protocol

* Added comments

* Removed field injection ... CDS to be changed to AutoConfig eventually

* Adjusted to new builder pattern

* Update src/main/java/ca/uhn/fhir/rest/server/MCPBridge.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* A bit of restructuring

* More rework

* Removing (suspected unnecessary) formatting

* Add more example doc

* Added a smoke- / passthrough-test

* Applied spotless

* Update src/main/java/ca/uhn/fhir/jpa/starter/mcp/RequestBuilder.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/main/java/ca/uhn/fhir/jpa/starter/mcp/RequestBuilder.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/main/java/ca/uhn/fhir/jpa/starter/mcp/ToolFactory.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/main/java/ca/uhn/fhir/rest/server/McpCdsBridge.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/main/java/ca/uhn/fhir/rest/server/McpCdsBridge.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Formatting

* Added some documentation

* spotless cares about MD?

* Reverting back to default values

* minor refinements

* Fixed CDS hooks configuration

* Fixed some wirings

* Readded missing elements

* getting closer to get test running again ...

* applying review

* Readded exclude

* Bumped spring-ai deps

* added agents file

* Updated according to review

---------

Co-authored-by: Ádám Z. Kövér <adamzkover@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-01 22:17:07 +02:00
Jens Kristian Villadsen
9576cfa9b5 Feature/elastic on boot (#856)
* Fixing up elastic for Spring Boot

* Adding class shadowing for issue reported on https://github.com/hapifhir/hapi-fhir/pull/7242

* Formatting

* corrected condition

* fix import

* fix2

* crappy fix3

* fix actuator endpoint

* Simplified expression

* Ironed out a few legacy issues

* more rework

* major overhaul

* Disabling invalid test

* Reverting back to defaults for text searches

* Added default hibernate settings from the EnvironmentHelper

* Formatting

* Added comment on class shadow

* Added missing default
2025-09-22 23:41:43 +02:00
Jens Kristian Villadsen
680255ff62 Feature/mcp (#846)
* Added MCP support using SSE on http://localhost:8080/sse

* Reverted change that IntelliJ complains about

* Pre-rework

* Cleaned up the code a fair bit

* Renamed

* Renamed

* Running spotless

* Reuse FhirContext in result serialization to make MCP server work with R5

* Added support for transactions

* PoC tool for CDS Hooks

* some cleanup

* Upgrade of model protocol

* Added comments

* Removed field injection ... CDS to be changed to AutoConfig eventually

* Adjusted to new builder pattern

* Update src/main/java/ca/uhn/fhir/rest/server/MCPBridge.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* A bit of restructuring

* More rework

* Removing (suspected unnecessary) formatting

* Add more example doc

* Added a smoke- / passthrough-test

* Applied spotless

* Update src/main/java/ca/uhn/fhir/jpa/starter/mcp/RequestBuilder.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/main/java/ca/uhn/fhir/jpa/starter/mcp/RequestBuilder.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/main/java/ca/uhn/fhir/jpa/starter/mcp/ToolFactory.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/main/java/ca/uhn/fhir/rest/server/McpCdsBridge.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/main/java/ca/uhn/fhir/rest/server/McpCdsBridge.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Formatting

* Added some documentation

* spotless cares about MD?

* Reverting back to default values

* minor refinements

* Fixed CDS hooks configuration

* Fixed some wirings

* Revert "Fixed some wirings"

This reverts commit c9d3bc0b3b6756d7b15f5d2cf6100c99784fb868.

* Revert "Fixed CDS hooks configuration"

This reverts commit 67c4279100bf14432c164906235ea6348ee8af22.

---------

Co-authored-by: Ádám Z. Kövér <adamzkover@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-17 06:51:19 +02:00
Jens Kristian Villadsen
8621c0d89c Feat/extra resource loading from npm (#784)
* Logic to do the basics

* Added configurable folders

* Scoped additional resources to - pr. IG

* Updated telemetry version

* Changed to set

* Changed PostConstruct to Component and introduced use of PartitionCondition
Added try-load of HAPI optimized dialect

* Satisfying spotless

* Reverted to default config

* Apply spotless

* Use core-provided feature
Addling the binary content as its needed for example resource inspection

* Update src/main/java/ca/uhn/fhir/jpa/starter/util/JpaHibernatePropertiesProvider.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Reverting dialect change - fit for a potential other PR

* no message

* Formatting

* Update src/main/java/ca/uhn/fhir/jpa/starter/ig/ExtendedPackageInstallationSpec.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Bad AI ... bad bad AI ...

* Formatting

* bump of feature revision flag

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-27 08:52:59 +02:00
winfriedgerlach
8224cae131 some cleanup (#840)
* some cleanup

* results from mvn spotless:apply

* fix contructor --> constructor

* revert change to fix CdsHooksServletIT

* revert change to charts README.md

* bump chart version, required due to changes in README.md
2025-08-19 20:00:34 +02:00
Brenin Rhodes
d4739911e2 Merge branch 'cr-3-23-0' into cr-3-24-0 2025-08-13 07:37:40 -06:00
Jens Kristian Villadsen
0a46d01fdc Default back to not running with partitions 2025-08-05 10:23:07 +02:00
Chris O Riordan
36babba90c Add TerminologySeverClientSettings to CR Properties & Config 2025-07-18 11:53:43 -07:00
James Agnew
92485be847 Merge branch 'master' into ja_20250502_improve_dialect_handling 2025-06-25 17:05:08 -04:00
Michal Sevcik
7cd0637c88 Enable configuration of store_meta_source_information (#825)
* Enable configuration of store_meta_source_information

* Update src/main/java/ca/uhn/fhir/jpa/starter/common/FhirServerConfigCommon.java

Co-authored-by: James Agnew <jamesagnew@gmail.com>

* Apply spotless style checks

---------

Co-authored-by: James Agnew <jamesagnew@gmail.com>
2025-06-08 11:40:26 +02:00
Saurav Sharma
e29dc540e3 feat: add support to enable search index full text (#828)
Signed-off-by: Saurav Sharma <appdroiddeveloper@gmail.com>
2025-06-08 11:38:52 +02:00
James Agnew
d972a2a2f3 Add index storage optimized 2025-06-06 09:23:02 +02:00
James Agnew
d0aa399c75 Add additional options 2025-06-06 08:49:47 +02:00
James Agnew
299ab28599 Add partition settings 2025-06-02 18:05:15 +02:00
Jens Kristian Villadsen
f2c0d77093 Removing accidently enabled remote terminology by default (#819)
* Removing accidently enabled remote terminology by default

* Update src/main/resources/application.yaml

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-05-14 11:08:27 +02:00
Jens Kristian Villadsen
0846e9dd9e Merge branch 'hapi-master' into feat/remote-terminology-support 2025-05-01 13:12:20 +02:00
Patrick Werner
7e7fa447ba Merge pull request #801 from hapifhir/improve-default-partitioning
fix: set default value for request_tenant_partitioning_mode to true to support easy default partitioning
2025-04-30 10:46:40 +02:00
Patrick Werner
10b75b3d83 feat: add support for relaxed query characters in Tomcat configuration (#802) 2025-04-29 20:34:34 +02:00
Patrick Werner
e9a1ddfeac fix: set default value for request_tenant_partitioning_mode to true to support easy default partitioning 2025-04-16 14:54:43 +02:00
Jens Kristian Villadsen
5c9f88e1cf Adding support for '*' cornercase 2025-03-19 23:51:21 +01:00
Jens Kristian Villadsen
9cf166e765 Added support for hybrid remote terminology 2025-03-19 13:46:51 +01:00
Yoann Isaac
ec6b12e864 Externalizes more subscription parameters (#783)
* Externalizes more subscription parameters

Allows :
- to parametrize the polling interval of subscription
- to enable the setting to queue the subscription jobs immediately.

Following the change in hapifhir/hapi-fhir/pull/6395

* Fix formatting
2025-03-02 23:13:31 +01:00
Adam Stevenson
710d9fc998 Expose expansion properties as configuration 2025-02-27 09:57:59 -07:00
dotasek
103fd012c0 Update to HAPI 7.6.0 (#731)
* Bump to HAPI 7.5.0-SNAPSHOT

* Bump to latest HAPI version + fix config

* Bump to latest HAPI version + fix CR config + spotless

* Bump parent version to 7.5.4-SNAPSHOT

* Update to HAPI Release 7.6.0

---------

Co-authored-by: Brenin Rhodes <brenin@alphora.com>
2024-11-22 18:58:31 +01:00
craig mcclendon
69fede99a4 add property to turn on userRequestRetryVersionConflictsInterceptor (#752) 2024-11-11 20:29:54 +01:00
Michael Wilson
5d84d9fc59 Config property for validate resource status (#746)
* Added configuration property for validate_resource_status_for_package_upload

* Added new parameter to test config file

* Fixed merge issue
2024-11-09 09:45:46 +01:00
Eric Secules
5df8e034cb #754 add application.yaml setting for conditional_create_duplicate_identifiers_enabled (#755)
Co-authored-by: Eric Secules <eric.secules@macrohealth.com>
2024-11-09 09:30:05 +01:00
dotasek
96f908965c Merge branch 'master' into expose-search-prefetch-thresholds 2024-10-28 13:50:47 -04:00
Patrick Werner
7e15f133b5 feat: added config option for upliftedRefchains support 2024-10-18 10:22:08 +02:00
Jens Kristian Villadsen
40e5b4c10d Feature/fixing prometheus (#745)
* Fixing prometheus so that it actually works. Also seems related to https://github.com/micrometer-metrics/micrometer/issues/5093

* cleaning up override

* Limiting exposure

* Added docs

* Added smoketest for prometheus endpoint

* Removing metrics and prometheus exposure by default

* Removing 'info'
Adding parameterized tests for endpoints

* Reintroduced 'info'

* Remove info

* Adjusted comment
2024-10-04 17:25:33 +02:00
Tadgh
bfac1d0063 Add missed integer to prefetch defaults 2024-09-27 09:21:01 -04:00
Tadgh
62fafdc4dc revert test change 2024-09-25 21:18:38 -04:00
Tadgh
a12e30c7d2 Expose setting, add docs 2024-09-25 15:34:56 -04:00
Brenin Rhodes
6b98988c6f Update Clinical Reasoning plugin (#692)
* Reproducing issues with CR/HAPI cds-hooks processing

* Add new $questionnaire operation

* Update StarterIpsConfig.java

* Update pom.xml

* Fixes for configuration properties

* Update VS Code launch properties

* Fixes for CQL logging

* Update pom.xml

* Remove unused threaded option

* Update to 7.1.7

* Fix some CR defaults

* Update to new snapshot

* Update pom.xml

* Fix test settings

* Do not make prefetch calls if all items are present

* Add alternative application.yaml for CDS settings.

* Add CdsHook tests and documentation

* Comment out custom prefetch until it is more mature

* Removal of DataEndpoint parameter is not longer needed

* Fix debug logging setting being overwritten

* Revert change

* Remove unused class

* Adding Rec10 Test

* Disable test until fixed

* fix tests

---------

Co-authored-by: c-schuler <hoofschu@gmail.com>
Co-authored-by: Jonathan Percival <jonathan.i.percival@gmail.com>
2024-06-30 12:14:35 +02:00
Michele Adduci
6cf5ffb559 Updated parent to FHIR 7.2.1 (#695)
* Updated parent to FHIR 7.2.1

* Updated chart

* Updated chart

* Fixing linter issues in Helm

* Fixing linter issues for Helm, updated REAMDE
2024-06-14 21:32:55 +02:00
Carl Anderson
0d8642ddfa fix: use the existing naming convention
Co-authored-by: Kevin Dougan SmileCDR <72025369+KevinDougan-SmileCDR@users.noreply.github.com>
2024-06-14 11:18:52 -05:00