Commit Graph

694 Commits

Author SHA1 Message Date
James Agnew d1c3e522ab Improve validator error message if a fixed coding can't be matched 2019-08-08 14:39:45 -04:00
Grahame Grieve 7ef320b6bb fix ref-1 constraint (define %rootResource) 2019-08-08 21:03:27 +10:00
James Agnew ce392c47bb Improve naming of error flag on profile registration 2019-08-07 05:37:03 -04:00
James Agnew c1728a481d Refactor R4 infrastructure to use the new common
TerminologyServiceOptions, and tweak the validation of enableWhen to
handle a few edge cases correctly.
2019-08-06 18:27:45 -04:00
Grahame Grieve c57f578f03 Move TerminologyServiceOptions to Utilities. 2019-08-06 07:33:48 +10:00
Grahame Grieve ce4453b0cb Support slicing by value set using contained value sets 2019-08-05 15:48:50 +10:00
Grahame Grieve 9d1d64bb59 more working on test suite 2019-08-05 15:48:07 +10:00
Grahame Grieve 1d10470e9c slicing by value set tests 2019-08-05 15:47:30 +10:00
Grahame Grieve 9e0a1de74c rework slicing validation tests 2019-08-05 12:41:54 +10:00
Grahame Grieve 0a05788e57 improve error message 2019-08-05 11:33:06 +10:00
Grahame Grieve 670ae0c79a update R5 validator 2019-08-04 07:38:45 +10:00
Grahame Grieve 4ffa343395 add -debug parameter to validator, and add additional (failing) validator tests, and update R4 code 2019-08-04 07:34:13 +10:00
Grahame Grieve a26abe87ca Improved error message & resource resolution 2019-08-02 14:48:34 +10:00
Grahame Grieve 0cea5c2bcc validation fixes for bundle resolution 2019-08-02 10:50:25 +10:00
Grahame Grieve bf9ead2c9e fix rendering of special compiler types 2019-08-01 11:38:09 +10:00
Grahame Grieve 564d9262c6 fix test 2019-08-01 10:55:10 +10:00
Grahame Grieve fb8b2dcd70 add new test case 2019-08-01 10:54:17 +10:00
Grahame Grieve 23b575d4f9 Merge branch 'master' of https://github.com/hapifhir/org.hl7.fhir.core 2019-08-01 08:11:27 +10:00
Grahame Grieve cac82546da more snapshot generation tests and fixes 2019-08-01 08:11:21 +10:00
Lloyd McKenzie 407168cf87 New test for snapshot generation not exposing extensions 2019-07-31 11:40:53 -06:00
Lloyd McKenzie c2d3afba99 Merge into current branch 2019-07-30 23:41:04 -06:00
Lloyd McKenzie 7c1786279f Fix problem with link resolution within Bundles - and add test case that checks it. (Also update Synthea test case to reflect new status codes for Encounter.) 2019-07-30 23:23:48 -06:00
Grahame Grieve a234984179 various minor fixes for IG publication 2019-07-31 14:44:38 +10:00
Grahame Grieve f5b5737398 fix validation tests 2019-07-30 16:50:54 +10:00
Grahame Grieve fe219985b4 fix decimal validation + fix profile slicing validation 2019-07-30 16:22:54 +10:00
patrick-werner 270a8bca71 scanDirectory now scans all subfolders 2019-07-26 19:02:13 +02:00
Grahame Grieve 538540619f compile updates 2019-07-19 23:20:17 +10:00
James Agnew e265477c6e Header updates 2019-07-14 09:27:45 -04:00
James Agnew 0acb99744b
Changes needed to move HAPI FHIR to using this project directly (#61)
* Work on porting HAPI FHIR to core

* Ongoing work on HAPI FHIR merge
2019-07-14 08:55:21 -04:00
Grahame Grieve 58da7557d8 fix validation problems with questionnaires, and allow tests to still run even when offline 2019-07-13 20:50:53 +10:00
Rob Hausam fa235a00db Remove line instead of comment it out. 2019-07-10 20:22:05 -04:00
Rob Hausam 1cb23a14c8 Fix build - remove unneeded junit import. 2019-07-10 20:22:05 -04:00
Grahame Grieve 3a5d7146a7 check security tags are a set 2019-07-09 06:58:03 +10:00
Grahame Grieve f3a21e4bd6 fix issue 58 - wrong support for r4 2019-07-09 06:19:10 +10:00
Grahame Grieve e2d52143d9 get tests passing 2019-07-06 07:39:25 +10:00
Grahame Grieve bc30ea197e
Merge pull request #56 from ahdis/oliveregger_maps3To4
unit test conversions r3r4
2019-07-06 07:21:02 +10:00
Grahame Grieve f583649f87 fix generation of error locations using FHIRPath or XPath properly 2019-07-05 20:23:58 +10:00
Oliver Egger 992f870cb4 unit test conversions r3r4 2019-06-27 00:28:32 +02:00
Vadim Peretokin d574178d6b Don't crash on bad files present in IG, ignore & warn instead 2019-06-26 18:07:19 +02:00
Grahame Grieve 3b76303d83 fix validator bug (issue 47) 2019-06-19 09:07:29 +10:00
Grahame Grieve 23eb7282bd Support displayLanguage through validator framework 2019-06-16 14:02:09 +10:00
Grahame Grieve 8798c5cf58 fix CDA parsing 2019-06-15 08:05:24 +10:00
Grahame Grieve b972620ed1 more fixes 2019-06-08 06:23:01 +10:00
Grahame Grieve 2bdd175591 Release new version 2019-06-08 06:19:01 +10:00
Grahame Grieve 299014c606
Merge pull request #45 from lmckenzi/bad-bundle-reference-types
Bad bundle reference types
2019-06-08 05:26:50 +10:00
Lloyd McKenzie ce26cae736 Fixed issue where wrong profile was being used, suppressed message when it wasn't needed 2019-06-05 23:40:06 -04:00
Lloyd McKenzie f44bb526c2 Fixed problem with inconsistent values for refTypes
Check that when referencing resources by type/id when the target has a urn:uuid fullUrl that the type matches as well as the id.
2019-06-05 20:38:00 -04:00
Lloyd McKenzie 2a2005f93b 1. Cleaned up test cases to work after version changes in R5 (not sure what to do with uk one and patient-contained-org I'll work on next)
2. Added new test case for (and fixed issue with) validation problems when there are multiple target profiles declared that have the same resource type.  (Previously, the validator was always choosing the first profile, even if it was invalid.)
3. Fixed problems where certain profiles were triggering silent NPEs in the validator and improved console messaging so you can tell what warnings and errors are being generated for what.
2019-06-04 20:50:49 -04:00
Grahame Grieve 766f6b55ed add openAPI tests 2019-06-03 19:38:10 +10:00
Vadim Peretokin ed32fca1d4 Also output JSON if requested for narrative, snapshot generation & transformations 2019-06-02 14:08:58 +02:00
Grahame Grieve 7d38ed4161
Merge pull request #38 from vadi2/improve-help
Be more explicit that you can pass a folder of resources to validate
2019-06-02 17:14:50 +10:00
Grahame Grieve 809e0a3a92
Merge pull request #37 from vadi2/ignore-package.json
Exempt package.json from being parsed as a FHIR resource
2019-06-02 17:14:24 +10:00
Vadim Peretokin 7813537fbb Be more explicit that you can pass a folder of resources to validate 2019-06-02 08:28:53 +02:00
Vadim Peretokin 271c0cf0fc Exempt package.json from being parsed as a FHIR resource 2019-06-02 08:11:05 +02:00
Vadim Peretokin 56a8efbb6d Fix ignore filter in validator's directory scanning filter to actually work 2019-06-02 07:25:11 +02:00
Vadim Peretokin 2b6ebb71bb Serialise -output as json if the filename ends on ".json" 2019-05-31 16:00:20 +02:00
Grahame Grieve 8b01f1df19 validation chagnes 2019-05-31 10:21:01 +10:00
Grahame Grieve ee30d93b30
Merge pull request #33 from ahdis/oliveregger_bundledocval#32
bundledocvalidation issue#32
2019-05-31 10:17:42 +10:00
Grahame Grieve 9802237799
Merge pull request #31 from ahdis/gf#21240_3
Gf#21240 3: adding support  patternIdentifier
2019-05-31 10:11:54 +10:00
Oliver Egger e7ae35f41c bundledocvalidation issue#32 2019-05-30 18:54:22 +02:00
Oliver Egger aaea36038d enhancing validation for patternIdentifier 2019-05-30 12:04:16 +02:00
Oliver Egger 6d94627465 adding patternIdentifier samples 2019-05-30 12:03:23 +02:00
James Agnew f063219cde Port fix from https://github.com/jamesagnew/hapi-fhir/pull/1228 via
Matti Uusitalo
2019-05-29 21:14:55 -04:00
Grahame Grieve e3faaa5ccc fix up display validation on codes 2019-05-29 08:39:59 +10:00
Grahame Grieve 847b6a1fc8 validation fixes for US-Core testing 2019-05-28 19:18:04 +10:00
Grahame Grieve c9a3d8efc0
Merge branch 'master' into ValueSet-display-names 2019-05-28 08:01:09 +10:00
Grahame Grieve 2cc62df915 extend validator to handle contained profiles 2019-05-25 07:23:20 +10:00
Grahame Grieve b6d5aa63c0
Merge pull request #27 from aehrc/issue/25
relax validation rules for implicit valusets
2019-05-25 06:52:24 +10:00
Lloyd McKenzie 88f3924ba7 New test case - contained profiles not supported by validator and validator doesn't check profiles asserted on references to contained resources. 2019-05-23 14:19:15 -06:00
Lloyd McKenzie 5bac79a936 Add test case for validator complaining about display names that are defined in the value set. 2019-05-23 13:33:34 -06:00
Grahame Grieve 24b6305b15 more validator tests + release new utilities 2019-05-23 13:39:21 +10:00
Grahame Grieve 0e8449d093 get all validation tests passing 2019-05-22 11:16:59 +10:00
Grahame Grieve 4e0c33755e fix problem where slicing depends on inner slicing 2019-05-22 11:13:47 +10:00
Grahame Grieve c5ace67136 fix evaluation of discriminators where elements may repeat 2019-05-22 11:12:56 +10:00
Michael Lawley 29f253bf2c relax validation rules for implicit valusets 2019-05-21 15:46:27 +10:00
Grahame Grieve 1b5d17d6ef fix failing validation tests 2019-05-20 16:53:04 +10:00
Grahame Grieve 58724b3694
Merge pull request #23 from ahdis/olivergger_gf#21240_2
[gf#21240]: fixing pattern[x] slices validation
2019-05-20 14:57:22 +10:00
Grahame Grieve 607817f4ce
Merge pull request #26 from lmckenzi/Snapshot-Test-error-handling
Snapshot test error handling
2019-05-20 14:57:07 +10:00
Oliver Egger 43d7de3559 fix manifest 2019-05-15 17:58:34 +02:00
Oliver Egger bf99a3d8e7 [gf#21240]: fixing pattern[x] slices validation 2019-05-15 17:31:36 +02:00
Oliver Egger d023628016 [gf#21240]: illustrating pattern[x] slices validation problem 2019-05-15 17:31:21 +02:00
Grahame Grieve a67693bc4b tidy up and work on tests. 2019-05-15 13:26:14 +10:00
Grahame Grieve 4e8e643df2
Merge pull request #22 from ahdis/oliveregger_gf#21472
[GF#21472]: org.hl7.fhir.core: Validator cannot validate BP Profile
2019-05-15 12:40:05 +10:00
Grahame Grieve 6030ea7953
Merge pull request #21 from ahdis/olivergger_gf#21240
[gf#21240]: org.hl7.fhir.core: Validation support for pattern[x]
2019-05-15 12:39:22 +10:00
Grahame Grieve c17c2802d5
Merge pull request #18 from lmckenzi/Problem-with-polymorphic
Problem with polymorphic
2019-05-15 12:31:46 +10:00
Grahame Grieve a8c335827f more validation tests 2019-05-14 15:54:20 +10:00
Lloyd McKenzie d998bfacec Merge branch 'master' of https://github.com/hapifhir/org.hl7.fhir.core 2019-05-13 18:45:13 -06:00
Lloyd McKenzie 2f817de46e Merge branch 'master' of https://github.com/hapifhir/org.hl7.fhir.core
# Conflicts:
#	org.hl7.fhir.validation/src/test/resources/validation-examples/manifest.json
2019-05-13 18:29:13 -06:00
Grahame Grieve 8837fb3fd3 Merge branch 'master' of https://github.com/hapifhir/org.hl7.fhir.core 2019-05-10 00:08:31 +10:00
Grahame Grieve 2d946790d7 generated patterns + improved package cache errors 2019-05-10 00:08:18 +10:00
James Agnew 95233858aa A couple of validator improvements 2019-05-06 10:12:15 -04:00
Oliver Egger 30803a7a41 [GF#21472]: org.hl7.fhir.core: Validator cannot validate BP Profile 2019-05-06 11:34:20 +02:00
Oliver Egger e6f0b26e81 [GF#21240]: support for pattern primitive Types and CodeableConcept 2019-05-05 15:46:44 +02:00
Oliver Egger 9a0c619d28 [GF#21240]: validation examples to illustrate 2019-05-05 14:31:54 +02:00
James Agnew aa5e132307 Merge branch 'master' of github.com:hapifhir/org.hl7.fhir.core 2019-04-29 15:03:15 -04:00
James Agnew 6dfac49198 Improve suport for enableWhen validation 2019-04-29 14:46:55 -04:00
Grahame Grieve 88646a8216 Release new version 2019-04-27 09:10:16 +10:00
Oliver Egger bce35251f3 GF#21004: fixed values for complex types 2019-04-26 16:41:33 +02:00
Oliver Egger c3bc29f06a GF#21004: validation examples to illustrate 2019-04-26 16:34:54 +02:00
Grahame Grieve 2ab02e2e0b fix validation problem for current version 2019-04-25 10:13:28 +10:00
James Agnew 89b5e6964d Whoops - Last fix was incorrect 2019-04-17 21:32:46 -04:00
James Agnew 3d366c2aa3 Fix typo in validator 2019-04-17 20:47:00 -04:00
James Agnew 2176e7c64d Clean up enableWhen testing in validator for Questionnaire resources 2019-04-17 15:54:40 -04:00
Lloyd McKenzie 3e95b584bc
Merge branch 'master' into Problem-with-polymorphic 2019-04-13 17:46:47 -06:00
Lloyd McKenzie 67b50b286f Resolved merge issue 2019-04-13 17:45:02 -06:00
Lloyd McKenzie aee4e7da85 Test case showing problem when slicing polymorphic types 2019-04-13 17:37:02 -06:00
Grahame Grieve ae26c82956
Merge pull request #17 from lmckenzi/extension-value-slicing
Fixed problem where discriminators containing the extension function …
2019-04-14 09:22:01 +10:00
Lloyd McKenzie e8e8c1af4e Fixed problem where discriminators containing the extension function didn't properly look for fixed value in the profile but instead always went to the extension definition. 2019-04-13 17:11:12 -06:00
Grahame Grieve cf6a4bb51f Merge branch 'master' of https://github.com/hapifhir/org.hl7.fhir.core 2019-04-14 07:59:47 +10:00
Grahame Grieve 87b191fc5d more IG maintenance work 2019-04-14 07:59:17 +10:00
Grahame Grieve 0d8b6d18a9
Merge pull request #15 from jkiddo/patch-1
Update InstanceValidator.java
2019-04-11 07:27:11 +10:00
Jens Kristian Villadsen 44a669b4bb
Update InstanceValidator.java
Corrected spelling
2019-04-10 22:52:39 +02:00
Jens Kristian Villadsen 991dcb656c
Update InstanceValidator.java
Corrected spelling
2019-04-10 22:50:21 +02:00
Grahame Grieve 599156202a validate using inline questionnaires 2019-04-09 17:48:51 +10:00
Grahame Grieve 0dad5ac58e validation related updates for IG publication 2019-04-09 14:24:05 +10:00
Grahame Grieve 3e9262afe8 Release new version 2019-04-04 11:53:45 +11:00
Grahame Grieve f67c6e2ed8 fix spelling mistake 2019-03-26 05:47:13 +11:00
Grahame Grieve c8c815aa44 more debugging for questionnaire validation 2019-03-18 13:29:36 +11:00
Grahame Grieve 34953525cc fix bug evaluating questionnaire items enable status when enableBehavior is not specified 2019-03-17 09:10:40 +11:00
Grahame Grieve b0260fbfd8 fix for questionnaire evaluation bug 2019-03-16 05:26:38 +11:00
Grahame Grieve 5653da8a27 add test for multiple discriminators, and fix validator 2019-03-05 16:59:04 +11:00
Grahame Grieve adf972be25 allow getting children in a profile on a diff 2019-03-05 14:25:28 +11:00
Grahame Grieve 0477bf174e GF#20480 - change error about year to warning 2019-03-05 09:10:07 +11:00
Grahame Grieve 58b3ca2c88 liquid generation in narrative generator, render min/max value sets, fix broken links in IGs from relative references in links in markdown in core 2019-03-05 06:52:15 +11:00
Grahame Grieve 88c145a00c fixes for validation loading 2019-03-04 15:30:33 +11:00
Grahame Grieve 5a1dfba236 Improve error message when running transforms 2019-03-04 13:17:30 +11:00
Grahame Grieve 5691333e98 GF#18121 - fix so relative links in source markdown don't generate broken linke in IGs 2019-03-04 11:53:14 +11:00
Grahame Grieve cde0df1118 fix CapabilityStatement generation 2019-03-04 11:06:33 +11:00
Oliver Egger d60d089c23 [GF#20482] FHIRPath conformsTo Validation of Warnings/Error handling 2019-02-27 23:31:56 +01:00
Grahame Grieve 445c90ff9a test 2019-02-24 21:31:47 +11:00
Grahame Grieve a04b900054 fix tests 2019-02-08 16:56:53 +11:00
James Agnew 223ea04d28 Merge changes from user submitted HAPI FHIR PR: https://github.com/jamesagnew/hapi-fhir/pull/1148 2019-02-05 17:43:50 -05:00
James Agnew caf7cea4c6 Get validator CLI working 2019-01-31 15:51:34 -05:00
Grahame Grieve 364ed14c2a rename package cache operations for clarity + upgrade for version release 2019-02-01 06:09:03 +11:00
Grahame Grieve f2b619b08e fix bugs in FHIRPath engine, and work around wrong FHIRPath statements in the validator 2019-01-31 11:59:39 +11:00
Grahame Grieve 10589ea559 finish getting tests passed 2019-01-29 14:04:36 +11:00
Grahame Grieve 40c0a58eb3 more working on tests 2019-01-29 11:00:01 +11:00
Grahame Grieve 9e583e8e35 work on getting validation tests to pass 2019-01-29 08:34:34 +11:00
Grahame Grieve 528e9e2e5e fix to compile 2019-01-15 05:59:11 +11:00
Grahame Grieve 1169a4c293 get tests passing 2019-01-15 05:12:18 +11:00
James Agnew bd899957b0 Rename the keep files 2019-01-13 16:37:16 -06:00
James Agnew cbde1cf488 Add keeps for empty folders 2019-01-13 16:20:50 -06:00
James Agnew 4991942755 Clean up project for Eclipse 2019-01-13 15:25:55 -06:00
James Agnew 806ab9fac8 Externalized code now committed 2019-01-13 14:33:14 -06:00