Class: Google::Apis::HealthcareV1beta1::AnalyzeEntitiesResponse
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1beta1::AnalyzeEntitiesResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/healthcare_v1beta1/classes.rb,
lib/google/apis/healthcare_v1beta1/representations.rb,
lib/google/apis/healthcare_v1beta1/representations.rb
Overview
Includes recognized entity mentions and relationships between them.
Instance Attribute Summary collapse
-
#entities ⇒ Array<Google::Apis::HealthcareV1beta1::Entity>
The union of all the candidate entities that the entity_mentions in this response could link to.
-
#entity_mentions ⇒ Array<Google::Apis::HealthcareV1beta1::EntityMention>
The
entity_mentions
field contains all the annotated medical entities that were mentioned in the provided document. -
#fhir_bundle ⇒ String
The FHIR bundle (
R4
) that includes all the entities, the entity mentions, and the relationships in JSON format. -
#relationships ⇒ Array<Google::Apis::HealthcareV1beta1::EntityMentionRelationship>
relationships contains all the binary relationships that were identified between entity mentions within the provided document.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AnalyzeEntitiesResponse
constructor
A new instance of AnalyzeEntitiesResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AnalyzeEntitiesResponse
Returns a new instance of AnalyzeEntitiesResponse.
247 248 249 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 247 def initialize(**args) update!(**args) end |
Instance Attribute Details
#entities ⇒ Array<Google::Apis::HealthcareV1beta1::Entity>
The union of all the candidate entities that the entity_mentions in this
response could link to. These are UMLS concepts or normalized mention content.
Corresponds to the JSON property entities
227 228 229 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 227 def entities @entities end |
#entity_mentions ⇒ Array<Google::Apis::HealthcareV1beta1::EntityMention>
The entity_mentions
field contains all the annotated medical entities that
were mentioned in the provided document.
Corresponds to the JSON property entityMentions
233 234 235 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 233 def entity_mentions @entity_mentions end |
#fhir_bundle ⇒ String
The FHIR bundle (R4
) that includes all
the entities, the entity mentions, and the relationships in JSON format.
Corresponds to the JSON property fhirBundle
239 240 241 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 239 def fhir_bundle @fhir_bundle end |
#relationships ⇒ Array<Google::Apis::HealthcareV1beta1::EntityMentionRelationship>
relationships contains all the binary relationships that were identified
between entity mentions within the provided document.
Corresponds to the JSON property relationships
245 246 247 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 245 def relationships @relationships end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
252 253 254 255 256 257 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 252 def update!(**args) @entities = args[:entities] if args.key?(:entities) @entity_mentions = args[:entity_mentions] if args.key?(:entity_mentions) @fhir_bundle = args[:fhir_bundle] if args.key?(:fhir_bundle) @relationships = args[:relationships] if args.key?(:relationships) end |