🔥 HAPI FHIR - Java API for HL7 FHIR Clients and Servers
Go to file
Luke deGruchy ad71755c2b
Resolve 5029 Token params with system and value longer than maximum length should be created and searched differently (#4998)
* Partial implementation after this has been paused:  Move trimming of value and system from BaseSearchParamExtractor to ResourceIndexedSearchParamToken.  Do not throw Exceptions in TokenPredicateBuilder.  Ensure that the hash computing in the search param token takes the 200+ token value into account.  Other search param tokens are not yet implemented.

* in ResourceIndexedSearchParamToken,changed hardcoded length to constant MAX_LENGTH;
in BaseSearchParamExtractor, added check in createTokenIndexIfNotBlank so that the return value is null if system or value is blank.

* added test for TokenPredicateBuilder to verify that long values exceeds the max length does not cause exception.

added test in FhirSystemDaoR4SearchTest to verify searchParamToken with longer system and value than max length can be created successfully. And hash value will be calculated before truncation

* fixed a logical error in previous commits

* changed existing tests to accommodate for the changes

* modified existing tests

* added changelog

* changed truncation method name and added comments

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

* modified changelog

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

* combined redundant tests

---------

Co-authored-by: tyner <tyner.guo@smilecdr.com>
Co-authored-by: TynerGjs <132295567+TynerGjs@users.noreply.github.com>
Co-authored-by: michaelabuckley <michaelabuckley@gmail.com>
2023-06-30 10:48:33 -04:00
.github add Adi (#4939) 2023-05-31 21:34:14 +00:00
.mvn/wrapper Update and fix maven wrapper (#2847) 2021-11-03 11:21:49 -04:00
.mvn_/wrapper Bump core to latest versions (#2154) 2020-11-03 15:43:37 -05:00
hapi-deployable-pom Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-android Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-android-realm Work on JPA 2017-02-02 06:23:28 -05:00
hapi-fhir-base Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-bom Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-checkstyle Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-cli Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-client Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-client-okhttp Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-converter Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-dist Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-docs Resolve 5029 Token params with system and value longer than maximum length should be created and searched differently (#4998) 2023-06-30 10:48:33 -04:00
hapi-fhir-jacoco Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-jaxrsserver-base Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-jpa Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-jpaserver-base Resolve 5029 Token params with system and value longer than maximum length should be created and searched differently (#4998) 2023-06-30 10:48:33 -04:00
hapi-fhir-jpaserver-elastic-test-utilities Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-jpaserver-ips Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-jpaserver-mdm Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-jpaserver-model Resolve 5029 Token params with system and value longer than maximum length should be created and searched differently (#4998) 2023-06-30 10:48:33 -04:00
hapi-fhir-jpaserver-searchparam Resolve 5029 Token params with system and value longer than maximum length should be created and searched differently (#4998) 2023-06-30 10:48:33 -04:00
hapi-fhir-jpaserver-subscription Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-jpaserver-test-dstu2 Resolve 5029 Token params with system and value longer than maximum length should be created and searched differently (#4998) 2023-06-30 10:48:33 -04:00
hapi-fhir-jpaserver-test-dstu3 Resolve 5029 Token params with system and value longer than maximum length should be created and searched differently (#4998) 2023-06-30 10:48:33 -04:00
hapi-fhir-jpaserver-test-r4 Resolve 5029 Token params with system and value longer than maximum length should be created and searched differently (#4998) 2023-06-30 10:48:33 -04:00
hapi-fhir-jpaserver-test-r4b Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-jpaserver-test-r5 Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-jpaserver-test-utilities Resolve 5029 Token params with system and value longer than maximum length should be created and searched differently (#4998) 2023-06-30 10:48:33 -04:00
hapi-fhir-jpaserver-uhnfhirtest Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-server Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-server-mdm Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-server-openapi Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-serviceloaders Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-spring-boot Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-sql-migrate Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-storage Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-storage-batch2 Reindex Batch Jobs stuck in QUEUED status after SearchParameter update (#5043) 2023-06-29 14:29:37 -04:00
hapi-fhir-storage-batch2-jobs Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-storage-batch2-test-utilities Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-storage-cr Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-storage-mdm Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-storage-test-utilities Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-structures-dstu2 Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-structures-dstu2.1 Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-structures-dstu3 Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-structures-hl7org-dstu2 Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-structures-r4 Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-structures-r4b Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-structures-r5 Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-test-utilities Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-testpage-overlay Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-validation Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-validation-resources-dstu2 Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-validation-resources-dstu2.1 Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-validation-resources-dstu3 Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-validation-resources-r4 Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-validation-resources-r4b Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-fhir-validation-resources-r5 Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-tinder-plugin Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
hapi-tinder-test Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
osgi try removing fork count from surefire (#4752) 2023-04-20 13:58:35 -04:00
src/assembly Checkstyle cleanup (#4501) 2023-02-03 09:40:32 -05:00
tests Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
vagrant Bump dependencies for CVES (#3359) 2022-02-07 07:56:25 -05:00
.editorconfig Add framework for Bulk Import (#2538) 2021-04-14 17:41:32 -04:00
.gitignore nickname svc refatoring (#5006) 2023-06-22 08:26:47 -04:00
.whitesource Add .whitesource configuration file 2021-04-29 13:42:31 +00:00
HELPWANTED.md Work on custom params 2017-02-02 20:37:58 -05:00
LICENSE.txt Add license and notice files 2015-03-25 22:32:32 -04:00
LOINC_NOTES.txt More work on loinc 2018-03-19 08:51:02 -04:00
NOTICE.txt Add license and notice files 2015-03-25 22:32:32 -04:00
README.md Improve batch2 error handling (#3482) 2022-03-26 17:40:12 -04:00
azure-pipelines.yml Server fixes from Connectathon 32 (#4838) 2023-05-15 08:28:55 -04:00
check_for_maven_updates.sh Fix up examples 2014-09-03 18:03:44 -04:00
lgtm.yml code coverage needs to run only for JACOCO PROFILE (#4230) 2022-11-02 15:34:27 -04:00
list_releases.sh Implement handleException on the server interceptor framework, as well 2014-11-07 14:26:59 -05:00
mvnw Update and fix maven wrapper (#2847) 2021-11-03 11:21:49 -04:00
mvnw.cmd Update and fix maven wrapper (#2847) 2021-11-03 11:21:49 -04:00
pom.xml Bulk export partitioning fixes (#5039) 2023-06-29 08:34:32 -04:00
release-pipeline.yml update to docker installer tool for azure broke docker in the latest version, pinning the version to previous one (#4335) 2022-12-06 18:32:42 -05:00
snapshot-pipeline.yml adding nightly build for SNAPSHOTS 2023-03-23 10:16:24 -04:00
sync.sh Update resource defs 2015-12-01 18:35:24 -05:00
sync_dstu3.sh Merge branch 'master' of github.com:jamesagnew/hapi-fhir 2016-07-01 14:31:25 -04:00
sync_ri.sh Bump to 1.0.2 FHIR definitions 2015-11-15 12:22:56 -05:00
sync_ri3.fish Bring DSTU3 structs up to FHIR R3 2017-04-18 07:48:38 -04:00
sync_ri3.sh Syn RI - Build still failing :( 2016-05-28 12:53:59 -04:00
sync_ri4.sh Squashed commit of the following: 2018-12-27 17:58:47 -05:00
sync_ri5.sh Bump core to latest versions (#2154) 2020-11-03 15:43:37 -05:00
sync_ri21.sh Update model and definitions to latest definitions 2016-01-30 11:08:16 -05:00
test-job-template.yml merge release branch to master (#4811) 2023-05-03 19:51:43 +00:00
update_version.sh Force another travis build 2015-08-05 10:38:38 -04:00

README.md

HAPI FHIR

HAPI FHIR - Java API for HL7 FHIR Clients and Servers

License

CI/CD

CI Status (master) SNAPSHOT Pipeline Current Release
Build Status Build Status Release Artifacts

Coverage and Quality

codecov Language grade: Java

Documentation and wiki

Complete project documentation is available here: http://hapifhir.io

A demonstration of this project is available here: http://hapi.fhir.org/

This project is Open Source, licensed under the Apache Software License 2.0.

Please see this wiki page for information on where to get help with HAPI FHIR.

Please see Smile CDR for information on commercial support.