Commit Graph

416 Commits

Author SHA1 Message Date
Lloyd McKenzie d0df12b85f Revert to current content on HAPI 2021-02-08 08:40:11 -07:00
Lloyd McKenzie b91b68d1a2 Merge branch 'master' of https://github.com/hapifhir/org.hl7.fhir.core
# Conflicts:
#	org.hl7.fhir.convertors/pom.xml
#	org.hl7.fhir.dstu2/pom.xml
#	org.hl7.fhir.dstu2016may/pom.xml
#	org.hl7.fhir.dstu3/pom.xml
#	org.hl7.fhir.r4/pom.xml
#	org.hl7.fhir.r5/pom.xml
#	org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/conformance/ProfileUtilities.java
#	org.hl7.fhir.report/pom.xml
#	org.hl7.fhir.utilities/pom.xml
#	org.hl7.fhir.utilities/src/main/resources/Messages.properties
#	org.hl7.fhir.validation.cli/pom.xml
#	org.hl7.fhir.validation/pom.xml
#	org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/instance/InstanceValidator.java
#	pom.xml
2021-02-08 08:22:58 -07:00
Grahame Grieve 82edacbde4
Merge pull request #434 from hapifhir/gg-2021-feb-1
Gg 2021 feb 1
2021-02-08 13:28:31 +11:00
Grahame Grieve ef3b8c1f0a Fix bug validating mime types without terminology serverBase (warning, not error)
Performance improvements in JSON metadata based parser
Add first round of supplement validation
improve error message on profile validation fail
fix NPE validating some slices
fix bug validating canonicals as part of choice data types
Adds special support for http://hl7.org/fhirpath/System.* types
fix bug matching slices in contained resources that have references to #
2021-02-08 09:40:25 +11:00
Grahame Grieve 5b8aec8a06
Merge pull request #410 from rajavpr/UnknownHostException
Fix for UnknownHostException
2021-02-08 06:56:23 +11:00
Grahame Grieve da563a6637
Merge pull request #411 from ahdis/oe_fhir-28413
[FHIR-28413]: noNamespace instead of default for Logical Models not having a namespace
2021-02-08 06:46:30 +11:00
Grahame Grieve 00410604d7 Improve validator error messages for bad json & turtle formats 2021-01-20 16:53:14 +11:00
Grahame Grieve e0dabe6f33 fix profile generation issues 2021-01-14 12:21:33 +11:00
Oliver Egger c16573962b noNamespace instead of default 2021-01-02 14:19:04 +01:00
rajavpr 17d375b43e
Fix for UnknownHostException
Error connecting to build server - running without build (build.fhir.org)
java.net.UnknownHostException: build.fhir.org
	at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:220)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403)
	at java.base/java.net.Socket.connect(Socket.java:608)
	at java.base/sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:285)
	at java.base/sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173)
	at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:182)
	at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:474)
	at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:569)
	at java.base/sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:265)
	at java.base/sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:372)
	at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
	at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1187)
	at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1081)
	at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1592)
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520)
	at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:250)
	at org.hl7.fhir.utilities.npm.FilesystemPackageCacheManager.loadFromBuildServer(FilesystemPackageCacheManager.java:645)
	at org.hl7.fhir.utilities.npm.FilesystemPackageCacheManager.checkBuildLoaded(FilesystemPackageCacheManager.java:631)
	at org.hl7.fhir.utilities.npm.FilesystemPackageCacheManager.getPackageIdFromBuildList(FilesystemPackageCacheManager.java:593)
	at org.hl7.fhir.utilities.npm.FilesystemPackageCacheManager.getPackageId(FilesystemPackageCacheManager.java:565)
	at org.hl7.fhir.validation.cli.services.StandAloneValidatorFetcher.resolveURL(StandAloneValidatorFetcher.java:87)
	at org.hl7.fhir.validation.ValidationEngine.resolveURL(ValidationEngine.java:1738)
	at org.hl7.fhir.validation.instance.InstanceValidator.checkPrimitive(InstanceValidator.java:1954)
2020-12-30 15:43:03 +05:30
Grahame Grieve 3ba81328cc * More rules around URL validation, instead of just marking them as errors
* Don't report errors for extensible bindings when profiles apply required bindings
* fix rendering issue with profile references
* only use c:\temp if it's writeable
2020-12-24 13:21:30 +11:00
Grahame Grieve c4db541d7e fix up validation for R2B issues (value set references, profiled types) 2020-12-18 22:45:39 +11:00
Grahame Grieve 836863e372 allow for URLs that are references to ISO standards (urn:std:) 2020-12-18 22:44:23 +11:00
Grahame Grieve 52fae6d285 #399: fix bad error message in german 2020-12-15 14:30:44 +11:00
Grahame Grieve e2a8581a3b improve error message for FHIRPath errors when slicing 2020-12-10 13:50:20 +11:00
Grahame Grieve 1532a038c9 Validate that binding references are present, and are for value sets 2020-12-09 10:06:20 +11:00
Grahame Grieve 7de14f172e
Fix validation issues for StructureDefinitions (#396) 2020-12-04 16:11:52 -05:00
Grahame Grieve 7d95b27c1f fix validation of profiles and target profiles in all versions (before R3 different rules) 2020-12-03 16:57:53 +11:00
Grahame Grieve d4b46e32bf Improve security warnings about rogue HTML tags 2020-12-03 12:56:28 +11:00
Grahame Grieve 2f69a6734c escape | in URLS for terminology service 2020-12-03 12:55:51 +11:00
Grahame Grieve 87e8f5a36a Add new validation to check these words in R3+: "Except for transactions and batches, each entry in a Bundle must have a fullUrl which is the identity of the resource in the entry" 2020-12-01 14:52:41 +11:00
Grahame Grieve 1e16f02b48 Fix bug in package loader - allow loading version with later patch if old version is missing 2020-12-01 14:51:19 +11:00
Grahame Grieve 65a17e6bd8 Merge branch 'master' of https://github.com/hapifhir/org.hl7.fhir.core 2020-11-30 06:53:26 +11:00
Grahame Grieve 9080a24c29 sync up 2020-11-30 06:53:15 +11:00
Mark Iantorno 9913168321
Pay no attention to the man behind the curtain (#388)
* added back in help file, and removed network logging

* avoid checking ssl certs for build server

* fixing help file loading from cli jar
2020-11-28 09:47:19 -05:00
Grahame Grieve d4087590bf
hopefully final prep for 5.2.2 (#387)
* Add on the fly retrieval of profiles in the validator, and fix bug where validator reported 'not done yet' for invalid contained references.

* fix loading issue for content references in versions before R3

* fix content resolution issue for versions from before 3

* Fix for bundle renderer trying to render resources from the wrong version

* Fix for wrong reference to Any in cross version extensions

* fix test case reference

* fix mistake generating snapshots around element ids

* fix tests
2020-11-27 09:20:49 -05:00
Grahame Grieve 624ce59c83 Add on the fly retrieval of profiles in the validator, and fix bug where validator reported 'not done yet' for invalid contained references. 2020-11-27 10:34:43 +11:00
Grahame Grieve b7d3f36f86 fix package loading issues 2020-11-18 21:05:16 +11:00
Grahame Grieve 4088dddaee fix bug where end of stream is read wrongly parsing XHTML (+ test case) 2020-11-14 08:17:48 +11:00
Grahame Grieve c6a2fb375c allow lazy loading of special packages 2020-11-14 08:17:14 +11:00
Grahame Grieve 8c0523f3fa Fix bug in unknown URL handling that could cause significant delays in validation (>1min / unknown URL) 2020-11-13 14:36:10 +11:00
Grahame Grieve ef3e34ae01 * add styling when adding markdown to table
* don't apply warning about reference content when it's used as a pattern
2020-11-11 10:12:48 +11:00
Grahame Grieve f23114f901 * fix for NPE in version string comparison 2020-11-11 10:11:40 +11:00
Grahame Grieve 4e602b07e9 fix problem rendering multiple manifestations for an allergy reaction 2020-11-11 10:04:47 +11:00
Grahame Grieve ca48cf7f79 * Don't render id/base/other properties of Resource itself in auto-narrative generator
* fix bug where extension values not generated for simple extensions
2020-11-05 14:12:57 +11:00
jamesagnew 943bc7413c Add more tests 2020-11-01 21:09:11 -05:00
jamesagnew 0c01404a4f Improve numeric comparison 2020-11-01 21:09:11 -05:00
Grahame Grieve bc1d67db96 * fix bug checking unfixed values for HumanName patterns
* fix bug checking patterns (missed in some circumstances)
* fix bug checking type of resources in bundles
* improve messages around cardinality errors in profiles
2020-10-29 14:03:08 +11:00
Grahame Grieve 49fbc739fd improved markdown support in table generator 2020-10-29 14:00:21 +11:00
Grahame Grieve 4c421eefd7 * Render binding description in profile tables if it doesn't contain paragraphs
* fix bug with wrong value for contentReference in derived profiles (profiles do not and cannot change the value)
2020-10-29 13:56:56 +11:00
Mark Iantorno e1ecd06282
Validator 2 (#366)
* changes to accomodate front end gui for validator wrapper

* removing debug code
2020-10-19 16:39:22 -04:00
Mark Iantorno 36fa3a97af
Validator cleanup (#365)
* cleaning up validator class

* wip

* I left my debug code in
2020-10-16 10:44:01 -04:00
Grahame Grieve 1569532a1c Validate Profile on type in profile - must be for the right type 2020-10-14 13:21:50 +11:00
Grahame Grieve d20582ca9d revise error message when can't connect to the terminology server 2020-10-08 20:59:39 +11:00
Grahame Grieve cb25ef1bd1 Add text separator system 2020-10-08 20:59:10 +11:00
Grahame Grieve c82c71894f Add UTG version revision engine 2020-10-08 20:58:28 +11:00
Grahame Grieve 3e6863ef70 Support for additional checking in IG Publisher 2020-10-01 11:05:24 +10:00
Grahame Grieve 77d33e8afa Fix comment parsing and add focus to FHIRPath function extensions 2020-10-01 11:04:34 +10:00
Grahame Grieve 2e8953a81d add search on IG registry to PackageClient 2020-10-01 11:00:31 +10:00
Grahame Grieve 46d1987cd0 refactor FHIRPath to report error locations for run time errors 2020-09-30 12:10:59 +10:00