Replies: 5 comments
-
Could you post the full body that gets created ? |
Beta Was this translation helpful? Give feedback.
-
I am trying to patch a patient in the Cerner sandbox. The body being sent is:
Cerner documentation says they expect something more like this:
The C# code is in the first message I posted. I'm trying to determine why my code and the SDK are producing what may be non-standard JSON. Thanks, |
Beta Was this translation helpful? Give feedback.
-
The At the moment the SDK does not support JSON Patch. It has been requested in #1533. @marcovisserFurore: pinging you to maybe look into putting support for JSON Patch on the roadmap? |
Beta Was this translation helpful? Give feedback.
-
Mirjam, Thank you for clearing that up. I looked at the Cerner documentation, and they do indeed state that they follow the JSON PATCH spec.
|
Beta Was this translation helpful? Give feedback.
-
I have added this as an enhancement request to the SDK, but we have no direct plans to implement it. Though, as usual, we would welcome a PR ;-) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to patch a patient in the following way, but getting an error body: must be a list of patch operation requests. Any idea why?
Code:
`static void UpdatePatientName(FhirClient fireClient, string patientID)
{
var pat = fireClient.Read($"/Patient/{patientID}");
var eTag = fireClient.LastResult.Etag;
}`
This is the body it created, which appears to be a list of patch operation requests:
{"resourceType":"Parameters","parameter":[{"name":"operation","part":[{"name":"type","valueCode":"replace"},{"name":"path","valueString":"name/0/given"},{"name":"value","valueHumanName":{"given":["Beulah","Z"]}}]}]}
Thanks,
Tim
Beta Was this translation helpful? Give feedback.
All reactions