google-apis-healthcare_v1 0.10.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/lib/google/apis/healthcare_v1/classes.rb +290 -3
- data/lib/google/apis/healthcare_v1/gem_version.rb +3 -3
- data/lib/google/apis/healthcare_v1/representations.rb +130 -0
- data/lib/google/apis/healthcare_v1/service.rb +56 -16
- data/lib/google/apis/healthcare_v1.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26a082b9cf2017054d6ba4778e3cf087de052329d33f56d3aac94e3a86735cc3
|
4
|
+
data.tar.gz: 07b67fb286bada96e51fbd8b14a7750c8ff079e6d8cc8cc5d3a97730e4affc34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b2dd39757a3ac00c0449fc63c7f81c393e94f47282184cbb1be4b83a8da3f3d393305dda8cf099a15a725f6f061bdcc51bee93ac4acaf68e39ebe6a774a14ee
|
7
|
+
data.tar.gz: 81e07d668bc8b28eb64d50cb274a74775335f1196d9ccf2ea90f8de0e3cdf3f74913e62c014e2a323d7e2ca51d50ee01603152061ba7f6e0f5222884a9f4d3e7
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-healthcare_v1
|
2
2
|
|
3
|
+
### v0.14.0 (2021-09-24)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210914
|
6
|
+
|
7
|
+
### v0.13.0 (2021-09-16)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210909
|
10
|
+
|
11
|
+
### v0.12.0 (2021-09-01)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210830
|
14
|
+
|
15
|
+
### v0.11.0 (2021-06-29)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20210621
|
18
|
+
* Regenerated using generator version 0.4.0
|
19
|
+
|
3
20
|
### v0.10.0 (2021-06-24)
|
4
21
|
|
5
22
|
* Regenerated from discovery document revision 20210611
|
@@ -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
|
@@ -122,7 +182,7 @@ module Google
|
|
122
182
|
include Google::Apis::Core::Hashable
|
123
183
|
|
124
184
|
# Required. Possible values for the attribute. The number of allowed values must
|
125
|
-
# not exceed
|
185
|
+
# not exceed 500. An empty list is invalid. The list can only be expanded after
|
126
186
|
# creation.
|
127
187
|
# Corresponds to the JSON property `allowedValues`
|
128
188
|
# @return [Array<String>]
|
@@ -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
|
@@ -2966,6 +3214,12 @@ module Google
|
|
2966
3214
|
# @return [String]
|
2967
3215
|
attr_accessor :segment_terminator
|
2968
3216
|
|
3217
|
+
# Immutable. Determines the version of the unschematized parser to be used when `
|
3218
|
+
# schema` is not given. This field is immutable after store creation.
|
3219
|
+
# Corresponds to the JSON property `version`
|
3220
|
+
# @return [String]
|
3221
|
+
attr_accessor :version
|
3222
|
+
|
2969
3223
|
def initialize(**args)
|
2970
3224
|
update!(**args)
|
2971
3225
|
end
|
@@ -2975,6 +3229,7 @@ module Google
|
|
2975
3229
|
@allow_null_header = args[:allow_null_header] if args.key?(:allow_null_header)
|
2976
3230
|
@schema = args[:schema] if args.key?(:schema)
|
2977
3231
|
@segment_terminator = args[:segment_terminator] if args.key?(:segment_terminator)
|
3232
|
+
@version = args[:version] if args.key?(:version)
|
2978
3233
|
end
|
2979
3234
|
end
|
2980
3235
|
|
@@ -3027,7 +3282,7 @@ module Google
|
|
3027
3282
|
# resourcemanager.organizationAdmin - members: - user:eve@example.com role:
|
3028
3283
|
# roles/resourcemanager.organizationViewer condition: title: expirable access
|
3029
3284
|
# description: Does not grant access after Sep 2020 expression: request.time <
|
3030
|
-
# timestamp('2020-10-01T00:00:00.000Z')
|
3285
|
+
# timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
|
3031
3286
|
# description of IAM and its features, see the [IAM documentation](https://cloud.
|
3032
3287
|
# google.com/iam/docs/).
|
3033
3288
|
class Policy
|
@@ -3421,6 +3676,12 @@ module Google
|
|
3421
3676
|
# @return [Array<Google::Apis::HealthcareV1::Hl7TypesConfig>]
|
3422
3677
|
attr_accessor :types
|
3423
3678
|
|
3679
|
+
# Determines how unexpected segments (segments not matched to the schema) are
|
3680
|
+
# handled.
|
3681
|
+
# Corresponds to the JSON property `unexpectedSegmentHandling`
|
3682
|
+
# @return [String]
|
3683
|
+
attr_accessor :unexpected_segment_handling
|
3684
|
+
|
3424
3685
|
def initialize(**args)
|
3425
3686
|
update!(**args)
|
3426
3687
|
end
|
@@ -3431,6 +3692,7 @@ module Google
|
|
3431
3692
|
@schemas = args[:schemas] if args.key?(:schemas)
|
3432
3693
|
@schematized_parsing_type = args[:schematized_parsing_type] if args.key?(:schematized_parsing_type)
|
3433
3694
|
@types = args[:types] if args.key?(:types)
|
3695
|
+
@unexpected_segment_handling = args[:unexpected_segment_handling] if args.key?(:unexpected_segment_handling)
|
3434
3696
|
end
|
3435
3697
|
end
|
3436
3698
|
|
@@ -3583,7 +3845,7 @@ module Google
|
|
3583
3845
|
# resourcemanager.organizationAdmin - members: - user:eve@example.com role:
|
3584
3846
|
# roles/resourcemanager.organizationViewer condition: title: expirable access
|
3585
3847
|
# description: Does not grant access after Sep 2020 expression: request.time <
|
3586
|
-
# timestamp('2020-10-01T00:00:00.000Z')
|
3848
|
+
# timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
|
3587
3849
|
# description of IAM and its features, see the [IAM documentation](https://cloud.
|
3588
3850
|
# google.com/iam/docs/).
|
3589
3851
|
# Corresponds to the JSON property `policy`
|
@@ -3794,6 +4056,31 @@ module Google
|
|
3794
4056
|
end
|
3795
4057
|
end
|
3796
4058
|
|
4059
|
+
# A span of text in the provided document.
|
4060
|
+
class TextSpan
|
4061
|
+
include Google::Apis::Core::Hashable
|
4062
|
+
|
4063
|
+
# The unicode codepoint index of the beginning of this span.
|
4064
|
+
# Corresponds to the JSON property `beginOffset`
|
4065
|
+
# @return [Fixnum]
|
4066
|
+
attr_accessor :begin_offset
|
4067
|
+
|
4068
|
+
# The original text contained in this span.
|
4069
|
+
# Corresponds to the JSON property `content`
|
4070
|
+
# @return [String]
|
4071
|
+
attr_accessor :content
|
4072
|
+
|
4073
|
+
def initialize(**args)
|
4074
|
+
update!(**args)
|
4075
|
+
end
|
4076
|
+
|
4077
|
+
# Update properties of this object
|
4078
|
+
def update!(**args)
|
4079
|
+
@begin_offset = args[:begin_offset] if args.key?(:begin_offset)
|
4080
|
+
@content = args[:content] if args.key?(:content)
|
4081
|
+
end
|
4082
|
+
end
|
4083
|
+
|
3797
4084
|
# A type definition for some HL7v2 type (incl. Segments and Datatypes).
|
3798
4085
|
class Type
|
3799
4086
|
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.14.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210914"
|
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
|
@@ -1520,6 +1640,7 @@ module Google
|
|
1520
1640
|
property :schema, as: 'schema', class: Google::Apis::HealthcareV1::SchemaPackage, decorator: Google::Apis::HealthcareV1::SchemaPackage::Representation
|
1521
1641
|
|
1522
1642
|
property :segment_terminator, :base64 => true, as: 'segmentTerminator'
|
1643
|
+
property :version, as: 'version'
|
1523
1644
|
end
|
1524
1645
|
end
|
1525
1646
|
|
@@ -1641,6 +1762,7 @@ module Google
|
|
1641
1762
|
property :schematized_parsing_type, as: 'schematizedParsingType'
|
1642
1763
|
collection :types, as: 'types', class: Google::Apis::HealthcareV1::Hl7TypesConfig, decorator: Google::Apis::HealthcareV1::Hl7TypesConfig::Representation
|
1643
1764
|
|
1765
|
+
property :unexpected_segment_handling, as: 'unexpectedSegmentHandling'
|
1644
1766
|
end
|
1645
1767
|
end
|
1646
1768
|
|
@@ -1744,6 +1866,14 @@ module Google
|
|
1744
1866
|
end
|
1745
1867
|
end
|
1746
1868
|
|
1869
|
+
class TextSpan
|
1870
|
+
# @private
|
1871
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1872
|
+
property :begin_offset, as: 'beginOffset'
|
1873
|
+
property :content, as: 'content'
|
1874
|
+
end
|
1875
|
+
end
|
1876
|
+
|
1747
1877
|
class Type
|
1748
1878
|
# @private
|
1749
1879
|
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.14.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-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.4'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.4'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -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.14.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: []
|