Examples for Operation Outcome
Successful operation outcome
In this example, operation outcome resource is not having any issues ( successful outcome) during the validation operation.
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "information", "code": "informational", "diagnostics": "No issues detected during validation" } ] }
Exception Operation outcome
In this example, operation outcome resource is having an exception error during the validation operation.
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "exception", "diagnostics": "<An unexpected internal error has occurred>" } ] }
Too-long Operation outcome
In this example, operation outcome resource is having an too-long error during the validation operation.
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "too-long", "diagnostics": "<Provided content is too long for validation>" } ] }
Required Operation outcome
In this example, operation outcome resource is having an required element missing error during the validation operation.
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "required", "diagnostics": "<A required element is missing>" } ] }
Structure Operation outcome
In this example, operation outcome resource is having an structural error during the validation operation.
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "structure", "diagnostics": "<A structural issue in the content such as wrong namespace, or unable to parse the content completely, or invalid json syntax>" } ] }
Invalid Operation outcome
In this example, operation outcome resource is having an invalid error during the validation operation.
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "invalid", "diagnostics": "<Content invalid against the specification or a profile>" } ] }
Timeout error outcome
In this example, operation outcome resource is having an timeout error during the validation operation.
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "timeout", "diagnostics": "<An internal timeout has occurred>" } ] }