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

Managing resource contention when suggesting/accepting updates #452

Open
dennispatterson opened this issue Dec 13, 2018 · 2 comments
Open

Comments

@dennispatterson
Copy link
Collaborator

FHIR manages resource contention by the inclusion of an If-Match request header on a PUT to indicate that an update should only be applied if the current version of the resource matches what that caller received when it was read. Otherwise, two "simultaneous" updates could trample one another.

When a CDS service returns a card with a suggested update to a FHIR resource, there is no concept of supplying something like an If-Match. However, if another workflow makes an update before the action is accepted, loss of data could result. Semantics/documentation need to be added for handling this scenario.

@dennispatterson
Copy link
Collaborator Author

Note that this is referring to scenarios where the suggested update is to a persisted resource, not a scratch pad or otherwise in-memory resource that is not yet persisted.

@isaacvetter
Copy link
Member

Hey @dennispatterson ,

I think that the optimal case is that it's not possible for

another workflow [to] make an update before the [CDS Hook's card's] action is accepted

But, perhaps that's a short-sighted perspective.

Did you have in mind specific "Semantics/documentation" that would handle this scenario?

Why not simply declare it as out of scope?

Isaac

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants