Commit Graph

365 Commits

Author SHA1 Message Date
Grahame Grieve 29e9f28add update SPDX code system in R4/R4B for support for not-open-source 2023-07-05 07:18:44 +10:00
Grahame Grieve 2f253f3457 Update SPDX implementation 2023-06-24 08:55:51 +10:00
dotasek ae59d97ba5 Document new method, add to all FHIR versions 2023-06-19 15:41:04 -04:00
James Agnew 0eca8d14ba Fix asStringValue on IdType 2023-05-23 17:02:23 -04:00
Grahame Grieve 491b5ccb4a Fix for wrong display when server returns error 2023-05-08 07:09:32 -05:00
Grahame Grieve 89c1c8608c Fix up StructureMap R4/R5 conversion 2023-05-01 18:08:35 +10:00
Grahame Grieve 34f149f0c8 Add support for JSON in tx client batch handling 2023-04-29 08:41:05 +10:00
Grahame Grieve b28fe7df7d Switch R4 tx client to use json not xml 2023-04-27 20:07:37 +10:00
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
Grahame Grieve 4d94a064a7 remove file no longer used in R4 tests - moved to test cases repo 2023-04-21 12:24:59 +08: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
James Agnew 2fd0a07d9f Return ID part when FhirPath expression result is converted to string 2023-04-18 09:07:57 -04:00
Grahame Grieve 02bd1d8ce7 more fixing for language handling issues 2023-04-18 09:40:49 +08:00
Grahame Grieve 81d26c5160 work on no-network-access mode 2023-04-18 09:39:59 +08:00
Grahame Grieve c9416e9a56 Merge remote-tracking branch 'origin/master' 2023-04-14 18:01:18 +10: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 03eb6e7bf0 more work doing terminology server testing 2023-04-08 15:06:51 +10:00
Grahame Grieve 0bbff8d14d rework package cache manager - add testing mode 2023-04-02 23:06:29 +10:00
Grahame Grieve f796ffc57f fix issues with help16.png 2023-03-21 18:21:42 +11:00
Grahame Grieve fdbe28fb13 fix R5 version issues in R4 2023-03-09 22:19:50 +11:00
Grahame Grieve 0c26f09721 revise whitespace handling for unicode conformance in validator 2023-03-07 06:25:45 +11:00
Grahame Grieve 2bd73c650e Work on StructureMap validation 2023-02-27 07:30:04 +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 2628f6fac1 FHIRPath changes for as - case and singleton issues 2023-02-03 12:11:53 +11:00
dotasek 3ff9b9e937 Fix FHIRPath message for HAPI Test Case
An Invalid FHIRPath message is tested in HAPI-FHIR FhirPathFilterInterceptorTest.testFilteredResponse_ExpressionIsInvalid()
2023-01-31 17:02:12 -05:00
Grahame Grieve f8e6371e1f
Merge branch 'master' into gg-202301-sm-errors 2023-01-20 19:44:24 +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 26027fa3d6 update FHIRPath implementation for discussion at 84a07a6a92 2023-01-19 06:59:45 +11:00
Jens Kristian Villadsen a24add4a4d
Merge branch 'hapifhir:master' into master 2023-01-17 11:01:04 +01:00
Grahame Grieve 7b99037199 fix BOM in java files 2023-01-17 12:49:14 +11:00
Grahame Grieve 01c131b29d see PR 1075 - fix issue with setProperty() ignoring extensions 2023-01-17 11:22:42 +11:00
Jens Kristian Villadsen fed5d0c2f7 Test showing that extensions are not carried over 2023-01-16 20:07:20 +01:00
Grahame Grieve 6c2a488402 fix type convertors to handle null 2023-01-16 10:12:59 +11:00
Grahame Grieve b92e0e2ef0 Merge remote-tracking branch 'origin/master' 2023-01-14 09:04:04 +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
Grahame Grieve 6725563600 Update R4 FHIRPath implementation from R5, and get all tests passing 2023-01-10 07:16:08 +11: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 415d8acc12 Add R5 snapshot3 to R4 versions enum 2022-12-16 08:48:24 +11:00
Grahame Grieve d1d391496e upgrade to new R5 release 2022-12-13 21:13:29 +11: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 e01216b7f3 more xver package related changes 2022-11-11 12:29:45 +11:00
dotasek 14fdb713d9 Backport TerminologyCache changes to r4, r4b 2022-11-03 17:47:48 -04:00
Grahame Grieve 1ae7093eef #934 Parameters object's getParameter(String theParameterName) is misnamed 2022-11-02 08:51:17 +11:00
Grahame Grieve b17735a15b Add support for ActorDefinition 2022-10-17 11:43:33 +11:00
Lloyd McKenzie ccde7dce2a When we load StructureMaps from mapping files, make the mapping language the narrative. 2022-10-03 21:57:36 -06: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
Grahame Grieve 35233ee1e5 R5 updates for IG publisher 2022-09-15 08:41:37 +02:00
Grahame Grieve 2b6c7aae39 more R5 fixes for IG publisher 2022-09-07 17:31:42 +10:00
Grahame Grieve ac9a1fc2c7
Merge pull request #903 from hapifhir/do-datetimetype-gregorian-zero
Fix DateTimeType inconsistencies when using field setting
2022-08-26 06:43:03 +10:00
dotasek e79b2bf199
Return lists for FHIRPath constants in r4 (#902)
* Test for r5

* Test for r4b

* r4 test + fix

Co-authored-by: dotasek <david.otasek@smilecdr.com>
2022-08-25 10:02:13 -04:00
dotasek f96b13e3b9 Repair r4
Why did that get undone?
2022-08-25 09:39:22 -04:00
dotasek e406fe3645 dstu2016may + dstu3 tests + fix 2022-08-25 09:18:45 -04:00
dotasek cc2ec05afe Improve test 2022-08-24 15:24:45 -04:00
dotasek 5b1ac27b12 Fix 2022-08-24 14:54:08 -04:00
dotasek f8d7aa755e Failing tests 2022-08-24 14:53:56 -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 6f3c297c35
Fix dependency on resource more consistently (#845)
Co-authored-by: dotasek <david.otasek@smilecdr.com>
2022-07-19 10:33:31 -04:00
dotasek 0ecba5bf2a Fix validation message for toCalendarZulu day validation 2022-06-20 09:26:11 -04:00
dotasek 1fee28fe84
Feature - run JUnit tests from validator_cli (#835)
* WIP add initial test running code

* Importing test modules fix breaking tests 1

* Clean up pom dependencies, move execution before context load

* Re-org and document cli pom

* Set more dependencies to compile. Print entries in classpath

* Try running via internal Executors

* Clearer class names + provide clear output

* Clean up test summarys and output + update class regex to junit default

* Refactor to avoid having to extend class

* Trim down dependency additions in pom + javadoc

* Add the rest of the modules to TestExecutor

* Parse additional params for classname filter and module

* Add experimental JUnit 4 runner in case JUnit 5 hates us.

* Include JUnit4 tests via adapters. Need to refactor for better naming.

* Update LoadIgTests to JUnit 5

* Gentle refactor, print execution time

* Remove unnecessary interface, organize packages

* Remove cached resources (need to fix this)

* Allow setting of txCache globally for tests + fix r5 tests

* Mild refactor of TestExecutor + Reorder test execution

* Add fhirTestCasesDirectory to testConfig + get r4 tests working

* Add dstu2016may and dstu3 tests

* Add dstu2 tests

* Add convertors tests

* Refactor resourceNameForFile + don't copy existing files

* Get all txCache directories centrally and allow all to live in same dir

* Start extracting txCache resources

* Finish extracting txCache resources

* Fix failing GraphQLEngineTest

* Try an mvn install for the pull pipeline

* Clean and refactor

* Test coverage

* Fix GraphQLEngineTests for local jar run

* More refactoring, more tests

* Add bare test for TxCacheResourceExtractor

Co-authored-by: dotasek <david.otasek@smilecdr.com>
2022-06-14 17:04:00 -04:00
Grahame Grieve 62a082dbf3 Add value set expand by URL and use it in vsac 2022-06-13 21:50:11 +03:00
Grahame Grieve 4cc0a8dfba Add support for 4.3.0 2022-05-27 22:17:32 +10:00
Grahame Grieve eddcaba803 get packages by dependency 2022-05-12 16:19:01 +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 fa92f85f3c Merge remote-tracking branch 'origin/master' 2022-04-22 07:36:53 +10:00
Grahame Grieve 10f2325e19 R4B quality fixes 2022-04-22 07:36:28 +10:00
Grahame Grieve c58516ce44 remove references to c:\temp 2022-04-20 09:59:30 +10:00
dotasek a7354f999e
Dotasek oe r4r5structuremapconversion (#775)
* Fix exception R5 to R4 of StructureMap #771

* Fix typo

* Enhance conversion from r5 to r4 + add failing test for r4 to r5

* WIP Convert R4 variable to R5 parameter and try to get correct dataType

* Clean up rough-work test

* Move static methods to FHIRPathConstant class

Co-authored-by: dotasek <david.otasek@smilecdr.com>
2022-04-13 18:22:58 -04:00
Grahame Grieve b9902833c5 Merge branch 'master' of https://github.com/hapifhir/org.hl7.fhir 2022-04-12 09:12:35 +10:00
Grahame Grieve 4927d23273 Add integrityt check utils for R4B integrity 2022-04-12 09:10:23 +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
Grahame Grieve cdef76bc6d Fix bug where expansions have empty onbjects 2022-04-07 00:20:11 +10:00
Grahame Grieve 4237554d2c Merge branch 'master' of https://github.com/hapifhir/org.hl7.fhir 2022-03-29 11:17:14 +11:00
Grahame Grieve 4735d99114 stability fixes 2022-03-29 11:17:01 +11:00
dotasek d0feacaaa8 Add tests and changes for Decimal 2022-03-17 15:41:07 -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
dotasek 5cc8dd7974 Fix incorrect fromCode for R4/DSTU2 2022-02-23 19:02:45 -05:00
Grahame Grieve 6310b1158e #722 fix ListResource name misuse 2022-02-13 08:29:01 +11:00
Grahame Grieve b49e791cd1 Updates for changes to package.json type 2022-02-11 09:36:47 +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 39e30a10c4 Clean up comments 2022-01-26 09:28:19 -05:00
dotasek 4826424499 Make additional caches to cover NativeHostService and ValidationService 2022-01-19 18:36:39 -05:00
dotasek 0a3e9d3f31 Merge branch 'master' into tx-server-cache-analysis 2022-01-18 16:10:21 -05:00
dotasek d9d0f22ff3 cache CapabilityStatement and TerminologyCapabilities 2022-01-18 16:09:59 -05:00
Grahame Grieve 5313706a9a fix compile problems 2022-01-14 06:24:46 +11:00
Grahame Grieve 554a458b57 fix up logging problem 2022-01-13 17:38:39 +11:00
dotasek 32bbcf14b6 Merge remote-tracking branch 'origin/master' into tx-server-cache-analysis 2022-01-06 11:43:10 -05:00
dotasek 36cc6defc2 Refactor with a mock + new test to catch exception 2022-01-06 10:10:45 -05:00
dotasek 2d4bbe3749 Clean code 2022-01-04 13:57:39 -05:00