* 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>
* 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>
* 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
* 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>
* 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
* 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>
* 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>
* 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