Stream: hapi
Topic: Fhir Patch
Ramesh jarabana (Jul 14 2020 at 17:08):
Getting below issue with FHIR Patch
contentType -application/json-patch+json
{
"resourceType": "Parameters",
"parameter": [ {
"name": "operation",
"part": [ {
"name": "type",
"valueCode": "replace"
}, {
"name": "path",
"valueString": "Patient.active"
}, {
"name": "value",
"valueBoolean": true
} ]
} ]
}
error response
{
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Cannot deserialize instance of java.util.ArrayList<com.github.fge.jsonpatch.operation.JsonPatchOperation>
out of FIELD_NAME token\n at [Source: UNKNOWN; line: -1, column: -1]"
}
]
}
can someone please help to find solution for this.
Thanks
ramesh
Grahame Grieve (Jul 14 2020 at 20:37):
well, you specified that the content type is json patch, so it shouldn't be a surprise that the error is that you didn't provide a json patch document
Last updated: Apr 12 2022 at 19:14 UTC