Commit Graph

127 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
Jens Kristian Villadsen
0846e9dd9e Merge branch 'hapi-master' into feat/remote-terminology-support 2025-05-01 13:12:20 +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
Adam Stevenson
5dacdd1795 Fixed expansion configuration options bugs (#793)
* Fix for logging of pre-expansion and expansion configuration reporting the wrong value

* Fixed a typo in the enable_task_pre_expand_value_sets property setter

* Fixed code formatting issues identified by spotless
2025-03-15 16:25:38 +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
James Agnew
c3f7ef3845 Spotless 2025-02-12 13:59:50 -05:00
James Agnew
3cdd23368a Test fix 2025-02-12 13:58:42 -05:00
James Agnew
509d5ffce0 Add support for Database Partition Mode 2025-02-12 10:54:38 -05: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
Tadgh
f4695b5c04 Addressing review comments 2024-09-27 12:25:09 -04:00
Tadgh
5c4ada54ae Make java default as well for people who dont update their app properties on upgrade 2024-09-27 09:22:26 -04:00
Tadgh
a12e30c7d2 Expose setting, add docs 2024-09-25 15:34:56 -04:00
Carl Anderson
74344279e2 fix: use the existing naming convention
Co-authored-by: Kevin Dougan SmileCDR <72025369+KevinDougan-SmileCDR@users.noreply.github.com>
2024-06-14 11:18:35 -05:00
Carl Anderson
ce0df03aac fix: use the existing naming convention
Co-authored-by: Kevin Dougan SmileCDR <72025369+KevinDougan-SmileCDR@users.noreply.github.com>
2024-06-14 11:18:17 -05:00
Carl Anderson
9a02b13285 fix: use the existing naming convention
Co-authored-by: Kevin Dougan SmileCDR <72025369+KevinDougan-SmileCDR@users.noreply.github.com>
2024-06-14 11:18:01 -05:00
Carl Anderson
37c26a464a fix: use the existing naming convention
Co-authored-by: Kevin Dougan SmileCDR <72025369+KevinDougan-SmileCDR@users.noreply.github.com>
2024-06-14 11:17:35 -05:00
Carl Anderson
40411f6fb8 fix: use the existing naming convention
Co-authored-by: Kevin Dougan SmileCDR <72025369+KevinDougan-SmileCDR@users.noreply.github.com>
2024-06-14 11:17:06 -05:00
Carl Anderson
d4db8fbb1b fix: forgot to include a setter with my getter 2024-06-12 14:16:17 -05:00
Carl Anderson
cc51fa6082 enable mass ingestion mode 2024-06-12 12:00:26 -05:00
Muazzam Khan
c10e84e333 issue-5884-Add-Config-Resource-History : Adding configuration for Disabling Resource History. 2024-04-29 18:12:24 -04:00
Joshua Grisham
01a488aeb3 Allow all client_id_strategy options and add server_id_strategy (#653) 2024-03-03 17:39:26 +01:00
David Conlan
4226648867 Allow custom operations/providers in addition to interceptors (#654)
* Allow custom operations/providers to be added in the same way custom interceptors are currently loaded

* Add new property to documentation and default yaml file

* Add test for custom operation
2024-03-03 17:39:03 +01:00
Jens Kristian Villadsen
1e7690fc03 Adding configurable behaviour for https://github.com/hapifhir/hapi-fhir/pull/5300 (#650) 2024-02-27 21:38:43 +01:00
Jens Kristian Villadsen
9e21d8062e Feature/dynamic content (#605)
* Added dynamic content options

* Added defaults

* Added sane defaults

* Added IG operation providers for run time installation of IG's

* Refactored conditions for enabling the provider

* Refactoring

* Disable it by default in config as well

* document package install feature

* Added hosting options

* Provided better custom defaults

* Removed double default files

---------

Co-authored-by: Jose Costa Teixeira <jose.a.teixeira@gmail.com>
2024-02-15 20:02:46 +01:00
Mohamed Marrouchi
dab4219bb1 feat: add support for logical urls 2024-02-06 15:54:08 +01:00
Levi
0be636c169 Affected Issue(s): #606 (#612)
What this commit has achieved:
1. Externalized location of "mdm-rules.json" in the `AppProperties`
2. More info about the `ResourceLoader` interface is available at
https://docs.spring.io/spring-framework/reference/core/resources.html#resources-resourceloader
2023-12-04 21:10:21 +01:00
Justin McKelvy
d1c6b0661d new ide formatting 2023-11-28 11:08:59 -07:00
Justin McKelvy
79f631acf4 indent reformat 2023-11-28 11:00:38 -07:00
Justin McKelvy
1715ee5aaf remove indents 2023-11-28 10:57:56 -07:00