Commit Graph

844 Commits

Author SHA1 Message Date
James Agnew 69849dd3c5 Optimize queries in JPA 2017-06-14 08:35:41 -04:00
James Agnew d59b832e74 Merge branch 'master' into minute_precision_in_searchparams 2017-06-12 11:50:01 -04:00
James a50a86d9af Fix crash in JPA server if numeric search parameter has no value 2017-06-11 09:16:48 -04:00
James Agnew 404037b441 Fix some compile issues 2017-06-09 19:37:11 -04:00
James Agnew c2e5fa3f18 Fix #667 - When using the AuthorizationInterceptor with the JPA server, when a client is updating a resource from A to B, the user now needs to have write permission for both A and B 2017-06-09 11:48:17 -04:00
James 8b5209ff67 Version bump to 2.5 2017-06-08 06:34:44 -04:00
James Agnew b6e9a753ca Merge pull request #660 from HHSIDEAlab/fix-race-condition-in-if-none-exists
Hacky but workable fix for race condition surfaced by If-None-Exists creates
2017-06-07 21:51:05 -04:00
James Agnew 4caa5dfa8d Merge pull request #656 from aehrc/feature/scalable_searchbuilder
Improve SearchBuilder query generation for code:modifier searches
2017-06-07 21:35:50 -04:00
James Agnew 7c6bb01a8b Don't allow JPA server to save duplicate or empty tags, and fix #664 by
preventing multiple threads from loading structure definitions for
validation at the same time
2017-06-06 16:44:13 -04:00
Karl M. Davis aa134fc423 Hacky but workable fix for race condition surfaced by If-None-Exists creates.
Some notes from other attempts I made to fix this in a less hacky way:

* Tried to @Autowire myResourceDaos from a setter (rather than using the annotation on a field), and initialize myResourceTypeToDao in that setter, instead. Couldn't get it to work: Spring started throwing odd bean dependency errors. Don't really understand why.
* Tried to move the exceptions being thrown on null getDao(Class) results into that method, but that was breaking a test case. Didn't investigate why.
2017-06-01 03:17:38 -04:00
James Agnew 52a5fcce17 Adding logging 2017-05-30 15:39:33 -04:00
James Agnew 97c83cd8f0 Merge branch 'master' of github.com:jamesagnew/hapi-fhir 2017-05-30 10:05:34 -04:00
James Agnew 3db4091601 Add a null check 2017-05-30 10:05:27 -04:00
James 6d59b0f5e0 Indexing logging 2017-05-30 10:01:33 -04:00
Michael Lawley d0a927ae3f use disj. of AND and IN for code:modifier searches
Without this, OR conditions with too many disjuncts are generated which can lead to
failures in the underlying database code generation.
2017-05-29 14:57:16 +10:00
James ba40f44d27 Properly index decimal datatype 2017-05-26 06:39:38 -04:00
Jeff Chung 2fa7aedf63 Fixed the resource type comparison to not use startsWith 2017-05-25 16:47:09 -07:00
James Agnew b96932a5c5 Fix dependency on new version of commons-codec 2017-05-25 15:24:47 -04:00
James e2b329382a Add some logging to searches 2017-05-25 08:31:29 -04:00
James Agnew 32de48f392 Fix broken tests 2017-05-24 15:50:53 -04:00
James Agnew 5bdd10c7ab Include patient in $everything even if there are no other resources 2017-05-24 14:24:01 -04:00
James d54b62ffe4 Fix compile errors 2017-05-22 16:42:51 -04:00
James 1ec180628f JPA server now has configurable properties that allow referential integrity to be disabled for both writes and deletes. This is useful in some cases where data integrity is not wanted or not possible. It can also be useful if you want to delete large amounts interconnected data quickly. 2017-05-22 15:34:44 -04:00
James a834770e38 A bit more cleanup for #646 2017-05-22 08:13:00 -04:00
James b71ba86a3a Update copyright per plugin 2017-05-21 16:37:27 -04:00
James a13247ad4b Updates for #646
Squashed commit of the following:

commit 9d6d5e92dabb75c4eb185b061d20f487b8856795
Author: James <jamesagnew@gmail.com>
Date:   Sun May 21 15:27:26 2017 -0400

    Get subscriptions working

commit 6bccdd7594f0a4f802212e11cc823f7a92dd9a5c
Author: James Agnew <jamesagnew@gmail.com>
Date:   Sun May 21 14:37:40 2017 -0400

    Work on subscription

commit 129f4c9d0d1e6c8fa56dbc5cf78a34c1d6659705
Author: James <jamesagnew@gmail.com>
Date:   Sat May 20 19:58:11 2017 -0400

    Work on merging subscription
2017-05-21 15:28:08 -04:00
James Agnew 5ef8b70a1f Merge branch 'master' into master 2017-05-20 18:25:02 -04:00
James 20c14fe8a6 Make sure we don't update unchanged resources in a transaction 2017-05-20 17:55:09 -04:00
James f6ee4db598 Process :missing qualifier on date params 2017-05-19 20:36:06 -04:00
James Agnew 7a24bff0eb Merge branch 'master' of github.com:jamesagnew/hapi-fhir 2017-05-19 17:15:07 -04:00
James Agnew a7bb01393a Add tests 2017-05-19 17:14:50 -04:00
James 2143c6906b Merge branch 'master' of github.com:jamesagnew/hapi-fhir 2017-05-19 10:13:45 -04:00
James 7c48eadf38 Add tests 2017-05-19 06:50:01 -04:00
James Agnew 8701e3ad61 Change millis to int for stopwatch 2017-05-18 22:06:40 -04:00
James Agnew 9ea8e7822a More fixes for chaining on custom search params 2017-05-18 17:16:30 -04:00
James Agnew d58a9e7ed4 Further fixes to searching on a chained value 2017-05-18 10:48:05 -04:00
James Agnew a92d80d860 Correctly encode extensions on the root of a resource with type
reference
2017-05-17 12:40:10 -04:00
James Agnew 7bb9e5edd9 Custom search parameters could not chain an extension param 2017-05-17 10:46:22 -04:00
James 5ac91bfb94 Add a test for custom params 2017-05-17 08:19:11 -04:00
James Agnew b2996d3550 Fix interceptor behaviour 2017-05-15 23:12:50 -04:00
James Agnew d87b4f2062 Re-enable daoconfig interceptors 2017-05-15 22:11:29 -04:00
James da2d7c3bc3 Clean up testpage overlay 2017-05-14 11:27:52 -04:00
James Agnew 5b282c3b25 Merge branch 'master' of github.com:jamesagnew/hapi-fhir 2017-05-14 06:39:37 -04:00
James Agnew 897c65e818 CLI and HttpClient cleanup 2017-05-14 06:39:23 -04:00
James cf2d38498d Header update 2017-05-10 02:12:22 -04:00
James Agnew 95659bed3a Fix tests 2017-05-10 08:11:23 +02:00
Jeff Chung 663125fe94 Resthook subscription implementation, event driven websocket subscription implementation, Tminus subscription support, notification on delete 2017-05-09 15:08:59 -07:00
James Agnew 579e5da5ff Make sure we reuse searches 2017-05-09 11:47:05 +02:00
James Agnew 262e39e57a Work on term 2017-05-06 11:41:30 +02:00
James Agnew ef772547c3 Fix an issue in the JPA server if a resource has been previously saved containing vocabulary that is no longer valid. This only really happened if you were using a non-final version of FHIR (e.g. using DSTU3 before it was finalized) but if you were in this situation, upgrading HAPI could cause you to have old codes that no longer exist in your database. This fix prevents these from blocking you from accesing those resources. 2017-05-06 10:51:17 +02:00
James Agnew e53d747f2b Get large searches working on Oracle 2017-05-05 15:45:45 +02:00
James 3780248a2f Update JPA defs based on new unit test 2017-05-04 06:56:28 -04:00
James Agnew fdd82e0b2a Shorten column names in Search table for JPA 2017-05-04 05:51:02 -04:00
James Agnew c5c6c5eff6 Fix deadlock regression in JPA 2.5-SNAPSHOT 2017-04-29 07:20:43 -04:00
James f21ab8bfe6 Add synchronization to SP registry 2017-04-24 07:40:53 -04:00
James Agnew 93b61aac90 Force resource updates when reindexing 2017-04-23 22:20:58 -04:00
James bb9cd7c198 Add configuration property to DSTU3 FhirInstanceValidator to allow client code to change unknown extension handling behaviour. 2017-04-23 19:28:45 -04:00
James 9c595e18f9 Ignore updates that don't actually change anything 2017-04-23 15:04:19 -04:00
James 841cfb8cf3 Fix test failures from search cleanup 2017-04-22 13:08:29 -04:00
James fa2950dacb Fix tests for expiring search results 2017-04-22 08:50:51 -04:00
James dd5580ed2d Search reuse merged in 2017-04-22 07:47:05 -04:00
James 405ac50351 Merge branch 'master' of github.com:jamesagnew/hapi-fhir 2017-04-22 06:34:36 -04:00
James c311a0b3bf Work on JPA performance 2017-04-22 06:34:24 -04:00
James Agnew c09e26e28f Clean up calls in JPA server for ID 2017-04-22 06:31:55 -04:00
James 716fa56b8f Merge branch 'jpa_perf_enhancements' 2017-04-21 06:30:22 -04:00
James Agnew 282f90d174 Perf work 2017-04-20 05:59:10 -04:00
James Agnew 552bd90d59 More perf work 2017-04-19 18:08:38 -04:00
James cc526f6d99 Upgrade to STU3 2017-04-18 21:58:23 -04:00
James Agnew 61a61cddee More perf work 2017-04-18 21:02:25 -04:00
James 077676fd03 Bring DSTU3 structs up to FHIR R3
Squashed commit of the following:

commit 65b70d30c9
Author: James <jamesagnew@gmail.com>
Date:   Tue Apr 18 07:44:08 2017 -0400

    More work on bringing structs up to date

commit 1df2de0667
Author: James <jamesagnew@gmail.com>
Date:   Tue Apr 18 07:12:45 2017 -0400

    Working

commit 9a51323e03
Author: James <jamesagnew@gmail.com>
Date:   Mon Apr 17 22:18:24 2017 -0400

    Updates to STU3

commit 40aebba0a7
Author: James <jamesagnew@gmail.com>
Date:   Mon Apr 17 18:30:26 2017 -0400

    Fix regression caused by #610
2017-04-18 07:48:38 -04:00
James 4bf97e836a Fix memory leak 2017-04-18 06:13:48 -04:00
James 7f2cf17f9f Fix perf issue 2017-04-17 17:29:32 -04:00
James 5adc09ad56 perf enhancements finally working 2017-04-17 16:56:53 -04:00
James Agnew fbbe792726 Perf work 2017-04-17 14:00:36 -04:00
James Agnew 08ec97e78a More work on perf 2017-04-16 15:57:58 -04:00
James Agnew 217d9f8176 More perf work 2017-04-16 14:46:15 -04:00
James Agnew 62ece72e6f More perf work 2017-04-16 12:08:23 -04:00
James Agnew 913fd422a1 Merge branch 'master' into jpa_perf_enhancements 2017-04-14 11:30:19 -04:00
James Agnew f6acb5633b Work on perf 2017-04-14 09:50:05 -04:00
James Agnew 54055f5bfb Support extensions pointing to references for JPA custom search params 2017-04-14 07:26:49 -04:00
James 1039bbec97 More perf work 2017-04-14 07:25:01 -04:00
James Agnew 23b7de5dd8 More perf work 2017-04-12 18:28:10 -04:00
James 81aae2b672 More perf work 2017-04-11 06:56:17 -04:00
James Agnew cba5aeb47b More perf work 2017-04-10 17:55:50 -04:00
James Agnew 0a8900ee78 Perf updates possibly working? 2017-04-10 16:29:24 -04:00
James aa02dd5037 More perf work 2017-04-10 08:05:25 -04:00
James Agnew 04468c8352 More perf work 2017-04-09 21:52:55 -04:00
James e32d6bb56e More perf work 2017-04-09 20:06:56 -04:00
James bf0f1421b3 Work on perf 2017-04-09 19:13:55 -04:00
James fa435fb8b2 More perf work 2017-04-09 11:48:56 -04:00
James Agnew c5c154346e More work on perf 2017-04-08 22:21:57 -04:00
James Agnew 801ae7cb75 NOFT test passing 2017-04-08 21:19:10 -04:00
James 90a4e2def2 More work on perf improvements 2017-04-08 19:46:51 -04:00
James Agnew 08e5681d8b Work on perf 2017-04-08 15:12:10 -04:00
James Agnew dd84fced5e Merge branch 'master' into jpa_perf_enhancements 2017-04-08 06:54:13 -04:00
James Agnew 0a61096f6f Add JPA utility method 2017-04-07 11:14:48 -04:00
James 8284fcab1b More work on performance 2017-04-07 08:37:48 -04:00
James Agnew 660c2bde72 More work on perf 2017-04-06 22:23:20 -04:00
James Agnew f48d0d677b More work on performance 2017-04-06 12:50:36 -04:00
James 1581cdf9a8 Work on perf 2017-04-04 08:26:04 -04:00