google-apis-healthcare_v1 0.11.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/healthcare_v1/classes.rb +275 -2
- data/lib/google/apis/healthcare_v1/gem_version.rb +2 -2
- data/lib/google/apis/healthcare_v1/representations.rb +128 -0
- data/lib/google/apis/healthcare_v1/service.rb +56 -16
- data/lib/google/apis/healthcare_v1.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3413ce6fea59552e2eb96e747ea6706a165c1ff8a1ef0e38c41746283071c46a
|
4
|
+
data.tar.gz: fb5045d7b30648de80bc0574ca1ad227aad19168bb8904ef06d87718bd7936a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9973cff86533dd7ccfeb2857cfa5e9460b303ec9297bb12bee487628e3b6bffe733acf53bc92f433cbd46fcad66a6cc0b2603b54c564fbee025e62899c0b8396
|
7
|
+
data.tar.gz: 5b629a229d713c05843c89d8b038c653a81430a187fd56728d4cc31796c58f657ac5bc44ebe9602b45af6512bc2fda98d7f8975abb24a1741f5c07d5e76d9f76
|
data/CHANGELOG.md
CHANGED
@@ -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
|
@@ -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')
|
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
|
@@ -3583,7 +3831,7 @@ module Google
|
|
3583
3831
|
# resourcemanager.organizationAdmin - members: - user:eve@example.com role:
|
3584
3832
|
# roles/resourcemanager.organizationViewer condition: title: expirable access
|
3585
3833
|
# description: Does not grant access after Sep 2020 expression: request.time <
|
3586
|
-
# timestamp('2020-10-01T00:00:00.000Z')
|
3834
|
+
# timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
|
3587
3835
|
# description of IAM and its features, see the [IAM documentation](https://cloud.
|
3588
3836
|
# google.com/iam/docs/).
|
3589
3837
|
# Corresponds to the JSON property `policy`
|
@@ -3794,6 +4042,31 @@ module Google
|
|
3794
4042
|
end
|
3795
4043
|
end
|
3796
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
|
+
|
3797
4070
|
# A type definition for some HL7v2 type (incl. Segments and Datatypes).
|
3798
4071
|
class Type
|
3799
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.
|
19
|
+
GEM_VERSION = "0.12.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "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
|
@@ -1744,6 +1864,14 @@ module Google
|
|
1744
1864
|
end
|
1745
1865
|
end
|
1746
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
|
+
|
1747
1875
|
class Type
|
1748
1876
|
# @private
|
1749
1877
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -4171,14 +4171,16 @@ module Google
|
|
4171
4171
|
# _revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The maximum
|
4172
4172
|
# number of search results returned defaults to 100, which can be overridden by
|
4173
4173
|
# the `_count` parameter up to a maximum limit of 1000. If there are additional
|
4174
|
-
# results, the returned `Bundle`
|
4175
|
-
#
|
4176
|
-
#
|
4177
|
-
#
|
4178
|
-
#
|
4179
|
-
#
|
4180
|
-
#
|
4181
|
-
#
|
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).
|
4182
4184
|
# @param [String] parent
|
4183
4185
|
# Name of the FHIR store to retrieve resources from.
|
4184
4186
|
# @param [Google::Apis::HealthcareV1::SearchResourcesRequest] search_resources_request_object
|
@@ -4245,14 +4247,16 @@ module Google
|
|
4245
4247
|
# _revinclude`, `_summary=text`, `_summary=data`, and `_elements`. The maximum
|
4246
4248
|
# number of search results returned defaults to 100, which can be overridden by
|
4247
4249
|
# the `_count` parameter up to a maximum limit of 1000. If there are additional
|
4248
|
-
# results, the returned `Bundle`
|
4249
|
-
#
|
4250
|
-
#
|
4251
|
-
#
|
4252
|
-
#
|
4253
|
-
#
|
4254
|
-
#
|
4255
|
-
#
|
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).
|
4256
4260
|
# @param [String] parent
|
4257
4261
|
# Name of the FHIR store to retrieve resources from.
|
4258
4262
|
# @param [String] resource_type
|
@@ -5088,6 +5092,42 @@ module Google
|
|
5088
5092
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5089
5093
|
execute_or_queue_command(command, &block)
|
5090
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
|
5091
5131
|
|
5092
5132
|
protected
|
5093
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
|
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,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-healthcare_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.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-
|
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
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-healthcare_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-healthcare_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-healthcare_v1/v0.12.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-healthcare_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|