google-apis-healthcare_v1 0.16.0 → 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 650e93b015ace20853e8ae6b6e704acd8b6cf4796c047112904e5efb6c3d2746
4
- data.tar.gz: 4cd35b5be806b9392ce3136627141a8975d300e156bfc46cccc33ddf873aceb3
3
+ metadata.gz: 7912e71eebd4a7fdf3e477333a9112297347710eff816b8173ecfa56d038bd18
4
+ data.tar.gz: 11e5ca19cb79d02ae59f4ef3aabfcc5c04b70d0565e318655021f99e82e9fa99
5
5
  SHA512:
6
- metadata.gz: 6f7e7374246dd5174b81d66d9d698a8c736475332eb9f1e7f956f5104eb66dd48322ac3425b8ad5482f3494742db5d8461533ff10636f585d8c497dfcc2d861a
7
- data.tar.gz: baa6d4e80b1ff44235cdf9fa17ed149454c071ea175fe9f1de5df36c76aa8f561b51a6cbd53676d5f9a5cf1fca5a78f48e6670ba341416c19b5e7c0f0f4bdffc
6
+ metadata.gz: e5c902a68c979bff39c77af8846930dfc29e67719a977200eabca756e33aa3b74f8392463f6bac8a81b233480627344ca68b3f4d60a618b01414b9498357d28c
7
+ data.tar.gz: b07899b94f35620b2e91756f1509581e8d33288b326d04bc4afa0009792930f34db7be89c2257bbba2481b0b032f454c20a553987501adc9ebedfffa1689bfab
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-healthcare_v1
2
2
 
3
+ ### v0.20.0 (2022-01-05)
4
+
5
+ * Regenerated from discovery document revision 20220104
6
+
7
+ ### v0.19.0 (2021-11-16)
8
+
9
+ * Regenerated from discovery document revision 20211105
10
+
11
+ ### v0.18.0 (2021-11-05)
12
+
13
+ * Regenerated from discovery document revision 20211025
14
+
15
+ ### v0.17.0 (2021-10-27)
16
+
17
+ * Regenerated from discovery document revision 20211016
18
+ * Unspecified changes
19
+
3
20
  ### v0.16.0 (2021-10-12)
4
21
 
5
22
  * Regenerated from discovery document revision 20211004
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/healthcare_v1"
51
51
  client = Google::Apis::HealthcareV1::CloudHealthcareService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
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.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/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/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
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
67
 
@@ -306,7 +306,7 @@ module Google
306
306
  end
307
307
  end
308
308
 
309
- # Associates `members` with a `role`.
309
+ # Associates `members`, or principals, with a `role`.
310
310
  class Binding
311
311
  include Google::Apis::Core::Hashable
312
312
 
@@ -329,7 +329,7 @@ module Google
329
329
  # @return [Google::Apis::HealthcareV1::Expr]
330
330
  attr_accessor :condition
331
331
 
332
- # Specifies the identities requesting access for a Cloud Platform resource. `
332
+ # Specifies the principals requesting access for a Cloud Platform resource. `
333
333
  # members` can have the following values: * `allUsers`: A special identifier
334
334
  # that represents anyone who is on the internet; with or without a Google
335
335
  # account. * `allAuthenticatedUsers`: A special identifier that represents
@@ -359,8 +359,8 @@ module Google
359
359
  # @return [Array<String>]
360
360
  attr_accessor :members
361
361
 
362
- # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
363
- # , or `roles/owner`.
362
+ # Role that is assigned to the list of `members`, or principals. For example, `
363
+ # roles/viewer`, `roles/editor`, or `roles/owner`.
364
364
  # Corresponds to the JSON property `role`
365
365
  # @return [String]
366
366
  attr_accessor :role
@@ -1555,9 +1555,18 @@ module Google
1555
1555
  class FhirConfig
1556
1556
  include Google::Apis::Core::Hashable
1557
1557
 
1558
+ # The behaviour for handling FHIR extensions that aren't otherwise specified for
1559
+ # de-identification. If true, all extensions are preserved during de-
1560
+ # identification by default. If false or unspecified, all extensions are removed
1561
+ # during de-identification by default.
1562
+ # Corresponds to the JSON property `defaultKeepExtensions`
1563
+ # @return [Boolean]
1564
+ attr_accessor :default_keep_extensions
1565
+ alias_method :default_keep_extensions?, :default_keep_extensions
1566
+
1558
1567
  # Specifies FHIR paths to match and how to transform them. Any field that is not
1559
1568
  # matched by a FieldMetadata is passed through to the output dataset unmodified.
1560
- # All extensions are removed in the output.
1569
+ # All extensions will be processed according to `default_keep_extensions`.
1561
1570
  # Corresponds to the JSON property `fieldMetadataList`
1562
1571
  # @return [Array<Google::Apis::HealthcareV1::FieldMetadata>]
1563
1572
  attr_accessor :field_metadata_list
@@ -1568,6 +1577,7 @@ module Google
1568
1577
 
1569
1578
  # Update properties of this object
1570
1579
  def update!(**args)
1580
+ @default_keep_extensions = args[:default_keep_extensions] if args.key?(:default_keep_extensions)
1571
1581
  @field_metadata_list = args[:field_metadata_list] if args.key?(:field_metadata_list)
1572
1582
  end
1573
1583
  end
@@ -1682,6 +1692,11 @@ module Google
1682
1692
  # @return [Array<Google::Apis::HealthcareV1::StreamConfig>]
1683
1693
  attr_accessor :stream_configs
1684
1694
 
1695
+ # Contains the configuration for FHIR profiles and validation.
1696
+ # Corresponds to the JSON property `validationConfig`
1697
+ # @return [Google::Apis::HealthcareV1::ValidationConfig]
1698
+ attr_accessor :validation_config
1699
+
1685
1700
  # Immutable. The FHIR specification version that this FHIR store supports
1686
1701
  # natively. This field is immutable after store creation. Requests are rejected
1687
1702
  # if they contain FHIR resources of a different version. Version is required for
@@ -1704,6 +1719,7 @@ module Google
1704
1719
  @name = args[:name] if args.key?(:name)
1705
1720
  @notification_config = args[:notification_config] if args.key?(:notification_config)
1706
1721
  @stream_configs = args[:stream_configs] if args.key?(:stream_configs)
1722
+ @validation_config = args[:validation_config] if args.key?(:validation_config)
1707
1723
  @version = args[:version] if args.key?(:version)
1708
1724
  end
1709
1725
  end
@@ -1769,9 +1785,9 @@ module Google
1769
1785
  # example: Patient, HumanName. For "choice" types (those defined in the FHIR
1770
1786
  # spec with the form: field[x]) we use two separate components. For example, "
1771
1787
  # deceasedAge.unit" is matched by "Deceased.Age.unit". Supported types are:
1772
- # AdministrativeGenderCode, Code, Date, DateTime, Decimal, HumanName, Id,
1773
- # LanguageCode, Markdown, Oid, String, Uri, Uuid, Xhtml. Base64Binary is also
1774
- # supported, but may only be kept as-is or have all the content removed.
1788
+ # AdministrativeGenderCode, Base64Binary, Boolean, Code, Date, DateTime, Decimal,
1789
+ # HumanName, Id, Instant, Integer, LanguageCode, Markdown, Oid, PositiveInt,
1790
+ # String, UnsignedInt, Uri, Uuid, Xhtml.
1775
1791
  # Corresponds to the JSON property `paths`
1776
1792
  # @return [Array<String>]
1777
1793
  attr_accessor :paths
@@ -1947,9 +1963,9 @@ module Google
1947
1963
  class GoogleCloudHealthcareV1DicomBigQueryDestination
1948
1964
  include Google::Apis::Core::Hashable
1949
1965
 
1950
- # If the destination table already exists and this flag is `TRUE`, the table is
1951
- # overwritten by the contents of the DICOM store. If the flag is not set and the
1952
- # destination table already exists, the export call returns an error.
1966
+ # Use `write_disposition` instead. If `write_disposition` is specified, this
1967
+ # parameter is ignored. force=false is equivalent to write_disposition=
1968
+ # WRITE_EMPTY and force=true is equivalent to write_disposition=WRITE_TRUNCATE.
1953
1969
  # Corresponds to the JSON property `force`
1954
1970
  # @return [Boolean]
1955
1971
  attr_accessor :force
@@ -1961,6 +1977,13 @@ module Google
1961
1977
  # @return [String]
1962
1978
  attr_accessor :table_uri
1963
1979
 
1980
+ # Determines whether the existing table in the destination is to be overwritten
1981
+ # or appended to. If a write_disposition is specified, the `force` parameter is
1982
+ # ignored.
1983
+ # Corresponds to the JSON property `writeDisposition`
1984
+ # @return [String]
1985
+ attr_accessor :write_disposition
1986
+
1964
1987
  def initialize(**args)
1965
1988
  update!(**args)
1966
1989
  end
@@ -1969,6 +1992,7 @@ module Google
1969
1992
  def update!(**args)
1970
1993
  @force = args[:force] if args.key?(:force)
1971
1994
  @table_uri = args[:table_uri] if args.key?(:table_uri)
1995
+ @write_disposition = args[:write_disposition] if args.key?(:write_disposition)
1972
1996
  end
1973
1997
  end
1974
1998
 
@@ -3370,8 +3394,9 @@ module Google
3370
3394
  # @return [String]
3371
3395
  attr_accessor :segment_terminator
3372
3396
 
3373
- # Immutable. Determines the version of the unschematized parser to be used when `
3374
- # schema` is not given. This field is immutable after store creation.
3397
+ # Immutable. Determines the version of both the default parser to be used when `
3398
+ # schema` is not given, as well as the schematized parser used when `schema` is
3399
+ # specified. This field is immutable after HL7v2 store creation.
3375
3400
  # Corresponds to the JSON property `version`
3376
3401
  # @return [String]
3377
3402
  attr_accessor :version
@@ -3416,31 +3441,31 @@ module Google
3416
3441
 
3417
3442
  # An Identity and Access Management (IAM) policy, which specifies access
3418
3443
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
3419
- # A `binding` binds one or more `members` to a single `role`. Members can be
3420
- # user accounts, service accounts, Google groups, and domains (such as G Suite).
3421
- # A `role` is a named list of permissions; each `role` can be an IAM predefined
3422
- # role or a user-created custom role. For some types of Google Cloud resources,
3423
- # a `binding` can also specify a `condition`, which is a logical expression that
3424
- # allows access to a resource only if the expression evaluates to `true`. A
3425
- # condition can add constraints based on attributes of the request, the resource,
3426
- # or both. To learn which resources support conditions in their IAM policies,
3427
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
3428
- # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
3429
- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
3430
- # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
3431
- # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
3432
- # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
3433
- # title": "expirable access", "description": "Does not grant access after Sep
3434
- # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
3435
- # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
3436
- # members: - user:mike@example.com - group:admins@example.com - domain:google.
3437
- # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
3438
- # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
3439
- # roles/resourcemanager.organizationViewer condition: title: expirable access
3440
- # description: Does not grant access after Sep 2020 expression: request.time <
3441
- # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
3442
- # description of IAM and its features, see the [IAM documentation](https://cloud.
3443
- # google.com/iam/docs/).
3444
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
3445
+ # Principals can be user accounts, service accounts, Google groups, and domains (
3446
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
3447
+ # an IAM predefined role or a user-created custom role. For some types of Google
3448
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
3449
+ # logical expression that allows access to a resource only if the expression
3450
+ # evaluates to `true`. A condition can add constraints based on attributes of
3451
+ # the request, the resource, or both. To learn which resources support
3452
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
3453
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
3454
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
3455
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
3456
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
3457
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
3458
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
3459
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
3460
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
3461
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
3462
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
3463
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
3464
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
3465
+ # access description: Does not grant access after Sep 2020 expression: request.
3466
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
3467
+ # a description of IAM and its features, see the [IAM documentation](https://
3468
+ # cloud.google.com/iam/docs/).
3444
3469
  class Policy
3445
3470
  include Google::Apis::Core::Hashable
3446
3471
 
@@ -3449,14 +3474,14 @@ module Google
3449
3474
  # @return [Array<Google::Apis::HealthcareV1::AuditConfig>]
3450
3475
  attr_accessor :audit_configs
3451
3476
 
3452
- # Associates a list of `members` to a `role`. Optionally, may specify a `
3453
- # condition` that determines how and when the `bindings` are applied. Each of
3454
- # the `bindings` must contain at least one member. The `bindings` in a `Policy`
3455
- # can refer to up to 1,500 members; up to 250 of these members can be Google
3456
- # groups. Each occurrence of a member counts towards these limits. For example,
3457
- # if the `bindings` grant 50 different roles to `user:alice@example.com`, and
3458
- # not to any other member, then you can add another 1,450 members to the `
3459
- # bindings` in the `Policy`.
3477
+ # Associates a list of `members`, or principals, with a `role`. Optionally, may
3478
+ # specify a `condition` that determines how and when the `bindings` are applied.
3479
+ # Each of the `bindings` must contain at least one principal. The `bindings` in
3480
+ # a `Policy` can refer to up to 1,500 principals; up to 250 of these principals
3481
+ # can be Google groups. Each occurrence of a principal counts towards these
3482
+ # limits. For example, if the `bindings` grant 50 different roles to `user:alice@
3483
+ # example.com`, and not to any other principal, then you can add another 1,450
3484
+ # principals to the `bindings` in the `Policy`.
3460
3485
  # Corresponds to the JSON property `bindings`
3461
3486
  # @return [Array<Google::Apis::HealthcareV1::Binding>]
3462
3487
  attr_accessor :bindings
@@ -3984,31 +4009,31 @@ module Google
3984
4009
 
3985
4010
  # An Identity and Access Management (IAM) policy, which specifies access
3986
4011
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
3987
- # A `binding` binds one or more `members` to a single `role`. Members can be
3988
- # user accounts, service accounts, Google groups, and domains (such as G Suite).
3989
- # A `role` is a named list of permissions; each `role` can be an IAM predefined
3990
- # role or a user-created custom role. For some types of Google Cloud resources,
3991
- # a `binding` can also specify a `condition`, which is a logical expression that
3992
- # allows access to a resource only if the expression evaluates to `true`. A
3993
- # condition can add constraints based on attributes of the request, the resource,
3994
- # or both. To learn which resources support conditions in their IAM policies,
3995
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
3996
- # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
3997
- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
3998
- # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
3999
- # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
4000
- # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
4001
- # title": "expirable access", "description": "Does not grant access after Sep
4002
- # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
4003
- # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
4004
- # members: - user:mike@example.com - group:admins@example.com - domain:google.
4005
- # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
4006
- # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
4007
- # roles/resourcemanager.organizationViewer condition: title: expirable access
4008
- # description: Does not grant access after Sep 2020 expression: request.time <
4009
- # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
4010
- # description of IAM and its features, see the [IAM documentation](https://cloud.
4011
- # google.com/iam/docs/).
4012
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
4013
+ # Principals can be user accounts, service accounts, Google groups, and domains (
4014
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
4015
+ # an IAM predefined role or a user-created custom role. For some types of Google
4016
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
4017
+ # logical expression that allows access to a resource only if the expression
4018
+ # evaluates to `true`. A condition can add constraints based on attributes of
4019
+ # the request, the resource, or both. To learn which resources support
4020
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
4021
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
4022
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
4023
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
4024
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
4025
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
4026
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
4027
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
4028
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
4029
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
4030
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
4031
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
4032
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
4033
+ # access description: Does not grant access after Sep 2020 expression: request.
4034
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
4035
+ # a description of IAM and its features, see the [IAM documentation](https://
4036
+ # cloud.google.com/iam/docs/).
4012
4037
  # Corresponds to the JSON property `policy`
4013
4038
  # @return [Google::Apis::HealthcareV1::Policy]
4014
4039
  attr_accessor :policy
@@ -4330,6 +4355,79 @@ module Google
4330
4355
  end
4331
4356
  end
4332
4357
 
4358
+ # Contains the configuration for FHIR profiles and validation.
4359
+ class ValidationConfig
4360
+ include Google::Apis::Core::Hashable
4361
+
4362
+ # Whether to disable FHIRPath validation for incoming resources. Set this to
4363
+ # true to disable checking incoming resources for conformance against FHIRPath
4364
+ # requirement defined in the FHIR specification. This property only affects
4365
+ # resource types that do not have profiles configured for them, any rules in
4366
+ # enabled implementation guides will still be enforced.
4367
+ # Corresponds to the JSON property `disableFhirpathValidation`
4368
+ # @return [Boolean]
4369
+ attr_accessor :disable_fhirpath_validation
4370
+ alias_method :disable_fhirpath_validation?, :disable_fhirpath_validation
4371
+
4372
+ # Whether to disable profile validation for this FHIR store. Set this to true to
4373
+ # disable checking incoming resources for conformance against structure
4374
+ # definitions in this FHIR store.
4375
+ # Corresponds to the JSON property `disableProfileValidation`
4376
+ # @return [Boolean]
4377
+ attr_accessor :disable_profile_validation
4378
+ alias_method :disable_profile_validation?, :disable_profile_validation
4379
+
4380
+ # Whether to disable reference type validation for incoming resources. Set this
4381
+ # to true to disable checking incoming resources for conformance against
4382
+ # reference type requirement defined in the FHIR specification. This property
4383
+ # only affects resource types that do not have profiles configured for them, any
4384
+ # rules in enabled implementation guides will still be enforced.
4385
+ # Corresponds to the JSON property `disableReferenceTypeValidation`
4386
+ # @return [Boolean]
4387
+ attr_accessor :disable_reference_type_validation
4388
+ alias_method :disable_reference_type_validation?, :disable_reference_type_validation
4389
+
4390
+ # Whether to disable required fields validation for incoming resources. Set this
4391
+ # to true to disable checking incoming resources for conformance against
4392
+ # required fields requirement defined in the FHIR specification. This property
4393
+ # only affects resource types that do not have profiles configured for them, any
4394
+ # rules in enabled implementation guides will still be enforced.
4395
+ # Corresponds to the JSON property `disableRequiredFieldValidation`
4396
+ # @return [Boolean]
4397
+ attr_accessor :disable_required_field_validation
4398
+ alias_method :disable_required_field_validation?, :disable_required_field_validation
4399
+
4400
+ # A list of implementation guide URLs in this FHIR store that are used to
4401
+ # configure the profiles to use for validation. For example, to use the US Core
4402
+ # profiles for validation, set `enabled_implementation_guides` to `["http://hl7.
4403
+ # org/fhir/us/core/ImplementationGuide/ig"]`. If `enabled_implementation_guides`
4404
+ # is empty or omitted, then incoming resources are only required to conform to
4405
+ # the base FHIR profiles. Otherwise, a resource must conform to at least one
4406
+ # profile listed in the `global` property of one of the enabled
4407
+ # ImplementationGuides. The Cloud Healthcare API does not currently enforce all
4408
+ # of the rules in a StructureDefinition. The following rules are supported: -
4409
+ # min/max - minValue/maxValue - maxLength - type - fixed[x] - pattern[x] on
4410
+ # simple types - slicing, when using "value" as the discriminator type When a
4411
+ # URL cannot be resolved (for example, in a type assertion), the server does not
4412
+ # return an error.
4413
+ # Corresponds to the JSON property `enabledImplementationGuides`
4414
+ # @return [Array<String>]
4415
+ attr_accessor :enabled_implementation_guides
4416
+
4417
+ def initialize(**args)
4418
+ update!(**args)
4419
+ end
4420
+
4421
+ # Update properties of this object
4422
+ def update!(**args)
4423
+ @disable_fhirpath_validation = args[:disable_fhirpath_validation] if args.key?(:disable_fhirpath_validation)
4424
+ @disable_profile_validation = args[:disable_profile_validation] if args.key?(:disable_profile_validation)
4425
+ @disable_reference_type_validation = args[:disable_reference_type_validation] if args.key?(:disable_reference_type_validation)
4426
+ @disable_required_field_validation = args[:disable_required_field_validation] if args.key?(:disable_required_field_validation)
4427
+ @enabled_implementation_guides = args[:enabled_implementation_guides] if args.key?(:enabled_implementation_guides)
4428
+ end
4429
+ end
4430
+
4333
4431
  # Describes a selector for extracting and matching an MSH field to a value.
4334
4432
  class VersionSource
4335
4433
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module HealthcareV1
18
18
  # Version of the google-apis-healthcare_v1 gem
19
- GEM_VERSION = "0.16.0"
19
+ GEM_VERSION = "0.20.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211004"
25
+ REVISION = "20220104"
26
26
  end
27
27
  end
28
28
  end
@@ -796,6 +796,12 @@ module Google
796
796
  include Google::Apis::Core::JsonObjectSupport
797
797
  end
798
798
 
799
+ class ValidationConfig
800
+ class Representation < Google::Apis::Core::JsonRepresentation; end
801
+
802
+ include Google::Apis::Core::JsonObjectSupport
803
+ end
804
+
799
805
  class VersionSource
800
806
  class Representation < Google::Apis::Core::JsonRepresentation; end
801
807
 
@@ -1227,6 +1233,7 @@ module Google
1227
1233
  class FhirConfig
1228
1234
  # @private
1229
1235
  class Representation < Google::Apis::Core::JsonRepresentation
1236
+ property :default_keep_extensions, as: 'defaultKeepExtensions'
1230
1237
  collection :field_metadata_list, as: 'fieldMetadataList', class: Google::Apis::HealthcareV1::FieldMetadata, decorator: Google::Apis::HealthcareV1::FieldMetadata::Representation
1231
1238
 
1232
1239
  end
@@ -1253,6 +1260,8 @@ module Google
1253
1260
 
1254
1261
  collection :stream_configs, as: 'streamConfigs', class: Google::Apis::HealthcareV1::StreamConfig, decorator: Google::Apis::HealthcareV1::StreamConfig::Representation
1255
1262
 
1263
+ property :validation_config, as: 'validationConfig', class: Google::Apis::HealthcareV1::ValidationConfig, decorator: Google::Apis::HealthcareV1::ValidationConfig::Representation
1264
+
1256
1265
  property :version, as: 'version'
1257
1266
  end
1258
1267
  end
@@ -1326,6 +1335,7 @@ module Google
1326
1335
  class Representation < Google::Apis::Core::JsonRepresentation
1327
1336
  property :force, as: 'force'
1328
1337
  property :table_uri, as: 'tableUri'
1338
+ property :write_disposition, as: 'writeDisposition'
1329
1339
  end
1330
1340
  end
1331
1341
 
@@ -1979,6 +1989,17 @@ module Google
1979
1989
  end
1980
1990
  end
1981
1991
 
1992
+ class ValidationConfig
1993
+ # @private
1994
+ class Representation < Google::Apis::Core::JsonRepresentation
1995
+ property :disable_fhirpath_validation, as: 'disableFhirpathValidation'
1996
+ property :disable_profile_validation, as: 'disableProfileValidation'
1997
+ property :disable_reference_type_validation, as: 'disableReferenceTypeValidation'
1998
+ property :disable_required_field_validation, as: 'disableRequiredFieldValidation'
1999
+ collection :enabled_implementation_guides, as: 'enabledImplementationGuides'
2000
+ end
2001
+ end
2002
+
1982
2003
  class VersionSource
1983
2004
  # @private
1984
2005
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -274,13 +274,16 @@ module Google
274
274
  # REQUIRED: The resource for which the policy is being requested. See the
275
275
  # operation documentation for the appropriate value for this field.
276
276
  # @param [Fixnum] options_requested_policy_version
277
- # Optional. The policy format version to be returned. Valid values are 0, 1, and
278
- # 3. Requests specifying an invalid value will be rejected. Requests for
279
- # policies with any conditional bindings must specify version 3. Policies
280
- # without any conditional bindings may specify any valid value or leave the
281
- # field unset. To learn which resources support conditions in their IAM policies,
282
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
283
- # resource-policies).
277
+ # Optional. The maximum policy version that will be used to format the policy.
278
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
279
+ # rejected. Requests for policies with any conditional role bindings must
280
+ # specify version 3. Policies with no conditional role bindings may specify any
281
+ # valid value or leave the field unset. The policy in the response might use the
282
+ # policy version that you specified, or it might use a lower policy version. For
283
+ # example, if you specify version 3, but the policy has no conditional role
284
+ # bindings, the response uses version 1. To learn which resources support
285
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
286
+ # google.com/iam/help/conditions/resource-policies).
284
287
  # @param [String] fields
285
288
  # Selector specifying which fields to include in a partial response.
286
289
  # @param [String] quota_user
@@ -637,13 +640,16 @@ module Google
637
640
  # REQUIRED: The resource for which the policy is being requested. See the
638
641
  # operation documentation for the appropriate value for this field.
639
642
  # @param [Fixnum] options_requested_policy_version
640
- # Optional. The policy format version to be returned. Valid values are 0, 1, and
641
- # 3. Requests specifying an invalid value will be rejected. Requests for
642
- # policies with any conditional bindings must specify version 3. Policies
643
- # without any conditional bindings may specify any valid value or leave the
644
- # field unset. To learn which resources support conditions in their IAM policies,
645
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
646
- # resource-policies).
643
+ # Optional. The maximum policy version that will be used to format the policy.
644
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
645
+ # rejected. Requests for policies with any conditional role bindings must
646
+ # specify version 3. Policies with no conditional role bindings may specify any
647
+ # valid value or leave the field unset. The policy in the response might use the
648
+ # policy version that you specified, or it might use a lower policy version. For
649
+ # example, if you specify version 3, but the policy has no conditional role
650
+ # bindings, the response uses version 1. To learn which resources support
651
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
652
+ # google.com/iam/help/conditions/resource-policies).
647
653
  # @param [String] fields
648
654
  # Selector specifying which fields to include in a partial response.
649
655
  # @param [String] quota_user
@@ -2078,13 +2084,16 @@ module Google
2078
2084
  # REQUIRED: The resource for which the policy is being requested. See the
2079
2085
  # operation documentation for the appropriate value for this field.
2080
2086
  # @param [Fixnum] options_requested_policy_version
2081
- # Optional. The policy format version to be returned. Valid values are 0, 1, and
2082
- # 3. Requests specifying an invalid value will be rejected. Requests for
2083
- # policies with any conditional bindings must specify version 3. Policies
2084
- # without any conditional bindings may specify any valid value or leave the
2085
- # field unset. To learn which resources support conditions in their IAM policies,
2086
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
2087
- # resource-policies).
2087
+ # Optional. The maximum policy version that will be used to format the policy.
2088
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
2089
+ # rejected. Requests for policies with any conditional role bindings must
2090
+ # specify version 3. Policies with no conditional role bindings may specify any
2091
+ # valid value or leave the field unset. The policy in the response might use the
2092
+ # policy version that you specified, or it might use a lower policy version. For
2093
+ # example, if you specify version 3, but the policy has no conditional role
2094
+ # bindings, the response uses version 1. To learn which resources support
2095
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
2096
+ # google.com/iam/help/conditions/resource-policies).
2088
2097
  # @param [String] fields
2089
2098
  # Selector specifying which fields to include in a partial response.
2090
2099
  # @param [String] quota_user
@@ -3379,13 +3388,16 @@ module Google
3379
3388
  # REQUIRED: The resource for which the policy is being requested. See the
3380
3389
  # operation documentation for the appropriate value for this field.
3381
3390
  # @param [Fixnum] options_requested_policy_version
3382
- # Optional. The policy format version to be returned. Valid values are 0, 1, and
3383
- # 3. Requests specifying an invalid value will be rejected. Requests for
3384
- # policies with any conditional bindings must specify version 3. Policies
3385
- # without any conditional bindings may specify any valid value or leave the
3386
- # field unset. To learn which resources support conditions in their IAM policies,
3387
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
3388
- # resource-policies).
3391
+ # Optional. The maximum policy version that will be used to format the policy.
3392
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
3393
+ # rejected. Requests for policies with any conditional role bindings must
3394
+ # specify version 3. Policies with no conditional role bindings may specify any
3395
+ # valid value or leave the field unset. The policy in the response might use the
3396
+ # policy version that you specified, or it might use a lower policy version. For
3397
+ # example, if you specify version 3, but the policy has no conditional role
3398
+ # bindings, the response uses version 1. To learn which resources support
3399
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
3400
+ # google.com/iam/help/conditions/resource-policies).
3389
3401
  # @param [String] fields
3390
3402
  # Selector specifying which fields to include in a partial response.
3391
3403
  # @param [String] quota_user
@@ -3790,6 +3802,62 @@ module Google
3790
3802
  execute_or_queue_command(command, &block)
3791
3803
  end
3792
3804
 
3805
+ # Validates an input FHIR resource's conformance to its profiles and the
3806
+ # profiles configured on the FHIR store. Implements the FHIR extended operation $
3807
+ # validate ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resource-
3808
+ # operations.html#validate), [STU3](http://hl7.org/implement/standards/fhir/STU3/
3809
+ # resource-operations.html#validate), or [R4](http://hl7.org/implement/standards/
3810
+ # fhir/R4/resource-operation-validate.html)). The request body must contain a
3811
+ # JSON-encoded FHIR resource, and the request headers must contain `Content-Type:
3812
+ # application/fhir+json`. The `Parameters` input syntax is not supported. The `
3813
+ # profile` query parameter can be used to request that the resource only be
3814
+ # validated against a specific profile. If a profile with the given URL cannot
3815
+ # be found in the FHIR store then an error is returned. Errors generated by
3816
+ # validation contain a JSON-encoded `OperationOutcome` resource describing the
3817
+ # reason for the error. If the request cannot be mapped to a valid API method on
3818
+ # a FHIR store, a generic GCP error might be returned instead.
3819
+ # @param [String] parent
3820
+ # The name of the FHIR store that holds the profiles being used for validation.
3821
+ # @param [String] type
3822
+ # The FHIR resource type of the resource being validated. For a complete list,
3823
+ # see the FHIR Resource Index ([DSTU2](http://hl7.org/implement/standards/fhir/
3824
+ # DSTU2/resourcelist.html), [STU3](http://hl7.org/implement/standards/fhir/STU3/
3825
+ # resourcelist.html), or [R4](http://hl7.org/implement/standards/fhir/R4/
3826
+ # resourcelist.html)). Must match the resource type in the provided content.
3827
+ # @param [Google::Apis::HealthcareV1::HttpBody] http_body_object
3828
+ # @param [String] profile
3829
+ # A profile that this resource should be validated against.
3830
+ # @param [String] fields
3831
+ # Selector specifying which fields to include in a partial response.
3832
+ # @param [String] quota_user
3833
+ # Available to use for quota purposes for server-side applications. Can be any
3834
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3835
+ # @param [Google::Apis::RequestOptions] options
3836
+ # Request-specific options
3837
+ #
3838
+ # @yield [result, err] Result & error if block supplied
3839
+ # @yieldparam result [Google::Apis::HealthcareV1::HttpBody] parsed result object
3840
+ # @yieldparam err [StandardError] error object if request failed
3841
+ #
3842
+ # @return [Google::Apis::HealthcareV1::HttpBody]
3843
+ #
3844
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3845
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3846
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3847
+ def resource_project_location_dataset_fhir_store_fhir_validate(parent, type, http_body_object = nil, profile: nil, fields: nil, quota_user: nil, options: nil, &block)
3848
+ command = make_simple_command(:post, 'v1/{+parent}/fhir/{+type}/$validate', options)
3849
+ command.request_representation = Google::Apis::HealthcareV1::HttpBody::Representation
3850
+ command.request_object = http_body_object
3851
+ command.response_representation = Google::Apis::HealthcareV1::HttpBody::Representation
3852
+ command.response_class = Google::Apis::HealthcareV1::HttpBody
3853
+ command.params['parent'] = parent unless parent.nil?
3854
+ command.params['type'] = type unless type.nil?
3855
+ command.query['profile'] = profile unless profile.nil?
3856
+ command.query['fields'] = fields unless fields.nil?
3857
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3858
+ execute_or_queue_command(command, &block)
3859
+ end
3860
+
3793
3861
  # Gets the FHIR capability statement ([STU3](http://hl7.org/implement/standards/
3794
3862
  # fhir/STU3/capabilitystatement.html), [R4](http://hl7.org/implement/standards/
3795
3863
  # fhir/R4/capabilitystatement.html)), or the [conformance statement](http://hl7.
@@ -4531,13 +4599,16 @@ module Google
4531
4599
  # REQUIRED: The resource for which the policy is being requested. See the
4532
4600
  # operation documentation for the appropriate value for this field.
4533
4601
  # @param [Fixnum] options_requested_policy_version
4534
- # Optional. The policy format version to be returned. Valid values are 0, 1, and
4535
- # 3. Requests specifying an invalid value will be rejected. Requests for
4536
- # policies with any conditional bindings must specify version 3. Policies
4537
- # without any conditional bindings may specify any valid value or leave the
4538
- # field unset. To learn which resources support conditions in their IAM policies,
4539
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
4540
- # resource-policies).
4602
+ # Optional. The maximum policy version that will be used to format the policy.
4603
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
4604
+ # rejected. Requests for policies with any conditional role bindings must
4605
+ # specify version 3. Policies with no conditional role bindings may specify any
4606
+ # valid value or leave the field unset. The policy in the response might use the
4607
+ # policy version that you specified, or it might use a lower policy version. For
4608
+ # example, if you specify version 3, but the policy has no conditional role
4609
+ # bindings, the response uses version 1. To learn which resources support
4610
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
4611
+ # google.com/iam/help/conditions/resource-policies).
4541
4612
  # @param [String] fields
4542
4613
  # Selector specifying which fields to include in a partial response.
4543
4614
  # @param [String] quota_user
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-healthcare_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-18 00:00:00.000000000 Z
11
+ date: 2022-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-healthcare_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-healthcare_v1/v0.16.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-healthcare_v1
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-healthcare_v1/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-healthcare_v1/v0.20.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-healthcare_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths:
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.2.17
78
+ rubygems_version: 3.3.4
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Healthcare API V1