google-apis-healthcare_v1 0.8.0 → 0.12.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: 1cf3a0f0171d1922ca3437b12db02bd43068ae732460a05a54b7b808ebb9abd7
4
- data.tar.gz: 715c89d103e7e1d63a6bf5e0f83cba828a4080f7b2e5837d5037b19d502f457a
3
+ metadata.gz: 3413ce6fea59552e2eb96e747ea6706a165c1ff8a1ef0e38c41746283071c46a
4
+ data.tar.gz: fb5045d7b30648de80bc0574ca1ad227aad19168bb8904ef06d87718bd7936a3
5
5
  SHA512:
6
- metadata.gz: a387f143dd8247877710d4c720f238a575b3904c29f39e8156b5776ea1dc3bf195d4ece196fac72ec05913ff7995a3523ffb4aaa1e889caef15b27b8fafab221
7
- data.tar.gz: 9bc2c9b8baeb8b4a433087f3ea5f9c08ae3ffcf6b9735b1c0c16d5f3e7afaae27a9f55f2afe445c5d33139162fe5edaa74c0dc346dd988f5044c84d1b1920798
6
+ metadata.gz: 9973cff86533dd7ccfeb2857cfa5e9460b303ec9297bb12bee487628e3b6bffe733acf53bc92f433cbd46fcad66a6cc0b2603b54c564fbee025e62899c0b8396
7
+ data.tar.gz: 5b629a229d713c05843c89d8b038c653a81430a187fd56728d4cc31796c58f657ac5bc44ebe9602b45af6512bc2fda98d7f8975abb24a1741f5c07d5e76d9f76
data/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Release history for google-apis-healthcare_v1
2
2
 
3
+ ### v0.12.0 (2021-09-01)
4
+
5
+ * Regenerated from discovery document revision 20210830
6
+
7
+ ### v0.11.0 (2021-06-29)
8
+
9
+ * Regenerated from discovery document revision 20210621
10
+ * Regenerated using generator version 0.4.0
11
+
12
+ ### v0.10.0 (2021-06-24)
13
+
14
+ * Regenerated from discovery document revision 20210611
15
+
16
+ ### v0.9.0 (2021-06-15)
17
+
18
+ * Regenerated from discovery document revision 20210603
19
+ * Regenerated using generator version 0.3.0
20
+
3
21
  ### v0.8.0 (2021-05-21)
4
22
 
5
23
  * Regenerated from discovery document revision 20210507
@@ -61,6 +61,66 @@ module Google
61
61
  end
62
62
  end
63
63
 
64
+ # The request to analyze healthcare entities in a document.
65
+ class AnalyzeEntitiesRequest
66
+ include Google::Apis::Core::Hashable
67
+
68
+ # document_content is a document to be annotated.
69
+ # Corresponds to the JSON property `documentContent`
70
+ # @return [String]
71
+ attr_accessor :document_content
72
+
73
+ # A list of licensed vocabularies to use in the request, in addition to the
74
+ # default unlicensed vocabularies.
75
+ # Corresponds to the JSON property `licensedVocabularies`
76
+ # @return [Array<String>]
77
+ attr_accessor :licensed_vocabularies
78
+
79
+ def initialize(**args)
80
+ update!(**args)
81
+ end
82
+
83
+ # Update properties of this object
84
+ def update!(**args)
85
+ @document_content = args[:document_content] if args.key?(:document_content)
86
+ @licensed_vocabularies = args[:licensed_vocabularies] if args.key?(:licensed_vocabularies)
87
+ end
88
+ end
89
+
90
+ # Includes recognized entity mentions and relationships between them.
91
+ class AnalyzeEntitiesResponse
92
+ include Google::Apis::Core::Hashable
93
+
94
+ # The union of all the candidate entities that the entity_mentions in this
95
+ # response could link to. These are UMLS concepts or normalized mention content.
96
+ # Corresponds to the JSON property `entities`
97
+ # @return [Array<Google::Apis::HealthcareV1::Entity>]
98
+ attr_accessor :entities
99
+
100
+ # entity_mentions contains all the annotated medical entities that were
101
+ # mentioned in the provided document.
102
+ # Corresponds to the JSON property `entityMentions`
103
+ # @return [Array<Google::Apis::HealthcareV1::EntityMention>]
104
+ attr_accessor :entity_mentions
105
+
106
+ # relationships contains all the binary relationships that were identified
107
+ # between entity mentions within the provided document.
108
+ # Corresponds to the JSON property `relationships`
109
+ # @return [Array<Google::Apis::HealthcareV1::EntityMentionRelationship>]
110
+ attr_accessor :relationships
111
+
112
+ def initialize(**args)
113
+ update!(**args)
114
+ end
115
+
116
+ # Update properties of this object
117
+ def update!(**args)
118
+ @entities = args[:entities] if args.key?(:entities)
119
+ @entity_mentions = args[:entity_mentions] if args.key?(:entity_mentions)
120
+ @relationships = args[:relationships] if args.key?(:relationships)
121
+ end
122
+ end
123
+
64
124
  # Archives the specified User data mapping.
65
125
  class ArchiveUserDataMappingRequest
66
126
  include Google::Apis::Core::Hashable
@@ -812,8 +872,8 @@ module Google
812
872
 
813
873
  # The name of the dataset resource to create and write the redacted data to. *
814
874
  # The destination dataset must not exist. * The destination dataset must be in
815
- # the same project and location as the source dataset. De-identifying data
816
- # across multiple projects or locations is not supported.
875
+ # the same location as the source dataset. De-identifying data across multiple
876
+ # locations is not supported.
817
877
  # Corresponds to the JSON property `destinationDataset`
818
878
  # @return [String]
819
879
  attr_accessor :destination_dataset
@@ -843,8 +903,8 @@ module Google
843
903
  # The name of the DICOM store to create and write the redacted data to. For
844
904
  # example, `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
845
905
  # dicomStores/`dicom_store_id``. * The destination dataset must exist. * The
846
- # source dataset and destination dataset must both reside in the same project.
847
- # De-identifying data across multiple projects is not supported. * The
906
+ # source dataset and destination dataset must both reside in the same location.
907
+ # De-identifying data across multiple locations is not supported. * The
848
908
  # destination DICOM store must not exist. * The caller must have the necessary
849
909
  # permissions to create the destination DICOM store.
850
910
  # Corresponds to the JSON property `destinationStore`
@@ -882,8 +942,8 @@ module Google
882
942
  # The name of the FHIR store to create and write the redacted data to. For
883
943
  # example, `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
884
944
  # fhirStores/`fhir_store_id``. * The destination dataset must exist. * The
885
- # source dataset and destination dataset must both reside in the same project.
886
- # De-identifying data across multiple projects is not supported. * The
945
+ # source dataset and destination dataset must both reside in the same location.
946
+ # De-identifying data across multiple locations is not supported. * The
887
947
  # destination FHIR store must exist. * The caller must have the healthcare.
888
948
  # fhirResources.update permission to write to the destination FHIR store.
889
949
  # Corresponds to the JSON property `destinationStore`
@@ -1045,6 +1105,145 @@ module Google
1045
1105
  end
1046
1106
  end
1047
1107
 
1108
+ # The candidate entities that an entity mention could link to.
1109
+ class Entity
1110
+ include Google::Apis::Core::Hashable
1111
+
1112
+ # entity_id is a first class field entity_id uniquely identifies this concept
1113
+ # and its meta-vocabulary. For example, "UMLS/C0000970".
1114
+ # Corresponds to the JSON property `entityId`
1115
+ # @return [String]
1116
+ attr_accessor :entity_id
1117
+
1118
+ # preferred_term is the preferred term for this concept. For example, "
1119
+ # Acetaminophen". For ad hoc entities formed by normalization, this is the most
1120
+ # popular unnormalized string.
1121
+ # Corresponds to the JSON property `preferredTerm`
1122
+ # @return [String]
1123
+ attr_accessor :preferred_term
1124
+
1125
+ # Vocabulary codes are first-class fields and differentiated from the concept
1126
+ # unique identifier (entity_id). vocabulary_codes contains the representation of
1127
+ # this concept in particular vocabularies, such as ICD-10, SNOMED-CT and RxNORM.
1128
+ # These are prefixed by the name of the vocabulary, followed by the unique code
1129
+ # within that vocabulary. For example, "RXNORM/A10334543".
1130
+ # Corresponds to the JSON property `vocabularyCodes`
1131
+ # @return [Array<String>]
1132
+ attr_accessor :vocabulary_codes
1133
+
1134
+ def initialize(**args)
1135
+ update!(**args)
1136
+ end
1137
+
1138
+ # Update properties of this object
1139
+ def update!(**args)
1140
+ @entity_id = args[:entity_id] if args.key?(:entity_id)
1141
+ @preferred_term = args[:preferred_term] if args.key?(:preferred_term)
1142
+ @vocabulary_codes = args[:vocabulary_codes] if args.key?(:vocabulary_codes)
1143
+ end
1144
+ end
1145
+
1146
+ # An entity mention in the document.
1147
+ class EntityMention
1148
+ include Google::Apis::Core::Hashable
1149
+
1150
+ # A feature of an entity mention.
1151
+ # Corresponds to the JSON property `certaintyAssessment`
1152
+ # @return [Google::Apis::HealthcareV1::Feature]
1153
+ attr_accessor :certainty_assessment
1154
+
1155
+ # The model's confidence in this entity mention annotation. A number between 0
1156
+ # and 1.
1157
+ # Corresponds to the JSON property `confidence`
1158
+ # @return [Float]
1159
+ attr_accessor :confidence
1160
+
1161
+ # linked_entities are candidate ontological concepts that this entity mention
1162
+ # may refer to. They are sorted by decreasing confidence.it
1163
+ # Corresponds to the JSON property `linkedEntities`
1164
+ # @return [Array<Google::Apis::HealthcareV1::LinkedEntity>]
1165
+ attr_accessor :linked_entities
1166
+
1167
+ # mention_id uniquely identifies each entity mention in a single response.
1168
+ # Corresponds to the JSON property `mentionId`
1169
+ # @return [String]
1170
+ attr_accessor :mention_id
1171
+
1172
+ # A feature of an entity mention.
1173
+ # Corresponds to the JSON property `subject`
1174
+ # @return [Google::Apis::HealthcareV1::Feature]
1175
+ attr_accessor :subject
1176
+
1177
+ # A feature of an entity mention.
1178
+ # Corresponds to the JSON property `temporalAssessment`
1179
+ # @return [Google::Apis::HealthcareV1::Feature]
1180
+ attr_accessor :temporal_assessment
1181
+
1182
+ # A span of text in the provided document.
1183
+ # Corresponds to the JSON property `text`
1184
+ # @return [Google::Apis::HealthcareV1::TextSpan]
1185
+ attr_accessor :text
1186
+
1187
+ # The semantic type of the entity: UNKNOWN_ENTITY_TYPE, ALONE,
1188
+ # ANATOMICAL_STRUCTURE, ASSISTED_LIVING, BF_RESULT, BM_RESULT, BM_UNIT, BM_VALUE,
1189
+ # BODY_FUNCTION, BODY_MEASUREMENT, COMPLIANT, DOESNOT_FOLLOWUP, FAMILY,
1190
+ # FOLLOWSUP, LABORATORY_DATA, LAB_RESULT, LAB_UNIT, LAB_VALUE, MEDICAL_DEVICE,
1191
+ # MEDICINE, MED_DOSE, MED_DURATION, MED_FORM, MED_FREQUENCY, MED_ROUTE,
1192
+ # MED_STATUS, MED_STRENGTH, MED_TOTALDOSE, MED_UNIT, NON_COMPLIANT,
1193
+ # OTHER_LIVINGSTATUS, PROBLEM, PROCEDURE, PROCEDURE_RESULT, PROC_METHOD,
1194
+ # REASON_FOR_NONCOMPLIANCE, SEVERITY, SUBSTANCE_ABUSE, UNCLEAR_FOLLOWUP.
1195
+ # Corresponds to the JSON property `type`
1196
+ # @return [String]
1197
+ attr_accessor :type
1198
+
1199
+ def initialize(**args)
1200
+ update!(**args)
1201
+ end
1202
+
1203
+ # Update properties of this object
1204
+ def update!(**args)
1205
+ @certainty_assessment = args[:certainty_assessment] if args.key?(:certainty_assessment)
1206
+ @confidence = args[:confidence] if args.key?(:confidence)
1207
+ @linked_entities = args[:linked_entities] if args.key?(:linked_entities)
1208
+ @mention_id = args[:mention_id] if args.key?(:mention_id)
1209
+ @subject = args[:subject] if args.key?(:subject)
1210
+ @temporal_assessment = args[:temporal_assessment] if args.key?(:temporal_assessment)
1211
+ @text = args[:text] if args.key?(:text)
1212
+ @type = args[:type] if args.key?(:type)
1213
+ end
1214
+ end
1215
+
1216
+ # Defines directed relationship from one entity mention to another.
1217
+ class EntityMentionRelationship
1218
+ include Google::Apis::Core::Hashable
1219
+
1220
+ # The model's confidence in this annotation. A number between 0 and 1.
1221
+ # Corresponds to the JSON property `confidence`
1222
+ # @return [Float]
1223
+ attr_accessor :confidence
1224
+
1225
+ # object_id is the id of the object entity mention.
1226
+ # Corresponds to the JSON property `objectId`
1227
+ # @return [String]
1228
+ attr_accessor :object_id_prop
1229
+
1230
+ # subject_id is the id of the subject entity mention.
1231
+ # Corresponds to the JSON property `subjectId`
1232
+ # @return [String]
1233
+ attr_accessor :subject_id
1234
+
1235
+ def initialize(**args)
1236
+ update!(**args)
1237
+ end
1238
+
1239
+ # Update properties of this object
1240
+ def update!(**args)
1241
+ @confidence = args[:confidence] if args.key?(:confidence)
1242
+ @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
1243
+ @subject_id = args[:subject_id] if args.key?(:subject_id)
1244
+ end
1245
+ end
1246
+
1048
1247
  # Evaluate a user's Consents for all matching User data mappings. Note: User
1049
1248
  # data mappings are indexed asynchronously, causing slight delays between the
1050
1249
  # time mappings are created or updated and when they are included in
@@ -1269,6 +1468,32 @@ module Google
1269
1468
  end
1270
1469
  end
1271
1470
 
1471
+ # A feature of an entity mention.
1472
+ class Feature
1473
+ include Google::Apis::Core::Hashable
1474
+
1475
+ # The model's confidence in this feature annotation. A number between 0 and 1.
1476
+ # Corresponds to the JSON property `confidence`
1477
+ # @return [Float]
1478
+ attr_accessor :confidence
1479
+
1480
+ # The value of this feature annotation. Its range depends on the type of the
1481
+ # feature.
1482
+ # Corresponds to the JSON property `value`
1483
+ # @return [String]
1484
+ attr_accessor :value
1485
+
1486
+ def initialize(**args)
1487
+ update!(**args)
1488
+ end
1489
+
1490
+ # Update properties of this object
1491
+ def update!(**args)
1492
+ @confidence = args[:confidence] if args.key?(:confidence)
1493
+ @value = args[:value] if args.key?(:value)
1494
+ end
1495
+ end
1496
+
1272
1497
  # Specifies how to handle de-identification of a FHIR store.
1273
1498
  class FhirConfig
1274
1499
  include Google::Apis::Core::Hashable
@@ -2298,6 +2523,29 @@ module Google
2298
2523
  end
2299
2524
  end
2300
2525
 
2526
+ # EntityMentions can be linked to multiple entities using a LinkedEntity message
2527
+ # lets us add other fields, e.g. confidence.
2528
+ class LinkedEntity
2529
+ include Google::Apis::Core::Hashable
2530
+
2531
+ # entity_id is a concept unique identifier. These are prefixed by a string that
2532
+ # identifies the entity coding system, followed by the unique identifier within
2533
+ # that system. For example, "UMLS/C0000970". This also supports ad hoc entities,
2534
+ # which are formed by normalizing entity mention content.
2535
+ # Corresponds to the JSON property `entityId`
2536
+ # @return [String]
2537
+ attr_accessor :entity_id
2538
+
2539
+ def initialize(**args)
2540
+ update!(**args)
2541
+ end
2542
+
2543
+ # Update properties of this object
2544
+ def update!(**args)
2545
+ @entity_id = args[:entity_id] if args.key?(:entity_id)
2546
+ end
2547
+ end
2548
+
2301
2549
  #
2302
2550
  class ListAttributeDefinitionsResponse
2303
2551
  include Google::Apis::Core::Hashable
@@ -3027,7 +3275,7 @@ module Google
3027
3275
  # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
3028
3276
  # roles/resourcemanager.organizationViewer condition: title: expirable access
3029
3277
  # description: Does not grant access after Sep 2020 expression: request.time <
3030
- # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
3278
+ # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
3031
3279
  # description of IAM and its features, see the [IAM documentation](https://cloud.
3032
3280
  # google.com/iam/docs/).
3033
3281
  class Policy
@@ -3167,12 +3415,19 @@ module Google
3167
3415
  class QueryAccessibleDataResponse
3168
3416
  include Google::Apis::Core::Hashable
3169
3417
 
3418
+ # List of files, each of which contains a list of data_id(s) that are consented
3419
+ # for a specified use in the request.
3420
+ # Corresponds to the JSON property `gcsUris`
3421
+ # @return [Array<String>]
3422
+ attr_accessor :gcs_uris
3423
+
3170
3424
  def initialize(**args)
3171
3425
  update!(**args)
3172
3426
  end
3173
3427
 
3174
3428
  # Update properties of this object
3175
3429
  def update!(**args)
3430
+ @gcs_uris = args[:gcs_uris] if args.key?(:gcs_uris)
3176
3431
  end
3177
3432
  end
3178
3433
 
@@ -3576,7 +3831,7 @@ module Google
3576
3831
  # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
3577
3832
  # roles/resourcemanager.organizationViewer condition: title: expirable access
3578
3833
  # description: Does not grant access after Sep 2020 expression: request.time <
3579
- # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
3834
+ # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
3580
3835
  # description of IAM and its features, see the [IAM documentation](https://cloud.
3581
3836
  # google.com/iam/docs/).
3582
3837
  # Corresponds to the JSON property `policy`
@@ -3787,6 +4042,31 @@ module Google
3787
4042
  end
3788
4043
  end
3789
4044
 
4045
+ # A span of text in the provided document.
4046
+ class TextSpan
4047
+ include Google::Apis::Core::Hashable
4048
+
4049
+ # The unicode codepoint index of the beginning of this span.
4050
+ # Corresponds to the JSON property `beginOffset`
4051
+ # @return [Fixnum]
4052
+ attr_accessor :begin_offset
4053
+
4054
+ # The original text contained in this span.
4055
+ # Corresponds to the JSON property `content`
4056
+ # @return [String]
4057
+ attr_accessor :content
4058
+
4059
+ def initialize(**args)
4060
+ update!(**args)
4061
+ end
4062
+
4063
+ # Update properties of this object
4064
+ def update!(**args)
4065
+ @begin_offset = args[:begin_offset] if args.key?(:begin_offset)
4066
+ @content = args[:content] if args.key?(:content)
4067
+ end
4068
+ end
4069
+
3790
4070
  # A type definition for some HL7v2 type (incl. Segments and Datatypes).
3791
4071
  class Type
3792
4072
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module HealthcareV1
18
18
  # Version of the google-apis-healthcare_v1 gem
19
- GEM_VERSION = "0.8.0"
19
+ GEM_VERSION = "0.12.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.2.0"
22
+ GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210507"
25
+ REVISION = "20210830"
26
26
  end
27
27
  end
28
28
  end
@@ -28,6 +28,18 @@ module Google
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
+ class AnalyzeEntitiesRequest
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class AnalyzeEntitiesResponse
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
31
43
  class ArchiveUserDataMappingRequest
32
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
45
 
@@ -202,6 +214,24 @@ module Google
202
214
  include Google::Apis::Core::JsonObjectSupport
203
215
  end
204
216
 
217
+ class Entity
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
223
+ class EntityMention
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
229
+ class EntityMentionRelationship
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
205
235
  class EvaluateUserConsentsRequest
206
236
  class Representation < Google::Apis::Core::JsonRepresentation; end
207
237
 
@@ -244,6 +274,12 @@ module Google
244
274
  include Google::Apis::Core::JsonObjectSupport
245
275
  end
246
276
 
277
+ class Feature
278
+ class Representation < Google::Apis::Core::JsonRepresentation; end
279
+
280
+ include Google::Apis::Core::JsonObjectSupport
281
+ end
282
+
247
283
  class FhirConfig
248
284
  class Representation < Google::Apis::Core::JsonRepresentation; end
249
285
 
@@ -424,6 +460,12 @@ module Google
424
460
  include Google::Apis::Core::JsonObjectSupport
425
461
  end
426
462
 
463
+ class LinkedEntity
464
+ class Representation < Google::Apis::Core::JsonRepresentation; end
465
+
466
+ include Google::Apis::Core::JsonObjectSupport
467
+ end
468
+
427
469
  class ListAttributeDefinitionsResponse
428
470
  class Representation < Google::Apis::Core::JsonRepresentation; end
429
471
 
@@ -700,6 +742,12 @@ module Google
700
742
  include Google::Apis::Core::JsonObjectSupport
701
743
  end
702
744
 
745
+ class TextSpan
746
+ class Representation < Google::Apis::Core::JsonRepresentation; end
747
+
748
+ include Google::Apis::Core::JsonObjectSupport
749
+ end
750
+
703
751
  class Type
704
752
  class Representation < Google::Apis::Core::JsonRepresentation; end
705
753
 
@@ -727,6 +775,26 @@ module Google
727
775
  end
728
776
  end
729
777
 
778
+ class AnalyzeEntitiesRequest
779
+ # @private
780
+ class Representation < Google::Apis::Core::JsonRepresentation
781
+ property :document_content, as: 'documentContent'
782
+ collection :licensed_vocabularies, as: 'licensedVocabularies'
783
+ end
784
+ end
785
+
786
+ class AnalyzeEntitiesResponse
787
+ # @private
788
+ class Representation < Google::Apis::Core::JsonRepresentation
789
+ collection :entities, as: 'entities', class: Google::Apis::HealthcareV1::Entity, decorator: Google::Apis::HealthcareV1::Entity::Representation
790
+
791
+ collection :entity_mentions, as: 'entityMentions', class: Google::Apis::HealthcareV1::EntityMention, decorator: Google::Apis::HealthcareV1::EntityMention::Representation
792
+
793
+ collection :relationships, as: 'relationships', class: Google::Apis::HealthcareV1::EntityMentionRelationship, decorator: Google::Apis::HealthcareV1::EntityMentionRelationship::Representation
794
+
795
+ end
796
+ end
797
+
730
798
  class ArchiveUserDataMappingRequest
731
799
  # @private
732
800
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -994,6 +1062,43 @@ module Google
994
1062
  end
995
1063
  end
996
1064
 
1065
+ class Entity
1066
+ # @private
1067
+ class Representation < Google::Apis::Core::JsonRepresentation
1068
+ property :entity_id, as: 'entityId'
1069
+ property :preferred_term, as: 'preferredTerm'
1070
+ collection :vocabulary_codes, as: 'vocabularyCodes'
1071
+ end
1072
+ end
1073
+
1074
+ class EntityMention
1075
+ # @private
1076
+ class Representation < Google::Apis::Core::JsonRepresentation
1077
+ property :certainty_assessment, as: 'certaintyAssessment', class: Google::Apis::HealthcareV1::Feature, decorator: Google::Apis::HealthcareV1::Feature::Representation
1078
+
1079
+ property :confidence, as: 'confidence'
1080
+ collection :linked_entities, as: 'linkedEntities', class: Google::Apis::HealthcareV1::LinkedEntity, decorator: Google::Apis::HealthcareV1::LinkedEntity::Representation
1081
+
1082
+ property :mention_id, as: 'mentionId'
1083
+ property :subject, as: 'subject', class: Google::Apis::HealthcareV1::Feature, decorator: Google::Apis::HealthcareV1::Feature::Representation
1084
+
1085
+ property :temporal_assessment, as: 'temporalAssessment', class: Google::Apis::HealthcareV1::Feature, decorator: Google::Apis::HealthcareV1::Feature::Representation
1086
+
1087
+ property :text, as: 'text', class: Google::Apis::HealthcareV1::TextSpan, decorator: Google::Apis::HealthcareV1::TextSpan::Representation
1088
+
1089
+ property :type, as: 'type'
1090
+ end
1091
+ end
1092
+
1093
+ class EntityMentionRelationship
1094
+ # @private
1095
+ class Representation < Google::Apis::Core::JsonRepresentation
1096
+ property :confidence, as: 'confidence'
1097
+ property :object_id_prop, as: 'objectId'
1098
+ property :subject_id, as: 'subjectId'
1099
+ end
1100
+ end
1101
+
997
1102
  class EvaluateUserConsentsRequest
998
1103
  # @private
999
1104
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1059,6 +1164,14 @@ module Google
1059
1164
  end
1060
1165
  end
1061
1166
 
1167
+ class Feature
1168
+ # @private
1169
+ class Representation < Google::Apis::Core::JsonRepresentation
1170
+ property :confidence, as: 'confidence'
1171
+ property :value, as: 'value'
1172
+ end
1173
+ end
1174
+
1062
1175
  class FhirConfig
1063
1176
  # @private
1064
1177
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1326,6 +1439,13 @@ module Google
1326
1439
  end
1327
1440
  end
1328
1441
 
1442
+ class LinkedEntity
1443
+ # @private
1444
+ class Representation < Google::Apis::Core::JsonRepresentation
1445
+ property :entity_id, as: 'entityId'
1446
+ end
1447
+ end
1448
+
1329
1449
  class ListAttributeDefinitionsResponse
1330
1450
  # @private
1331
1451
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1565,6 +1685,7 @@ module Google
1565
1685
  class QueryAccessibleDataResponse
1566
1686
  # @private
1567
1687
  class Representation < Google::Apis::Core::JsonRepresentation
1688
+ collection :gcs_uris, as: 'gcsUris'
1568
1689
  end
1569
1690
  end
1570
1691
 
@@ -1743,6 +1864,14 @@ module Google
1743
1864
  end
1744
1865
  end
1745
1866
 
1867
+ class TextSpan
1868
+ # @private
1869
+ class Representation < Google::Apis::Core::JsonRepresentation
1870
+ property :begin_offset, as: 'beginOffset'
1871
+ property :content, as: 'content'
1872
+ end
1873
+ end
1874
+
1746
1875
  class Type
1747
1876
  # @private
1748
1877
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -758,23 +758,26 @@ module Google
758
758
  # Queries all data_ids that are consented for a specified use in the given
759
759
  # consent store and writes them to a specified destination. The returned
760
760
  # Operation includes a progress counter for the number of User data mappings
761
- # processed. Errors are logged to Cloud Logging (see [Viewing error logs in
762
- # Cloud Logging](https://cloud.google.com/healthcare/docs/how-tos/logging)). For
763
- # example, the following sample log entry shows a `failed to evaluate consent
764
- # policy` error that occurred during a QueryAccessibleData call to consent store
765
- # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
766
- # consentStores/`consent_store_id``. ```json jsonPayload: ` @type: "type.
767
- # googleapis.com/google.cloud.healthcare.logging.QueryAccessibleDataLogEntry"
768
- # error: ` code: 9 message: "failed to evaluate consent policy" ` resourceName: "
769
- # projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
770
- # consentStores/`consent_store_id`/consents/`consent_id`" ` logName: "projects/`
771
- # project_id`/logs/healthcare.googleapis.com%2Fquery_accessible_data" operation:
772
- # ` id: "projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
773
- # operations/`operation_id`" producer: "healthcare.googleapis.com/
774
- # QueryAccessibleData" ` receiveTimestamp: "TIMESTAMP" resource: ` labels: `
775
- # consent_store_id: "`consent_store_id`" dataset_id: "`dataset_id`" location: "`
776
- # location_id`" project_id: "`project_id`" ` type: "healthcare_consent_store" `
777
- # severity: "ERROR" timestamp: "TIMESTAMP" ```
761
+ # processed. If the request is successful, a detailed response is returned of
762
+ # type QueryAccessibleDataResponse, contained in the response field when the
763
+ # operation finishes. The metadata field type is OperationMetadata. Errors are
764
+ # logged to Cloud Logging (see [Viewing error logs in Cloud Logging](https://
765
+ # cloud.google.com/healthcare/docs/how-tos/logging)). For example, the following
766
+ # sample log entry shows a `failed to evaluate consent policy` error that
767
+ # occurred during a QueryAccessibleData call to consent store `projects/`
768
+ # project_id`/locations/`location_id`/datasets/`dataset_id`/consentStores/`
769
+ # consent_store_id``. ```json jsonPayload: ` @type: "type.googleapis.com/google.
770
+ # cloud.healthcare.logging.QueryAccessibleDataLogEntry" error: ` code: 9 message:
771
+ # "failed to evaluate consent policy" ` resourceName: "projects/`project_id`/
772
+ # locations/`location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`/
773
+ # consents/`consent_id`" ` logName: "projects/`project_id`/logs/healthcare.
774
+ # googleapis.com%2Fquery_accessible_data" operation: ` id: "projects/`project_id`
775
+ # /locations/`location_id`/datasets/`dataset_id`/operations/`operation_id`"
776
+ # producer: "healthcare.googleapis.com/QueryAccessibleData" ` receiveTimestamp: "
777
+ # TIMESTAMP" resource: ` labels: ` consent_store_id: "`consent_store_id`"
778
+ # dataset_id: "`dataset_id`" location: "`location_id`" project_id: "`project_id`"
779
+ # ` type: "healthcare_consent_store" ` severity: "ERROR" timestamp: "TIMESTAMP"
780
+ # ```
778
781
  # @param [String] consent_store
779
782
  # Required. Name of the consent store to retrieve User data mappings from.
780
783
  # @param [Google::Apis::HealthcareV1::QueryAccessibleDataRequest] query_accessible_data_request_object
@@ -4168,14 +4171,16 @@ module Google
4168
4171
  # _revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The maximum
4169
4172
  # number of search results returned defaults to 100, which can be overridden by
4170
4173
  # the `_count` parameter up to a maximum limit of 1000. If there are additional
4171
- # results, the returned `Bundle` will contain pagination links. Resources with a
4172
- # total size larger than 5MB or a field count larger than 50,000 might not be
4173
- # fully searchable as the server might trim its generated search index in those
4174
- # cases. Note: FHIR resources are indexed asynchronously, so there might be a
4175
- # slight delay between the time a resource is created or changes and when the
4176
- # change is reflected in search results. For samples and detailed information,
4177
- # see [Searching for FHIR resources](/healthcare/docs/how-tos/fhir-search) and [
4178
- # Advanced FHIR search features](/healthcare/docs/how-tos/fhir-advanced-search).
4174
+ # results, the returned `Bundle` contains a link of `relation` "next", which has
4175
+ # a `_page_token` parameter for an opaque pagination token that can be used to
4176
+ # retrieve the next page. Resources with a total size larger than 5MB or a field
4177
+ # count larger than 50,000 might not be fully searchable as the server might
4178
+ # trim its generated search index in those cases. Note: FHIR resources are
4179
+ # indexed asynchronously, so there might be a slight delay between the time a
4180
+ # resource is created or changes and when the change is reflected in search
4181
+ # results. For samples and detailed information, see [Searching for FHIR
4182
+ # resources](/healthcare/docs/how-tos/fhir-search) and [Advanced FHIR search
4183
+ # features](/healthcare/docs/how-tos/fhir-advanced-search).
4179
4184
  # @param [String] parent
4180
4185
  # Name of the FHIR store to retrieve resources from.
4181
4186
  # @param [Google::Apis::HealthcareV1::SearchResourcesRequest] search_resources_request_object
@@ -4242,14 +4247,16 @@ module Google
4242
4247
  # _revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The maximum
4243
4248
  # number of search results returned defaults to 100, which can be overridden by
4244
4249
  # the `_count` parameter up to a maximum limit of 1000. If there are additional
4245
- # results, the returned `Bundle` will contain pagination links. Resources with a
4246
- # total size larger than 5MB or a field count larger than 50,000 might not be
4247
- # fully searchable as the server might trim its generated search index in those
4248
- # cases. Note: FHIR resources are indexed asynchronously, so there might be a
4249
- # slight delay between the time a resource is created or changes and when the
4250
- # change is reflected in search results. For samples and detailed information,
4251
- # see [Searching for FHIR resources](/healthcare/docs/how-tos/fhir-search) and [
4252
- # Advanced FHIR search features](/healthcare/docs/how-tos/fhir-advanced-search).
4250
+ # results, the returned `Bundle` contains a link of `relation` "next", which has
4251
+ # a `_page_token` parameter for an opaque pagination token that can be used to
4252
+ # retrieve the next page. Resources with a total size larger than 5MB or a field
4253
+ # count larger than 50,000 might not be fully searchable as the server might
4254
+ # trim its generated search index in those cases. Note: FHIR resources are
4255
+ # indexed asynchronously, so there might be a slight delay between the time a
4256
+ # resource is created or changes and when the change is reflected in search
4257
+ # results. For samples and detailed information, see [Searching for FHIR
4258
+ # resources](/healthcare/docs/how-tos/fhir-search) and [Advanced FHIR search
4259
+ # features](/healthcare/docs/how-tos/fhir-advanced-search).
4253
4260
  # @param [String] parent
4254
4261
  # Name of the FHIR store to retrieve resources from.
4255
4262
  # @param [String] resource_type
@@ -5085,6 +5092,42 @@ module Google
5085
5092
  command.query['quotaUser'] = quota_user unless quota_user.nil?
5086
5093
  execute_or_queue_command(command, &block)
5087
5094
  end
5095
+
5096
+ # Analyze heathcare entity in a document. Its response includes the recognized
5097
+ # entity mentions and the relationships between them. AnalyzeEntities uses
5098
+ # context aware models to detect entities.
5099
+ # @param [String] nlp_service
5100
+ # The resource name of the service of the form: "projects/`project_id`/locations/
5101
+ # `location_id`/services/nlp".
5102
+ # @param [Google::Apis::HealthcareV1::AnalyzeEntitiesRequest] analyze_entities_request_object
5103
+ # @param [String] fields
5104
+ # Selector specifying which fields to include in a partial response.
5105
+ # @param [String] quota_user
5106
+ # Available to use for quota purposes for server-side applications. Can be any
5107
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5108
+ # @param [Google::Apis::RequestOptions] options
5109
+ # Request-specific options
5110
+ #
5111
+ # @yield [result, err] Result & error if block supplied
5112
+ # @yieldparam result [Google::Apis::HealthcareV1::AnalyzeEntitiesResponse] parsed result object
5113
+ # @yieldparam err [StandardError] error object if request failed
5114
+ #
5115
+ # @return [Google::Apis::HealthcareV1::AnalyzeEntitiesResponse]
5116
+ #
5117
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5118
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5119
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5120
+ def analyze_nlp_entities(nlp_service, analyze_entities_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
5121
+ command = make_simple_command(:post, 'v1/{+nlpService}:analyzeEntities', options)
5122
+ command.request_representation = Google::Apis::HealthcareV1::AnalyzeEntitiesRequest::Representation
5123
+ command.request_object = analyze_entities_request_object
5124
+ command.response_representation = Google::Apis::HealthcareV1::AnalyzeEntitiesResponse::Representation
5125
+ command.response_class = Google::Apis::HealthcareV1::AnalyzeEntitiesResponse
5126
+ command.params['nlpService'] = nlp_service unless nlp_service.nil?
5127
+ command.query['fields'] = fields unless fields.nil?
5128
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5129
+ execute_or_queue_command(command, &block)
5130
+ end
5088
5131
 
5089
5132
  protected
5090
5133
 
@@ -29,7 +29,7 @@ module Google
29
29
  # This is NOT the gem version.
30
30
  VERSION = 'V1'
31
31
 
32
- # See, edit, configure, and delete your Google Cloud Platform data
32
+ # See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
34
34
  end
35
35
  end
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-healthcare_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.12.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-05-24 00:00:00.000000000 Z
11
+ date: 2021-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.1'
19
+ version: '0.4'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.4'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.1'
32
+ version: 2.a
27
33
  description: This is the simple REST client for Cloud Healthcare API V1. Simple REST
28
34
  clients are Ruby client libraries that provide access to Google services via their
29
35
  HTTP REST API endpoints. These libraries are generated and updated automatically
@@ -52,7 +58,7 @@ licenses:
52
58
  metadata:
53
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-healthcare_v1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-healthcare_v1/v0.8.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-healthcare_v1/v0.12.0
56
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-healthcare_v1
57
63
  post_install_message:
58
64
  rdoc_options: []