Function: toOperationOutcome()
toOperationOutcome(
issues):FhirComplex
Build a FHIR OperationOutcome FhirComplex from the given issues. An empty list still
produces a structurally-valid OperationOutcome with a single information "all clear" issue
(FHIR requires OperationOutcome.issue to be non-empty).
Parameters
issues
readonly TransformIssue[]
The value-free diagnostics to render.
Returns
FhirComplex
Example
import { toOperationOutcome } from "@cosyte/transform";
const oo = toOperationOutcome([]);
// oo is a FhirComplex resource node with resourceType "OperationOutcome"
void oo;