2nd DSTU Draft For Comment

This page is part of the FHIR Specification (v0.4.0: DSTU 2 Draft). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3 R2

6.13.5 Resource OperationOutcome - Examples

Example Index:

General Outcome ExampleXMLJSON

6.13.5.1 General

XML

General Outcome Example (id = "101")

Raw XML

<OperationOutcome xmlns="http://hl7.org/fhir">
  <id value="101"/>
  <text>
    <status value="additional"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><!-- Snipped for brevity --></div>
  </text>
  <issue>
    <severity value="error"/>
    <type>
      <system value="http://test.org/issueCodeSystem"/>
      <code value="V15"/>
      <display value="InvalidCode"/>
    </type>
    <location value="/Person[1]/gender[1]"/>
  </issue>
</OperationOutcome>

JSON

General Outcome Example

Raw JSON (Canonical)

{
  "resourceType": "OperationOutcome",
  "id": "101",
  "text": {
    "status": "additional",
    "div": "<div>!-- Snipped for Brevity --></div>"
  },
  "issue": [
    {
      "severity": "error",
      "type": {
        "system": "http://test.org/issueCodeSystem",
        "code": "V15",
        "display": "InvalidCode"
      },
      "location": [
        "/Person[1]/gender[1]"
      ]
    }
  ]
}

Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.