google-apis-healthcare_v1 0.19.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/healthcare_v1/classes.rb +33 -5
- data/lib/google/apis/healthcare_v1/gem_version.rb +2 -2
- data/lib/google/apis/healthcare_v1/representations.rb +2 -0
- data/lib/google/apis/healthcare_v1/service.rb +106 -35
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7912e71eebd4a7fdf3e477333a9112297347710eff816b8173ecfa56d038bd18
|
4
|
+
data.tar.gz: 11e5ca19cb79d02ae59f4ef3aabfcc5c04b70d0565e318655021f99e82e9fa99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5c902a68c979bff39c77af8846930dfc29e67719a977200eabca756e33aa3b74f8392463f6bac8a81b233480627344ca68b3f4d60a618b01414b9498357d28c
|
7
|
+
data.tar.gz: b07899b94f35620b2e91756f1509581e8d33288b326d04bc4afa0009792930f34db7be89c2257bbba2481b0b032f454c20a553987501adc9ebedfffa1689bfab
|
data/CHANGELOG.md
CHANGED
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.
|
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.
|
@@ -1785,9 +1785,9 @@ module Google
|
|
1785
1785
|
# example: Patient, HumanName. For "choice" types (those defined in the FHIR
|
1786
1786
|
# spec with the form: field[x]) we use two separate components. For example, "
|
1787
1787
|
# deceasedAge.unit" is matched by "Deceased.Age.unit". Supported types are:
|
1788
|
-
# AdministrativeGenderCode, Code, Date, DateTime, Decimal,
|
1789
|
-
#
|
1790
|
-
#
|
1788
|
+
# AdministrativeGenderCode, Base64Binary, Boolean, Code, Date, DateTime, Decimal,
|
1789
|
+
# HumanName, Id, Instant, Integer, LanguageCode, Markdown, Oid, PositiveInt,
|
1790
|
+
# String, UnsignedInt, Uri, Uuid, Xhtml.
|
1791
1791
|
# Corresponds to the JSON property `paths`
|
1792
1792
|
# @return [Array<String>]
|
1793
1793
|
attr_accessor :paths
|
@@ -3394,8 +3394,9 @@ module Google
|
|
3394
3394
|
# @return [String]
|
3395
3395
|
attr_accessor :segment_terminator
|
3396
3396
|
|
3397
|
-
# Immutable. Determines the version of the
|
3398
|
-
# schema` is not given
|
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.
|
3399
3400
|
# Corresponds to the JSON property `version`
|
3400
3401
|
# @return [String]
|
3401
3402
|
attr_accessor :version
|
@@ -4368,6 +4369,14 @@ module Google
|
|
4368
4369
|
attr_accessor :disable_fhirpath_validation
|
4369
4370
|
alias_method :disable_fhirpath_validation?, :disable_fhirpath_validation
|
4370
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
|
+
|
4371
4380
|
# Whether to disable reference type validation for incoming resources. Set this
|
4372
4381
|
# to true to disable checking incoming resources for conformance against
|
4373
4382
|
# reference type requirement defined in the FHIR specification. This property
|
@@ -4388,6 +4397,23 @@ module Google
|
|
4388
4397
|
attr_accessor :disable_required_field_validation
|
4389
4398
|
alias_method :disable_required_field_validation?, :disable_required_field_validation
|
4390
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
|
+
|
4391
4417
|
def initialize(**args)
|
4392
4418
|
update!(**args)
|
4393
4419
|
end
|
@@ -4395,8 +4421,10 @@ module Google
|
|
4395
4421
|
# Update properties of this object
|
4396
4422
|
def update!(**args)
|
4397
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)
|
4398
4425
|
@disable_reference_type_validation = args[:disable_reference_type_validation] if args.key?(:disable_reference_type_validation)
|
4399
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)
|
4400
4428
|
end
|
4401
4429
|
end
|
4402
4430
|
|
@@ -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.
|
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 = "
|
25
|
+
REVISION = "20220104"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -1993,8 +1993,10 @@ module Google
|
|
1993
1993
|
# @private
|
1994
1994
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1995
1995
|
property :disable_fhirpath_validation, as: 'disableFhirpathValidation'
|
1996
|
+
property :disable_profile_validation, as: 'disableProfileValidation'
|
1996
1997
|
property :disable_reference_type_validation, as: 'disableReferenceTypeValidation'
|
1997
1998
|
property :disable_required_field_validation, as: 'disableRequiredFieldValidation'
|
1999
|
+
collection :enabled_implementation_guides, as: 'enabledImplementationGuides'
|
1998
2000
|
end
|
1999
2001
|
end
|
2000
2002
|
|
@@ -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
|
278
|
-
# 3. Requests specifying an invalid value will be
|
279
|
-
# policies with any conditional bindings must
|
280
|
-
#
|
281
|
-
# field unset.
|
282
|
-
#
|
283
|
-
#
|
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
|
641
|
-
# 3. Requests specifying an invalid value will be
|
642
|
-
# policies with any conditional bindings must
|
643
|
-
#
|
644
|
-
# field unset.
|
645
|
-
#
|
646
|
-
#
|
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
|
2082
|
-
# 3. Requests specifying an invalid value will be
|
2083
|
-
# policies with any conditional bindings must
|
2084
|
-
#
|
2085
|
-
# field unset.
|
2086
|
-
#
|
2087
|
-
#
|
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
|
3383
|
-
# 3. Requests specifying an invalid value will be
|
3384
|
-
# policies with any conditional bindings must
|
3385
|
-
#
|
3386
|
-
# field unset.
|
3387
|
-
#
|
3388
|
-
#
|
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
|
4535
|
-
# 3. Requests specifying an invalid value will be
|
4536
|
-
# policies with any conditional bindings must
|
4537
|
-
#
|
4538
|
-
# field unset.
|
4539
|
-
#
|
4540
|
-
#
|
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.
|
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:
|
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
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-healthcare_v1/v0.20.0
|
62
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: []
|
@@ -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.
|
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
|