136 Commits

Author SHA1 Message Date
Grahame Grieve
1f76c6e944
Merge pull request #1230 from hapifhir/MapValidationStuff
Fix IG Loader problems where map conversion no longer works with a 'n…
2023-04-26 22:24:51 +10:00
Grahame Grieve
20f73e2094 fix spelling mistakes 2023-04-24 23:07:09 +10:00
Lloyd McKenzie
5e8f97f57c Fix IG Loader problems where map conversion no longer works with a 'null' context 2023-04-23 14:20:45 -06:00
dotasek
9b4b1ae2cc
Add -fhir-settings param to Validator CLI (#1203)
* Start work

* Tests for new Param

* More tests, add param, refactor

* Rename + JsonProperty annotations

* Logging for API keys

* WIP rename search parameter + add settings object for serialization

* Switch to JSON based settings file.

* Rename FHIRSettings and remove ToolGlobalSettings

* Update default path for settings file + expand test

* Only allow single instantiation with explicitFilePath

* Move and expand tests

* Fix failing test

* Add test for FhirSettings param precedence

* Refactor to only call getInstance() internally in FhirSettings
2023-04-19 17:18:29 -04:00
Grahame Grieve
81d26c5160 work on no-network-access mode 2023-04-18 09:39:59 +08:00
Amir Toosi
b09e536387
Fix HumanName getNameAsSingleString never returning text element (#1207)
* Fix HumanName getNameAsSingleString never returning text element

* Add test + gentle rename in joinStringsSpaceSeparated

* removed unused variable from unit test. added fix for getNameAsSingleString to r5.

* changed variable names in joinStringSpaceSeparated to more meaningful names

* Add tests and fixes for dstu2016may, dstu3, and r4b + gentle refactor

---------

Co-authored-by: dotasek <david.otasek@smilecdr.com>
2023-04-12 14:31:58 -04:00
Grahame Grieve
0c26f09721 revise whitespace handling for unicode conformance in validator 2023-03-07 06:25:45 +11:00
Grahame Grieve
38a55d261d update table generator to suppress external links in base row and column 2023-02-18 15:13:13 +11:00
Grahame Grieve
1e6fd76ace special case work around for old THO problem 2023-01-31 16:07:10 +11:00
dotasek
f58b7acfb5
Swaps isBase64 with internal implementation for Android compatibility (#1079)
* Adding animal sniffer to display all issues related to android compatibility.

* Duplicate isBase64 internally

Co-authored-by: Vitor Pamplona <vitor@vitorpamplona.com>
Co-authored-by: dotasek <david.otasek@smilecdr.com>
2023-01-18 18:40:24 -05:00
Grahame Grieve
01c131b29d see PR 1075 - fix issue with setProperty() ignoring extensions 2023-01-17 11:22:42 +11:00
dotasek
ee9fc6e924
Add missing space to FHIRException message (matches r5 ResourceType now) (#1067)
Co-authored-by: dotasek <david.otasek@smilecdr.com>
2023-01-11 16:28:46 -05:00
Quentin Ligier
858c06f097
Fix appending text in ProfileUtilities
If the base text was null, appending a text in the derived element (using "...") would show a "null" before the text. This commit adds the method Utilities.appendDerivedTextToBase() to implement to correct behavior.
2022-12-23 18:52:47 +01:00
Grahame Grieve
80f275ff18 upgrade to new JSON parser 2022-11-24 17:57:46 -03:00
Grahame Grieve
8e3833f58a Fix broken LOINC link 2022-11-19 03:39:35 -03:00
Grahame Grieve
b4d21b8263
Merge pull request #994 from hapifhir/gg-202211-xhtml-entities
Gg 202211 xhtml entities
2022-11-17 16:57:04 -03:00
Grahame Grieve
28d107b4ae Validate XHTML entities in XML 2022-11-17 15:21:17 -03:00
dotasek
82972d5216
Add https-proxy param + fix proxy authorization header (#888)
Co-authored-by: dotasek <david.otasek@smilecdr.com>
2022-11-17 11:27:21 -05:00
Grahame Grieve
ac67f945a0 Support for requirements resource 2022-10-24 11:40:00 +11:00
Grahame Grieve
b17735a15b Add support for ActorDefinition 2022-10-17 11:43:33 +11: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
dotasek
e406fe3645 dstu2016may + dstu3 tests + fix 2022-08-25 09:18:45 -04:00
jamesagnew
056e41d19d Add Reference.resource to output of copy(). 2022-08-09 11:23:23 -04:00
James Agnew
f010804e44
Rework precision checking in datetime (#874) 2022-07-25 16:40:55 -04:00
dotasek
0ecba5bf2a Fix validation message for toCalendarZulu day validation 2022-06-20 09:26:11 -04:00
Grahame Grieve
b47b0653c4 moving FHIRPublication 2022-04-23 23:18:23 +10:00
dotasek
1645982389
Fix for issues/766 - reverse references with _history in GraphQL (#790)
* Create and use getIdPart

* Add tests and changes for dstu3, r4, r4b, and r5

* Update get/set Id javadoc

Co-authored-by: dotasek <david.otasek@smilecdr.com>
2022-04-22 18:06:24 -04:00
Grahame Grieve
c58516ce44 remove references to c:\temp 2022-04-20 09:59:30 +10:00
dotasek
a8da416ee3 Fix xml test + add unit tests 2022-04-11 14:57:10 -04:00
dotasek
2181cb14d5 Change tests to xml + fix breaking test 2022-04-11 14:10:53 -04:00
dotasek
b5b43836eb Add tests and changes for Base64Binary 2022-03-16 12:20:58 -04:00
dotasek
9903d15ecc Add tests for setValueAsString and contructor precision checking 2022-03-15 17:47:23 -04:00
dotasek
1a7e076479 Move precision checking code to setValueAsString 2022-03-15 16:49:51 -04:00
markiantorno
260d8474bf issue_761 fix 2022-03-14 11:27:18 -04:00
dotasek
f2e9f1247b Add assertions to test case 2022-02-25 13:11:24 -05:00
dotasek
baac4ac1a8 Fix + initial test 2022-02-25 11:25:27 -05:00
Grahame Grieve
6310b1158e #722 fix ListResource name misuse 2022-02-13 08:29:01 +11:00
dotasek
847ede5f88 Refactor SimpleWorkerContext and ValidationEngine 2022-02-01 15:28:19 -05:00
Grahame Grieve
cae92c8621
Merge pull request #727 from hapifhir/ja_20220130_graphql_cleanup
Updates to GraphQL
2022-02-01 11:49:10 +11:00
jamesagnew
846866472b Updates to GraphQL 2022-01-30 17:04:10 -05:00
dotasek
4826424499 Make additional caches to cover NativeHostService and ValidationService 2022-01-19 18:36:39 -05:00
dotasek
1c1e7d22ca WIP track server requests 2021-12-07 16:08:28 -05: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
dotasek
d374758f49 Refactor FhirReqestBuilderTests 2021-11-24 13:29:33 -05:00
dotasek
acac125e31 Add logging tests for dstu3 FhirRequestBuilder 2021-11-24 11:33:19 -05:00
dotasek
e997f7bb08 Add request logging for dstu3 FhirRequestBuilder 2021-11-23 14:09:42 -05:00
Grahame Grieve
bbac44fc52 reduce spurious logging 2021-11-18 08:09:43 +11:00
Grahame Grieve
d91b26e69b Add getServerVersion to tooling client 2021-11-09 06:13:18 +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
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