FoundationThis is the Continuous Integration Build of FHIR (will be incorrect/inconsistent at times).
See the Directory of published versions
| FHIR Infrastructure Work Group | Maturity Level: N/A | Standards Status: Informative | Compartments: No defined compartments |
Raw JSON (canonical form + also see JSON Format Specification)
Response for the complex example transaction
{
"resourceType" : "Bundle",
"id" : "bundle-response-transaction-complex",
"meta" : {
"lastUpdated" : "2025-03-20T00:00:00Z"
},
"type" : "transaction-response",
"entry" : [{
"fullUrl" : "urn:uuid:a008e191-0dfa-3ab3-b035-49d7d2e69cb4",
"resource" : {
"resourceType" : "Practitioner",
"id" : "64dcb23b-457c-4c51-96c8-942b3f1eebd6",
"meta" : {
"versionId" : "1",
"lastUpdated" : "2025-03-20T15:38:01.1253032+00:00"
},
"text" : {
"status" : "generated",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Practitioner 64dcb23b-457c-4c51-96c8-942b3f1eebd6</b></p><a name=\"64dcb23b-457c-4c51-96c8-942b3f1eebd6\"> </a><a name=\"hc64dcb23b-457c-4c51-96c8-942b3f1eebd6\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">version: 1; Last updated: 2025-03-20T15:38:01.1253032Z</p></div><p><b>identifier</b>: <a href=\"http://terminology.hl7.org/6.5.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"
}]
},
"response" : {
"status" : "201 Created",
"location" : "http://localhost:5826/fhir/r4/Practitioner/64dcb23b-457c-4c51-96c8-942b3f1eebd6",
"etag" : "W/\"1\"",
"lastModified" : "2025-03-20T15:38:01.1253032+00:00",
"outcome" : {
"resourceType" : "OperationOutcome",
"id" : "8cb1950b-0168-4340-8e96-53ec005c4dec",
"issue" : [{
"severity" : "information",
"code" : "success",
"diagnostics" : "Created Practitioner/64dcb23b-457c-4c51-96c8-942b3f1eebd6"
}]
}
}
},
{
"fullUrl" : "urn:uuid:dbc4a3f7-9c69-4435-3ce3-4e1988ab6b91",
"resource" : {
"resourceType" : "Patient",
"id" : "341408d6-02eb-4550-b27d-a48d6f8689be",
"meta" : {
"versionId" : "1",
"lastUpdated" : "2025-03-20T15:38:01.1260451+00:00"
},
"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)"
}
}]
},
"response" : {
"status" : "201 Created",
"location" : "http://localhost:5826/fhir/r4/Patient/341408d6-02eb-4550-b27d-a48d6f8689be",
"etag" : "W/\"1\"",
"lastModified" : "2025-03-20T15:38:01.1260451+00:00",
"outcome" : {
"resourceType" : "OperationOutcome",
"id" : "6b343b1f-dd97-4257-8e0f-2a4fe397d46a",
"issue" : [{
"severity" : "information",
"code" : "success",
"diagnostics" : "Created Patient/341408d6-02eb-4550-b27d-a48d6f8689be"
}]
}
}
},
{
"fullUrl" : "urn:uuid:eaeb9228-4420-5e9c-b217-4c1a98ff9fe0",
"resource" : {
"resourceType" : "Encounter",
"id" : "eb4e8e54-2412-4386-b8a4-f3cf3c45f9f2",
"meta" : {
"versionId" : "1",
"lastUpdated" : "2025-03-20T15:38:01.1260976+00:00"
},
"text" : {
"status" : "generated",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Encounter eb4e8e54-2412-4386-b8a4-f3cf3c45f9f2</b></p><a name=\"eb4e8e54-2412-4386-b8a4-f3cf3c45f9f2\"> </a><a name=\"hceb4e8e54-2412-4386-b8a4-f3cf3c45f9f2\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">version: 1; Last updated: 2025-03-20T15:38:01.1260976Z</p></div><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=\"organization-example-good-health-care.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 --> 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" : "Patient/341408d6-02eb-4550-b27d-a48d6f8689be",
"display" : "Mrs. Ada662 Sari509 Balistreri607"
},
"serviceProvider" : {
"reference" : "Organization/2.16.840.1.113883.19.5",
"type" : "Organization",
"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/64dcb23b-457c-4c51-96c8-942b3f1eebd6",
"type" : "Practitioner",
"display" : "Dr. Francisco472 Gusikowski974"
}
}]
},
"response" : {
"status" : "201 Created",
"location" : "http://localhost:5826/fhir/r4/Encounter/eb4e8e54-2412-4386-b8a4-f3cf3c45f9f2",
"etag" : "W/\"1\"",
"lastModified" : "2025-03-20T15:38:01.1260976+00:00",
"outcome" : {
"resourceType" : "OperationOutcome",
"id" : "a7842b0a-eb96-42e3-9c9b-0e14c35afad7",
"issue" : [{
"severity" : "information",
"code" : "success",
"diagnostics" : "Created Encounter/eb4e8e54-2412-4386-b8a4-f3cf3c45f9f2"
}]
}
}
},
{
"fullUrl" : "urn:uuid:f5030c53-c71d-9dd6-a85f-6647c09c34b4",
"resource" : {
"resourceType" : "Observation",
"id" : "7adbbf49-79cd-4184-ba6c-d7c8baf0cd7d",
"meta" : {
"versionId" : "1",
"lastUpdated" : "2025-03-20T15:38:01.1261802+00:00"
},
"text" : {
"status" : "generated",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Observation 7adbbf49-79cd-4184-ba6c-d7c8baf0cd7d</b></p><a name=\"7adbbf49-79cd-4184-ba6c-d7c8baf0cd7d\"> </a><a name=\"hc7adbbf49-79cd-4184-ba6c-d7c8baf0cd7d\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">version: 1; Last updated: 2025-03-20T15:38:01.1261802Z</p></div><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\">Patient/341408d6-02eb-4550-b27d-a48d6f8689be</a></p><p><b>encounter</b>: <a href=\"broken-link.html\">Encounter/eb4e8e54-2412-4386-b8a4-f3cf3c45f9f2</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" : "Patient/341408d6-02eb-4550-b27d-a48d6f8689be"
},
"encounter" : {
"reference" : "Encounter/eb4e8e54-2412-4386-b8a4-f3cf3c45f9f2"
},
"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"
}
},
"response" : {
"status" : "201 Created",
"location" : "http://localhost:5826/fhir/r4/Observation/7adbbf49-79cd-4184-ba6c-d7c8baf0cd7d",
"etag" : "W/\"1\"",
"lastModified" : "2025-03-20T15:38:01.1261802+00:00",
"outcome" : {
"resourceType" : "OperationOutcome",
"id" : "2c169b4a-9e66-4893-ab98-3b617ff22d0a",
"issue" : [{
"severity" : "information",
"code" : "success",
"diagnostics" : "Created Observation/7adbbf49-79cd-4184-ba6c-d7c8baf0cd7d"
}]
}
}
}]
}
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.
FHIR ®© HL7.org 2011+. FHIR R6 hl7.fhir.core#6.0.0-ballot3 generated on Sat, Oct 25, 2025 07:42+0000.
Links: Search |
Version History |
Contents |
Glossary |
QA |
Compare to R5 |
|
Propose a change