Commit Graph

2494 Commits

Author SHA1 Message Date
Grahame Grieve 275df1aba6
Merge branch 'master' into 2024-11-gg-slice-validation 2024-11-09 08:20:36 +10:30
Grahame Grieve 28b19212e4 Validate slice expressions where possible 2024-11-09 08:19:07 +10:30
dotasek 59fe0c6d20
Manage FhirRequestBuilders via ManagedWebAccess (#1788)
* WIP start moving FhirRequestBuilder to ManagedWebAccess

* Update PECodeGenerator.java

* WIP keep moving FhirRequestBuilder to ManagedWebAccess + fix some tests

* WIP move logging, retry, timeout and proxy

* WIP move accept to parameter

* WIP some HTTP Header refactoring, rename FhirRequest to HTTPRequest

* WIP fix removed import

* Tidy up code

***NO_CI***

* Fix for renamed class

* Change mem settings for build

* Adjust pipeline mem again

* Apply changes to r4b

* Actually add headers from HTTPRequest to OkHttp request

* Use ManagedFhirWebAccess in r4

* Removing leftover okttp usage

* Remove unused classes and okhttp usages and add tests for r4

* Make dstu3 use ManagedFhirWebAccess

* Make sure we get response headers

* Add test coverage (some failing) for DSTU2 ClientUtils

* Add FHIRToolingClient tests

* Use ManagedFhirWebAccess for DSTU2

* WIP restore format header tests - turns out they break

* Fix format header issues

* Switch to static fhirBuilder for all FhirRequestBuilders

+ Fix null user agent issue
+ Load ManagedWebAccess from FHIR settings
+ Add terminology servers to FhirSettings

* fix slicing by type and profile to allow multiple options per slice

* List measure choices when a match by version can't be found

* Validate fhirpath expression in slice discriminators

* Remove conflicting authorization header setting methods

* fix VSAC importer for changes to ManagedWebAccess

* Tests 1

* Rename ...AccessBuilder classes to ...Accessor

* Fix api-key token mixup, more tests

* Resolve all deletions enclosed in FIXME + fix headers in dstu2 postfeed

* More TODO erasures. Plus found missing functionality

* Move tests to utilities. Clarify missing functionality

* Clean up comments and JavaDoc

* Final rename

* update vsac access code

* Fix get bytes for -1 or chunked content

---------

Co-authored-by: Jens Kristian Villadsen <jenskristianvilladsen@gmail.com>
Co-authored-by: Grahame Grieve <grahameg@gmail.com>
Co-authored-by: Grahame Grieve <grahameg@gmail.ccom>
2024-11-08 16:42:26 -05:00
dotasek 765ba8baed Fix get bytes for -1 or chunked content 2024-11-08 15:22:50 -05:00
dotasek d724a27d95 Final rename 2024-11-08 14:35:36 -05:00
dotasek cc00bb903c Move tests to utilities. Clarify missing functionality 2024-11-08 11:26:43 -05:00
dotasek ebcbf4db49 More TODO erasures. Plus found missing functionality 2024-11-08 11:18:57 -05:00
dotasek 2bbfcb8845 Resolve all deletions enclosed in FIXME + fix headers in dstu2 postfeed 2024-11-08 11:08:06 -05:00
dotasek 822f0866b4 Fix api-key token mixup, more tests 2024-11-07 18:07:23 -05:00
dotasek e9917defb0 Rename ...AccessBuilder classes to ...Accessor 2024-11-07 17:53:14 -05:00
dotasek 4592dc1a82 Tests 1 2024-11-07 17:42:32 -05:00
dotasek 2c57f5954e Remove conflicting authorization header setting methods 2024-11-07 15:44:25 -05:00
Grahame Grieve 0c4da028b3 fix slicing by type and profile to allow multiple options per slice 2024-11-07 22:14:49 +10:30
dotasek afd9e7a471 Merge remote-tracking branch 'origin/master' into do-20241021-tx-auth 2024-11-06 19:19:53 -05:00
dotasek b6ef81c9f3 Switch to static fhirBuilder for all FhirRequestBuilders
+ Fix null user agent issue
+ Load ManagedWebAccess from FHIR settings
+ Add terminology servers to FhirSettings
2024-11-06 09:47:27 -05:00
dotasek e45c0b2bf0 Merge remote-tracking branch 'origin/master' into do-20241021-tx-auth 2024-11-05 10:51:21 -05:00
dotasek ac7c7332d3 Use ManagedFhirWebAccess for DSTU2 2024-11-04 17:49:31 -05:00
Grahame Grieve ada49aee5b More json parsing improvements 2024-11-04 20:25:30 +10:30
Grahame Grieve c6e5521f4a Merge remote-tracking branch 'origin/master' 2024-11-04 17:45:58 +10:30
Grahame Grieve c06051838f
Merge pull request #1763 from alfy91/dev-fix_json_validation
fix parenthesis matching for JSON validation.
2024-11-04 17:45:46 +10:30
mrunibe 8d780e0784 hapifhir#1699 set index when adding children
instead of calling numberChildren() recursively whenever an element is
added.
2024-11-02 18:25:25 +01:00
Grahame Grieve 8bf76f151d validate min-length when found in extension 2024-11-02 19:19:32 +10:30
dotasek bdc02a5622 Merge remote-tracking branch 'origin/master' into do-20241021-tx-auth 2024-11-01 09:16:36 -04:00
Grahame Grieve 4db933235a PECodeGenerator fixes 2024-11-01 23:11:45 +10:30
dotasek c5aaf43121 Make sure we get response headers 2024-10-30 19:08:38 -04:00
Grahame Grieve 8ceb1024c0 Update output from tx-tester to include release ready statement 2024-10-30 21:07:32 +10:30
dotasek fe58a8a2c5 Actually add headers from HTTPRequest to OkHttp request 2024-10-29 11:09:47 -04:00
dotasek f82f8764cf Tidy up code
***NO_CI***
2024-10-25 17:01:09 -04:00
dotasek 03b0c163be Merge branch 'master' into do-20241021-tx-auth 2024-10-25 13:56:06 -04:00
dotasek 0b45b0b882 WIP some HTTP Header refactoring, rename FhirRequest to HTTPRequest 2024-10-25 13:55:33 -04:00
dotasek b33de12e49 WIP move accept to parameter 2024-10-24 13:57:51 -04:00
markiantorno 54d239a38a Updating version to: 6.4.1-SNAPSHOT and incrementing test cases dependency. 2024-10-24 14:15:50 +00:00
markiantorno 26c445c8fc Release: v6.4.0
## Validator Changes

* Improve warning messages about collections in SQL ViewDefinitions
* Fix type evaluation of .item() in FHIRPath
* Revise message about unknown usage context on additional binding
* Add support for code generation
* Add check for # in CanonicalResource.version
* Fix problem parsing urls in cds-hooks formats
* Fix issues with output folder running tx tests
* Fix bug evaluating resolve() in contained resources when doing slicing

## Other code changes

* Fix NPE processing markdown
* Capture missing snapshot generation messages
* Track OID status
* Improve rendering of coded values
* update tests for changes to PE code generation
* Tx Tests: Add support for special header on specific tests
* Tx Tests: Fix framework to handle diagnostics correctly
* Tx Tests: check http code in tx test cases
* Add support for NCI code rendering
* Adding missing lombok annotation (cannot build without it from scratch) (#1785)
* Remove Encounter Renderer
* Profile code generation fixes
* Add r4 code gen classes
* Draft work for tx server authentication (not landed yet)
* Move XXE safe SAXParserFactory and XMLReader instantiation to XMLUtil
* Bump commons-compress version
***NO_CI***
2024-10-24 13:30:23 +00:00
Grahame Grieve 89be42a649 Merge remote-tracking branch 'origin/master' 2024-10-24 07:16:05 +10:30
dotasek ddb0a661dd Merge branch '2024-10-gg-tx-server-auth-1' into do-20241021-tx-auth 2024-10-23 11:55:58 -04:00
dotasek fdbf0da576 WIP move logging, retry, timeout and proxy 2024-10-23 11:55:27 -04:00
Grahame Grieve 77580465c7 revise message about unknown usage context on additional binding 2024-10-23 22:59:32 +10:30
Grahame Grieve d652aa2f30 Fix NPE processing markdown 2024-10-23 22:19:08 +10:30
dotasek a94e1bc2af WIP keep moving FhirRequestBuilder to ManagedWebAccess + fix some tests 2024-10-22 17:33:50 -04:00
dotasek 435dbbec9b WIP start moving FhirRequestBuilder to ManagedWebAccess 2024-10-21 17:19:53 -04:00
Grahame Grieve d6c3a9df0b Add support for NCI code rendering 2024-10-22 05:16:45 +10:30
Grahame Grieve d613a0cb6c Add check for # in CanonicalResource.version 2024-10-18 21:58:02 +08:00
Grahame Grieve bed070c736 update note about server type 2024-10-18 21:16:12 +08:00
Grahame Grieve 17afe7c7e6 missed code 2024-10-18 20:51:03 +08:00
Grahame Grieve cb0759cc00 fix npe in server auth functionality 2024-10-18 20:50:26 +08:00
Grahame Grieve 242bc02372 fix 2024-10-18 16:42:28 +08:00
Grahame Grieve 5117b57305 draft work for tx server authentication 2024-10-18 15:22:09 +08:00
dotasek f0a25dabe3 Move XXE safe SAXParserFactory and XMLReader instantiation to XMLUtil 2024-10-17 15:46:05 -04:00
dotasek 2d80a09deb Merge remote-tracking branch 'origin/master' into do-20241009-documentbuilderfactory-refactor 2024-10-16 11:59:24 -04:00
markiantorno cabee9a341 Updating version to: 6.3.33-SNAPSHOT and incrementing test cases dependency. 2024-10-14 06:03:42 +00:00
markiantorno 54bf319161 Release: v6.3.32
## Validator Changes

* Fix validation issue with open-choice questions in R4 questionnaires
* Add command line parameter ```-tx-routing```
* Add command line parameter ```-clear-tx-cache```
* Add command line parameter ```-advisor-file```

## Other code changes

* Render extensions on some data types
* Fix rendering of complex data types when doing profile rendering
***NO_CI***
2024-10-14 05:18:21 +00:00
Grahame Grieve 3b8b2a94c3 Fix validation issue with open-choice questions in R4 questionnaires 2024-10-14 09:02:52 +08:00
markiantorno a7e216e2c3 Updating version to: 6.3.32-SNAPSHOT and incrementing test cases dependency. 2024-10-10 14:35:11 +00:00
markiantorno 0388bd0835 Release: v6.3.31
## Validator Changes

* Don't send expansion to tx server if there's a compose when sending value sets
* Better handling of error messages from terminology servers
* Stop hitting VSAC server directly

## Other code changes

* Add support for $id$ in terminology tests
* Move new documentbuilderfactory calls to XMLUtils (Security)
***NO_CI***
2024-10-10 13:54:40 +00:00
Grahame Grieve c7ccbb0110 more work on http client 2024-10-10 19:29:58 +08:00
Grahame Grieve cacce9b05e fix up processing of server responses 2024-10-09 23:10:09 +08:00
dotasek 7ede053a5f Move new documentbuilderfactory calls to XMLUtils 2024-10-09 09:26:41 -04:00
markiantorno c030740d9e Updating version to: 6.3.31-SNAPSHOT and incrementing test cases dependency. 2024-10-08 15:52:36 +00:00
markiantorno ad0af19fb3 Release: v6.3.30
## Validator Changes

* Show message ids in validator (-show-message--ids)
* Fix bug where message id not showing for slicing messages
* Add advisor documentation (not yet functional)
* Fix issue checking package currency for #current packages
* Add warning when code system is marked complete but has no content
* Fix bug processing adding discriminators in derived profiles
* Break valueset concept validation into multiple smaller batches for performance reasons

## Other code changes

* More work on translations in IGs
* Override inheritance of HAPI's old maven-compiler-plugin
* do not use loadPackageFromCacheOnly from outside cache manager
* Fix issues with rendering example scenario
* refactor sql view validation to fix NPE
* Fix misc warnings flagged by builds (#1772) + TRIVY typo
* Bump codeql actions to v3
* Bump checkout action to v4
* Bump commons.io to 2.14.0 (#1771)
* Workaround for ghcr rate limiting of trivy db downloads (#1770)
* Add VSACfinder (template for package analysis)
* Fix github urls
* Spelling fixes
***NO_CI***
2024-10-08 15:04:29 +00:00
dotasek 093fbbc0f3
maven-compiler-plugin maintenance (#1731)
* Override inheritance of HAPI's old maven-compiler-plugin

and stop using deprecated forceJavacCompilerUse

* Take checkstyle plugin out of default build

* Use less for initial JVM opts (maybe forked compilers will need this)

* Try on a mac?

* Report free space, add MAVEN_OPTS

* No MAVEN_OPTS?

* Back to ubuntu

* Try some compiler args and max mem

* Try some MaxRamPercentage on surefire too

* Try 75.0 MaxRamPercentage

* 60?

* Update surefire version, even less Xmx

* Revert I18nBase style fix (get tests to pass, apply later)

* Now that memory is less of an issue, try checkstyle again

* Fix missing single quote

* Try 50% of 7G for Xmx
2024-10-07 11:01:08 -04:00
Grahame Grieve cd7e579f5e
Merge pull request #1768 from hapifhir/2024-10-gg-validation-fixes
2024 10 gg validation fixes
2024-10-06 18:30:24 +08:00
Grahame Grieve ba108321e3
Merge pull request #1755 from ahenket/master
Updated for 3 missing nl validator translations
2024-10-06 17:57:19 +08:00
Grahame Grieve 837aa319c0 do not use loadPackageFromCacheOnly from outside cache manager 2024-10-05 06:41:33 +08:00
Grahame Grieve 0a03628e97 more work on translations in IGs 2024-10-05 06:40:51 +08:00
Grahame Grieve 43b85c8108 Add warning when code system is marked complete but has no content 2024-10-05 06:40:05 +08:00
Alfonso 29484b2927 fix parenthesis matching for JSON validation. 2024-10-02 10:19:12 +02:00
Elliot Silver 7022298958 add missing description to ci-build package entry 2024-10-01 18:10:44 -07:00
Grahame Grieve 6890349be2 spelling fixes 2024-09-30 08:33:02 +10:00
Grahame Grieve d29926b4a5 Fix github urls 2024-09-30 08:31:28 +10:00
markiantorno e8a0bba072 Updating version to: 6.3.30-SNAPSHOT and incrementing test cases dependency. 2024-09-26 12:30:18 +00:00
markiantorno 53ec745184 Release: v6.3.29
## Validator Changes

* remove spurious logging statement

## Other code changes

* no changes
***NO_CI***
2024-09-26 11:44:41 +00:00
markiantorno 8358354d2f Updating version to: 6.3.29-SNAPSHOT and incrementing test cases dependency. 2024-09-25 21:46:09 +00:00
markiantorno 569fe4b697 Release: v6.3.28
## Validator Changes

* Validator supports R6 from now on (using last stable release)
* Set default language to tag not display
* Handle tx server issues better
* Do not use server piecemeal when validating complex value sets
* Add support for -txCache parameter

## Other code changes

* Add support for R6 to R4 version enumeration
* Fix SCT link to include version and point to the right place
* Add response time to tx log
* Allow for code to turn off use of cache-id on tx interface (for debugging)
* Support n/a for tx cache folder
* Update tx cache for tests
* Add more logging for too costly validation
* Fix xml annotation suppression
***NO_CI***
2024-09-25 21:01:00 +00:00
Grahame Grieve b05d4b35ea Handle tx server issue 2024-09-24 20:33:55 -04:00
Grahame Grieve a1f014730e Add response time to tx log 2024-09-24 20:25:02 -04:00
Alexander Henket 36247f5229 Update missing 3 translations 2024-09-24 09:57:07 -04:00
Grahame Grieve b37073592b set default language to tag not display 2024-09-23 09:12:17 -04:00
markiantorno be8944ab94 Updating version to: 6.3.28-SNAPSHOT and incrementing test cases dependency. 2024-09-22 18:36:30 +00:00
markiantorno 102e755283 Release: v6.3.27
## Validator Changes

* Work around problem with language value set being marked experimental
* Fix validation id/idref to resolve in document if in a document
* Fix various issues rendering and validating additional bindings with usage contexts
* Upgrade lock management in Package Cache

## Other code changes

* Fix case typo on Consent.provision in R4
* Fix R3 Quantity.copyValues()
* Remove debugging code
* Add more debugging to validation failure
* Add support for active only to VSAC importer
* Add r4b support to Package Version Generation
* Fix argument confusion in format in time validation
* Added support for tracking whether elements are ellipsed and for rendering accordingly
***NO_CI***
2024-09-22 17:51:33 +00:00
Grahame Grieve 6314ad61bb
Merge pull request #1729 from hapifhir/EllipseSupport
Added support for tracking whether elements are ellipsed and for rend…
2024-09-22 08:51:39 -04:00
Grahame Grieve ce49473e07
Merge pull request #1745 from hapifhir/do-20240909-package-lock-cleanup
Package Cache lock cleanup
2024-09-22 08:00:42 -04:00
Grahame Grieve e76c6e1da9 Merge remote-tracking branch 'origin/master' 2024-09-22 06:41:41 -04:00
Grahame Grieve 3cec189333 Fix id/idref to resolve in document if in a document 2024-09-22 06:40:15 -04:00
Grahame Grieve fedf7e9e6d Add more debugging to validation failure 2024-09-22 06:39:28 -04:00
Grahame Grieve 8cfcbf389e Fix various issues rendering and validating additional bindings with usage contexts 2024-09-21 00:35:01 -04:00
dotasek d57008510c Use ManagedFileAccess for temp file creation 2024-09-19 13:31:38 -04:00
dotasek 356a70a845 Re-introduce sleep to lockfile creation wait. 2024-09-19 12:53:17 -04:00
dotasek c81c631ae8 Use rename to bypass windows lockfile issue 2024-09-19 12:22:29 -04:00
dotasek cce4d108ce Fix classpath on windows + workaround for edge case on lock file 2024-09-19 10:48:30 -04:00
dotasek 0fd25a6a98 Move file exists logic into onStart + move file delete before unlock 2024-09-18 19:23:00 -04:00
dotasek b30134abfc WIP Switch to apache commons instead of nio for directory monitor 2024-09-18 18:40:13 -04:00
dotasek 048aa2abe5 More testing 2024-09-18 16:07:00 -04:00
dotasek 48066859d5 Check for lock owning process when trying to fix corrupt packages 2024-09-18 11:30:59 -04:00
dotasek 9a7a843a20
Fix argument confusion in format (#1746)
* Fix argument confusion in format

* Bump test cases
2024-09-18 10:15:38 -04:00
dotasek 3d6650399c Merge branch 'master' into do-20240909-package-lock-cleanup 2024-09-18 09:29:46 -04:00
markiantorno f3bd5b9be8 Updating version to: 6.3.27-SNAPSHOT and incrementing test cases dependency. 2024-09-17 22:00:24 +00:00
markiantorno 46affee48f Release: v6.3.26
## Validator Changes

* Validate of experimental property on bindings
* Add -no-experimental-content flag
* Allow JSON named extensions to be structure types other than logical
* Process relative URLs properly in base when generating snapshots

## Other code changes

* Fix rendering path for value set references for kindling
* refactor error handling in ProfileUtilities
* Fix for NPE processing packages
***NO_CI***
2024-09-17 21:09:53 +00:00
Grahame Grieve fbfd81532d Merge remote-tracking branch 'origin/master' 2024-09-17 16:18:15 +08:00
Grahame Grieve 11efed6635 Validation of experimental property 2024-09-17 16:16:09 +08:00
dotasek a05f471c9c Allow injection of lock parameters + correct usage of locked file write 2024-09-13 16:49:46 -04:00