Basic bundle transaction

Oracle FHIR transaction bundle has a few important elements.

  • Bundle.type: This value specifies the processing mode (transaction or batch).
  • Bundle.entry: This is an array. Each repetition of the this array contains a single interaction, and is the equivalent to a single HTTP REST interaction.
  • Bundle.entry.request: The standard HTTP REST parameters (i.e. the verb, the request URL, and the request headers) are communicated in the element Bundle.entry.request.
  • Bundle.entry.resource: Interactions which accept a resource as the payload body (such as create and update) place the payload in the element Bundle.entry.resource.
  • Bundle.entry.fullUrl: An additional element in each entry has a full URL or URI associated with the entry, in the element Bundle.entry.fullUrl.

Sample FHIR bundle transaction. In this example, the fullUrl is a randomly generated UUID.

{
  "resourceType": "Bundle",
  "type": "transaction",   
  "entry": [
    {
      "fullUrl": "urn:uuid:850bc2ca-d9ab-467b-9924-0e08d0a6e586",
      "resource": {
        "resourceType": "Patient",
        "identifier": [
          {
            "system": "https://github.com/synthetichealth/synthea",
            "value": "8ffd03ee-fb56-441d-a3ef-01cdc9f94d89"
          } ],
        "name": [
          {
            "use": "official",
            "family": "Trantow673",
            "given": [
              "Matthew562"
            ],
            "prefix": [
              "Mr."
            ]
          }
        ],
      "request": {
        "method": "POST",
        "url": "Patient"
      }
    } }
 }