2005 Commits

Author SHA1 Message Date
Ken Stevens
5c6ed714f5
SpringMessagingMessageHandlerAdapter handle GenericMessage (#6997)
* Fix issue with tests

* cleanup

* changelog

* review

---------

Co-authored-by: Ken Stevens <ken@smiledigitalhealth.com>
2025-05-28 15:32:28 -04:00
TipzCM
e28c34a265
6978 handle unknown chunk ids (#6981) 2025-05-27 08:51:38 -04:00
tadgh
a62adf2ca9
8.2.0 mergeback (#6982)
* 6564 default partition id bug (#6917)

* Revert "6564 default partition id bug (#6917)"

This reverts commit 62dc506fe93735f742badc70ca9425eb002cabbc.

* Fix canonicalizer concurrency exception (#6936)

* Add failing test

* Reduce concurrency likelihood by setting collection atomically

* changelog

* fix transaction partition override for post entries (#6931)

* pass in entry specific request details for POST entries in a transaction

* address code review comment

* added test cleanup to restore defaults

* restore unnamed mode in test

* Rel 8 2 changelogs (#6935)

* Once-over some changelogs

* wip

* Apply patch

* onceovering

* Update hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/changelog/8_2_0/6849-fix-fhir-chain-search-never-completing-with-count-param.yaml

Co-authored-by: Nathan Doef  <n.doef@protonmail.com>

* Update hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/changelog/8_2_0/6769-upgraded-core-library.yaml

Co-authored-by: Nathan Doef  <n.doef@protonmail.com>

* Update hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/changelog/8_2_0/6865-handle-dupe-resources-in-npm-packages.yaml

Co-authored-by: Nathan Doef  <n.doef@protonmail.com>

* Update hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/changelog/8_2_0/6892-fix-patching-operation-fails-for-enumerated-fields.yaml

Co-authored-by: Nathan Doef  <n.doef@protonmail.com>

---------

Co-authored-by: Nathan Doef <n.doef@protonmail.com>

* guard recursion (#6943)

* guard recursion

* enhance test

* change log

* Automated Migration Testing (HAPI-FHIR) - updated test migration scripts for 8_2_0 (#6944)

* initialize requestdetails earlier in cache synchronizer (#6940)

* initialize RequestDetails earlier in BaseResourceCacheSynchronizer

* added change log

* update changelog description as suggested

* Improve Validator Performance For Large Terminologies (#6870)

* validator performance test harness

* Replace VersionConvertorFactory references with VersionCanonicalizer

* fix tests

* clean up duplicate code

* clean up duplicate code

* simplify DSTU2 branch

* Replace VersionConvertorFactory references with VersionCanonicalizer

* fix test

* clean up

* spotless

* test logging

* simplify convertToCanonicalVersionAndGenerateSnapshot

* move test harness to hapi fhir

* fix package structure

* clean up

* loaded terminology programmatically

* spotless

* refactor to add more test cases

* refactor to add more test cases

* add testcase that requires valueset expansion

* test validation using $validate and JpaValidationSupportChain

* start remote terminology test case

* refactor VersionSpecificWorkerContextWrapper

* fix broken cache key

* cache conversion from canonical

* clean up

* remote terminology test

* remote terminology test

* spotless

* clean up

* clean up

* clean up

* improve test stats

* clean up metrics

* clean up metrics

* log individual runs

* log concepts

* clean up

* fix test

* add assertions to verify caching

* changelogs

* cleanup

* logs

* add version canonicalizer to remote terminology validator worker context

* address code review comments 1

* address code review comments 2

* address code review comments 3

* Licenses

* fix broken link (#6956)

* Revert "Revert "6564 default partition id bug (#6917)"" (#6930)

* Revert "Revert "6564 default partition id bug (#6917)""

This reverts commit 0aa6f4d39995292fab0eee173ce46f2d9c4430d8.

* lazy load partitionsettings and subscription cannonicalizer

* version bump

* more default id fixes

* spotless

* review fixes round 1

* review fixes 2

* spotless

* adding comment

* fixing tests

* spotless

* adding more partition ids

* fixing tests

* spotless

---------

Co-authored-by: leif stawnyczy <leifstawnyczy@leifs-mbp.home>

* Jd 20250428 fix search param ordinal date timing (#6914)

* fix and tests

* changelog

* remove todo

* fix param names

* remove unused/duplicated methods

* address review comments

---------

Co-authored-by: jdar <justin.dar@smiledigitalhealth.com>

* version bump

* Bump spring-boot

* Temp fix release

* Updating version to: 8.2.1 post release.

* revert publish hack

* Compile fixes

* version bump

* bump again

* Remove dead dep

---------

Co-authored-by: TipzCM <leif.stawnyczy@gmail.com>
Co-authored-by: Gary <garygraham@simpatico.ai>
Co-authored-by: jmarchionatto <60409882+jmarchionatto@users.noreply.github.com>
Co-authored-by: Emre Dincturk <74370953+mrdnctrk@users.noreply.github.com>
Co-authored-by: Nathan Doef <n.doef@protonmail.com>
Co-authored-by: JasonRoberts-smile <85363818+JasonRoberts-smile@users.noreply.github.com>
Co-authored-by: volodymyr-korzh <132366313+volodymyr-korzh@users.noreply.github.com>
Co-authored-by: leif stawnyczy <leifstawnyczy@leifs-mbp.home>
Co-authored-by: jdar8 <69840459+jdar8@users.noreply.github.com>
Co-authored-by: jdar <justin.dar@smiledigitalhealth.com>
Co-authored-by: markiantorno <markiantorno@gmail.com>
Co-authored-by: James Agnew <jamesagnew@gmail.com>
2025-05-25 20:24:20 -07:00
Ken Stevens
c844c3f576
Bundle operations take 2 (#6965)
* Revert "remove bundle merge changes from this branch (will revert in new branch)"

This reverts commit d113906aecc2a1e2a2c9483224b447e5f49c6cff.

* claude review

* changelog

* rename operation

* review feedback

* fix regression

* spotless

* fix regression

* cosmetic change to trigger new CI

* version bump

* Fix dumb bug in compile-against-cdr pipeline

---------

Co-authored-by: Ken Stevens <ken@smiledigitalhealth.com>
Co-authored-by: Tadgh <garygrantgraham@gmail.com>
2025-05-25 13:23:08 -07:00
Brenin Rhodes
383610cbf8
Remove deprecated CR code (#6975)
* remove deprecated CR code

* add changelog

* bump version
2025-05-24 16:05:03 -07:00
Yaling Pei
22136a7aa9
Normalize out resource type names into new hfj_resource_type table (#6890)
* [6889] add migration tasks for new table and column updates

* [6889] correct FK column name

* [6889] add explicit index to the FK column

* [6889] update entities with the new column

* [6889] add migration tasks to populate the new resource type table

* [6889] rename variables

* [6889] minor update

* [6889] update migration tasks to entities

* [6889] load resource types using Fhir Context

* [6889] apply spotless

* [6889] apply spotless

* [6889] update entity classes

* [6889] add new classes for resource type cache service and dao

* [6889] write resource type id to the newly added resource rows

* [6889] add exception handling for unique index constraint

* [6889] add util class for generating resource types to be used in multiple places

* [6889] fix the failed unit tests by caused by the extra query to the new resource type table

* [6889] Pre-populate the resource type database table to fix failed tests

* [6889] fix the failed unit tests in R5

* [6889] Revert back to not use HapiTransactionServer due to unit test complication

* [6889] fix more unit tests

* [6889] fix more unit tests

* [6889] minor update

* [6889] add changelog and fix unit test failure in MdmEventIT

* [6889] fix the failed unit tests in Mdm package

* [6889] more unit test updates

* [6889] more unit test updates

* [6889] address review comment - remove resource type foreign key constraint

* [6889] address review comment - use IHapiTransactionService

* [6889] update unit tests

* [6889] code cleaning

* [6889] address review comment - change return value from Short to short

* [6889] apply spotless
2025-05-22 14:36:40 -04:00
James Agnew
c9a7150a56
Fix crash during R5 Message validation (#6968)
* Add parsing test

* Add test

* Remove unneeded test

* Add changelog

* Cleanup

* Cleanup and address review comments
2025-05-16 19:30:46 +00:00
James Agnew
6f050ee96d
Improve circular snapshot generation detection (#6963)
* fix: prevent false circular dependency detection
feat: add test for circular dependency bug in R4 package installation
fixes #6928

* Add a changelog

* Ongoing work

* Take 2 at fixing #6928 - Circular dependency fix

* Test fixes

* Test cleanup

* Update

* Add changelog and get tests passing

* Remove redundant changelog

* Test fixes

* Cleanup

* Delete unused classes

* Fix canonicalizer concurrency exception (#6936)

* Add failing test

* Reduce concurrency likelihood by setting collection atomically

* changelog

* Cleanup

* Review comments

---------

Co-authored-by: Patrick Werner <pa.f.werner@gmail.com>
Co-authored-by: jmarchionatto <60409882+jmarchionatto@users.noreply.github.com>
2025-05-16 19:21:56 +00:00
TipzCM
6883f32ab9
gettype (#6961) 2025-05-14 11:48:04 -04:00
tadgh
70870bad01
Clean build logs (#6955)
* Claudes attempt at warning removal

* Fix shading complaints

* Check for pom change and skip job if found

* Remove double DDL-Generation, quiet license changes

* Tidy javadocs

* Minor fixes for javadocs

* Remove deprecated usages

* TRy to get aggregate javadoc generation working

* Bump messgae and mvn version in enforcer

* Remove bad versions of javadoc

* Revert "Claudes attempt at warning removal"

This reverts commit ac4561c5ad0b0f521c66297d37811be3e8674587.

* wip

* Revert "TRy to get aggregate javadoc generation working"

This reverts commit 775355341267bcd69451567fc070af5473ae4baf.

* Unify lombok deps

* Correct source

* unify versions

* Fix JavaDoc syntax issues to resolve build warnings

Fix various JavaDoc syntax issues including:
- Correctly close HTML tags in URL links
- Properly escape angle brackets, special characters, and HTML elements
- Fix generic type parameters using proper escaping
- Update email address formatting

These changes ensure clean JavaDoc generation and eliminate build warnings.

🤖 Generated with [Claude Code](https://claude.ai/code)

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

* One more fix

* Fix JavaDoc ampersand issues for cleaner builds

- Wrapped URL parameters containing & with {@code }
- Replaced prose & with "and" in comments
- Fixed HTML entities in JavaDocs by using {@code }

🤖 Generated with [Claude Code](https://claude.ai/code)

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

* Fix JavaDoc warnings to ensure clean builds

- Fixed invalid @link tag in BaseValidationSupportWrapper.java
- Fixed incorrect closing parentheses in JavaDoc URL references in PrePopulatedValidationSupport.java
- Fixed invalid @link tags with 'this#' prefix in MdmRulesJson.java
- Removed invalid URL from @link tag in package-info.java
- Fixed incorrect syntax in JavaDoc link in MdmResourceFilteringSvc.java

🤖 Generated with [Claude Code](https://claude.ai/code)

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

* Remove FakeConnectionConnectionProvider, disable metadata checking during bootstrap

* Cleanup on the imports

* logs

* wip

* Skip compile-against-cdr if not needed

* Code review comments

* Spotless

* Add spotless prefix

* code review

* Fix bug

---------

Co-authored-by: Gary <garygraham@simpatico.ai>
Co-authored-by: Claude <noreply@anthropic.com>
2025-05-14 07:23:54 -07:00
jmarchionatto
5fe1fc0116
Rename new method fix wording and add test for new operation returning StringOutcome (#6957)
* Improve wording

* Rename method

* Suggested wording

* Add test

* Add test

* Fix warnings

* Increment version
2025-05-13 18:39:50 -04:00
Ken Stevens
f7ce2d19b3
mdm publisher (#6947)
* begin with failing test

* fixed

* spotless

* changelog

* fix intermittent in SubscriptionRestHookDstu3IT

* fix deadlocks

* hapi version bump

---------

Co-authored-by: Ken Stevens <ken@smiledigitalhealth.com>
2025-05-12 07:15:39 -07:00
tadgh
9fa6dca6e7
Revert "Prevent spurious circular-dependency warnings in SnapshotGeneratingValidationSupport (#6929)" (#6954)
This reverts commit 5ca9c6ce94da9ac16a6480e86bcff1059196d014.
2025-05-09 14:23:01 -07:00
Ken Stevens
095c12dd82
subscription broker cleanup (#6934)
* Pulsar subscription tests pass

* Pulsar subscription tests pass

* retry test passes

* headers test passes

* headers test passes

* gracefully close producer

* gracefully close producer

* FIXMEs

* FIXMEs

* FIXME

* organize imports

* spotless

* final review and changelog

* claude review

* claude review

* claude review

* bump poms

* fix test

---------

Co-authored-by: Ken Stevens <ken@smiledigitalhealth.com>
2025-05-07 13:09:03 -07:00
Patrick Werner
ffd818efa9
Fix incorrect GeoBoundingBox in near search by generating symmetric box around center (#6937) (#6938)
* test: add near search distance test for locations within 5000 km

* fix: generate symmetric GeoBoundingBox around center for near search

* fix: adjust distance parameters in ResourceProviderR4DistanceTest for accurate city inclusion

* Add changelog

---------

Co-authored-by: James Agnew <jamesagnew@gmail.com>
2025-05-07 09:22:50 -04:00
tadgh
75162c57f0
Merge pull request #6927 from hapifhir/rel_8_2_mb_take_2
Mergeback of 8.2.X release branch
2025-05-06 18:12:12 -07:00
Patrick Werner
5ca9c6ce94
Prevent spurious circular-dependency warnings in SnapshotGeneratingValidationSupport (#6929)
* fix: prevent false circular dependency detection
feat: add test for circular dependency bug in R4 package installation
fixes #6928

* Add a changelog

---------

Co-authored-by: James Agnew <jamesagnew@gmail.com>
2025-05-05 16:49:02 +00:00
Tadgh
135a73baa7 Moved changelog to 8.2 folder 2025-05-02 10:33:53 -07:00
Tadgh
4782d5e4bf Merge branch 'rel_8_2' into rel_8_2_mb_take_2 2025-05-02 10:31:57 -07:00
craig mcclendon
67baa453f3 fix db migrator issue on sql server with multipart pkeys issue 6650 (#6652)
* fix db migrator issue on sql server with multipart pkeys issue 6650

* Add test and changelog

---------

Co-authored-by: James Agnew <jamesagnew@gmail.com>
2025-05-02 10:10:41 -07:00
jmarchionatto
e39153e0b4
Jm 20250425 make resource history query builders partitioning aware (#6907)
* Add failing test

* Consider partitioning when only _source parameter

* Abstract common functionality to base class and make it add partition predicate.

* changelog

* spotless

* Fix duplication and adjust test

* Adjust test
2025-05-02 11:59:23 +00:00
craig mcclendon
8bcea71307
fix db migrator issue on sql server with multipart pkeys issue 6650 (#6652)
* fix db migrator issue on sql server with multipart pkeys issue 6650

* Add test and changelog

---------

Co-authored-by: James Agnew <jamesagnew@gmail.com>
2025-05-02 05:37:12 -04:00
James Agnew
c0dc6e6b6c
Allow restoring previously deleted resources with refs in a TX (#6922)
* Allow restoring previously deleted resources with refs in a TX

* Address review comments

* Force bump
2025-05-02 05:25:00 -04:00
Gary
38f53b9f25 Name release 2025-05-01 17:28:06 -07:00
Gary
ff2eae1248 Move changelogs, name release 2025-05-01 17:27:40 -07:00
Jens Kristian Villadsen
cbec00e571
Feat/additional folder options (#6802)
* Added reusable feature set from https://github.com/hapifhir/hapi-fhir-jpaserver-starter/pull/784

* Added a few sanity tests

* Update hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/packages/PackageInstallationSpec.java

Co-authored-by: tadgh <tadgh@cs.toronto.edu>

* Addressed most comments

* Reduced package size and added exception

* Added changelog

---------

Co-authored-by: tadgh <tadgh@cs.toronto.edu>
2025-05-01 17:25:37 -07:00
Jens Kristian Villadsen
83b7f46caa
Feat/support head metadata (#6406)
* Added support for HTTP HEAD

* Renamed file to issue number and added issue number

* Moved to 7.6

* Adjusted to new init method

* Corrected error messages

* Moved to 7.8.0 as it isn't urgent

* Moved to 8.2.0

* Added HEAD test for stu3

* Added HEAD test

* Adjusted according to review comments

* Spotless formatting

* Update MetadataCapabilityStatementDstu3Test.java

* Update MetadataCapabilityStatementDstu3Test.java

---------

Co-authored-by: James Agnew <jamesagnew@gmail.com>
2025-05-01 17:24:24 -07:00
James Agnew
0b0d0e3903
Credit for #6904 (#6925)
* feat: add full support for ValueSet filters in in-memory terminology validation

This adds support for all FHIR-defined ValueSet filter operators
(e.g. is-a, descendent-of, is-not-a, in, regex, exists, etc.) to the in-memory
terminology validator (InMemoryTerminologyServerValidationSupport).

Supports:
- Structural filters: is-a, descendent-of, is-not-a, generalizes, child-of, descendent-leaf
- Equality/regex/inclusion: equal (=), regex, in, not-in
- Existence: exists

Adds internal indexing for concept code/display fields to enable efficient traversal
and matching. Follows case-sensitivity rules defined by CodeSystem.

Also includes a full unit test suite for all filters, covering both code and display
properties where relevant.

Fixes issues where descendant-based filters were not honored during expansion in
tests relying on in-memory terminology (e.g. no JPA preload).

Fixes #4447, #6255

* fix(validation): error on filtered ValueSet includes against ignored CodeSystem

When a ValueSet include specifies filters (e.g. “is-a”) but the referenced CodeSystem is
configured as NOT_PRESENT/ignored, in-memory expansion cannot apply structural filters.
Add a guard to throw an ExpansionCouldNotBeCompletedInternallyException in this scenario
rather than silently returning an empty result.

* test(validation): expect in-memory validation to fail for delta-based hierarchy

Previously we asserted success on an in-memory hierarchy check, but the expander
cannot apply ISA filters against a NOT_PRESENT CodeSystem patched only via
`$apply-codesystem-delta-add`. Update the test to assert that
`validateCode(...)` returns a non-OK outcome containing “cannot apply filters”
for the in-memory pass, then continue to validate via the deferred/pre-expanded path.

* Add changelog for #6904

---------

Co-authored-by: Ibrahim Tallouzi <iyt@trifork.com>
2025-05-01 15:57:26 -04:00
Jens Kristian Villadsen
3c7e746371
Update balp_interceptor.md (#5289) 2025-05-01 15:21:03 -04:00
TipzCM
c89d350651
fixing mdm issue with match fields (#6913)
Co-authored-by: leif stawnyczy <leifstawnyczy@leifs-mbp.home>
2025-05-01 18:53:28 +00:00
Etienne Poirier
f8838bba75
Patching operation fails for enumerated fields (#6905)
* - added tests;
- added fix;

* added changelog

* addressing comments from first code review.

* fixing failing tests

* removing unused imports.

* addressing comments from second code review

* fixing pipeline issue.

---------

Co-authored-by: peartree <etienne.poirier@smilecdr.com>
2025-05-01 10:47:57 -07:00
James Agnew
c97567c167
Transaction processing improvements (#6874)
* Add junk ine

* Add extension for placeholder ID

* Cleanup

* Header

* Cleanup

* Spotless

* Better logging

* Fix transaction conditional URL prefetch on non-token params

* Drop a check

* Adjust query counts

* Improve performance

* Single token optimized

* Test fixes

* About to try to ensure we prefetch resource bodies for conditional create

* Test fixes

* Some test fixes

* Test fixes

* Test fixes

* Test fixes

* Work on tests

* Test fix

* Spotless

* Add docs

* Add test

* Add grouping

* Spotless

* Add size option to CMD

* Adjust consumer

* Cleanup

* Work on bulk import

* Spotless

* More work

* Add logging

* More diagnostics

* add logs

* Cleanup

* Fix premature finishing of bulk import command

* Add changelogs

* Test cleanup

* Test fixes

* Fix tests

* Test fix

* Spotless

* Cleanup

* Resolve conflicts

* Clean up

* Add to transaction response parser

* TransactionUtil parsing improvements

* Work on tests

* Test fix

* Test fixes

* Spotless

* Bug fix

* Build tweak

* Test cleanup

* Add some test logging

* Bump to trigger CI

* Try to address intermittent

* Address review comments

* Version bump

* License header
2025-04-29 22:03:03 -04:00
Tadgh
d8cefe536f License updates 2025-04-29 12:48:02 -07:00
Ken Stevens
ec773ed84c
update broker api (#6804)
* first steps

* moving channel classes out of subscription

* initial rough-out done

* adding some legacy tests

* jpa subscription tests partially passing

* fix test regression

* fix test regression

* fix test regressions

* fix compile issues
fix test regressions

* rename legacy to spring messaging

* spotless

* hapi-fhir compiles

* fix test regression

* spotless

* first pass at ActiveMq

* fix test regressions

* spotless

* fix test regression

* add message type to listener and consumer and fix test regression

* spotless

* spotless

* compile

* fix test regression

* EmbeddedActiveMqBrokerTest WIP

* compiling

* compiling

* compiling

* compiling

* compiling

* distinguish between getMessageType() and getPayloadType()

* clean up Spring Messaging wrapper

* clean up Spring Messaging wrapper

* fix intermittent

* compiling

* hapi compile

* compiling

* FIXME

* FIXMEs

* moar FIXMEs

* jetbrains

* try new approach: dual interface implementation

* try new approach: dual interface implementation

* fix message type validation

* CdrKafkaListenerTest passes, but at what cost...?

* fix test

* spotless

* fix test regression

* gitignore

* license

* fix regression

* cleanup

* working on ChannelImportR4NoRetriableExceptionsDefinedIT

* merge master

* fixme

* fix Camel Broker regression. That one was a doozy!

* spotless

* CamelBrokerKafkaIT passes. What a tangled mess!

* fix regression

* fix regression

* port 7000

* FIXME

* FIXME

* FIXME

* FIXME

* FIXME move TestMessageListener

* FIXME CdrKafkaListenerTest

* fix test regression

* checkstyle

* initial refactoring

* fix tests

* introduce IHasPayloadMessageKey to consolidate code

* introduce IHasPayloadMessageKey to consolidate code

* spotless

* fix test

* Greatly simplified KafkaSender classes

* javadoc

* javadoc

* javadoc

* javadoc

* cleanup

* move retrying logic out of the consumer and into the listener

* fix test

* poms

* javadoc

* javadoc

* remove ICdrChannelConsumer

* consistent application of exception

* brains...

* remove ICdrChannelProducer

* fix test

* fix mock test

* fix test regression

* licenses

* final cdr review

* bump version

* final review cleanup

* cleanup and organize imports

* final review

* spotless

* FIXME

* bump pom

* fix merge gunk

* rename RawMessage to RawStringMessage

* rename RawMessage to RawStringMessage

* merge master, bump version

* rename test message listener

* review feedback

* review feedback

* review feedback

* spitless

---------

Co-authored-by: Ken Stevens <ken@smiledigitalhealth.com>
2025-04-29 10:30:47 -04:00
tadgh
6f5cc63243
Version bump, enum value, changelog folder (#6898)
* Version bump, enum value, changelog folder

* License updates

* Spotless

* wip

---------

Co-authored-by: James Agnew <jamesagnew@gmail.com>
2025-04-28 00:20:37 -07:00
Michael Buckley
f9be83d19c
Get synthea data loading in patient-id partition mode (#6844)
* Failing test.

* Lighter test

* Semi-working

* Add contains partial-comparision

* Add contains partial-comparision

* Test and fix for redundant reference resolution

* Cleanup

* New test for existing resource

* Tidy + javadoc

* Changelog

* Bump to android api 34.

* Update tests for new calls

* Update tests for new calls

* Update tests for new calls

* Update tests for new calls

* almost there

* One more down

* tidy

* Refactor PartitioningInterceptorR4Test to use BasePartitioningR4Test

Simplified test setup by inheriting from BasePartitioningR4Test and removed redundant setup/teardown methods

* Fix all but last test

* spotless

* Add setting to test

* javadoc

* Update error message and counts to match reversion

* spotless
2025-04-25 12:35:47 -07:00
James Agnew
e6da66d2c0 Update to latest corelib (#6845)
* Don't add hash to contained IDs

* Cleanup

* Test fix

* Fix some tests

* Test fixes

* Test fixes

* Test fix

* Test fixes

* Test fix

* Test fixes

* Test fix

* Test fixes

* Test fix

* Spotless

* Test fixes

* Test fix

* Spotless

* Add changelog

* Fix YAML

* Core bum

* License header

* Validation fixes

* Build fix

* Add docs

* Spotless

* Version bump

* Restore commented test
2025-04-24 10:03:49 -04:00
James Agnew
cdc7da6a73
Update to latest corelib (#6845)
* Don't add hash to contained IDs

* Cleanup

* Test fix

* Fix some tests

* Test fixes

* Test fixes

* Test fix

* Test fixes

* Test fix

* Test fixes

* Test fix

* Test fixes

* Test fix

* Spotless

* Test fixes

* Test fix

* Spotless

* Add changelog

* Fix YAML

* Core bum

* License header

* Validation fixes

* Build fix

* Add docs

* Spotless

* Version bump

* Restore commented test
2025-04-24 06:18:24 -04:00
Etienne Poirier
0cf76779b7
Issue when performing SQL insert with string of max set size and special characters (#6856)
* failing test.

* - more failing tests
- migration task
- solution

* - adding integration tests suite for oracle;
- adding changelog

* fixing comments.

* pre-code review submission modifications.

* spotless hapiness

* fixing test failures

* making oracle IT execution conditional for Mac users.

* making oracle IT execution conditional for Mac users.

---------

Co-authored-by: peartree <etienne.poirier@smilecdr.com>
2025-04-23 20:14:27 -07:00
Emre Dincturk
85abdc2300
request header partition interceptor (#6886)
* request header partition interceptor

* addressed code review comments

* use the same method to create subreq details for writes and reads

* Revert "use the same method to create subreq details for writes and reads"

This reverts commit d1a7869f8ef5f1ba3de050002fddb9393fcfce68.

* added log message for unkown RequestDetails type

* added  null check
2025-04-23 18:48:37 +00:00
James Agnew
38b67cdc00
Performance tweak to Xml serialization (#6888)
* Performance tweak to Xml serialization

* Add changelog

* Address review comment

* Spotless

* Changelog fix
2025-04-22 13:24:06 -04:00
Brenin Rhodes
525401111e
Add IRepositoryFactory and HapiFhirRepository (#6871)
* Add HapiFhirRepository and IRepositoryFactory

* Deprecate cr module

* changelog and error codes

* spotless

* add to changelog

* use records

* use proper conventions

* Add constructors without deprecated arguments

* deprecate old constructors

* rename Repository interface
2025-04-22 11:37:16 -04:00
Nathan Doef
3ab4d47c13
Execute canSeeResource() in STORAGE_BULK_EXPORT_RESOURCE_INCLUSION pointcut of ConsentInterceptor (#6854)
* expose authorize request functionality

* add canSeeResource() (in addition to willSeeResource()) to the STORAGE_BULK_EXPORT_RESOURCE_INCLUSION pointcut

* `STORAGE_BULK_EXPORT_RESOURCE_INCLUSION` changelog

* authorizeRequest() changelog

* add test
2025-04-21 18:46:24 -07:00
Luke deGruchy
c7b299f3f5
If a resource is not found, throw a ResourceNotFoundException instead of returning null (#6884)
* If a resource is not found, throw a ResourceNotFoundException instead of returning null.

* Spotless.

* Changelog.
2025-04-21 21:26:56 +00:00
Nathan Doef
4c60ab4ea9
Make Remote Terminology FHIR Client Configurable (#6832)
* make remote terminology client configurable

* spotless

* rename

* spotless

* address code review feedback
2025-04-18 22:28:28 -04:00
jdar8
afb5300b15
Jd 20250417 fix validation unknown code system (#6883)
* fix

* test, small refactor, changelog

* clarify comment

* Update hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/changelog/8_2_0/6882-fix-validation-of-unknown-codesystem.yaml

Co-authored-by: tadgh <garygrantgraham@gmail.com>

* clarify changelog

---------

Co-authored-by: jdar <justin.dar@smiledigitalhealth.com>
Co-authored-by: tadgh <garygrantgraham@gmail.com>
2025-04-17 15:36:02 -07:00
James Agnew
73199f66a8
Harden HAPI FHIR public server (#6873)
* Harden HAPI FHIR public server

* Add changelog

* Build fix

* Test fixes

* Add doc

* Test fix

* Address review comments
2025-04-17 15:50:54 -04:00
James Agnew
fc94dd865c
Credit for #6862 (#6881)
* Introduced an example of a failing JSON serialization

* Removed clause which made modifierExtension to have modifierExtensions

* Credit for #6862

---------

Co-authored-by: Vytis Valentinavičius <vv@u-health.lt>
2025-04-17 09:55:47 -04:00
Luke deGruchy
84018cb8e5
Add new APIs to package management API and tests. (#6838)
* Add new APIs to package management API and tests.

* Add more tests.

* Spotless.

* Rename API method.

* Add changelogs.

* Code review feedback:  Naming and request object.

* Code review feedback:  Add javadoc for test.  Add more tests.  Fix lack of functionality and have new test cover the functional gaps.

* Rename from findPackageAssets to findPackageAsset .
2025-04-17 09:15:24 -04:00
Michael Buckley
ca231688a5
Bump Hapi to Java 17 (#6869) 2025-04-16 10:57:26 -04:00