google-apis-healthcare_v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 9b41cff94f66c9cae9713edc92fde7cd5048e864e4ba81a865ce4d7f1525fb2c
4
+ data.tar.gz: f68b907260cb9dde73cfb034bfe2014b7fb1607a75d1c6e9ff21dbe8fdf5f5f3
5
+ SHA512:
6
+ metadata.gz: 1cb85c6f036047267c6eb14e0595ca63abcb65a3bf97cab0ff4d80f063334802eb2f7af640238d9fe52ca6be1e864821b25fd8025a6f8ccf89947b14c9f1f3fb
7
+ data.tar.gz: 75b0b7a190330dd1c095363f7d0b94050cf4e59ae71d17ac4c82daee707f2f027df7831bf74d300d5159a961a3dc1bc1a07b3d131ff41aa0a8c99cc1d9a56041
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-healthcare_v1
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/healthcare_v1/*.rb
9
+ lib/google/apis/healthcare_v1.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-healthcare_v1
2
+
3
+ ### v0.1.0 (2021-01-07)
4
+
5
+ * Regenerated using generator version 0.1.1
6
+ * Regenerated from discovery document revision 20201202
7
+
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,96 @@
1
+ # Simple REST client for version V1 of the Cloud Healthcare API
2
+
3
+ This is a simple client library for version V1 of the Cloud Healthcare API. It provides:
4
+
5
+ * A client object that connects to the HTTP/JSON REST endpoint for the service.
6
+ * Ruby objects for data structures related to the service.
7
+ * Integration with the googleauth gem for authentication using OAuth, API keys, and service accounts.
8
+ * Control of retry, pagination, and timeouts.
9
+
10
+ Note that although this client library is supported and will continue to be updated to track changes to the service, it is otherwise considered complete and not under active development. Many Google services, especially Google Cloud Platform services, may provide a more modern client that is under more active development and improvement. See the section below titled *Which client should I use?* for more information.
11
+
12
+ ## Getting started
13
+
14
+ ### Before you begin
15
+
16
+ There are a few setup steps you need to complete before you can use this library:
17
+
18
+ 1. If you don't already have a Google account, [sign up](https://www.google.com/accounts).
19
+ 2. If you have never created a Google APIs Console project, read about [Managing Projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects) and create a project in the [Google API Console](https://console.cloud.google.com/).
20
+ 3. Most APIs need to be enabled for your project. [Enable it](https://console.cloud.google.com/apis/library/healthcare.googleapis.com) in the console.
21
+
22
+ ### Installation
23
+
24
+ Add this line to your application's Gemfile:
25
+
26
+ ```ruby
27
+ gem 'google-apis-healthcare_v1', '~> 0.1'
28
+ ```
29
+
30
+ And then execute:
31
+
32
+ ```
33
+ $ bundle
34
+ ```
35
+
36
+ Or install it yourself as:
37
+
38
+ ```
39
+ $ gem install google-apis-healthcare_v1
40
+ ```
41
+
42
+ ### Creating a client object
43
+
44
+ Once the gem is installed, you can load the client code and instantiate a client.
45
+
46
+ ```ruby
47
+ # Load the client
48
+ require "google/apis/healthcare_v1"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::HealthcareV1::CloudHealthcareService.new
52
+
53
+ # Authenticate calls
54
+ client.authentication = # ... use the googleauth gem to create credentials
55
+ ```
56
+
57
+ See the class reference docs for information on the methods you can call from a client.
58
+
59
+ ## Documentation
60
+
61
+ More detailed descriptions of the Google simple REST clients are available in two documents.
62
+
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
+
66
+ (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Healthcare service in particular.)
67
+
68
+ For reference information on specific calls in the Cloud Healthcare API, see the {Google::Apis::HealthcareV1::CloudHealthcareService class reference docs}.
69
+
70
+ ## Which client should I use?
71
+
72
+ Google provides two types of Ruby API client libraries: **simple REST clients** and **modern clients**.
73
+
74
+ This library, `google-apis-healthcare_v1`, is a simple REST client. You can identify these clients by their gem names, which are always in the form `google-apis-<servicename>_<serviceversion>`. The simple REST clients connect to HTTP/JSON REST endpoints and are automatically generated from service discovery documents. They support most API functionality, but their class interfaces are sometimes awkward.
75
+
76
+ Modern clients are produced by a modern code generator, sometimes combined with hand-crafted functionality. Most modern clients connect to high-performance gRPC endpoints, although a few are backed by REST services. Modern clients are available for many Google services, especially Google Cloud Platform services, but do not yet support all the services covered by the simple clients.
77
+
78
+ Gem names for modern clients are often of the form `google-cloud-<service_name>`. (For example, [google-cloud-pubsub](https://rubygems.org/gems/google-cloud-pubsub).) Note that most modern clients also have corresponding "versioned" gems with names like `google-cloud-<service_name>-<version>`. (For example, [google-cloud-pubsub-v1](https://rubygems.org/gems/google-cloud-pubsub-v1).) The "versioned" gems can be used directly, but often provide lower-level interfaces. In most cases, the main gem is recommended.
79
+
80
+ **For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
81
+
82
+ The [product documentation](https://cloud.google.com/healthcare) may provide guidance regarding the preferred client library to use.
83
+
84
+ ## Supported Ruby versions
85
+
86
+ This library is supported on Ruby 2.5+.
87
+
88
+ Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
+
90
+ ## License
91
+
92
+ This library is licensed under Apache 2.0. Full license text is available in the {file:LICENSE.md LICENSE}.
93
+
94
+ ## Support
95
+
96
+ Please [report bugs at the project on Github](https://github.com/google/google-api-ruby-client/issues). Don't hesitate to [ask questions](http://stackoverflow.com/questions/tagged/google-api-ruby-client) about the client or APIs on [StackOverflow](http://stackoverflow.com).
@@ -0,0 +1,15 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require "google/apis/healthcare_v1"
@@ -0,0 +1,36 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/healthcare_v1/service.rb'
16
+ require 'google/apis/healthcare_v1/classes.rb'
17
+ require 'google/apis/healthcare_v1/representations.rb'
18
+ require 'google/apis/healthcare_v1/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # Cloud Healthcare API
23
+ #
24
+ # Manage, store, and access healthcare data in Google Cloud Platform.
25
+ #
26
+ # @see https://cloud.google.com/healthcare
27
+ module HealthcareV1
28
+ # Version of the Cloud Healthcare API this client connects to.
29
+ # This is NOT the gem version.
30
+ VERSION = 'V1'
31
+
32
+ # View and manage your data across Google Cloud Platform services
33
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,2471 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module HealthcareV1
24
+
25
+ # Specifies the audit configuration for a service. The configuration determines
26
+ # which permission types are logged, and what identities, if any, are exempted
27
+ # from logging. An AuditConfig must have one or more AuditLogConfigs. If there
28
+ # are AuditConfigs for both `allServices` and a specific service, the union of
29
+ # the two AuditConfigs is used for that service: the log_types specified in each
30
+ # AuditConfig are enabled, and the exempted_members in each AuditLogConfig are
31
+ # exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` "
32
+ # service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", "
33
+ # exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `,
34
+ # ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com",
35
+ # "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE"
36
+ # , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice,
37
+ # this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also
38
+ # exempts jose@example.com from DATA_READ logging, and aliya@example.com from
39
+ # DATA_WRITE logging.
40
+ class AuditConfig
41
+ include Google::Apis::Core::Hashable
42
+
43
+ # The configuration for logging of each type of permission.
44
+ # Corresponds to the JSON property `auditLogConfigs`
45
+ # @return [Array<Google::Apis::HealthcareV1::AuditLogConfig>]
46
+ attr_accessor :audit_log_configs
47
+
48
+ # Specifies a service that will be enabled for audit logging. For example, `
49
+ # storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special
50
+ # value that covers all services.
51
+ # Corresponds to the JSON property `service`
52
+ # @return [String]
53
+ attr_accessor :service
54
+
55
+ def initialize(**args)
56
+ update!(**args)
57
+ end
58
+
59
+ # Update properties of this object
60
+ def update!(**args)
61
+ @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
62
+ @service = args[:service] if args.key?(:service)
63
+ end
64
+ end
65
+
66
+ # Provides the configuration for logging a type of permissions. Example: ` "
67
+ # audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user:
68
+ # jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables '
69
+ # DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from
70
+ # DATA_READ logging.
71
+ class AuditLogConfig
72
+ include Google::Apis::Core::Hashable
73
+
74
+ # Specifies the identities that do not cause logging for this type of permission.
75
+ # Follows the same format of Binding.members.
76
+ # Corresponds to the JSON property `exemptedMembers`
77
+ # @return [Array<String>]
78
+ attr_accessor :exempted_members
79
+
80
+ # The log type that this config enables.
81
+ # Corresponds to the JSON property `logType`
82
+ # @return [String]
83
+ attr_accessor :log_type
84
+
85
+ def initialize(**args)
86
+ update!(**args)
87
+ end
88
+
89
+ # Update properties of this object
90
+ def update!(**args)
91
+ @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
92
+ @log_type = args[:log_type] if args.key?(:log_type)
93
+ end
94
+ end
95
+
96
+ # Associates `members` with a `role`.
97
+ class Binding
98
+ include Google::Apis::Core::Hashable
99
+
100
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
101
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
102
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
103
+ # "Summary size limit" description: "Determines if a summary is less than 100
104
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
105
+ # Requestor is owner" description: "Determines if requestor is the document
106
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
107
+ # Logic): title: "Public documents" description: "Determine whether the document
108
+ # should be publicly visible" expression: "document.type != 'private' &&
109
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
110
+ # string" description: "Create a notification string with a timestamp."
111
+ # expression: "'New message received at ' + string(document.create_time)" The
112
+ # exact variables and functions that may be referenced within an expression are
113
+ # determined by the service that evaluates it. See the service documentation for
114
+ # additional information.
115
+ # Corresponds to the JSON property `condition`
116
+ # @return [Google::Apis::HealthcareV1::Expr]
117
+ attr_accessor :condition
118
+
119
+ # Specifies the identities requesting access for a Cloud Platform resource. `
120
+ # members` can have the following values: * `allUsers`: A special identifier
121
+ # that represents anyone who is on the internet; with or without a Google
122
+ # account. * `allAuthenticatedUsers`: A special identifier that represents
123
+ # anyone who is authenticated with a Google account or a service account. * `
124
+ # user:`emailid``: An email address that represents a specific Google account.
125
+ # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
126
+ # address that represents a service account. For example, `my-other-app@appspot.
127
+ # gserviceaccount.com`. * `group:`emailid``: An email address that represents a
128
+ # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
129
+ # `uniqueid``: An email address (plus unique identifier) representing a user
130
+ # that has been recently deleted. For example, `alice@example.com?uid=
131
+ # 123456789012345678901`. If the user is recovered, this value reverts to `user:`
132
+ # emailid`` and the recovered user retains the role in the binding. * `deleted:
133
+ # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
134
+ # identifier) representing a service account that has been recently deleted. For
135
+ # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
136
+ # If the service account is undeleted, this value reverts to `serviceAccount:`
137
+ # emailid`` and the undeleted service account retains the role in the binding. *
138
+ # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
139
+ # identifier) representing a Google group that has been recently deleted. For
140
+ # example, `admins@example.com?uid=123456789012345678901`. If the group is
141
+ # recovered, this value reverts to `group:`emailid`` and the recovered group
142
+ # retains the role in the binding. * `domain:`domain``: The G Suite domain (
143
+ # primary) that represents all the users of that domain. For example, `google.
144
+ # com` or `example.com`.
145
+ # Corresponds to the JSON property `members`
146
+ # @return [Array<String>]
147
+ attr_accessor :members
148
+
149
+ # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
150
+ # , or `roles/owner`.
151
+ # Corresponds to the JSON property `role`
152
+ # @return [String]
153
+ attr_accessor :role
154
+
155
+ def initialize(**args)
156
+ update!(**args)
157
+ end
158
+
159
+ # Update properties of this object
160
+ def update!(**args)
161
+ @condition = args[:condition] if args.key?(:condition)
162
+ @members = args[:members] if args.key?(:members)
163
+ @role = args[:role] if args.key?(:role)
164
+ end
165
+ end
166
+
167
+ # The request message for Operations.CancelOperation.
168
+ class CancelOperationRequest
169
+ include Google::Apis::Core::Hashable
170
+
171
+ def initialize(**args)
172
+ update!(**args)
173
+ end
174
+
175
+ # Update properties of this object
176
+ def update!(**args)
177
+ end
178
+ end
179
+
180
+ # Mask a string by replacing its characters with a fixed character.
181
+ class CharacterMaskConfig
182
+ include Google::Apis::Core::Hashable
183
+
184
+ # Character to mask the sensitive values. If not supplied, defaults to "*".
185
+ # Corresponds to the JSON property `maskingCharacter`
186
+ # @return [String]
187
+ attr_accessor :masking_character
188
+
189
+ def initialize(**args)
190
+ update!(**args)
191
+ end
192
+
193
+ # Update properties of this object
194
+ def update!(**args)
195
+ @masking_character = args[:masking_character] if args.key?(:masking_character)
196
+ end
197
+ end
198
+
199
+ # Creates a new message.
200
+ class CreateMessageRequest
201
+ include Google::Apis::Core::Hashable
202
+
203
+ # A complete HL7v2 message. See [Introduction to HL7 Standards] (https://www.hl7.
204
+ # org/implement/standards/index.cfm?ref=common) for details on the standard.
205
+ # Corresponds to the JSON property `message`
206
+ # @return [Google::Apis::HealthcareV1::Message]
207
+ attr_accessor :message
208
+
209
+ def initialize(**args)
210
+ update!(**args)
211
+ end
212
+
213
+ # Update properties of this object
214
+ def update!(**args)
215
+ @message = args[:message] if args.key?(:message)
216
+ end
217
+ end
218
+
219
+ # Pseudonymization method that generates surrogates via cryptographic hashing.
220
+ # Uses SHA-256. Outputs a base64-encoded representation of the hashed output (
221
+ # for example, `L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=`).
222
+ class CryptoHashConfig
223
+ include Google::Apis::Core::Hashable
224
+
225
+ # An AES 128/192/256 bit key. Causes the hash to be computed based on this key.
226
+ # A default key is generated for each Deidentify operation and is used wherever
227
+ # crypto_key is not specified.
228
+ # Corresponds to the JSON property `cryptoKey`
229
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
230
+ # @return [String]
231
+ attr_accessor :crypto_key
232
+
233
+ def initialize(**args)
234
+ update!(**args)
235
+ end
236
+
237
+ # Update properties of this object
238
+ def update!(**args)
239
+ @crypto_key = args[:crypto_key] if args.key?(:crypto_key)
240
+ end
241
+ end
242
+
243
+ # A message representing a health dataset. A health dataset represents a
244
+ # collection of healthcare data pertaining to one or more patients. This may
245
+ # include multiple modalities of healthcare data, such as electronic medical
246
+ # records or medical imaging data.
247
+ class Dataset
248
+ include Google::Apis::Core::Hashable
249
+
250
+ # Resource name of the dataset, of the form `projects/`project_id`/locations/`
251
+ # location_id`/datasets/`dataset_id``.
252
+ # Corresponds to the JSON property `name`
253
+ # @return [String]
254
+ attr_accessor :name
255
+
256
+ # The default timezone used by this dataset. Must be a either a valid IANA time
257
+ # zone name such as "America/New_York" or empty, which defaults to UTC. This is
258
+ # used for parsing times in resources, such as HL7 messages, where no explicit
259
+ # timezone is specified.
260
+ # Corresponds to the JSON property `timeZone`
261
+ # @return [String]
262
+ attr_accessor :time_zone
263
+
264
+ def initialize(**args)
265
+ update!(**args)
266
+ end
267
+
268
+ # Update properties of this object
269
+ def update!(**args)
270
+ @name = args[:name] if args.key?(:name)
271
+ @time_zone = args[:time_zone] if args.key?(:time_zone)
272
+ end
273
+ end
274
+
275
+ # Shift a date forward or backward in time by a random amount which is
276
+ # consistent for a given patient and crypto key combination.
277
+ class DateShiftConfig
278
+ include Google::Apis::Core::Hashable
279
+
280
+ # An AES 128/192/256 bit key. Causes the shift to be computed based on this key
281
+ # and the patient ID. A default key is generated for each Deidentify operation
282
+ # and is used wherever crypto_key is not specified.
283
+ # Corresponds to the JSON property `cryptoKey`
284
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
285
+ # @return [String]
286
+ attr_accessor :crypto_key
287
+
288
+ def initialize(**args)
289
+ update!(**args)
290
+ end
291
+
292
+ # Update properties of this object
293
+ def update!(**args)
294
+ @crypto_key = args[:crypto_key] if args.key?(:crypto_key)
295
+ end
296
+ end
297
+
298
+ # Configures de-id options specific to different types of content. Each
299
+ # submessage customizes the handling of an https://tools.ietf.org/html/rfc6838
300
+ # media type or subtype. Configs are applied in a nested manner at runtime.
301
+ class DeidentifyConfig
302
+ include Google::Apis::Core::Hashable
303
+
304
+ # Specifies the parameters needed for de-identification of DICOM stores.
305
+ # Corresponds to the JSON property `dicom`
306
+ # @return [Google::Apis::HealthcareV1::DicomConfig]
307
+ attr_accessor :dicom
308
+
309
+ # Specifies how to handle de-identification of a FHIR store.
310
+ # Corresponds to the JSON property `fhir`
311
+ # @return [Google::Apis::HealthcareV1::FhirConfig]
312
+ attr_accessor :fhir
313
+
314
+ # Specifies how to handle de-identification of image pixels.
315
+ # Corresponds to the JSON property `image`
316
+ # @return [Google::Apis::HealthcareV1::ImageConfig]
317
+ attr_accessor :image
318
+
319
+ # Configures de-identification of text wherever it is found in the
320
+ # source_dataset.
321
+ # Corresponds to the JSON property `text`
322
+ # @return [Google::Apis::HealthcareV1::TextConfig]
323
+ attr_accessor :text
324
+
325
+ def initialize(**args)
326
+ update!(**args)
327
+ end
328
+
329
+ # Update properties of this object
330
+ def update!(**args)
331
+ @dicom = args[:dicom] if args.key?(:dicom)
332
+ @fhir = args[:fhir] if args.key?(:fhir)
333
+ @image = args[:image] if args.key?(:image)
334
+ @text = args[:text] if args.key?(:text)
335
+ end
336
+ end
337
+
338
+ # Redacts identifying information from the specified dataset.
339
+ class DeidentifyDatasetRequest
340
+ include Google::Apis::Core::Hashable
341
+
342
+ # Configures de-id options specific to different types of content. Each
343
+ # submessage customizes the handling of an https://tools.ietf.org/html/rfc6838
344
+ # media type or subtype. Configs are applied in a nested manner at runtime.
345
+ # Corresponds to the JSON property `config`
346
+ # @return [Google::Apis::HealthcareV1::DeidentifyConfig]
347
+ attr_accessor :config
348
+
349
+ # The name of the dataset resource to create and write the redacted data to. *
350
+ # The destination dataset must not exist. * The destination dataset must be in
351
+ # the same project and location as the source dataset. De-identifying data
352
+ # across multiple projects or locations is not supported.
353
+ # Corresponds to the JSON property `destinationDataset`
354
+ # @return [String]
355
+ attr_accessor :destination_dataset
356
+
357
+ def initialize(**args)
358
+ update!(**args)
359
+ end
360
+
361
+ # Update properties of this object
362
+ def update!(**args)
363
+ @config = args[:config] if args.key?(:config)
364
+ @destination_dataset = args[:destination_dataset] if args.key?(:destination_dataset)
365
+ end
366
+ end
367
+
368
+ # Creates a new DICOM store with sensitive information de-identified.
369
+ class DeidentifyDicomStoreRequest
370
+ include Google::Apis::Core::Hashable
371
+
372
+ # Configures de-id options specific to different types of content. Each
373
+ # submessage customizes the handling of an https://tools.ietf.org/html/rfc6838
374
+ # media type or subtype. Configs are applied in a nested manner at runtime.
375
+ # Corresponds to the JSON property `config`
376
+ # @return [Google::Apis::HealthcareV1::DeidentifyConfig]
377
+ attr_accessor :config
378
+
379
+ # The name of the DICOM store to create and write the redacted data to. For
380
+ # example, `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
381
+ # dicomStores/`dicom_store_id``. * The destination dataset must exist. * The
382
+ # source dataset and destination dataset must both reside in the same project.
383
+ # De-identifying data across multiple projects is not supported. * The
384
+ # destination DICOM store must not exist. * The caller must have the necessary
385
+ # permissions to create the destination DICOM store.
386
+ # Corresponds to the JSON property `destinationStore`
387
+ # @return [String]
388
+ attr_accessor :destination_store
389
+
390
+ # Specifies the filter configuration for DICOM resources.
391
+ # Corresponds to the JSON property `filterConfig`
392
+ # @return [Google::Apis::HealthcareV1::DicomFilterConfig]
393
+ attr_accessor :filter_config
394
+
395
+ def initialize(**args)
396
+ update!(**args)
397
+ end
398
+
399
+ # Update properties of this object
400
+ def update!(**args)
401
+ @config = args[:config] if args.key?(:config)
402
+ @destination_store = args[:destination_store] if args.key?(:destination_store)
403
+ @filter_config = args[:filter_config] if args.key?(:filter_config)
404
+ end
405
+ end
406
+
407
+ # Creates a new FHIR store with sensitive information de-identified.
408
+ class DeidentifyFhirStoreRequest
409
+ include Google::Apis::Core::Hashable
410
+
411
+ # Configures de-id options specific to different types of content. Each
412
+ # submessage customizes the handling of an https://tools.ietf.org/html/rfc6838
413
+ # media type or subtype. Configs are applied in a nested manner at runtime.
414
+ # Corresponds to the JSON property `config`
415
+ # @return [Google::Apis::HealthcareV1::DeidentifyConfig]
416
+ attr_accessor :config
417
+
418
+ # The name of the FHIR store to create and write the redacted data to. For
419
+ # example, `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
420
+ # fhirStores/`fhir_store_id``. * The destination dataset must exist. * The
421
+ # source dataset and destination dataset must both reside in the same project.
422
+ # De-identifying data across multiple projects is not supported. * The
423
+ # destination FHIR store must exist. * The caller must have the healthcare.
424
+ # fhirResources.update permission to write to the destination FHIR store.
425
+ # Corresponds to the JSON property `destinationStore`
426
+ # @return [String]
427
+ attr_accessor :destination_store
428
+
429
+ # Filter configuration.
430
+ # Corresponds to the JSON property `resourceFilter`
431
+ # @return [Google::Apis::HealthcareV1::FhirFilter]
432
+ attr_accessor :resource_filter
433
+
434
+ def initialize(**args)
435
+ update!(**args)
436
+ end
437
+
438
+ # Update properties of this object
439
+ def update!(**args)
440
+ @config = args[:config] if args.key?(:config)
441
+ @destination_store = args[:destination_store] if args.key?(:destination_store)
442
+ @resource_filter = args[:resource_filter] if args.key?(:resource_filter)
443
+ end
444
+ end
445
+
446
+ # Contains a summary of the Deidentify operation.
447
+ class DeidentifySummary
448
+ include Google::Apis::Core::Hashable
449
+
450
+ def initialize(**args)
451
+ update!(**args)
452
+ end
453
+
454
+ # Update properties of this object
455
+ def update!(**args)
456
+ end
457
+ end
458
+
459
+ # Specifies the parameters needed for de-identification of DICOM stores.
460
+ class DicomConfig
461
+ include Google::Apis::Core::Hashable
462
+
463
+ # Tag filtering profile that determines which tags to keep/remove.
464
+ # Corresponds to the JSON property `filterProfile`
465
+ # @return [String]
466
+ attr_accessor :filter_profile
467
+
468
+ # List of tags to be filtered.
469
+ # Corresponds to the JSON property `keepList`
470
+ # @return [Google::Apis::HealthcareV1::TagFilterList]
471
+ attr_accessor :keep_list
472
+
473
+ # List of tags to be filtered.
474
+ # Corresponds to the JSON property `removeList`
475
+ # @return [Google::Apis::HealthcareV1::TagFilterList]
476
+ attr_accessor :remove_list
477
+
478
+ # If true, skip replacing StudyInstanceUID, SeriesInstanceUID, SOPInstanceUID,
479
+ # and MediaStorageSOPInstanceUID and leave them untouched. The Cloud Healthcare
480
+ # API regenerates these UIDs by default based on the DICOM Standard's reasoning:
481
+ # "Whilst these UIDs cannot be mapped directly to an individual out of context,
482
+ # given access to the original images, or to a database of the original images
483
+ # containing the UIDs, it would be possible to recover the individual's identity.
484
+ # " http://dicom.nema.org/medical/dicom/current/output/chtml/part15/sect_E.3.9.
485
+ # html
486
+ # Corresponds to the JSON property `skipIdRedaction`
487
+ # @return [Boolean]
488
+ attr_accessor :skip_id_redaction
489
+ alias_method :skip_id_redaction?, :skip_id_redaction
490
+
491
+ def initialize(**args)
492
+ update!(**args)
493
+ end
494
+
495
+ # Update properties of this object
496
+ def update!(**args)
497
+ @filter_profile = args[:filter_profile] if args.key?(:filter_profile)
498
+ @keep_list = args[:keep_list] if args.key?(:keep_list)
499
+ @remove_list = args[:remove_list] if args.key?(:remove_list)
500
+ @skip_id_redaction = args[:skip_id_redaction] if args.key?(:skip_id_redaction)
501
+ end
502
+ end
503
+
504
+ # Specifies the filter configuration for DICOM resources.
505
+ class DicomFilterConfig
506
+ include Google::Apis::Core::Hashable
507
+
508
+ # The Cloud Storage location of the filter configuration file. The `gcs_uri`
509
+ # must be in the format `gs://bucket/path/to/object`. The filter configuration
510
+ # file must contain a list of resource paths separated by newline characters (\n
511
+ # or \r\n). Each resource path must be in the format "/studies/`studyUID`[/
512
+ # series/`seriesUID`[/instances/`instanceUID`]]" The Cloud Healthcare API
513
+ # service account must have the `roles/storage.objectViewer` Cloud IAM role for
514
+ # this Cloud Storage location.
515
+ # Corresponds to the JSON property `resourcePathsGcsUri`
516
+ # @return [String]
517
+ attr_accessor :resource_paths_gcs_uri
518
+
519
+ def initialize(**args)
520
+ update!(**args)
521
+ end
522
+
523
+ # Update properties of this object
524
+ def update!(**args)
525
+ @resource_paths_gcs_uri = args[:resource_paths_gcs_uri] if args.key?(:resource_paths_gcs_uri)
526
+ end
527
+ end
528
+
529
+ # Represents a DICOM store.
530
+ class DicomStore
531
+ include Google::Apis::Core::Hashable
532
+
533
+ # User-supplied key-value pairs used to organize DICOM stores. Label keys must
534
+ # be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128
535
+ # bytes, and must conform to the following PCRE regular expression: \p`Ll`\p`Lo``
536
+ # 0,62` Label values are optional, must be between 1 and 63 characters long,
537
+ # have a UTF-8 encoding of maximum 128 bytes, and must conform to the following
538
+ # PCRE regular expression: [\p`Ll`\p`Lo`\p`N`_-]`0,63` No more than 64 labels
539
+ # can be associated with a given store.
540
+ # Corresponds to the JSON property `labels`
541
+ # @return [Hash<String,String>]
542
+ attr_accessor :labels
543
+
544
+ # Resource name of the DICOM store, of the form `projects/`project_id`/locations/
545
+ # `location_id`/datasets/`dataset_id`/dicomStores/`dicom_store_id``.
546
+ # Corresponds to the JSON property `name`
547
+ # @return [String]
548
+ attr_accessor :name
549
+
550
+ # Specifies where to send notifications upon changes to a data store.
551
+ # Corresponds to the JSON property `notificationConfig`
552
+ # @return [Google::Apis::HealthcareV1::NotificationConfig]
553
+ attr_accessor :notification_config
554
+
555
+ def initialize(**args)
556
+ update!(**args)
557
+ end
558
+
559
+ # Update properties of this object
560
+ def update!(**args)
561
+ @labels = args[:labels] if args.key?(:labels)
562
+ @name = args[:name] if args.key?(:name)
563
+ @notification_config = args[:notification_config] if args.key?(:notification_config)
564
+ end
565
+ end
566
+
567
+ # A generic empty message that you can re-use to avoid defining duplicated empty
568
+ # messages in your APIs. A typical example is to use it as the request or the
569
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
570
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
571
+ # `Empty` is empty JSON object ````.
572
+ class Empty
573
+ include Google::Apis::Core::Hashable
574
+
575
+ def initialize(**args)
576
+ update!(**args)
577
+ end
578
+
579
+ # Update properties of this object
580
+ def update!(**args)
581
+ end
582
+ end
583
+
584
+ # Exports data from the specified DICOM store. If a given resource, such as a
585
+ # DICOM object with the same SOPInstance UID, already exists in the output, it
586
+ # is overwritten with the version in the source dataset. Exported DICOM data
587
+ # persists when the DICOM store from which it was exported is deleted.
588
+ class ExportDicomDataRequest
589
+ include Google::Apis::Core::Hashable
590
+
591
+ # The BigQuery table where the server writes the output.
592
+ # Corresponds to the JSON property `bigqueryDestination`
593
+ # @return [Google::Apis::HealthcareV1::GoogleCloudHealthcareV1DicomBigQueryDestination]
594
+ attr_accessor :bigquery_destination
595
+
596
+ # The Cloud Storage location where the server writes the output and the export
597
+ # configuration.
598
+ # Corresponds to the JSON property `gcsDestination`
599
+ # @return [Google::Apis::HealthcareV1::GoogleCloudHealthcareV1DicomGcsDestination]
600
+ attr_accessor :gcs_destination
601
+
602
+ def initialize(**args)
603
+ update!(**args)
604
+ end
605
+
606
+ # Update properties of this object
607
+ def update!(**args)
608
+ @bigquery_destination = args[:bigquery_destination] if args.key?(:bigquery_destination)
609
+ @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
610
+ end
611
+ end
612
+
613
+ # Returns additional information in regards to a completed DICOM store export.
614
+ class ExportDicomDataResponse
615
+ include Google::Apis::Core::Hashable
616
+
617
+ def initialize(**args)
618
+ update!(**args)
619
+ end
620
+
621
+ # Update properties of this object
622
+ def update!(**args)
623
+ end
624
+ end
625
+
626
+ # Request to export resources.
627
+ class ExportResourcesRequest
628
+ include Google::Apis::Core::Hashable
629
+
630
+ # The configuration for exporting to BigQuery.
631
+ # Corresponds to the JSON property `bigqueryDestination`
632
+ # @return [Google::Apis::HealthcareV1::GoogleCloudHealthcareV1FhirBigQueryDestination]
633
+ attr_accessor :bigquery_destination
634
+
635
+ # The configuration for exporting to Cloud Storage.
636
+ # Corresponds to the JSON property `gcsDestination`
637
+ # @return [Google::Apis::HealthcareV1::GoogleCloudHealthcareV1FhirGcsDestination]
638
+ attr_accessor :gcs_destination
639
+
640
+ def initialize(**args)
641
+ update!(**args)
642
+ end
643
+
644
+ # Update properties of this object
645
+ def update!(**args)
646
+ @bigquery_destination = args[:bigquery_destination] if args.key?(:bigquery_destination)
647
+ @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
648
+ end
649
+ end
650
+
651
+ # Response when all resources export successfully. This structure is included in
652
+ # the response to describe the detailed outcome after the operation finishes
653
+ # successfully.
654
+ class ExportResourcesResponse
655
+ include Google::Apis::Core::Hashable
656
+
657
+ def initialize(**args)
658
+ update!(**args)
659
+ end
660
+
661
+ # Update properties of this object
662
+ def update!(**args)
663
+ end
664
+ end
665
+
666
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
667
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
668
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
669
+ # "Summary size limit" description: "Determines if a summary is less than 100
670
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
671
+ # Requestor is owner" description: "Determines if requestor is the document
672
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
673
+ # Logic): title: "Public documents" description: "Determine whether the document
674
+ # should be publicly visible" expression: "document.type != 'private' &&
675
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
676
+ # string" description: "Create a notification string with a timestamp."
677
+ # expression: "'New message received at ' + string(document.create_time)" The
678
+ # exact variables and functions that may be referenced within an expression are
679
+ # determined by the service that evaluates it. See the service documentation for
680
+ # additional information.
681
+ class Expr
682
+ include Google::Apis::Core::Hashable
683
+
684
+ # Optional. Description of the expression. This is a longer text which describes
685
+ # the expression, e.g. when hovered over it in a UI.
686
+ # Corresponds to the JSON property `description`
687
+ # @return [String]
688
+ attr_accessor :description
689
+
690
+ # Textual representation of an expression in Common Expression Language syntax.
691
+ # Corresponds to the JSON property `expression`
692
+ # @return [String]
693
+ attr_accessor :expression
694
+
695
+ # Optional. String indicating the location of the expression for error reporting,
696
+ # e.g. a file name and a position in the file.
697
+ # Corresponds to the JSON property `location`
698
+ # @return [String]
699
+ attr_accessor :location
700
+
701
+ # Optional. Title for the expression, i.e. a short string describing its purpose.
702
+ # This can be used e.g. in UIs which allow to enter the expression.
703
+ # Corresponds to the JSON property `title`
704
+ # @return [String]
705
+ attr_accessor :title
706
+
707
+ def initialize(**args)
708
+ update!(**args)
709
+ end
710
+
711
+ # Update properties of this object
712
+ def update!(**args)
713
+ @description = args[:description] if args.key?(:description)
714
+ @expression = args[:expression] if args.key?(:expression)
715
+ @location = args[:location] if args.key?(:location)
716
+ @title = args[:title] if args.key?(:title)
717
+ end
718
+ end
719
+
720
+ # Specifies how to handle de-identification of a FHIR store.
721
+ class FhirConfig
722
+ include Google::Apis::Core::Hashable
723
+
724
+ # Specifies FHIR paths to match and how to transform them. Any field that is not
725
+ # matched by a FieldMetadata is passed through to the output dataset unmodified.
726
+ # All extensions are removed in the output.
727
+ # Corresponds to the JSON property `fieldMetadataList`
728
+ # @return [Array<Google::Apis::HealthcareV1::FieldMetadata>]
729
+ attr_accessor :field_metadata_list
730
+
731
+ def initialize(**args)
732
+ update!(**args)
733
+ end
734
+
735
+ # Update properties of this object
736
+ def update!(**args)
737
+ @field_metadata_list = args[:field_metadata_list] if args.key?(:field_metadata_list)
738
+ end
739
+ end
740
+
741
+ # Filter configuration.
742
+ class FhirFilter
743
+ include Google::Apis::Core::Hashable
744
+
745
+ # A list of FHIR resources.
746
+ # Corresponds to the JSON property `resources`
747
+ # @return [Google::Apis::HealthcareV1::Resources]
748
+ attr_accessor :resources
749
+
750
+ def initialize(**args)
751
+ update!(**args)
752
+ end
753
+
754
+ # Update properties of this object
755
+ def update!(**args)
756
+ @resources = args[:resources] if args.key?(:resources)
757
+ end
758
+ end
759
+
760
+ # Represents a FHIR store.
761
+ class FhirStore
762
+ include Google::Apis::Core::Hashable
763
+
764
+ # Immutable. Whether to disable referential integrity in this FHIR store. This
765
+ # field is immutable after FHIR store creation. The default value is false,
766
+ # meaning that the API enforces referential integrity and fails the requests
767
+ # that result in inconsistent state in the FHIR store. When this field is set to
768
+ # true, the API skips referential integrity checks. Consequently, operations
769
+ # that rely on references, such as GetPatientEverything, do not return all the
770
+ # results if broken references exist.
771
+ # Corresponds to the JSON property `disableReferentialIntegrity`
772
+ # @return [Boolean]
773
+ attr_accessor :disable_referential_integrity
774
+ alias_method :disable_referential_integrity?, :disable_referential_integrity
775
+
776
+ # Immutable. Whether to disable resource versioning for this FHIR store. This
777
+ # field can not be changed after the creation of FHIR store. If set to false,
778
+ # which is the default behavior, all write operations cause historical versions
779
+ # to be recorded automatically. The historical versions can be fetched through
780
+ # the history APIs, but cannot be updated. If set to true, no historical
781
+ # versions are kept. The server sends errors for attempts to read the historical
782
+ # versions.
783
+ # Corresponds to the JSON property `disableResourceVersioning`
784
+ # @return [Boolean]
785
+ attr_accessor :disable_resource_versioning
786
+ alias_method :disable_resource_versioning?, :disable_resource_versioning
787
+
788
+ # Whether this FHIR store has the [updateCreate capability](https://www.hl7.org/
789
+ # fhir/capabilitystatement-definitions.html#CapabilityStatement.rest.resource.
790
+ # updateCreate). This determines if the client can use an Update operation to
791
+ # create a new resource with a client-specified ID. If false, all IDs are server-
792
+ # assigned through the Create operation and attempts to update a non-existent
793
+ # resource return errors. Be careful with the audit logs if client-specified
794
+ # resource IDs contain sensitive data such as patient identifiers, those IDs are
795
+ # part of the FHIR resource path recorded in Cloud audit logs and Cloud Pub/Sub
796
+ # notifications.
797
+ # Corresponds to the JSON property `enableUpdateCreate`
798
+ # @return [Boolean]
799
+ attr_accessor :enable_update_create
800
+ alias_method :enable_update_create?, :enable_update_create
801
+
802
+ # User-supplied key-value pairs used to organize FHIR stores. Label keys must be
803
+ # between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes,
804
+ # and must conform to the following PCRE regular expression: \p`Ll`\p`Lo``0,62`
805
+ # Label values are optional, must be between 1 and 63 characters long, have a
806
+ # UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE
807
+ # regular expression: [\p`Ll`\p`Lo`\p`N`_-]`0,63` No more than 64 labels can be
808
+ # associated with a given store.
809
+ # Corresponds to the JSON property `labels`
810
+ # @return [Hash<String,String>]
811
+ attr_accessor :labels
812
+
813
+ # Output only. Resource name of the FHIR store, of the form `projects/`
814
+ # project_id`/datasets/`dataset_id`/fhirStores/`fhir_store_id``.
815
+ # Corresponds to the JSON property `name`
816
+ # @return [String]
817
+ attr_accessor :name
818
+
819
+ # Specifies where to send notifications upon changes to a data store.
820
+ # Corresponds to the JSON property `notificationConfig`
821
+ # @return [Google::Apis::HealthcareV1::NotificationConfig]
822
+ attr_accessor :notification_config
823
+
824
+ # A list of streaming configs that configure the destinations of streaming
825
+ # export for every resource mutation in this FHIR store. Each store is allowed
826
+ # to have up to 10 streaming configs. After a new config is added, the next
827
+ # resource mutation is streamed to the new location in addition to the existing
828
+ # ones. When a location is removed from the list, the server stops streaming to
829
+ # that location. Before adding a new config, you must add the required [`
830
+ # bigquery.dataEditor`](https://cloud.google.com/bigquery/docs/access-control#
831
+ # bigquery.dataEditor) role to your project's **Cloud Healthcare Service Agent**
832
+ # [service account](https://cloud.google.com/iam/docs/service-accounts). Some
833
+ # lag (typically on the order of dozens of seconds) is expected before the
834
+ # results show up in the streaming destination.
835
+ # Corresponds to the JSON property `streamConfigs`
836
+ # @return [Array<Google::Apis::HealthcareV1::StreamConfig>]
837
+ attr_accessor :stream_configs
838
+
839
+ # Immutable. The FHIR specification version that this FHIR store supports
840
+ # natively. This field is immutable after store creation. Requests are rejected
841
+ # if they contain FHIR resources of a different version. Version is required for
842
+ # every FHIR store.
843
+ # Corresponds to the JSON property `version`
844
+ # @return [String]
845
+ attr_accessor :version
846
+
847
+ def initialize(**args)
848
+ update!(**args)
849
+ end
850
+
851
+ # Update properties of this object
852
+ def update!(**args)
853
+ @disable_referential_integrity = args[:disable_referential_integrity] if args.key?(:disable_referential_integrity)
854
+ @disable_resource_versioning = args[:disable_resource_versioning] if args.key?(:disable_resource_versioning)
855
+ @enable_update_create = args[:enable_update_create] if args.key?(:enable_update_create)
856
+ @labels = args[:labels] if args.key?(:labels)
857
+ @name = args[:name] if args.key?(:name)
858
+ @notification_config = args[:notification_config] if args.key?(:notification_config)
859
+ @stream_configs = args[:stream_configs] if args.key?(:stream_configs)
860
+ @version = args[:version] if args.key?(:version)
861
+ end
862
+ end
863
+
864
+ # Specifies FHIR paths to match, and how to handle de-identification of matching
865
+ # fields.
866
+ class FieldMetadata
867
+ include Google::Apis::Core::Hashable
868
+
869
+ # Deidentify action for one field.
870
+ # Corresponds to the JSON property `action`
871
+ # @return [String]
872
+ attr_accessor :action
873
+
874
+ # List of paths to FHIR fields to be redacted. Each path is a period-separated
875
+ # list where each component is either a field name or FHIR type name, for
876
+ # example: Patient, HumanName. For "choice" types (those defined in the FHIR
877
+ # spec with the form: field[x]) we use two separate components. For example, "
878
+ # deceasedAge.unit" is matched by "Deceased.Age.unit". Supported types are:
879
+ # AdministrativeGenderCode, Code, Date, DateTime, Decimal, HumanName, Id,
880
+ # LanguageCode, Markdown, Oid, String, Uri, Uuid, Xhtml. Base64Binary is also
881
+ # supported, but may only be kept as-is or have all the content removed.
882
+ # Corresponds to the JSON property `paths`
883
+ # @return [Array<String>]
884
+ attr_accessor :paths
885
+
886
+ def initialize(**args)
887
+ update!(**args)
888
+ end
889
+
890
+ # Update properties of this object
891
+ def update!(**args)
892
+ @action = args[:action] if args.key?(:action)
893
+ @paths = args[:paths] if args.key?(:paths)
894
+ end
895
+ end
896
+
897
+ # Contains a summary of the DeidentifyDicomStore operation.
898
+ class GoogleCloudHealthcareV1DeidentifyDeidentifyDicomStoreSummary
899
+ include Google::Apis::Core::Hashable
900
+
901
+ def initialize(**args)
902
+ update!(**args)
903
+ end
904
+
905
+ # Update properties of this object
906
+ def update!(**args)
907
+ end
908
+ end
909
+
910
+ # Contains a summary of the DeidentifyFhirStore operation.
911
+ class GoogleCloudHealthcareV1DeidentifyDeidentifyFhirStoreSummary
912
+ include Google::Apis::Core::Hashable
913
+
914
+ def initialize(**args)
915
+ update!(**args)
916
+ end
917
+
918
+ # Update properties of this object
919
+ def update!(**args)
920
+ end
921
+ end
922
+
923
+ # The BigQuery table where the server writes the output.
924
+ class GoogleCloudHealthcareV1DicomBigQueryDestination
925
+ include Google::Apis::Core::Hashable
926
+
927
+ # If the destination table already exists and this flag is `TRUE`, the table is
928
+ # overwritten by the contents of the DICOM store. If the flag is not set and the
929
+ # destination table already exists, the export call returns an error.
930
+ # Corresponds to the JSON property `force`
931
+ # @return [Boolean]
932
+ attr_accessor :force
933
+ alias_method :force?, :force
934
+
935
+ # BigQuery URI to a table, up to 2000 characters long, in the format `bq://
936
+ # projectId.bqDatasetId.tableId`
937
+ # Corresponds to the JSON property `tableUri`
938
+ # @return [String]
939
+ attr_accessor :table_uri
940
+
941
+ def initialize(**args)
942
+ update!(**args)
943
+ end
944
+
945
+ # Update properties of this object
946
+ def update!(**args)
947
+ @force = args[:force] if args.key?(:force)
948
+ @table_uri = args[:table_uri] if args.key?(:table_uri)
949
+ end
950
+ end
951
+
952
+ # The Cloud Storage location where the server writes the output and the export
953
+ # configuration.
954
+ class GoogleCloudHealthcareV1DicomGcsDestination
955
+ include Google::Apis::Core::Hashable
956
+
957
+ # MIME types supported by DICOM spec. Each file is written in the following
958
+ # format: `.../`study_id`/`series_id`/`instance_id`[/`frame_number`].`extension``
959
+ # The frame_number component exists only for multi-frame instances. Supported
960
+ # MIME types are consistent with supported formats in DICOMweb: https://cloud.
961
+ # google.com/healthcare/docs/dicom#retrieve_transaction. Specifically, the
962
+ # following are supported: - application/dicom; transfer-syntax=1.2.840.10008.1.
963
+ # 2.1 (uncompressed DICOM) - application/dicom; transfer-syntax=1.2.840.10008.1.
964
+ # 2.4.50 (DICOM with embedded JPEG Baseline) - application/dicom; transfer-
965
+ # syntax=1.2.840.10008.1.2.4.90 (DICOM with embedded JPEG 2000 Lossless Only) -
966
+ # application/dicom; transfer-syntax=1.2.840.10008.1.2.4.91 (DICOM with embedded
967
+ # JPEG 2000) - application/dicom; transfer-syntax=* (DICOM with no transcoding) -
968
+ # application/octet-stream; transfer-syntax=1.2.840.10008.1.2.1 (raw
969
+ # uncompressed PixelData) - application/octet-stream; transfer-syntax=* (raw
970
+ # PixelData in whatever format it was uploaded in) - image/jpeg; transfer-syntax=
971
+ # 1.2.840.10008.1.2.4.50 (Consumer JPEG) - image/png The following extensions
972
+ # are used for output files: - application/dicom -> .dcm - image/jpeg -> .jpg -
973
+ # image/png -> .png - application/octet-stream -> no extension If unspecified,
974
+ # the instances are exported in the original DICOM format they were uploaded in.
975
+ # Corresponds to the JSON property `mimeType`
976
+ # @return [String]
977
+ attr_accessor :mime_type
978
+
979
+ # The Cloud Storage destination to export to. URI for a Cloud Storage directory
980
+ # where the server writes the result files, in the format `gs://`bucket-id`/`
981
+ # path/to/destination/dir``). If there is no trailing slash, the service appends
982
+ # one when composing the object path. The user is responsible for creating the
983
+ # Cloud Storage bucket referenced in `uri_prefix`.
984
+ # Corresponds to the JSON property `uriPrefix`
985
+ # @return [String]
986
+ attr_accessor :uri_prefix
987
+
988
+ def initialize(**args)
989
+ update!(**args)
990
+ end
991
+
992
+ # Update properties of this object
993
+ def update!(**args)
994
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
995
+ @uri_prefix = args[:uri_prefix] if args.key?(:uri_prefix)
996
+ end
997
+ end
998
+
999
+ # Specifies the configuration for importing data from Cloud Storage.
1000
+ class GoogleCloudHealthcareV1DicomGcsSource
1001
+ include Google::Apis::Core::Hashable
1002
+
1003
+ # Points to a Cloud Storage URI containing file(s) with content only. The URI
1004
+ # must be in the following format: `gs://`bucket_id`/`object_id``. The URI can
1005
+ # include wildcards in `object_id` and thus identify multiple files. Supported
1006
+ # wildcards: '*' to match 0 or more non-separator characters '**' to match 0 or
1007
+ # more characters (including separators). Must be used at the end of a path and
1008
+ # with no other wildcards in the path. Can also be used with a file extension (
1009
+ # such as .dcm), which imports all files with the extension in the specified
1010
+ # directory and its sub-directories. For example, `gs://my-bucket/my-directory/**
1011
+ # .dcm` imports all files with .dcm extensions in `my-directory/` and its sub-
1012
+ # directories. '?' to match 1 character All other URI formats are invalid. Files
1013
+ # matching the wildcard are expected to contain content only, no metadata.
1014
+ # Corresponds to the JSON property `uri`
1015
+ # @return [String]
1016
+ attr_accessor :uri
1017
+
1018
+ def initialize(**args)
1019
+ update!(**args)
1020
+ end
1021
+
1022
+ # Update properties of this object
1023
+ def update!(**args)
1024
+ @uri = args[:uri] if args.key?(:uri)
1025
+ end
1026
+ end
1027
+
1028
+ # The configuration for exporting to BigQuery.
1029
+ class GoogleCloudHealthcareV1FhirBigQueryDestination
1030
+ include Google::Apis::Core::Hashable
1031
+
1032
+ # BigQuery URI to an existing dataset, up to 2000 characters long, in the format
1033
+ # `bq://projectId.bqDatasetId`.
1034
+ # Corresponds to the JSON property `datasetUri`
1035
+ # @return [String]
1036
+ attr_accessor :dataset_uri
1037
+
1038
+ # If this flag is `TRUE`, all tables are deleted from the dataset before the new
1039
+ # exported tables are written. If the flag is not set and the destination
1040
+ # dataset contains tables, the export call returns an error.
1041
+ # Corresponds to the JSON property `force`
1042
+ # @return [Boolean]
1043
+ attr_accessor :force
1044
+ alias_method :force?, :force
1045
+
1046
+ # Configuration for the FHIR BigQuery schema. Determines how the server
1047
+ # generates the schema.
1048
+ # Corresponds to the JSON property `schemaConfig`
1049
+ # @return [Google::Apis::HealthcareV1::SchemaConfig]
1050
+ attr_accessor :schema_config
1051
+
1052
+ def initialize(**args)
1053
+ update!(**args)
1054
+ end
1055
+
1056
+ # Update properties of this object
1057
+ def update!(**args)
1058
+ @dataset_uri = args[:dataset_uri] if args.key?(:dataset_uri)
1059
+ @force = args[:force] if args.key?(:force)
1060
+ @schema_config = args[:schema_config] if args.key?(:schema_config)
1061
+ end
1062
+ end
1063
+
1064
+ # The configuration for exporting to Cloud Storage.
1065
+ class GoogleCloudHealthcareV1FhirGcsDestination
1066
+ include Google::Apis::Core::Hashable
1067
+
1068
+ # URI for a Cloud Storage directory where result files should be written, in the
1069
+ # format of `gs://`bucket-id`/`path/to/destination/dir``. If there is no
1070
+ # trailing slash, the service appends one when composing the object path. The
1071
+ # user is responsible for creating the Cloud Storage bucket referenced in `
1072
+ # uri_prefix`.
1073
+ # Corresponds to the JSON property `uriPrefix`
1074
+ # @return [String]
1075
+ attr_accessor :uri_prefix
1076
+
1077
+ def initialize(**args)
1078
+ update!(**args)
1079
+ end
1080
+
1081
+ # Update properties of this object
1082
+ def update!(**args)
1083
+ @uri_prefix = args[:uri_prefix] if args.key?(:uri_prefix)
1084
+ end
1085
+ end
1086
+
1087
+ # Specifies the configuration for importing data from Cloud Storage.
1088
+ class GoogleCloudHealthcareV1FhirGcsSource
1089
+ include Google::Apis::Core::Hashable
1090
+
1091
+ # Points to a Cloud Storage URI containing file(s) to import. The URI must be in
1092
+ # the following format: `gs://`bucket_id`/`object_id``. The URI can include
1093
+ # wildcards in `object_id` and thus identify multiple files. Supported wildcards:
1094
+ # * `*` to match 0 or more non-separator characters * `**` to match 0 or more
1095
+ # characters (including separators). Must be used at the end of a path and with
1096
+ # no other wildcards in the path. Can also be used with a file extension (such
1097
+ # as .ndjson), which imports all files with the extension in the specified
1098
+ # directory and its sub-directories. For example, `gs://my-bucket/my-directory/**
1099
+ # .ndjson` imports all files with `.ndjson` extensions in `my-directory/` and
1100
+ # its sub-directories. * `?` to match 1 character Files matching the wildcard
1101
+ # are expected to contain content only, no metadata.
1102
+ # Corresponds to the JSON property `uri`
1103
+ # @return [String]
1104
+ attr_accessor :uri
1105
+
1106
+ def initialize(**args)
1107
+ update!(**args)
1108
+ end
1109
+
1110
+ # Update properties of this object
1111
+ def update!(**args)
1112
+ @uri = args[:uri] if args.key?(:uri)
1113
+ end
1114
+ end
1115
+
1116
+ # Specifies where and whether to send notifications upon changes to a data store.
1117
+ class Hl7V2NotificationConfig
1118
+ include Google::Apis::Core::Hashable
1119
+
1120
+ # Restricts notifications sent for messages matching a filter. If this is empty,
1121
+ # all messages are matched. Syntax: https://cloud.google.com/appengine/docs/
1122
+ # standard/python/search/query_strings The following fields and functions are
1123
+ # available for filtering: * `message_type`, from the MSH-9.1 field. For example,
1124
+ # `NOT message_type = "ADT"`. * `send_date` or `sendDate`, the YYYY-MM-DD date
1125
+ # the message was sent in the dataset's time_zone, from the MSH-7 segment. For
1126
+ # example, `send_date < "2017-01-02"`. * `send_time`, the timestamp when the
1127
+ # message was sent, using the RFC3339 time format for comparisons, from the MSH-
1128
+ # 7 segment. For example, `send_time < "2017-01-02T00:00:00-05:00"`. * `
1129
+ # send_facility`, the care center that the message came from, from the MSH-4
1130
+ # segment. For example, `send_facility = "ABC"`. * `PatientId(value, type)`,
1131
+ # which matches if the message lists a patient having an ID of the given value
1132
+ # and type in the PID-2, PID-3, or PID-4 segments. For example, `PatientId("
1133
+ # 123456", "MRN")`. * `labels.x`, a string value of the label with key `x` as
1134
+ # set using the Message.labels map. For example, `labels."priority"="high"`. The
1135
+ # operator `:*` can be used to assert the existence of a label. For example, `
1136
+ # labels."priority":*`.
1137
+ # Corresponds to the JSON property `filter`
1138
+ # @return [String]
1139
+ attr_accessor :filter
1140
+
1141
+ # The [Cloud Pub/Sub](https://cloud.google.com/pubsub/docs/) topic that
1142
+ # notifications of changes are published on. Supplied by the client. The
1143
+ # notification is a `PubsubMessage` with the following fields: * `PubsubMessage.
1144
+ # Data` contains the resource name. * `PubsubMessage.MessageId` is the ID of
1145
+ # this notification. It's guaranteed to be unique within the topic. * `
1146
+ # PubsubMessage.PublishTime` is the time when the message was published. Note
1147
+ # that notifications are only sent if the topic is non-empty. [Topic names](
1148
+ # https://cloud.google.com/pubsub/docs/overview#names) must be scoped to a
1149
+ # project. The Cloud Healthcare API service account, service-PROJECT_NUMBER@gcp-
1150
+ # sa-healthcare.iam.gserviceaccount.com, must have publisher permissions on the
1151
+ # given Pub/Sub topic. Not having adequate permissions causes the calls that
1152
+ # send notifications to fail. If a notification cannot be published to Cloud Pub/
1153
+ # Sub, errors are logged to Cloud Logging. For more information, see [Viewing
1154
+ # error logs in Cloud Logging](/healthcare/docs/how-tos/logging)).
1155
+ # Corresponds to the JSON property `pubsubTopic`
1156
+ # @return [String]
1157
+ attr_accessor :pubsub_topic
1158
+
1159
+ def initialize(**args)
1160
+ update!(**args)
1161
+ end
1162
+
1163
+ # Update properties of this object
1164
+ def update!(**args)
1165
+ @filter = args[:filter] if args.key?(:filter)
1166
+ @pubsub_topic = args[:pubsub_topic] if args.key?(:pubsub_topic)
1167
+ end
1168
+ end
1169
+
1170
+ # Represents an HL7v2 store.
1171
+ class Hl7V2Store
1172
+ include Google::Apis::Core::Hashable
1173
+
1174
+ # User-supplied key-value pairs used to organize HL7v2 stores. Label keys must
1175
+ # be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128
1176
+ # bytes, and must conform to the following PCRE regular expression: \p`Ll`\p`Lo``
1177
+ # 0,62` Label values are optional, must be between 1 and 63 characters long,
1178
+ # have a UTF-8 encoding of maximum 128 bytes, and must conform to the following
1179
+ # PCRE regular expression: [\p`Ll`\p`Lo`\p`N`_-]`0,63` No more than 64 labels
1180
+ # can be associated with a given store.
1181
+ # Corresponds to the JSON property `labels`
1182
+ # @return [Hash<String,String>]
1183
+ attr_accessor :labels
1184
+
1185
+ # Resource name of the HL7v2 store, of the form `projects/`project_id`/datasets/`
1186
+ # dataset_id`/hl7V2Stores/`hl7v2_store_id``.
1187
+ # Corresponds to the JSON property `name`
1188
+ # @return [String]
1189
+ attr_accessor :name
1190
+
1191
+ # A list of notification configs. Each configuration uses a filter to determine
1192
+ # whether to publish a message (both Ingest & Create) on the corresponding
1193
+ # notification destination. Only the message name is sent as part of the
1194
+ # notification. Supplied by the client.
1195
+ # Corresponds to the JSON property `notificationConfigs`
1196
+ # @return [Array<Google::Apis::HealthcareV1::Hl7V2NotificationConfig>]
1197
+ attr_accessor :notification_configs
1198
+
1199
+ # The configuration for the parser. It determines how the server parses the
1200
+ # messages.
1201
+ # Corresponds to the JSON property `parserConfig`
1202
+ # @return [Google::Apis::HealthcareV1::ParserConfig]
1203
+ attr_accessor :parser_config
1204
+
1205
+ # Determines whether to reject duplicate messages. A duplicate message is a
1206
+ # message with the same raw bytes as a message that has already been ingested/
1207
+ # created in this HL7v2 store. The default value is false, meaning that the
1208
+ # store accepts the duplicate messages and it also returns the same ACK message
1209
+ # in the IngestMessageResponse as has been returned previously. Note that only
1210
+ # one resource is created in the store. When this field is set to true,
1211
+ # CreateMessage/IngestMessage requests with a duplicate message will be rejected
1212
+ # by the store, and IngestMessageErrorDetail returns a NACK message upon
1213
+ # rejection.
1214
+ # Corresponds to the JSON property `rejectDuplicateMessage`
1215
+ # @return [Boolean]
1216
+ attr_accessor :reject_duplicate_message
1217
+ alias_method :reject_duplicate_message?, :reject_duplicate_message
1218
+
1219
+ def initialize(**args)
1220
+ update!(**args)
1221
+ end
1222
+
1223
+ # Update properties of this object
1224
+ def update!(**args)
1225
+ @labels = args[:labels] if args.key?(:labels)
1226
+ @name = args[:name] if args.key?(:name)
1227
+ @notification_configs = args[:notification_configs] if args.key?(:notification_configs)
1228
+ @parser_config = args[:parser_config] if args.key?(:parser_config)
1229
+ @reject_duplicate_message = args[:reject_duplicate_message] if args.key?(:reject_duplicate_message)
1230
+ end
1231
+ end
1232
+
1233
+ # Message that represents an arbitrary HTTP body. It should only be used for
1234
+ # payload formats that can't be represented as JSON, such as raw binary or an
1235
+ # HTML page. This message can be used both in streaming and non-streaming API
1236
+ # methods in the request as well as the response. It can be used as a top-level
1237
+ # request field, which is convenient if one wants to extract parameters from
1238
+ # either the URL or HTTP template into the request fields and also want access
1239
+ # to the raw HTTP body. Example: message GetResourceRequest ` // A unique
1240
+ # request id. string request_id = 1; // The raw HTTP body is bound to this field.
1241
+ # google.api.HttpBody http_body = 2; ` service ResourceService ` rpc
1242
+ # GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc
1243
+ # UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); ` Example
1244
+ # with streaming methods: service CaldavService ` rpc GetCalendar(stream google.
1245
+ # api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream
1246
+ # google.api.HttpBody) returns (stream google.api.HttpBody); ` Use of this type
1247
+ # only changes how the request and response bodies are handled, all other
1248
+ # features will continue to work unchanged.
1249
+ class HttpBody
1250
+ include Google::Apis::Core::Hashable
1251
+
1252
+ # The HTTP Content-Type header value specifying the content type of the body.
1253
+ # Corresponds to the JSON property `contentType`
1254
+ # @return [String]
1255
+ attr_accessor :content_type
1256
+
1257
+ # The HTTP request/response body as raw binary.
1258
+ # Corresponds to the JSON property `data`
1259
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1260
+ # @return [String]
1261
+ attr_accessor :data
1262
+
1263
+ # Application specific response metadata. Must be set in the first response for
1264
+ # streaming APIs.
1265
+ # Corresponds to the JSON property `extensions`
1266
+ # @return [Array<Hash<String,Object>>]
1267
+ attr_accessor :extensions
1268
+
1269
+ def initialize(**args)
1270
+ update!(**args)
1271
+ end
1272
+
1273
+ # Update properties of this object
1274
+ def update!(**args)
1275
+ @content_type = args[:content_type] if args.key?(:content_type)
1276
+ @data = args[:data] if args.key?(:data)
1277
+ @extensions = args[:extensions] if args.key?(:extensions)
1278
+ end
1279
+ end
1280
+
1281
+ # Specifies how to handle de-identification of image pixels.
1282
+ class ImageConfig
1283
+ include Google::Apis::Core::Hashable
1284
+
1285
+ # Determines how to redact text from image.
1286
+ # Corresponds to the JSON property `textRedactionMode`
1287
+ # @return [String]
1288
+ attr_accessor :text_redaction_mode
1289
+
1290
+ def initialize(**args)
1291
+ update!(**args)
1292
+ end
1293
+
1294
+ # Update properties of this object
1295
+ def update!(**args)
1296
+ @text_redaction_mode = args[:text_redaction_mode] if args.key?(:text_redaction_mode)
1297
+ end
1298
+ end
1299
+
1300
+ # Imports data into the specified DICOM store. Returns an error if any of the
1301
+ # files to import are not DICOM files. This API accepts duplicate DICOM
1302
+ # instances by ignoring the newly-pushed instance. It does not overwrite.
1303
+ class ImportDicomDataRequest
1304
+ include Google::Apis::Core::Hashable
1305
+
1306
+ # Specifies the configuration for importing data from Cloud Storage.
1307
+ # Corresponds to the JSON property `gcsSource`
1308
+ # @return [Google::Apis::HealthcareV1::GoogleCloudHealthcareV1DicomGcsSource]
1309
+ attr_accessor :gcs_source
1310
+
1311
+ def initialize(**args)
1312
+ update!(**args)
1313
+ end
1314
+
1315
+ # Update properties of this object
1316
+ def update!(**args)
1317
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
1318
+ end
1319
+ end
1320
+
1321
+ # Returns additional information in regards to a completed DICOM store import.
1322
+ class ImportDicomDataResponse
1323
+ include Google::Apis::Core::Hashable
1324
+
1325
+ def initialize(**args)
1326
+ update!(**args)
1327
+ end
1328
+
1329
+ # Update properties of this object
1330
+ def update!(**args)
1331
+ end
1332
+ end
1333
+
1334
+ # Request to import resources.
1335
+ class ImportResourcesRequest
1336
+ include Google::Apis::Core::Hashable
1337
+
1338
+ # The content structure in the source location. If not specified, the server
1339
+ # treats the input source files as BUNDLE.
1340
+ # Corresponds to the JSON property `contentStructure`
1341
+ # @return [String]
1342
+ attr_accessor :content_structure
1343
+
1344
+ # Specifies the configuration for importing data from Cloud Storage.
1345
+ # Corresponds to the JSON property `gcsSource`
1346
+ # @return [Google::Apis::HealthcareV1::GoogleCloudHealthcareV1FhirGcsSource]
1347
+ attr_accessor :gcs_source
1348
+
1349
+ def initialize(**args)
1350
+ update!(**args)
1351
+ end
1352
+
1353
+ # Update properties of this object
1354
+ def update!(**args)
1355
+ @content_structure = args[:content_structure] if args.key?(:content_structure)
1356
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
1357
+ end
1358
+ end
1359
+
1360
+ # Final response of importing resources. This structure is included in the
1361
+ # response to describe the detailed outcome after the operation finishes
1362
+ # successfully.
1363
+ class ImportResourcesResponse
1364
+ include Google::Apis::Core::Hashable
1365
+
1366
+ def initialize(**args)
1367
+ update!(**args)
1368
+ end
1369
+
1370
+ # Update properties of this object
1371
+ def update!(**args)
1372
+ end
1373
+ end
1374
+
1375
+ # A transformation to apply to text that is identified as a specific info_type.
1376
+ class InfoTypeTransformation
1377
+ include Google::Apis::Core::Hashable
1378
+
1379
+ # Mask a string by replacing its characters with a fixed character.
1380
+ # Corresponds to the JSON property `characterMaskConfig`
1381
+ # @return [Google::Apis::HealthcareV1::CharacterMaskConfig]
1382
+ attr_accessor :character_mask_config
1383
+
1384
+ # Pseudonymization method that generates surrogates via cryptographic hashing.
1385
+ # Uses SHA-256. Outputs a base64-encoded representation of the hashed output (
1386
+ # for example, `L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=`).
1387
+ # Corresponds to the JSON property `cryptoHashConfig`
1388
+ # @return [Google::Apis::HealthcareV1::CryptoHashConfig]
1389
+ attr_accessor :crypto_hash_config
1390
+
1391
+ # Shift a date forward or backward in time by a random amount which is
1392
+ # consistent for a given patient and crypto key combination.
1393
+ # Corresponds to the JSON property `dateShiftConfig`
1394
+ # @return [Google::Apis::HealthcareV1::DateShiftConfig]
1395
+ attr_accessor :date_shift_config
1396
+
1397
+ # InfoTypes to apply this transformation to. If this is not specified, the
1398
+ # transformation applies to any info_type.
1399
+ # Corresponds to the JSON property `infoTypes`
1400
+ # @return [Array<String>]
1401
+ attr_accessor :info_types
1402
+
1403
+ # Define how to redact sensitive values. Default behaviour is erase. For example,
1404
+ # "My name is Jane." becomes "My name is ."
1405
+ # Corresponds to the JSON property `redactConfig`
1406
+ # @return [Google::Apis::HealthcareV1::RedactConfig]
1407
+ attr_accessor :redact_config
1408
+
1409
+ # When using the INSPECT_AND_TRANSFORM action, each match is replaced with the
1410
+ # name of the info_type. For example, "My name is Jane" becomes "My name is [
1411
+ # PERSON_NAME]." The TRANSFORM action is equivalent to redacting.
1412
+ # Corresponds to the JSON property `replaceWithInfoTypeConfig`
1413
+ # @return [Google::Apis::HealthcareV1::ReplaceWithInfoTypeConfig]
1414
+ attr_accessor :replace_with_info_type_config
1415
+
1416
+ def initialize(**args)
1417
+ update!(**args)
1418
+ end
1419
+
1420
+ # Update properties of this object
1421
+ def update!(**args)
1422
+ @character_mask_config = args[:character_mask_config] if args.key?(:character_mask_config)
1423
+ @crypto_hash_config = args[:crypto_hash_config] if args.key?(:crypto_hash_config)
1424
+ @date_shift_config = args[:date_shift_config] if args.key?(:date_shift_config)
1425
+ @info_types = args[:info_types] if args.key?(:info_types)
1426
+ @redact_config = args[:redact_config] if args.key?(:redact_config)
1427
+ @replace_with_info_type_config = args[:replace_with_info_type_config] if args.key?(:replace_with_info_type_config)
1428
+ end
1429
+ end
1430
+
1431
+ # Ingests a message into the specified HL7v2 store.
1432
+ class IngestMessageRequest
1433
+ include Google::Apis::Core::Hashable
1434
+
1435
+ # A complete HL7v2 message. See [Introduction to HL7 Standards] (https://www.hl7.
1436
+ # org/implement/standards/index.cfm?ref=common) for details on the standard.
1437
+ # Corresponds to the JSON property `message`
1438
+ # @return [Google::Apis::HealthcareV1::Message]
1439
+ attr_accessor :message
1440
+
1441
+ def initialize(**args)
1442
+ update!(**args)
1443
+ end
1444
+
1445
+ # Update properties of this object
1446
+ def update!(**args)
1447
+ @message = args[:message] if args.key?(:message)
1448
+ end
1449
+ end
1450
+
1451
+ # Acknowledges that a message has been ingested into the specified HL7v2 store.
1452
+ class IngestMessageResponse
1453
+ include Google::Apis::Core::Hashable
1454
+
1455
+ # HL7v2 ACK message.
1456
+ # Corresponds to the JSON property `hl7Ack`
1457
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1458
+ # @return [String]
1459
+ attr_accessor :hl7_ack
1460
+
1461
+ # A complete HL7v2 message. See [Introduction to HL7 Standards] (https://www.hl7.
1462
+ # org/implement/standards/index.cfm?ref=common) for details on the standard.
1463
+ # Corresponds to the JSON property `message`
1464
+ # @return [Google::Apis::HealthcareV1::Message]
1465
+ attr_accessor :message
1466
+
1467
+ def initialize(**args)
1468
+ update!(**args)
1469
+ end
1470
+
1471
+ # Update properties of this object
1472
+ def update!(**args)
1473
+ @hl7_ack = args[:hl7_ack] if args.key?(:hl7_ack)
1474
+ @message = args[:message] if args.key?(:message)
1475
+ end
1476
+ end
1477
+
1478
+ # Lists the available datasets.
1479
+ class ListDatasetsResponse
1480
+ include Google::Apis::Core::Hashable
1481
+
1482
+ # The first page of datasets.
1483
+ # Corresponds to the JSON property `datasets`
1484
+ # @return [Array<Google::Apis::HealthcareV1::Dataset>]
1485
+ attr_accessor :datasets
1486
+
1487
+ # Token to retrieve the next page of results, or empty if there are no more
1488
+ # results in the list.
1489
+ # Corresponds to the JSON property `nextPageToken`
1490
+ # @return [String]
1491
+ attr_accessor :next_page_token
1492
+
1493
+ def initialize(**args)
1494
+ update!(**args)
1495
+ end
1496
+
1497
+ # Update properties of this object
1498
+ def update!(**args)
1499
+ @datasets = args[:datasets] if args.key?(:datasets)
1500
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1501
+ end
1502
+ end
1503
+
1504
+ # Lists the DICOM stores in the given dataset.
1505
+ class ListDicomStoresResponse
1506
+ include Google::Apis::Core::Hashable
1507
+
1508
+ # The returned DICOM stores. Won't be more DICOM stores than the value of
1509
+ # page_size in the request.
1510
+ # Corresponds to the JSON property `dicomStores`
1511
+ # @return [Array<Google::Apis::HealthcareV1::DicomStore>]
1512
+ attr_accessor :dicom_stores
1513
+
1514
+ # Token to retrieve the next page of results or empty if there are no more
1515
+ # results in the list.
1516
+ # Corresponds to the JSON property `nextPageToken`
1517
+ # @return [String]
1518
+ attr_accessor :next_page_token
1519
+
1520
+ def initialize(**args)
1521
+ update!(**args)
1522
+ end
1523
+
1524
+ # Update properties of this object
1525
+ def update!(**args)
1526
+ @dicom_stores = args[:dicom_stores] if args.key?(:dicom_stores)
1527
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1528
+ end
1529
+ end
1530
+
1531
+ # Lists the FHIR stores in the given dataset.
1532
+ class ListFhirStoresResponse
1533
+ include Google::Apis::Core::Hashable
1534
+
1535
+ # The returned FHIR stores. Won't be more FHIR stores than the value of
1536
+ # page_size in the request.
1537
+ # Corresponds to the JSON property `fhirStores`
1538
+ # @return [Array<Google::Apis::HealthcareV1::FhirStore>]
1539
+ attr_accessor :fhir_stores
1540
+
1541
+ # Token to retrieve the next page of results or empty if there are no more
1542
+ # results in the list.
1543
+ # Corresponds to the JSON property `nextPageToken`
1544
+ # @return [String]
1545
+ attr_accessor :next_page_token
1546
+
1547
+ def initialize(**args)
1548
+ update!(**args)
1549
+ end
1550
+
1551
+ # Update properties of this object
1552
+ def update!(**args)
1553
+ @fhir_stores = args[:fhir_stores] if args.key?(:fhir_stores)
1554
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1555
+ end
1556
+ end
1557
+
1558
+ # Lists the HL7v2 stores in the given dataset.
1559
+ class ListHl7V2StoresResponse
1560
+ include Google::Apis::Core::Hashable
1561
+
1562
+ # The returned HL7v2 stores. Won't be more HL7v2 stores than the value of
1563
+ # page_size in the request.
1564
+ # Corresponds to the JSON property `hl7V2Stores`
1565
+ # @return [Array<Google::Apis::HealthcareV1::Hl7V2Store>]
1566
+ attr_accessor :hl7_v2_stores
1567
+
1568
+ # Token to retrieve the next page of results or empty if there are no more
1569
+ # results in the list.
1570
+ # Corresponds to the JSON property `nextPageToken`
1571
+ # @return [String]
1572
+ attr_accessor :next_page_token
1573
+
1574
+ def initialize(**args)
1575
+ update!(**args)
1576
+ end
1577
+
1578
+ # Update properties of this object
1579
+ def update!(**args)
1580
+ @hl7_v2_stores = args[:hl7_v2_stores] if args.key?(:hl7_v2_stores)
1581
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1582
+ end
1583
+ end
1584
+
1585
+ # The response message for Locations.ListLocations.
1586
+ class ListLocationsResponse
1587
+ include Google::Apis::Core::Hashable
1588
+
1589
+ # A list of locations that matches the specified filter in the request.
1590
+ # Corresponds to the JSON property `locations`
1591
+ # @return [Array<Google::Apis::HealthcareV1::Location>]
1592
+ attr_accessor :locations
1593
+
1594
+ # The standard List next-page token.
1595
+ # Corresponds to the JSON property `nextPageToken`
1596
+ # @return [String]
1597
+ attr_accessor :next_page_token
1598
+
1599
+ def initialize(**args)
1600
+ update!(**args)
1601
+ end
1602
+
1603
+ # Update properties of this object
1604
+ def update!(**args)
1605
+ @locations = args[:locations] if args.key?(:locations)
1606
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1607
+ end
1608
+ end
1609
+
1610
+ # Lists the messages in the specified HL7v2 store.
1611
+ class ListMessagesResponse
1612
+ include Google::Apis::Core::Hashable
1613
+
1614
+ # The returned Messages. Won't be more Messages than the value of page_size in
1615
+ # the request. See view for populated fields.
1616
+ # Corresponds to the JSON property `hl7V2Messages`
1617
+ # @return [Array<Google::Apis::HealthcareV1::Message>]
1618
+ attr_accessor :hl7_v2_messages
1619
+
1620
+ # Token to retrieve the next page of results or empty if there are no more
1621
+ # results in the list.
1622
+ # Corresponds to the JSON property `nextPageToken`
1623
+ # @return [String]
1624
+ attr_accessor :next_page_token
1625
+
1626
+ def initialize(**args)
1627
+ update!(**args)
1628
+ end
1629
+
1630
+ # Update properties of this object
1631
+ def update!(**args)
1632
+ @hl7_v2_messages = args[:hl7_v2_messages] if args.key?(:hl7_v2_messages)
1633
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1634
+ end
1635
+ end
1636
+
1637
+ # The response message for Operations.ListOperations.
1638
+ class ListOperationsResponse
1639
+ include Google::Apis::Core::Hashable
1640
+
1641
+ # The standard List next-page token.
1642
+ # Corresponds to the JSON property `nextPageToken`
1643
+ # @return [String]
1644
+ attr_accessor :next_page_token
1645
+
1646
+ # A list of operations that matches the specified filter in the request.
1647
+ # Corresponds to the JSON property `operations`
1648
+ # @return [Array<Google::Apis::HealthcareV1::Operation>]
1649
+ attr_accessor :operations
1650
+
1651
+ def initialize(**args)
1652
+ update!(**args)
1653
+ end
1654
+
1655
+ # Update properties of this object
1656
+ def update!(**args)
1657
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1658
+ @operations = args[:operations] if args.key?(:operations)
1659
+ end
1660
+ end
1661
+
1662
+ # A resource that represents Google Cloud Platform location.
1663
+ class Location
1664
+ include Google::Apis::Core::Hashable
1665
+
1666
+ # The friendly name for this location, typically a nearby city name. For example,
1667
+ # "Tokyo".
1668
+ # Corresponds to the JSON property `displayName`
1669
+ # @return [String]
1670
+ attr_accessor :display_name
1671
+
1672
+ # Cross-service attributes for the location. For example `"cloud.googleapis.com/
1673
+ # region": "us-east1"`
1674
+ # Corresponds to the JSON property `labels`
1675
+ # @return [Hash<String,String>]
1676
+ attr_accessor :labels
1677
+
1678
+ # The canonical id for this location. For example: `"us-east1"`.
1679
+ # Corresponds to the JSON property `locationId`
1680
+ # @return [String]
1681
+ attr_accessor :location_id
1682
+
1683
+ # Service-specific metadata. For example the available capacity at the given
1684
+ # location.
1685
+ # Corresponds to the JSON property `metadata`
1686
+ # @return [Hash<String,Object>]
1687
+ attr_accessor :metadata
1688
+
1689
+ # Resource name for the location, which may vary between implementations. For
1690
+ # example: `"projects/example-project/locations/us-east1"`
1691
+ # Corresponds to the JSON property `name`
1692
+ # @return [String]
1693
+ attr_accessor :name
1694
+
1695
+ def initialize(**args)
1696
+ update!(**args)
1697
+ end
1698
+
1699
+ # Update properties of this object
1700
+ def update!(**args)
1701
+ @display_name = args[:display_name] if args.key?(:display_name)
1702
+ @labels = args[:labels] if args.key?(:labels)
1703
+ @location_id = args[:location_id] if args.key?(:location_id)
1704
+ @metadata = args[:metadata] if args.key?(:metadata)
1705
+ @name = args[:name] if args.key?(:name)
1706
+ end
1707
+ end
1708
+
1709
+ # A complete HL7v2 message. See [Introduction to HL7 Standards] (https://www.hl7.
1710
+ # org/implement/standards/index.cfm?ref=common) for details on the standard.
1711
+ class Message
1712
+ include Google::Apis::Core::Hashable
1713
+
1714
+ # Output only. The datetime when the message was created. Set by the server.
1715
+ # Corresponds to the JSON property `createTime`
1716
+ # @return [String]
1717
+ attr_accessor :create_time
1718
+
1719
+ # Raw message bytes.
1720
+ # Corresponds to the JSON property `data`
1721
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1722
+ # @return [String]
1723
+ attr_accessor :data
1724
+
1725
+ # User-supplied key-value pairs used to organize HL7v2 stores. Label keys must
1726
+ # be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128
1727
+ # bytes, and must conform to the following PCRE regular expression: \p`Ll`\p`Lo``
1728
+ # 0,62` Label values are optional, must be between 1 and 63 characters long,
1729
+ # have a UTF-8 encoding of maximum 128 bytes, and must conform to the following
1730
+ # PCRE regular expression: [\p`Ll`\p`Lo`\p`N`_-]`0,63` No more than 64 labels
1731
+ # can be associated with a given store.
1732
+ # Corresponds to the JSON property `labels`
1733
+ # @return [Hash<String,String>]
1734
+ attr_accessor :labels
1735
+
1736
+ # The message type for this message. MSH-9.1.
1737
+ # Corresponds to the JSON property `messageType`
1738
+ # @return [String]
1739
+ attr_accessor :message_type
1740
+
1741
+ # Resource name of the Message, of the form `projects/`project_id`/datasets/`
1742
+ # dataset_id`/hl7V2Stores/`hl7_v2_store_id`/messages/`message_id``. Assigned by
1743
+ # the server.
1744
+ # Corresponds to the JSON property `name`
1745
+ # @return [String]
1746
+ attr_accessor :name
1747
+
1748
+ # The content of a HL7v2 message in a structured format.
1749
+ # Corresponds to the JSON property `parsedData`
1750
+ # @return [Google::Apis::HealthcareV1::ParsedData]
1751
+ attr_accessor :parsed_data
1752
+
1753
+ # All patient IDs listed in the PID-2, PID-3, and PID-4 segments of this message.
1754
+ # Corresponds to the JSON property `patientIds`
1755
+ # @return [Array<Google::Apis::HealthcareV1::PatientId>]
1756
+ attr_accessor :patient_ids
1757
+
1758
+ # The hospital that this message came from. MSH-4.
1759
+ # Corresponds to the JSON property `sendFacility`
1760
+ # @return [String]
1761
+ attr_accessor :send_facility
1762
+
1763
+ # The datetime the sending application sent this message. MSH-7.
1764
+ # Corresponds to the JSON property `sendTime`
1765
+ # @return [String]
1766
+ attr_accessor :send_time
1767
+
1768
+ def initialize(**args)
1769
+ update!(**args)
1770
+ end
1771
+
1772
+ # Update properties of this object
1773
+ def update!(**args)
1774
+ @create_time = args[:create_time] if args.key?(:create_time)
1775
+ @data = args[:data] if args.key?(:data)
1776
+ @labels = args[:labels] if args.key?(:labels)
1777
+ @message_type = args[:message_type] if args.key?(:message_type)
1778
+ @name = args[:name] if args.key?(:name)
1779
+ @parsed_data = args[:parsed_data] if args.key?(:parsed_data)
1780
+ @patient_ids = args[:patient_ids] if args.key?(:patient_ids)
1781
+ @send_facility = args[:send_facility] if args.key?(:send_facility)
1782
+ @send_time = args[:send_time] if args.key?(:send_time)
1783
+ end
1784
+ end
1785
+
1786
+ # Specifies where to send notifications upon changes to a data store.
1787
+ class NotificationConfig
1788
+ include Google::Apis::Core::Hashable
1789
+
1790
+ # The [Cloud Pub/Sub](https://cloud.google.com/pubsub/docs/) topic that
1791
+ # notifications of changes are published on. Supplied by the client.
1792
+ # PubsubMessage.Data contains the resource name. PubsubMessage.MessageId is the
1793
+ # ID of this message. It is guaranteed to be unique within the topic.
1794
+ # PubsubMessage.PublishTime is the time at which the message was published.
1795
+ # Notifications are only sent if the topic is non-empty. [Topic names](https://
1796
+ # cloud.google.com/pubsub/docs/overview#names) must be scoped to a project.
1797
+ # Cloud Healthcare API service account must have publisher permissions on the
1798
+ # given Cloud Pub/Sub topic. Not having adequate permissions causes the calls
1799
+ # that send notifications to fail. If a notification can't be published to Cloud
1800
+ # Pub/Sub, errors are logged to Cloud Logging (see [Viewing logs](/healthcare/
1801
+ # docs/how-tos/logging)). If the number of errors exceeds a certain rate, some
1802
+ # aren't submitted. Note that not all operations trigger notifications, see [
1803
+ # Configuring Pub/Sub notifications](https://cloud.google.com/healthcare/docs/
1804
+ # how-tos/pubsub) for specific details.
1805
+ # Corresponds to the JSON property `pubsubTopic`
1806
+ # @return [String]
1807
+ attr_accessor :pubsub_topic
1808
+
1809
+ def initialize(**args)
1810
+ update!(**args)
1811
+ end
1812
+
1813
+ # Update properties of this object
1814
+ def update!(**args)
1815
+ @pubsub_topic = args[:pubsub_topic] if args.key?(:pubsub_topic)
1816
+ end
1817
+ end
1818
+
1819
+ # This resource represents a long-running operation that is the result of a
1820
+ # network API call.
1821
+ class Operation
1822
+ include Google::Apis::Core::Hashable
1823
+
1824
+ # If the value is `false`, it means the operation is still in progress. If `true`
1825
+ # , the operation is completed, and either `error` or `response` is available.
1826
+ # Corresponds to the JSON property `done`
1827
+ # @return [Boolean]
1828
+ attr_accessor :done
1829
+ alias_method :done?, :done
1830
+
1831
+ # The `Status` type defines a logical error model that is suitable for different
1832
+ # programming environments, including REST APIs and RPC APIs. It is used by [
1833
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
1834
+ # data: error code, error message, and error details. You can find out more
1835
+ # about this error model and how to work with it in the [API Design Guide](https:
1836
+ # //cloud.google.com/apis/design/errors).
1837
+ # Corresponds to the JSON property `error`
1838
+ # @return [Google::Apis::HealthcareV1::Status]
1839
+ attr_accessor :error
1840
+
1841
+ # Service-specific metadata associated with the operation. It typically contains
1842
+ # progress information and common metadata such as create time. Some services
1843
+ # might not provide such metadata. Any method that returns a long-running
1844
+ # operation should document the metadata type, if any.
1845
+ # Corresponds to the JSON property `metadata`
1846
+ # @return [Hash<String,Object>]
1847
+ attr_accessor :metadata
1848
+
1849
+ # The server-assigned name, which is only unique within the same service that
1850
+ # originally returns it. If you use the default HTTP mapping, the `name` should
1851
+ # be a resource name ending with `operations/`unique_id``.
1852
+ # Corresponds to the JSON property `name`
1853
+ # @return [String]
1854
+ attr_accessor :name
1855
+
1856
+ # The normal response of the operation in case of success. If the original
1857
+ # method returns no data on success, such as `Delete`, the response is `google.
1858
+ # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
1859
+ # the response should be the resource. For other methods, the response should
1860
+ # have the type `XxxResponse`, where `Xxx` is the original method name. For
1861
+ # example, if the original method name is `TakeSnapshot()`, the inferred
1862
+ # response type is `TakeSnapshotResponse`.
1863
+ # Corresponds to the JSON property `response`
1864
+ # @return [Hash<String,Object>]
1865
+ attr_accessor :response
1866
+
1867
+ def initialize(**args)
1868
+ update!(**args)
1869
+ end
1870
+
1871
+ # Update properties of this object
1872
+ def update!(**args)
1873
+ @done = args[:done] if args.key?(:done)
1874
+ @error = args[:error] if args.key?(:error)
1875
+ @metadata = args[:metadata] if args.key?(:metadata)
1876
+ @name = args[:name] if args.key?(:name)
1877
+ @response = args[:response] if args.key?(:response)
1878
+ end
1879
+ end
1880
+
1881
+ # OperationMetadata provides information about the operation execution. Returned
1882
+ # in the long-running operation's metadata field.
1883
+ class OperationMetadata
1884
+ include Google::Apis::Core::Hashable
1885
+
1886
+ # The name of the API method that initiated the operation.
1887
+ # Corresponds to the JSON property `apiMethodName`
1888
+ # @return [String]
1889
+ attr_accessor :api_method_name
1890
+
1891
+ # Specifies if cancellation was requested for the operation.
1892
+ # Corresponds to the JSON property `cancelRequested`
1893
+ # @return [Boolean]
1894
+ attr_accessor :cancel_requested
1895
+ alias_method :cancel_requested?, :cancel_requested
1896
+
1897
+ # ProgressCounter provides counters to describe an operation's progress.
1898
+ # Corresponds to the JSON property `counter`
1899
+ # @return [Google::Apis::HealthcareV1::ProgressCounter]
1900
+ attr_accessor :counter
1901
+
1902
+ # The time at which the operation was created by the API.
1903
+ # Corresponds to the JSON property `createTime`
1904
+ # @return [String]
1905
+ attr_accessor :create_time
1906
+
1907
+ # The time at which execution was completed.
1908
+ # Corresponds to the JSON property `endTime`
1909
+ # @return [String]
1910
+ attr_accessor :end_time
1911
+
1912
+ # A link to audit and error logs in the log viewer. Error logs are generated
1913
+ # only by some operations, listed at [Viewing logs](/healthcare/docs/how-tos/
1914
+ # logging).
1915
+ # Corresponds to the JSON property `logsUrl`
1916
+ # @return [String]
1917
+ attr_accessor :logs_url
1918
+
1919
+ def initialize(**args)
1920
+ update!(**args)
1921
+ end
1922
+
1923
+ # Update properties of this object
1924
+ def update!(**args)
1925
+ @api_method_name = args[:api_method_name] if args.key?(:api_method_name)
1926
+ @cancel_requested = args[:cancel_requested] if args.key?(:cancel_requested)
1927
+ @counter = args[:counter] if args.key?(:counter)
1928
+ @create_time = args[:create_time] if args.key?(:create_time)
1929
+ @end_time = args[:end_time] if args.key?(:end_time)
1930
+ @logs_url = args[:logs_url] if args.key?(:logs_url)
1931
+ end
1932
+ end
1933
+
1934
+ # The content of a HL7v2 message in a structured format.
1935
+ class ParsedData
1936
+ include Google::Apis::Core::Hashable
1937
+
1938
+ #
1939
+ # Corresponds to the JSON property `segments`
1940
+ # @return [Array<Google::Apis::HealthcareV1::Segment>]
1941
+ attr_accessor :segments
1942
+
1943
+ def initialize(**args)
1944
+ update!(**args)
1945
+ end
1946
+
1947
+ # Update properties of this object
1948
+ def update!(**args)
1949
+ @segments = args[:segments] if args.key?(:segments)
1950
+ end
1951
+ end
1952
+
1953
+ # The configuration for the parser. It determines how the server parses the
1954
+ # messages.
1955
+ class ParserConfig
1956
+ include Google::Apis::Core::Hashable
1957
+
1958
+ # Determines whether messages with no header are allowed.
1959
+ # Corresponds to the JSON property `allowNullHeader`
1960
+ # @return [Boolean]
1961
+ attr_accessor :allow_null_header
1962
+ alias_method :allow_null_header?, :allow_null_header
1963
+
1964
+ # Byte(s) to use as the segment terminator. If this is unset, '\r' is used as
1965
+ # segment terminator.
1966
+ # Corresponds to the JSON property `segmentTerminator`
1967
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1968
+ # @return [String]
1969
+ attr_accessor :segment_terminator
1970
+
1971
+ def initialize(**args)
1972
+ update!(**args)
1973
+ end
1974
+
1975
+ # Update properties of this object
1976
+ def update!(**args)
1977
+ @allow_null_header = args[:allow_null_header] if args.key?(:allow_null_header)
1978
+ @segment_terminator = args[:segment_terminator] if args.key?(:segment_terminator)
1979
+ end
1980
+ end
1981
+
1982
+ # A patient identifier and associated type.
1983
+ class PatientId
1984
+ include Google::Apis::Core::Hashable
1985
+
1986
+ # ID type. For example, MRN or NHS.
1987
+ # Corresponds to the JSON property `type`
1988
+ # @return [String]
1989
+ attr_accessor :type
1990
+
1991
+ # The patient's unique identifier.
1992
+ # Corresponds to the JSON property `value`
1993
+ # @return [String]
1994
+ attr_accessor :value
1995
+
1996
+ def initialize(**args)
1997
+ update!(**args)
1998
+ end
1999
+
2000
+ # Update properties of this object
2001
+ def update!(**args)
2002
+ @type = args[:type] if args.key?(:type)
2003
+ @value = args[:value] if args.key?(:value)
2004
+ end
2005
+ end
2006
+
2007
+ # An Identity and Access Management (IAM) policy, which specifies access
2008
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
2009
+ # A `binding` binds one or more `members` to a single `role`. Members can be
2010
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
2011
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
2012
+ # role or a user-created custom role. For some types of Google Cloud resources,
2013
+ # a `binding` can also specify a `condition`, which is a logical expression that
2014
+ # allows access to a resource only if the expression evaluates to `true`. A
2015
+ # condition can add constraints based on attributes of the request, the resource,
2016
+ # or both. To learn which resources support conditions in their IAM policies,
2017
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
2018
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
2019
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
2020
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
2021
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
2022
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
2023
+ # title": "expirable access", "description": "Does not grant access after Sep
2024
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
2025
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
2026
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
2027
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
2028
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
2029
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
2030
+ # description: Does not grant access after Sep 2020 expression: request.time <
2031
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
2032
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
2033
+ # google.com/iam/docs/).
2034
+ class Policy
2035
+ include Google::Apis::Core::Hashable
2036
+
2037
+ # Specifies cloud audit logging configuration for this policy.
2038
+ # Corresponds to the JSON property `auditConfigs`
2039
+ # @return [Array<Google::Apis::HealthcareV1::AuditConfig>]
2040
+ attr_accessor :audit_configs
2041
+
2042
+ # Associates a list of `members` to a `role`. Optionally, may specify a `
2043
+ # condition` that determines how and when the `bindings` are applied. Each of
2044
+ # the `bindings` must contain at least one member.
2045
+ # Corresponds to the JSON property `bindings`
2046
+ # @return [Array<Google::Apis::HealthcareV1::Binding>]
2047
+ attr_accessor :bindings
2048
+
2049
+ # `etag` is used for optimistic concurrency control as a way to help prevent
2050
+ # simultaneous updates of a policy from overwriting each other. It is strongly
2051
+ # suggested that systems make use of the `etag` in the read-modify-write cycle
2052
+ # to perform policy updates in order to avoid race conditions: An `etag` is
2053
+ # returned in the response to `getIamPolicy`, and systems are expected to put
2054
+ # that etag in the request to `setIamPolicy` to ensure that their change will be
2055
+ # applied to the same version of the policy. **Important:** If you use IAM
2056
+ # Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
2057
+ # If you omit this field, then IAM allows you to overwrite a version `3` policy
2058
+ # with a version `1` policy, and all of the conditions in the version `3` policy
2059
+ # are lost.
2060
+ # Corresponds to the JSON property `etag`
2061
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
2062
+ # @return [String]
2063
+ attr_accessor :etag
2064
+
2065
+ # Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
2066
+ # Requests that specify an invalid value are rejected. Any operation that
2067
+ # affects conditional role bindings must specify version `3`. This requirement
2068
+ # applies to the following operations: * Getting a policy that includes a
2069
+ # conditional role binding * Adding a conditional role binding to a policy *
2070
+ # Changing a conditional role binding in a policy * Removing any role binding,
2071
+ # with or without a condition, from a policy that includes conditions **
2072
+ # Important:** If you use IAM Conditions, you must include the `etag` field
2073
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
2074
+ # to overwrite a version `3` policy with a version `1` policy, and all of the
2075
+ # conditions in the version `3` policy are lost. If a policy does not include
2076
+ # any conditions, operations on that policy may specify any valid version or
2077
+ # leave the field unset. To learn which resources support conditions in their
2078
+ # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
2079
+ # conditions/resource-policies).
2080
+ # Corresponds to the JSON property `version`
2081
+ # @return [Fixnum]
2082
+ attr_accessor :version
2083
+
2084
+ def initialize(**args)
2085
+ update!(**args)
2086
+ end
2087
+
2088
+ # Update properties of this object
2089
+ def update!(**args)
2090
+ @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
2091
+ @bindings = args[:bindings] if args.key?(:bindings)
2092
+ @etag = args[:etag] if args.key?(:etag)
2093
+ @version = args[:version] if args.key?(:version)
2094
+ end
2095
+ end
2096
+
2097
+ # ProgressCounter provides counters to describe an operation's progress.
2098
+ class ProgressCounter
2099
+ include Google::Apis::Core::Hashable
2100
+
2101
+ # The number of units that failed in the operation.
2102
+ # Corresponds to the JSON property `failure`
2103
+ # @return [Fixnum]
2104
+ attr_accessor :failure
2105
+
2106
+ # The number of units that are pending in the operation.
2107
+ # Corresponds to the JSON property `pending`
2108
+ # @return [Fixnum]
2109
+ attr_accessor :pending
2110
+
2111
+ # The number of units that succeeded in the operation.
2112
+ # Corresponds to the JSON property `success`
2113
+ # @return [Fixnum]
2114
+ attr_accessor :success
2115
+
2116
+ def initialize(**args)
2117
+ update!(**args)
2118
+ end
2119
+
2120
+ # Update properties of this object
2121
+ def update!(**args)
2122
+ @failure = args[:failure] if args.key?(:failure)
2123
+ @pending = args[:pending] if args.key?(:pending)
2124
+ @success = args[:success] if args.key?(:success)
2125
+ end
2126
+ end
2127
+
2128
+ # Define how to redact sensitive values. Default behaviour is erase. For example,
2129
+ # "My name is Jane." becomes "My name is ."
2130
+ class RedactConfig
2131
+ include Google::Apis::Core::Hashable
2132
+
2133
+ def initialize(**args)
2134
+ update!(**args)
2135
+ end
2136
+
2137
+ # Update properties of this object
2138
+ def update!(**args)
2139
+ end
2140
+ end
2141
+
2142
+ # When using the INSPECT_AND_TRANSFORM action, each match is replaced with the
2143
+ # name of the info_type. For example, "My name is Jane" becomes "My name is [
2144
+ # PERSON_NAME]." The TRANSFORM action is equivalent to redacting.
2145
+ class ReplaceWithInfoTypeConfig
2146
+ include Google::Apis::Core::Hashable
2147
+
2148
+ def initialize(**args)
2149
+ update!(**args)
2150
+ end
2151
+
2152
+ # Update properties of this object
2153
+ def update!(**args)
2154
+ end
2155
+ end
2156
+
2157
+ # A list of FHIR resources.
2158
+ class Resources
2159
+ include Google::Apis::Core::Hashable
2160
+
2161
+ # List of resources IDs. For example, "Patient/1234".
2162
+ # Corresponds to the JSON property `resources`
2163
+ # @return [Array<String>]
2164
+ attr_accessor :resources
2165
+
2166
+ def initialize(**args)
2167
+ update!(**args)
2168
+ end
2169
+
2170
+ # Update properties of this object
2171
+ def update!(**args)
2172
+ @resources = args[:resources] if args.key?(:resources)
2173
+ end
2174
+ end
2175
+
2176
+ # Configuration for the FHIR BigQuery schema. Determines how the server
2177
+ # generates the schema.
2178
+ class SchemaConfig
2179
+ include Google::Apis::Core::Hashable
2180
+
2181
+ # The depth for all recursive structures in the output analytics schema. For
2182
+ # example, `concept` in the CodeSystem resource is a recursive structure; when
2183
+ # the depth is 2, the CodeSystem table will have a column called `concept.
2184
+ # concept` but not `concept.concept.concept`. If not specified or set to 0, the
2185
+ # server will use the default value 2. The maximum depth allowed is 5.
2186
+ # Corresponds to the JSON property `recursiveStructureDepth`
2187
+ # @return [Fixnum]
2188
+ attr_accessor :recursive_structure_depth
2189
+
2190
+ # Specifies the output schema type. Schema type is required.
2191
+ # Corresponds to the JSON property `schemaType`
2192
+ # @return [String]
2193
+ attr_accessor :schema_type
2194
+
2195
+ def initialize(**args)
2196
+ update!(**args)
2197
+ end
2198
+
2199
+ # Update properties of this object
2200
+ def update!(**args)
2201
+ @recursive_structure_depth = args[:recursive_structure_depth] if args.key?(:recursive_structure_depth)
2202
+ @schema_type = args[:schema_type] if args.key?(:schema_type)
2203
+ end
2204
+ end
2205
+
2206
+ # Request to search the resources in the specified FHIR store.
2207
+ class SearchResourcesRequest
2208
+ include Google::Apis::Core::Hashable
2209
+
2210
+ # The FHIR resource type to search, such as Patient or Observation. For a
2211
+ # complete list, see the FHIR Resource Index ([DSTU2](http://hl7.org/implement/
2212
+ # standards/fhir/DSTU2/resourcelist.html), [STU3](http://hl7.org/implement/
2213
+ # standards/fhir/STU3/resourcelist.html), [R4](http://hl7.org/implement/
2214
+ # standards/fhir/R4/resourcelist.html)).
2215
+ # Corresponds to the JSON property `resourceType`
2216
+ # @return [String]
2217
+ attr_accessor :resource_type
2218
+
2219
+ def initialize(**args)
2220
+ update!(**args)
2221
+ end
2222
+
2223
+ # Update properties of this object
2224
+ def update!(**args)
2225
+ @resource_type = args[:resource_type] if args.key?(:resource_type)
2226
+ end
2227
+ end
2228
+
2229
+ # A segment in a structured format.
2230
+ class Segment
2231
+ include Google::Apis::Core::Hashable
2232
+
2233
+ # A mapping from the positional location to the value. The key string uses zero-
2234
+ # based indexes separated by dots to identify Fields, components and sub-
2235
+ # components. A bracket notation is also used to identify different instances of
2236
+ # a repeated field. Regex for key: (\d+)(\[\d+\])?(.\d+)?(.\d+)? Examples of (
2237
+ # key, value) pairs: * (0.1, "hemoglobin") denotes that the first component of
2238
+ # Field 0 has the value "hemoglobin". * (1.1.2, "CBC") denotes that the second
2239
+ # sub-component of the first component of Field 1 has the value "CBC". * (1[0].1,
2240
+ # "HbA1c") denotes that the first component of the first Instance of Field 1,
2241
+ # which is repeated, has the value "HbA1c".
2242
+ # Corresponds to the JSON property `fields`
2243
+ # @return [Hash<String,String>]
2244
+ attr_accessor :fields
2245
+
2246
+ # A string that indicates the type of segment. For example, EVN or PID.
2247
+ # Corresponds to the JSON property `segmentId`
2248
+ # @return [String]
2249
+ attr_accessor :segment_id
2250
+
2251
+ # Set ID for segments that can be in a set. This can be empty if it's missing or
2252
+ # isn't applicable.
2253
+ # Corresponds to the JSON property `setId`
2254
+ # @return [String]
2255
+ attr_accessor :set_id
2256
+
2257
+ def initialize(**args)
2258
+ update!(**args)
2259
+ end
2260
+
2261
+ # Update properties of this object
2262
+ def update!(**args)
2263
+ @fields = args[:fields] if args.key?(:fields)
2264
+ @segment_id = args[:segment_id] if args.key?(:segment_id)
2265
+ @set_id = args[:set_id] if args.key?(:set_id)
2266
+ end
2267
+ end
2268
+
2269
+ # Request message for `SetIamPolicy` method.
2270
+ class SetIamPolicyRequest
2271
+ include Google::Apis::Core::Hashable
2272
+
2273
+ # An Identity and Access Management (IAM) policy, which specifies access
2274
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
2275
+ # A `binding` binds one or more `members` to a single `role`. Members can be
2276
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
2277
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
2278
+ # role or a user-created custom role. For some types of Google Cloud resources,
2279
+ # a `binding` can also specify a `condition`, which is a logical expression that
2280
+ # allows access to a resource only if the expression evaluates to `true`. A
2281
+ # condition can add constraints based on attributes of the request, the resource,
2282
+ # or both. To learn which resources support conditions in their IAM policies,
2283
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
2284
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
2285
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
2286
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
2287
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
2288
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
2289
+ # title": "expirable access", "description": "Does not grant access after Sep
2290
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
2291
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
2292
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
2293
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
2294
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
2295
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
2296
+ # description: Does not grant access after Sep 2020 expression: request.time <
2297
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
2298
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
2299
+ # google.com/iam/docs/).
2300
+ # Corresponds to the JSON property `policy`
2301
+ # @return [Google::Apis::HealthcareV1::Policy]
2302
+ attr_accessor :policy
2303
+
2304
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
2305
+ # the fields in the mask will be modified. If no mask is provided, the following
2306
+ # default mask is used: `paths: "bindings, etag"`
2307
+ # Corresponds to the JSON property `updateMask`
2308
+ # @return [String]
2309
+ attr_accessor :update_mask
2310
+
2311
+ def initialize(**args)
2312
+ update!(**args)
2313
+ end
2314
+
2315
+ # Update properties of this object
2316
+ def update!(**args)
2317
+ @policy = args[:policy] if args.key?(:policy)
2318
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
2319
+ end
2320
+ end
2321
+
2322
+ # The `Status` type defines a logical error model that is suitable for different
2323
+ # programming environments, including REST APIs and RPC APIs. It is used by [
2324
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
2325
+ # data: error code, error message, and error details. You can find out more
2326
+ # about this error model and how to work with it in the [API Design Guide](https:
2327
+ # //cloud.google.com/apis/design/errors).
2328
+ class Status
2329
+ include Google::Apis::Core::Hashable
2330
+
2331
+ # The status code, which should be an enum value of google.rpc.Code.
2332
+ # Corresponds to the JSON property `code`
2333
+ # @return [Fixnum]
2334
+ attr_accessor :code
2335
+
2336
+ # A list of messages that carry the error details. There is a common set of
2337
+ # message types for APIs to use.
2338
+ # Corresponds to the JSON property `details`
2339
+ # @return [Array<Hash<String,Object>>]
2340
+ attr_accessor :details
2341
+
2342
+ # A developer-facing error message, which should be in English. Any user-facing
2343
+ # error message should be localized and sent in the google.rpc.Status.details
2344
+ # field, or localized by the client.
2345
+ # Corresponds to the JSON property `message`
2346
+ # @return [String]
2347
+ attr_accessor :message
2348
+
2349
+ def initialize(**args)
2350
+ update!(**args)
2351
+ end
2352
+
2353
+ # Update properties of this object
2354
+ def update!(**args)
2355
+ @code = args[:code] if args.key?(:code)
2356
+ @details = args[:details] if args.key?(:details)
2357
+ @message = args[:message] if args.key?(:message)
2358
+ end
2359
+ end
2360
+
2361
+ # Contains configuration for streaming FHIR export.
2362
+ class StreamConfig
2363
+ include Google::Apis::Core::Hashable
2364
+
2365
+ # The configuration for exporting to BigQuery.
2366
+ # Corresponds to the JSON property `bigqueryDestination`
2367
+ # @return [Google::Apis::HealthcareV1::GoogleCloudHealthcareV1FhirBigQueryDestination]
2368
+ attr_accessor :bigquery_destination
2369
+
2370
+ # Supply a FHIR resource type (such as "Patient" or "Observation"). See https://
2371
+ # www.hl7.org/fhir/valueset-resource-types.html for a list of all FHIR resource
2372
+ # types. The server treats an empty list as an intent to stream all the
2373
+ # supported resource types in this FHIR store.
2374
+ # Corresponds to the JSON property `resourceTypes`
2375
+ # @return [Array<String>]
2376
+ attr_accessor :resource_types
2377
+
2378
+ def initialize(**args)
2379
+ update!(**args)
2380
+ end
2381
+
2382
+ # Update properties of this object
2383
+ def update!(**args)
2384
+ @bigquery_destination = args[:bigquery_destination] if args.key?(:bigquery_destination)
2385
+ @resource_types = args[:resource_types] if args.key?(:resource_types)
2386
+ end
2387
+ end
2388
+
2389
+ # List of tags to be filtered.
2390
+ class TagFilterList
2391
+ include Google::Apis::Core::Hashable
2392
+
2393
+ # Tags to be filtered. Tags must be DICOM Data Elements, File Meta Elements, or
2394
+ # Directory Structuring Elements, as defined at: http://dicom.nema.org/medical/
2395
+ # dicom/current/output/html/part06.html#table_6-1,. They may be provided by "
2396
+ # Keyword" or "Tag". For example "PatientID", "00100010".
2397
+ # Corresponds to the JSON property `tags`
2398
+ # @return [Array<String>]
2399
+ attr_accessor :tags
2400
+
2401
+ def initialize(**args)
2402
+ update!(**args)
2403
+ end
2404
+
2405
+ # Update properties of this object
2406
+ def update!(**args)
2407
+ @tags = args[:tags] if args.key?(:tags)
2408
+ end
2409
+ end
2410
+
2411
+ # Request message for `TestIamPermissions` method.
2412
+ class TestIamPermissionsRequest
2413
+ include Google::Apis::Core::Hashable
2414
+
2415
+ # The set of permissions to check for the `resource`. Permissions with wildcards
2416
+ # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
2417
+ # Overview](https://cloud.google.com/iam/docs/overview#permissions).
2418
+ # Corresponds to the JSON property `permissions`
2419
+ # @return [Array<String>]
2420
+ attr_accessor :permissions
2421
+
2422
+ def initialize(**args)
2423
+ update!(**args)
2424
+ end
2425
+
2426
+ # Update properties of this object
2427
+ def update!(**args)
2428
+ @permissions = args[:permissions] if args.key?(:permissions)
2429
+ end
2430
+ end
2431
+
2432
+ # Response message for `TestIamPermissions` method.
2433
+ class TestIamPermissionsResponse
2434
+ include Google::Apis::Core::Hashable
2435
+
2436
+ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
2437
+ # Corresponds to the JSON property `permissions`
2438
+ # @return [Array<String>]
2439
+ attr_accessor :permissions
2440
+
2441
+ def initialize(**args)
2442
+ update!(**args)
2443
+ end
2444
+
2445
+ # Update properties of this object
2446
+ def update!(**args)
2447
+ @permissions = args[:permissions] if args.key?(:permissions)
2448
+ end
2449
+ end
2450
+
2451
+ #
2452
+ class TextConfig
2453
+ include Google::Apis::Core::Hashable
2454
+
2455
+ # The transformations to apply to the detected data.
2456
+ # Corresponds to the JSON property `transformations`
2457
+ # @return [Array<Google::Apis::HealthcareV1::InfoTypeTransformation>]
2458
+ attr_accessor :transformations
2459
+
2460
+ def initialize(**args)
2461
+ update!(**args)
2462
+ end
2463
+
2464
+ # Update properties of this object
2465
+ def update!(**args)
2466
+ @transformations = args[:transformations] if args.key?(:transformations)
2467
+ end
2468
+ end
2469
+ end
2470
+ end
2471
+ end