Class: Google::Apis::HealthcareV1beta1::Entity
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1beta1::Entity
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/healthcare_v1beta1/classes.rb,
generated/google/apis/healthcare_v1beta1/representations.rb,
generated/google/apis/healthcare_v1beta1/representations.rb
Overview
The candidate entities that an entity mention could link to.
Instance Attribute Summary collapse
-
#entity_id ⇒ String
entity_id is a first class field entity_id uniquely identifies this concept and its meta-vocabulary.
-
#preferred_term ⇒ String
preferred_term is the preferred term for this concept.
-
#vocabulary_codes ⇒ Array<String>
Vocabulary codes are first-class fields and differentiated from the concept unique identifier (entity_id).
Instance Method Summary collapse
-
#initialize(**args) ⇒ Entity
constructor
A new instance of Entity.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Entity
Returns a new instance of Entity.
1337 1338 1339 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 1337 def initialize(**args) update!(**args) end |
Instance Attribute Details
#entity_id ⇒ String
entity_id is a first class field entity_id uniquely identifies this concept
and its meta-vocabulary. For example, "UMLS/C0000970".
Corresponds to the JSON property entityId
1319 1320 1321 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 1319 def entity_id @entity_id end |
#preferred_term ⇒ String
preferred_term is the preferred term for this concept. For example, "
Acetaminophen". For ad hoc entities formed by normalization, this is the most
popular unnormalized string.
Corresponds to the JSON property preferredTerm
1326 1327 1328 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 1326 def preferred_term @preferred_term end |
#vocabulary_codes ⇒ Array<String>
Vocabulary codes are first-class fields and differentiated from the concept
unique identifier (entity_id). vocabulary_codes contains the representation of
this concept in particular vocabularies, such as ICD-10, SNOMED-CT and RxNORM.
These are prefixed by the name of the vocabulary, followed by the unique code
within that vocabulary. For example, "RXNORM/A10334543".
Corresponds to the JSON property vocabularyCodes
1335 1336 1337 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 1335 def vocabulary_codes @vocabulary_codes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1342 1343 1344 1345 1346 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 1342 def update!(**args) @entity_id = args[:entity_id] if args.key?(:entity_id) @preferred_term = args[:preferred_term] if args.key?(:preferred_term) @vocabulary_codes = args[:vocabulary_codes] if args.key?(:vocabulary_codes) end |