You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
The text was updated successfully, but these errors were encountered: