Skip to content

Commit ee7893d

Browse files
authored
Heathcare API: fix HL7v2 resource path and console output for HL7v2MessageList (#2044)
1 parent 8e7e162 commit ee7893d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

healthcare/v1beta1/src/main/java/snippets/healthcare/hl7v2/messages/HL7v2MessageList.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
import java.util.List;
3434

3535
public class HL7v2MessageList {
36-
private static final String HL7v2_NAME = "projects/%s/locations/%s/datasets/%s/hl7C2Store/%s";
36+
private static final String HL7v2_NAME = "projects/%s/locations/%s/datasets/%s/hl7V2Stores/%s";
3737
private static final JsonFactory JSON_FACTORY = new JacksonFactory();
3838
private static final NetHttpTransport HTTP_TRANSPORT = new NetHttpTransport();
3939

@@ -71,7 +71,7 @@ public static void hl7v2MessageList(String hl7v2StoreName) throws IOException {
7171
} while (pageToken != null);
7272

7373
// Print results.
74-
System.out.printf("Retrieved %s HL7v2 stores: \n", messages.size());
74+
System.out.printf("Retrieved %s HL7v2 messages: \n", messages.size());
7575
for (String data : messages) {
7676
System.out.println("\t" + data);
7777
}

0 commit comments

Comments
 (0)