FHIR defines an OperationOutcome resource that can be used to convey specific detailed processable error information. The OperationOutcome may be returned with any HTTP 4xx or 5xx response, and provides a consistent way to encapsulate error information to the client.
This PR updates the GlobalExceptionHandler to return an OperationOutcome for the FhirOperationException. PdsSearchFailedException and PdsSearchPatientNotFoundException have been updated to extend FhirOperationException. Furthermore, errors that may be generated by frameworks such as Firely.net will also get handled by this method.
FHIR defines an OperationOutcome resource that can be used to convey specific detailed processable error information. The
OperationOutcome
may be returned with any HTTP 4xx or 5xx response, and provides a consistent way to encapsulate error information to the client.This PR updates the
GlobalExceptionHandler
to return anOperationOutcome
for theFhirOperationException
.PdsSearchFailedException
andPdsSearchPatientNotFoundException
have been updated to extendFhirOperationException
. Furthermore, errors that may be generated by frameworks such as Firely.net will also get handled by this method.Relevant tests have been updated.