HealthcareRelation Class

HealthcareRelation is a result object which represents a relation detected in a document.

Every HealthcareRelation is an entity graph of a certain relation type, where all entities are connected and have specific roles within the relation context.

Inheritance
azure.ai.textanalytics._models.DictMixin
HealthcareRelation

Constructor

HealthcareRelation(**kwargs)

Variables

relation_type
str

The type of relation, i.e. the relationship between "100mg" and "ibuprofen" in the document "The subject took 100 mg of ibuprofen" is "DosageOfMedication". Possible values found in HealthcareEntityRelation

roles
list[HealthcareRelationRole]

The roles present in this relation. I.e., in the document "The subject took 100 mg of ibuprofen", the present roles are "Dosage" and "Medication".