Commit Graph

570 Commits

Author SHA1 Message Date
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
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
Jens Kristian Villadsen
63256fe1d2 Add fallback for versioned base FHIR StructureDefinition lookups (#911)
* Add fallback for versioned base FHIR StructureDefinition lookups

Problem:
Implementation Guides (e.g., ch-core) may reference base FHIR resources
with explicit versions like "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1".
These lookups fail because base FHIR StructureDefinitions are intentionally
cached without version (see hapi-fhir PR #7236).

This causes validation errors like:
- "Unable to resolve the profile reference '...|4.0.1'"
- "Invalid Resource target type. Found Organization, but expected one of ([])"

Solution:
Add VersionedUrlFallbackValidationSupport that intercepts versioned lookups
for base FHIR StructureDefinitions (http://hl7.org/fhir/StructureDefinition/*)
and falls back to:
1. Major.minor version (e.g., 4.0.1 -> 4.0)
2. Non-versioned URL

The fallback logs a warning when triggered, allowing visibility into
which IGs reference versioned base resources.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Remove duplicates

* formatting

* removing unneeded thread local

* corrected according to review

* cleanup

* removed not needed const

* tests include some chain now

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

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

* updated doc

* adding tests

* Add TODO comment for core fix in validation support

Added a comment indicating a TODO for future improvement.

* Update TODO comment for core fix in validation support

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-05 15:28:02 +01:00
darth.cav
58c9656242 Add TestContainerHelper for simplified integration testing (#910)
* Add TestContainerHelper for PostgreSQL and Elasticsearch integration testing

* Add configuration files for Elasticsearch and PostgreSQL integration testing

* Refactor integration tests to utilize TestContainerHelper for PostgreSQL and Elasticsearch
2026-01-29 11:52:38 +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
dotasek
547d6181ae Merge pull request #880 from jkiddo/fix/remove-duplicate-invocations
Removed duplicate code lines
2025-11-24 10:18:48 -05:00
dotasek
25b4430437 Merge remote-tracking branch 'origin/master' into rel_8_5-tracking 2025-11-17 10:28:49 -05:00
craig mcclendon
9512ce1ddf enable the test profile in unit tests (#882) 2025-11-16 14:02:02 +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
dotasek
8ffd3ea843 Merge remote-tracking branch 'origin/master' into rel_8_5-tracking
+ update HAPI to 8.5.9-SNAPSHOT
2025-11-04 09:27:27 -05:00
Jens Kristian Villadsen
cef9f7ce94 Removed duplicate code lines 2025-11-01 16:49:30 +01:00
dotasek
ac494a9b26 Apply spotless 2025-10-31 09:34:49 -04:00
Patrick Werner
17880c27c5 Merge remote-tracking branch 'origin/pw/searchparam-reindex-configuration' into pw/searchparam-reindex-configuration 2025-10-31 09:44:12 +01:00
Patrick Werner
cc42e0afe7 Update src/main/java/ca/uhn/fhir/jpa/starter/AppProperties.java
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-31 09:43:54 +01:00
Patrick Werner
e512a832e3 Merge remote-tracking branch 'origin/master' into pw/searchparam-reindex-configuration 2025-10-31 09:42:39 +01:00
Brenin Rhodes
d50e47a1b9 Merge pull request #875 from hapifhir/cr-3-28-0
Update CR to 3.28.0
2025-10-30 14:14:34 -06:00
dotasek
5df170400a Bump HAPI version to 8.5.8-SNAPSHOT
+ Fix for failing MultitenantServerR4IT
2025-10-30 15:21:43 -04:00
Patrick Werner
159f1eb3e1 add missing property in application.yaml 2025-10-30 16:56:09 +01:00
Patrick Werner
98b1cd9373 feat: add configuration for marking resources for reindexing upon search parameter change (#867)
* feat: add configuration for marking resources for reindexing upon search parameter change

* fix formatting
2025-10-30 10:43:06 +01:00
Patrick Werner
1f18457977 Merge remote-tracking branch 'origin/master' into pw/searchparam-reindex-configuration
# Conflicts:
#	src/main/java/ca/uhn/fhir/jpa/starter/AppProperties.java
2025-10-30 10:18:58 +01:00
Brenin Rhodes
6208595063 include us cql common ig 2025-10-27 08:16:46 -06: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
Patrick Werner
41402d2328 fix formatting 2025-10-09 13:53:52 +02:00
Patrick Werner
401d4f71ef feat: add configuration for marking resources for reindexing upon search parameter change 2025-10-09 13:39:43 +02:00
Brenin Rhodes
8bd5a91454 rename cds application yaml 2025-10-02 13:07:28 -06:00
Brenin Rhodes
3c7cddcb35 Add all expected resource types to be installed from an IG 2025-10-02 10:26:54 -06:00
Brenin Rhodes
9e8ba349a7 allow external references 2025-10-02 10:21:51 -06:00
Brenin Rhodes
a5a011f4cf Add Using CQL IG 2025-10-02 10:17:58 -06:00
Brenin Rhodes
c9b576d979 fix config 2025-10-02 09:34:32 -06:00
Brenin Rhodes
4a1e76cd71 spotless 2025-10-02 08:57:46 -06:00
Brenin Rhodes
3673c135b1 Update to 3.27.0 release 2025-10-02 08:57:30 -06: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
0e17b198d0 Apply spotless 2025-08-01 07:38:53 -07:00
Chris O Riordan
36babba90c Add TerminologySeverClientSettings to CR Properties & Config 2025-07-18 11:53:43 -07:00
Patrick Werner
0d8f2aac14 fix: correct formatting and spacing in AppProperties.java 2025-07-08 17:50:56 +02:00
James Agnew
92485be847 Merge branch 'master' into ja_20250502_improve_dialect_handling 2025-06-25 17:05:08 -04:00
Brenin Rhodes
4f9a84db97 spotless 2025-06-18 18:25:36 -06:00
Brenin Rhodes
0690d803c6 bump cr to 3-22-0 2025-06-18 18:22:19 -06: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
f31a7743c3 Spotless 2025-06-06 08:50:50 +02:00