Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose an interface to db.withtransaction through FhirEngine #2531

Open
LZRS opened this issue May 1, 2024 · 0 comments · May be fixed by #2535
Open

Expose an interface to db.withtransaction through FhirEngine #2531

LZRS opened this issue May 1, 2024 · 0 comments · May be fixed by #2535
Assignees
Labels
effort:small Small effort - 2 days P2 Medium priority issue

Comments

@LZRS
Copy link
Collaborator

LZRS commented May 1, 2024

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

@MJ1998 MJ1998 assigned MJ1998 and LZRS and unassigned MJ1998 May 2, 2024
@LZRS LZRS linked a pull request May 6, 2024 that will close this issue
7 tasks
@aditya-07 aditya-07 added P2 Medium priority issue effort:small Small effort - 2 days labels May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort:small Small effort - 2 days P2 Medium priority issue
Projects
Status: New
Development

Successfully merging a pull request may close this issue.

3 participants