diff --git a/specification/cognitiveservices/HealthInsights/healthinsights.openapi/examples/2023-03-01-preview/SuccessfulOncoPhenotypeRequest.json b/specification/cognitiveservices/HealthInsights/healthinsights.openapi/examples/2023-03-01-preview/SuccessfulOncoPhenotypeRequest.json index e206aa1a126f..e30deca3119a 100644 --- a/specification/cognitiveservices/HealthInsights/healthinsights.openapi/examples/2023-03-01-preview/SuccessfulOncoPhenotypeRequest.json +++ b/specification/cognitiveservices/HealthInsights/healthinsights.openapi/examples/2023-03-01-preview/SuccessfulOncoPhenotypeRequest.json @@ -5,35 +5,55 @@ "endpoint": "{endpoint}", "api-version": "2023-03-01-preview", "body": { - "configuration": { - "checkForCancerCase": true, - "includeEvidence": false - }, "patients": [ { - "id": "patient1", + "id": "Patient ID Example 1", + "info": { + "sex": "female", + "birthDate": "1975-09-27" + }, "data": [ { - "kind": "note", - "clinicalType": "pathology", - "id": "document1", + "type": "note", + "clinicalType": "historyAndPhysical", + "id": "1", + "language": "en", + "createdDateTime": "2021-10-26T16:54:44.739Z", + "content": { + "sourceType": "inline", + "value": "Sample note 1" + } + }, + { + "type": "note", + "clinicalType": "imaging", + "id": "2", "language": "en", - "createdDateTime": "2022-01-01T00:00:00", + "createdDateTime": "2020-11-26T16:39:44.739Z", "content": { "sourceType": "inline", - "value": "Laterality: Left \n Tumor type present: Invasive duct carcinoma; duct carcinoma in situ \n Tumor site: Upper inner quadrant \n Invasive carcinoma \n Histologic type: Ductal \n Size of invasive component: 0.9 cm \n Histologic Grade - Nottingham combined histologic score: 1 out of 3 \n In situ carcinoma (DCIS) \n Histologic type of DCIS: Cribriform and solid \n Necrosis in DCIS: Yes \n DCIS component of invasive carcinoma: Extensive \n" + "value": "Sample note 2" } } ] } - ] + ], + "configuration": { + "verbose": true, + "includeEvidence": true, + "inferenceTypes": [ + "histology", + "clinicalStageT" + ], + "checkForCancerCase": false + } } }, "responses": { "202": { "headers": { "Operation-Location": "{endpoint}/healthinsights/oncophenotype/jobs/{jobId}?api-version=2023-03-01-preview", - "Retry-After": "5" + "Retry-After": "1" } } } diff --git a/specification/cognitiveservices/HealthInsights/healthinsights.openapi/examples/2023-03-01-preview/SuccessfulOncoPhenotypeResponse.json b/specification/cognitiveservices/HealthInsights/healthinsights.openapi/examples/2023-03-01-preview/SuccessfulOncoPhenotypeResponse.json index 781ff2ce89a3..7babf7113fe2 100644 --- a/specification/cognitiveservices/HealthInsights/healthinsights.openapi/examples/2023-03-01-preview/SuccessfulOncoPhenotypeResponse.json +++ b/specification/cognitiveservices/HealthInsights/healthinsights.openapi/examples/2023-03-01-preview/SuccessfulOncoPhenotypeResponse.json @@ -9,62 +9,56 @@ "responses": { "200": { "body": { + "jobId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", + "createdDateTime": "2021-11-26T17:22:27.386Z", + "expirationDateTime": "2021-11-26T17:22:27.386Z", + "lastUpdateDateTime": "2021-11-26T17:22:27.386Z", + "status": "succeeded", "results": { "patients": [ { - "id": "patient1", + "id": "Patient ID Example 1", "inferences": [ - { - "type": "tumorSite", - "value": "C50.2", - "description": "BREAST", - "confidenceScore": 0.9214 - }, { "type": "histology", - "value": "8500", - "confidenceScore": 0.9973 + "value": "8561", + "description": "Adenolymphoma", + "confidenceScore": 0.85, + "evidence": [ + { + "patientDataEvidence": { + "id": "1", + "text": "string", + "offset": 70, + "length": 135 + }, + "importance": 1 + } + ] }, { "type": "clinicalStageT", "value": "T3", - "confidenceScore": 0.9956 - }, - { - "type": "clinicalStageN", - "value": "N0", - "confidenceScore": 0.9931 - }, - { - "type": "clinicalStageM", - "value": "None", - "confidenceScore": 0.5217 - }, - { - "type": "pathologicStageT", - "value": "T1", - "confidenceScore": 0.9477 - }, - { - "type": "pathologicStageN", - "value": "N0", - "confidenceScore": 0.7927 - }, - { - "type": "pathologicStageM", - "value": "M0", - "confidenceScore": 0.9208 + "description": "Locally advanced disease at risk for micrometastases", + "confidenceScore": 0.88, + "evidence": [ + { + "patientDataEvidence": { + "id": "2", + "text": "string", + "offset": 12, + "length": 9 + }, + "importance": 1 + } + ], + "caseId": "1" } ] } ], - "modelVersion": "2023-03-01-preview" - }, - "jobId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", - "createdDateTime": "2023-03-08T17:02:46Z", - "expirationDateTime": "2023-03-08T17:19:26Z", - "lastUpdateDateTime": "2023-03-08T17:02:46Z", - "status": "succeeded" + "modelVersion": "2021-11-26" + } } } }