diff --git a/src/Spark.Engine/Formatters/HtmlFhirFormatter.cs b/src/Spark.Engine/Formatters/HtmlFhirFormatter.cs index afdf49036..a48a5d018 100644 --- a/src/Spark.Engine/Formatters/HtmlFhirFormatter.cs +++ b/src/Spark.Engine/Formatters/HtmlFhirFormatter.cs @@ -70,14 +70,7 @@ private void WriteHTMLOutput(Type type, object value, Stream writeStream) writer.WriteLine(" "); writer.WriteLine(""); writer.WriteLine(""); - if (type == typeof(OperationOutcome)) - { - OperationOutcome oo = (OperationOutcome)value; - - if (oo.Text != null) - writer.Write(oo.Text.Div); - } - else if (type == typeof(Resource)) + if (type == typeof(Resource) || type == typeof(OperationOutcome)) { if (value is Bundle) {