I have created bundle of type - transaction and which got inserted successfully and returned id, patient id, organization id etc… in the response.
After getting success, I was trying to get the bundle that was created. But get bundle is not working using bundle id.
Test bundle data:
{
"resourceType" : "Bundle",
"type" : "transaction",
"entry" : [
{
"fullUrl" : "urn:uuid:cc110d76-84a1-47dd-8a63-7eb9216e3550",
"resource" : {
"resourceType" : "Patient",
"id" : "cc110d76-84a1-47dd-8a63-7eb9216e3550",
"text" : {
"status" : "generated",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">Generated by <a href=\"https://github.com/synthetichealth/synthea\">Synthea</a>.Version identifier: synthea-java . Person seed: -7193424171096988711 Population seed: 1586392373079</div>"
},
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName",
"valueString" : "Wendie72 Klein929"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/patient-birthPlace",
"valueAddress" : {
"city" : "Yarmouth",
"state" : "Massachusetts",
"country" : "US"
}
},
{
"url" : "http://synthetichealth.github.io/synthea/disability-adjusted-life-years",
"valueDecimal" : 5.72353801026381
},
{
"url" : "http://synthetichealth.github.io/synthea/quality-adjusted-life-years",
"valueDecimal" : 54.2764619897362
}
],
"identifier" : [
{
"system" : "https://github.com/synthetichealth/synthea",
"value" : "cc110d76-84a1-47dd-8a63-7eb9216e3550"
},
{
"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" : "cc110d76-84a1-47dd-8a63-7eb9216e3550"
},
{
"type" : {
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/v2-0203",
"code" : "SS",
"display" : "Social Security Number"
}
],
"text" : "Social Security Number"
},
"system" : "http://hl7.org/fhir/sid/us-ssn",
"value" : "999-97-9999"
},
{
"type" : {
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/v2-0203",
"code" : "DL",
"display" : "Driver's License"
}
],
"text" : "Driver's License"
},
"system" : "urn:oid:2.16.840.1.113883.4.3.25",
"value" : "S99999999"
},
{
"type" : {
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/v2-0203",
"code" : "PPN",
"display" : "Passport Number"
}
],
"text" : "Passport Number"
},
"system" : "http://standardhealthrecord.org/fhir/StructureDefinition/passportNumber",
"value" : "X40627999X"
}
],
"name" : [
{
"use" : "official",
"family" : "Test744",
"given" : [
"GivenTest728"
],
"prefix" : [
"Mrs."
]
},
{
"use" : "maiden",
"family" : "Test521",
"given" : [
"Test728"
],
"prefix" : [
"Mrs."
]
}
],
"telecom" : [
{
"system" : "phone",
"value" : "555-254-9999",
"use" : "home"
}
],
"gender" : "female",
"birthDate" : "1999-11-07",
"deceasedDateTime" : "2011-10-27T20:56:50-07:00",
"address" : [
{
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/geolocation",
"extension" : [
{
"url" : "latitude",
"valueDecimal" : 42.4388612329093
},
{
"url" : "longitude",
"valueDecimal" : -71.2049755752881
}
]
}
],
"line" : [
"999 Vale Unit 83"
],
"city" : "Arlington",
"state" : "Massachusetts",
"postalCode" : "02471",
"country" : "US"
}
],
"maritalStatus" : {
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus",
"code" : "M",
"display" : "M"
}
],
"text" : "M"
},
"multipleBirthBoolean" : false,
"communication" : [
{
"language" : {
"coding" : [
{
"system" : "urn:ietf:bcp:47",
"code" : "en-US",
"display" : "English"
}
],
"text" : "English"
}
}
]
},
"request" : {
"method" : "POST",
"url" : "Patient"
}
},
{
"fullUrl" : "urn:uuid:6c993ad4-f4e5-3689-8458-3f8ba95283d7",
"resource" : {
"resourceType" : "Organization",
"id" : "6c993ad4-f4e5-3689-8458-3f8ba95283d7",
"identifier" : [
{
"system" : "https://github.com/synthetichealth/synthea",
"value" : "6c993ad4-f4e5-3689-8458-3f8ba95283d7"
}
],
"active" : true,
"type" : [
{
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/organization-type",
"code" : "prov",
"display" : "Healthcare Provider"
}
],
"text" : "Healthcare Provider"
}
],
"name" : "PCP65399",
"telecom" : [
{
"system" : "phone",
"value" : "781-860-0289"
}
],
"address" : [
{
"line" : [
"10 MUZZEY ST"
],
"city" : "LEXINGTON",
"state" : "MA",
"postalCode" : "02421-9999",
"country" : "US"
}
]
},
"request" : {
"method" : "POST",
"url" : "Organization"
}
}
]
}
Sample Response of create bundle:
{
"resourceType": "Bundle",
"id": "a42b2943-67c1-40b1-9266-204f2dd29e15",
"type": "transaction-response"
etc..
}
Also, PUT/Delete bundle for the same not working