Hi,
I am unable to get the response headers as I am trying to update the patient name using Fhir.Rest API Update and I get an exception as`
Hl7.Fhir.Rest.FhirOperationException: Operation was unsuccessful because of a client error (NotFound). OperationOutcome: Overall result: FAILURE (1 errors and 0 warnings)
[ERROR] Not Found.
at Hl7.Fhir.Rest.TaskExtensions.WaitResult[T](Task`1 task)
I get the same exception for Appointment Update as well.
The code which i do for patient update is similar to the below code.
var client = new FhirClient(new Uri("<cerner sandboxurl>/patient/"));//create client with Patient.read token var patEntry = client.Read<Patient>("1");
var pat = patEntry.Resource;
pat.Name.Add(HumanName.ForFamily("Kramer").WithGiven("Ewout"));
client = new FhirClient(new Uri("<cerner sandboxurl>/patient/"));//create client with Patient.write token
client.Update<Patient>(patEntry);
Need help on the same. None of the updates are working when I try using the REST API Update.
I am able to perform Search and Read API operations but Update does not work for me. Please help me identify If I am missing something here.
Note: I do pass seperate bearer token for read(Patient.read) and update(Patient.write)