FHIR icon indicating copy to clipboard operation
FHIR copied to clipboard

Support adding warning messages to Operation Outcome through Interceptor

Open PrasannaHegde1 opened this issue 1 year ago • 0 comments

Describe the bug Support adding warning messages to Operation Outcome If there are any validation failures in the interceptor and a warning message needs to be passed back with the response.

Environment Which version of LinuxForHealth FHIR Server? 5.0

To Reproduce Steps to reproduce the behavior:

  1. Go to 'AuthzPolicyEnforcementPersistenceInterceptor.validateSecurityContext()' method.
  2. When the securityContext validation fails for a Binary resource, currently the warning message is only being logged.

Expected behavior If there are any validation failures in the interceptor, there should be a provision to send the warning messages back with the original response through Operation Outcome.

Related to https://github.com/linuxforhealth/fhir/issues/3716

PrasannaHegde1 avatar Oct 20 '22 19:10 PrasannaHegde1