-
Notifications
You must be signed in to change notification settings - Fork 339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for sending the JSON PATCH interaction to FhirClient #2664
Labels
Comments
Refinement:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Discussed in #2217
Originally posted by timammons August 30, 2022
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
The text was updated successfully, but these errors were encountered: