Skip to content

Commit

Permalink
Add missing Entity Types and Relation Types (#22322)
Browse files Browse the repository at this point in the history
* Add missing Entity Types and Relation Types

* Fix JSON style issue

* Align healthcare document result to use DocumentDetectedLanguage object
  • Loading branch information
gils-ms authored Feb 16, 2023
1 parent d2088a7 commit d1c80fa
Showing 1 changed file with 27 additions and 12 deletions.
39 changes: 27 additions & 12 deletions dev/cognitiveservices/data-plane/Language/analyzetext.json
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@
"$ref": "#/definitions/HealthcareEntitiesDocumentResult"
},
{
"$ref": "#/definitions/DocumentDetectedLanguageString"
"$ref": "#/definitions/DocumentDetectedLanguage"
}
]
},
Expand Down Expand Up @@ -926,6 +926,7 @@
"BodyStructure",
"Age",
"Gender",
"Ethnicity",
"ExaminationName",
"Date",
"Direction",
Expand All @@ -934,21 +935,30 @@
"MeasurementUnit",
"RelationalOperator",
"Time",
"Course",
"GeneOrProtein",
"Variant",
"Expression",
"MutationType",
"AdministrativeEvent",
"CareEnvironment",
"HealthcareProfession",
"Diagnosis",
"SymptomOrSign",
"ConditionQualifier",
"ConditionScale",
"MedicationClass",
"MedicationName",
"Dosage",
"MedicationForm",
"MedicationRoute",
"FamilyRelation",
"TreatmentName"
"TreatmentName",
"Allergen",
"Employment",
"LivingStatus",
"SubstanceUse",
"SubstanceUseAmount"
]
},
"subcategory": {
Expand Down Expand Up @@ -1007,17 +1017,30 @@
"type": "string",
"enum": [
"Abbreviation",
"BodySiteOfCondition",
"BodySiteOfTreatment",
"CourseOfCondition",
"CourseOfExamination",
"CourseOfMedication",
"CourseOfTreatment",
"DirectionOfBodyStructure",
"DirectionOfCondition",
"DirectionOfExamination",
"DirectionOfTreatment",
"DosageOfMedication",
"ExaminationFindsCondition",
"ExpressionOfGene",
"ExpressionOfVariant",
"FormOfMedication",
"FrequencyOfCondition",
"FrequencyOfMedication",
"FrequencyOfTreatment",
"MutationTypeOfGene",
"MutationTypeOfVariant",
"QualifierOfCondition",
"RelationOfExamination",
"RouteOfMedication",
"ScaleOfCondition",
"TimeOfCondition",
"TimeOfEvent",
"TimeOfExamination",
Expand All @@ -1026,7 +1049,8 @@
"UnitOfCondition",
"UnitOfExamination",
"ValueOfCondition",
"ValueOfExamination"
"ValueOfExamination",
"VariantOfGene"
],
"x-ms-enum": {
"name": "relationType",
Expand Down Expand Up @@ -3466,15 +3490,6 @@
}
}
},
"DocumentDetectedLanguageString": {
"type": "object",
"properties": {
"detectedLanguage": {
"type": "string",
"description": "If 'language' is set to 'auto' for the document in the request this field will contain a 2 letter ISO 639-1 representation of the language detected for this document."
}
}
},
"DocumentError": {
"type": "object",
"required": [
Expand Down

0 comments on commit d1c80fa

Please sign in to comment.