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", "id": "72e641e2-5ff7-44cb-a90e-6295360c05fe", "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", "id": "1d044804-2d21-4512-b284-0bbe82e71d00", "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", "id": "1647c690-bcd2-4a98-b257-23632b2f7c92", "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", "id": "ff9c8f18-1025-4457-8237-b553011b71f7", "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", "id": "4e605a23-951c-42fb-b828-89f11686a993", "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", "id": "333b21f7-a92c-4ec5-987b-62c13e1dbde9", "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", "id": "27a70f93-5541-42fb-bd73-8353b98719fc", "issue": [ { "severity": "error", "code": "timeout", "diagnostics": "<An internal timeout has occurred>" } ] }