Skip to content

Commit

Permalink
As per the rules a Bundle transaction with multiple operations on the…
Browse files Browse the repository at this point in the history
… same resource can be rejected by the FHIR server. So removing the UploadStrategy.AllChangesBundlePut option. (#2431)
  • Loading branch information
aditya-07 committed Feb 6, 2024
1 parent 480b7f6 commit 12a1b9b
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Google LLC
* Copyright 2023-2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -36,13 +36,6 @@ private constructor(
internal val requestGeneratorMode: UploadRequestGeneratorMode,
) {

object AllChangesBundlePut :
UploadStrategy(
LocalChangesFetchMode.AllChanges,
PatchGeneratorMode.PerChange,
UploadRequestGeneratorMode.BundleRequest(Bundle.HTTPVerb.PUT, Bundle.HTTPVerb.PATCH),
)

object AllChangesSquashedBundlePut :
UploadStrategy(
LocalChangesFetchMode.AllChanges,
Expand Down

0 comments on commit 12a1b9b

Please sign in to comment.