Commit Graph

1071 Commits

Author SHA1 Message Date
Grahame Grieve 3dfce595fe fix typo in error message 2022-10-13 06:49:20 +11:00
Grahame Grieve a15b57ef9a Improved support for Logical Models (inc. cds-hooks) 2022-10-13 06:48:29 +11:00
Grahame Grieve 04869062ee Fix errors on ShareableMeasure Validation 2022-10-10 17:05:29 +11:00
Grahame Grieve e1657c66b0 refactor IWorkerContext 2022-10-07 21:50:59 +11:00
Grahame Grieve 9195d7ae8b rendering improvements 2022-10-06 12:54:45 +11:00
Grahame Grieve c45a61a0be Add test case for xml parser problem 2022-10-05 21:20:04 +11:00
Grahame Grieve ac3d4add7e fix error in cnl-5 in R5 ballot 2022-10-05 21:19:52 +11:00
Grahame Grieve c7ef0a3ac6 Add support for http://hl7.org/fhir/StructureDefinition/structuredefinition-dependencies to validator 2022-10-05 21:19:30 +11:00
Grahame Grieve 456ab88b9c validation fixes 2022-10-04 18:50:07 +11:00
Grahame Grieve 86a3a56c42 better handling for sax errors and jvm issue 2022-10-04 16:55:17 +11:00
Grahame Grieve 93ec88ee24 fix up test case dependency 2022-10-04 15:20:21 +11:00
Grahame Grieve 098b2895bc Markdown changes for FHIR-38714 + fix up test framework for validator to use OperationOutcome 2022-10-04 14:06:30 +11:00
Grahame Grieve 318c8e031e fix compile problem 2022-10-01 03:35:53 +10:00
Grahame Grieve 7950ded6e4 Merge remote-tracking branch 'origin/master' 2022-10-01 02:38:17 +10:00
Grahame Grieve 7f1e10a1e9 Don't validate contained resources against Shareable* Profiles, + validate ShareableMeasure 2022-10-01 02:38:10 +10:00
dotasek 6ffb981156
Warn CLI users if file.encoding is not UTF-8 (#933)
* Print warning for wrong file encoding

* Gentle refactor

Co-authored-by: dotasek <david.otasek@smilecdr.com>
2022-09-28 15:09:04 -04:00
Grahame Grieve a1d97b6ed4 fix test dependency 2022-09-27 08:46:49 -04:00
Grahame Grieve 2285da5f8d minor validation improvements 2022-09-26 23:49:32 -04:00
Grahame Grieve 0b40db7f0b
Merge pull request #929 from hapifhir/gg-2022-09-cs_vs
Gg 2022 09 cs vs
2022-09-23 12:14:22 -04:00
dotasek c51f7c2327
Enhanced testing for character encoding issues (#928)
* Redo pull pipeline to check for alternate file encodings

* Fix jdkVersion references in pull-request-pipeline

* Failing test for Cp1252 encoded Java environments

* Fix file encoding mistake

* Add fix + refactor test

* Backport ParserBase changes and tests to previous versions

* And I mean it, this time

* Update tx cache resources

Co-authored-by: dotasek <david.otasek@smilecdr.com>
2022-09-23 10:38:10 -04:00
Grahame Grieve 695a8610a2 fix error with code system validation messages 2022-09-23 09:33:25 -04:00
Grahame Grieve 7846ae5169 support for -forPublication parameter to validator 2022-09-20 11:42:07 -04:00
Grahame Grieve 204157c1ec update validator rules for supplements 2022-09-20 08:29:45 -04:00
Grahame Grieve 689b9a57b1 check ShareableValueSet and shareableCodeSystem profiles for publishing resources 2022-09-20 04:52:01 -04:00
Grahame Grieve df0bc26d47 rationalise extensions 2022-09-17 14:54:20 -04:00
Grahame Grieve 2045b8eee6 update tests again 2022-09-17 09:17:11 -04:00
Grahame Grieve 43420db756 fix error with IG constraint 2022-09-15 09:00:51 +02:00
Grahame Grieve dd7b44d3d8 more type characteristic fixes 2022-09-11 07:30:41 +10:00
Grahame Grieve 5f4a319801 more type characteristics fixing 2022-09-10 15:02:59 +10:00
Grahame Grieve 7214a32209 more type characteristics work 2022-09-09 20:57:30 +10:00
Grahame Grieve 7dd2f3edf6 r4b snapshot tests 2022-09-07 21:56:24 +10:00
Grahame Grieve fffe96c765 fix more issues with type characteristics 2022-09-07 17:31:27 +10:00
Grahame Grieve 6cf6d139c4 fix up for r5 tests 2022-09-07 08:12:20 +10:00
Grahame Grieve 1917476135 new R5 release coming 2022-09-06 20:28:04 +10:00
Grahame Grieve f366962f51 Fix bindings constraint issue in validator 2022-09-03 07:37:38 +10:00
Grahame Grieve 40ff51b75e remove useless FHIRPath tests 2022-09-02 21:57:46 +10:00
Grahame Grieve d55120d34f debugging fix 2022-09-01 22:44:26 +10:00
Grahame Grieve e8b329bc84 #908 - fix erroneous type characteristics error in differentials 2022-09-01 20:02:29 +10:00
Grahame Grieve 4db936752a FHIR-24884 Define best practices for narrative for a resource 2022-08-29 15:53:47 +10:00
Grahame Grieve 5fcc1866cd better support for allowExamples 2022-08-26 21:00:50 +10:00
Grahame Grieve 2f6dfa62ca more 2022-08-23 22:32:46 +10:00
Grahame Grieve fba2145a9c Fix bug where instance validator doesn't check type of sub-extensions, and check type characteristics 2022-08-23 22:32:40 +10:00
Grahame Grieve cc35c23c7d fixes to validator for FHIRPath engine fixes 2022-07-28 08:48:33 +10:00
Grahame Grieve 168e40f12c cache update 2022-07-26 06:09:42 +10:00
Grahame Grieve 8d7ccff29e Add support for 1.3.160 2022-07-26 06:09:29 +10:00
dotasek 6b7ac47076
Don't access getBinaries directly in XVerExtensionManager (#864)
* Don't access getBinaries directly in XVerExtensionManager

* Remove getBinaries() add getBinaryKeysAsSet()

Co-authored-by: dotasek <david.otasek@smilecdr.com>
2022-07-22 11:13:42 -04:00
Grahame Grieve a82bbeb887
Merge pull request #873 from hapifhir/gg-202207-version-annotations
fix up version annotations
2022-07-22 15:16:01 +10:00
Grahame Grieve 5284773527 fix up version annotations 2022-07-22 14:27:26 +10:00
Grahame Grieve 78c372961e
Merge pull request #872 from hapifhir/gg-202207-bug-fixes
Gg 202207 bug fixes
2022-07-22 13:19:50 +10:00
Grahame Grieve 83bfb07d0e Fix bug around lazy loading packages 2022-07-22 07:57:34 +10:00
Grahame Grieve 0fe28f48e0 fix bugs validating references 2022-07-20 11:25:43 +10:00
dotasek de3eaad982
Remove all expired entries in SessionCache on validator init (#846)
+ fix typo in JsonParserBase

Co-authored-by: dotasek <david.otasek@smilecdr.com>
2022-07-18 13:26:53 -04:00
Grahame Grieve 392b064433 updates for new release of R5 2022-07-18 17:56:23 +10:00
Grahame Grieve 023aea34fb R4B and R5 extension changes 2022-06-28 15:39:15 +03:00
Grahame Grieve 95dee12d0e
Merge pull request #844 from hapifhir/gg-202206-amsterdam
Gg 202206 amsterdam
2022-06-24 13:53:33 +02:00
Grahame Grieve ba7b0d8bfa reduce text logging running tests 2022-06-24 13:15:55 +02:00
Grahame Grieve ced9a748ad better logging on discriminator misses 2022-06-24 11:44:29 +02:00
Grahame Grieve 8769846d5d Start working on IPA validation 2022-06-24 11:44:02 +02:00
Grahame Grieve 1c92448b98 IPS related validator fixes 2022-06-24 11:43:48 +02:00
Grahame Grieve 30aefb8fde Load R5 extensions when validating 2022-06-24 11:43:34 +02:00
dotasek 8db5d64a17 Add help text for validator -tests mode 2022-06-22 09:51:15 -04:00
dotasek af7fd15667 Rebuild caches + fix parse of JSON in FHIRRequestBuilder 2022-06-17 18:15:48 -04:00
dotasek 1fee28fe84
Feature - run JUnit tests from validator_cli (#835)
* WIP add initial test running code

* Importing test modules fix breaking tests 1

* Clean up pom dependencies, move execution before context load

* Re-org and document cli pom

* Set more dependencies to compile. Print entries in classpath

* Try running via internal Executors

* Clearer class names + provide clear output

* Clean up test summarys and output + update class regex to junit default

* Refactor to avoid having to extend class

* Trim down dependency additions in pom + javadoc

* Add the rest of the modules to TestExecutor

* Parse additional params for classname filter and module

* Add experimental JUnit 4 runner in case JUnit 5 hates us.

* Include JUnit4 tests via adapters. Need to refactor for better naming.

* Update LoadIgTests to JUnit 5

* Gentle refactor, print execution time

* Remove unnecessary interface, organize packages

* Remove cached resources (need to fix this)

* Allow setting of txCache globally for tests + fix r5 tests

* Mild refactor of TestExecutor + Reorder test execution

* Add fhirTestCasesDirectory to testConfig + get r4 tests working

* Add dstu2016may and dstu3 tests

* Add dstu2 tests

* Add convertors tests

* Refactor resourceNameForFile + don't copy existing files

* Get all txCache directories centrally and allow all to live in same dir

* Start extracting txCache resources

* Finish extracting txCache resources

* Fix failing GraphQLEngineTest

* Try an mvn install for the pull pipeline

* Clean and refactor

* Test coverage

* Fix GraphQLEngineTests for local jar run

* More refactoring, more tests

* Add bare test for TxCacheResourceExtractor

Co-authored-by: dotasek <david.otasek@smilecdr.com>
2022-06-14 17:04:00 -04:00
Mark Iantorno cd38bdd43a Updating test case dependency to v1.1.101
***NO_CI***
2022-06-08 04:26:16 +00:00
dotasek ed48ea071f
Add -extension parameter to validator cli help (#829)
* Add -extension parameter to validator cli help

* Make extension param match confluence docs

Semantically, a single URL is associated with each instance of this param. Singular -extension is shorter and correct-er.

* Replace * wildcard with `any`

Co-authored-by: dotasek <david.otasek@smilecdr.com>
2022-06-07 22:35:21 -04:00
Grahame Grieve b0dfc9f281 fix bug counting children + fix issue with automatic string conversion in FHIRPath + fix bug in HTTP client + fix bug rendering profile comparison 2022-06-08 08:56:46 +10:00
Grahame Grieve 12a1dbfc05 #820 Add warnings when potential matches are found when performing reference resolution in bundles 2022-05-27 13:43:19 +10:00
Grahame Grieve bdf78cad79 fix total offset error 2022-05-23 21:25:03 +10:00
Grahame Grieve 47e205883c Performance work in the validator 2022-05-23 12:23:23 +10:00
Grahame Grieve d39ed690f8 Add jurisdiction parameter to Validator 2022-05-18 08:23:05 +10:00
dotasek 8a8bbb7308
Add tests for evaluate transforms using json StructureMap (#807)
* Add tests for evaluate transforms using json StructureMap

Fixes issues/802

* Reduce test chatter, fix missing ',' in EVALUATE render

Co-authored-by: dotasek <david.otasek@smilecdr.com>
2022-05-11 12:52:47 -04:00
dotasek 2d45427b8f Better error reporting for unexpected exceptions in test 2022-05-06 16:01:46 -04:00
Grahame Grieve c6d1ff1fa0 Handle invalid HTTP responses better 2022-05-05 05:41:32 +10:00
Grahame Grieve 0a58140163 enable -extension parameter for validator 2022-04-27 08:28:29 +10:00
Grahame Grieve b47b0653c4 moving FHIRPublication 2022-04-23 23:18:23 +10:00
Grahame Grieve fa92f85f3c Merge remote-tracking branch 'origin/master' 2022-04-22 07:36:53 +10:00
dotasek 7009ba7beb Fix valid version evaluation for explicit versions in validator-cli -ig args 2022-04-21 10:51:49 -04:00
Grahame Grieve 5fef79c08d Update Validator -version handling, and improve tx server error handling 2022-04-20 11:17:40 +10:00
Grahame Grieve c58516ce44 remove references to c:\temp 2022-04-20 09:59:30 +10:00
Grahame Grieve a0e26d0995 tx cache changes 2022-04-12 11:39:57 +10:00
Grahame Grieve b9902833c5 Merge branch 'master' of https://github.com/hapifhir/org.hl7.fhir 2022-04-12 09:12:35 +10:00
dotasek 47f37ffd50 Add two more tests. 2022-04-08 11:12:17 -04:00
dotasek ccf6513113 Add fhir verison to IG specification in man doc 2022-04-08 11:08:11 -04:00
dotasek f0757d1a10 Fix sentence fragment in questionnaire man doc 2022-04-08 11:04:16 -04:00
dotasek 293aa12bd8 Limit help.txt to 80 char width to make output more consistent 2022-04-07 18:13:36 -04:00
dotasek cb1d20afeb Add distinct FHIR version per IG parameter + tests 2022-04-07 17:30:50 -04:00
dotasek 489218da82 WIP test loading IGs with explicit fhir version for each IG 2022-04-06 16:32:51 -04:00
Grahame Grieve 7e9b148837 Don't validate Bundle.entry.fullUrl as a reference 2022-04-07 00:20:43 +10:00
Grahame Grieve 76411218ac
Merge pull request #782 from hapifhir/gg-202204-various
various fixes
2022-04-06 09:28:09 +10:00
Grahame Grieve 8a05e4b2b2 various fixes
* Handle reslicing within the same profile
* Fix up wrong handling of context on exists() in FHIRPath
* Add hints to profiles around behavior of pattern on repeating elements
* Ignore all tooling extensions when validating
2022-04-05 15:52:33 +10:00
dotasek 880039c78b
Reorganize TestingUtilities to use expected/actual convention from JUnit (#780)
* Make testing utilities conform to JUnit expected-actual convention

* Refactor to CompareUtilities

* Add tests for CompareUtilities

* RELEASE_NOTES

Co-authored-by: dotasek <david.otasek@smilecdr.com>
2022-04-04 09:44:04 -04:00
dotasek 86b714bb7b Pass -debug param to default logger + add logger to context builders 2022-03-25 13:38:24 -04:00
Grahame Grieve cf95c1a2ba Fix for Jira 25179 - change handling of imports
See https://chat.fhir.org/#narrow/stream/179202-terminology/topic/ValueSet.20defined.20by.20an.20intersection.20.3F
2022-03-18 12:45:40 +11:00
Lloyd McKenzie 335800c932 Replaced hard-coded extension reference with constant value 2022-03-13 20:56:40 -06:00
Grahame Grieve 89b912dde2 Fix cross version extension validation, and check that extensions are consistent wrt isModifier in profiles 2022-03-09 17:37:26 +11:00
dotasek 6f57013f98 Fix intermittent failures in NarrativeGenerationTests 2022-03-03 16:19:39 -05:00
Grahame Grieve c918f724ee fix problem missing profiles on references in discriminators 2022-02-26 06:22:42 +11:00
Grahame Grieve c5b3e022a4 fix bug where inactive codes always put in expansions, and add unit tests for this 2022-02-25 13:07:07 +11:00
Grahame Grieve db19b0dd00 Fix broken links + remove error about regex in core package 2022-02-16 14:04:35 +11:00
Grahame Grieve 0f1d9db24f Fix wrong URL links + txCache errors + questionnaire rendering at root 2022-02-16 13:14:55 +11:00
Grahame Grieve fcd1d1494a change location of dev server 2022-02-15 22:16:50 +11:00
Grahame Grieve 2dfa821e12 Add content to whitespace message 2022-02-14 09:13:35 +11:00
Grahame Grieve 0b4544368a #737 - fix up for regex extension location mess 2022-02-13 08:11:27 +11:00
Grahame Grieve a570ef08a6 Merge branch 'master' of https://github.com/hapifhir/org.hl7.fhir 2022-02-12 08:37:02 +11:00
Grahame Grieve 0fa757b426 Fix markdown relative link issues + start working on additional bindings extension 2022-02-12 07:53:23 +11:00
Grahame Grieve 9f2d9f9dac
Merge pull request #735 from hapifhir/gg-202202-last-windows-commit
Gg 202202 last windows commit
2022-02-10 12:18:35 +11:00
Grahame Grieve dadda110d2 fix validation of bindings on choice types - only consider bindable types 2022-02-10 11:19:52 +11:00
Grahame Grieve e547bb749b fix OID validation 2022-02-10 11:17:49 +11:00
dotasek 4897922fde Merge branch 'master' into simpleworkercontextbuilder 2022-02-03 14:34:39 -05:00
dotasek 72cd4bea03 Include CliContext txCache in pretty printing, equals, and hashCode 2022-02-02 18:05:55 -05:00
dotasek a076a70db1 Merge remote-tracking branch 'origin/master' 2022-02-02 17:58:28 -05:00
dotasek 8b22bb96fa Fix CliContext typo for txCache 2022-02-02 17:58:19 -05:00
Grahame Grieve ee6dc981e2 include server message in http errors 2022-02-03 08:26:30 +11:00
dotasek 239c436ca5 Code cleanup 2022-02-02 10:07:13 -05:00
dotasek 847ede5f88 Refactor SimpleWorkerContext and ValidationEngine 2022-02-01 15:28:19 -05:00
dotasek 5092be9a1d Clean txCache + update CacheVerificationLogger output 2022-02-01 10:09:23 -05:00
Grahame Grieve 96538ba249
Merge pull request #704 from lmckenzi/Add_map_compile
Add map compile
2022-02-01 11:50:41 +11:00
Grahame Grieve bfda0d7880
Merge pull request #726 from lmckenzi/FMM_extension_mods
Add new extensions to list of those to support in R4 and prior builds
2022-02-01 11:50:05 +11:00
Grahame Grieve 54f280437f fix bug in tests 2022-02-01 10:46:14 +11:00
Grahame Grieve bac81752c8 merge and fix testing bugs 2022-02-01 10:20:56 +11:00
Lloyd McKenzie 7751ebc5a8 Add new extensions to list of those to support in R4 and prior builds 2022-01-29 19:49:23 -07:00
Grahame Grieve ccfd715a5a fix problem validating extension context on choice types 2022-01-29 09:17:29 +11:00
Grahame Grieve dd65f5a975 add check for binding on multiple types 2022-01-29 09:16:05 +11:00
dotasek 03518848fe Log unexpected TX requests for now 2022-01-25 18:42:38 -05:00
dotasek f9561f2685 Testing Part 1 2022-01-21 15:29:17 -05:00
dotasek 14eac3e2a0 Remove unused constructor 2022-01-20 16:07:08 -05:00
dotasek 7d8569e9e7 Test that no requests are made for cached tests 2022-01-20 13:28:47 -05:00
dotasek 4826424499 Make additional caches to cover NativeHostService and ValidationService 2022-01-19 18:36:39 -05:00
dotasek 0a3e9d3f31 Merge branch 'master' into tx-server-cache-analysis 2022-01-18 16:10:21 -05:00
dotasek d9d0f22ff3 cache CapabilityStatement and TerminologyCapabilities 2022-01-18 16:09:59 -05:00
dotasek 05ca3e86f0
Merge branch 'master' into dotasek-versionutilities-for-output 2022-01-17 12:28:19 -05:00
dotasek 8613f6f064 Use version utilities to resolve version for handleOutputToStream
This stems from executing a -compile option without an explicit version. "current" is selected by default, resulting in an exception.

In this case, current should resolve correctly.
2022-01-14 20:53:30 -05:00
dotasek a99d39b89e Fix surefire config so jacoco doesn't skip jacoco coverage 2022-01-14 20:49:26 -05:00
dotasek a3ff15484b Tests for help display 2022-01-14 16:49:44 -05:00
dotasek b9fe85996b Fix literal inclusion of Java contants in static text file in cli hjelp 2022-01-14 16:16:26 -05:00
dotasek bd74bf3cee Fix typos 2022-01-14 14:53:36 -05:00
dotasek 43fb17e5d2 Merge branch 'master' into Add_map_compile 2022-01-14 10:41:19 -05:00
dotasek 6e0b14b0b6 Merge branch 'master' into tx-server-cache-analysis 2022-01-13 09:46:45 -05:00
Grahame Grieve 7d3f34b0ca fix error in FHIRPath handling for incomplete FHIR Path expressions 2022-01-12 17:44:11 +11:00
Lloyd McKenzie 195872a9cc Better handle error conditions 2022-01-10 10:29:47 -07:00
Grahame Grieve 0bb4628f6b fix NPE in validator & rendering fixes: concept map display + name rendering issue for Med Resources + fix locale date issue 2022-01-10 20:29:06 +11:00
dotasek 5635d96576 Configure error cacheing at code level + create profile for cache clean 2022-01-07 12:01:46 -05:00
dotasek 1a2e995104 Store cache in resources 2022-01-06 16:20:22 -05:00
dotasek 2d4bbe3749 Clean code 2022-01-04 13:57:39 -05:00
dotasek 9fb60f4fed Code cleanup + Fix merge 2022-01-04 13:43:01 -05:00
dotasek 7ee5d0c5e4 Merge remote-tracking branch 'origin/master' into tx-server-cache-analysis 2022-01-04 13:23:32 -05:00
Lloyd McKenzie cb583208d4 Merge branch 'master' of https://github.com/hapifhir/org.hl7.fhir.core into Add_map_compile 2022-01-03 13:16:58 -07:00
Lloyd McKenzie f3727c2cf8 Add support for spitting out a StructureMap from a FHIR mapping language file 2022-01-03 13:16:28 -07:00
Grahame Grieve c627ec43d9 Add R4B code + update generator for R4B generation 2022-01-01 16:33:10 +11:00
Grahame Grieve 8bb6ebfa31 * fix bug looking for contained resources inside bundles when validating resources using conformsTo()
* fix problems validating canonical reference profile types
2021-12-23 09:56:39 +11:00
Grahame Grieve 3a2428bb2f fix bug checking enableWhen - ignoring items in answers 2021-12-22 22:39:13 +11:00
Grahame Grieve 04c7111eb6 get .ofType() working in discriminators (round #1!) + Improve Error message when snapshot can't be generated 2021-12-22 22:39:00 +11:00
Grahame Grieve ef0afae743 More support for R4B 2021-12-22 07:31:09 +11:00
Grahame Grieve 3a33cb2174 ## Validator
* Allow both -output and -output-style parameters (output-style applies to output now) + add csv output style
* Implement the ```-level``` parameter
* Add support for R4B validation
* fix bug in deep profiles (profiles that don't start at the root)

## Other code changes
* Regenerate R5 code for 5.0.0-snapshot1 & many consequential changes
* Add version support for R4B and R5 (R4B code generation still to be done)
2021-12-21 19:53:20 +11:00
Grahame Grieve 72553a29ec fix up determination criteria for IRIs on identifiers in urn:ietf:rfc:3986 2021-12-18 07:20:48 +11:00
Grahame Grieve 3d2400bb55 fix bundle link resolution (remove overloaded use of 'root resource') 2021-12-17 16:20:09 +11:00
Grahame Grieve e4d3047138 #357: fix bug looking for contained resources inside bundles 2021-12-17 14:38:21 +11:00
Grahame Grieve a13a43ffdf check StructureDefinition derivation consistency 2021-12-17 12:09:29 +11:00
dotasek 80382865de Merge branch 'master' into tx-server-cache-analysis 2021-12-15 16:49:39 -05:00
Grahame Grieve c15e60f2c6 main Build fixes: new version of FHIR (4.3.0) + transit to using release indicators in version + fix various build issues 2021-12-15 07:28:19 +11:00
dotasek cbd1394549 Merge branch 'master' into tx-server-cache-analysis 2021-12-13 15:22:21 -05:00
Grahame Grieve 65e65d3e7b fix bug in client caching for unidentified value sets + look for code system definitions in local context + fix path error in Questionnaire Response validation 2021-12-13 18:39:44 +11:00
Grahame Grieve b79d71f947 better version specific resolution of special canonical resources 2021-12-13 18:36:56 +11:00
dotasek 3b58aef820 More cacheing for tests + allow cacheing for error responses
WORK IN PROGRESS; cacheErrors is set to TRUE always at this stage.
2021-12-10 16:46:26 -05:00
dotasek 394452b747 Fix cacheing for large valuesets 2021-12-09 15:50:03 -05:00
Grahame Grieve 07443ef6f8 fix broken tests 2021-12-09 10:56:04 +11:00
Grahame Grieve 0cbc88cb54 * check that base64 content doesn't have whitespace (warning in <R5) 2021-12-09 09:30:01 +11:00
Grahame Grieve 700d86928b add missing chagnes 2021-12-09 08:22:08 +11:00
Grahame Grieve ccdb0c434f * Fix count on erroneous element defintions when generating snapshots
* add version specific access to context resources
* enforce minValue and maxValue for decimal and Quantity types
2021-12-09 08:20:56 +11:00
dotasek e5976307f4 Refactor to get consistent ValidationEngine with txCache in tests 2021-12-08 12:34:35 -05:00
dotasek 1c1e7d22ca WIP track server requests 2021-12-07 16:08:28 -05:00
Grahame Grieve d303dba48d fix problem resolving nested contained value sets in QuestionnaireResponses + fix NPE rendering questionnaire + fix bug validating profile on resource at root of Bundle 2021-12-03 06:51:23 +11:00
Grahame Grieve b4597687b8 fix bug in code system handling (NPE) + add support for json test cases in fhirpath tests + fix error validating references in bundles 2021-11-30 15:37:12 +11:00
Grahame Grieve 7f5a1d95cc extend policy advisor to control terminology validation + hack fixes for problems in R4B 2021-11-30 10:57:56 +11:00
Grahame Grieve 93d266b363 Merge branch 'master' of https://github.com/hapifhir/org.hl7.fhir.core 2021-11-29 16:11:23 +11:00
Grahame Grieve 96b5bce878 fix up SHC parsing problem 2021-11-29 16:11:13 +11:00
Mark Iantorno 4d0692ff61
Validate contains (#669)
* wip

* first go at this, still some failing tests

* post-pairing with Grahame

* wip

* failing test cases

* fixed InstanceValidator to respect new validation options for both references and contained resources

* removed dead code

* put copyright back in BaseValidator

* wip
2021-11-25 15:52:29 -05:00
Grahame Grieve 41b7a0566c fix processing of modifier extensions and cross-version modifier extensions 2021-11-21 19:37:05 +11:00
Grahame Grieve de15633f4f Address issues around fragment and example code systems + fix value set related validation messages 2021-11-18 10:59:49 +11:00
Grahame Grieve 0f087234de * Check for using CodeSystem not ValueSet in a value set binding 2021-11-16 17:25:18 +11:00
Grahame Grieve 1e69909466 Add warning about resources not linked to in bundles 2021-11-10 17:04:51 +11:00
Grahame Grieve 5a33d5c15a merge conflicts + rework rendering + gather all HTTP access to SimpleHTTPClient + add TerminologyCacheManager 2021-11-09 16:24:21 +11:00
Grahame Grieve 1aae6c8c76 rework HTTP client - all client calls route through SimpleHTTPClient + define CommonPackages infrastructure 2021-11-09 11:38:25 +11:00
dotasek 20989776db
Convertor refactor iii (#635)
* Move loaders to own packages

* Move inner loader classes up one level

* Use lombok annotaions for BaseLoaderX classes

* Move ADLImporter

* Use lombok for ADLImporter inner classes

* Move inner ADLImporter classes up one level

* Move misc classes with inner classes to their own packages

* Encapsulate and add lombok to misc internal classes

* Move inner misc classes up one level

* Clean up explicit type arguments

* Revert back to master validator_test_case_version in pom.xml

* Update RELEASE_NOTES.md

Co-authored-by: David Otasek <david.otasek@Davids-MacBook-Pro.local>
2021-11-08 12:06:51 -05:00
Grahame Grieve 94376300b6 fix typo 2021-11-03 12:46:17 +11:00
Grahame Grieve 4cde3369ff
Merge pull request #637 from hapifhir/gg-202110-CVE-2021-42574
Gg 202110 CVE 2021 42574
2021-11-03 12:08:42 +11:00
Grahame Grieve 1717f53943
Merge pull request #630 from DBCG/feature-validate-mr-groups-iff-m-groups
Validate MeasureReport groups only if Measure has groups
2021-11-03 11:20:46 +11:00
Grahame Grieve 36ea3f5b45 whatever I really hate git 2021-11-03 10:35:47 +11:00
Grahame Grieve 57edd95e81 add -no_unicode_bidi_control_chars to the validator for CVE-2021-42574 (https://trojansource.codes/) 2021-11-02 17:47:25 +11:00
Grahame Grieve 1c65a9b261
Gg 202110 validation various (#634)
* add explicit control over the User-Agent header, and make sure headers flow through properly to all calls

* #328 - wrong processing of markdown URLs

* test fixes for URL handling

* fix tests

* improved validation of UUIDs

* fix test case dependency

* Add Dicom Package builder
2021-10-29 16:26:50 -04:00
Mark Iantorno 69cee8b485
Issue 623 (#636)
* wip

* upping pom.xml test-case dep
2021-10-29 16:26:00 -04:00
Grahame Grieve e4b503751c improved validation of UUIDs 2021-10-29 09:20:23 +11:00
Grahame Grieve 307246ce91 fix tests 2021-10-29 09:20:05 +11:00
Grahame Grieve 5b9736dbff add explicit control over the User-Agent header, and make sure headers flow through properly to all calls 2021-10-23 05:56:36 +11:00
rob-reynolds 4da4ad31de Validate MeasureReport groups only if Measure has groups 2021-10-21 19:38:02 -06:00
Grahame Grieve 54d31a33dc add -output-style parameter 2021-10-21 12:56:56 +11:00
Grahame Grieve e62f3a3c6c handle naming system URLs when resolving URLs 2021-10-21 07:02:48 +11:00
Grahame Grieve b60afcb608 fix profile comparison 2021-10-21 06:18:17 +11:00
Grahame Grieve 4cdead6f80 more validation for canonical URLs 2021-10-20 17:06:59 +11:00
Grahame Grieve e21a9830b8 fix terminology version management and caching + better error messages for extension context 2021-10-19 12:47:37 +11:00
Eric Lemieux dc368e17cb Fix Issue 618 | NPE bundle validation
When validating a bundle, with the type, searchset, a NPE would be
thrown if some but not all entities contained a search mode.
2021-10-12 15:59:09 -04:00
Grahame Grieve 237897965b
Gg 202110 misc validation (#617)
* NPE fixes

* Smart Health Cards support in validator

* Fix bug generating spreadsheets due to sheet name length limitations

* Implement descendent-of filter

* more NPE fixes

* add Element.removeChild

* fix issue generation snapshot and content reference, and work around old erroneous binding description in R4

* improve SHC validation error

* fix for NPE generating ConceptMap spreadsheet

* fix crash in IG publisher rendering illegal content

* Improve slicing error messages

* more improving error message resolving slicing

* add missing code + track prohibited / required elements (improve rendering of IGs)

* fix for broken links in R4B IGs

* fix bug related to logger in FHIRToolingClient

* fix bug related to logger in context

* enable detection of whether tx server knows about value set and better track returned errors from tx server

* make likely source URL visible outside ProfileUtilities

* fix renderers - don't make nonvalid URLs into html links + fix NPE +

* fix bug with sheetnames generating spreadsheets

* supper branches in current version of packages

* report slicing information automatically where slicing is based on profile + fix shc support + support codesystem-properties-mode + fix value set validation on profiles + fix wrong entry point on vaildating contained resources with profiles

* fix misleading validation message + add -ips parameter for validator

* hint not warning when it's an example questionnaire
2021-10-10 17:37:02 -04:00
Grahame Grieve 342d75b2df
Gg 202109 misc snapshot (#610)
* NPE fixes

* Smart Health Cards support in validator

* Fix bug generating spreadsheets due to sheet name length limitations

* Implement descendent-of filter

* more NPE fixes

* add Element.removeChild

* fix issue generation snapshot and content reference, and work around old erroneous binding description in R4

* improve SHC validation error

* fix for NPE generating ConceptMap spreadsheet

* fix crash in IG publisher rendering illegal content

* Improve slicing error messages

* more improving error message resolving slicing

* add missing code + track prohibited / required elements (improve rendering of IGs)

* fix for broken links in R4B IGs
2021-09-29 10:29:10 -04:00
Grahame Grieve 9a8394bc2a handle network failures better in IG publisher 2021-09-10 06:50:10 +10:00
Grahame Grieve a56978bdd0 remove invalid warning 2021-09-04 05:58:20 +10:00
Grahame Grieve 1e3f5cdabc fix logical model type testing 2021-09-02 07:35:47 +10:00
Grahame Grieve 11e60c3825 * fix NPE bug logging terminology server calls
* fix NPE bug validating logical models
* fix problem with Type Name when validating against Logical Models
2021-09-02 06:27:06 +10:00
Grahame Grieve 6c6052fa31 merge 2021-09-01 10:12:36 +10:00
Grahame Grieve 7d7280078f Hack fix for wrong R3 invariant, Improved Terminology Performance Tracking 2021-09-01 09:59:23 +10:00
Grahame Grieve 2845078c9e Spreadsheet generation by validator 2021-09-01 09:53:18 +10:00
Grahame Grieve 2250b01fdd improvements to tx client logging functionality and terminology performance tracking 2021-09-01 09:52:50 +10:00
Grahame Grieve f22855e82a change interface for evaluating constants in FHIRPath (allow collections) 2021-09-01 09:46:51 +10:00
Grahame Grieve 4d1f75920d
validation for resource and element id (#590)
* revise validation of resource and element id

* wip

Co-authored-by: markiantorno <markiantorno@gmail.com>
2021-08-27 11:28:47 -04:00
Grahame Grieve 3cb384a297 revise validation of resource and element id 2021-08-27 09:59:17 +10:00
Mark Iantorno 88efa6f863
Issue 513 (#587)
* wip

* wip

* sdjkhfakjsdhllkjsdhfsdkh

* wip
2021-08-25 14:45:21 -04:00
Mark Iantorno be25055574
https://github.com/hapifhir/org.hl7.fhir.core/issues/564 (#572)
* https://github.com/hapifhir/org.hl7.fhir.core/issues/564

* updating help text as per Grahame's feedback.

* wip
2021-08-25 14:06:34 -04:00
Tadgh 5ca6d19c69
Replace proprietary notnull with javax.annotation.Nonnull (#584)
* Replace proprietary notnull with javax.annotation.Nonnull

* wip

Co-authored-by: markiantorno <markiantorno@gmail.com>
2021-08-25 08:39:44 -04:00
Lloyd McKenzie 4e96d087c9 Added documentation 2021-08-21 10:10:32 -06:00
Lloyd McKenzie 59902b6b9a Expose showMessagesFromReferences on the CLI as it provides much more useful information when validating Bundles. 2021-08-20 13:57:03 -06:00
Mark Iantorno 58c0e216e8
Conversion library overhaul (#568)
* wip

* adding pathing to 40_50 conversion

* wip

* 30_50 and 40_50 updated to factory

* 30_40 factory

* 14_50

* 14_40

* 14_30, 10_50

* 10_40

* 10_30

* forcing non-null on VersionConvertors

* *trying* to clean up advisor code, switching from jetbrains NotNull to javax Nonnull annotation

* all calls within convertor classes should use INSTANCE access, not factory to maintain thread safety

* adding README for conversion library

* spacing

* threaded test removal

* release notes

* Update RELEASE_NOTES.md

Co-authored-by: Tadgh <tadgh@cs.toronto.edu>

* Update RELEASE_NOTES.md

Co-authored-by: Tadgh <tadgh@cs.toronto.edu>

* Update org.hl7.fhir.convertors/CONVERTORS.md

Co-authored-by: Tadgh <tadgh@cs.toronto.edu>

* Update org.hl7.fhir.convertors/CONVERTORS.md

Co-authored-by: Tadgh <tadgh@cs.toronto.edu>

* Update org.hl7.fhir.convertors/CONVERTORS.md

Co-authored-by: Tadgh <tadgh@cs.toronto.edu>

Co-authored-by: Tadgh <tadgh@cs.toronto.edu>
2021-08-06 19:28:24 -04:00
Mark Iantorno aab5bd4a0f
Convertor refactor ii (#556)
* 10_30

* 10_40

* 10_50

* 14_30

* 14_40

* 14_50

* 30_40

* 40_50

* cleaningup
2021-07-07 22:41:14 -04:00
Lloyd McKenzie 8d29632703
Fixed issue where validator fails to detect invariant issue when ther… (#554)
* Fixed issue where validator fails to detect invariant issue when there are multiple profiles that use the same invariant on the same element.  Also addressed issue revealed by the fix where the context resource wasn't being set properly when checking certain invariants (identified by one of the existing test cases).

* Moved notes from code into commit notes (this one) and added Release notes

Changed call to checkInvariants within checkChildByDefinition such that onlyNonInherited is now false because inherited invariants can be overridden and it's important to check both.  Note that this means that onlyNonInherited doesn't seem to be used any more.  @grahamegrieve - consider whether it should be removed.
2021-07-06 13:42:35 -04:00
Grahame Grieve 4dd5b370e3 add properties mode as a known extension until it's defined properly 2021-06-25 17:36:45 +10:00
Grahame Grieve b0c1f2b129 fix bug validating profiles on bundle.entry.resource 2021-06-24 21:48:27 +10:00
Grahame Grieve 309dbba9b6 update pubpack to v0.0.9 2021-06-24 21:47:50 +10:00
Grahame Grieve 3a319a5d57 Fix pathing issues in the validator 2021-06-23 20:35:38 +10:00
Grahame Grieve 1aaf086c55 Fix wrong profile error message + NPE prevention 2021-06-21 15:32:06 +10:00
Grahame Grieve c4604029ff Fix validation bug on Canonical references 2021-06-18 07:08:12 +10:00
Grahame Grieve d67cecc83f * CDA: Fix erroneous type validation on CDA templates
* CDA: Suppress erroneous "Expansion" text appearing in view
* CDA: Don't delete binding information in snapshot for CDA bindable data types
* Rendering: add support for CodeableReference
* Rendering: Support binding mode and XML element information
2021-06-17 16:55:15 +10:00
Grahame Grieve 8088cedb66 add the -verbose parameter, and add additional verbose messages 2021-06-15 08:51:47 +10:00
Grahame Grieve a371f5fe3e Add -allow-example-urls option to the validator 2021-06-02 17:45:50 +10:00
Grahame Grieve e1f29ff29d Clean up SID code and Validation of cardinality on address-line elements containing pattern elements fixed 2021-06-02 06:22:11 +10:00
Mark Iantorno 375c8cb46d
fixes for eclipse (#524)
rip
2021-06-01 07:53:40 -04:00
Grahame Grieve aeb87c8c12
Merge pull request #504 from pieter-edelman-nictiz/502
Fix for a bug where the line number was reported as column number when validating constraints
2021-05-31 08:44:17 +10:00
Grahame Grieve afe5c09f26
Merge pull request #508 from alexzautke/az-fix-extensions-on-pattern
Allow extensions in checkFixedValue if a pattern instead of a fixedValue is defined on the element
2021-05-31 08:39:18 +10:00
Grahame Grieve c5009f377c
Merge pull request #519 from hapifhir/conversion_update_II
Conversion update ii
2021-05-31 07:56:17 +10:00
markiantorno 30e45f54ed wip 2021-05-25 13:36:07 -04:00
Alexander Zautke 22af0cba90 Allow extensions in checkFixedValue if a pattern instead of a fixedValue is defined on the element 2021-05-20 17:23:34 +02:00
Pieter Edelman 396e562d89 Fix for a bug where the line number was reported as column number when validating constraints 2021-05-19 16:52:53 +02:00
Grahame Grieve cf859c9ed1 add new parameter for whether to include FHIRPath in invariant error messages 2021-05-14 12:21:28 +10:00
Grahame Grieve 3cb51f88c8 fix overrun error reading invalid xhtml + fix loading problem on validation test 2021-05-13 22:51:01 +10:00
Mark Iantorno 9a82457b36
Adding version option to ignore bundle entry in conversion advisors (#492) 2021-05-07 14:50:40 -04:00
Grahame Grieve 154ac5c3ca
Merge branch 'master' into gg-202105-bugfixes-2 2021-05-07 18:30:26 +10:00
Grahame Grieve 4e173f4715 * Validator: Load code systems from known packages on the fly
* Validator: better handle invalid v3 dates
* Renderer: Render OperationDefinition.InputProfile and OutputProfile
* Important: Allow more valid schemas for Utilities.isAbsoluteUrl
* Validator: remove notes about extensible bindings if profile extensible binding is valid
2021-05-07 18:29:21 +10:00
Mark Iantorno 05cd371796
Convertor advisor 1 (#490)
* RELEASE THE ~~KRAKEN~~ KOTLIN

* doing some cleanup before going into more details

* renaming folder

* commit merge issues

* release notes
2021-05-06 09:18:11 -04:00
Grahame Grieve 6da83fa41e Do not flag internal references as suspicious 2021-05-05 10:17:08 +10:00
Grahame Grieve c6f392b7e0 #466: fix problem checking types on logical models 2021-05-05 09:54:22 +10:00
Grahame Grieve 6a7435787f tidy up and document version conversion advisors 2021-05-05 08:28:03 +10:00
Grahame Grieve 11a727b40f update R5 to 4.6.0 2021-05-04 09:03:13 +10:00
Grahame Grieve 1c320586e5 Ensure that CVX uses tx.fhir.org, not UTG definitions which are wrong + Fix problems with Bundle validation for ids in collections and add additional search related validation + Remove check on ElementDefinition.id for R2B 2021-04-22 13:27:32 +10:00