google-apis-healthcare_v1 0.9.0 → 0.13.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 +17 -0
- data/lib/google/apis/healthcare_v1/classes.rb +296 -2
- data/lib/google/apis/healthcare_v1/gem_version.rb +3 -3
- data/lib/google/apis/healthcare_v1/representations.rb +131 -0
- data/lib/google/apis/healthcare_v1/service.rb +76 -33
- data/lib/google/apis/healthcare_v1.rb +1 -1
- metadata +13 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0a27804e385423d6001def17a3269c917d576e84647ca8072e264bdcd2b8c3a
|
4
|
+
data.tar.gz: d2055b9ad32747268583e8e7e7bf6f81954dafaab07b0f185068de7b4bdeb2bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8af1f9d5c4fc5c9dde05ecaa932949ee7d9bc75d19af5c3e00b3232b1d0b41f60d829644e7e6c9f8fb46f7898bf51d61e453dfa36c7dcf97a96d8e411e93016f
|
7
|
+
data.tar.gz: e59371a7b203023383f08159525a7c36be2e33adff1289cbe222c69f900e27ee3c0ddb7c19d0d20f16330271534bbce6b2f0a30be6e8087bec9410a0b092c41b
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-healthcare_v1
|
2
2
|
|
3
|
+
### v0.13.0 (2021-09-16)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210909
|
6
|
+
|
7
|
+
### v0.12.0 (2021-09-01)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210830
|
10
|
+
|
11
|
+
### v0.11.0 (2021-06-29)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210621
|
14
|
+
* Regenerated using generator version 0.4.0
|
15
|
+
|
16
|
+
### v0.10.0 (2021-06-24)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210611
|
19
|
+
|
3
20
|
### v0.9.0 (2021-06-15)
|
4
21
|
|
5
22
|
* Regenerated from discovery document revision 20210603
|
@@ -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
|
@@ -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
|
@@ -3167,12 +3422,19 @@ module Google
|
|
3167
3422
|
class QueryAccessibleDataResponse
|
3168
3423
|
include Google::Apis::Core::Hashable
|
3169
3424
|
|
3425
|
+
# List of files, each of which contains a list of data_id(s) that are consented
|
3426
|
+
# for a specified use in the request.
|
3427
|
+
# Corresponds to the JSON property `gcsUris`
|
3428
|
+
# @return [Array<String>]
|
3429
|
+
attr_accessor :gcs_uris
|
3430
|
+
|
3170
3431
|
def initialize(**args)
|
3171
3432
|
update!(**args)
|
3172
3433
|
end
|
3173
3434
|
|
3174
3435
|
# Update properties of this object
|
3175
3436
|
def update!(**args)
|
3437
|
+
@gcs_uris = args[:gcs_uris] if args.key?(:gcs_uris)
|
3176
3438
|
end
|
3177
3439
|
end
|
3178
3440
|
|
@@ -3414,6 +3676,12 @@ module Google
|
|
3414
3676
|
# @return [Array<Google::Apis::HealthcareV1::Hl7TypesConfig>]
|
3415
3677
|
attr_accessor :types
|
3416
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
|
+
|
3417
3685
|
def initialize(**args)
|
3418
3686
|
update!(**args)
|
3419
3687
|
end
|
@@ -3424,6 +3692,7 @@ module Google
|
|
3424
3692
|
@schemas = args[:schemas] if args.key?(:schemas)
|
3425
3693
|
@schematized_parsing_type = args[:schematized_parsing_type] if args.key?(:schematized_parsing_type)
|
3426
3694
|
@types = args[:types] if args.key?(:types)
|
3695
|
+
@unexpected_segment_handling = args[:unexpected_segment_handling] if args.key?(:unexpected_segment_handling)
|
3427
3696
|
end
|
3428
3697
|
end
|
3429
3698
|
|
@@ -3576,7 +3845,7 @@ module Google
|
|
3576
3845
|
# resourcemanager.organizationAdmin - members: - user:eve@example.com role:
|
3577
3846
|
# roles/resourcemanager.organizationViewer condition: title: expirable access
|
3578
3847
|
# description: Does not grant access after Sep 2020 expression: request.time <
|
3579
|
-
# timestamp('2020-10-01T00:00:00.000Z')
|
3848
|
+
# timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
|
3580
3849
|
# description of IAM and its features, see the [IAM documentation](https://cloud.
|
3581
3850
|
# google.com/iam/docs/).
|
3582
3851
|
# Corresponds to the JSON property `policy`
|
@@ -3787,6 +4056,31 @@ module Google
|
|
3787
4056
|
end
|
3788
4057
|
end
|
3789
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
|
+
|
3790
4084
|
# A type definition for some HL7v2 type (incl. Segments and Datatypes).
|
3791
4085
|
class Type
|
3792
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.13.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 = "20210909"
|
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
|
|
@@ -1565,6 +1686,7 @@ module Google
|
|
1565
1686
|
class QueryAccessibleDataResponse
|
1566
1687
|
# @private
|
1567
1688
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1689
|
+
collection :gcs_uris, as: 'gcsUris'
|
1568
1690
|
end
|
1569
1691
|
end
|
1570
1692
|
|
@@ -1640,6 +1762,7 @@ module Google
|
|
1640
1762
|
property :schematized_parsing_type, as: 'schematizedParsingType'
|
1641
1763
|
collection :types, as: 'types', class: Google::Apis::HealthcareV1::Hl7TypesConfig, decorator: Google::Apis::HealthcareV1::Hl7TypesConfig::Representation
|
1642
1764
|
|
1765
|
+
property :unexpected_segment_handling, as: 'unexpectedSegmentHandling'
|
1643
1766
|
end
|
1644
1767
|
end
|
1645
1768
|
|
@@ -1743,6 +1866,14 @@ module Google
|
|
1743
1866
|
end
|
1744
1867
|
end
|
1745
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
|
+
|
1746
1877
|
class Type
|
1747
1878
|
# @private
|
1748
1879
|
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.
|
762
|
-
#
|
763
|
-
#
|
764
|
-
#
|
765
|
-
#
|
766
|
-
#
|
767
|
-
#
|
768
|
-
#
|
769
|
-
#
|
770
|
-
#
|
771
|
-
#
|
772
|
-
#
|
773
|
-
#
|
774
|
-
#
|
775
|
-
#
|
776
|
-
#
|
777
|
-
#
|
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`
|
4172
|
-
#
|
4173
|
-
#
|
4174
|
-
#
|
4175
|
-
#
|
4176
|
-
#
|
4177
|
-
#
|
4178
|
-
#
|
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`
|
4246
|
-
#
|
4247
|
-
#
|
4248
|
-
#
|
4249
|
-
#
|
4250
|
-
#
|
4251
|
-
#
|
4252
|
-
#
|
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
|
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.
|
4
|
+
version: 0.13.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-20 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.
|
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:
|
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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-healthcare_v1/v0.13.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: []
|