athenahealth / apiserver-athenaFlex

Software developers can use sample code and documentation to use athenahealth's athenaPractice/athenaFlow FHIR API Server.
https://mydata.athenahealth.com/home
17 stars 7 forks source link

Getting the InternalServerError during Update Appointment API call. #285

Closed hardik-karmsoft closed 1 year ago

hardik-karmsoft commented 1 year ago

I am getting the Error while doing Appointment Update API call.

My application was working with the version. 22 but we migrated from 22 to 23 and same API call is failing and return me the Internal Server Error.

Here is the details what I am doing,

We are using Hl7.Fhir.DSTU2 Nuget C# library to work with the Athena APIs.

We are able to get the Appointment like

await fhirClient.ReadAsync($"Appointment/{appointmentId}");

We are changing the status of the Appointment to Booked or Cancelled like below

appointment.Status = FhirAppointment.AppointmentStatus.Booked;

When we try to update the Appointment status using API like below.

await fhirClient.UpdateAsync(appointment);

On Above API call we always getting the Below Error. This was working fine with the version 22 but stopped working after version 23

Operation was unsuccessful, and returned status InternalServerError. OperationOutcome:

Outcome null
#SeverityTypeDetail
1ERRORPROCESSING
.

SOME STRANGE - When I checked the same appointment from the Athena Software - then status of the Appointment is changed to Booked, but in API it return false.

hardik-karmsoft commented 1 year ago

Not required

hardik-karmsoft commented 1 year ago

Not required