Skip to content

Commit 3a651b2

Browse files
authored
healthcare API: update FHIR samples from v1beta1 to v1 (#1733)
* healthcare API: update hl7v2 samples from v1beta1 to v1 * healthcare API: update hl7v2 samples from v1beta1 to v1 * edit package.json version * edit package.json version * add FHIR v1 files
1 parent 71b335f commit 3a651b2

23 files changed

+45
-45
lines changed

healthcare/fhir/createFhirStore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const main = (
2424
) => {
2525
// [START healthcare_create_fhir_store]
2626
const {google} = require('googleapis');
27-
const healthcare = google.healthcare('v1beta1');
27+
const healthcare = google.healthcare('v1');
2828

2929
const createFhirStore = async () => {
3030
const auth = await google.auth.getClient({

healthcare/fhir/deleteFhirResource.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const main = (
2626
) => {
2727
// [START healthcare_delete_resource]
2828
const {google} = require('googleapis');
29-
const healthcare = google.healthcare('v1beta1');
29+
const healthcare = google.healthcare('v1');
3030

3131
const deleteFhirResource = async () => {
3232
const auth = await google.auth.getClient({

healthcare/fhir/deleteFhirResourcePurge.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const main = (
2626
) => {
2727
// [START healthcare_delete_resource_purge]
2828
const {google} = require('googleapis');
29-
const healthcare = google.healthcare('v1beta1');
29+
const healthcare = google.healthcare('v1');
3030

3131
const deleteFhirResourcePurge = async () => {
3232
const auth = await google.auth.getClient({

healthcare/fhir/deleteFhirStore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const main = (
2424
) => {
2525
// [START healthcare_delete_fhir_store]
2626
const {google} = require('googleapis');
27-
const healthcare = google.healthcare('v1beta1');
27+
const healthcare = google.healthcare('v1');
2828

2929
const deleteFhirStore = async () => {
3030
const auth = await google.auth.getClient({

healthcare/fhir/exportFhirResources.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const main = (
2525
) => {
2626
// [START healthcare_export_fhir_resources_gcs]
2727
const {google} = require('googleapis');
28-
const healthcare = google.healthcare('v1beta1');
28+
const healthcare = google.healthcare('v1');
2929
const sleep = require('../sleep');
3030

3131
const exportFhirResourcesGcs = async () => {

healthcare/fhir/fhir_resources.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
const {GoogleToken} = require('gtoken');
1616
const request = require('request-promise');
1717

18-
const BASE_URL = 'https://healthcare.googleapis.com/v1beta1';
18+
const BASE_URL = 'https://healthcare.googleapis.com/v1';
1919

2020
// [START healthcare_get_token]
2121
const getToken = (serviceAccountJson, cb) => {

healthcare/fhir/getFhirResource.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const main = (
2626
) => {
2727
// [START healthcare_get_resource]
2828
const {google} = require('googleapis');
29-
const healthcare = google.healthcare('v1beta1');
29+
const healthcare = google.healthcare('v1');
3030

3131
const getFhirResource = async () => {
3232
const auth = await google.auth.getClient({

healthcare/fhir/getFhirResourceHistory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const main = (
2727
) => {
2828
// [START healthcare_get_resource_history]
2929
const {google} = require('googleapis');
30-
const healthcare = google.healthcare('v1beta1');
30+
const healthcare = google.healthcare('v1');
3131

3232
const getFhirResourceHistory = async () => {
3333
const auth = await google.auth.getClient({

healthcare/fhir/getFhirStore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const main = (
2424
) => {
2525
// [START healthcare_get_fhir_store]
2626
const {google} = require('googleapis');
27-
const healthcare = google.healthcare('v1beta1');
27+
const healthcare = google.healthcare('v1');
2828

2929
const getFhirStore = async () => {
3030
const auth = await google.auth.getClient({

healthcare/fhir/getFhirStoreCapabilities.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const main = (
2424
) => {
2525
// [START healthcare_get_metadata]
2626
const {google} = require('googleapis');
27-
const healthcare = google.healthcare('v1beta1');
27+
const healthcare = google.healthcare('v1');
2828

2929
const getFhirStoreCapabilities = async () => {
3030
const auth = await google.auth.getClient({

0 commit comments

Comments
 (0)