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?
X-Request-Id: 56b5782d-4f6a-43d2-b903-9c60a490234d+1764_twnP
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