Open
Description
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