Commit Graph

7110 Commits

Author SHA1 Message Date
Ken Stevens 3d3242cf9a
Resource change listener (#2191)
* init rev

* fix build

* Tweaked the POM config settings and also added some dependency exclusions (commented out for now).

* More re-factoring of the CQL Unit Tests.

* Removed a LogMessages.html file and a minor Unit Test change.

* Unit Tests.

* added debug logging to troubleshoot the dao that has no name

* added debug logging to troubleshoot the dao that has no name

* workaround to get past null dao resourceName issue

* fix jsons to get test to pass.  Test still fails with library id problem

* gitignore

* gitignore

* test passes!  Woohoo!

* undo troubleshooting logging

* added timer and logging.

* added asserts and time multiple evaluations and measure the average

* readme

* adding explanations

* added more explanatory notes

* measure 2 patients

* move pom to use cqf snapshot

* roughed out cache

* roughed out cache

* Added code to VersionChangeCache class.

* added tests

* added polling test

* wrote init version

* wrote init version

* optimized versioncache

* worked on getting tests to pass

* redesigned interfaces

* all tests pass

* fixmes

* fixmes

* rename param

* Added Unit Tests.

* javadoc

* Fixed the 2-Patient Unit Test.

* More Unit Test work.

* make ResourceVersionMap immutable

* Fixed a Unit Test that was failing intermittently by adding a new way to refresh the cache.

* Use a new method called doRefreshAllCaches(0) to force a refresh and have all Listeners called immediately.

* Cleaned up IVersionChangeListenerRegistry interface to make methods more clear and resolved all Unit Tests.

* disabled tests

* disabled tests

* removed unused test method

* fixed refresh logic and added asserts

* moved cache so it can be used by searchparamregistry

* Updated the Cql Unit Tests to be properly configured for Dstu3 or R4.

* started rewriting SearchParamRegistryImpl to use new cache
added init method to listener interface

* added fixmes

* adding tests

* tests pass

* added tests

* Fixed the way CqlProviderFactory Autowires Beans so it can work with both Dstu3 and R4 contexts.

* moar tests

* fix test

* work tests

* reverting unneccessary refactors

* undo unneccessary import changes to reduce MR size

* undo unneccessary import changes to reduce MR size

* Unit Test fixes...more to come...

* add unregister

* fix tests

* Changed ResourceVersionCache to use a Map of Maps.

* searchparam test

* test passes

* resolved fixme

* fixmies

* strengthen test asserts

* More Unit Test changes and added some FIMXME items.

* changed from long to changeresult

* renamed VersionChange -> ResourceChange

* fixed delete bug

* organize imports

* fix test

* add update test

* add test reset function

* fix stack overflow

* fix startup race condition (might still be intermittent)

* found the problem.  delete doesn't work because we can't look up the deleted resource to find out what its name is

* fixed regression

* abandoned idea of incrementally updating searchparam registry.  Rebuilding every time--it doesn't change that often.

* fix test

* begin with failing test

* test passes

* fixmes and javadoc

* fix test

* fixme

* fix test

* whack-a-mole.  Either subs pass or cql passes.  Something's fishy with the FhirContext

* fix subscription test initialization

* fix method name

* Re-factored the CqlProvider Unit Tests.

* changed ResourceChange API

* add interface

* add interface

* fix test

* add schedule test

* add doc

* init rev

* FIXME

* modify FhirContext change

* change fhirContext.getResourceTypes to lazy load

* converted subscriptions

* converted subscriptions

* begin with failing test

* test passes

* fix test

* test coverage

* test coverage

* test coverage

* test coverage

* good coverage now

* pre-review cleanup.  I think I found a bug.

* moved cache into listener entry
tests pass with fixmes

* fix test

* fix test

* fix test

* fixme

* FIXMEs

* merge cache and registry

* method reorg

* javadoc

* javadoc done.  all FIXMEs resolved.

* change log

* changes needed by cdr

* spring config cleanup

* james feedback

* james feedback

* might not work. Try moving resourcechangeconfig into searchparam config

* merge ResourceChangeListenerRegistryConfig.java into SearchParamConfig

* fix test

* fix SubscriptionLoader

* fix SubscriptionLoader

* create ResourceVersionMap from resources

* added cache handle interface

* fix test

* javadoc

* fix test

* fix test

* James feedback: clone searchparametermap

* fix startup

* fix test

* fix test

* fix intermittent

* pre-review cleanup

* FIXME

* final FIXME yay!

* Address a couple of my own reviw comments

Co-authored-by: Kevin Dougan <kevin.dougan@smilecdr.com>
Co-authored-by: jamesagnew <jamesagnew@gmail.com>
2020-11-29 19:42:40 -05:00
James Agnew 1e5def260c
Bump woodstox version (#2199) 2020-11-27 19:49:06 -05:00
jamesagnew b85fd42ead Add changelog validator 2020-11-27 16:40:31 -05:00
jamesagnew 835c450b63 Fix changelog file 2020-11-27 16:23:57 -05:00
jamesagnew fbbba11417 Formatting only 2020-11-27 16:16:01 -05:00
IanMMarshall 722e24d80c
Merge pull request #2175 from jamesagnew/ft-fix-expend-filter-contains-issue
Fixed expand filter issue
2020-11-27 14:47:05 -05:00
ianmarshall bbba4428ee Changed name for new tokenFilter to make it unique. 2020-11-27 11:38:24 -05:00
ianmarshall be88a256d0 Changed name for new tokenFilter to make it unique. 2020-11-27 11:32:08 -05:00
Frank Tao 08a59413c6 Remove unused import 2020-11-26 20:58:18 -05:00
Frank Tao 014e2ba9cb Rework on the expand issue replaced the EdgeAnalyzer 2020-11-26 20:37:51 -05:00
Frank Tao a511543e77 Merge branch 'master' into ft-fix-expend-filter-contains-issue
# Conflicts:
#	hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/FhirResourceDaoValueSetDstu3.java
#	hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/r4/FhirResourceDaoValueSetR4.java
#	hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/r5/FhirResourceDaoValueSetR5.java
#	hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/provider/dstu3/ResourceProviderDstu3ValueSetTest.java
2020-11-26 18:47:10 -05:00
jamesagnew da75ff8da2 Credit for #2197 2020-11-26 10:08:56 -05:00
swagers cb693afe25
Changed the names URIs and IDs of a few LOINC concept maps (#2197)
Changed to match what LOINC uses for these concept maps

Co-authored-by: Steven Wagers <swagers@regenstrief.org>
2020-11-26 10:06:17 -05:00
James Agnew fb8658da70
Always apply vs filters correctly (#2195)
* Always apply valueset filters correctly

* Test fix

* Testfix

* Test fix

* Add changelog

* Test fix
2020-11-24 18:12:02 -05:00
Frank Tao 3d9e0aeac1 Added more test cases 2020-11-23 21:32:46 -05:00
Frank Tao 5a05513250 Revoked filter op to EQUAL and enabled NGramAnalyzer 2020-11-21 14:46:26 -05:00
Tadgh 702cc7762d
2185 doc updates for multitenancy (#2187)
* update to docs to indicate requests to default partition

* update operation docs
2020-11-20 11:08:19 -05:00
Tadgh 99d2bf1f0e
Merge pull request #2170 from jamesagnew/2169-docs-hapi-fhir-cli
2169 - Fixed hapi-fhir-cli doc issues.
2020-11-20 10:43:46 -05:00
Tadgh 8647502da1
update to docs to indicate requests to default partition (#2186) 2020-11-20 10:32:59 -05:00
Frank Tao 5b471602c6 Merge branch 'master' into ft-fix-expend-filter-contains-issue 2020-11-20 10:29:58 -05:00
Frank Tao 2d2add60ec Updated the changelog 2020-11-20 09:02:40 -05:00
James Agnew a01f5ae906
Fix subsumption test direction (#2183)
* Fix subsumption test direction

* Add changelog

* Test fixes
2020-11-19 21:48:54 -05:00
James Agnew 8b65db0c98
Improve error message on unique constraint violation (#2182)
* Improve error message on unique constraint violation

* Add changelog

* Test fixes

* Test fix
2020-11-19 21:20:59 -05:00
Frank Tao e551f1837e Updated based on review 2020-11-19 20:22:13 -05:00
dependabot[bot] 27cff8153b
Bump jetty_version from 9.4.30.v20200611 to 9.4.34.v20201102 (#2176)
Bumps `jetty_version` from 9.4.30.v20200611 to 9.4.34.v20201102.

Updates `jetty-http` from 9.4.30.v20200611 to 9.4.34.v20201102
- [Release notes](https://github.com/eclipse/jetty.project/releases)
- [Commits](https://github.com/eclipse/jetty.project/compare/jetty-9.4.30.v20200611...jetty-9.4.34.v20201102)

Updates `jetty-servlets` from 9.4.30.v20200611 to 9.4.34.v20201102
- [Release notes](https://github.com/eclipse/jetty.project/releases)
- [Commits](https://github.com/eclipse/jetty.project/compare/jetty-9.4.30.v20200611...jetty-9.4.34.v20201102)

Updates `jetty-io` from 9.4.30.v20200611 to 9.4.34.v20201102
- [Release notes](https://github.com/eclipse/jetty.project/releases)
- [Commits](https://github.com/eclipse/jetty.project/compare/jetty-9.4.30.v20200611...jetty-9.4.34.v20201102)

Updates `jetty-continuation` from 9.4.30.v20200611 to 9.4.34.v20201102

Updates `jetty-security` from 9.4.30.v20200611 to 9.4.34.v20201102
- [Release notes](https://github.com/eclipse/jetty.project/releases)
- [Commits](https://github.com/eclipse/jetty.project/compare/jetty-9.4.30.v20200611...jetty-9.4.34.v20201102)

Updates `jetty-servlet` from 9.4.30.v20200611 to 9.4.34.v20201102
- [Release notes](https://github.com/eclipse/jetty.project/releases)
- [Commits](https://github.com/eclipse/jetty.project/compare/jetty-9.4.30.v20200611...jetty-9.4.34.v20201102)

Updates `jetty-server` from 9.4.30.v20200611 to 9.4.34.v20201102
- [Release notes](https://github.com/eclipse/jetty.project/releases)
- [Commits](https://github.com/eclipse/jetty.project/compare/jetty-9.4.30.v20200611...jetty-9.4.34.v20201102)

Updates `jetty-util` from 9.4.30.v20200611 to 9.4.34.v20201102
- [Release notes](https://github.com/eclipse/jetty.project/releases)
- [Commits](https://github.com/eclipse/jetty.project/compare/jetty-9.4.30.v20200611...jetty-9.4.34.v20201102)

Updates `jetty-webapp` from 9.4.30.v20200611 to 9.4.34.v20201102
- [Release notes](https://github.com/eclipse/jetty.project/releases)
- [Commits](https://github.com/eclipse/jetty.project/compare/jetty-9.4.30.v20200611...jetty-9.4.34.v20201102)

Updates `jetty-xml` from 9.4.30.v20200611 to 9.4.34.v20201102
- [Release notes](https://github.com/eclipse/jetty.project/releases)
- [Commits](https://github.com/eclipse/jetty.project/compare/jetty-9.4.30.v20200611...jetty-9.4.34.v20201102)

Updates `websocket-api` from 9.4.30.v20200611 to 9.4.34.v20201102

Updates `websocket-client` from 9.4.30.v20200611 to 9.4.34.v20201102

Updates `websocket-server` from 9.4.30.v20200611 to 9.4.34.v20201102

Updates `jetty-maven-plugin` from 9.4.30.v20200611 to 9.4.34.v20201102
- [Release notes](https://github.com/eclipse/jetty.project/releases)
- [Commits](https://github.com/eclipse/jetty.project/compare/jetty-9.4.30.v20200611...jetty-9.4.34.v20201102)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-19 20:20:01 -05:00
IanMMarshall 275b25c2cc
Merge pull request #2180 from jamesagnew/im_20201118_fix_package_load_when_no_desc
Fixed NPE in package loader when package description is null
2020-11-19 11:13:57 -05:00
ianmarshall eb0f5e1e5e Add changelog. 2020-11-19 09:37:34 -05:00
ianmarshall d99db2dbcc Fixed NPE in package loader when package description is null. Also renamed tests that would have caught this problem sooner. 2020-11-18 22:37:35 -05:00
Frank Tao 878c22192e Added expand filter impl for R5 and dstu3, changed the filter logic 2020-11-18 22:26:21 -05:00
Frank Tao f65fdb0d52 Merge branch 'master' into ft-fix-expend-filter-contains-issue 2020-11-18 19:54:01 -05:00
jamesagnew e8f2bca6ef Add 5.3.0 constant 2020-11-18 14:55:45 -05:00
jamesagnew 0c31741eec Version bump to 5.3.0-SNAPSHOT 2020-11-18 14:52:43 -05:00
jamesagnew 0336e59591 Add changelog 2020-11-18 14:26:37 -05:00
jamesagnew 4d441ad7f2 Version bump to 5.2.0 2020-11-18 06:30:20 -05:00
IanMMarshall 7532313c0f
Change to not set ValueSet expansion component parameter id HibernateSearch not enabled. (#2178)
Co-authored-by: ianmarshall <ian@simpatico.ai>
2020-11-17 07:46:55 -05:00
Frank Tao 78f730c4ca Fixed expend filter issue 2020-11-15 22:39:14 -05:00
Tadgh d15a300486
Merge pull request #2174 from jamesagnew/feature/2172-update-tag-docs
Feature/2172 update tag docs
2020-11-13 17:43:09 -05:00
jamesagnew 1db0944243 Improve logging for terminology ingestion 2020-11-13 17:25:14 -05:00
Tadgh 1048df4d87
Update rest_operations.md 2020-11-13 15:54:43 -05:00
Tadgh 8f95ad4c0f fix typo :) 2020-11-13 15:35:06 -05:00
Tadgh 16003162fd Address #2172 2020-11-13 15:27:58 -05:00
IanMMarshall ed953d82f8
Rename index that was recently changed. (#2173)
* Restoring name of index that was changed in migration task.

* Rename TermValueSetConcept index that was recently changed.

Co-authored-by: ianmarshall <ian@simpatico.ai>
2020-11-13 14:12:25 -05:00
Kevin Dougan 50328abff1 2169 - Fixed hapi-fhir-cli doc issues. 2020-11-10 15:50:43 -05:00
IanMMarshall bf9e02bc16
Merge pull request #2164 from jamesagnew/im_20201029_ig_package_long_description
Truncate package descriptions that are longer than 200 characters.
2020-11-10 12:01:53 -05:00
James Agnew 63b7b379c2
Improve ValueSet filtering (#2162)
* Improve filter search

* Filter improvements

* Tests passing

* Test fixes

* Fix transaction filter

* Add changelog

* Test fix

* Update hapi-fhir-base/src/main/resources/ca/uhn/fhir/i18n/hapi-messages.properties

Co-authored-by: Diederik Muylwyk <diederik.muylwyk@gmail.com>

* Update hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/term/BaseTermReadSvcImpl.java

Co-authored-by: Diederik Muylwyk <diederik.muylwyk@gmail.com>

* Resolve FIXME

* Test fix

* Update hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/term/ValueSetExpansionR4Test.java

Co-authored-by: Diederik Muylwyk <diederik.muylwyk@gmail.com>

Co-authored-by: Diederik Muylwyk <diederik.muylwyk@gmail.com>
2020-11-10 11:01:13 -05:00
ianmarshall 40c34a4518 Truncate package descriptions that are longer than 200 characters. 2020-11-09 16:36:37 -05:00
ianmarshall 881193cf24 Truncate package descriptions that are longer than 200 characters. 2020-11-09 16:19:05 -05:00
jamesagnew 4f6be9d9a7 Reduce test timeout 2020-11-09 14:46:15 -05:00
jamesagnew 22fe9420ac Add tests 2020-11-06 09:10:47 -05:00
Frank Tao ce1caee9fa
Feature 2020 10 28 reverse chain (#2160)
* Added test cases for multiple '_has'

* Fixed composite search for the new SearchBuilder

* Added more test cases
2020-11-05 05:27:11 -05:00