Get/PUT/DELETE Bundle Data not working using id

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

What server are you using?

I’m using JPA SERVER.

Even though the server has assigned an id to the transaction-response Bundle, that does not mean the Bundle has been stored. I know several servers that will always assign an id to an outgoing resource, even if they do not persist it. In your case, it seems the JPA server also takes that approach.
If you need to access the Bundle after the initial response, you will need to store it yourself.

@mirjam After post bundle in base URL, the response is giving all the resource type are created and providing success.

Ex:
{

"resourceType": "Bundle",

"id": "c16451df-ced6-4ec2-b13b-f9fb2eb068ea",

"type": "transaction-response",

"link": [

    {

        "relation": "self",

        "url": "http://localhost:8888/fhir"

    }

],

"entry": [

    {

        "response": {

            "status": "201 Created",

            "location": "Patient/2202/_history/1",

            "etag": "1",

            "lastModified": "2021-09-28T02:19:57.163+00:00"

        }

    },

    {

        "response": {

            "status": "201 Created",

            "location": "Organization/2203/_history/1",

            "etag": "1",

            "lastModified": "2021-09-28T02:19:57.163+00:00"

        }

    },

    {

        "response": {

            "status": "201 Created",

            "location": "Practitioner/2204/_history/1",

            "etag": "1",

            "lastModified": "2021-09-28T02:19:57.163+00:00"

        }

    },

    {

        "response": {

            "status": "201 Created",

            "location": "Encounter/2205/_history/1",

            "etag": "1",

            "lastModified": "2021-09-28T02:19:57.163+00:00"

        }

    },

    {

        "response": {

            "status": "201 Created",

            "location": "Condition/2206/_history/1",

            "etag": "1",

            "lastModified": "2021-09-28T02:19:57.163+00:00"

        }

    },

    {

        "response": {

            "status": "201 Created",

            "location": "CareTeam/2207/_history/1",

            "etag": "1",

            "lastModified": "2021-09-28T02:19:57.163+00:00"

        }

    },

    {

        "response": {

            "status": "201 Created",

            "location": "CarePlan/2208/_history/1",

            "etag": "1",

            "lastModified": "2021-09-28T02:19:57.163+00:00"

        }

    },

    {

        "response": {

            "status": "201 Created",

            "location": "Claim/2209/_history/1",

            "etag": "1",

            "lastModified": "2021-09-28T02:19:57.163+00:00"

        }

    },

    {

        "response": {

            "status": "201 Created",

            "location": "ExplanationOfBenefit/2210/_history/1",

            "etag": "1",

            "lastModified": "2021-09-28T02:19:57.163+00:00"

        }

    },

    {

        "response": {

            "status": "201 Created",

            "location": "Encounter/2211/_history/1",

            "etag": "1",

            "lastModified": "2021-09-28T02:19:57.163+00:00"

        }

    },

    {

        "response": {

            "status": "201 Created",

            "location": "Condition/2212/_history/1",

            "etag": "1",

            "lastModified": "2021-09-28T02:19:57.163+00:00"

        }

    }

}

We could able to see those records of specific resource type using GET call using,
Ex: http://localhost:8888/fhir/Encounter/2211 or by using patient identifier.

There was mistake from my end, Now GET call is working when we use it with $everything
http://localhost:8888/fhir/Patient/$everything?identifier=0a6783f3-a7d5-408c-92c8-8a7d14dbbd61

But, could not able to use PUT/DELETE as Bundle

Does the server support those operations on Bundle?

@lloyd I’m not sure how could we check this option. I’m new to FHIR.
Is there any configuration to get information about bundle operations? Could you please help.

Look at the CapabilityStatement exposed by hitting the /metadata endpoint for the server

A ‘transaction’ type Bundle is not an entity. It’s merely a container for conducting atomic transactions contained therein (a capability of HAPI FHIR). The response Bundle contains the results for each transaction only and does not indicate that a ‘Bundle’ resource was created.

You can’t retrieve the Bundle or treat the entries as being related to a single reference (unless they actually reference that single resource).

Hope this helps.