From e5cc3d367161b284dc7aae2b48db7c09a914910e Mon Sep 17 00:00:00 2001 From: Mike Harder Date: Fri, 26 May 2023 03:23:00 +0000 Subject: [PATCH] Add examples from PR #24079 --- .../SuccessfulOncoPhenotypeRequest.json | 44 +++-------- .../SuccessfulOncoPhenotypeResponse.json | 78 ++++++++++--------- 2 files changed, 54 insertions(+), 68 deletions(-) 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 e30deca3119a..e206aa1a126f 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,55 +5,35 @@ "endpoint": "{endpoint}", "api-version": "2023-03-01-preview", "body": { + "configuration": { + "checkForCancerCase": true, + "includeEvidence": false + }, "patients": [ { - "id": "Patient ID Example 1", - "info": { - "sex": "female", - "birthDate": "1975-09-27" - }, + "id": "patient1", "data": [ { - "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", + "kind": "note", + "clinicalType": "pathology", + "id": "document1", "language": "en", - "createdDateTime": "2020-11-26T16:39:44.739Z", + "createdDateTime": "2022-01-01T00:00:00", "content": { "sourceType": "inline", - "value": "Sample note 2" + "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" } } ] } - ], - "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": "1" + "Retry-After": "5" } } } 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 7babf7113fe2..781ff2ce89a3 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,56 +9,62 @@ "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": "Patient ID Example 1", + "id": "patient1", "inferences": [ + { + "type": "tumorSite", + "value": "C50.2", + "description": "BREAST", + "confidenceScore": 0.9214 + }, { "type": "histology", - "value": "8561", - "description": "Adenolymphoma", - "confidenceScore": 0.85, - "evidence": [ - { - "patientDataEvidence": { - "id": "1", - "text": "string", - "offset": 70, - "length": 135 - }, - "importance": 1 - } - ] + "value": "8500", + "confidenceScore": 0.9973 }, { "type": "clinicalStageT", "value": "T3", - "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" + "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 } ] } ], - "modelVersion": "2021-11-26" - } + "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" } } }