android-fhir icon indicating copy to clipboard operation
android-fhir copied to clipboard

Expose an interface to db.withtransaction through FhirEngine

Open LZRS opened this issue 9 months ago • 0 comments

Is your feature request related to a problem? Please describe. Multiple db operations involving create/update/delete of resources cannot be handled atomically such that when updating and inserting extracted resources due to the action of saving a questionnaire, errors that may occur in between lead to inconsistencies and in some cases duplication when a user actions subsequent retries to save the questionnaire…

Describe the solution you'd like Expose an interface to db.withtransaction through FhirEngine that would allow multiple operations to be grouped and committed as a transaction

Describe alternatives you've considered Grouping using a Bundle resource of type ‘transaction’ that would map the different request types to a db crud method. A concern would be on whether it would respect the order of the operations

Would you like to work on the issue? Yes

LZRS avatar May 01 '24 22:05 LZRS