Skip to content

Commit a28a751

Browse files
authored
healthcare API: add comment clarifying that deleted FHIR resources wi… (GoogleCloudPlatform#3041)
Fixes b/157555873
1 parent f64f816 commit a28a751

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

healthcare/v1/src/main/java/snippets/healthcare/fhir/resources/FhirResourceDelete.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ public static void fhirResourceDelete(String resourceName)
6666
.build();
6767

6868
// Execute the request and process the results.
69+
// Regardless of whether the operation succeeds or
70+
// fails, the server returns a 200 OK HTTP status code. To check that the
71+
// resource was successfully deleted, search for or get the resource and
72+
// see if it exists.
6973
HttpResponse response = httpClient.execute(request);
7074
HttpEntity responseEntity = response.getEntity();
7175
if (response.getStatusLine().getStatusCode() != HttpStatus.SC_OK) {

0 commit comments

Comments
 (0)