Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

X010 RelatedPerson: Create New, Incorrect type for element relationship #333

Open
john-alan-bull opened this issue Nov 23, 2020 · 0 comments

Comments

@john-alan-bull
Copy link

From what I can tell there seems to be an issue with the test itself. We are seeing the following failure when the test is trying to create a RelatedPerson resource:

{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "exception", "diagnostics": "ca.uhn.fhir.rest.server.exceptions.InvalidRequestException :: Failed to parse request body as JSON resource. Error was: Found incorrect type for element relationship - Expected ARRAY and found OBJECT" } ] }

​The issue is that the Relationship element in the payload is not an array, but according to the FHIR spec it should be.
Here is the spec for RelatedPerson: http://hl7.org/fhir/relatedperson.html In the spec the Relationship element is an array, not an object.

I tried adding a RelatedPerson resource after updating the payload so that RelatedPerson element is an array and it worked just fine. I think the payload in the test should be updated in the same way.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant