關聯擷取
健康情況關聯擷取的文字分析,可用於識別文字中所提及概念或實體之間的有意義關聯。 例如,透過建立症狀名稱與時間之間的關聯,即可找到 "time of condition" 關聯。 另一個範例則是透過建立萃取藥物與萃取劑量之間的關聯,找到 "dosage of medication" 關聯。 下列範例說明如何在 JSON 輸出中表示關聯。
注意
- 參考 CONDITION 的關聯可能是指 DIAGNOSIS 實體類型或 SYMPTOM_OR_SIGN 實體類型。
- 參考 MEDICATION 的關聯可能是指 MEDICATION_NAME 實體類型或 MEDICATION_CLASS 實體類型。
- 參考 TIME 的關聯可能是指 TIME 實體類型或 DATE 實體類型。
關聯擷取輸出包含 URI 參考,以及關聯類型實體的獲指派角色。 例如,在下列 JSON 中:
"relations": [
{
"relationType": "DosageOfMedication",
"entities": [
{
"ref": "#/results/documents/0/entities/0",
"role": "Dosage"
},
{
"ref": "#/results/documents/0/entities/1",
"role": "Medication"
}
]
},
{
"relationType": "RouteOfMedication",
"entities": [
{
"ref": "#/results/documents/0/entities/1",
"role": "Medication"
},
{
"ref": "#/results/documents/0/entities/2",
"role": "Route"
}
]
}
]
辨識的關聯
下列清單顯示健康情況文字分析 API 已辨識的所有關聯。
ABBREVIATION
AMOUNT_OF_SUBSTANCE_USE
BODY_SITE_OF_CONDITION
BODY_SITE_OF_TREATMENT
COURSE_OF_CONDITION
COURSE_OF_EXAMINATION
COURSE_OF_MEDICATION
COURSE_OF_TREATMENT
DIRECTION_OF_BODY_STRUCTURE
DIRECTION_OF_CONDITION
DIRECTION_OF_EXAMINATION
DIRECTION_OF_TREATMENT
DOSAGE_OF_MEDICATION
EXAMINATION_FINDS_CONDITION
EXPRESSION_OF_GENE
EXPRESSION_OF_VARIANT
FORM_OF_MEDICATION
FREQUENCY_OF_CONDITION
FREQUENCY_OF_MEDICATION
FREQUENCY_OF_SUBSTANCE_USE
FREQUENCY_OF_TREATMENT
MUTATION_TYPE_OF_GENE
MUTATION_TYPE_OF_VARIANT
QUALIFIER_OF_CONDITION
RELATION_OF_EXAMINATION
ROUTE_OF_MEDICATION
SCALE_OF_CONDITION
TIME_OF_CONDITION
TIME_OF_EVENT
TIME_OF_EXAMINATION
TIME_OF_MEDICATION
TIME_OF_TREATMENT
UNIT_OF_CONDITION
UNIT_OF_EXAMINATION
VALUE_OF_CONDITION
VALUE_OF_EXAMINATION
VARIANT_OF_GENE