Commit Graph

2055 Commits

Author SHA1 Message Date
Adrian Clay b8e8e771f0 Add support to XhtmlParser to handle 2 character HTML Entities
Previously, the parser would mangle any HTML entity greater than
0xFFFF
2024-01-04 16:29:05 +00:00
Grahame Grieve 2b978b4d4d more terminology qa updates 2024-01-04 14:29:19 +11:00
Grahame Grieve 92fca7a947 more tx validation improvements 2024-01-03 22:19:05 +11:00
Grahame Grieve 84659e501c fix split implementation 2024-01-02 09:40:32 +11:00
Grahame Grieve 159e189520 Add support for tracking source server of issue 2023-12-31 08:34:55 +11:00
Grahame Grieve d429f48760 major upgrade to validation - use terminology server to perform more logic, and standardise interface based on agreements with Vocab & Ontoserver 2023-12-30 23:02:19 +11:00
Grahame Grieve 3ed816209d update terminology server for test reconciliation with tx.fhir.org 2023-12-25 00:28:39 +11:00
Grahame Grieve 70af787438 IPS development 2023-12-22 21:23:34 +11:00
Grahame Grieve 74893e42e7 Improved errors publishing IGs 2023-12-22 21:23:17 +11:00
Grahame Grieve 073311bbb6 Various fixes to terminology service after reconciliation with Michael Lawley 2023-12-22 21:20:10 +11:00
markiantorno d4d7600635 Updating version to: 6.2.8-SNAPSHOT and incrementing test cases dependency. 2023-12-15 13:00:23 +00:00
markiantorno 6c78cc3e48 Release: v6.2.7
## Validator Changes

* Fix up validation of fragment and example value sets
* Improve handling of terminology messages + handling of example and fragment code systems
* Add support for logical_container extension (for CDA constraint validation)
* Clean up handling of xml_name
* Check for xver extension canonical urls when validating uri elements
* Upgrade xver to latest R5 definitions

## Other code changes

* Fix string index error in xver manager
* Fix rendering of type for previous versions
***NO_CI***
2023-12-15 10:50:47 +00:00
Grahame Grieve 09c2c8f81b Improve handling of terminology error and warning messages + handling of example and fragment code systems 2023-12-15 04:21:50 -05:00
Grahame Grieve 45b35c52d5 upgrade xver to latest R5 definitions 2023-12-14 07:20:45 -05:00
markiantorno ceaa131d81 Updating version to: 6.2.7-SNAPSHOT and incrementing test cases dependency. 2023-12-13 19:07:52 +00:00
markiantorno b5902aac98 Release: v6.2.6
## Validator Changes

* Fix bug where validator doesn't actually validate web sourced input
* Fix narrative link validation and add id/idref validation
* Remove fhir-test-cases from Validator CLI JAR (#1497) (reduce size)
* Fix to CDA xsi:type validation per SD decision
* Apply regex pattern to literal format if defined
* Improvements to vital signs related messages
* Fix R4 con-3 FHIRPath expression
* Fix bug loading packages with partially specified version that doesn't exist
* Fix for occasional missing warnings around bundle link validation
* Fix using wrong resource type when validating constraints in data type definitions during R6 build
* Fix NPE in validator processing CCDA examples
* Fix problem with version dependencies when loading npm packages directly as files
* Fix for SearchParameter validation using custom resource types

## Other code changes

* Bump commonmark version
* fix Utilities display of time periods (fixed width hour:min)
* Fix stated path for error when code not in value set
* Fix rendering of trigger definition using tables inside paragraphs
* Update VSAC importer to fix timeout issues
* Refactor FHIRPath java package
* Fix problem with profiled resources being called examples in IG publisher
* Remove dependencies for unused UI experiment (#1465)
* Remove AU connectathon
* Include hamcrest dependency
* Fix breaking ValidationEngineTests
* Give kinder error message for missing param
* Fix commonmark group and bump version (#1500)
* Remove dep used for local testing
* Bump jackson & logback versions
* Fix StringType element properties not being copied in various Address, HumanName convertors
* Handle all initial value types when rendering Questionnaires
* Ensure Address.line[] element data is copied over
* Write locking on FilesystemPackageCacheManager
* Fix problems setting owning committee consistently
* Utility classes for fule system package cache pre-loading
***NO_CI***
2023-12-13 18:41:20 +00:00
dotasek 0afea8dc1d
CLI Task to preload package cache (#1508)
* WIP start building preload task

* Slightly refactor exceptions

* sleep between each query

* WIP - FilesystemPackageCacheManager refactor

* Finish refactor

* Customize PackageVisitor

* Remove unused code

* Remove unused code 2

* Add debug logging for failing test

* Point withCacheFolder if to correct param

* Remove console chatter

* Rename to FilesystemPackageCacheManager.Builder

* Move logic to PackageCacheDownloader for re-use in other projects

* Fix spacing
2023-12-13 11:27:15 -05:00
dotasek 27e0fbad16 Merge remote-tracking branch 'origin/master' into do-20231127-package-cache-threadsafe 2023-12-11 09:56:39 -05:00
Grahame Grieve de7dc3023d fix validation issues on HL7 publisher 2023-12-11 16:56:27 +11:00
Grahame Grieve 4b1488438e missed files 2023-12-11 14:10:26 +11:00
Grahame Grieve f88f4e492e fix bug loading packages with no specified version that don't exist 2023-12-11 14:08:28 +11:00
Grahame Grieve e697ec1c4c check extensions with fhirpath context 2023-12-05 16:56:44 +11:00
Grahame Grieve 53586dfba5 update pubpack 2023-12-03 20:05:21 +11:00
Grahame Grieve c4f6fe4676 Addressing WG problems in kindling 2023-12-03 20:05:10 +11:00
Grahame Grieve 592c1a4315 fix display of time periods (fixed width hour:min) 2023-12-01 16:56:28 +11:00
Grahame Grieve 0ae15f7d4d Fix narrative link validation and add id/idref validation 2023-12-01 16:56:11 +11:00
dotasek 698849b9f2
Remove fhir-test-cases from Validator CLI JAR (#1497)
* WIP drop fhir-test-cases from CLI jar

* Fix missing JUnit4 tests, update to JUnit5 where possible

* Fix unused import

* Include hamcrest dependency

* Fix breaking ValidationEngineTests

* Give kinder error message for missing param
2023-11-29 14:48:18 -05:00
dotasek 37a8373b94
Fix commonmark group and bump version (#1500)
* Fix commonmark group bump version

* Remove dep used for local testing
2023-11-29 14:47:51 -05:00
dotasek 1866be1673 Use a smaller package 2023-11-29 12:02:41 -05:00
dotasek 09ab60405d Add per-file ReadWriteLock to CacheLock 2023-11-29 10:59:01 -05:00
dotasek 84e456c5dc Actual assertion for test 2023-11-29 10:35:49 -05:00
dotasek ff6ea47751 Failing test 2023-11-28 17:41:59 -05:00
dotasek 2ea6d44330 Revert "Fix commonmark group bump version"
This reverts commit 5cf89d8202.
2023-11-27 13:14:18 -05:00
dotasek 5cf89d8202 Fix commonmark group bump version 2023-11-27 11:13:31 -05:00
dotasek a04475ea9c Revert "Fix commonmark group bump version"
This reverts commit 6b45c63638.
2023-11-27 11:10:02 -05:00
dotasek 6b45c63638 Fix commonmark group bump version 2023-11-27 11:06:48 -05:00
markiantorno bf426e2d28 Updating version to: 6.2.6-SNAPSHOT and incrementing test cases dependency. 2023-11-24 19:35:02 +00:00
markiantorno 70d3c801d3 Release: v6.2.5
## Validator Changes

* Fix validator not allowing canonical resource extensions in canonical resources in bundles
* Fix bundle validation error on intneral link checking
* Check parameter type for FHIRPath where() and all()
* Validate that composite search parameters have components

## Other code changes

* Refactor timeout control on client
* Support IPS in validation tests
* Remove orphan R4B test
* Improve expansion error messages
* Fix expansion language - don't set for displayName parameter
* Adjust value set rendering for fragment code systems
* Fix NPE rendering some resources
* Fix rendering of TriggerDefinition
* Support parsing ad-hoc json data type fragments
* More memory work for IG Publisher
* Move ILoggingService & VersionUtil
* Fix timeout issue in vsac
* Introduce ips builder + Infrastructure changes for IPS builder
* Move json and xml extensions from extensions pack to tooling ig
* Add support for rendering union and intersections of profiles in profile comparison
* FHIRPath iif() test case fixes
* Add support for IPS validation in test cases
* Fix for broken markdown re-processing
* Improve identifier rendering
* Fix committee URLs
***NO_CI***
2023-11-24 19:08:02 +00:00
Grahame Grieve 36361eaa1d refactor timeout control on client 2023-11-24 12:06:18 +11:00
Grahame Grieve 623760d887 Improve expansion error messages 2023-11-24 08:51:47 +11:00
Grahame Grieve bd98afaa09 refactor versionutil 2023-11-24 06:10:38 +11:00
Grahame Grieve aa20c450d2 fix for broken markdown re-processing 2023-11-17 07:10:57 +11:00
Grahame Grieve e009734d85 fix committee URLs 2023-11-17 07:10:02 +11:00
markiantorno 8fe88a320e Updating version to: 6.2.5-SNAPSHOT and incrementing test cases dependency. 2023-11-15 18:56:03 +00:00
markiantorno 29b1cd98dc Release: v6.2.4
## Validator Changes

* Add support for NZ IPS
* Don't fail on erroneously repeating elements, and more bundle link validation
* Rework bundle references validation
* Fix problem creating CDA type discriminators
* Fix bundle resolution rules to conform to the specification in version R4+

## Other code changes

* Fix issue where markdown with multiple characters was being cut off sometimes
* Fix bundle resolution rules to conform to the specification in version R4+
* More work on versioned API
* Fix up VSAC import for large value sets
* Fix FHIRPath cda tests for empty package cache
* Fix problem with R3 expansion
* Add support for CCDA .hasTemplateIdOf(canonical)
* Fix issue where markdown with multiple characters was being cut off sometimes
***NO_CI***
2023-11-15 18:29:25 +00:00
Grahame Grieve 220210bca3 fix failing test 2023-11-15 18:06:55 +11:00
Grahame Grieve 6181d812e6 Rework bundle references validation 2023-11-15 14:20:54 +11:00
Grahame Grieve 618930e5bf Planning ahead: Add fhirVersion to R5 Base and IWorkerContext methods, and move IContextResourceLoader, ValidationResult and CodingValidationRequest out of IWorkerContext to their own clasess 2023-11-14 06:38:40 +11:00
Grahame Grieve 90b0e0d3d6 Fix issue where markdown with multiple characters was being cut off sometimes 2023-11-13 07:38:59 +11:00
Grahame Grieve 4c6a318749 Fix bundle resolution rules to conform to the specification in version R4+ 2023-11-13 07:38:31 +11:00
markiantorno c128f3b61d Updating version to: 6.2.4-SNAPSHOT and incrementing test cases dependency. 2023-11-11 06:49:45 +00:00
markiantorno 7cb9286e3f Release: v6.2.3
## Validator Changes

* Remove wrong LOINC code for circumference % from vital signs scan
* Remove spurious error when profile discriminators have no value
* Fix as() and ofType() in FHIRPath engine to support type namespaces properly
* Fix problem with FHIRPath engine wrongly checking types in context of CDA
* Fix date validation error in CDA validation
* Update error handling to preserve message ids properly

## Other code changes

* Add rendering of II.system
* Fix extension handling when generating snapshots - which are ignored, overwrite, or add
* Delete some empty java files
* Remove unnecessary snapshot tests
***NO_CI***
2023-11-11 06:24:19 +00:00
Grahame Grieve 6d4f6b507f Fix as() in FHIRPath engine to support type namespaces properly 2023-11-10 16:39:31 +11:00
Grahame Grieve dc791becaa update error handling to preserve message ids properly 2023-11-09 16:51:15 +11:00
markiantorno c717f898ef Updating version to: 6.2.3-SNAPSHOT and incrementing test cases dependency. 2023-11-07 03:30:21 +00:00
markiantorno 3a7733ea02 Release: v6.2.2
## Validator Changes

* Validate Vital signs Profiles when validating observations
* Hack around problem with vs-1 constraint in R4
* Check for retired status when multiple OID matches exist
* Fix for validating extensions on R5 resources in R4 (R4 special case)
* Minor fixes for standalone ViewDefinition validator

## Other code changes

* Revised Capability Statement rendering (Thanks Vassil Peytchev)
* Fix bug rendering primitive types with an extension that provides a value alternative
* Add links to references when rendering json and xml instances in IG publisher
* Fix bug generating profile spreadsheets
* Support suppress examples when generating snapshots
* VSAC Import improvements
***NO_CI***
2023-11-07 02:46:28 +00:00
Grahame Grieve 80fe954a37
Merge pull request #1480 from vassilpeytchev/master
Enhanced Capability Statement rendering
2023-11-07 11:06:11 +11:00
Grahame Grieve 0685bc7a81 Fix for validating extensions on R5 resources in R4 (R4 special case) 2023-11-07 09:14:42 +11:00
Grahame Grieve 35c7e18e55 Validate Vital signs Profiles when validating observations 2023-11-05 09:19:39 +11:00
Vassil Peytchev 4c4156d539
Merge branch 'hapifhir:master' into master 2023-11-01 14:44:46 -05:00
dotasek 35504dc460
Use https for primary packages server (#1476)
* Use https for primary packages server

* Fix okToUsePackageServer
2023-11-01 09:37:41 -04:00
markiantorno a47dccc7f6 Updating version to: 6.2.2-SNAPSHOT and incrementing test cases dependency. 2023-10-31 16:23:32 +00:00
markiantorno 3c198658e1 Release: v6.2.1
## Validator Changes

* Validate contextInvariant in extension definitions
* fix Typo in TI WG name
* Handle unknown constants properly in FHIRPath
* Fix handling of type ancestors at the root of FHIRPath expressions
* CDA templates with no extension value use urn:oid: not urn:hl7ii:
* Allow URL as a type of string in FHIRPath type checking
* Fix semver validation
* Fix problem resolving context in CDA invariants

## Other code changes

* Finish SQL in FHIR Implementation, but disable sql on fhir tests until package is packaged properly by next release of IG publisher
* Fixes to Search Parameter rendering per FHIR-I decision
* Fix broken links in extension references done by [[[]]]
* Fix broken links in code system rendering of parents
* Support using names in [[[markdown]]] when rendering
* Remove "profile" from tx operations
* Include checkIPSCodes and bundleValidationRules in json
***NO_CI***
2023-10-31 15:51:40 +00:00
Grahame Grieve 6c878dd9c0 Validate contextInvariant in extension definitions 2023-10-31 17:00:52 +11:00
Grahame Grieve e061c221cf fix typo in WG name 2023-10-31 17:00:33 +11:00
Vassil Peytchev c173df9f5b Updates for Capability Statement rendering 2023-10-27 15:03:19 -05:00
Grahame Grieve 322f0d4756 allow URL as a type of string in FHIRPath type checking 2023-10-28 06:37:42 +11:00
Grahame Grieve 681bc1ab36 Fix semver validation 2023-10-28 06:36:34 +11:00
Grahame Grieve a327f0312e code clean up 2023-10-28 06:35:20 +11:00
markiantorno b60d9e4f81 Updating version to: 6.2.1-SNAPSHOT and incrementing test cases dependency. 2023-10-24 23:01:44 +00:00
markiantorno 7c3863c6ad Release: v6.2.0
## Validator Changes

* Validation by templateId for CDA
* Fix NPE validating concept maps
* Update ViewDefinition validator for change (alias -> name)
* Fix for NPE validating sql-on-fhir ViewDefinition
* Fix for index out of bounds error when extension uses itself
* Fix issue where .resolve() in FHIRPath didn't work with URL values (and fix typo in i18n system)
* Implement FHIRPath slice() function in validator
* Fix bug where Snapshot generation can run off the end of the differential

## Other code changes

* Breaking API Change: Revise FHIRPath API so hosts can evaluate expressions in custom functions
* Add package use tracking to FHIR cache for validator.fhir.org
* Support for instance-name and instance-description in IG publisher
* Element.removeExtension (support for instance-name and instance-description extensions in IG publisher)
* Split terminology service tests
* Hack for wrong URLs in subscriptions backport
* Remove dependencies for unused UI experiment
* More improvements to profile code generation
***NO_CI***
2023-10-24 22:34:10 +00:00
Grahame Grieve e2ac0c56c7 bump minor version correctly 2023-10-25 08:20:34 +11:00
Grahame Grieve e431770caf
2023 10 gg code gen (#1469)
* Revise FHIRPath API so hosts can evaluate expressions in custom functions

* Implement slice() function in validator

* more improvements to profile generation

* Fix issue where .resolve() in FHIRPath didn't work with URL values (and fix typo in i18n system)

* release notes

* Fix test ignore/exclude issues, bump test cases

---------

Co-authored-by: Grahame Grieve <grahameg@gmail.ccom>
Co-authored-by: dotasek <david.otasek@smilecdr.com>
2023-10-24 15:26:24 -04:00
Grahame Grieve 2f8a5a071e validation by templateId for CDA 2023-10-20 21:30:25 +11:00
Grahame Grieve 6a78fdd1e0 Add package use tracking to FHIR cache for validator.fhir.org 2023-10-20 16:32:16 +11:00
markiantorno 87b756e0c7 Updating version to: 6.1.17-SNAPSHOT and incrementing test cases dependency. 2023-10-16 22:48:30 +00:00
markiantorno b9338024a6 Release: v6.1.16
## Validator Changes

* Fix bug processing value sets containing URLs

## Other code changes

* Add initial support for http://hl7.org/fhir/tools/StructureDefinition/type-profile-style
* More work on sql-on-fhir implementation
* Allow for type parameter to custom functions in FHIRPath
* Fix bugs in processing current packages for XIG
***NO_CI***
2023-10-16 22:19:52 +00:00
Grahame Grieve ae037cb5d6 set up release 2023-10-17 08:37:43 +11:00
Grahame Grieve ac10ddc9ac Add initial support for http://hl7.org/fhir/tools/StructureDefinition/type-profile-style 2023-10-16 23:13:46 +11:00
markiantorno a31120f15f Updating version to: 6.1.16-SNAPSHOT and incrementing test cases dependency. 2023-10-13 16:03:08 +00:00
markiantorno 17b7528c0f Release: v6.1.15
## Validator Changes

* Support for CDA code validation

## Other code changes

* Update XML Parser & logical model renderer for XML choice groups
* Restore JSON Parser method for HAPI compatibility.
* Maintain OID to URL lookup index
* Fix json parsing of CDA
***NO_CI***
2023-10-13 15:36:00 +00:00
Grahame Grieve 9d742dcd24 rework OID handling 2023-10-13 10:27:53 +11:00
Grahame Grieve 3d039a89eb get tests passing 2023-10-12 21:50:39 +11:00
Grahame Grieve 84e3bec25f more XML checking for CDA + control over date rules 2023-10-12 20:15:16 +11:00
Grahame Grieve 04597eea27 OID related fixes 2023-10-12 20:13:48 +11:00
Grahame Grieve 1207e32e20 Support for CDA code validation 2023-10-12 12:54:25 +11:00
Grahame Grieve a10ac3c590 Build OID -> URL Index 2023-10-12 12:53:55 +11:00
markiantorno 65161437cb Updating version to: 6.1.15-SNAPSHOT and incrementing test cases dependency. 2023-10-10 10:28:06 +00:00
markiantorno faf0e0684c Release: v6.1.14
## Validator Changes

* Make sure logical models get a snapshot generated

## Other code changes

* Fix URL of concept map extension in version conversion
***NO_CI***
2023-10-10 10:01:13 +00:00
markiantorno 5f96bcd35d Updating version to: 6.1.14-SNAPSHOT and incrementing test cases dependency. 2023-10-09 19:09:40 +00:00
markiantorno 2d5efc33d1 Release: v6.1.13
## Validator Changes

* Improve language on constraint error message + add expression checking for SQL on FHIR project

## Other code changes

* Fix uuid() executing StructureMaps and don't throw errors processing StructureMaps
* Add support for test folder in NPM packages
* Fix rendering of XML Attributes in profiles
* Add support for hosts to manage certificate resolution using ISignatureServices + fix issue matching type names when validating logical models
* Make sure snapshots are generated when fetching types
* Workaround issue where R5 build wrongly adds ele-1 to base
* Fix conversion issue associated with ConceptMap.element.target.equivalence in versions previous to R5 (use proper extension URL, and move extension so it can be a modifier. And fix for modifierExtension handling)
* Fix birthDate editing in CmdLineApp
***NO_CI***
2023-10-09 18:43:48 +00:00
Grahame Grieve 9da31ae8ad improve language on constraint error message + add expression checking for SQL on FHIR project 2023-10-09 17:46:33 +11:00
markiantorno 9ec1c68cfc Updating version to: 6.1.13-SNAPSHOT and incrementing test cases dependency. 2023-10-05 02:20:25 +00:00
markiantorno d705905c8c Release: v6.1.12
## Validator Changes

* fix CDA parsing error for sdtc:raceCode
* fix xml output to deal with namespaces properly
* fix FHIRPath join implementation to make separator parameter optional

## Other code changes

* Improve rendering for xml_no_order extension
* add command line demo app
* rework xig into 3 steps
* add userData to JSON element
* Initial SQL On FHIR implementation
* Add getDistalNames() to FHIRPath for SQL-on-FHIR support
***NO_CI***
2023-10-05 01:50:02 +00:00
Grahame Grieve 752ab7a3d1
2023 10 gg cda parsing fix 2 (#1451)
* fix xml output to deal with namespaces properly

* Improve rendering or xml_no_order

* add command line demo app

* fix CDA parsing error for sdtc:raceCode

* Fix error message

* Bump test case version

---------

Co-authored-by: Grahame Grieve <grahameg@gmail.ccom>
Co-authored-by: dotasek <dotasek.dev@gmail.com>
2023-10-04 18:42:29 -04:00
Grahame Grieve d6eb345692
Merge pull request #1449 from hapifhir/2023-10-gg-xig_steps
2023 10 gg xig steps
2023-10-04 03:57:22 +03:00
Grahame Grieve fb7ad19218 add userData to JSON element 2023-10-03 16:12:02 +03:00
Grahame Grieve f70b3ac23b Initial SQL On FHIR implementation 2023-10-03 16:11:47 +03:00
markiantorno 627e40934b Updating version to: 6.1.12-SNAPSHOT and incrementing test cases dependency. 2023-10-02 13:18:11 +00:00
markiantorno 9b5c26be25 Release: v6.1.11
## Validator Changes

* Fix FHIRPath type resolution for logical models
* Update parsers to record the element format for logical model validation
* fix profile matching for CDA logical models

## Other code changes

* Upgrade PackageVisitor for XIG
***NO_CI***
2023-09-30 18:21:42 +00:00