Commit Graph

9843 Commits

Author SHA1 Message Date
jdar b3a0840c10 remove unused imports, add copyright header from build 2024-08-22 11:29:42 -07:00
jdar 4eb4802f09 add backports to changelogs 2024-08-22 11:00:17 -07:00
jdar b0ac85d99e change test back to use assertj 2024-08-22 01:48:52 -07:00
jdar f8643f0308 6420 change test to use hamcrest 2024-08-22 01:38:03 -07:00
Etienne Poirier 08a68b5477 Query with FullText searching (_text) does not return expected result (#6217)
* sketch of scroll solution

* implementation of a scrolled search to handle Lucene large resultset.

* legacy code clean up

* adding changelog

* addressing comments from first code review

* adding more test

* correcting implementation after failing test

* no-op change to trigger pipeline

* no-op change to trigger pipeline again

---------

Co-authored-by: Michael Buckley <michaelabuckley@gmail.com>
Co-authored-by: peartree <etienne.poirier@smilecdr.com>
2024-08-22 01:33:57 -07:00
volodymyr-korzh 99e7e24b87 Patient everything operation with offset query parameter throws exception (#6085)
* Patient $everything operation with _offset query parameter throws exception - tests and implementation
* Patient $everything operation with _offset query parameter throws exception - added changelog
2024-08-21 22:44:13 -07:00
jdar 6016bfc534 version bumps 2024-08-21 22:44:01 -07:00
Long Ma d8c89128bc reverted test testDirectPathWholeResourceNotIndexedWorks in FhirResourceDaoR4SearchWithElasticSearchIT 2024-07-23 13:39:46 -06:00
Long Ma 50ddb7e34e fix quantity search parameter test to pass 2024-07-23 10:52:47 -06:00
Tadgh 84dd45018d Merge branch 'filesystem-binary-regression' into rel_7_2 2024-07-19 19:12:39 -07:00
Tadgh e4e26412a6 Add test. Fix broken logic. 2024-07-19 18:45:47 -07:00
longma1 22b4669e5c fix conflicts from pulling 7.2 2024-07-19 17:49:00 -06:00
Tadgh 4fae01e1a7 test description 2024-07-19 13:18:54 -07:00
Tadgh 514f83260d Changelog 2024-07-19 13:16:58 -07:00
Tadgh 2285342201 Remove dead class 2024-07-19 13:15:13 -07:00
Tadgh e4e61d1482 Merge branch 'rel_7_2' into filesystem-binary-regression 2024-07-19 13:14:44 -07:00
Tadgh 45c8b47cd9 cleanup 2024-07-19 13:13:56 -07:00
Tadgh 6b4e25fe10 Fix claeaner 2024-07-19 13:13:14 -07:00
Tadgh 13b7c0458c Remove useless file 2024-07-19 12:55:53 -07:00
Tadgh aa26dd9a8a spotless 2024-07-19 12:52:57 -07:00
Tadgh 5bfc5f02f6 Add fix 2024-07-19 12:52:20 -07:00
Tadgh 0f58641030 failing Test 2024-07-19 12:37:35 -07:00
Long Ma 5544260e81 Merge branch 'rel_7_2' of https://github.com/hapifhir/hapi-fhir into rel_7_2 2024-07-19 13:19:11 -06:00
Long Ma 6f2ed35546 added fix for 6133 2024-07-19 13:19:03 -06:00
Michael Buckley 268c574f07
Use lockless mode when adding index on Azure Sql server (#6100) (#6129)
* Use lockless mode when adding index on Azure Sql server

Use try-catch for Online add-index on Sql Server.
This avoids having to map out the entire matrix of Sql Server product names and ONLINE index support.
Warnings in docs, and cleanups
2024-07-19 15:01:37 +00:00
TipzCM bc47cb70f1 merge fix for issue with infinite cache refresh loop 2024-07-16 11:23:16 -06:00
longma1 361f6d2983 docs and changelog 2024-07-15 10:43:54 -06:00
TipzCM d064172195 cherry-picked 6027 2024-07-15 10:42:11 -06:00
Long Ma 6f683e0990 changelog fix 2024-07-10 11:24:04 -06:00
Tadgh c044c4d4aa cherry-picked pr 6051 2024-07-10 11:22:15 -06:00
markiantorno 50f6344289 Updating version to: 7.2.2 post release. 2024-06-03 18:30:35 +00:00
longma1 547c9320f1 pom remove the snapshot 2024-05-31 13:16:04 -06:00
Luke deGruchy ac4aa1ed0a Fix queries with chained sort with Lucene by checking supported SortSpecs (#5958)
* First commit with very rough solution.

* Solidify solutions for both requirements.  Add new tests.  Enhance others.

* Spotless.

* Add new chained sort spec algorithm.  Add new Msg.codes.  Finalize tests.  Update docs.  Add changelog.
2024-05-29 10:44:56 -06:00
markiantorno 26c5d80cef Updating version to: 7.2.1 post release. 2024-05-16 18:13:38 +00:00
Tadgh 018a38bd45 Version bump 2024-05-10 18:39:02 -07:00
Michael Buckley 6d6c140986
Change chain sort syntax for MS SQL (#5917)
* Change sort type on chains

* Change sort type on chains

* Test for MS SQL

* Comments
2024-05-09 03:28:26 +00:00
Tadgh 9021e7e765 Convert a few nulls to aggressive denies 2024-05-08 20:03:46 -07:00
Tadgh 7a461df2db
6051 bulk export security errors (#5915)
* Enhance RuleBuilder code to support multiple instances (#5852)

* Overhaul bulk export permissions.

* Overhaul bulk export permissions.

* Small tweak to rule builder.

* Cleanup validation.

* Cleanup validation.

* Code review feedback.

* Postgres terminology service hard coded column names migration (#5866)

* updating parent pids column name

* updating name of the fullTestField Search

* updating name of the fullTestField Search

* fixing typo.

* failing test.

* - Moving FullTextField annotation from getter method and adding it to the newly added VC property of the entity;

- reverting the name of the FullTextField entity to its previous name of 'myParentPids';

- reverting the name of the lucene index to search on in the terminology service.

- updating the changelog;

* making spotless happy

---------

Co-authored-by: peartree <etienne.poirier@smilecdr.com>

* 5879 back porting fix for issue 5877 (attempting to update a tokenparam with a value greater than 200 characters raises an sqlexception) to release rel_7_2 (#5881)

* initial failing test.

* solution

* adding changelog

* spotless

* moving changelog from 7_4_0 to 7_2_0 and deleting 7_4_0 folder.

---------

Co-authored-by: peartree <etienne.poirier@smilecdr.com>

* Expose BaseRequestPartitionHelperSvc validateAndNormalize methods (#5811)

* Expose BaseRequestPartitionHelperSvc validate and normalize methods

* Compilation errors

* change mock test to jpa test

* change mock test to jpa test

* validateAndNormalizePartitionIds

* validateAndNormalizePartitionNames

* validateAndNormalizePartitionIds validation + bug fix

* validateAndNormalizePartitionNames validation

* fix test

* version bump

* Ensure a non-numeric FHIR ID doesn't result in a NumberFormatException when processing survivorship rules (#5883)

* Add failing test as well as commented out potential solution.

* Fix for NumberFormatException.

* Add conditional test for survivorship rules.

* Spotless.

* Add changelog.

* Code review feedback.

* updating documentation (#5889)

* Ensure temp file ends with "." and then suffix. (#5894)

* bugfix to https://github.com/hapifhir/hapi-fhir-jpaserver-starter/issues/675 (#5892)

Co-authored-by: Jens Kristian Villadsen <jenskristianvilladsen@gmail.com>

* Enhance mdm interceptor (#5899)

* Add MDM Transaction Context for further downstream processing giving interceptors a better chance of figuring out what happened.

* Added javadoc

* Cahngelog

* spotless

---------

Co-authored-by: Jens Kristian Villadsen <jenskristianvilladsen@gmail.com>

* Fix BaseHapiFhirResourceDao $meta method to use HapiTransactionService instead of @Transaction (#5896)

* Try making ResourceTable.myTags EAGER instead of LAZY and see if it breaks anything.

* Try making ResourceTable.myTags EAGER instead of LAZY and see if it breaks anything.

* Ensure BaseHapiFhirResourceDao#metaGetOperation uses HapiTransactionService instead of @Transactional in order to resolve megascale $meta bug.

* Add changelog.

* Update hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/changelog/7_2_0/5898-ld-megascale-meta-operation-fails-hapi-0389.yaml

Commit code reviewer suggestion.

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

---------

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

* Fix query chained on sort bug where we over-filter results (#5903)

* Failing test.

* Ensure test cleanup doesn't fail by deleting Patients before Practitioners.

* Implement fix.

* Spotless.

* Clean up unit test and add changelog.  Fix unit test.

* Fix changelog file.

* Apply suggestions from code review

Apply code review suggestions.

Co-authored-by: Michael Buckley <michaelabuckley@gmail.com>

* Spotless

---------

Co-authored-by: Michael Buckley <michaelabuckley@gmail.com>

* cve fix (#5906)

Co-authored-by: Long Ma <long@smilecdr.com>

* Fixing issues with postgres LOB migration. (#5895)

* Fixing issues with postgres LOB migration.

* addressing code review comments for audit/transaction logs.

* test and implementation for BinaryStorageEntity migration post code review.

* test and implementation for BinaryStorageEntity migration post code review.

* test and implementation for TermConcept
 migration post code review.

* applying spotless

* test and implementation for TermConceptProperty
 migration post code review.

* test and implementation for TermValueSetConcept
 migration post code review.

* fixing migration version

* fixing migration task

* changelog

* fixing changelog

* Minor renames

* addressing comments and suggestions from second code review.

* passing tests

* fixing more tests

---------

Co-authored-by: peartree <etienne.poirier@smilecdr.com>
Co-authored-by: Tadgh <garygrantgraham@gmail.com>

* refactor bulk export rule, add concept of appliestoallpatients, fix tests

* spotless

* Cahgnelog, tests

* more tests

* refactor style checks

---------

Co-authored-by: Luke deGruchy <luke.degruchy@smilecdr.com>
Co-authored-by: Etienne Poirier <33007955+epeartree@users.noreply.github.com>
Co-authored-by: peartree <etienne.poirier@smilecdr.com>
Co-authored-by: Nathan Doef <n.doef@protonmail.com>
Co-authored-by: TipzCM <leif.stawnyczy@gmail.com>
Co-authored-by: dotasek <david.otasek@smilecdr.com>
Co-authored-by: Jens Kristian Villadsen <jenskristianvilladsen@gmail.com>
Co-authored-by: Michael Buckley <michaelabuckley@gmail.com>
Co-authored-by: longma1 <32119004+longma1@users.noreply.github.com>
Co-authored-by: Long Ma <long@smilecdr.com>
2024-05-08 22:02:42 +00:00
Etienne Poirier 45b5766c87
Fixing issues with postgres LOB migration. (#5895)
* Fixing issues with postgres LOB migration.

* addressing code review comments for audit/transaction logs.

* test and implementation for BinaryStorageEntity migration post code review.

* test and implementation for BinaryStorageEntity migration post code review.

* test and implementation for TermConcept
 migration post code review.

* applying spotless

* test and implementation for TermConceptProperty
 migration post code review.

* test and implementation for TermValueSetConcept
 migration post code review.

* fixing migration version

* fixing migration task

* changelog

* fixing changelog

* Minor renames

* addressing comments and suggestions from second code review.

* passing tests

* fixing more tests

---------

Co-authored-by: peartree <etienne.poirier@smilecdr.com>
Co-authored-by: Tadgh <garygrantgraham@gmail.com>
2024-05-06 10:23:35 -04:00
longma1 f26ca1b4f6
cve fix (#5906)
Co-authored-by: Long Ma <long@smilecdr.com>
2024-05-02 20:10:10 -04:00
Luke deGruchy 6adc2d8352
Fix query chained on sort bug where we over-filter results (#5903)
* Failing test.

* Ensure test cleanup doesn't fail by deleting Patients before Practitioners.

* Implement fix.

* Spotless.

* Clean up unit test and add changelog.  Fix unit test.

* Fix changelog file.

* Apply suggestions from code review

Apply code review suggestions.

Co-authored-by: Michael Buckley <michaelabuckley@gmail.com>

* Spotless

---------

Co-authored-by: Michael Buckley <michaelabuckley@gmail.com>
2024-05-02 22:34:35 +00:00
Luke deGruchy 486903b1f1
Fix BaseHapiFhirResourceDao $meta method to use HapiTransactionService instead of @Transaction (#5896)
* Try making ResourceTable.myTags EAGER instead of LAZY and see if it breaks anything.

* Try making ResourceTable.myTags EAGER instead of LAZY and see if it breaks anything.

* Ensure BaseHapiFhirResourceDao#metaGetOperation uses HapiTransactionService instead of @Transactional in order to resolve megascale $meta bug.

* Add changelog.

* Update hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/changelog/7_2_0/5898-ld-megascale-meta-operation-fails-hapi-0389.yaml

Commit code reviewer suggestion.

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

---------

Co-authored-by: Tadgh <garygrantgraham@gmail.com>
2024-05-01 18:05:52 +00:00
Tadgh 8ad27544f3
Enhance mdm interceptor (#5899)
* Add MDM Transaction Context for further downstream processing giving interceptors a better chance of figuring out what happened.

* Added javadoc

* Cahngelog

* spotless

---------

Co-authored-by: Jens Kristian Villadsen <jenskristianvilladsen@gmail.com>
2024-05-01 17:59:19 +00:00
dotasek d05f6f3389
bugfix to https://github.com/hapifhir/hapi-fhir-jpaserver-starter/issues/675 (#5892)
Co-authored-by: Jens Kristian Villadsen <jenskristianvilladsen@gmail.com>
2024-05-01 13:28:52 -04:00
Luke deGruchy 929583e2e3
Ensure temp file ends with "." and then suffix. (#5894) 2024-04-30 21:53:44 +00:00
TipzCM b7cdc751e7
updating documentation (#5889) 2024-04-30 17:20:02 +00:00
Luke deGruchy 5dfe575348
Ensure a non-numeric FHIR ID doesn't result in a NumberFormatException when processing survivorship rules (#5883)
* Add failing test as well as commented out potential solution.

* Fix for NumberFormatException.

* Add conditional test for survivorship rules.

* Spotless.

* Add changelog.

* Code review feedback.
2024-04-30 12:02:39 -04:00
Nathan Doef 8f56a02deb
Expose BaseRequestPartitionHelperSvc validateAndNormalize methods (#5811)
* Expose BaseRequestPartitionHelperSvc validate and normalize methods

* Compilation errors

* change mock test to jpa test

* change mock test to jpa test

* validateAndNormalizePartitionIds

* validateAndNormalizePartitionNames

* validateAndNormalizePartitionIds validation + bug fix

* validateAndNormalizePartitionNames validation

* fix test

* version bump
2024-04-26 23:57:50 -04:00
Etienne Poirier b2d61a1f65
5879 back porting fix for issue 5877 (attempting to update a tokenparam with a value greater than 200 characters raises an sqlexception) to release rel_7_2 (#5881)
* initial failing test.

* solution

* adding changelog

* spotless

* moving changelog from 7_4_0 to 7_2_0 and deleting 7_4_0 folder.

---------

Co-authored-by: peartree <etienne.poirier@smilecdr.com>
2024-04-26 14:25:37 -04:00
Etienne Poirier 07f879d276
Postgres terminology service hard coded column names migration (#5866)
* updating parent pids column name

* updating name of the fullTestField Search

* updating name of the fullTestField Search

* fixing typo.

* failing test.

* - Moving FullTextField annotation from getter method and adding it to the newly added VC property of the entity;

- reverting the name of the FullTextField entity to its previous name of 'myParentPids';

- reverting the name of the lucene index to search on in the terminology service.

- updating the changelog;

* making spotless happy

---------

Co-authored-by: peartree <etienne.poirier@smilecdr.com>
2024-04-22 22:46:43 +00:00