google-apis-healthcare_v1beta1 0.1.0 → 0.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 27b39dc18f29d595a3a6dfbdff9a31efb2d136bb32f7acd02ed18b305a83f773
4
- data.tar.gz: 33d7f972fd911ec245bf1390e69c204e4e28003340c067ce0cfb48787a6be881
3
+ metadata.gz: 2e3f477313206656b0736f715a3f03db5d40dd212df8cbb3bf10b1bcc3a0e5a7
4
+ data.tar.gz: 5dbf14dbb2dcf7975f32e0eb0edc070ea6db302d1ac65a07c88d58e768cb9c90
5
5
  SHA512:
6
- metadata.gz: a41726f21507388849bb06218e0f0c6c1fce39c81d43c53ffd359614cad72f2357aa5b2a183e4667946c2e1347e762682fe8d4db0a83018817a8940a3dace399
7
- data.tar.gz: 3a5895afeff2089af5c451e035eeb048480665f548b6bec4a50a9e37c1ed7d34ff97dd698e18d9c35593b61e8e51ee7679f1367a68ac7547b94bafc2c80bdcce
6
+ metadata.gz: c313551e4065555e56adf8f08dbd65d9e3842e9fde534750250ac0a9d7a7ffb6fd9591831c816db5ac8c63fb664900cc57244b8d059cb1421dfd2fe78840d131
7
+ data.tar.gz: f3f051da42ef81c3b220b7b14aad4015e413db73215f658c21b26c6c63485919adb9a2619b22cbbdc9068cddcf0a6dc5aaa135e9e1fa996809385eb7aff6b45d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Release history for google-apis-healthcare_v1beta1
2
2
 
3
+ ### v0.6.0 (2021-03-26)
4
+
5
+ * Regenerated from discovery document revision 20210317
6
+
7
+ ### v0.5.0 (2021-03-18)
8
+
9
+ * Regenerated from discovery document revision 20210301
10
+ * Regenerated using generator version 0.2.0
11
+
12
+ ### v0.4.0 (2021-03-04)
13
+
14
+ * Regenerated from discovery document revision 20210217
15
+
16
+ ### v0.3.0 (2021-02-18)
17
+
18
+ * Regenerated from discovery document revision 20210205
19
+
20
+ ### v0.2.0 (2021-02-05)
21
+
22
+ * Regenerated from discovery document revision 20210203
23
+ * Regenerated using generator version 0.1.2
24
+
3
25
  ### v0.1.0 (2021-01-07)
4
26
 
5
27
  * Regenerated using generator version 0.1.1
@@ -24,25 +24,27 @@ module Google
24
24
 
25
25
  # Activates the latest revision of the specified Consent by committing a new
26
26
  # revision with `state` updated to `ACTIVE`. If the latest revision of the given
27
- # consent is in the `ACTIVE` state, no new revision is committed.
27
+ # Consent is in the `ACTIVE` state, no new revision is committed. A
28
+ # FAILED_PRECONDITION error occurs if the latest revision of the given consent
29
+ # is in the `REJECTED` or `REVOKED` state.
28
30
  class ActivateConsentRequest
29
31
  include Google::Apis::Core::Hashable
30
32
 
31
- # Required. The resource name of the consent artifact that contains proof of the
32
- # end user's consent, of the form `projects/`project_id`/locations/`location_id`/
33
- # datasets/`dataset_id`/consentStores/`consent_store_id`/consentArtifacts/`
34
- # consent_artifact_id``. If the draft consent had a consent artifact, this
35
- # consent artifact overwrites it.
33
+ # Required. The resource name of the Consent artifact that contains
34
+ # documentation of the user's consent, of the form `projects/`project_id`/
35
+ # locations/`location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`/
36
+ # consentArtifacts/`consent_artifact_id``. If the draft Consent had a Consent
37
+ # artifact, this Consent artifact overwrites it.
36
38
  # Corresponds to the JSON property `consentArtifact`
37
39
  # @return [String]
38
40
  attr_accessor :consent_artifact
39
41
 
40
- # Timestamp in UTC of when this consent is considered expired.
42
+ # Timestamp in UTC of when this Consent is considered expired.
41
43
  # Corresponds to the JSON property `expireTime`
42
44
  # @return [String]
43
45
  attr_accessor :expire_time
44
46
 
45
- # The time to live for this consent from when it is marked as active.
47
+ # The time to live for this Consent from when it is marked as active.
46
48
  # Corresponds to the JSON property `ttl`
47
49
  # @return [String]
48
50
  attr_accessor :ttl
@@ -88,7 +90,7 @@ module Google
88
90
  # @return [Array<Google::Apis::HealthcareV1beta1::Entity>]
89
91
  attr_accessor :entities
90
92
 
91
- # entity_mentions contains all the annotated medical entities that were were
93
+ # entity_mentions contains all the annotated medical entities that were
92
94
  # mentioned in the provided document.
93
95
  # Corresponds to the JSON property `entityMentions`
94
96
  # @return [Array<Google::Apis::HealthcareV1beta1::EntityMention>]
@@ -276,13 +278,13 @@ module Google
276
278
  end
277
279
  end
278
280
 
279
- # An attribute value for a consent or data mapping. Each Attribute must have a
280
- # corresponding AttributeDefinition in the consent store that defines the
281
+ # An attribute value for a Consent or User data mapping. Each Attribute must
282
+ # have a corresponding AttributeDefinition in the consent store that defines the
281
283
  # default and allowed values.
282
284
  class Attribute
283
285
  include Google::Apis::Core::Hashable
284
286
 
285
- # Indicates the name of an attribute defined at the consent store.
287
+ # Indicates the name of an attribute defined in the consent store.
286
288
  # Corresponds to the JSON property `attributeDefinitionId`
287
289
  # @return [String]
288
290
  attr_accessor :attribute_definition_id
@@ -323,27 +325,28 @@ module Google
323
325
  # @return [String]
324
326
  attr_accessor :category
325
327
 
326
- # Default values of the attribute in consents. If no default values are
327
- # specified, it defaults to an empty value.
328
+ # Optional. Default values of the attribute in Consents. If no default values
329
+ # are specified, it defaults to an empty value.
328
330
  # Corresponds to the JSON property `consentDefaultValues`
329
331
  # @return [Array<String>]
330
332
  attr_accessor :consent_default_values
331
333
 
332
- # Default value of the attribute in user data mappings. If no default value is
333
- # specified, it defaults to an empty value. This field is only applicable to
334
- # attributes of the category `RESOURCE`.
334
+ # Optional. Default value of the attribute in User data mappings. If no default
335
+ # value is specified, it defaults to an empty value. This field is only
336
+ # applicable to attributes of the category `RESOURCE`.
335
337
  # Corresponds to the JSON property `dataMappingDefaultValue`
336
338
  # @return [String]
337
339
  attr_accessor :data_mapping_default_value
338
340
 
339
- # A description of the attribute.
341
+ # Optional. A description of the attribute.
340
342
  # Corresponds to the JSON property `description`
341
343
  # @return [String]
342
344
  attr_accessor :description
343
345
 
344
- # Resource name of the attribute definition, of the form `projects/`project_id`/
346
+ # Resource name of the Attribute definition, of the form `projects/`project_id`/
345
347
  # locations/`location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`/
346
- # attributeDefinitions/`attribute_definition_id``.
348
+ # attributeDefinitions/`attribute_definition_id``. Cannot be changed after
349
+ # creation.
347
350
  # Corresponds to the JSON property `name`
348
351
  # @return [String]
349
352
  attr_accessor :name
@@ -434,6 +437,25 @@ module Google
434
437
  end
435
438
  end
436
439
 
440
+ # Gets multiple messages in a specified HL7v2 store.
441
+ class BatchGetMessagesResponse
442
+ include Google::Apis::Core::Hashable
443
+
444
+ # The returned Messages. See `MessageView` for populated fields.
445
+ # Corresponds to the JSON property `messages`
446
+ # @return [Array<Google::Apis::HealthcareV1beta1::Message>]
447
+ attr_accessor :messages
448
+
449
+ def initialize(**args)
450
+ update!(**args)
451
+ end
452
+
453
+ # Update properties of this object
454
+ def update!(**args)
455
+ @messages = args[:messages] if args.key?(:messages)
456
+ end
457
+ end
458
+
437
459
  # Associates `members` with a `role`.
438
460
  class Binding
439
461
  include Google::Apis::Core::Hashable
@@ -562,7 +584,7 @@ module Google
562
584
  end
563
585
  end
564
586
 
565
- # Checks if a particular data_id of a User data mapping in the given Consent
587
+ # Checks if a particular data_id of a User data mapping in the given consent
566
588
  # store is consented for a given use.
567
589
  class CheckDataAccessRequest
568
590
  include Google::Apis::Core::Hashable
@@ -572,8 +594,8 @@ module Google
572
594
  # @return [Google::Apis::HealthcareV1beta1::ConsentList]
573
595
  attr_accessor :consent_list
574
596
 
575
- # The unique identifier of the data to check access for. It must exist in the
576
- # given `consent_store`.
597
+ # Required. The unique identifier of the resource to check access for. This
598
+ # identifier must correspond to a User data mapping in the given consent store.
577
599
  # Corresponds to the JSON property `dataId`
578
600
  # @return [String]
579
601
  attr_accessor :data_id
@@ -583,8 +605,8 @@ module Google
583
605
  # @return [Hash<String,String>]
584
606
  attr_accessor :request_attributes
585
607
 
586
- # The view for CheckDataAccessResponse. If unspecified, defaults to `BASIC` and
587
- # returns `consented` as `TRUE` or `FALSE`.
608
+ # Optional. The view for CheckDataAccessResponse. If unspecified, defaults to `
609
+ # BASIC` and returns `consented` as `TRUE` or `FALSE`.
588
610
  # Corresponds to the JSON property `responseView`
589
611
  # @return [String]
590
612
  attr_accessor :response_view
@@ -602,7 +624,7 @@ module Google
602
624
  end
603
625
  end
604
626
 
605
- # Checks if a particular data_id of a User data mapping in the given Consent
627
+ # Checks if a particular data_id of a User data mapping in the given consent
606
628
  # store is consented for a given use.
607
629
  class CheckDataAccessResponse
608
630
  include Google::Apis::Core::Hashable
@@ -612,7 +634,7 @@ module Google
612
634
  # @return [Hash<String,Google::Apis::HealthcareV1beta1::ConsentEvaluation>]
613
635
  attr_accessor :consent_details
614
636
 
615
- # Whether the requested data is consented for the given use.
637
+ # Whether the requested resource is consented for the given use.
616
638
  # Corresponds to the JSON property `consented`
617
639
  # @return [Boolean]
618
640
  attr_accessor :consented
@@ -648,11 +670,11 @@ module Google
648
670
  end
649
671
  end
650
672
 
651
- # Represents an end user's consent.
673
+ # Represents a user's consent.
652
674
  class Consent
653
675
  include Google::Apis::Core::Hashable
654
676
 
655
- # Required. The resource name of the consent artifact that contains proof of the
677
+ # Required. The resource name of the Consent artifact that contains proof of the
656
678
  # end user's consent, of the form `projects/`project_id`/locations/`location_id`/
657
679
  # datasets/`dataset_id`/consentStores/`consent_store_id`/consentArtifacts/`
658
680
  # consent_artifact_id``.
@@ -660,17 +682,17 @@ module Google
660
682
  # @return [String]
661
683
  attr_accessor :consent_artifact
662
684
 
663
- # Timestamp in UTC of when this consent is considered expired.
685
+ # Timestamp in UTC of when this Consent is considered expired.
664
686
  # Corresponds to the JSON property `expireTime`
665
687
  # @return [String]
666
688
  attr_accessor :expire_time
667
689
 
668
- # User-supplied key-value pairs used to organize consent resources. Metadata
669
- # keys must: - be between 1 and 63 characters long - have a UTF-8 encoding of
670
- # maximum 128 bytes - begin with a letter - consist of up to 63 characters
671
- # including lowercase letters, numeric characters, underscores, and dashes
672
- # Metadata values must be: - be between 1 and 63 characters long - have a UTF-8
673
- # encoding of maximum 128 bytes - consist of up to 63 characters including
690
+ # Optional. User-supplied key-value pairs used to organize Consent resources.
691
+ # Metadata keys must: - be between 1 and 63 characters long - have a UTF-8
692
+ # encoding of maximum 128 bytes - begin with a letter - consist of up to 63
693
+ # characters including lowercase letters, numeric characters, underscores, and
694
+ # dashes Metadata values must be: - be between 1 and 63 characters long - have a
695
+ # UTF-8 encoding of maximum 128 bytes - consist of up to 63 characters including
674
696
  # lowercase letters, numeric characters, underscores, and dashes No more than 64
675
697
  # metadata entries can be associated with a given consent.
676
698
  # Corresponds to the JSON property `metadata`
@@ -679,12 +701,12 @@ module Google
679
701
 
680
702
  # Resource name of the Consent, of the form `projects/`project_id`/locations/`
681
703
  # location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`/consents/`
682
- # consent_id``.
704
+ # consent_id``. Cannot be changed after creation.
683
705
  # Corresponds to the JSON property `name`
684
706
  # @return [String]
685
707
  attr_accessor :name
686
708
 
687
- # Represents an end user's consent in terms of the resources that can be
709
+ # Optional. Represents a user's consent in terms of the resources that can be
688
710
  # accessed and under what conditions.
689
711
  # Corresponds to the JSON property `policies`
690
712
  # @return [Array<Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1ConsentPolicy>]
@@ -695,19 +717,19 @@ module Google
695
717
  # @return [String]
696
718
  attr_accessor :revision_create_time
697
719
 
698
- # Output only. The revision ID of the consent. The format is an 8-character
720
+ # Output only. The revision ID of the Consent. The format is an 8-character
699
721
  # hexadecimal string. Refer to a specific revision of a Consent by appending `@`
700
722
  # revision_id`` to the Consent's resource name.
701
723
  # Corresponds to the JSON property `revisionId`
702
724
  # @return [String]
703
725
  attr_accessor :revision_id
704
726
 
705
- # Indicates the current state of this consent.
727
+ # Required. Indicates the current state of this Consent.
706
728
  # Corresponds to the JSON property `state`
707
729
  # @return [String]
708
730
  attr_accessor :state
709
731
 
710
- # Input only. The time to live for this consent from when it is created.
732
+ # Input only. The time to live for this Consent from when it is created.
711
733
  # Corresponds to the JSON property `ttl`
712
734
  # @return [String]
713
735
  attr_accessor :ttl
@@ -736,16 +758,18 @@ module Google
736
758
  end
737
759
  end
738
760
 
739
- # Proof of an end user's consent.
761
+ # Documentation of a user's consent.
740
762
  class ConsentArtifact
741
763
  include Google::Apis::Core::Hashable
742
764
 
743
- # Screenshots of the consent content.
765
+ # Optional. Screenshots, PDFs, or other binary information documenting the user'
766
+ # s consent.
744
767
  # Corresponds to the JSON property `consentContentScreenshots`
745
768
  # @return [Array<Google::Apis::HealthcareV1beta1::Image>]
746
769
  attr_accessor :consent_content_screenshots
747
770
 
748
- # An string indicating the version of the consent content.
771
+ # Optional. An string indicating the version of the consent information shown to
772
+ # the user.
749
773
  # Corresponds to the JSON property `consentContentVersion`
750
774
  # @return [String]
751
775
  attr_accessor :consent_content_version
@@ -755,15 +779,15 @@ module Google
755
779
  # @return [Google::Apis::HealthcareV1beta1::Signature]
756
780
  attr_accessor :guardian_signature
757
781
 
758
- # Metadata associated with the consent artifact. For example, the consent locale
759
- # or user agent version.
782
+ # Optional. Metadata associated with the Consent artifact. For example, the
783
+ # consent locale or user agent version.
760
784
  # Corresponds to the JSON property `metadata`
761
785
  # @return [Hash<String,String>]
762
786
  attr_accessor :metadata
763
787
 
764
788
  # Resource name of the Consent artifact, of the form `projects/`project_id`/
765
789
  # locations/`location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`/
766
- # consentArtifacts/`consent_artifact_id``.
790
+ # consentArtifacts/`consent_artifact_id``. Cannot be changed after creation.
767
791
  # Corresponds to the JSON property `name`
768
792
  # @return [String]
769
793
  attr_accessor :name
@@ -840,36 +864,39 @@ module Google
840
864
  end
841
865
  end
842
866
 
843
- # Represents a Consent store.
867
+ # Represents a consent store.
844
868
  class ConsentStore
845
869
  include Google::Apis::Core::Hashable
846
870
 
847
- # Default time to live for consents in this store. Must be at least 24 hours.
848
- # Updating this field will not affect the expiration time of existing consents.
871
+ # Optional. Default time to live for Consents created in this store. Must be at
872
+ # least 24 hours. Updating this field will not affect the expiration time of
873
+ # existing consents.
849
874
  # Corresponds to the JSON property `defaultConsentTtl`
850
875
  # @return [String]
851
876
  attr_accessor :default_consent_ttl
852
877
 
853
- # If true, UpdateConsent creates the consent if it does not already exist.
878
+ # Optional. If `true`, UpdateConsent creates the Consent if it does not already
879
+ # exist. If unspecified, defaults to `false`.
854
880
  # Corresponds to the JSON property `enableConsentCreateOnUpdate`
855
881
  # @return [Boolean]
856
882
  attr_accessor :enable_consent_create_on_update
857
883
  alias_method :enable_consent_create_on_update?, :enable_consent_create_on_update
858
884
 
859
- # User-supplied key-value pairs used to organize Consent stores. Label keys must
860
- # be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128
861
- # bytes, and must conform to the following PCRE regular expression: \p`Ll`\p`Lo``
862
- # 0,62` Label values must be between 1 and 63 characters long, have a UTF-8
863
- # encoding of maximum 128 bytes, and must conform to the following PCRE regular
864
- # expression: [\p`Ll`\p`Lo`\p`N`_-]`0,63` No more than 64 labels can be
865
- # associated with a given store.
885
+ # Optional. User-supplied key-value pairs used to organize consent stores. Label
886
+ # keys must be between 1 and 63 characters long, have a UTF-8 encoding of
887
+ # maximum 128 bytes, and must conform to the following PCRE regular expression: \
888
+ # p`Ll`\p`Lo``0,62`. Label values must be between 1 and 63 characters long, have
889
+ # a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE
890
+ # regular expression: [\p`Ll`\p`Lo`\p`N`_-]`0,63`. No more than 64 labels can be
891
+ # associated with a given store. For more information: https://cloud.google.com/
892
+ # healthcare/docs/how-tos/labeling-resources
866
893
  # Corresponds to the JSON property `labels`
867
894
  # @return [Hash<String,String>]
868
895
  attr_accessor :labels
869
896
 
870
- # Resource name of the Consent store, of the form `projects/`project_id`/
897
+ # Resource name of the consent store, of the form `projects/`project_id`/
871
898
  # locations/`location_id`/datasets/`dataset_id`/consentStores/`consent_store_id``
872
- # .
899
+ # . Cannot be changed after creation.
873
900
  # Corresponds to the JSON property `name`
874
901
  # @return [String]
875
902
  attr_accessor :name
@@ -1516,7 +1543,10 @@ module Google
1516
1543
  end
1517
1544
  end
1518
1545
 
1519
- # Evaluate an end user's Consents for all matching User data mappings.
1546
+ # Evaluate a user's Consents for all matching User data mappings. Note: User
1547
+ # data mappings are indexed asynchronously, causing slight delays between the
1548
+ # time mappings are created or updated and when they are included in
1549
+ # EvaluateUserConsents results.
1520
1550
  class EvaluateUserConsentsRequest
1521
1551
  include Google::Apis::Core::Hashable
1522
1552
 
@@ -1525,30 +1555,31 @@ module Google
1525
1555
  # @return [Google::Apis::HealthcareV1beta1::ConsentList]
1526
1556
  attr_accessor :consent_list
1527
1557
 
1528
- # Limit on the number of user data mappings to return in a single response. If
1529
- # not specified, 100 is used. May not be larger than 1000.
1558
+ # Optional. Limit on the number of User data mappings to return in a single
1559
+ # response. If not specified, 100 is used. May not be larger than 1000.
1530
1560
  # Corresponds to the JSON property `pageSize`
1531
1561
  # @return [Fixnum]
1532
1562
  attr_accessor :page_size
1533
1563
 
1534
- # Token to retrieve the next page of results to get the first page.
1564
+ # Optional. Token to retrieve the next page of results, or empty to get the
1565
+ # first page.
1535
1566
  # Corresponds to the JSON property `pageToken`
1536
1567
  # @return [String]
1537
1568
  attr_accessor :page_token
1538
1569
 
1539
- # The values of request attributes associated with this access request.
1570
+ # Required. The values of request attributes associated with this access request.
1540
1571
  # Corresponds to the JSON property `requestAttributes`
1541
1572
  # @return [Hash<String,String>]
1542
1573
  attr_accessor :request_attributes
1543
1574
 
1544
- # The values of resources attributes associated with the type of data being
1545
- # requested. If no values are specified, then all data types are queried.
1575
+ # Optional. The values of resource attributes associated with the resources
1576
+ # being requested. If no values are specified, then all resources are queried.
1546
1577
  # Corresponds to the JSON property `resourceAttributes`
1547
1578
  # @return [Hash<String,String>]
1548
1579
  attr_accessor :resource_attributes
1549
1580
 
1550
- # The view for EvaluateUserConsentsResponse. If unspecified, defaults to `BASIC`
1551
- # and returns `consented` as `TRUE` or `FALSE`.
1581
+ # Optional. The view for EvaluateUserConsentsResponse. If unspecified, defaults
1582
+ # to `BASIC` and returns `consented` as `TRUE` or `FALSE`.
1552
1583
  # Corresponds to the JSON property `responseView`
1553
1584
  # @return [String]
1554
1585
  attr_accessor :response_view
@@ -1574,11 +1605,11 @@ module Google
1574
1605
  end
1575
1606
  end
1576
1607
 
1577
- # Evaluate an end user's Consents for all matching User data mappings.
1608
+ #
1578
1609
  class EvaluateUserConsentsResponse
1579
1610
  include Google::Apis::Core::Hashable
1580
1611
 
1581
- # Token to retrieve the next page of results or empty if there are no more
1612
+ # Token to retrieve the next page of results, or empty if there are no more
1582
1613
  # results in the list. This token is valid for 72 hours after it is created.
1583
1614
  # Corresponds to the JSON property `nextPageToken`
1584
1615
  # @return [String]
@@ -1937,10 +1968,11 @@ module Google
1937
1968
  # updateCreate). This determines if the client can use an Update operation to
1938
1969
  # create a new resource with a client-specified ID. If false, all IDs are server-
1939
1970
  # 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.
1971
+ # resource return errors. It is strongly advised not to include or encode any
1972
+ # sensitive data such as patient identifiers in client-specified resource IDs.
1973
+ # Those IDs are part of the FHIR resource path recorded in Cloud audit logs and
1974
+ # Pub/Sub notifications. Those IDs can also be contained in reference fields
1975
+ # within other resources.
1944
1976
  # Corresponds to the JSON property `enableUpdateCreate`
1945
1977
  # @return [Boolean]
1946
1978
  attr_accessor :enable_update_create
@@ -1983,6 +2015,11 @@ module Google
1983
2015
  # @return [Array<Google::Apis::HealthcareV1beta1::StreamConfig>]
1984
2016
  attr_accessor :stream_configs
1985
2017
 
2018
+ # Contains the configuration for FHIR profiles and validation.
2019
+ # Corresponds to the JSON property `validationConfig`
2020
+ # @return [Google::Apis::HealthcareV1beta1::ValidationConfig]
2021
+ attr_accessor :validation_config
2022
+
1986
2023
  # Immutable. The FHIR specification version that this FHIR store supports
1987
2024
  # natively. This field is immutable after store creation. Requests are rejected
1988
2025
  # if they contain FHIR resources of a different version. Version is required for
@@ -2005,6 +2042,7 @@ module Google
2005
2042
  @name = args[:name] if args.key?(:name)
2006
2043
  @notification_config = args[:notification_config] if args.key?(:notification_config)
2007
2044
  @stream_configs = args[:stream_configs] if args.key?(:stream_configs)
2045
+ @validation_config = args[:validation_config] if args.key?(:validation_config)
2008
2046
  @version = args[:version] if args.key?(:version)
2009
2047
  end
2010
2048
  end
@@ -2335,8 +2373,8 @@ module Google
2335
2373
  end
2336
2374
  end
2337
2375
 
2338
- # Represents an end user's consent in terms of the resources that can be
2339
- # accessed and under what conditions.
2376
+ # Represents a user's consent in terms of the resources that can be accessed and
2377
+ # under what conditions.
2340
2378
  class GoogleCloudHealthcareV1beta1ConsentPolicy
2341
2379
  include Google::Apis::Core::Hashable
2342
2380
 
@@ -2359,8 +2397,9 @@ module Google
2359
2397
  # @return [Google::Apis::HealthcareV1beta1::Expr]
2360
2398
  attr_accessor :authorization_rule
2361
2399
 
2362
- # The data resources that this policy applies to. A data resource is a match if
2363
- # it matches all the attributes listed here.
2400
+ # The resources that this policy applies to. A resource is a match if it matches
2401
+ # all the attributes listed here. If empty, this policy applies to all User data
2402
+ # mappings for the given user.
2364
2403
  # Corresponds to the JSON property `resourceAttributes`
2365
2404
  # @return [Array<Google::Apis::HealthcareV1beta1::Attribute>]
2366
2405
  attr_accessor :resource_attributes
@@ -2493,14 +2532,15 @@ module Google
2493
2532
  # Points to a Cloud Storage URI containing file(s) with content only. The URI
2494
2533
  # must be in the following format: `gs://`bucket_id`/`object_id``. The URI can
2495
2534
  # include wildcards in `object_id` and thus identify multiple files. Supported
2496
- # wildcards: '*' to match 0 or more non-separator characters '**' to match 0 or
2497
- # more characters (including separators). Must be used at the end of a path and
2498
- # with no other wildcards in the path. Can also be used with a file extension (
2499
- # such as .dcm), which imports all files with the extension in the specified
2500
- # directory and its sub-directories. For example, `gs://my-bucket/my-directory/**
2501
- # .dcm` imports all files with .dcm extensions in `my-directory/` and its sub-
2502
- # directories. '?' to match 1 character All other URI formats are invalid. Files
2503
- # matching the wildcard are expected to contain content only, no metadata.
2535
+ # wildcards: * '*' to match 0 or more non-separator characters * '**' to match 0
2536
+ # or more characters (including separators). Must be used at the end of a path
2537
+ # and with no other wildcards in the path. Can also be used with a file
2538
+ # extension (such as .dcm), which imports all files with the extension in the
2539
+ # specified directory and its sub-directories. For example, `gs://my-bucket/my-
2540
+ # directory/**.dcm` imports all files with .dcm extensions in `my-directory/`
2541
+ # and its sub-directories. * '?' to match 1 character. All other URI formats are
2542
+ # invalid. Files matching the wildcard are expected to contain content only, no
2543
+ # metadata.
2504
2544
  # Corresponds to the JSON property `uri`
2505
2545
  # @return [String]
2506
2546
  attr_accessor :uri
@@ -2659,148 +2699,6 @@ module Google
2659
2699
  end
2660
2700
  end
2661
2701
 
2662
- # Response when errors occur while exporting resources. This structure is
2663
- # included in the error details to describe the detailed outcome. It is only
2664
- # included when the operation finishes with errors.
2665
- class GoogleCloudHealthcareV1beta1FhirRestExportResourcesErrorDetails
2666
- include Google::Apis::Core::Hashable
2667
-
2668
- # The number of resources that had errors.
2669
- # Corresponds to the JSON property `errorCount`
2670
- # @return [Fixnum]
2671
- attr_accessor :error_count
2672
-
2673
- # The name of the FHIR store where resources have been exported, in the format `
2674
- # projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/fhirStores/
2675
- # `fhir_store_id``.
2676
- # Corresponds to the JSON property `fhirStore`
2677
- # @return [String]
2678
- attr_accessor :fhir_store
2679
-
2680
- # The total number of resources included in the export operation. This is the
2681
- # sum of the success and error counts.
2682
- # Corresponds to the JSON property `resourceCount`
2683
- # @return [Fixnum]
2684
- attr_accessor :resource_count
2685
-
2686
- # The number of resources that were exported.
2687
- # Corresponds to the JSON property `successCount`
2688
- # @return [Fixnum]
2689
- attr_accessor :success_count
2690
-
2691
- def initialize(**args)
2692
- update!(**args)
2693
- end
2694
-
2695
- # Update properties of this object
2696
- def update!(**args)
2697
- @error_count = args[:error_count] if args.key?(:error_count)
2698
- @fhir_store = args[:fhir_store] if args.key?(:fhir_store)
2699
- @resource_count = args[:resource_count] if args.key?(:resource_count)
2700
- @success_count = args[:success_count] if args.key?(:success_count)
2701
- end
2702
- end
2703
-
2704
- # Response when all resources export successfully. This structure is included
2705
- # in the response to describe the detailed outcome after the operation finishes
2706
- # successfully.
2707
- class GoogleCloudHealthcareV1beta1FhirRestExportResourcesResponse
2708
- include Google::Apis::Core::Hashable
2709
-
2710
- # The name of the FHIR store where resources have been exported, in the format `
2711
- # projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/fhirStores/
2712
- # `fhir_store_id``.
2713
- # Corresponds to the JSON property `fhirStore`
2714
- # @return [String]
2715
- attr_accessor :fhir_store
2716
-
2717
- # The total number of resources exported from the requested FHIR store.
2718
- # Corresponds to the JSON property `resourceCount`
2719
- # @return [Fixnum]
2720
- attr_accessor :resource_count
2721
-
2722
- def initialize(**args)
2723
- update!(**args)
2724
- end
2725
-
2726
- # Update properties of this object
2727
- def update!(**args)
2728
- @fhir_store = args[:fhir_store] if args.key?(:fhir_store)
2729
- @resource_count = args[:resource_count] if args.key?(:resource_count)
2730
- end
2731
- end
2732
-
2733
- # Error response of importing resources. This structure is included in the
2734
- # error details to describe the detailed error after the operation finishes with
2735
- # some failure.
2736
- class GoogleCloudHealthcareV1beta1FhirRestImportResourcesErrorDetails
2737
- include Google::Apis::Core::Hashable
2738
-
2739
- # The number of resources that had errors.
2740
- # Corresponds to the JSON property `errorCount`
2741
- # @return [Fixnum]
2742
- attr_accessor :error_count
2743
-
2744
- # The name of the FHIR store where resources have been imported, in the format `
2745
- # projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/fhirStores/
2746
- # `fhir_store_id``.
2747
- # Corresponds to the JSON property `fhirStore`
2748
- # @return [String]
2749
- attr_accessor :fhir_store
2750
-
2751
- # The total number of resources included in the source data. This is the sum of
2752
- # the success and error counts.
2753
- # Corresponds to the JSON property `inputSize`
2754
- # @return [Fixnum]
2755
- attr_accessor :input_size
2756
-
2757
- # The number of resources that have been imported.
2758
- # Corresponds to the JSON property `successCount`
2759
- # @return [Fixnum]
2760
- attr_accessor :success_count
2761
-
2762
- def initialize(**args)
2763
- update!(**args)
2764
- end
2765
-
2766
- # Update properties of this object
2767
- def update!(**args)
2768
- @error_count = args[:error_count] if args.key?(:error_count)
2769
- @fhir_store = args[:fhir_store] if args.key?(:fhir_store)
2770
- @input_size = args[:input_size] if args.key?(:input_size)
2771
- @success_count = args[:success_count] if args.key?(:success_count)
2772
- end
2773
- end
2774
-
2775
- # Final response of importing resources. This structure is included in the
2776
- # response to describe the detailed outcome after the operation finishes
2777
- # successfully.
2778
- class GoogleCloudHealthcareV1beta1FhirRestImportResourcesResponse
2779
- include Google::Apis::Core::Hashable
2780
-
2781
- # The name of the FHIR store where the resources have been imported, in the
2782
- # format `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
2783
- # fhirStores/`fhir_store_id``.
2784
- # Corresponds to the JSON property `fhirStore`
2785
- # @return [String]
2786
- attr_accessor :fhir_store
2787
-
2788
- # The total number of resources included in the source data.
2789
- # Corresponds to the JSON property `inputSize`
2790
- # @return [Fixnum]
2791
- attr_accessor :input_size
2792
-
2793
- def initialize(**args)
2794
- update!(**args)
2795
- end
2796
-
2797
- # Update properties of this object
2798
- def update!(**args)
2799
- @fhir_store = args[:fhir_store] if args.key?(:fhir_store)
2800
- @input_size = args[:input_size] if args.key?(:input_size)
2801
- end
2802
- end
2803
-
2804
2702
  # Construct representing a logical group or a segment.
2805
2703
  class GroupOrSegment
2806
2704
  include Google::Apis::Core::Hashable
@@ -2886,14 +2784,35 @@ module Google
2886
2784
  include Google::Apis::Core::Hashable
2887
2785
 
2888
2786
  # Restricts notifications sent for messages matching a filter. If this is empty,
2889
- # all messages are matched. Syntax: https://cloud.google.com/appengine/docs/
2890
- # standard/python/search/query_strings The following fields and functions are
2891
- # available for filtering: * `message_type`, from the MSH-9.1 field. For example,
2892
- # `NOT message_type = "ADT"`. * `send_date` or `sendDate`, the YYYY-MM-DD date
2893
- # the message was sent in the dataset's time_zone, from the MSH-7 segment. For
2894
- # example, `send_date < "2017-01-02"`. * `send_time`, the timestamp when the
2895
- # message was sent, using the RFC3339 time format for comparisons, from the MSH-
2896
- # 7 segment. For example, `send_time < "2017-01-02T00:00:00-05:00"`. * `
2787
+ # all messages are matched. The following syntax is available: * A string field
2788
+ # value can be written as text inside quotation marks, for example `"query text"`
2789
+ # . The only valid relational operation for text fields is equality (`=`), where
2790
+ # text is searched within the field, rather than having the field be equal to
2791
+ # the text. For example, `"Comment = great"` returns messages with `great` in
2792
+ # the comment field. * A number field value can be written as an integer, a
2793
+ # decimal, or an exponential. The valid relational operators for number fields
2794
+ # are the equality operator (`=`), along with the less than/greater than
2795
+ # operators (`<`, `<=`, `>`, `>=`). Note that there is no inequality (`!=`)
2796
+ # operator. You can prepend the `NOT` operator to an expression to negate it. *
2797
+ # A date field value must be written in `yyyy-mm-dd` form. Fields with date and
2798
+ # time use the RFC3339 time format. Leading zeros are required for one-digit
2799
+ # months and days. The valid relational operators for date fields are the
2800
+ # equality operator (`=`) , along with the less than/greater than operators (`<`,
2801
+ # `<=`, `>`, `>=`). Note that there is no inequality (`!=`) operator. You can
2802
+ # prepend the `NOT` operator to an expression to negate it. * Multiple field
2803
+ # query expressions can be combined in one query by adding `AND` or `OR`
2804
+ # operators between the expressions. If a boolean operator appears within a
2805
+ # quoted string, it is not treated as special, it's just another part of the
2806
+ # character string to be matched. You can prepend the `NOT` operator to an
2807
+ # expression to negate it. Fields/functions available for filtering are: * `
2808
+ # message_type`, from the MSH-9.1 field. For example, `NOT message_type = "ADT"`.
2809
+ # * `send_date` or `sendDate`, the YYYY-MM-DD date the message was sent in the
2810
+ # dataset's time_zone, from the MSH-7 segment. For example, `send_date < "2017-
2811
+ # 01-02"`. * `send_time`, the timestamp when the message was sent, using the
2812
+ # RFC3339 time format for comparisons, from the MSH-7 segment. For example, `
2813
+ # send_time < "2017-01-02T00:00:00-05:00"`. * `create_time`, the timestamp when
2814
+ # the message was created in the HL7v2 store. Use the RFC3339 time format for
2815
+ # comparisons. For example, `create_time < "2017-01-02T00:00:00-05:00"`. * `
2897
2816
  # send_facility`, the care center that the message came from, from the MSH-4
2898
2817
  # segment. For example, `send_facility = "ABC"`. * `PatientId(value, type)`,
2899
2818
  # which matches if the message lists a patient having an ID of the given value
@@ -2906,19 +2825,19 @@ module Google
2906
2825
  # @return [String]
2907
2826
  attr_accessor :filter
2908
2827
 
2909
- # The [Cloud Pub/Sub](https://cloud.google.com/pubsub/docs/) topic that
2910
- # notifications of changes are published on. Supplied by the client. The
2911
- # notification is a `PubsubMessage` with the following fields: * `PubsubMessage.
2912
- # Data` contains the resource name. * `PubsubMessage.MessageId` is the ID of
2913
- # this notification. It is guaranteed to be unique within the topic. * `
2914
- # PubsubMessage.PublishTime` is the time when the message was published. Note
2915
- # that notifications are only sent if the topic is non-empty. [Topic names](
2916
- # https://cloud.google.com/pubsub/docs/overview#names) must be scoped to a
2917
- # project. Cloud Healthcare API service account must have publisher permissions
2918
- # on the given Pub/Sub topic. Not having adequate permissions causes the calls
2919
- # that send notifications to fail. If a notification can't be published to Cloud
2920
- # Pub/Sub, errors are logged to Cloud Logging. For more information, see [
2921
- # Viewing error logs in Cloud Logging](/healthcare/docs/how-tos/logging).
2828
+ # The [Pub/Sub](https://cloud.google.com/pubsub/docs/) topic that notifications
2829
+ # of changes are published on. Supplied by the client. The notification is a `
2830
+ # PubsubMessage` with the following fields: * `PubsubMessage.Data` contains the
2831
+ # resource name. * `PubsubMessage.MessageId` is the ID of this notification. It
2832
+ # is guaranteed to be unique within the topic. * `PubsubMessage.PublishTime` is
2833
+ # the time when the message was published. Note that notifications are only sent
2834
+ # if the topic is non-empty. [Topic names](https://cloud.google.com/pubsub/docs/
2835
+ # overview#names) must be scoped to a project. Cloud Healthcare API service
2836
+ # account must have publisher permissions on the given Pub/Sub topic. Not having
2837
+ # adequate permissions causes the calls that send notifications to fail. If a
2838
+ # notification can't be published to Pub/Sub, errors are logged to Cloud Logging.
2839
+ # For more information, see [Viewing error logs in Cloud Logging](https://cloud.
2840
+ # google.com/healthcare/docs/how-tos/logging).
2922
2841
  # Corresponds to the JSON property `pubsubTopic`
2923
2842
  # @return [String]
2924
2843
  attr_accessor :pubsub_topic
@@ -3482,17 +3401,17 @@ module Google
3482
3401
  end
3483
3402
  end
3484
3403
 
3485
- # Lists the Attribute definitions in the given Consent store.
3404
+ #
3486
3405
  class ListAttributeDefinitionsResponse
3487
3406
  include Google::Apis::Core::Hashable
3488
3407
 
3489
- # The returned attribute definitions. The maximum number of attributes returned
3408
+ # The returned Attribute definitions. The maximum number of attributes returned
3490
3409
  # is determined by the value of page_size in the ListAttributeDefinitionsRequest.
3491
3410
  # Corresponds to the JSON property `attributeDefinitions`
3492
3411
  # @return [Array<Google::Apis::HealthcareV1beta1::AttributeDefinition>]
3493
3412
  attr_accessor :attribute_definitions
3494
3413
 
3495
- # Token to retrieve the next page of results or empty if there are no more
3414
+ # Token to retrieve the next page of results, or empty if there are no more
3496
3415
  # results in the list.
3497
3416
  # Corresponds to the JSON property `nextPageToken`
3498
3417
  # @return [String]
@@ -3509,17 +3428,17 @@ module Google
3509
3428
  end
3510
3429
  end
3511
3430
 
3512
- # Lists the Consent artifacts in the given Consent store.
3431
+ #
3513
3432
  class ListConsentArtifactsResponse
3514
3433
  include Google::Apis::Core::Hashable
3515
3434
 
3516
- # The returned consent artifacts. The maximum number of artifacts returned is
3435
+ # The returned Consent artifacts. The maximum number of artifacts returned is
3517
3436
  # determined by the value of page_size in the ListConsentArtifactsRequest.
3518
3437
  # Corresponds to the JSON property `consentArtifacts`
3519
3438
  # @return [Array<Google::Apis::HealthcareV1beta1::ConsentArtifact>]
3520
3439
  attr_accessor :consent_artifacts
3521
3440
 
3522
- # Token to retrieve the next page of results or empty if there are no more
3441
+ # Token to retrieve the next page of results, or empty if there are no more
3523
3442
  # results in the list.
3524
3443
  # Corresponds to the JSON property `nextPageToken`
3525
3444
  # @return [String]
@@ -3536,17 +3455,17 @@ module Google
3536
3455
  end
3537
3456
  end
3538
3457
 
3539
- # Lists the revisions of the given Consent in reverse chronological order.
3458
+ #
3540
3459
  class ListConsentRevisionsResponse
3541
3460
  include Google::Apis::Core::Hashable
3542
3461
 
3543
- # The returned consent revisions. The maximum number of revisions returned is
3462
+ # The returned Consent revisions. The maximum number of revisions returned is
3544
3463
  # determined by the value of `page_size` in the ListConsentRevisionsRequest.
3545
3464
  # Corresponds to the JSON property `consents`
3546
3465
  # @return [Array<Google::Apis::HealthcareV1beta1::Consent>]
3547
3466
  attr_accessor :consents
3548
3467
 
3549
- # Token to retrieve the next page of results or empty if there are no more
3468
+ # Token to retrieve the next page of results, or empty if there are no more
3550
3469
  # results in the list.
3551
3470
  # Corresponds to the JSON property `nextPageToken`
3552
3471
  # @return [String]
@@ -3563,17 +3482,17 @@ module Google
3563
3482
  end
3564
3483
  end
3565
3484
 
3566
- # Lists the Consent stores in the given dataset.
3485
+ #
3567
3486
  class ListConsentStoresResponse
3568
3487
  include Google::Apis::Core::Hashable
3569
3488
 
3570
- # The returned Consent stores. The maximum number of stores returned is
3489
+ # The returned consent stores. The maximum number of stores returned is
3571
3490
  # determined by the value of page_size in the ListConsentStoresRequest.
3572
3491
  # Corresponds to the JSON property `consentStores`
3573
3492
  # @return [Array<Google::Apis::HealthcareV1beta1::ConsentStore>]
3574
3493
  attr_accessor :consent_stores
3575
3494
 
3576
- # Token to retrieve the next page of results or empty if there are no more
3495
+ # Token to retrieve the next page of results, or empty if there are no more
3577
3496
  # results in the list.
3578
3497
  # Corresponds to the JSON property `nextPageToken`
3579
3498
  # @return [String]
@@ -3590,17 +3509,17 @@ module Google
3590
3509
  end
3591
3510
  end
3592
3511
 
3593
- # Lists the Consents in the given Consent store.
3512
+ #
3594
3513
  class ListConsentsResponse
3595
3514
  include Google::Apis::Core::Hashable
3596
3515
 
3597
- # The returned consents. The maximum number of consents returned is determined
3516
+ # The returned Consents. The maximum number of Consents returned is determined
3598
3517
  # by the value of page_size in the ListConsentsRequest.
3599
3518
  # Corresponds to the JSON property `consents`
3600
3519
  # @return [Array<Google::Apis::HealthcareV1beta1::Consent>]
3601
3520
  attr_accessor :consents
3602
3521
 
3603
- # Token to retrieve the next page of results or empty if there are no more
3522
+ # Token to retrieve the next page of results, or empty if there are no more
3604
3523
  # results in the list.
3605
3524
  # Corresponds to the JSON property `nextPageToken`
3606
3525
  # @return [String]
@@ -3801,17 +3720,17 @@ module Google
3801
3720
  end
3802
3721
  end
3803
3722
 
3804
- # Lists the User data mappings in the given Consent store.
3723
+ #
3805
3724
  class ListUserDataMappingsResponse
3806
3725
  include Google::Apis::Core::Hashable
3807
3726
 
3808
- # Token to retrieve the next page of results or empty if there are no more
3727
+ # Token to retrieve the next page of results, or empty if there are no more
3809
3728
  # results in the list.
3810
3729
  # Corresponds to the JSON property `nextPageToken`
3811
3730
  # @return [String]
3812
3731
  attr_accessor :next_page_token
3813
3732
 
3814
- # The returned user data mappings. The maximum number of user data mappings
3733
+ # The returned User data mappings. The maximum number of User data mappings
3815
3734
  # returned is determined by the value of page_size in the
3816
3735
  # ListUserDataMappingsRequest.
3817
3736
  # Corresponds to the JSON property `userDataMappings`
@@ -3964,17 +3883,17 @@ module Google
3964
3883
  class NotificationConfig
3965
3884
  include Google::Apis::Core::Hashable
3966
3885
 
3967
- # The [Cloud Pub/Sub](https://cloud.google.com/pubsub/docs/) topic that
3968
- # notifications of changes are published on. Supplied by the client.
3969
- # PubsubMessage.Data contains the resource name. PubsubMessage.MessageId is the
3970
- # ID of this message. It is guaranteed to be unique within the topic.
3971
- # PubsubMessage.PublishTime is the time at which the message was published.
3972
- # Notifications are only sent if the topic is non-empty. [Topic names](https://
3973
- # cloud.google.com/pubsub/docs/overview#names) must be scoped to a project.
3974
- # Cloud Healthcare API service account must have publisher permissions on the
3975
- # given Cloud Pub/Sub topic. Not having adequate permissions causes the calls
3976
- # that send notifications to fail. If a notification can't be published to Cloud
3977
- # Pub/Sub, errors are logged to Cloud Logging (see [Viewing logs](/healthcare/
3886
+ # The [Pub/Sub](https://cloud.google.com/pubsub/docs/) topic that notifications
3887
+ # of changes are published on. Supplied by the client. PubsubMessage.Data
3888
+ # contains the resource name. PubsubMessage.MessageId is the ID of this message.
3889
+ # It is guaranteed to be unique within the topic. PubsubMessage.PublishTime is
3890
+ # the time at which the message was published. Notifications are only sent if
3891
+ # the topic is non-empty. [Topic names](https://cloud.google.com/pubsub/docs/
3892
+ # overview#names) must be scoped to a project. Cloud Healthcare API service
3893
+ # account must have publisher permissions on the given Pub/Sub topic. Not having
3894
+ # adequate permissions causes the calls that send notifications to fail. If a
3895
+ # notification can't be published to Pub/Sub, errors are logged to Cloud Logging
3896
+ # (see [Viewing error logs in Cloud Logging](https://cloud.google.com/healthcare/
3978
3897
  # docs/how-tos/logging)). If the number of errors exceeds a certain rate, some
3979
3898
  # aren't submitted. Note that not all operations trigger notifications, see [
3980
3899
  # Configuring Pub/Sub notifications](https://cloud.google.com/healthcare/docs/
@@ -4087,8 +4006,8 @@ module Google
4087
4006
  attr_accessor :end_time
4088
4007
 
4089
4008
  # A link to audit and error logs in the log viewer. Error logs are generated
4090
- # only by some operations, listed at [Viewing logs](/healthcare/docs/how-tos/
4091
- # logging).
4009
+ # only by some operations, listed at [Viewing error logs in Cloud Logging](https:
4010
+ # //cloud.google.com/healthcare/docs/how-tos/logging).
4092
4011
  # Corresponds to the JSON property `logsUrl`
4093
4012
  # @return [String]
4094
4013
  attr_accessor :logs_url
@@ -4315,11 +4234,12 @@ module Google
4315
4234
  end
4316
4235
  end
4317
4236
 
4318
- # Queries all data_ids that are consented for a given use in the given Consent
4237
+ # Queries all data_ids that are consented for a given use in the given consent
4319
4238
  # store and writes them to a specified destination. The returned Operation
4320
4239
  # includes a progress counter for the number of User data mappings processed.
4321
- # Errors are logged to Cloud Logging (see [Viewing logs] (/healthcare/docs/how-
4322
- # tos/logging) and [QueryAccessibleData] for a sample log entry).
4240
+ # Errors are logged to Cloud Logging (see [Viewing error logs in Cloud Logging] (
4241
+ # https://cloud.google.com/healthcare/docs/how-tos/logging) and [
4242
+ # QueryAccessibleData] for a sample log entry).
4323
4243
  class QueryAccessibleDataRequest
4324
4244
  include Google::Apis::Core::Hashable
4325
4245
 
@@ -4333,9 +4253,9 @@ module Google
4333
4253
  # @return [Hash<String,String>]
4334
4254
  attr_accessor :request_attributes
4335
4255
 
4336
- # The values of resources attributes associated with the type of data being
4337
- # requested. If no values are specified, then all data types are included in the
4338
- # output.
4256
+ # Optional. The values of resource attributes associated with the type of
4257
+ # resources being requested. If no values are specified, then all resource types
4258
+ # are included in the output.
4339
4259
  # Corresponds to the JSON property `resourceAttributes`
4340
4260
  # @return [Hash<String,String>]
4341
4261
  attr_accessor :resource_attributes
@@ -4368,15 +4288,15 @@ module Google
4368
4288
 
4369
4289
  # Rejects the latest revision of the specified Consent by committing a new
4370
4290
  # revision with `state` updated to `REJECTED`. If the latest revision of the
4371
- # given consent is in the `REJECTED` state, no new revision is committed.
4291
+ # given Consent is in the `REJECTED` state, no new revision is committed.
4372
4292
  class RejectConsentRequest
4373
4293
  include Google::Apis::Core::Hashable
4374
4294
 
4375
- # The resource name of the consent artifact that contains proof of the end user'
4376
- # s rejection of the draft consent, of the form `projects/`project_id`/locations/
4377
- # `location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`/
4378
- # consentArtifacts/`consent_artifact_id``. If the draft consent had a consent
4379
- # artifact, this consent artifact overwrites it.
4295
+ # Optional. The resource name of the Consent artifact that contains
4296
+ # documentation of the user's rejection of the draft Consent, of the form `
4297
+ # projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
4298
+ # consentStores/`consent_store_id`/consentArtifacts/`consent_artifact_id``. If
4299
+ # the draft Consent had a Consent artifact, this Consent artifact overwrites it.
4380
4300
  # Corresponds to the JSON property `consentArtifact`
4381
4301
  # @return [String]
4382
4302
  attr_accessor :consent_artifact
@@ -4453,13 +4373,13 @@ module Google
4453
4373
  # @return [Hash<String,Google::Apis::HealthcareV1beta1::ConsentEvaluation>]
4454
4374
  attr_accessor :consent_details
4455
4375
 
4456
- # Whether the requested data is consented for the given use.
4376
+ # Whether the resource is consented for the given use.
4457
4377
  # Corresponds to the JSON property `consented`
4458
4378
  # @return [Boolean]
4459
4379
  attr_accessor :consented
4460
4380
  alias_method :consented?, :consented
4461
4381
 
4462
- # The unique identifier of the data the consents were checked for.
4382
+ # The unique identifier of the evaluated resource.
4463
4383
  # Corresponds to the JSON property `dataId`
4464
4384
  # @return [String]
4465
4385
  attr_accessor :data_id
@@ -4478,13 +4398,13 @@ module Google
4478
4398
 
4479
4399
  # Revokes the latest revision of the specified Consent by committing a new
4480
4400
  # revision with `state` updated to `REVOKED`. If the latest revision of the
4481
- # given consent is in the `REVOKED` state, no new revision is committed.
4401
+ # given Consent is in the `REVOKED` state, no new revision is committed.
4482
4402
  class RevokeConsentRequest
4483
4403
  include Google::Apis::Core::Hashable
4484
4404
 
4485
- # The resource name of the consent artifact that contains proof of the end user'
4486
- # s revocation of the consent, of the form `projects/`project_id`/locations/`
4487
- # location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`/
4405
+ # Optional. The resource name of the Consent artifact that contains proof of the
4406
+ # user's revocation of the Consent, of the form `projects/`project_id`/locations/
4407
+ # `location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`/
4488
4408
  # consentArtifacts/`consent_artifact_id``.
4489
4409
  # Corresponds to the JSON property `consentArtifact`
4490
4410
  # @return [String]
@@ -4833,18 +4753,18 @@ module Google
4833
4753
  # @return [Google::Apis::HealthcareV1beta1::Image]
4834
4754
  attr_accessor :image
4835
4755
 
4836
- # Metadata associated with the user's signature. For example, the user's name or
4837
- # the user's title.
4756
+ # Optional. Metadata associated with the user's signature. For example, the user'
4757
+ # s name or the user's title.
4838
4758
  # Corresponds to the JSON property `metadata`
4839
4759
  # @return [Hash<String,String>]
4840
4760
  attr_accessor :metadata
4841
4761
 
4842
- # Timestamp of the signature.
4762
+ # Optional. Timestamp of the signature.
4843
4763
  # Corresponds to the JSON property `signatureTime`
4844
4764
  # @return [String]
4845
4765
  attr_accessor :signature_time
4846
4766
 
4847
- # User's UUID provided by the client.
4767
+ # Required. User's UUID provided by the client.
4848
4768
  # Corresponds to the JSON property `userId`
4849
4769
  # @return [String]
4850
4770
  attr_accessor :user_id
@@ -5068,22 +4988,22 @@ module Google
5068
4988
  end
5069
4989
  end
5070
4990
 
5071
- # Maps a user data entry to its end user and Attributes.
4991
+ # Maps a resource to the associated user and Attributes.
5072
4992
  class UserDataMapping
5073
4993
  include Google::Apis::Core::Hashable
5074
4994
 
5075
- # Output only. Indicates the time when this data mapping was archived.
4995
+ # Output only. Indicates the time when this mapping was archived.
5076
4996
  # Corresponds to the JSON property `archiveTime`
5077
4997
  # @return [String]
5078
4998
  attr_accessor :archive_time
5079
4999
 
5080
- # Output only. Indicates whether this data mapping is archived.
5000
+ # Output only. Indicates whether this mapping is archived.
5081
5001
  # Corresponds to the JSON property `archived`
5082
5002
  # @return [Boolean]
5083
5003
  attr_accessor :archived
5084
5004
  alias_method :archived?, :archived
5085
5005
 
5086
- # Required. A unique identifier for the mapped data.
5006
+ # Required. A unique identifier for the mapped resource.
5087
5007
  # Corresponds to the JSON property `dataId`
5088
5008
  # @return [String]
5089
5009
  attr_accessor :data_id
@@ -5095,11 +5015,10 @@ module Google
5095
5015
  # @return [String]
5096
5016
  attr_accessor :name
5097
5017
 
5098
- # Attributes of end user data. Each attribute can have exactly one value
5099
- # specified. Only explicitly set attributes are displayed here. Attribute
5100
- # definitions with defaults set implicitly apply to these User data mappings.
5101
- # Attributes listed here must be single valued, that is, exactly one value is
5102
- # specified for the field "values" in each Attribute.
5018
+ # Attributes of the resource. Only explicitly set attributes are displayed here.
5019
+ # Attribute definitions with defaults set implicitly apply to these User data
5020
+ # mappings. Attributes listed here must be single valued, that is, exactly one
5021
+ # value is specified for the field "values" in each Attribute.
5103
5022
  # Corresponds to the JSON property `resourceAttributes`
5104
5023
  # @return [Array<Google::Apis::HealthcareV1beta1::Attribute>]
5105
5024
  attr_accessor :resource_attributes
@@ -5124,6 +5043,46 @@ module Google
5124
5043
  end
5125
5044
  end
5126
5045
 
5046
+ # Contains the configuration for FHIR profiles and validation.
5047
+ class ValidationConfig
5048
+ include Google::Apis::Core::Hashable
5049
+
5050
+ # Whether to disable profile validation for this FHIR store. Set this to true to
5051
+ # disable checking incoming resources for conformance against
5052
+ # StructureDefinitions in this FHIR store.
5053
+ # Corresponds to the JSON property `disableProfileValidation`
5054
+ # @return [Boolean]
5055
+ attr_accessor :disable_profile_validation
5056
+ alias_method :disable_profile_validation?, :disable_profile_validation
5057
+
5058
+ # A list of ImplementationGuide URLs in this FHIR store that are used to
5059
+ # configure the profiles to use for validation. For example, to use the US Core
5060
+ # profiles for validation, set `enabled_implementation_guides` to `["http://hl7.
5061
+ # org/fhir/us/core/ImplementationGuide/ig"]`. If `enabled_implementation_guides`
5062
+ # is empty or omitted, then incoming resources are only required to conform to
5063
+ # the base FHIR profiles. Otherwise, a resource must conform to at least one
5064
+ # profile listed in the `global` property of one of the enabled
5065
+ # ImplementationGuides. The Cloud Healthcare API does not currently enforce all
5066
+ # of the rules in a StructureDefinition. The following rules are supported: -
5067
+ # min/max - minValue/maxValue - maxLength - type - fixed[x] - pattern[x] on
5068
+ # simple types - slicing, when using "value" as the discriminator type When a
5069
+ # URL cannot be resolved (for example, in a type assertion), the server does not
5070
+ # return an error.
5071
+ # Corresponds to the JSON property `enabledImplementationGuides`
5072
+ # @return [Array<String>]
5073
+ attr_accessor :enabled_implementation_guides
5074
+
5075
+ def initialize(**args)
5076
+ update!(**args)
5077
+ end
5078
+
5079
+ # Update properties of this object
5080
+ def update!(**args)
5081
+ @disable_profile_validation = args[:disable_profile_validation] if args.key?(:disable_profile_validation)
5082
+ @enabled_implementation_guides = args[:enabled_implementation_guides] if args.key?(:enabled_implementation_guides)
5083
+ end
5084
+ end
5085
+
5127
5086
  # Describes a selector for extracting and matching an MSH field to a value.
5128
5087
  class VersionSource
5129
5088
  include Google::Apis::Core::Hashable