Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d91506d

Browse filesBrowse files
Benjamin E. Coeleahecole
andauthored
fix(samples): v1 and v1beta1 region tags collide (GoogleCloudPlatform#4885)
* fix(samples): v1 and v1beta1 region tags collide * Apply suggestions from code review Co-authored-by: Leah E. Cole <6719667+leahecole@users.noreply.github.com> * fix lint Co-authored-by: Leah E. Cole <6719667+leahecole@users.noreply.github.com> Co-authored-by: Leah Cole <coleleah@google.com>
1 parent 2a1e1da commit d91506d
Copy full SHA for d91506d

File tree

Expand file treeCollapse file tree

2 files changed

+0
-40
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+0
-40
lines changed

‎healthcare/api-client/v1beta1/fhir/fhir_resources.py

Copy file name to clipboardExpand all lines: healthcare/api-client/v1beta1/fhir/fhir_resources.py
-20Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
_BASE_URL = "https://healthcare.googleapis.com/v1beta1"
2424

2525

26-
# [START healthcare_get_session]
2726
def get_session(service_account_json):
2827
"""
2928
Returns an authorized Requests Session class using the service account
@@ -46,10 +45,6 @@ def get_session(service_account_json):
4645
return session
4746

4847

49-
# [END healthcare_get_session]
50-
51-
52-
# [START healthcare_create_resource]
5348
def create_patient(
5449
service_account_json, base_url, project_id, cloud_region, dataset_id, fhir_store_id
5550
):
@@ -82,10 +77,6 @@ def create_patient(
8277
return response
8378

8479

85-
# [END healthcare_create_resource]
86-
87-
88-
# [START healthcare_create_encounter]
8980
def create_encounter(
9081
service_account_json,
9182
base_url,
@@ -134,10 +125,6 @@ def create_encounter(
134125
return response
135126

136127

137-
# [END healthcare_create_encounter]
138-
139-
140-
# [START healthcare_create_observation]
141128
def create_observation(
142129
service_account_json,
143130
base_url,
@@ -183,10 +170,6 @@ def create_observation(
183170
return response
184171

185172

186-
# [END healthcare_create_observation]
187-
188-
189-
# [START healthcare_delete_resource]
190173
def delete_resource(
191174
service_account_json,
192175
base_url,
@@ -218,9 +201,6 @@ def delete_resource(
218201
return response
219202

220203

221-
# [END healthcare_delete_resource]
222-
223-
224204
# [START healthcare_conditional_update_resource]
225205
def conditional_update_resource(
226206
service_account_json,

‎healthcare/api-client/v1beta1/fhir/fhir_stores.py

Copy file name to clipboardExpand all lines: healthcare/api-client/v1beta1/fhir/fhir_stores.py
-20Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
from googleapiclient.errors import HttpError
2121

2222

23-
# [START healthcare_get_client]
2423
def get_client(service_account_json):
2524
"""Returns an authorized API client by discovering the Healthcare API and
2625
creating a service object using the service account credentials JSON."""
@@ -44,10 +43,6 @@ def get_client(service_account_json):
4443
)
4544

4645

47-
# [END healthcare_get_client]
48-
49-
50-
# [START healthcare_create_dataset]
5146
def create_dataset(service_account_json, project_id, cloud_region, dataset_id):
5247
"""Creates a dataset."""
5348
client = get_client(service_account_json)
@@ -71,10 +66,6 @@ def create_dataset(service_account_json, project_id, cloud_region, dataset_id):
7166
return ""
7267

7368

74-
# [END healthcare_create_dataset]
75-
76-
77-
# [START healthcare_delete_dataset]
7869
def delete_dataset(service_account_json, project_id, cloud_region, dataset_id):
7970
"""Deletes a dataset."""
8071
client = get_client(service_account_json)
@@ -93,10 +84,6 @@ def delete_dataset(service_account_json, project_id, cloud_region, dataset_id):
9384
return ""
9485

9586

96-
# [END healthcare_delete_dataset]
97-
98-
99-
# [START healthcare_create_fhir_store]
10087
def create_fhir_store(
10188
service_account_json, project_id, cloud_region, dataset_id, fhir_store_id
10289
):
@@ -121,10 +108,6 @@ def create_fhir_store(
121108
return response
122109

123110

124-
# [END healthcare_create_fhir_store]
125-
126-
127-
# [START healthcare_delete_fhir_store]
128111
def delete_fhir_store(
129112
service_account_json, project_id, cloud_region, dataset_id, fhir_store_id
130113
):
@@ -148,9 +131,6 @@ def delete_fhir_store(
148131
return response
149132

150133

151-
# [END healthcare_delete_fhir_store]
152-
153-
154134
def parse_command_line_args():
155135
"""Parses command line arguments."""
156136

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.