google-apis-healthcare_v1beta1 0.1.0 → 0.2.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: 27b39dc18f29d595a3a6dfbdff9a31efb2d136bb32f7acd02ed18b305a83f773
4
- data.tar.gz: 33d7f972fd911ec245bf1390e69c204e4e28003340c067ce0cfb48787a6be881
3
+ metadata.gz: 5de45cccfa43043856ca7804f783590b5a1f246f0130635712c0153f4786e4db
4
+ data.tar.gz: ce82cb746cb3ed230d38d456714ef6ca4df3353c94a143ebc331e079d1e68abe
5
5
  SHA512:
6
- metadata.gz: a41726f21507388849bb06218e0f0c6c1fce39c81d43c53ffd359614cad72f2357aa5b2a183e4667946c2e1347e762682fe8d4db0a83018817a8940a3dace399
7
- data.tar.gz: 3a5895afeff2089af5c451e035eeb048480665f548b6bec4a50a9e37c1ed7d34ff97dd698e18d9c35593b61e8e51ee7679f1367a68ac7547b94bafc2c80bdcce
6
+ metadata.gz: a2ab6a8d3b483237e19adc6c2d4a7547ccda5bea8c46276b704a4f8d6e08a1d57f822484a396d94bea047afd86143b21fb7e2aac101ae4d26ffd0c0e03cd2031
7
+ data.tar.gz: fe3b8bbd1ef084c747a84b39ef4cf1d49416d18d6acf11ca26e9ccc6f37ed0171976f40575994d1a67784647b474729241820473e47ad313eb327f5a4165939a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-healthcare_v1beta1
2
2
 
3
+ ### v0.2.0 (2021-02-05)
4
+
5
+ * Regenerated from discovery document revision 20210203
6
+ * Regenerated using generator version 0.1.2
7
+
3
8
  ### v0.1.0 (2021-01-07)
4
9
 
5
10
  * Regenerated using generator version 0.1.1
@@ -434,6 +434,25 @@ module Google
434
434
  end
435
435
  end
436
436
 
437
+ # Gets multiple messages in a specified HL7v2 store.
438
+ class BatchGetMessagesResponse
439
+ include Google::Apis::Core::Hashable
440
+
441
+ # The returned Messages. See `MessageView` for populated fields.
442
+ # Corresponds to the JSON property `messages`
443
+ # @return [Array<Google::Apis::HealthcareV1beta1::Message>]
444
+ attr_accessor :messages
445
+
446
+ def initialize(**args)
447
+ update!(**args)
448
+ end
449
+
450
+ # Update properties of this object
451
+ def update!(**args)
452
+ @messages = args[:messages] if args.key?(:messages)
453
+ end
454
+ end
455
+
437
456
  # Associates `members` with a `role`.
438
457
  class Binding
439
458
  include Google::Apis::Core::Hashable
@@ -1937,10 +1956,11 @@ module Google
1937
1956
  # updateCreate). This determines if the client can use an Update operation to
1938
1957
  # create a new resource with a client-specified ID. If false, all IDs are server-
1939
1958
  # assigned through the Create operation and attempts to update a non-existent
1940
- # resource return errors. Be careful with the audit logs if client-specified
1941
- # resource IDs contain sensitive data such as patient identifiers, those IDs are
1942
- # part of the FHIR resource path recorded in Cloud audit logs and Cloud Pub/Sub
1943
- # notifications.
1959
+ # resource return errors. It is strongly advised not to include or encode any
1960
+ # sensitive data such as patient identifiers in client-specified resource IDs.
1961
+ # Those IDs are part of the FHIR resource path recorded in Cloud audit logs and
1962
+ # Cloud Pub/Sub notifications. Those IDs can also be contained in reference
1963
+ # fields within other resources.
1944
1964
  # Corresponds to the JSON property `enableUpdateCreate`
1945
1965
  # @return [Boolean]
1946
1966
  attr_accessor :enable_update_create
@@ -1983,6 +2003,11 @@ module Google
1983
2003
  # @return [Array<Google::Apis::HealthcareV1beta1::StreamConfig>]
1984
2004
  attr_accessor :stream_configs
1985
2005
 
2006
+ # Contains the configuration for FHIR profiles and validation.
2007
+ # Corresponds to the JSON property `validationConfig`
2008
+ # @return [Google::Apis::HealthcareV1beta1::ValidationConfig]
2009
+ attr_accessor :validation_config
2010
+
1986
2011
  # Immutable. The FHIR specification version that this FHIR store supports
1987
2012
  # natively. This field is immutable after store creation. Requests are rejected
1988
2013
  # if they contain FHIR resources of a different version. Version is required for
@@ -2005,6 +2030,7 @@ module Google
2005
2030
  @name = args[:name] if args.key?(:name)
2006
2031
  @notification_config = args[:notification_config] if args.key?(:notification_config)
2007
2032
  @stream_configs = args[:stream_configs] if args.key?(:stream_configs)
2033
+ @validation_config = args[:validation_config] if args.key?(:validation_config)
2008
2034
  @version = args[:version] if args.key?(:version)
2009
2035
  end
2010
2036
  end
@@ -5124,6 +5150,46 @@ module Google
5124
5150
  end
5125
5151
  end
5126
5152
 
5153
+ # Contains the configuration for FHIR profiles and validation.
5154
+ class ValidationConfig
5155
+ include Google::Apis::Core::Hashable
5156
+
5157
+ # Whether to disable profile validation for this FHIR store. Set this to true to
5158
+ # disable checking incoming resources for conformance against
5159
+ # StructureDefinitions in this FHIR store.
5160
+ # Corresponds to the JSON property `disableProfileValidation`
5161
+ # @return [Boolean]
5162
+ attr_accessor :disable_profile_validation
5163
+ alias_method :disable_profile_validation?, :disable_profile_validation
5164
+
5165
+ # A list of ImplementationGuide URLs in this FHIR store that are used to
5166
+ # configure the profiles to use for validation. For example, to use the US Core
5167
+ # profiles for validation, set `enabled_implementation_guides` to `["http://hl7.
5168
+ # org/fhir/us/core/ImplementationGuide/ig"]`. If `enabled_implementation_guides`
5169
+ # is empty or omitted, then incoming resources are only required to conform to
5170
+ # the base FHIR profiles. Otherwise, a resource must conform to at least one
5171
+ # profile listed in the `global` property of one of the enabled
5172
+ # ImplementationGuides. The Cloud Healthcare API does not currently enforce all
5173
+ # of the rules in a StructureDefinition. The following rules are supported: -
5174
+ # min/max - minValue/maxValue - maxLength - type - fixed[x] - pattern[x] on
5175
+ # simple types - slicing, when using "value" as the discriminator type When a
5176
+ # URL cannot be resolved (for example, in a type assertion), the server does not
5177
+ # return an error.
5178
+ # Corresponds to the JSON property `enabledImplementationGuides`
5179
+ # @return [Array<String>]
5180
+ attr_accessor :enabled_implementation_guides
5181
+
5182
+ def initialize(**args)
5183
+ update!(**args)
5184
+ end
5185
+
5186
+ # Update properties of this object
5187
+ def update!(**args)
5188
+ @disable_profile_validation = args[:disable_profile_validation] if args.key?(:disable_profile_validation)
5189
+ @enabled_implementation_guides = args[:enabled_implementation_guides] if args.key?(:enabled_implementation_guides)
5190
+ end
5191
+ end
5192
+
5127
5193
  # Describes a selector for extracting and matching an MSH field to a value.
5128
5194
  class VersionSource
5129
5195
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module HealthcareV1beta1
18
18
  # Version of the google-apis-healthcare_v1beta1 gem
19
- GEM_VERSION = "0.1.0"
19
+ GEM_VERSION = "0.2.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.1"
22
+ GENERATOR_VERSION = "0.1.2"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20201202"
25
+ REVISION = "20210203"
26
26
  end
27
27
  end
28
28
  end
@@ -100,6 +100,12 @@ module Google
100
100
  include Google::Apis::Core::JsonObjectSupport
101
101
  end
102
102
 
103
+ class BatchGetMessagesResponse
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
103
109
  class Binding
104
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
111
 
@@ -958,6 +964,12 @@ module Google
958
964
  include Google::Apis::Core::JsonObjectSupport
959
965
  end
960
966
 
967
+ class ValidationConfig
968
+ class Representation < Google::Apis::Core::JsonRepresentation; end
969
+
970
+ include Google::Apis::Core::JsonObjectSupport
971
+ end
972
+
961
973
  class VersionSource
962
974
  class Representation < Google::Apis::Core::JsonRepresentation; end
963
975
 
@@ -1087,6 +1099,14 @@ module Google
1087
1099
  end
1088
1100
  end
1089
1101
 
1102
+ class BatchGetMessagesResponse
1103
+ # @private
1104
+ class Representation < Google::Apis::Core::JsonRepresentation
1105
+ collection :messages, as: 'messages', class: Google::Apis::HealthcareV1beta1::Message, decorator: Google::Apis::HealthcareV1beta1::Message::Representation
1106
+
1107
+ end
1108
+ end
1109
+
1090
1110
  class Binding
1091
1111
  # @private
1092
1112
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1515,6 +1535,8 @@ module Google
1515
1535
 
1516
1536
  collection :stream_configs, as: 'streamConfigs', class: Google::Apis::HealthcareV1beta1::StreamConfig, decorator: Google::Apis::HealthcareV1beta1::StreamConfig::Representation
1517
1537
 
1538
+ property :validation_config, as: 'validationConfig', class: Google::Apis::HealthcareV1beta1::ValidationConfig, decorator: Google::Apis::HealthcareV1beta1::ValidationConfig::Representation
1539
+
1518
1540
  property :version, as: 'version'
1519
1541
  end
1520
1542
  end
@@ -2395,6 +2417,14 @@ module Google
2395
2417
  end
2396
2418
  end
2397
2419
 
2420
+ class ValidationConfig
2421
+ # @private
2422
+ class Representation < Google::Apis::Core::JsonRepresentation
2423
+ property :disable_profile_validation, as: 'disableProfileValidation'
2424
+ collection :enabled_implementation_guides, as: 'enabledImplementationGuides'
2425
+ end
2426
+ end
2427
+
2398
2428
  class VersionSource
2399
2429
  # @private
2400
2430
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2981,12 +2981,14 @@ module Google
2981
2981
  execute_or_queue_command(command, &block)
2982
2982
  end
2983
2983
 
2984
- # DeleteStudyAsync deletes all instances within the given study using a long
2985
- # running operation. The method returns an Operation which will be marked
2986
- # successful when the deletion is complete. Warning: If you insert instances
2987
- # into a study while a delete operation is running for that study, the instances
2988
- # you insert might not appear in search results until after the deletion
2989
- # operation finishes.
2984
+ # DeleteStudy deletes all instances within the given study using a long running
2985
+ # operation. The method returns an Operation which will be marked successful
2986
+ # when the deletion is complete. Warning: If you insert instances into a study
2987
+ # while a delete operation is running for that study, the instances you insert
2988
+ # might not appear in search results until after the deletion operation finishes.
2989
+ # For samples that show how to call DeleteStudy, see [Deleting a study, series,
2990
+ # or instance](https://cloud.google.com/healthcare/docs/how-tos/dicomweb#
2991
+ # deleting_a_study_series_or_instance).
2990
2992
  # @param [String] parent
2991
2993
  # @param [String] dicom_web_path
2992
2994
  # The path of the DeleteStudy request. For example, `studies/`study_uid``.
@@ -3238,12 +3240,14 @@ module Google
3238
3240
  execute_or_queue_command(command, &block)
3239
3241
  end
3240
3242
 
3241
- # DeleteSeriesAsync deletes all instances within the given study and series
3242
- # using a long running operation. The method returns an Operation which will be
3243
- # marked successful when the deletion is complete. Warning: If you insert
3244
- # instances into a series while a delete operation is running for that series,
3245
- # the instances you insert might not appear in search results until after the
3246
- # deletion operation finishes.
3243
+ # DeleteSeries deletes all instances within the given study and series using a
3244
+ # long running operation. The method returns an Operation which will be marked
3245
+ # successful when the deletion is complete. Warning: If you insert instances
3246
+ # into a series while a delete operation is running for that series, the
3247
+ # instances you insert might not appear in search results until after the
3248
+ # deletion operation finishes. For samples that show how to call DeleteSeries,
3249
+ # see [Deleting a study, series, or instance](https://cloud.google.com/
3250
+ # healthcare/docs/how-tos/dicomweb#deleting_a_study_series_or_instance).
3247
3251
  # @param [String] parent
3248
3252
  # The name of the DICOM store that is being accessed. For example, `projects/`
3249
3253
  # project_id`/locations/`location_id`/datasets/`dataset_id`/dicomStores/`
@@ -3900,7 +3904,11 @@ module Google
3900
3904
  # method is not appropriate, consider using ExecuteBundle to load data. Every
3901
3905
  # resource in the input must contain a client-supplied ID. Each resource is
3902
3906
  # stored using the supplied ID regardless of the enable_update_create setting on
3903
- # the FHIR store. The import process does not enforce referential integrity,
3907
+ # the FHIR store. It is strongly advised not to include or encode any sensitive
3908
+ # data such as patient identifiers in client-specified resource IDs. Those IDs
3909
+ # are part of the FHIR resource path recorded in Cloud audit logs and Cloud Pub/
3910
+ # Sub notifications. Those IDs can also be contained in reference fields within
3911
+ # other resources. The import process does not enforce referential integrity,
3904
3912
  # regardless of the disable_referential_integrity setting on the FHIR store.
3905
3913
  # This allows the import of resources with arbitrary interdependencies without
3906
3914
  # considering grouping or ordering, but if the input data contains invalid
@@ -4408,6 +4416,62 @@ module Google
4408
4416
  execute_or_queue_command(command, &block)
4409
4417
  end
4410
4418
 
4419
+ # Validates an input FHIR resource's conformance to its profiles and the
4420
+ # profiles configured on the FHIR store. Implements the FHIR extended operation $
4421
+ # validate ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resource-
4422
+ # operations.html#validate), [STU3](http://hl7.org/implement/standards/fhir/STU3/
4423
+ # resource-operations.html#validate), or [R4](http://hl7.org/implement/standards/
4424
+ # fhir/R4/resource-operation-validate.html)). The request body must contain a
4425
+ # JSON-encoded FHIR resource, and the request headers must contain `Content-Type:
4426
+ # application/fhir+json`. The `Parameters` input syntax is not supported. The `
4427
+ # profile` query parameter can be used to request that the resource only be
4428
+ # validated against a specific profile. If a profile with the given URL cannot
4429
+ # be found in the FHIR store then an error is returned. Errors generated by
4430
+ # validation contain a JSON-encoded `OperationOutcome` resource describing the
4431
+ # reason for the error. If the request cannot be mapped to a valid API method on
4432
+ # a FHIR store, a generic GCP error might be returned instead.
4433
+ # @param [String] parent
4434
+ # The name of the FHIR store that holds the profiles being used for validation.
4435
+ # @param [String] type
4436
+ # The FHIR resource type of the resource being validated. For a complete list,
4437
+ # see the FHIR Resource Index ([DSTU2](http://hl7.org/implement/standards/fhir/
4438
+ # DSTU2/resourcelist.html), [STU3](http://hl7.org/implement/standards/fhir/STU3/
4439
+ # resourcelist.html), or [R4](http://hl7.org/implement/standards/fhir/R4/
4440
+ # resourcelist.html)). Must match the resource type in the provided content.
4441
+ # @param [Google::Apis::HealthcareV1beta1::HttpBody] http_body_object
4442
+ # @param [String] profile
4443
+ # A profile that this resource should be validated against.
4444
+ # @param [String] fields
4445
+ # Selector specifying which fields to include in a partial response.
4446
+ # @param [String] quota_user
4447
+ # Available to use for quota purposes for server-side applications. Can be any
4448
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4449
+ # @param [Google::Apis::RequestOptions] options
4450
+ # Request-specific options
4451
+ #
4452
+ # @yield [result, err] Result & error if block supplied
4453
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
4454
+ # @yieldparam err [StandardError] error object if request failed
4455
+ #
4456
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
4457
+ #
4458
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4459
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4460
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4461
+ 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)
4462
+ command = make_simple_command(:post, 'v1beta1/{+parent}/fhir/{+type}/$validate', options)
4463
+ command.request_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
4464
+ command.request_object = http_body_object
4465
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
4466
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
4467
+ command.params['parent'] = parent unless parent.nil?
4468
+ command.params['type'] = type unless type.nil?
4469
+ command.query['profile'] = profile unless profile.nil?
4470
+ command.query['fields'] = fields unless fields.nil?
4471
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4472
+ execute_or_queue_command(command, &block)
4473
+ end
4474
+
4411
4475
  # Gets the FHIR capability statement ([STU3](https://hl7.org/implement/standards/
4412
4476
  # fhir/STU3/capabilitystatement.html), [R4](https://hl7.org/implement/standards/
4413
4477
  # fhir/R4/capabilitystatement.html)), or the [conformance statement](https://hl7.
@@ -4570,20 +4634,25 @@ module Google
4570
4634
  # criteria identify more than one match, the request returns a `412 Precondition
4571
4635
  # Failed` error. If the search criteria identify zero matches, and the supplied
4572
4636
  # resource body contains an `id`, and the FHIR store has enable_update_create
4573
- # set, creates the resource with the client-specified ID. If the search criteria
4574
- # identify zero matches, and the supplied resource body does not contain an `id`,
4575
- # the resource is created with a server-assigned ID as per the create method.
4576
- # The request body must contain a JSON-encoded FHIR resource, and the request
4577
- # headers must contain `Content-Type: application/fhir+json`. On success, the
4578
- # response body contains a JSON-encoded representation of the updated resource,
4579
- # including the server-assigned version ID. Errors generated by the FHIR store
4580
- # contain a JSON-encoded `OperationOutcome` resource describing the reason for
4581
- # the error. If the request cannot be mapped to a valid API method on a FHIR
4582
- # store, a generic GCP error might be returned instead. This method requires the`
4583
- # healthcare.fhirStores.searchResources` and `healthcare.fhirResources.update`
4584
- # permissions on the parent FHIR store. For samples that show how to call `
4585
- # conditionalUpdate`, see [Conditionally updating a FHIR resource](/healthcare/
4586
- # docs/how-tos/fhir-resources#conditionally_updating_a_fhir_resource).
4637
+ # set, creates the resource with the client-specified ID. It is strongly advised
4638
+ # not to include or encode any sensitive data such as patient identifiers in
4639
+ # client-specified resource IDs. Those IDs are part of the FHIR resource path
4640
+ # recorded in Cloud audit logs and Cloud Pub/Sub notifications. Those IDs can
4641
+ # also be contained in reference fields within other resources. If the search
4642
+ # criteria identify zero matches, and the supplied resource body does not
4643
+ # contain an `id`, the resource is created with a server-assigned ID as per the
4644
+ # create method. The request body must contain a JSON-encoded FHIR resource, and
4645
+ # the request headers must contain `Content-Type: application/fhir+json`. On
4646
+ # success, the response body contains a JSON-encoded representation of the
4647
+ # updated resource, including the server-assigned version ID. Errors generated
4648
+ # by the FHIR store contain a JSON-encoded `OperationOutcome` resource
4649
+ # describing the reason for the error. If the request cannot be mapped to a
4650
+ # valid API method on a FHIR store, a generic GCP error might be returned
4651
+ # instead. This method requires the`healthcare.fhirStores.searchResources` and `
4652
+ # healthcare.fhirResources.update` permissions on the parent FHIR store. For
4653
+ # samples that show how to call `conditionalUpdate`, see [Conditionally updating
4654
+ # a FHIR resource](/healthcare/docs/how-tos/fhir-resources#
4655
+ # conditionally_updating_a_fhir_resource).
4587
4656
  # @param [String] parent
4588
4657
  # The name of the FHIR store this resource belongs to.
4589
4658
  # @param [String] type
@@ -4951,38 +5020,40 @@ module Google
4951
5020
  # described in the FHIR Search specification ([DSTU2](https://hl7.org/implement/
4952
5021
  # standards/fhir/DSTU2/search.html), [STU3](https://hl7.org/implement/standards/
4953
5022
  # fhir/STU3/search.html), [R4](https://hl7.org/implement/standards/fhir/R4/
4954
- # search.html)). Supports three methods of search defined by the specification: *
4955
- # `GET [base]?[parameters]` to search across all resources. * `GET [base]/[type]
4956
- # ?[parameters]` to search resources of a specified type. * `POST [base]/[type]/
4957
- # _search?[parameters]` as an alternate form having the same semantics as the `
4958
- # GET` method. The `GET` methods do not support compartment searches. The `POST`
4959
- # method does not support `application/x-www-form-urlencoded` search parameters.
4960
- # On success, the response body contains a JSON-encoded representation of a `
4961
- # Bundle` resource of type `searchset`, containing the results of the search.
4962
- # Errors generated by the FHIR store contain a JSON-encoded `OperationOutcome`
4963
- # resource describing the reason for the error. If the request cannot be mapped
4964
- # to a valid API method on a FHIR store, a generic GCP error might be returned
4965
- # instead. The server's capability statement, retrieved through capabilities,
4966
- # indicates what search parameters are supported on each FHIR resource. A list
4967
- # of all search parameters defined by the specification can be found in the FHIR
4968
- # Search Parameter Registry ([STU3](https://hl7.org/implement/standards/fhir/
4969
- # STU3/searchparameter-registry.html), [R4](https://hl7.org/implement/standards/
4970
- # fhir/R4/searchparameter-registry.html)). FHIR search parameters for DSTU2 can
4971
- # be found on each resource's definition page. Supported search modifiers: `:
4972
- # missing`, `:exact`, `:contains`, `:text`, `:in`, `:not-in`, `:above`, `:below`,
4973
- # `:[type]`, `:not`, and `:recurse`. Supported search result parameters: `_sort`
4974
- # , `_count`, `_include`, `_revinclude`, `_summary=text`, `_summary=data`, and `
4975
- # _elements`. The maximum number of search results returned defaults to 100,
4976
- # which can be overridden by the `_count` parameter up to a maximum limit of
4977
- # 1000. If there are additional results, the returned `Bundle` contains
4978
- # pagination links. Resources with a total size larger than 5MB or a field count
4979
- # larger than 50,000 might not be fully searchable as the server might trim its
4980
- # generated search index in those cases. Note: FHIR resources are indexed
4981
- # asynchronously, so there might be a slight delay between the time a resource
4982
- # is created or changes and when the change is reflected in search results. For
4983
- # samples and detailed information, see [Searching for FHIR resources](/
4984
- # healthcare/docs/how-tos/fhir-search) and [Advanced FHIR search features](/
4985
- # healthcare/docs/how-tos/fhir-advanced-search).
5023
+ # search.html)). Supports four methods of search defined by the specification: *
5024
+ # `GET [base]?[parameters]` to search across all resources. * `GET [base]/[type]?
5025
+ # [parameters]` to search resources of a specified type. * `POST [base]/_search?[
5026
+ # parameters]` as an alternate form having the same semantics as the `GET`
5027
+ # method across all resources. * `POST [base]/[type]/_search?[parameters]` as an
5028
+ # alternate form having the same semantics as the `GET` method for the specified
5029
+ # type. The `GET` and `POST` methods do not support compartment searches. The `
5030
+ # POST` method does not support `application/x-www-form-urlencoded` search
5031
+ # parameters. On success, the response body contains a JSON-encoded
5032
+ # representation of a `Bundle` resource of type `searchset`, containing the
5033
+ # results of the search. Errors generated by the FHIR store contain a JSON-
5034
+ # encoded `OperationOutcome` resource describing the reason for the error. If
5035
+ # the request cannot be mapped to a valid API method on a FHIR store, a generic
5036
+ # GCP error might be returned instead. The server's capability statement,
5037
+ # retrieved through capabilities, indicates what search parameters are supported
5038
+ # on each FHIR resource. A list of all search parameters defined by the
5039
+ # specification can be found in the FHIR Search Parameter Registry ([STU3](https:
5040
+ # //hl7.org/implement/standards/fhir/STU3/searchparameter-registry.html), [R4](
5041
+ # https://hl7.org/implement/standards/fhir/R4/searchparameter-registry.html)).
5042
+ # FHIR search parameters for DSTU2 can be found on each resource's definition
5043
+ # page. Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`, `
5044
+ # :in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `:recurse`.
5045
+ # Supported search result parameters: `_sort`, `_count`, `_include`, `
5046
+ # _revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The maximum
5047
+ # number of search results returned defaults to 100, which can be overridden by
5048
+ # the `_count` parameter up to a maximum limit of 1000. If there are additional
5049
+ # results, the returned `Bundle` contains pagination links. Resources with a
5050
+ # total size larger than 5MB or a field count larger than 50,000 might not be
5051
+ # fully searchable as the server might trim its generated search index in those
5052
+ # cases. Note: FHIR resources are indexed asynchronously, so there might be a
5053
+ # slight delay between the time a resource is created or changes and when the
5054
+ # change is reflected in search results. For samples and detailed information,
5055
+ # see [Searching for FHIR resources](/healthcare/docs/how-tos/fhir-search) and [
5056
+ # Advanced FHIR search features](/healthcare/docs/how-tos/fhir-advanced-search).
4986
5057
  # @param [String] parent
4987
5058
  # Name of the FHIR store to retrieve resources from.
4988
5059
  # @param [Google::Apis::HealthcareV1beta1::SearchResourcesRequest] search_resources_request_object
@@ -5015,18 +5086,103 @@ module Google
5015
5086
  execute_or_queue_command(command, &block)
5016
5087
  end
5017
5088
 
5089
+ # Searches for resources in the given FHIR store according to criteria specified
5090
+ # as query parameters. Implements the FHIR standard search interaction ([DSTU2](
5091
+ # https://hl7.org/implement/standards/fhir/DSTU2/http.html#search), [STU3](https:
5092
+ # //hl7.org/implement/standards/fhir/STU3/http.html#search), [R4](https://hl7.
5093
+ # org/implement/standards/fhir/R4/http.html#search)) using the search semantics
5094
+ # described in the FHIR Search specification ([DSTU2](https://hl7.org/implement/
5095
+ # standards/fhir/DSTU2/search.html), [STU3](https://hl7.org/implement/standards/
5096
+ # fhir/STU3/search.html), [R4](https://hl7.org/implement/standards/fhir/R4/
5097
+ # search.html)). Supports four methods of search defined by the specification: *
5098
+ # `GET [base]?[parameters]` to search across all resources. * `GET [base]/[type]?
5099
+ # [parameters]` to search resources of a specified type. * `POST [base]/_search?[
5100
+ # parameters]` as an alternate form having the same semantics as the `GET`
5101
+ # method across all resources. * `POST [base]/[type]/_search?[parameters]` as an
5102
+ # alternate form having the same semantics as the `GET` method for the specified
5103
+ # type. The `GET` and `POST` methods do not support compartment searches. The `
5104
+ # POST` method does not support `application/x-www-form-urlencoded` search
5105
+ # parameters. On success, the response body contains a JSON-encoded
5106
+ # representation of a `Bundle` resource of type `searchset`, containing the
5107
+ # results of the search. Errors generated by the FHIR store contain a JSON-
5108
+ # encoded `OperationOutcome` resource describing the reason for the error. If
5109
+ # the request cannot be mapped to a valid API method on a FHIR store, a generic
5110
+ # GCP error might be returned instead. The server's capability statement,
5111
+ # retrieved through capabilities, indicates what search parameters are supported
5112
+ # on each FHIR resource. A list of all search parameters defined by the
5113
+ # specification can be found in the FHIR Search Parameter Registry ([STU3](https:
5114
+ # //hl7.org/implement/standards/fhir/STU3/searchparameter-registry.html), [R4](
5115
+ # https://hl7.org/implement/standards/fhir/R4/searchparameter-registry.html)).
5116
+ # FHIR search parameters for DSTU2 can be found on each resource's definition
5117
+ # page. Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`, `
5118
+ # :in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `:recurse`.
5119
+ # Supported search result parameters: `_sort`, `_count`, `_include`, `
5120
+ # _revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The maximum
5121
+ # number of search results returned defaults to 100, which can be overridden by
5122
+ # the `_count` parameter up to a maximum limit of 1000. If there are additional
5123
+ # results, the returned `Bundle` contains pagination links. Resources with a
5124
+ # total size larger than 5MB or a field count larger than 50,000 might not be
5125
+ # fully searchable as the server might trim its generated search index in those
5126
+ # cases. Note: FHIR resources are indexed asynchronously, so there might be a
5127
+ # slight delay between the time a resource is created or changes and when the
5128
+ # change is reflected in search results. For samples and detailed information,
5129
+ # see [Searching for FHIR resources](/healthcare/docs/how-tos/fhir-search) and [
5130
+ # Advanced FHIR search features](/healthcare/docs/how-tos/fhir-advanced-search).
5131
+ # @param [String] parent
5132
+ # Name of the FHIR store to retrieve resources from.
5133
+ # @param [String] resource_type
5134
+ # The FHIR resource type to search, such as Patient or Observation. For a
5135
+ # complete list, see the FHIR Resource Index ([DSTU2](https://hl7.org/implement/
5136
+ # standards/fhir/DSTU2/resourcelist.html), [STU3](https://hl7.org/implement/
5137
+ # standards/fhir/STU3/resourcelist.html), [R4](https://hl7.org/implement/
5138
+ # standards/fhir/R4/resourcelist.html)).
5139
+ # @param [Google::Apis::HealthcareV1beta1::SearchResourcesRequest] search_resources_request_object
5140
+ # @param [String] fields
5141
+ # Selector specifying which fields to include in a partial response.
5142
+ # @param [String] quota_user
5143
+ # Available to use for quota purposes for server-side applications. Can be any
5144
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5145
+ # @param [Google::Apis::RequestOptions] options
5146
+ # Request-specific options
5147
+ #
5148
+ # @yield [result, err] Result & error if block supplied
5149
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::HttpBody] parsed result object
5150
+ # @yieldparam err [StandardError] error object if request failed
5151
+ #
5152
+ # @return [Google::Apis::HealthcareV1beta1::HttpBody]
5153
+ #
5154
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5155
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5156
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5157
+ def search_project_location_dataset_fhir_store_fhir_type(parent, resource_type, search_resources_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
5158
+ command = make_simple_command(:post, 'v1beta1/{+parent}/fhir/{resourceType}/_search', options)
5159
+ command.request_representation = Google::Apis::HealthcareV1beta1::SearchResourcesRequest::Representation
5160
+ command.request_object = search_resources_request_object
5161
+ command.response_representation = Google::Apis::HealthcareV1beta1::HttpBody::Representation
5162
+ command.response_class = Google::Apis::HealthcareV1beta1::HttpBody
5163
+ command.params['parent'] = parent unless parent.nil?
5164
+ command.params['resourceType'] = resource_type unless resource_type.nil?
5165
+ command.query['fields'] = fields unless fields.nil?
5166
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5167
+ execute_or_queue_command(command, &block)
5168
+ end
5169
+
5018
5170
  # Updates the entire contents of a resource. Implements the FHIR standard update
5019
5171
  # interaction ([DSTU2](https://hl7.org/implement/standards/fhir/DSTU2/http.html#
5020
5172
  # update), [STU3](https://hl7.org/implement/standards/fhir/STU3/http.html#update)
5021
5173
  # , [R4](https://hl7.org/implement/standards/fhir/R4/http.html#update)). If the
5022
5174
  # specified resource does not exist and the FHIR store has enable_update_create
5023
- # set, creates the resource with the client-specified ID. The request body must
5024
- # contain a JSON-encoded FHIR resource, and the request headers must contain `
5025
- # Content-Type: application/fhir+json`. The resource must contain an `id`
5026
- # element having an identical value to the ID in the REST path of the request.
5027
- # On success, the response body contains a JSON-encoded representation of the
5028
- # updated resource, including the server-assigned version ID. Errors generated
5029
- # by the FHIR store contain a JSON-encoded `OperationOutcome` resource
5175
+ # set, creates the resource with the client-specified ID. It is strongly advised
5176
+ # not to include or encode any sensitive data such as patient identifiers in
5177
+ # client-specified resource IDs. Those IDs are part of the FHIR resource path
5178
+ # recorded in Cloud audit logs and Cloud Pub/Sub notifications. Those IDs can
5179
+ # also be contained in reference fields within other resources. The request body
5180
+ # must contain a JSON-encoded FHIR resource, and the request headers must
5181
+ # contain `Content-Type: application/fhir+json`. The resource must contain an `
5182
+ # id` element having an identical value to the ID in the REST path of the
5183
+ # request. On success, the response body contains a JSON-encoded representation
5184
+ # of the updated resource, including the server-assigned version ID. Errors
5185
+ # generated by the FHIR store contain a JSON-encoded `OperationOutcome` resource
5030
5186
  # describing the reason for the error. If the request cannot be mapped to a
5031
5187
  # valid API method on a FHIR store, a generic GCP error might be returned
5032
5188
  # instead. For samples that show how to call `update`, see [Updating a FHIR
@@ -5492,6 +5648,47 @@ module Google
5492
5648
  execute_or_queue_command(command, &block)
5493
5649
  end
5494
5650
 
5651
+ # Gets multiple messages in the given HL7v2 store.
5652
+ # @param [String] parent
5653
+ # Name of the HL7v2 store to retrieve messages from, in the format: `projects/`
5654
+ # project_id`/locations/`location_id`/datasets/`dataset_id`/hl7v2Stores/`
5655
+ # hl7v2_store_id``.
5656
+ # @param [Array<String>, String] ids
5657
+ # The resource id of the HL7v2 messages to retrieve in the format: ``message_id``
5658
+ # , where the full resource name is ``parent`/messages/`message_id`` A maximum
5659
+ # of 100 messages can be retrieved in a batch. All 'ids' have to be under parent.
5660
+ # @param [String] view
5661
+ # Specifies the parts of the Messages resource to return in the response. When
5662
+ # unspecified, equivalent to BASIC.
5663
+ # @param [String] fields
5664
+ # Selector specifying which fields to include in a partial response.
5665
+ # @param [String] quota_user
5666
+ # Available to use for quota purposes for server-side applications. Can be any
5667
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5668
+ # @param [Google::Apis::RequestOptions] options
5669
+ # Request-specific options
5670
+ #
5671
+ # @yield [result, err] Result & error if block supplied
5672
+ # @yieldparam result [Google::Apis::HealthcareV1beta1::BatchGetMessagesResponse] parsed result object
5673
+ # @yieldparam err [StandardError] error object if request failed
5674
+ #
5675
+ # @return [Google::Apis::HealthcareV1beta1::BatchGetMessagesResponse]
5676
+ #
5677
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5678
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5679
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5680
+ def batch_project_location_dataset_hl7_v2_store_message_get(parent, ids: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
5681
+ command = make_simple_command(:get, 'v1beta1/{+parent}/messages:batchGet', options)
5682
+ command.response_representation = Google::Apis::HealthcareV1beta1::BatchGetMessagesResponse::Representation
5683
+ command.response_class = Google::Apis::HealthcareV1beta1::BatchGetMessagesResponse
5684
+ command.params['parent'] = parent unless parent.nil?
5685
+ command.query['ids'] = ids unless ids.nil?
5686
+ command.query['view'] = view unless view.nil?
5687
+ command.query['fields'] = fields unless fields.nil?
5688
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5689
+ execute_or_queue_command(command, &block)
5690
+ end
5691
+
5495
5692
  # Parses and stores an HL7v2 message. This method triggers an asynchronous
5496
5693
  # notification to any Cloud Pub/Sub topic configured in projects.locations.
5497
5694
  # datasets.hl7V2Stores.Hl7V2NotificationConfig, if the filtering matches the
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-healthcare_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.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-01-08 00:00:00.000000000 Z
11
+ date: 2021-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-healthcare_v1beta1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-healthcare_v1beta1/v0.1.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-healthcare_v1beta1/v0.2.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-healthcare_v1beta1
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.1.4
72
+ rubygems_version: 3.2.6
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Cloud Healthcare API V1beta1