Skip to content

Concurrent conditional creates results in duplicate data #1382

Open
@CaitlinV39

Description

@CaitlinV39

Describe the bug
When doing two conditional creates simultaneously (or near simultaneously) for the same resource, both are created, causing duplicate data to be stored in the system

FHIR Version?
Stu3/R4

Data provider?
CosmosDB/SQL Server

To Reproduce
Steps to reproduce the behavior:
Following are the steps the customer is following
1 Delete all existing patient data from their instance.
2. Make concurrent ‘Create Patient’ requests with ‘If-None-Exist:’ with a patient Identifier as a header parameter.

Expected behavior
Receive the 412 response for the 2nd create patient request that hits the Azure API for FHIR instance.

Actual behavior
2nd patient is created as a duplicate

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugBug bug bug.VSTS-CurrentWe are working on this item in the current sprint

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions