Skip to content

Commit bd87a1b

Browse files
authored
healthcare API: add missing variable names, change dicomStore to fhirStore in FHIR (GoogleCloudPlatform#2855)
1 parent 818edc4 commit bd87a1b

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

healthcare/v1/src/main/java/snippets/healthcare/dicom/DicomStorePatch.java

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import java.util.Collections;
3333

3434
public class DicomStorePatch {
35+
private static final String DICOM_NAME = "projects/%s/locations/%s/datasets/%s/dicomStores/%s";
3536
private static final JsonFactory JSON_FACTORY = new JacksonFactory();
3637
private static final NetHttpTransport HTTP_TRANSPORT = new NetHttpTransport();
3738

healthcare/v1/src/main/java/snippets/healthcare/dicom/DicomWebRetrieveRendered.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
public class DicomWebRetrieveRendered {
4040
private static final String DICOM_NAME = "projects/%s/locations/%s/datasets/%s/dicomStores/%s";
41-
private static final String DICOMWEB_PATH = "studies/%s/series/%s/instances/%s";
41+
private static final String DICOMWEB_PATH = "studies/%s/series/%s/instances/%s/rendered";
4242
private static final JsonFactory JSON_FACTORY = new JacksonFactory();
4343
private static final NetHttpTransport HTTP_TRANSPORT = new NetHttpTransport();
4444

healthcare/v1/src/main/java/snippets/healthcare/dicom/DicomWebSearchForInstances.java

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import java.util.Collections;
3131

3232
public class DicomWebSearchForInstances {
33+
private static final String DICOM_NAME = "projects/%s/locations/%s/datasets/%s/dicomStores/%s";
3334
private static final JsonFactory JSON_FACTORY = new JacksonFactory();
3435
private static final NetHttpTransport HTTP_TRANSPORT = new NetHttpTransport();
3536

healthcare/v1/src/main/java/snippets/healthcare/dicom/DicomWebSearchStudies.java

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import java.util.Collections;
3131

3232
public class DicomWebSearchStudies {
33+
private static final String DICOM_NAME = "projects/%s/locations/%s/datasets/%s/dicomStores/%s";
3334
private static final JsonFactory JSON_FACTORY = new JacksonFactory();
3435
private static final NetHttpTransport HTTP_TRANSPORT = new NetHttpTransport();
3536

healthcare/v1/src/main/java/snippets/healthcare/fhir/FhirStorePatch.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class FhirStorePatch {
3636
private static final JsonFactory JSON_FACTORY = new JacksonFactory();
3737
private static final NetHttpTransport HTTP_TRANSPORT = new NetHttpTransport();
3838

39-
public static void fhirStorePatch(String dicomStoreName, String pubsubTopic) throws IOException {
39+
public static void fhirStorePatch(String fhirStoreName, String pubsubTopic) throws IOException {
4040
// String fhirStoreName =
4141
// String.format(
4242
// FHIR_NAME, "your-project-id", "your-region-id", "your-dataset-id", "your-fhir-id");
@@ -47,7 +47,7 @@ public static void fhirStorePatch(String dicomStoreName, String pubsubTopic) thr
4747

4848
// Fetch the initial state of the FHIR store.
4949
FhirStores.Get getRequest =
50-
client.projects().locations().datasets().fhirStores().get(dicomStoreName);
50+
client.projects().locations().datasets().fhirStores().get(fhirStoreName);
5151
FhirStore store = getRequest.execute();
5252

5353
// Update the FhirStore fields as needed as needed. For a full list of FhirStore fields, see:
@@ -61,7 +61,7 @@ public static void fhirStorePatch(String dicomStoreName, String pubsubTopic) thr
6161
.locations()
6262
.datasets()
6363
.fhirStores()
64-
.patch(dicomStoreName, store)
64+
.patch(fhirStoreName, store)
6565
.setUpdateMask("notificationConfig");
6666

6767
// Execute the request and process the results.

0 commit comments

Comments
 (0)