Commit Graph

321 Commits

Author SHA1 Message Date
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
dotasek 7ee5d0c5e4 Merge remote-tracking branch 'origin/master' into tx-server-cache-analysis 2022-01-04 13:23:32 -05:00
Paul Robson b785940a2b refactor: inline method 2021-12-22 12:58:35 -05:00
Paul Robson c80b7eae10 refactor: add display name to test 2021-12-22 11:54:19 -05:00
Paul Robson 9171c39d59 refactor: extract private helper methods 2021-12-22 11:53:24 -05:00
Paul Robson f941329fcc bug: check temporary variable hasn't been set yet 2021-12-22 11:50:43 -05:00
Paul Robson 369744488d test: check that coding is translated 2021-12-22 11:50:05 -05:00
Paul Robson 137592ecbf test: check that coding is translated 2021-12-22 11:47:23 -05:00
Grahame Grieve e4d3047138 #357: fix bug looking for contained resources inside bundles 2021-12-17 14:38:21 +11:00
Grahame Grieve 3118cdc132 Add support for new FHIR Versions 2021-12-17 12:08:40 +11:00
dotasek 80382865de Merge branch 'master' into tx-server-cache-analysis 2021-12-15 16:49:39 -05:00
Grahame Grieve c15e60f2c6 main Build fixes: new version of FHIR (4.3.0) + transit to using release indicators in version + fix various build issues 2021-12-15 07:28:19 +11:00
dotasek 1c1e7d22ca WIP track server requests 2021-12-07 16:08:28 -05:00
markiantorno 444c8951c6 removing jetbrains annotations 2021-12-06 12:54:40 -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
Grahame Grieve dbf8179b6d
Merge pull request #663 from hapifhir/gg-202111-cs-work
Gg 202111 cs work
2021-11-18 11:43:37 +11:00
Grahame Grieve bbac44fc52 reduce spurious logging 2021-11-18 08:09:43 +11:00
dotasek cccf1cebae
Update maven config and tests to allow Java 8, 11 and 17 builds (#653)
* Updates to enable Java 8, 11, and 17 builds

* Set surefire args according to profile + update jacoco verison

* Add comments for surefire profile args.

* Temporarily skip failing test

* Object based parameters ***NO_CI***

* Cleanup skipped test, move new pipeline codo

* Update validator_test_case_version
2021-11-16 09:26:53 -05:00
Grahame Grieve 5a33d5c15a merge conflicts + rework rendering + gather all HTTP access to SimpleHTTPClient + add TerminologyCacheManager 2021-11-09 16:24:21 +11:00
Grahame Grieve 1aae6c8c76 rework HTTP client - all client calls route through SimpleHTTPClient + define CommonPackages infrastructure 2021-11-09 11:38:25 +11:00
markiantorno 7bcd2b6434 Adding changes for logging request and resp 2021-11-08 16:10:04 -05:00
Grahame Grieve d91b26e69b Add getServerVersion to tooling client 2021-11-09 06:13:18 +11:00
Grahame Grieve c8c96e13fd
Merge pull request #615 from lschmierer/graphql_fixes
Fix GraphQLSchemaGenerator to produce valid GraphQL schemas
2021-11-03 11:26:45 +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
Lukas Schmierer 6bf58e678e change import comment to be compatible with graphql-tools 2021-10-04 16:06:07 +02:00
Lukas Schmierer 04a72c6e29 use ElementBaseInput instead of ElementBase for input types 2021-10-04 16:03:17 +02:00
Lukas Schmierer 98a99ec630 fix duplicate scalar "date" 2021-10-04 13:21:29 +02:00
Lukas Schmierer d67f7c9926 print correct type in json format comment 2021-10-04 13:11:55 +02:00
Lukas Schmierer 6981e75765 fix parameter scalars to be lowercase 2021-10-04 12:11:36 +02:00
katiesmilecdr 3b6a2c91cf
update ListResource profile in r4 (#612) 2021-09-29 12:38:13 -04:00
Mark Iantorno 72b7300700
Adding blank case for ExpressionNode.toString() in r4 and r5. (#609) 2021-09-27 14:52:55 -04:00
Mark Iantorno ad18e131d8
Issue 602 (#607)
* r5 changes

* r4 changes

* dstu3 changes

* dstu2 changes

* updating release notes
2021-09-27 14:04:59 -04:00
Mark Iantorno e5a05f5562
Terminology client headers (#599)
* wip

* adding tests for headers in client

* fix

* r4 updated httpclient

* updating http client code for r4 and dstu3

* dunno why this didn't get added before
2021-09-09 16:32:19 -04:00
Grahame Grieve b5723bab50
Merge branch 'master' into issue-555 2021-08-24 06:00:27 +10:00
jnmeijer 66b9e180e6
Improved performance of hashNWS (#570) (#573)
Co-authored-by: Jonathan Meijer <jonathan.meijer@telus.com>
2021-08-11 15:44:20 -04:00
Mark Iantorno a9abd8f824
https://github.com/hapifhir/org.hl7.fhir.core/issues/557 (#571) 2021-08-11 10:07:43 -04:00
Louis Rolland 0a3cc93c2f fix: #555 Handling minValue/maxValue in generate snapshot process 2021-08-11 10:08:45 +02:00
Grahame Grieve c6f392b7e0 #466: fix problem checking types on logical models 2021-05-05 09:54:22 +10:00
Grahame Grieve 9ae04aed03 Fix compartment definitions of ListResource.source and subject for R3 and R4 2021-05-05 08:51:36 +10:00
Grahame Grieve 898665f356 fixes for #483: Quantity subclasses copy() functions not all transferring values 2021-05-04 12:43:07 +10:00
Grahame Grieve 30be8a0dc1
Merge branch 'master' into issue_438 2021-03-29 09:08:04 +10:00
Grahame Grieve 5187fdd398 fix issues related to R4B generation 2021-03-12 06:28:56 +11:00
palanm a3e003740a fixing crlf to lf 2021-02-17 14:13:37 -08:00
palanm cc03acb3c3 Junit test for Copy method 2021-02-17 11:32:18 -08:00