Open rahul1 opened 1 month ago
Even better, we should implement the trial-maturity "Conditional Create": https://www.hl7.org/fhir/http.html#ccreate
It would be about the same SQL behind the scenes, but does not have all of the baggage of transaction bundles.
@codyebberson agree that's the better way to do it
User Driven:
Background
Our current implementation of
createResourceIfNoneExist
performs a search and then writes a resource.In rare cases, this can cause two client side jobs running in parallel to create duplicate resources
Proposal
make the
createResourceIfNoneExist
SDK function wrap a 1-elementtransaction
bundle instead.