Open MrSerWin opened 2 years ago
the same problem but issue is closed, thats why I desided open new one. I have an error on PATCH operation.
I'm using the latest version from CDN https://cdn.jsdelivr.net/npm/fhirclient@latest/build/fhir-client.min.js My request is : const url = /Patient/PatientID; // I use correct ID patient there const response = await fhirClient.patch(url, body) where body is:
[ { "op": "add", "path": "/gender", "value": "male" }, { "op": "add", "path": "/name", "value": [ { "family": "Abbott1", "given": [ "Geoffrey1" ] } ] }, { "op": "add", "path": "/birthDate", "value": "1990-09-01" } ]
response is:
{ "resourceType": "OperationOutcome", "text": { "status": "generated", "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Failed to call access method: java.lang.NullPointerException: input cannot be null</pre></td>\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t</tr>\n\t\t</table>\n\t</div>" }, "issue": [ { "severity": "error", "code": "processing", "diagnostics": "Failed to call access method: java.lang.NullPointerException: input cannot be null" } ] }
the same problem but issue is closed, thats why I desided open new one. I have an error on PATCH operation.
I'm using the latest version from CDN https://cdn.jsdelivr.net/npm/fhirclient@latest/build/fhir-client.min.js My request is : const url = /Patient/PatientID; // I use correct ID patient there const response = await fhirClient.patch(url, body) where body is:
response is: