FHIRBundleBlobTrigger processes as a batch instead of transaction

Ken Miller 6 Reputation points
2020-10-08T18:07:18.047+00:00

This code is running in the Blob storage account that is used to process hl7 resources. Is there a reason that this code FHIRBundleBlobTrigger.cs processes the bundle as a batch instead of as a transaction?
Do you have to unpack each bundle and get the entries in each bundle, regardless of whether the bundle is a batch or a transaction type?
Is it possible for multiple bundles to be processed simultaneously, probably dependent on parallel processing?
https://github.com/microsoft/fhir-server-samples/blob/master/src/FhirImporter/FhirBundleBlobTrigger.cs

Azure Health Data Services
Azure Health Data Services
An Azure offering that provides a suite of purpose-built technologies for protected health information in the cloud.
167 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Navtej Singh Saini 4,226 Reputation points Microsoft Employee
    2020-10-13T21:11:50.2+00:00

    Hi @Ken Miller

    It looks like this issue relates to our FHIR Server Samples. The best path for issues like this would be to open a ticket against the GitHub repo - https://github.com/microsoft/fhir-server-samples/issues. Here is some insight though:

    The FHIR Server Samples is an example and small use case for using the FHIR Server for Azure. We are working to revamp this now, but when this was written we didn’t support transaction bundles on SQL. We now support transaction bundles in SQL if they use that as the backend in the Open Source FHIR Server. If they use Cosmos DB in open source or use our managed service we only support batch bundles right now.

    If you want to test batch specifically, you can take a look at our batch tests in our open source repo: https://github.com/microsoft/fhir-server/blob/master/test/Microsoft.Health.Fhir.Shared.Tests.E2E/Rest/BatchTests.cs

    You shouldn’t need to split apart the bundles, but there is a default max on the bundle size of 500 entries.

    If you are looking to test your specific scenario, We would recommend the following resources:
    Managed Service Documentation
    Open Source Repo
    Health Architectures

    Hope this helps. Please get back to us if any more questions.

    Thanks
    Navtej S


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.