public ErrorHandlingMiddleware(RequestDelegate next, ILogger <ErrorHandlingMiddleware> logger,
                                IStu3SerializationToJson IStu3SerializationToJson,
                                IStu3SerializationToXml IStu3SerializationToXml,
                                IR4SerializationToXml IR4SerializationToXml,
                                IR4SerializationToJson IR4SerializationToJson,
                                IOperationOutcomeSupportFactory IOperationOutComeSupportFactory)
 {
     this.next    = next;
     this._logger = logger;
     this.IStu3SerializationToXml         = IStu3SerializationToXml;
     this.IStu3SerializationToJson        = IStu3SerializationToJson;
     this.IR4SerializationToXml           = IR4SerializationToXml;
     this.IR4SerializationToJson          = IR4SerializationToJson;
     this.IOperationOutComeSupportFactory = IOperationOutComeSupportFactory;
 }
 public OperationOutcomeSupport(IOperationOutcomeSupportFactory IOperationOutcomeSupportFactory)
 {
     this.IOperationOutcomeSupportFactory = IOperationOutcomeSupportFactory;
 }