Commit Graph

1289 Commits

Author SHA1 Message Date
Grahame Grieve 4800d8a498 fix rendering of extensions in Profiles 2022-07-22 11:23:30 +10:00
Grahame Grieve be51677623 Add ability to suppress serialising ids 2022-07-22 07:58:51 +10:00
Grahame Grieve 49cf36cc50 fix bug rendering extensoins 2022-07-20 11:27:00 +10:00
Grahame Grieve fa54433022 fix bug loading R5 extensions 2022-07-20 11:26:49 +10:00
Grahame Grieve 0bf2ea7551 Fix bug accessing polymorphic fields 2022-07-20 11:26:20 +10:00
Grahame Grieve 2b626a9361 Changes to ConceptMap rendering as discussed with Vocab Committee 2022-07-20 11:25:10 +10:00
Grahame Grieve 421162d146 Fix NPE rendering bundles 2022-07-20 11:24:34 +10:00
Grahame Grieve e150b50f54 Fix issue with startsWith in FHIRPath engine 2022-07-20 11:24:13 +10:00
Grahame Grieve 392b064433 updates for new release of R5 2022-07-18 17:56:23 +10:00
Grahame Grieve 023aea34fb R4B and R5 extension changes 2022-06-28 15:39:15 +03:00
Grahame Grieve 95dee12d0e
Merge pull request #844 from hapifhir/gg-202206-amsterdam
Gg 202206 amsterdam
2022-06-24 13:53:33 +02:00
Grahame Grieve ba7b0d8bfa reduce text logging running tests 2022-06-24 13:15:55 +02:00
Grahame Grieve a81b5e2a9d Fix broken link rendering code systems 2022-06-24 11:41:54 +02:00
Grahame Grieve 38b0ed94ed fix logging bug in JsonParser 2022-06-24 11:41:33 +02:00
Grahame Grieve 2c46cfe690 Add loading R5 extensions 2022-06-24 11:41:19 +02:00
Grahame Grieve 636c651d76 Improvements to profile comparison 2022-06-24 11:40:42 +02:00
dotasek 8a3d7d3670 Catch ClassCastException and report clearer error message 2022-06-22 13:43:28 -04:00
dotasek 003be69129 More specific Exception type for test 2022-06-22 13:24:09 -04:00
dotasek 8ab27b2cb3 Failing test 2022-06-22 13:20:05 -04:00
Grahame Grieve 45efd0afaf
Merge pull request #839 from hapifhir/dotasek-fix-datetime-tozulu-day-message
Fix validation message for toCalendarZulu day validation
2022-06-21 22:18:13 +02:00
dotasek 0ecba5bf2a Fix validation message for toCalendarZulu day validation 2022-06-20 09:26:11 -04:00
dotasek af7fd15667 Rebuild caches + fix parse of JSON in FHIRRequestBuilder 2022-06-17 18:15:48 -04:00
dotasek 35fbd191ac Add tests and tix for terminologyCapabilitiesQuick 2022-06-17 15:00:58 -04:00
dotasek 6ac813addd Add tests and fix for terminologyCapabilities 2022-06-17 11:21:11 -04:00
dotasek 093904abb1 Log errors, don't throw them down a hole 2022-06-17 10:42:55 -04:00
dotasek 36f4524c7e Add method to for retrying capabilities statements 2022-06-17 10:01:56 -04:00
dotasek 2195d76807 Assert preferredResourceFormat values in test 2022-06-17 10:01:06 -04:00
dotasek 7935f8238f Start with failing test 2022-06-17 09:43:50 -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 b0dfc9f281 fix bug counting children + fix issue with automatic string conversion in FHIRPath + fix bug in HTTP client + fix bug rendering profile comparison 2022-06-08 08:56:46 +10:00
Grahame Grieve 4cc0a8dfba Add support for 4.3.0 2022-05-27 22:17:32 +10:00
Grahame Grieve 655fc8b6ca Fix bug in snapshot generation where type slices on a mandatory element were all marked as mandatory 2022-05-27 13:40:38 +10:00
Grahame Grieve 8324123f73 Fix broken links in profile comparison due to cross version issues 2022-05-27 13:39:25 +10:00
Grahame Grieve ce48c435fd
Merge pull request #817 from hapifhir/gg-202205-performance
Performance work in the validator
2022-05-25 06:35:33 +10:00
Grahame Grieve 47e205883c Performance work in the validator 2022-05-23 12:23:23 +10:00
Grahame Grieve f3bed096c7
Merge pull request #813 from hapifhir/gg-202205-ts-conv
Gg 202205 ts conv
2022-05-20 08:17:04 +10:00
Grahame Grieve 51185f74ff
Merge pull request #811 from hapifhir/dotasek-structuremapping-evaluate-2
Use MAP_EXPRESSION instead of MAP_WHERE_EXPRESSION
2022-05-19 17:33:41 +10:00
Grahame Grieve d39ed690f8 Add jurisdiction parameter to Validator 2022-05-18 08:23:05 +10:00
Grahame Grieve 919d6e6d8b extend FHIRPath to support lowBoundary(), highBoundary() and precision() 2022-05-14 00:19:08 +10:00
dotasek d099c7f0f1 Use MAP_EXPRESSION instead of MAP_WHERE_EXPRESSION 2022-05-12 18:05:59 -04:00
dotasek 8a8bbb7308
Add tests for evaluate transforms using json StructureMap (#807)
* Add tests for evaluate transforms using json StructureMap

Fixes issues/802

* Reduce test chatter, fix missing ',' in EVALUATE render

Co-authored-by: dotasek <david.otasek@smilecdr.com>
2022-05-11 12:52:47 -04:00
dotasek cd7142faa1
Repair output of GraphQL response to include only idPart (#808)
* Repair output of GraphQL response to include only idPart

* Fix for breaking test.

Co-authored-by: dotasek <david.otasek@smilecdr.com>
2022-05-11 12:01:23 -04:00
Grahame Grieve be631a5130 Trim unknown resource types when pre-adopting extensions of type Reference from future versions 2022-05-11 02:14:08 +10:00
Grahame Grieve 0999c8d460 fix issue with complex extension snapshot goes into 3rd level when it doesn't need to 2022-05-11 02:13:35 +10:00
Grahame Grieve 3a696b0231 Merge remote-tracking branch 'origin/master' 2022-05-06 10:02:10 +10:00
Grahame Grieve 30daa9dd26 Add ID to profile csv 2022-05-06 09:59:51 +10:00
dotasek cc6ee9216c Fix 0 case terminology cache test (intermittent test failure) 2022-05-05 14:40:32 -04:00
Grahame Grieve 7a7e3240b4 ElementDefinition adornments 2022-05-05 23:09:55 +10:00
Grahame Grieve df71644ba5 Fix NPEs 2022-05-05 05:47:54 +10:00
Grahame Grieve 3712804353 fix problem with non-new data types on xver extensions 2022-04-28 09:47:06 +10:00
Grahame Grieve 0a58140163 enable -extension parameter for validator 2022-04-27 08:28:29 +10: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 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 5fef79c08d Update Validator -version handling, and improve tx server error handling 2022-04-20 11:17:40 +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 9928efa0d1 align additional bindings with extension definition 2022-04-13 18:07:57 +10:00
Grahame Grieve 6f3fe23f49 refactor additional bindings 2022-04-12 13:11:42 +10: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 d73881df55 Add Get canonical URL names 2022-04-12 09:11:39 +10:00
Grahame Grieve c3281340a0 Add Additional Bindings rendering 2022-04-12 09:11:18 +10:00
Grahame Grieve 9385557e04
Merge pull request #783 from gabriel0316/allowOtherDesignations
Allow other designations
2022-04-12 09:08:52 +10:00
Grahame Grieve fcbc13cb9c
Merge pull request #784 from gabriel0316/displayDesignations
Display all designations
2022-04-12 09:08:16 +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
Gabriel 2fb5c67e32 Display all designations
With this commit all designations (incl. languages) will be displayed
in the Logical Definition and the Expansion of a ValueSet.
2022-04-08 13:39:09 +02:00
Grahame Grieve cdef76bc6d Fix bug where expansions have empty onbjects 2022-04-07 00:20:11 +10:00
Gabriel 51cd908f20 Allow other designations
With returning the url it is possible to allow other
designation.use than only the two specified
SNOMED codes.
2022-04-06 16:09:09 +02:00
Grahame Grieve 76411218ac
Merge pull request #782 from hapifhir/gg-202204-various
various fixes
2022-04-06 09:28:09 +10:00
Grahame Grieve 03bb7d4f5e
Merge pull request #781 from gabriel0316/fixCodeSystemLink
Enable linking to fragment CodeSystems
2022-04-05 15:55:45 +10:00
Grahame Grieve 8a05e4b2b2 various fixes
* Handle reslicing within the same profile
* Fix up wrong handling of context on exists() in FHIRPath
* Add hints to profiles around behavior of pattern on repeating elements
* Ignore all tooling extensions when validating
2022-04-05 15:52:33 +10:00
Gabriel c6fcf165e9 Enable linking to fragment CodeSystems 2022-04-04 15:47:29 +02:00
dotasek 880039c78b
Reorganize TestingUtilities to use expected/actual convention from JUnit (#780)
* Make testing utilities conform to JUnit expected-actual convention

* Refactor to CompareUtilities

* Add tests for CompareUtilities

* RELEASE_NOTES

Co-authored-by: dotasek <david.otasek@smilecdr.com>
2022-04-04 09:44:04 -04:00
Grahame Grieve 7c8f5a3d8b
Merge pull request #779 from hapifhir/gg-202203-urls
Gg 202203 urls
2022-03-31 09:34:47 +11:00
Grahame Grieve d2ebb37e9b Fix problem with generated NPM packages 2022-03-31 07:17:00 +11:00
Grahame Grieve 610a7067a1 fix URLs processing in markdown 2022-03-31 07:12:44 +11:00
dotasek 0b5f1dd351
Merge pull request #777 from hapifhir/dotasek-add-terminology-to-testingutilities
Add hl7.terminology to shared worker contexts in tests
2022-03-29 19:07:59 -04:00
dotasek 759ba33bdd Remove v3-NullFlavor from invalid urls 2022-03-29 16:35:26 -04:00
dotasek 927bdffd2e Add hl7.terminology to shared worker contexts in tests 2022-03-29 10:23:54 -04: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 86b714bb7b Pass -debug param to default logger + add logger to context builders 2022-03-25 13:38:24 -04:00
dotasek 35f5b96eb7 Use SystemOutLoggingService for logging 2022-03-24 17:33:27 -04:00
dotasek 25d9439fa9 Fix null exception for debug messages in BaseWorkerContext 2022-03-23 14:11:26 -04:00
dotasek 6e45dd522e Merge remote-tracking branch 'origin/master' into dotasek-primitivetype-conversion-via-stringvalue 2022-03-18 14:09:12 -04:00
Grahame Grieve cf95c1a2ba Fix for Jira 25179 - change handling of imports
See https://chat.fhir.org/#narrow/stream/179202-terminology/topic/ValueSet.20defined.20by.20an.20intersection.20.3F
2022-03-18 12:45:40 +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
Grahame Grieve def7d5566a Surface message id in OperationOutcome from validator 2022-03-16 08:30:44 +11:00
Grahame Grieve 5ae5e5d4c8 fix PatientRenderer 2022-03-16 08:30:25 +11:00
Grahame Grieve 535a9cd9c9 fix FHIRPath matches() issue, and add support for matchesFull 2022-03-16 08:30:02 +11:00
Grahame Grieve dc84f94a17 fix NPE processing markdown 2022-03-16 08:29:19 +11:00
dotasek 209a5e777b Merge remote-tracking branch 'origin/master' into dotasek-primitivetype-conversion-via-stringvalue 2022-03-15 12:36:09 -04:00
dotasek 4068db73ff WIP Add tests for Primitive Types + use getValueAsString for conversion 2022-03-15 12:35:50 -04:00
Grahame Grieve 79d6c7034d Merge branch 'master' of https://github.com/hapifhir/org.hl7.fhir 2022-03-15 06:45:18 +11:00
Grahame Grieve e8e6337b7c preserve message id in operation outcome 2022-03-15 06:44:10 +11:00
Lloyd McKenzie 4c82c9c738 Merge branch 'master' of https://github.com/hapifhir/org.hl7.fhir.core into Branch_685ea98d 2022-03-11 11:21:55 -07:00
Lloyd McKenzie a6faece71b Added R4B releases to the R4<->R5 conversion process
Corrected release number for R4B to be 4.3xxx rather than 4.1xxx
2022-03-11 11:16:04 -07:00