-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
issue #679 - added FHIRPath Patch spec tests
1. Added FHIRPathSpecTest for executing the spec-provided FHIRPath Patch test cases. I needed to tweak the test file to work around our strict interpretation of `ele-1` which makes empty resources invalid. I also removed a single fhirpath patch operation from the `Full Resource` testcase...we currently cannot handle replace of DomainResource.text.div 2. Added logic to throw UnsupportedOperationException for patches with nested part values and added corresponding skip logic from the test 3. Added skip logic for 2 other test cases, both with `mode=forwards` * `Delete Nested Primitive #2`: this test expects that the server will automatically remove a parent elements when the last element from within one is removed. We don't do that. * `Reorder List #4`: on this one, I disagree with the expected output 4. Found and fixed an issue with the original implementation; patch values for code subtypes come is as basic Code types whereas the setters expect a subtype, so I needed to add logic to convert the Code to the appropriate subtype before calling any setters. Finally, I added the FHIR mimetypes to the patchFormat element of our CapabilityStatement to indicate that we now support FHIRPath patch. Signed-off-by: Lee Surprenant <[email protected]>
- Loading branch information
Showing
10 changed files
with
1,805 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
To workaround global-1 I added a Resource.id to all FHIR Resources in the file (except the "Full Resource" test case which already had one) | ||
I commented out the Patient.text.div replace operation in the test case Full Resource |
Oops, something went wrong.