FHIR Chat · Bundle of Bundles?? · implementers

Stream: implementers

Topic: Bundle of Bundles??


view this post on Zulip Nathan Hall (Mar 17 2020 at 14:45):

In FHIR, What's the best way to bulk send a bundle of patients with medications? For one patient, I would send a bundle of type collections with resources of Patient and MedicationStatement.

What if I want to send a bunch of these patient bundles at once? Would it be a bundle of bundles? So...

{
  resourceType: 'Bundle',
  entry: [
      { resourceType: Bundle:
         entry: [
            { Patient1 with Medication }
        ]
      },
     { resourceType: Bundle2,
       entry: [
          { Patient2 with Medications}
       ]
    }
]
}

view this post on Zulip James Agnew (Mar 17 2020 at 14:48):

Assuming you are trying to perform a FHIR transaction, you could technically create a transaction bundle with a bunch of sub-transaction bundles inside it. The FHIR spec doesn't prohibit this, but I wouldn't expect all servers to allow it (this is definitely not a common thing to do)

A better approach is to just put everything you want to upload into a single transaction bundle.

view this post on Zulip Lloyd McKenzie (Mar 17 2020 at 14:59):

Sending 'collection' Bundles will just result in the receiving system storing the data received as-is. If you want it to 'process' the data somehow, you should look at messaging

view this post on Zulip Nathan Hall (Mar 17 2020 at 15:01):

Thanks, I'll look at messaging


Last updated: Apr 12 2022 at 19:14 UTC