Skip to content

Commit 09799a3

Browse files
authored
Add preview capabilities for bulk delete operation
1 parent d4c4345 commit 09799a3

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

articles/healthcare-apis/includes/fhir-bulk-delete-operation.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,6 @@ Query parameters allow you to filter the raw resources you plan to delete. To su
5757
5858
All the query parameters are optional.
5959
60-
#### Examples for using `$bulk-delete` with `_include` and `_revinclude`
61-
Note: When using FHIR service-supported search parameters with `$bulk-delete`, the `$bulk-delete` operation now supports using `_include` and `_revinclude` in the search criteria for conditional and bulk delete. Please note that this does not affect current behavior of singular deletes, which does not support extra parameters. Additionally, when using bulk delete with FHIR search parameters, consider using the same query in a FHIR search first, so that you can verify the data that you want to delete.
62-
63-
Some examples of using `$bulk-delete` with `_include` and `_revinclude`:
64-
65-
The following example using `_revinclude` will bulk delete all Patient resources that were last updated before 12/18/2021, as well as all resources that reference to those patients:
66-
67-
`DELETE [base]/Patient/$bulk-delete?_lastUpdated=lt2021-12-18&_revinclude=*:*`
68-
69-
The following example using `_include` will bulk delete all DiagnosticReport resources that were last updated before 12/18/2021, as well as all ServiceRequest resources that are referenced by those DiagnosticReport resources (via DiagnosticReport.basedOn relationship), and all Encounter resources that are referenced by those ServiceRequest resources (via ServiceRequest.encounters relationship):
70-
71-
`DELETE [base]/DiagnosticReport/$bulk-delete?_lastUpdated=lt2021-12-12&_include=DiagnosticReport:based-on:ServiceRequest&_include:iterate=ServiceRequest:encounter`
72-
7360
7461
7562
@@ -143,3 +130,16 @@ Here's a list of error messages that might occur if the bulk delete operation fa
143130
> [!NOTE]
144131
> If you cancel and then restart a bulk delete job, the deletion process resumes from where it was stopped.
145132
133+
## Preview capabilities for the bulk delete operation
134+
### `$bulk-delete` with `_include` and `_revinclude`
135+
Note: When using FHIR service-supported search parameters with `$bulk-delete`, the `$bulk-delete` operation now supports using `_include` and `_revinclude` in the search criteria for conditional and bulk delete. Please note that this does not affect current behavior of singular deletes, which does not support extra parameters. Additionally, when using bulk delete with FHIR search parameters, consider using the same query in a FHIR search first, so that you can verify the data that you want to delete.
136+
137+
Some examples of using `$bulk-delete` with `_include` and `_revinclude`:
138+
139+
The following example using `_revinclude` will bulk delete all Patient resources that were last updated before 12/18/2021, as well as all resources that reference to those patients:
140+
141+
`DELETE [base]/Patient/$bulk-delete?_lastUpdated=lt2021-12-18&_revinclude=*:*`
142+
143+
The following example using `_include` will bulk delete all DiagnosticReport resources that were last updated before 12/18/2021, as well as all ServiceRequest resources that are referenced by those DiagnosticReport resources (via DiagnosticReport.basedOn relationship), and all Encounter resources that are referenced by those ServiceRequest resources (via ServiceRequest.encounters relationship):
144+
145+
`DELETE [base]/DiagnosticReport/$bulk-delete?_lastUpdated=lt2021-12-12&_include=DiagnosticReport:based-on:ServiceRequest&_include:iterate=ServiceRequest:encounter`

0 commit comments

Comments
 (0)