FHIR CI-Build

This is the Continuous Integration Build of FHIR (will be incorrect/inconsistent at times).
See the Directory of published versions

Example Bundle/bundle-request-transaction-complex (JSON)

FHIR Infrastructure Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: No defined compartments

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

A complex example transaction request

{
  "resourceType" : "Bundle",
  "id" : "bundle-request-transaction-complex",
  "meta" : {
    "lastUpdated" : "2025-03-20T00:00:00Z"
  },
  "type" : "transaction",
  "entry" : [{
    "fullUrl" : "urn:uuid:a008e191-0dfa-3ab3-b035-49d7d2e69cb4",
    "resource" : {
      "resourceType" : "Practitioner",
      "id" : "a008e191-0dfa-3ab3-b035-49d7d2e69cb4",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Practitioner a008e191-0dfa-3ab3-b035-49d7d2e69cb4</b></p><a name=\"a008e191-0dfa-3ab3-b035-49d7d2e69cb4\"> </a><a name=\"hca008e191-0dfa-3ab3-b035-49d7d2e69cb4\"> </a><a name=\"a008e191-0dfa-3ab3-b035-49d7d2e69cb4-en-US\"> </a><p><b>identifier</b>: <a href=\"http://terminology.hl7.org/6.2.0/NamingSystem-npi.html\" title=\"National Provider Identifier\">United States National Provider Identifier</a>/9999947796</p><p><b>active</b>: true</p><p><b>name</b>: Francisco472 Gusikowski974 </p><p><b>telecom</b>: <a href=\"mailto:Francisco472.Gusikowski974@example.com\">Francisco472.Gusikowski974@example.com</a></p><p><b>gender</b>: female</p><p><b>address</b>: 8 SHIPWAY PL # C-8 CHARLESTOWN MA 021294301 US </p></div>"
      },
      "identifier" : [{
        "system" : "http://hl7.org/fhir/sid/us-npi",
        "value" : "9999947796"
      }],
      "active" : true,
      "name" : [{
        "family" : "Gusikowski974",
        "given" : ["Francisco472"],
        "prefix" : ["Dr."]
      }],
      "telecom" : [{
        "system" : "email",
        "value" : "Francisco472.Gusikowski974@example.com",
        "use" : "work"
      }],
      "gender" : "female",
      "address" : [{
        "line" : ["8 SHIPWAY PL # C-8"],
        "city" : "CHARLESTOWN",
        "state" : "MA",
        "postalCode" : "021294301",
        "country" : "US"
      }]
    },
    "request" : {
      "method" : "POST",
      "url" : "Practitioner",
      "ifNoneExist" : "identifier=http://hl7.org/fhir/sid/us-npi|9999947796"
    }
  },
  {
    "fullUrl" : "urn:uuid:dbc4a3f7-9c69-4435-3ce3-4e1988ab6b91",
    "resource" : {
      "resourceType" : "Patient",
      "id" : "dbc4a3f7-9c69-4435-3ce3-4e1988ab6b91",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">Generated by\n                       <a href=\"https://github.com/synthetichealth/synthea\">Synthea</a>.Version identifier: 2cc0a62\n .   Person seed: 3380232822616628959  Population seed: 1730906375349\n          \n                   </div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName",
        "valueString" : "Lolita963 Batz141"
      },
      {
        "url" : "http://hl7.org/fhir/StructureDefinition/patient-birthPlace",
        "valueAddress" : {
          "city" : "Orleans",
          "state" : "Massachusetts",
          "country" : "US"
        }
      }],
      "identifier" : [{
        "system" : "https://github.com/synthetichealth/synthea",
        "value" : "dbc4a3f7-9c69-4435-3ce3-4e1988ab6b91"
      },
      {
        "type" : {
          "coding" : [{
            "system" : "http://terminology.hl7.org/CodeSystem/v2-0203",
            "code" : "MR",
            "display" : "Medical Record Number"
          }],
          "text" : "Medical Record Number"
        },
        "system" : "http://hospital.smarthealthit.org",
        "value" : "dbc4a3f7-9c69-4435-3ce3-4e1988ab6b91"
      },
      {
        "type" : {
          "coding" : [{
            "system" : "http://terminology.hl7.org/CodeSystem/v2-0203",
            "code" : "DL",
            "display" : "Driver's license number"
          }],
          "text" : "Driver's license number"
        },
        "system" : "urn:oid:2.16.840.1.113883.4.3.25",
        "value" : "S99943196"
      },
      {
        "type" : {
          "coding" : [{
            "system" : "http://terminology.hl7.org/CodeSystem/v2-0203",
            "code" : "PPN",
            "display" : "Passport Number"
          }],
          "text" : "Passport Number"
        },
        "system" : "http://hl7.org/fhir/sid/passport-USA",
        "value" : "X74265284X"
      }],
      "name" : [{
        "use" : "official",
        "family" : "Balistreri607",
        "given" : ["Ada662",
        "Sari509"],
        "prefix" : ["Mrs."]
      },
      {
        "use" : "maiden",
        "family" : "D'Amore443",
        "given" : ["Ada662",
        "Sari509"],
        "prefix" : ["Mrs."]
      }],
      "telecom" : [{
        "system" : "phone",
        "value" : "555-428-1241",
        "use" : "home"
      }],
      "gender" : "female",
      "birthDate" : "1959-08-01",
      "address" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/geolocation",
          "extension" : [{
            "url" : "latitude",
            "valueDecimal" : 42.38579955468066
          },
          {
            "url" : "longitude",
            "valueDecimal" : -71.05781519988905
          }]
        }],
        "line" : ["315 Simonis Parade"],
        "city" : "Somerville",
        "state" : "MA",
        "postalCode" : "02138",
        "country" : "US"
      }],
      "maritalStatus" : {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus",
          "code" : "M",
          "display" : "Married"
        }],
        "text" : "Married"
      },
      "multipleBirthBoolean" : false,
      "communication" : [{
        "language" : {
          "coding" : [{
            "system" : "urn:ietf:bcp:47",
            "code" : "en-US",
            "display" : "English (United States)"
          }],
          "text" : "English (United States)"
        }
      }]
    },
    "request" : {
      "method" : "POST",
      "url" : "Patient"
    }
  },
  {
    "fullUrl" : "urn:uuid:eaeb9228-4420-5e9c-b217-4c1a98ff9fe0",
    "resource" : {
      "resourceType" : "Encounter",
      "id" : "eaeb9228-4420-5e9c-b217-4c1a98ff9fe0",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Encounter eaeb9228-4420-5e9c-b217-4c1a98ff9fe0</b></p><a name=\"eaeb9228-4420-5e9c-b217-4c1a98ff9fe0\"> </a><a name=\"hceaeb9228-4420-5e9c-b217-4c1a98ff9fe0\"> </a><a name=\"eaeb9228-4420-5e9c-b217-4c1a98ff9fe0-en-US\"> </a><p><b>identifier</b>: <code>https://github.com/synthetichealth/synthea</code>/eaeb9228-4420-5e9c-b217-4c1a98ff9fe0\u00a0(use:\u00a0official,\u00a0)</p><p><b>status</b>: completed</p><p><b>class</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ActCode AMB}\">ambulatory</span></p><p><b>type</b>: <span title=\"Codes:{http://snomed.info/sct 162673000}\">General examination of patient (procedure)</span></p><p><b>subject</b>: <a href=\"broken-link.html\">Mrs. Ada662 Sari509 Balistreri607</a></p><p><b>serviceProvider</b>: <a href=\"broken-link.html\">Good Health Clinic</a></p><h3>Participants</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Period</b></td><td><b>Actor</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ParticipationType PPRF}\">primary performer</span></td><td>2015-09-05T21:57:47Z --&gt; 2015-09-05T22:48:16Z</td><td><a href=\"broken-link.html\">Dr. Francisco472 Gusikowski974</a></td></tr></table></div>"
      },
      "identifier" : [{
        "use" : "official",
        "system" : "https://github.com/synthetichealth/synthea",
        "value" : "eaeb9228-4420-5e9c-b217-4c1a98ff9fe0"
      }],
      "status" : "completed",
      "class" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
          "code" : "AMB",
          "display" : "ambulatory"
        }]
      }],
      "type" : [{
        "coding" : [{
          "system" : "http://snomed.info/sct",
          "code" : "162673000",
          "display" : "General examination of patient (procedure)"
        }],
        "text" : "General examination of patient (procedure)"
      }],
      "subject" : {
        "reference" : "urn:uuid:dbc4a3f7-9c69-4435-3ce3-4e1988ab6b91",
        "display" : "Mrs. Ada662 Sari509 Balistreri607"
      },
      "serviceProvider" : {
        "reference" : "Organization?identifier=urn:ietf:rfc:3986|urn:oid:2.16.840.1.113883.19.5",
        "display" : "Good Health Clinic"
      },
      "participant" : [{
        "type" : [{
          "coding" : [{
            "system" : "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
            "code" : "PPRF",
            "display" : "primary performer"
          }],
          "text" : "primary performer"
        }],
        "period" : {
          "start" : "2015-09-05T21:57:47+00:00",
          "end" : "2015-09-05T22:48:16+00:00"
        },
        "actor" : {
          "reference" : "Practitioner?identifier=http://hl7.org/fhir/sid/us-npi|9999947796",
          "display" : "Dr. Francisco472 Gusikowski974"
        }
      }]
    },
    "request" : {
      "method" : "POST",
      "url" : "Encounter"
    }
  },
  {
    "fullUrl" : "urn:uuid:f5030c53-c71d-9dd6-a85f-6647c09c34b4",
    "resource" : {
      "resourceType" : "Observation",
      "id" : "f5030c53-c71d-9dd6-a85f-6647c09c34b4",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Observation f5030c53-c71d-9dd6-a85f-6647c09c34b4</b></p><a name=\"f5030c53-c71d-9dd6-a85f-6647c09c34b4\"> </a><a name=\"hcf5030c53-c71d-9dd6-a85f-6647c09c34b4\"> </a><a name=\"f5030c53-c71d-9dd6-a85f-6647c09c34b4-en-US\"> </a><p><b>status</b>: final</p><p><b>category</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/observation-category laboratory}\">Laboratory</span></p><p><b>code</b>: <span title=\"Codes:{http://loinc.org 2093-3}\">Cholesterol [Mass/volume] in Serum or Plasma</span></p><p><b>subject</b>: <a href=\"broken-link.html\">urn:uuid:dbc4a3f7-9c69-4435-3ce3-4e1988ab6b91</a></p><p><b>encounter</b>: <a href=\"broken-link.html\">urn:uuid:eaeb9228-4420-5e9c-b217-4c1a98ff9fe0</a></p><p><b>effective</b>: 2015-09-05T21:57:47Z</p><p><b>issued</b>: 2015-09-05T21:57:47.809Z</p><p><b>value</b>: 165.49 mg/dL<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  codemg/dL = 'mg/dL')</span></p></div>"
      },
      "status" : "final",
      "category" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/observation-category",
          "code" : "laboratory",
          "display" : "Laboratory"
        }]
      }],
      "code" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "2093-3",
          "display" : "Cholesterol [Mass/volume] in Serum or Plasma"
        }],
        "text" : "Cholesterol [Mass/volume] in Serum or Plasma"
      },
      "subject" : {
        "reference" : "urn:uuid:dbc4a3f7-9c69-4435-3ce3-4e1988ab6b91"
      },
      "encounter" : {
        "reference" : "urn:uuid:eaeb9228-4420-5e9c-b217-4c1a98ff9fe0"
      },
      "effectiveDateTime" : "2015-09-05T21:57:47+00:00",
      "issued" : "2015-09-05T21:57:47.809+00:00",
      "valueQuantity" : {
        "value" : 165.49,
        "unit" : "mg/dL",
        "system" : "http://unitsofmeasure.org",
        "code" : "mg/dL"
      }
    },
    "request" : {
      "method" : "POST",
      "url" : "Observation"
    }
  }]
}

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.