Commit Graph

652 Commits

Author SHA1 Message Date
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
Mark Iantorno b6abeef327
Fix for https://github.com/hapifhir/hapi-fhir/issues/2540 (#481)
woooooo
2021-04-21 11:26:53 -04:00
Grahame Grieve 7b60c1b85d Fix issue where primitive elements with required bindings must have a value, but this wasn't be checked 2021-04-21 17:41:22 +10:00
Grahame Grieve 7d2df18fb9 Better memory tracking for validator 2021-04-21 17:40:42 +10:00
Grahame Grieve a10fdb13e3 validation optimisation 2021-04-12 11:22:43 +10:00
Grahame Grieve 50642db412 Merge branch 'master' of https://github.com/hapifhir/org.hl7.fhir.core 2021-04-02 06:24:53 +11:00
Grahame Grieve 11f66836ed fix for R2B validation of resource ids, and problems validating codes 2021-04-02 06:24:43 +11:00
Mark Iantorno 5c9cd6830a
wip (#471) 2021-04-01 12:50:09 -04:00
Grahame Grieve 032b81a38e fix issue with validating fixed values for primitive elements 2021-03-29 17:26:12 +11:00
Grahame Grieve 4e4885dc7d Fix null pointer exception in validator validating language codes 2021-03-29 13:35:51 +11:00
Grahame Grieve 58055aeaa6
Merge pull request #452 from health-validator/fix-crash-folder-in-scope
Fix validator crash when a nested folder is present in -ig <path>
2021-03-29 08:56:32 +10:00
Mark Iantorno 1712d66c08
commenting out code causing IG publishing errors for extension.url (#465) 2021-03-19 18:49:06 -04:00
markiantorno 76112af3c7 setting session ID on all response bodies 2021-03-11 15:31:35 -05:00
markiantorno d275e304fa JsonProperty label change for validation session id 2021-03-11 14:46:36 -05:00
Vadim Peretokin 776811813e fix crash when folder is present in ig folder 2021-03-07 11:58:18 +01:00
Mark Iantorno dfc59882ca
the validator front end needs these changes (#450) 2021-03-04 20:38:01 -05:00
Grahame Grieve 14dc86e3a2 Fix bug in profile validation 2021-03-04 07:27:11 +11:00
Grahame Grieve cd7a8d39e7 * Improve terminology validation error messages
* add additional validation on profiles around types (for logical models)
2021-03-03 13:30:58 +11:00
Mark Iantorno b700d82eab
Validation sessions (#443)
* Sessions are working,

* adding javadocs to cache

* These changes were already added, the merge re-added them to the RELEASE_NOTES by mistake.

* cleaning code a little
2021-02-23 14:44:13 -05:00
Mark Iantorno c422ddc388
Refactoring validator engine (#436)
* Initial commit, tests passing

* continuing breaking up massive classes
2021-02-15 16:48:40 -05:00