Release 5 Ballot

This page is part of the FHIR Specification (v5.0.0-ballot: R5 Ballot - see ballot notes). 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

Example Bundle/bundle-response (JSON)

FHIR Infrastructure Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Not linked to any defined compartments

Raw JSON (canonical form + also see JSON Format Specification)

Response for the example transaction

{
  "resourceType": "Bundle",
  "id": "bundle-response",
  "meta": {
    "lastUpdated": "2014-08-18T01:43:33Z"
  },
  "type": "transaction-response",
  "entry": [
    {
      "fullUrl": "http://example.org/fhir/Patient/12423",
      "resource": {
        "resourceType": "Patient",
        "id": "12423",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2014-08-18T01:43:31Z"
        },
        "text": {
          "status": "generated",
          "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Some narrative</div>"
        },
        "active": true,
        "name": [
          {
            "use": "official",
            "family": "Chalmers",
            "given": [
              "Peter",
              "James"
            ]
          }
        ],
        "gender": "male",
        "birthDate": "1974-12-25"
      },
      "response": {
        "status": "201 Created",
        "location": "Patient/12423/_history/1",
        "etag": "W/\"1\"",
        "lastModified": "2014-08-18T01:43:33Z",
        "outcome": {
          "resourceType": "OperationOutcome",
          "issue": [
            {
              "severity": "warning",
              "code": "not-found",
              "details": {
                "text": "The Managing organization was not known and was deleted"
              },
              "expression": [
                "Patient.managingOrganization"
              ]
            }
          ]
        }
      }
    },
    {
      "response": {
        "status": "200 OK"
      }
    },
    {
      "response": {
        "status": "200 OK",
        "location": "Patient/123/_history/4",
        "etag": "W/\"4\""
      }
    },
    {
      "response": {
        "status": "201 Created",
        "location": "Patient/12424/_history/1",
        "etag": "W/\"1\""
      }
    },
    {
      "response": {
        "status": "200 ok",
        "location": "Patient/123a/_history/3",
        "etag": "W/\"3\""
      }
    },
    {
      "response": {
        "status": "202 Accepted"
      }
    },
    {
      "response": {
        "status": "DELETE"
      }
    },
    {
      "fullUrl": "urn:uuid:7f9724ed-ef8d-4434-aacb-41869db83233",
      "resource": {
        "resourceType": "Parameters",
        "parameter": [
          {
            "name": "name",
            "valueString": "LOINC"
          }
        ]
      },
      "response": {
        "status": "200 ok"
      }
    },
    {
      "fullUrl": "urn:uuid:e7bcef8e-5ef9-4d2b-87d5-b42b1eec9125",
      "resource": {
        "resourceType": "Bundle",
        "id": "fb6ed6cb-324e-4588-87cd-0c92c68986ca",
        "type": "searchset"
      },
      "response": {
        "status": "200 OK"
      }
    },
    {
      "response": {
        "status": "304 Not Modified"
      }
    }
  ]
}

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.