Stream: implementers
Topic: Bundle as a batch support?
Jonas Toft (Feb 25 2021 at 08:24):
I am using firely-net-sdk (HL7.Fhir.R4) I have a bundle consisting of 2 entities. When creating the bundle object i can pass in a Bundle.BundleType which can be Transaction, Batch...etc
I want the bundle to be processed as a batch. However when needing to post the bundle using the FhirClient class, I only see the methods Transaction(Bundle) and TransactionAsync(Bundle). This seems counterintuitive as I have already specified the transaction type. Maybe it is just a naming issue with the Transaction methods. I expected to find something like "PostBundle(Bundle)".
So my question is: how can I, using HL7.Fhir.R4, post the bundle as a batch?
Michele Mottini (Feb 25 2021 at 12:09):
Use those Transaction methods
Jonas Toft (Feb 25 2021 at 14:23):
Can you elaborate a bit on that? The documentation says that the bundle is executed as a transaction when using those methods so I am not sure it is supported. How would you verify that it could work as a batch?
Michele Mottini (Feb 25 2021 at 15:03):
I am betting that they do not change the bundle type - and that's the only thing that distinguish a transaction from a batch
Michele Mottini (Feb 25 2021 at 15:05):
But in the end it is just a simple POST - so no real need to use those methods either
Lloyd McKenzie (Feb 25 2021 at 15:44):
@Ward Weistra
Ewout Kramer (Mar 01 2021 at 09:23):
@Michele Mottini - that is right. We pass on the bundle unchanged. The name is a bit confusing nowadays, I admit, but was chosen 7 years ago when Bundle was just used for a search result (incoming) or (outgoing) as a transaction. We were even using Atom for Bundles back then ;-)
Last updated: Apr 12 2022 at 19:14 UTC