\r\n\t\t\t\t\t\t\t
General
\r\n\t\t\t\t\t\t\t
Prescribed 100mg ibuprofen, taken twice daily.
\r\n\t\t\t\t\t
"
+ },
+ "entry": [
+ {
+ "reference": "List/6d743a3e-e7a2-4cee-a0b5-64361b6c93ad",
+ "type": "List",
+ "display": "General"
+ }
+ ]
+ }
+ ]
+ }
+ },
+ {
+ "fullUrl": "Practitioner/bba2dee3-2eb3-4973-b4b9-62d498b17046",
+ "resource": {
+ "resourceType": "Practitioner",
+ "id": "bba2dee3-2eb3-4973-b4b9-62d498b17046",
+ "name": [
+ {
+ "text": "Unknown",
+ "family": "Unknown"
+ }
+ ]
+ }
+ },
+ {
+ "fullUrl": "Patient/efcccdf7-87f0-4061-b553-09fc11734594",
+ "resource": {
+ "resourceType": "Patient",
+ "id": "efcccdf7-87f0-4061-b553-09fc11734594",
+ "gender": "unknown"
+ }
+ },
+ {
+ "fullUrl": "Encounter/76214457-f94c-4ccf-95ef-ab31e7232d63",
+ "resource": {
+ "resourceType": "Encounter",
+ "id": "76214457-f94c-4ccf-95ef-ab31e7232d63",
+ "meta": {
+ "profile": [
+ "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter"
+ ]
+ },
+ "status": "finished",
+ "class": {
+ "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
+ "display": "unknown"
+ },
+ "subject": {
+ "reference": "Patient/efcccdf7-87f0-4061-b553-09fc11734594",
+ "type": "Patient"
+ },
+ "period": {
+ "start": "2022-09-06",
+ "end": "2022-09-06"
+ }
+ }
+ },
+ {
+ "fullUrl": "MedicationStatement/ac0264b6-63b7-4cf2-a7c3-f7340788aca7",
+ "resource": {
+ "resourceType": "MedicationStatement",
+ "id": "ac0264b6-63b7-4cf2-a7c3-f7340788aca7",
+ "extension": [
+ {
+ "extension": [
+ {
+ "url": "offset",
+ "valueInteger": 17
+ },
+ {
+ "url": "length",
+ "valueInteger": 9
+ }
+ ],
+ "url": "http://hl7.org/fhir/StructureDefinition/derivation-reference"
+ }
+ ],
+ "status": "active",
+ "medicationCodeableConcept": {
+ "coding": [
+ {
+ "system": "http://www.nlm.nih.gov/research/umls",
+ "code": "C0020740",
+ "display": "ibuprofen"
+ },
+ {
+ "system": "http://www.nlm.nih.gov/research/umls/aod",
+ "code": "0000019879"
+ },
+ {
+ "system": "http://www.whocc.no/atc",
+ "code": "M01AE01"
+ },
+ {
+ "system": "http://www.nlm.nih.gov/research/umls/ccpss",
+ "code": "0046165"
+ },
+ {
+ "system": "http://www.nlm.nih.gov/research/umls/chv",
+ "code": "0000006519"
+ },
+ {
+ "system": "http://www.nlm.nih.gov/research/umls/csp",
+ "code": "2270-2077"
+ },
+ {
+ "system": "http://www.nlm.nih.gov/research/umls/drugbank",
+ "code": "DB01050"
+ },
+ {
+ "system": "http://www.nlm.nih.gov/research/umls/gs",
+ "code": "1611"
+ },
+ {
+ "system": "http://www.nlm.nih.gov/research/umls/lch_nw",
+ "code": "sh97005926"
+ },
+ {
+ "system": "http://loinc.org",
+ "code": "LP16165-0"
+ },
+ {
+ "system": "http://www.nlm.nih.gov/research/umls/medcin",
+ "code": "40458"
+ },
+ {
+ "system": "http://www.nlm.nih.gov/research/umls/mmsl",
+ "code": "d00015"
+ },
+ {
+ "system": "http://www.nlm.nih.gov/research/umls/msh",
+ "code": "D007052"
+ },
+ {
+ "system": "http://www.nlm.nih.gov/research/umls/mthspl",
+ "code": "WK2XYI10QM"
+ },
+ {
+ "system": "http://ncimeta.nci.nih.gov",
+ "code": "C561"
+ },
+ {
+ "system": "http://www.nlm.nih.gov/research/umls/nci_ctrp",
+ "code": "C561"
+ },
+ {
+ "system": "http://www.nlm.nih.gov/research/umls/nci_dcp",
+ "code": "00803"
+ },
+ {
+ "system": "http://www.nlm.nih.gov/research/umls/nci_dtp",
+ "code": "NSC0256857"
+ },
+ {
+ "system": "http://www.nlm.nih.gov/research/umls/nci_fda",
+ "code": "WK2XYI10QM"
+ },
+ {
+ "system": "http://www.nlm.nih.gov/research/umls/nci_nci-gloss",
+ "code": "CDR0000613511"
+ },
+ {
+ "system": "http://www.nlm.nih.gov/research/umls/nddf",
+ "code": "002377"
+ },
+ {
+ "system": "http://www.nlm.nih.gov/research/umls/pdq",
+ "code": "CDR0000040475"
+ },
+ {
+ "system": "http://www.nlm.nih.gov/research/umls/rcd",
+ "code": "x02MO"
+ },
+ {
+ "system": "http://www.nlm.nih.gov/research/umls/rxnorm",
+ "code": "5640"
+ },
+ {
+ "system": "http://snomed.info/sct",
+ "code": "E-7772"
+ },
+ {
+ "system": "http://snomed.info/sct",
+ "code": "C-603C0"
+ },
+ {
+ "system": "http://snomed.info/sct",
+ "code": "387207008"
+ },
+ {
+ "system": "http://www.nlm.nih.gov/research/umls/usp",
+ "code": "m39860"
+ },
+ {
+ "system": "http://www.nlm.nih.gov/research/umls/uspmg",
+ "code": "MTHU000060"
+ },
+ {
+ "system": "http://hl7.org/fhir/ndfrt",
+ "code": "4017840"
+ }
+ ],
+ "text": "ibuprofen"
+ },
+ "subject": {
+ "reference": "Patient/efcccdf7-87f0-4061-b553-09fc11734594",
+ "type": "Patient"
+ },
+ "context": {
+ "reference": "Encounter/76214457-f94c-4ccf-95ef-ab31e7232d63",
+ "type": "Encounter",
+ "display": "unknown"
+ },
+ "dosage": [
+ {
+ "text": "100mg",
+ "timing": {
+ "repeat": {
+ "frequency": 2,
+ "period": 1,
+ "periodUnit": "d"
+ },
+ "code": {
+ "text": "twice daily"
+ }
+ },
+ "doseAndRate": [
+ {
+ "doseQuantity": {
+ "value": 100
+ }
+ }
+ ]
+ }
+ ]
+ }
+ },
+ {
+ "fullUrl": "List/6d743a3e-e7a2-4cee-a0b5-64361b6c93ad",
+ "resource": {
+ "resourceType": "List",
+ "id": "6d743a3e-e7a2-4cee-a0b5-64361b6c93ad",
+ "status": "current",
+ "mode": "snapshot",
+ "title": "General",
+ "subject": {
+ "reference": "Patient/efcccdf7-87f0-4061-b553-09fc11734594",
+ "type": "Patient"
+ },
+ "encounter": {
+ "reference": "Encounter/76214457-f94c-4ccf-95ef-ab31e7232d63",
+ "type": "Encounter",
+ "display": "unknown"
+ },
+ "entry": [
+ {
+ "item": {
+ "reference": "MedicationStatement/ac0264b6-63b7-4cf2-a7c3-f7340788aca7",
+ "type": "MedicationStatement",
+ "display": "ibuprofen"
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ],
+ "errors": [],
+ "modelVersion": "2022-03-01"
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/Language/preview/2023-11-15-preview/examples/SuccessfulHealthcarePostRequest.json b/specification/cognitiveservices/data-plane/Language/preview/2023-11-15-preview/examples/SuccessfulHealthcarePostRequest.json
new file mode 100644
index 000000000000..31a4760e3ced
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/Language/preview/2023-11-15-preview/examples/SuccessfulHealthcarePostRequest.json
@@ -0,0 +1,36 @@
+{
+ "operationId": "AnalyzeTextSubmitJob",
+ "title": "SuccessfulHealthcarePostRequest",
+ "parameters": {
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "api-version": "2023-11-15-preview",
+ "Endpoint": "{Endpoint}",
+ "jobId": "{Job ID}",
+ "body": {
+ "analysisInput": {
+ "documents": [
+ {
+ "text": "Prescribed 100mg ibuprofen, taken twice daily.",
+ "id": "1",
+ "language": "en"
+ }
+ ]
+ },
+ "tasks": [
+ {
+ "kind": "Healthcare",
+ "parameters": {
+ "modelVersion": "latest"
+ }
+ }
+ ]
+ }
+ },
+ "responses": {
+ "202": {
+ "headers": {
+ "Operation-Location": "{Endpoint}/language/analyze-text/jobs/{jobId}?api-version=2023-11-15-preview"
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/Language/preview/2023-11-15-preview/examples/SuccessfulHealthcareTaskStatusRequest.json b/specification/cognitiveservices/data-plane/Language/preview/2023-11-15-preview/examples/SuccessfulHealthcareTaskStatusRequest.json
new file mode 100644
index 000000000000..84e3456b91af
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/Language/preview/2023-11-15-preview/examples/SuccessfulHealthcareTaskStatusRequest.json
@@ -0,0 +1,222 @@
+{
+ "operationId": "AnalyzeTextJobStatus",
+ "title": "SuccessfulHealthcareTaskStatusRequest",
+ "parameters": {
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "api-version": "2023-11-15-preview",
+ "Endpoint": "{Endpoint}",
+ "jobId": "1780194a-e9c1-4298-b0d4-fdc59ba818a0"
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "createdDateTime": "2022-07-20T18:43:35Z",
+ "displayName": "Extracting Location & US Region",
+ "expirationDateTime": "2022-07-21T18:43:35Z",
+ "jobId": "1780194a-e9c1-4298-b0d4-fdc59ba818a0",
+ "lastUpdatedDateTime": "2022-07-20T18:43:36Z",
+ "status": "succeeded",
+ "tasks": {
+ "completed": 1,
+ "failed": 0,
+ "inProgress": 0,
+ "total": 1,
+ "items": [
+ {
+ "kind": "HealthcareLROResults",
+ "lastUpdateDateTime": "2022-07-20T18:43:36.7159045Z",
+ "status": "succeeded",
+ "results": {
+ "documents": [
+ {
+ "id": "1",
+ "entities": [
+ {
+ "offset": 11,
+ "length": 5,
+ "text": "100mg",
+ "category": "Dosage",
+ "confidenceScore": 0.98
+ },
+ {
+ "offset": 17,
+ "length": 9,
+ "text": "ibuprofen",
+ "category": "MedicationName",
+ "confidenceScore": 1,
+ "name": "ibuprofen",
+ "links": [
+ {
+ "dataSource": "UMLS",
+ "id": "C0020740"
+ },
+ {
+ "dataSource": "AOD",
+ "id": "0000019879"
+ },
+ {
+ "dataSource": "ATC",
+ "id": "M01AE01"
+ },
+ {
+ "dataSource": "CCPSS",
+ "id": "0046165"
+ },
+ {
+ "dataSource": "CHV",
+ "id": "0000006519"
+ },
+ {
+ "dataSource": "CSP",
+ "id": "2270-2077"
+ },
+ {
+ "dataSource": "DRUGBANK",
+ "id": "DB01050"
+ },
+ {
+ "dataSource": "GS",
+ "id": "1611"
+ },
+ {
+ "dataSource": "LCH_NW",
+ "id": "sh97005926"
+ },
+ {
+ "dataSource": "LNC",
+ "id": "LP16165-0"
+ },
+ {
+ "dataSource": "MEDCIN",
+ "id": "40458"
+ },
+ {
+ "dataSource": "MMSL",
+ "id": "d00015"
+ },
+ {
+ "dataSource": "MSH",
+ "id": "D007052"
+ },
+ {
+ "dataSource": "MTHSPL",
+ "id": "WK2XYI10QM"
+ },
+ {
+ "dataSource": "NCI",
+ "id": "C561"
+ },
+ {
+ "dataSource": "NCI_CTRP",
+ "id": "C561"
+ },
+ {
+ "dataSource": "NCI_DCP",
+ "id": "00803"
+ },
+ {
+ "dataSource": "NCI_DTP",
+ "id": "NSC0256857"
+ },
+ {
+ "dataSource": "NCI_FDA",
+ "id": "WK2XYI10QM"
+ },
+ {
+ "dataSource": "NCI_NCI-GLOSS",
+ "id": "CDR0000613511"
+ },
+ {
+ "dataSource": "NDDF",
+ "id": "002377"
+ },
+ {
+ "dataSource": "PDQ",
+ "id": "CDR0000040475"
+ },
+ {
+ "dataSource": "RCD",
+ "id": "x02MO"
+ },
+ {
+ "dataSource": "RXNORM",
+ "id": "5640"
+ },
+ {
+ "dataSource": "SNM",
+ "id": "E-7772"
+ },
+ {
+ "dataSource": "SNMI",
+ "id": "C-603C0"
+ },
+ {
+ "dataSource": "SNOMEDCT_US",
+ "id": "387207008"
+ },
+ {
+ "dataSource": "USP",
+ "id": "m39860"
+ },
+ {
+ "dataSource": "USPMG",
+ "id": "MTHU000060"
+ },
+ {
+ "dataSource": "VANDF",
+ "id": "4017840"
+ }
+ ]
+ },
+ {
+ "offset": 34,
+ "length": 11,
+ "text": "twice daily",
+ "category": "Frequency",
+ "confidenceScore": 1
+ }
+ ],
+ "relations": [
+ {
+ "confidenceScore": 1,
+ "relationType": "DosageOfMedication",
+ "entities": [
+ {
+ "ref": "#/results/documents/0/entities/0",
+ "role": "Dosage"
+ },
+ {
+ "ref": "#/results/documents/0/entities/1",
+ "role": "Medication"
+ }
+ ]
+ },
+ {
+ "confidenceScore": 1,
+ "relationType": "FrequencyOfMedication",
+ "entities": [
+ {
+ "ref": "#/results/documents/0/entities/1",
+ "role": "Medication"
+ },
+ {
+ "ref": "#/results/documents/0/entities/2",
+ "role": "Frequency"
+ }
+ ]
+ }
+ ],
+ "warnings": []
+ }
+ ],
+ "errors": [],
+ "modelVersion": "2022-03-01"
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/Language/preview/2023-11-15-preview/examples/SuccessfulKeyPhraseExtractionRequest.json b/specification/cognitiveservices/data-plane/Language/preview/2023-11-15-preview/examples/SuccessfulKeyPhraseExtractionRequest.json
new file mode 100644
index 000000000000..f73ec364952d
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/Language/preview/2023-11-15-preview/examples/SuccessfulKeyPhraseExtractionRequest.json
@@ -0,0 +1,73 @@
+{
+ "operationId": "AnalyzeText",
+ "title": "SuccessfulKeyPhraseExtractionRequest",
+ "parameters": {
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "api-version": "2023-11-15-preview",
+ "Endpoint": "{Endpoint}",
+ "body": {
+ "kind": "KeyPhraseExtraction",
+ "parameters": {
+ "modelVersion": "latest"
+ },
+ "analysisInput": {
+ "documents": [
+ {
+ "id": "1",
+ "language": "en",
+ "text": "Microsoft was founded by Bill Gates and Paul Allen."
+ },
+ {
+ "id": "2",
+ "language": "en",
+ "text": "Text Analytics is one of the Azure Cognitive Services."
+ },
+ {
+ "id": "3",
+ "language": "en",
+ "text": "My cat might need to see a veterinarian."
+ }
+ ]
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "kind": "KeyPhraseExtractionResults",
+ "results": {
+ "documents": [
+ {
+ "id": "1",
+ "keyPhrases": [
+ "Bill Gates",
+ "Paul Allen",
+ "Microsoft"
+ ],
+ "warnings": []
+ },
+ {
+ "id": "2",
+ "keyPhrases": [
+ "Azure Cognitive Services",
+ "Text Analytics"
+ ],
+ "warnings": []
+ },
+ {
+ "id": "3",
+ "keyPhrases": [
+ "cat",
+ "veterinarian"
+ ],
+ "warnings": []
+ }
+ ],
+ "errors": [],
+ "modelVersion": "2021-06-01"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/Language/preview/2023-11-15-preview/examples/SuccessfulLanguageDetectionRequest.json b/specification/cognitiveservices/data-plane/Language/preview/2023-11-15-preview/examples/SuccessfulLanguageDetectionRequest.json
new file mode 100644
index 000000000000..efaaaefe3fb2
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/Language/preview/2023-11-15-preview/examples/SuccessfulLanguageDetectionRequest.json
@@ -0,0 +1,93 @@
+{
+ "operationId": "AnalyzeText",
+ "title": "SuccessfulLanguageDetectionRequest",
+ "parameters": {
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "api-version": "2023-11-15-preview",
+ "Endpoint": "{Endpoint}",
+ "body": {
+ "kind": "LanguageDetection",
+ "parameters": {
+ "modelVersion": "latest"
+ },
+ "analysisInput": {
+ "documents": [
+ {
+ "id": "1",
+ "text": "Hello world"
+ },
+ {
+ "id": "2",
+ "text": "Bonjour tout le monde"
+ },
+ {
+ "id": "3",
+ "text": "Hola mundo"
+ },
+ {
+ "id": "4",
+ "text": "Tumhara naam kya hai?"
+ }
+ ]
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "kind": "LanguageDetectionResults",
+ "results": {
+ "documents": [
+ {
+ "detectedLanguage": {
+ "confidenceScore": 1,
+ "iso6391Name": "en",
+ "name": "English",
+ "script": "Latin",
+ "scriptCode": "Latn"
+ },
+ "id": "1",
+ "warnings": []
+ },
+ {
+ "detectedLanguage": {
+ "confidenceScore": 1,
+ "iso6391Name": "fr",
+ "name": "French",
+ "script": "Latin",
+ "scriptCode": "Latn"
+ },
+ "id": "2",
+ "warnings": []
+ },
+ {
+ "detectedLanguage": {
+ "confidenceScore": 1,
+ "iso6391Name": "es",
+ "name": "Spanish",
+ "script": "Latin",
+ "scriptCode": "Latn"
+ },
+ "id": "3",
+ "warnings": []
+ },
+ {
+ "detectedLanguage": {
+ "confidenceScore": 1,
+ "iso6391Name": "hi",
+ "name": "Hindi",
+ "script": "Latin",
+ "scriptCode": "Latn"
+ },
+ "id": "4",
+ "warnings": []
+ }
+ ],
+ "errors": [],
+ "modelVersion": "2023-12-01"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/Language/preview/2023-11-15-preview/examples/SuccessfulPiiEntityRecognitionExclusionRequest.json b/specification/cognitiveservices/data-plane/Language/preview/2023-11-15-preview/examples/SuccessfulPiiEntityRecognitionExclusionRequest.json
new file mode 100644
index 000000000000..f44e76a676b5
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/Language/preview/2023-11-15-preview/examples/SuccessfulPiiEntityRecognitionExclusionRequest.json
@@ -0,0 +1,79 @@
+{
+ "operationId": "AnalyzeText",
+ "title": "SuccessfulPiiEntityRecognitionExclusionRequest",
+ "parameters": {
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "api-version": "2023-11-15-preview",
+ "Endpoint": "{Endpoint}",
+ "body": {
+ "kind": "PiiEntityRecognition",
+ "parameters": {
+ "modelVersion": "latest",
+ "excludePiiCategories": [
+ "USSocialSecurityNumber"
+ ]
+ },
+ "analysisInput": {
+ "documents": [
+ {
+ "id": "1",
+ "language": "en",
+ "text": "My SSN is 859-98-0987"
+ },
+ {
+ "id": "2",
+ "language": "en",
+ "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check."
+ },
+ {
+ "id": "3",
+ "language": "en",
+ "text": "Is 998.214.865-68 your Brazilian CPF number?"
+ }
+ ]
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "kind": "PiiEntityRecognitionResults",
+ "results": {
+ "documents": [
+ {
+ "id": "2",
+ "redactedText": "Your ABA number - ********* - is the first 9 digits in the lower left hand corner of your personal check.",
+ "entities": [
+ {
+ "category": "ABARoutingNumber",
+ "confidenceScore": 0.75,
+ "length": 9,
+ "offset": 18,
+ "text": "111000025"
+ }
+ ],
+ "warnings": []
+ },
+ {
+ "id": "3",
+ "redactedText": "Is ************** your Brazilian CPF number?",
+ "entities": [
+ {
+ "category": "BRCPFNumber",
+ "confidenceScore": 0.85,
+ "length": 14,
+ "offset": 3,
+ "text": "998.214.865-68"
+ }
+ ],
+ "warnings": []
+ }
+ ],
+ "errors": [],
+ "modelVersion": "2021-01-15"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/Language/preview/2023-11-15-preview/examples/SuccessfulPiiEntityRecognitionRedactionRequest.json b/specification/cognitiveservices/data-plane/Language/preview/2023-11-15-preview/examples/SuccessfulPiiEntityRecognitionRedactionRequest.json
new file mode 100644
index 000000000000..931de9af85f3
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/Language/preview/2023-11-15-preview/examples/SuccessfulPiiEntityRecognitionRedactionRequest.json
@@ -0,0 +1,91 @@
+{
+ "operationId": "AnalyzeText",
+ "title": "SuccessfulPiiEntityRecognitionRedactionRequest",
+ "parameters": {
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "api-version": "2023-11-15-preview",
+ "Endpoint": "{Endpoint}",
+ "body": {
+ "kind": "PiiEntityRecognition",
+ "parameters": {
+ "modelVersion": "latest",
+ "redactionCharacter": "-"
+ },
+ "analysisInput": {
+ "documents": [
+ {
+ "id": "1",
+ "language": "en",
+ "text": "My SSN is 859-98-0987"
+ },
+ {
+ "id": "2",
+ "language": "en",
+ "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check."
+ },
+ {
+ "id": "3",
+ "language": "en",
+ "text": "Is 998.214.865-68 your Brazilian CPF number?"
+ }
+ ]
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "kind": "PiiEntityRecognitionResults",
+ "results": {
+ "documents": [
+ {
+ "id": "1",
+ "redactedText": "My SSN is -----------",
+ "entities": [
+ {
+ "category": "USSocialSecurityNumber",
+ "confidenceScore": 0.65,
+ "length": 11,
+ "offset": 28,
+ "text": "859-98-0987"
+ }
+ ],
+ "warnings": []
+ },
+ {
+ "id": "2",
+ "redactedText": "Your ABA number - --------- - is the first 9 digits in the lower left hand corner of your personal check.",
+ "entities": [
+ {
+ "category": "ABARoutingNumber",
+ "confidenceScore": 0.75,
+ "length": 9,
+ "offset": 18,
+ "text": "111000025"
+ }
+ ],
+ "warnings": []
+ },
+ {
+ "id": "3",
+ "redactedText": "Is -------------- your Brazilian CPF number?",
+ "entities": [
+ {
+ "category": "BRCPFNumber",
+ "confidenceScore": 0.85,
+ "length": 14,
+ "offset": 3,
+ "text": "998.214.865-68"
+ }
+ ],
+ "warnings": []
+ }
+ ],
+ "errors": [],
+ "modelVersion": "2021-01-15"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/Language/preview/2023-11-15-preview/examples/SuccessfulPiiEntityRecognitionRequest.json b/specification/cognitiveservices/data-plane/Language/preview/2023-11-15-preview/examples/SuccessfulPiiEntityRecognitionRequest.json
new file mode 100644
index 000000000000..3ea26c912e46
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/Language/preview/2023-11-15-preview/examples/SuccessfulPiiEntityRecognitionRequest.json
@@ -0,0 +1,90 @@
+{
+ "operationId": "AnalyzeText",
+ "title": "SuccessfulPiiEntityRecognitionRequest",
+ "parameters": {
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "api-version": "2023-11-15-preview",
+ "Endpoint": "{Endpoint}",
+ "body": {
+ "kind": "PiiEntityRecognition",
+ "parameters": {
+ "modelVersion": "latest"
+ },
+ "analysisInput": {
+ "documents": [
+ {
+ "id": "1",
+ "language": "en",
+ "text": "My SSN is 859-98-0987"
+ },
+ {
+ "id": "2",
+ "language": "en",
+ "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check."
+ },
+ {
+ "id": "3",
+ "language": "en",
+ "text": "Is 998.214.865-68 your Brazilian CPF number?"
+ }
+ ]
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "kind": "PiiEntityRecognitionResults",
+ "results": {
+ "documents": [
+ {
+ "id": "1",
+ "redactedText": "My SSN is ***********",
+ "entities": [
+ {
+ "category": "USSocialSecurityNumber",
+ "confidenceScore": 0.65,
+ "length": 11,
+ "offset": 28,
+ "text": "859-98-0987"
+ }
+ ],
+ "warnings": []
+ },
+ {
+ "id": "2",
+ "redactedText": "Your ABA number - ********* - is the first 9 digits in the lower left hand corner of your personal check.",
+ "entities": [
+ {
+ "category": "ABARoutingNumber",
+ "confidenceScore": 0.75,
+ "length": 9,
+ "offset": 18,
+ "text": "111000025"
+ }
+ ],
+ "warnings": []
+ },
+ {
+ "id": "3",
+ "redactedText": "Is ************** your Brazilian CPF number?",
+ "entities": [
+ {
+ "category": "BRCPFNumber",
+ "confidenceScore": 0.85,
+ "length": 14,
+ "offset": 3,
+ "text": "998.214.865-68"
+ }
+ ],
+ "warnings": []
+ }
+ ],
+ "errors": [],
+ "modelVersion": "2021-01-15"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/Language/preview/2023-11-15-preview/examples/SuccessfulSentimentAnalysisRequest.json b/specification/cognitiveservices/data-plane/Language/preview/2023-11-15-preview/examples/SuccessfulSentimentAnalysisRequest.json
new file mode 100644
index 000000000000..58ba6ab3dff5
--- /dev/null
+++ b/specification/cognitiveservices/data-plane/Language/preview/2023-11-15-preview/examples/SuccessfulSentimentAnalysisRequest.json
@@ -0,0 +1,150 @@
+{
+ "operationId": "AnalyzeText",
+ "title": "SuccessfulSentimentAnalysisRequest",
+ "parameters": {
+ "Ocp-Apim-Subscription-Key": "{API key}",
+ "api-version": "2023-11-15-preview",
+ "Endpoint": "{Endpoint}",
+ "body": {
+ "kind": "SentimentAnalysis",
+ "parameters": {
+ "modelVersion": "latest"
+ },
+ "analysisInput": {
+ "documents": [
+ {
+ "id": "1",
+ "language": "en",
+ "text": "Great atmosphere. Close to plenty of restaurants, hotels, and transit! Staff are friendly and helpful."
+ }
+ ]
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "headers": {},
+ "body": {
+ "kind": "SentimentAnalysisResults",
+ "results": {
+ "documents": [
+ {
+ "confidenceScores": {
+ "negative": 0,
+ "neutral": 0,
+ "positive": 1
+ },
+ "id": "1",
+ "sentences": [
+ {
+ "targets": [
+ {
+ "confidenceScores": {
+ "negative": 0,
+ "positive": 1
+ },
+ "length": 10,
+ "offset": 6,
+ "relations": [
+ {
+ "ref": "#/documents/0/sentences/0/assessments/0",
+ "relationType": "assessment"
+ }
+ ],
+ "sentiment": "positive",
+ "text": "atmosphere"
+ }
+ ],
+ "confidenceScores": {
+ "negative": 0,
+ "neutral": 0,
+ "positive": 1
+ },
+ "length": 17,
+ "offset": 0,
+ "assessments": [
+ {
+ "confidenceScores": {
+ "negative": 0,
+ "positive": 1
+ },
+ "isNegated": false,
+ "length": 5,
+ "offset": 0,
+ "sentiment": "positive",
+ "text": "great"
+ }
+ ],
+ "sentiment": "positive",
+ "text": "Great atmosphere."
+ },
+ {
+ "targets": [
+ {
+ "confidenceScores": {
+ "negative": 0.01,
+ "positive": 0.99
+ },
+ "length": 11,
+ "offset": 37,
+ "relations": [
+ {
+ "ref": "#/documents/0/sentences/1/assessments/0",
+ "relationType": "assessment"
+ }
+ ],
+ "sentiment": "positive",
+ "text": "restaurants"
+ },
+ {
+ "confidenceScores": {
+ "negative": 0.01,
+ "positive": 0.99
+ },
+ "length": 6,
+ "offset": 50,
+ "relations": [
+ {
+ "ref": "#/documents/0/sentences/1/assessments/0",
+ "relationType": "assessment"
+ }
+ ],
+ "sentiment": "positive",
+ "text": "hotels"
+ }
+ ],
+ "confidenceScores": {
+ "negative": 0.01,
+ "neutral": 0.86,
+ "positive": 0.13
+ },
+ "length": 52,
+ "offset": 18,
+ "assessments": [
+ {
+ "confidenceScores": {
+ "negative": 0.01,
+ "positive": 0.99
+ },
+ "isNegated": false,
+ "length": 15,
+ "offset": 18,
+ "sentiment": "positive",
+ "text": "Close to plenty"
+ }
+ ],
+ "sentiment": "neutral",
+ "text": "Close to plenty of restaurants, hotels, and transit!"
+ }
+ ],
+ "sentiment": "positive",
+ "warnings": []
+ }
+ ],
+ "errors": [],
+ "modelVersion": "2021-10-01"
+ }
+ }
+ }
+ }
+}
diff --git a/specification/cognitiveservices/data-plane/Language/stable/2022-05-01/analyzeconversations.json b/specification/cognitiveservices/data-plane/Language/stable/2022-05-01/analyzeconversations.json
index 10c1683bfa82..93b58ffb3608 100644
--- a/specification/cognitiveservices/data-plane/Language/stable/2022-05-01/analyzeconversations.json
+++ b/specification/cognitiveservices/data-plane/Language/stable/2022-05-01/analyzeconversations.json
@@ -2,1430 +2,3119 @@
"swagger": "2.0",
"info": {
"title": "Microsoft Cognitive Language Service - Analyze Conversations",
- "description": "The language service conversations API is a suite of natural language processing (NLP) skills that can be used to analyze structured conversations (textual or spoken). The synchronous API in this suite accepts a request and mediates among multiple language projects, such as LUIS Generally Available, Question Answering, Conversational Language Understanding, and then calls the best candidate service to handle the request. At last, it returns a response with the candidate service's response as a payload.\n\n In some cases, this API needs to forward requests and responses between the caller and an upstream service. The asynchronous APIs in this suite enable tasks like Conversation Summarization and Conversational PII detection.",
- "version": "2022-05-01"
- },
- "securityDefinitions": {
- "apim_key": {
- "type": "apiKey",
- "description": "A subscription key for a Language service resource.",
- "name": "Ocp-Apim-Subscription-Key",
- "in": "header"
- }
+ "version": "2022-05-01",
+ "description": "The language service conversations API is a suite of natural language processing (NLP) skills that can be used to analyze structured conversations (textual or spoken). The synchronous API in this suite accepts a request and mediates among multiple language projects, such as LUIS Generally Available, Question Answering, Conversational Language Understanding, and then calls the best candidate service to handle the request. At last, it returns a response with the candidate service's response as a payload.\\n\\n In some cases, this API needs to forward requests and responses between the caller and an upstream service. The asynchronous APIs in this suite enable tasks like Conversation Summarization and Conversational PII detection.",
+ "x-typespec-generated": [
+ {
+ "emitter": "@azure-tools/typespec-autorest"
+ }
+ ]
},
- "security": [
- {
- "apim_key": []
- }
+ "schemes": [
+ "https"
],
"x-ms-parameterized-host": {
"hostTemplate": "{Endpoint}/language",
"useSchemePrefix": false,
"parameters": [
{
- "$ref": "common.json#/parameters/Endpoint"
+ "name": "Endpoint",
+ "in": "path",
+ "description": "Supported Cognitive Services endpoint (e.g., https://