🔥 HAPI FHIR - Java API for HL7 FHIR Clients and Servers
Go to file
Johnson Lu c42ecc5c08
Add error codes to all exceptions (#3278)
* Initial design of adding exception codes to exceptions

* Initial design of adding exception codes to exceptions

* change int module name to string

* add comment

* shorten message

* shorten message

* added checkstyle

* developing checker

* completed checkstyle plugin and unit test for it

* fix NPE

* fix checker so it ignores throws on exceptions that aren't new

* change parameter order in InvalidResponseException

* accept Msg.code() in any parameter since some exceptions like MessageException have the message string as the second parameter

* exclude generated files

* BIG COMMIT added error codes to all exception throws

* example test fix

* Modified tests such that the assert statements would better match the message responses.

* Modified additional tests such that the assert statements would better match the message responses.

* fix test

* merge master

* merge master

* Fourth commit of modified tests such that the assert statements would better match the message response

* Changes made to modify assert statements such that they match the new errors which now use error codes. Also changed ResourceNotFoundException to include error codes in its messages.

* Modified assert messages to better match new error codes

* Time Zone changes DRAFT. Certain tests pass in intellij and fail during mvn install

* Modified assert messages to better match new error codes

* Added comments for time zone fixes. Previous commit comment on time zone fixes was incorrect. By invaliding caches, all tests on both intellij and mvn install passed.

* Reverted changes on azure-pipelines.yml

* updated hapi-fhir version for checkstyle module

* changes to azure-pipelines.yml

* changes to azure-pipelines.yml

* change to pom.xml to include hapi-fhir-checkstyle in ALLMODULES

* changes to azure-piplines (these changes are to be reverted after testing)

* reverted changes to azure-piplines

* reverted change where hapi-fhir-checkstyle was added to pom.xml (hapi-fhir)

* Attempted fix on checkstyle build error

* modified azure-piplines.yml to change maven repository for checkstyle build

* Attempted fix on checkstyle build error

* checkstyle config location change for hapi-depoloyable-pom. (will be reverted if it does not work)

* attempted dependency add for hapi-depoloyable-pom. (will be reverted if it does not work)

* reverted changes for hapi-deployable-pom

* add javadoc

* update last code

* Attempted fix on checkstyle build error

* Finished adding in missing error codes to pass Checkstyle checks

* Test pipelining

* Fixing errors and bumping version (as suggested by Gary)

* Merge

* Fixing Checkstyle error

* Attempted fix for date error

* Add error code onto assert statement

* Add in a couple more error codes

* Fixing assert statements

* Bump to static version for dependency

* Adding error code to message

* Adding error codes to exceptions

* Adding error codes to exceptions

* Change to work with cdr branch

* Update to faulty error message

* Merge changes

* allow checkstyle pom to deploy

Co-authored-by: Ken Stevens <khstevens@gmail.com>
Co-authored-by: Simon Zuccherato <simon.zuccherato@smilecdr.com>
Co-authored-by: Predap <simon.zuccherato@gmail.com>
Co-authored-by: Predap <46201929+Predap@users.noreply.github.com>
Co-authored-by: Tadgh <garygrantgraham@gmail.com>
2022-01-31 13:10:15 -08:00
.github
.mvn/wrapper Update and fix maven wrapper (#2847) 2021-11-03 11:21:49 -04:00
.mvn_/wrapper
hapi-deployable-pom Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-android Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-android-realm
hapi-fhir-base Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-batch Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-bom Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-checkstyle Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-cli Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-client Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-client-okhttp Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-converter Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-dist Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-docs Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-jacoco Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-jaxrsserver-base Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-jpa Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-jpaserver-base Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-jpaserver-cql Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-jpaserver-mdm Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-jpaserver-model Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-jpaserver-searchparam Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-jpaserver-subscription Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-jpaserver-test-utilities Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-jpaserver-uhnfhirtest Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-narrativegenerator Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-oauth2 Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-server Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-server-mdm Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-server-openapi Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-spring-boot Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-sql-migrate Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-storage Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-structures-dstu Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-structures-dstu2 Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-structures-dstu2.1 Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-structures-dstu3 Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-structures-hl7org-dstu2 Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-structures-r4 Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-structures-r5 Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-test-utilities Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-testpage-interceptor
hapi-fhir-testpage-overlay Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-validation Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-validation-resources-dstu2 Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-validation-resources-dstu2.1 Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-validation-resources-dstu3 Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-validation-resources-r4 Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-fhir-validation-resources-r5 Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-tinder-plugin Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
hapi-tinder-test Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
osgi 2540 - Upgraded the fhir_core_version from 5.3.0 to 5.3.10 (#2545) 2021-04-29 15:00:37 -04:00
src Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
tests Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
vagrant Multiple improvements (#2997) 2021-10-28 15:13:16 -04:00
.editorconfig
.gitignore
.whitesource Add .whitesource configuration file 2021-04-29 13:42:31 +00:00
HELPWANTED.md
LICENSE.txt
LOINC_NOTES.txt
NOTICE.txt
README.md
azure-pipelines.yml Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
check_for_maven_updates.sh
lgtm.yml Credit for #2623 2021-05-02 17:20:16 -04:00
list_releases.sh
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 Add error codes to all exceptions (#3278) 2022-01-31 13:10:15 -08:00
snapshot-pipeline.yml Bump compiler plugin (#3313) 2022-01-19 10:09:21 -05:00
sync.sh
sync_dstu3.sh
sync_ri.sh
sync_ri3.fish
sync_ri3.sh
sync_ri4.sh
sync_ri5.sh
sync_ri21.sh
update_version.sh

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

Test Coverage

codecov

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.