Skip to main content

core.normalizeoperationoutcome

Home > @medplum/core > normalizeOperationOutcome

normalizeOperationOutcome() function

Normalizes an error object into an OperationOutcome.

Signature:

export declare function normalizeOperationOutcome(error: unknown): OperationOutcome;

Parameters

ParameterTypeDescription
errorunknownThe error value which could be a string, Error, OperationOutcome, or other unknown type.

Returns:

OperationOutcome

The normalized OperationOutcome.