From 2d8abda741877792408106bd72cb1122d4dd8996 Mon Sep 17 00:00:00 2001 From: Suhas Mehta Date: Tue, 26 Jan 2021 13:57:09 -0800 Subject: [PATCH 01/12] initial changes tests passing --- .../Azure.AI.TextAnalytics/README.md | 10 +- .../Azure.AI.TextAnalytics.netstandard2.0.cs | 95 +++++++++------- .../Sample_RecognizeHealthcareEntities.md | 20 ++-- .../src/AnalyzeHealthcareEntitiesOperation.cs | 25 ++++- ...cs => AnalyzeHealthcareEntitiesOptions.cs} | 6 +- .../src/AnalyzeHealthcareEntitiesResult.cs | 32 ++++++ ...lyzeHealthcareEntitiesResultCollection.cs} | 7 +- .../src/DocumentHealthcareResult.cs | 90 ---------------- .../src/EntityDataSource.cs | 22 ++++ ...n.cs => EntityDataSource.Serialization.cs} | 6 +- .../src/Generated/Models/EntityDataSource.cs | 34 ++++++ .../Models/HealthcareEntity.Serialization.cs | 6 +- .../src/Generated/Models/HealthcareEntity.cs | 6 +- .../Generated/Models/HealthcareEntityLink.cs | 39 ------- .../src/HealthcareEntity.cs | 10 ++ .../src/HealthcareEntityLink.cs | 15 --- .../src/HealthcareEntityRelationType.cs | 101 ++++++++++++++++++ .../src/TextAnalyticsClient.cs | 58 +++++----- .../Azure.AI.TextAnalytics/src/Transforms.cs | 10 +- .../tests/RecognizeHealthcareEntitiesTests.cs | 89 +++++++-------- .../tests/samples/Sample_Healthcare.cs | 10 +- .../tests/samples/Sample_HealthcareAsync.cs | 10 +- ...Sample_HealthcareAsync_AutomaticPolling.cs | 10 +- .../Sample_HealthcareAsync_ManualPolling.cs | 10 +- .../Sample_HealthcareAsync_Pagination.cs | 6 +- .../tests/samples/Sample_HealthcareBatch.cs | 16 +-- .../samples/Sample_HealthcareBatchAsync.cs | 16 +-- .../Sample_HealthcareBatchConvenience.cs | 10 +- .../Sample_HealthcareBatchConvenienceAsync.cs | 10 +- 29 files changed, 435 insertions(+), 344 deletions(-) rename sdk/textanalytics/Azure.AI.TextAnalytics/src/{HealthcareOptions.cs => AnalyzeHealthcareEntitiesOptions.cs} (76%) create mode 100644 sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesResult.cs rename sdk/textanalytics/Azure.AI.TextAnalytics/src/{RecognizeHealthcareEntitiesResultCollection.cs => AnalyzeHealthcareEntitiesResultCollection.cs} (73%) delete mode 100644 sdk/textanalytics/Azure.AI.TextAnalytics/src/DocumentHealthcareResult.cs create mode 100644 sdk/textanalytics/Azure.AI.TextAnalytics/src/EntityDataSource.cs rename sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/{HealthcareEntityLink.Serialization.cs => EntityDataSource.Serialization.cs} (78%) create mode 100644 sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityDataSource.cs delete mode 100644 sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntityLink.cs delete mode 100644 sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntityLink.cs create mode 100644 sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntityRelationType.cs diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/README.md b/sdk/textanalytics/Azure.AI.TextAnalytics/README.md index f4894d809a88a..959f926c7ebc8 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/README.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/README.md @@ -426,12 +426,12 @@ Text Analytics for health is a containerized service that extracts and labels re await healthOperation.WaitForCompletionAsync(); - RecognizeHealthcareEntitiesResultCollection results = healthOperation.Value; + AnalyzeHealthcareEntitiesResultCollection results = healthOperation.Value; Console.WriteLine($"Results of Azure Text Analytics \"Healthcare Async\" Model, version: \"{results.ModelVersion}\""); Console.WriteLine(""); - foreach (DocumentHealthcareResult result in results) + foreach (AnalyzeHealthcareEntitiesResult result in results) { Console.WriteLine($" Recognized the following {result.Entities.Count} healthcare entities:"); @@ -444,10 +444,10 @@ Text Analytics for health is a containerized service that extracts and labels re Console.WriteLine($" IsNegated: {entity.IsNegated}"); Console.WriteLine($" Links:"); - foreach (HealthcareEntityLink healthcareEntityLink in entity.Links) + foreach (EntityDataSource entityDataSource in entity.Links) { - Console.WriteLine($" ID: {healthcareEntityLink.Id}"); - Console.WriteLine($" DataSource: {healthcareEntityLink.DataSource}"); + Console.WriteLine($" ID: {entityDataSource.EntityId}"); + Console.WriteLine($" DataSource: {entityDataSource.Name}"); } } Console.WriteLine(""); diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/api/Azure.AI.TextAnalytics.netstandard2.0.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/api/Azure.AI.TextAnalytics.netstandard2.0.cs index 0d57718dad294..7a675538b364b 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/api/Azure.AI.TextAnalytics.netstandard2.0.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/api/Azure.AI.TextAnalytics.netstandard2.0.cs @@ -1,20 +1,41 @@ namespace Azure.AI.TextAnalytics { - public partial class AnalyzeHealthcareEntitiesOperation : Azure.Operation + public partial class AnalyzeHealthcareEntitiesOperation : Azure.Operation { public AnalyzeHealthcareEntitiesOperation(string operationId, Azure.AI.TextAnalytics.TextAnalyticsClient client) { } + public System.DateTimeOffset CreatedOn { get { throw null; } } + public System.DateTimeOffset ExpiresOn { get { throw null; } } public override bool HasCompleted { get { throw null; } } public override bool HasValue { get { throw null; } } public override string Id { get { throw null; } } + public System.DateTimeOffset LastModified { get { throw null; } } public Azure.AI.TextAnalytics.TextAnalyticsOperationStatus Status { get { throw null; } } - public override Azure.AI.TextAnalytics.RecognizeHealthcareEntitiesResultCollection Value { get { throw null; } } + public override Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesResultCollection Value { get { throw null; } } public virtual void Cancel(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { } public virtual System.Threading.Tasks.Task CancelAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public override Azure.Response GetRawResponse() { throw null; } public override Azure.Response UpdateStatus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public override System.Threading.Tasks.ValueTask UpdateStatusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public override System.Threading.Tasks.ValueTask> WaitForCompletionAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public override System.Threading.Tasks.ValueTask> WaitForCompletionAsync(System.TimeSpan pollingInterval, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.ValueTask> WaitForCompletionAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.ValueTask> WaitForCompletionAsync(System.TimeSpan pollingInterval, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class AnalyzeHealthcareEntitiesOptions : Azure.AI.TextAnalytics.TextAnalyticsRequestOptions + { + public AnalyzeHealthcareEntitiesOptions() { } + public int? Skip { get { throw null; } set { } } + public int? Top { get { throw null; } set { } } + } + public partial class AnalyzeHealthcareEntitiesResult : Azure.AI.TextAnalytics.TextAnalyticsResult + { + internal AnalyzeHealthcareEntitiesResult() { } + public System.Collections.Generic.IReadOnlyCollection Entities { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Warnings { get { throw null; } } + } + public partial class AnalyzeHealthcareEntitiesResultCollection : System.Collections.ObjectModel.ReadOnlyCollection + { + internal AnalyzeHealthcareEntitiesResultCollection() : base (default(System.Collections.Generic.IList)) { } + public string ModelVersion { get { throw null; } } + public Azure.AI.TextAnalytics.TextDocumentBatchStatistics Statistics { get { throw null; } } } public partial class AnalyzeOperation : Azure.Operation { @@ -127,16 +148,6 @@ internal DetectLanguageResultCollection() : base (default(System.Collections.Gen public string ModelVersion { get { throw null; } } public Azure.AI.TextAnalytics.TextDocumentBatchStatistics Statistics { get { throw null; } } } - public partial class DocumentHealthcareResult - { - internal DocumentHealthcareResult() { } - public System.Collections.Generic.IReadOnlyList Entities { get { throw null; } } - public string Id { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Relations { get { throw null; } } - public Azure.AI.TextAnalytics.TextDocumentStatistics? Statistics { get { throw null; } } - public Azure.AI.TextAnalytics.TextAnalyticsError TextAnalyticsError { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Warnings { get { throw null; } } - } public partial class DocumentSentiment { internal DocumentSentiment() { } @@ -196,6 +207,12 @@ internal Entity() { } public static bool operator !=(Azure.AI.TextAnalytics.EntityCategory left, Azure.AI.TextAnalytics.EntityCategory right) { throw null; } public override string ToString() { throw null; } } + public partial class EntityDataSource + { + internal EntityDataSource() { } + public string EntityId { get { throw null; } } + public string Name { get { throw null; } } + } public partial class EntityRecognitionPiiTasksItem : Azure.AI.TextAnalytics.TaskState { internal EntityRecognitionPiiTasksItem() { } @@ -220,20 +237,28 @@ internal ExtractKeyPhrasesResultCollection() : base (default(System.Collections. public partial class HealthcareEntity : Azure.AI.TextAnalytics.Entity { internal HealthcareEntity() { } + public System.Collections.Generic.IReadOnlyCollection DataSources { get { throw null; } } public bool IsNegated { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Links { get { throw null; } } - } - public partial class HealthcareEntityLink - { - internal HealthcareEntityLink() { } - public string DataSource { get { throw null; } } - public string Id { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Links { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary RelatedEntities { get { throw null; } } } - public partial class HealthcareOptions : Azure.AI.TextAnalytics.TextAnalyticsRequestOptions + public partial class HealthcareEntityRelationType : System.IEquatable { - public HealthcareOptions() { } - public int? Skip { get { throw null; } set { } } - public int? Top { get { throw null; } set { } } + internal HealthcareEntityRelationType() { } + public static readonly Azure.AI.TextAnalytics.HealthcareEntityRelationType DirectionOfBodyStructure; + public static readonly Azure.AI.TextAnalytics.HealthcareEntityRelationType DirectionOfExamination; + public static readonly Azure.AI.TextAnalytics.HealthcareEntityRelationType RelationOfExamination; + public static readonly Azure.AI.TextAnalytics.HealthcareEntityRelationType TimeOfExamination; + public bool Equals(Azure.AI.TextAnalytics.HealthcareEntityRelationType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.AI.TextAnalytics.HealthcareEntityRelationType left, Azure.AI.TextAnalytics.HealthcareEntityRelationType right) { throw null; } + public static explicit operator string (Azure.AI.TextAnalytics.HealthcareEntityRelationType category) { throw null; } + public static implicit operator Azure.AI.TextAnalytics.HealthcareEntityRelationType (string category) { throw null; } + public static bool operator !=(Azure.AI.TextAnalytics.HealthcareEntityRelationType left, Azure.AI.TextAnalytics.HealthcareEntityRelationType right) { throw null; } + public override string ToString() { throw null; } } public partial class HealthcareRelation { @@ -378,12 +403,6 @@ internal RecognizeEntitiesResultCollection() : base (default(System.Collections. public string ModelVersion { get { throw null; } } public Azure.AI.TextAnalytics.TextDocumentBatchStatistics Statistics { get { throw null; } } } - public partial class RecognizeHealthcareEntitiesResultCollection : System.Collections.ObjectModel.ReadOnlyCollection - { - internal RecognizeHealthcareEntitiesResultCollection() : base (default(System.Collections.Generic.IList)) { } - public string ModelVersion { get { throw null; } } - public Azure.AI.TextAnalytics.TextDocumentBatchStatistics Statistics { get { throw null; } } - } public partial class RecognizeLinkedEntitiesResult : Azure.AI.TextAnalytics.TextAnalyticsResult { internal RecognizeLinkedEntitiesResult() { } @@ -500,7 +519,7 @@ public TextAnalyticsClient(System.Uri endpoint, Azure.Core.TokenCredential crede public virtual System.Threading.Tasks.Task> ExtractKeyPhrasesBatchAsync(System.Collections.Generic.IEnumerable documents, string language = null, Azure.AI.TextAnalytics.TextAnalyticsRequestOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public virtual Azure.AsyncPageable GetHealthcareEntities(Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOperation operation, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetHealthcareEntities(Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOperation operation, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response RecognizeEntities(string document, string language = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> RecognizeEntitiesAsync(string document, string language = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response RecognizeEntitiesBatch(System.Collections.Generic.IEnumerable documents, Azure.AI.TextAnalytics.TextAnalyticsRequestOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -523,12 +542,12 @@ public TextAnalyticsClient(System.Uri endpoint, Azure.Core.TokenCredential crede public virtual Azure.AI.TextAnalytics.AnalyzeOperation StartAnalyzeOperationBatch(System.Collections.Generic.IEnumerable documents, Azure.AI.TextAnalytics.AnalyzeOperationOptions options, string language = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task StartAnalyzeOperationBatchAsync(System.Collections.Generic.IEnumerable documents, Azure.AI.TextAnalytics.AnalyzeOperationOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task StartAnalyzeOperationBatchAsync(System.Collections.Generic.IEnumerable documents, Azure.AI.TextAnalytics.AnalyzeOperationOptions options, string language = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOperation StartHealthcare(string document, string language = null, Azure.AI.TextAnalytics.HealthcareOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task StartHealthcareAsync(string document, string language = null, Azure.AI.TextAnalytics.HealthcareOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOperation StartHealthcareBatch(System.Collections.Generic.IEnumerable documents, Azure.AI.TextAnalytics.HealthcareOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOperation StartHealthcareBatch(System.Collections.Generic.IEnumerable documents, string language = null, Azure.AI.TextAnalytics.HealthcareOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task StartHealthcareBatchAsync(System.Collections.Generic.IEnumerable documents, Azure.AI.TextAnalytics.HealthcareOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task StartHealthcareBatchAsync(System.Collections.Generic.IEnumerable documents, string language = null, Azure.AI.TextAnalytics.HealthcareOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOperation StartHealthcare(string document, string language = null, Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task StartHealthcareAsync(string document, string language = null, Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOperation StartHealthcareBatch(System.Collections.Generic.IEnumerable documents, Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOperation StartHealthcareBatch(System.Collections.Generic.IEnumerable documents, string language = null, Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task StartHealthcareBatchAsync(System.Collections.Generic.IEnumerable documents, Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task StartHealthcareBatchAsync(System.Collections.Generic.IEnumerable documents, string language = null, Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override string ToString() { throw null; } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_RecognizeHealthcareEntities.md b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_RecognizeHealthcareEntities.md index e0f608e2d69e6..c3fe2d71bd6b1 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_RecognizeHealthcareEntities.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_RecognizeHealthcareEntities.md @@ -32,12 +32,12 @@ To recognize healthcare entities in a document, use the `StarthealthcareAsyc` me await healthOperation.WaitForCompletionAsync(); - RecognizeHealthcareEntitiesResultCollection results = healthOperation.Value; + AnalyzeHealthcareEntitiesResultCollection results = healthOperation.Value; Console.WriteLine($"Results of Azure Text Analytics \"Healthcare\" Model, version: \"{results.ModelVersion}\""); Console.WriteLine(""); - foreach (DocumentHealthcareResult result in results) + foreach (AnalyzeHealthcareEntitiesResult result in results) { Console.WriteLine($" Recognized the following {result.Entities.Count} healthcare entities:"); @@ -50,10 +50,10 @@ To recognize healthcare entities in a document, use the `StarthealthcareAsyc` me Console.WriteLine($" IsNegated: {entity.IsNegated}"); Console.WriteLine($" Links:"); - foreach (HealthcareEntityLink healthcareEntityLink in entity.Links) + foreach (EntityDataSource entityDataSource in entity.Links) { - Console.WriteLine($" ID: {healthcareEntityLink.Id}"); - Console.WriteLine($" DataSource: {healthcareEntityLink.DataSource}"); + Console.WriteLine($" ID: {entityDataSource.EntityId}"); + Console.WriteLine($" DataSource: {entityDataSource.Name}"); } } Console.WriteLine(""); @@ -85,12 +85,12 @@ To recognize healthcare entities in multiple documents, call `StartHealthcareBat await healthOperation.WaitForCompletionAsync(); - RecognizeHealthcareEntitiesResultCollection results = healthOperation.Value; + AnalyzeHealthcareEntitiesResultCollection results = healthOperation.Value; Console.WriteLine($"Results of Azure Text Analytics \"Healthcare Async\" Model, version: \"{results.ModelVersion}\""); Console.WriteLine(""); - foreach (DocumentHealthcareResult result in results) + foreach (AnalyzeHealthcareEntitiesResult result in results) { Console.WriteLine($" Recognized the following {result.Entities.Count} healthcare entities:"); @@ -103,10 +103,10 @@ To recognize healthcare entities in multiple documents, call `StartHealthcareBat Console.WriteLine($" IsNegated: {entity.IsNegated}"); Console.WriteLine($" Links:"); - foreach (HealthcareEntityLink healthcareEntityLink in entity.Links) + foreach (EntityDataSource entityDataSource in entity.Links) { - Console.WriteLine($" ID: {healthcareEntityLink.Id}"); - Console.WriteLine($" DataSource: {healthcareEntityLink.DataSource}"); + Console.WriteLine($" ID: {entityDataSource.EntityId}"); + Console.WriteLine($" DataSource: {entityDataSource.Name}"); } } Console.WriteLine(""); diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesOperation.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesOperation.cs index cdd25e7c6dc03..d165498005342 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesOperation.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesOperation.cs @@ -14,7 +14,7 @@ namespace Azure.AI.TextAnalytics { /// The AnalyzeHealthcareEntitiesOperation class for LRO. - public class AnalyzeHealthcareEntitiesOperation : Operation + public class AnalyzeHealthcareEntitiesOperation : Operation { /// Provides communication with the Text Analytics Azure Cognitive Service through its REST API. private readonly TextAnalyticsRestClient _serviceClient; @@ -35,6 +35,21 @@ public class AnalyzeHealthcareEntitiesOperation : Operation public override string Id { get; } + /// + /// CreatedOn + /// + public DateTimeOffset CreatedOn { get; } + + /// + /// ExpiresOn + /// + public DateTimeOffset ExpiresOn { get; } + + /// + /// LastModified + /// + public DateTimeOffset LastModified { get; } + /// /// Gets the status of the operation. /// @@ -51,7 +66,7 @@ public class AnalyzeHealthcareEntitiesOperation : Operation /// This property can be accessed only after the operation completes successfully (HasValue is true). /// - public override RecognizeHealthcareEntitiesResultCollection Value + public override AnalyzeHealthcareEntitiesResultCollection Value { get { @@ -80,7 +95,7 @@ public override RecognizeHealthcareEntitiesResultCollection Value private Response _response; /// The result of the long-running operation. null until result is received on status update. - private RecognizeHealthcareEntitiesResultCollection _value; + private AnalyzeHealthcareEntitiesResultCollection _value; private int? _top { get; } private int? _skip { get; } @@ -169,7 +184,7 @@ public override async ValueTask UpdateStatusAsync(CancellationToken ca /// /// This method will periodically call UpdateStatusAsync till HasCompleted is true, then return the final result of the operation. /// - public override ValueTask> WaitForCompletionAsync(CancellationToken cancellationToken = default) => + public override ValueTask> WaitForCompletionAsync(CancellationToken cancellationToken = default) => this.DefaultWaitForCompletionAsync(cancellationToken); /// @@ -185,7 +200,7 @@ public override ValueTask> /// /// This method will periodically call UpdateStatusAsync till HasCompleted is true, then return the final result of the operation. /// - public override ValueTask> WaitForCompletionAsync(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => + public override ValueTask> WaitForCompletionAsync(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => this.DefaultWaitForCompletionAsync(pollingInterval, cancellationToken); /// diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareOptions.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesOptions.cs similarity index 76% rename from sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareOptions.cs rename to sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesOptions.cs index 92e32144b0c9d..8631d868a3746 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareOptions.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesOptions.cs @@ -7,13 +7,13 @@ namespace Azure.AI.TextAnalytics /// Options that allow callers to specify details about how the operation /// is run and what information is returned from it by the service. /// - public class HealthcareOptions : TextAnalyticsRequestOptions + public class AnalyzeHealthcareEntitiesOptions : TextAnalyticsRequestOptions { /// - /// Initializes a new instance of the + /// Initializes a new instance of the /// class. /// - public HealthcareOptions() + public AnalyzeHealthcareEntitiesOptions() { } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesResult.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesResult.cs new file mode 100644 index 0000000000000..baf68dc3e7aed --- /dev/null +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesResult.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Linq; +using System.Text.RegularExpressions; + +namespace Azure.AI.TextAnalytics +{ + /// + /// DocumentHealthcareEntities. + /// + public partial class AnalyzeHealthcareEntitiesResult : TextAnalyticsResult + { + internal AnalyzeHealthcareEntitiesResult(string id, TextDocumentStatistics statistics, IReadOnlyCollection entities, IReadOnlyList warnings) + : base(id, statistics) + { + Entities = entities; + Warnings = Transforms.ConvertToWarnings(warnings); + } + + internal AnalyzeHealthcareEntitiesResult(string id, TextAnalyticsError error) : base(id, error) { } + + /// Healthcare entities. + public IReadOnlyCollection Entities { get; } + + /// Warnings encountered while processing document. + public IReadOnlyList Warnings { get; } = new List(); + } +} diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/RecognizeHealthcareEntitiesResultCollection.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesResultCollection.cs similarity index 73% rename from sdk/textanalytics/Azure.AI.TextAnalytics/src/RecognizeHealthcareEntitiesResultCollection.cs rename to sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesResultCollection.cs index bf6e7f7631cc6..bea8b389222d1 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/RecognizeHealthcareEntitiesResultCollection.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesResultCollection.cs @@ -3,22 +3,21 @@ using System.Collections.Generic; using System.Collections.ObjectModel; -using Azure.AI.TextAnalytics.Models; namespace Azure.AI.TextAnalytics { /// - /// Collection of objects corresponding + /// Collection of objects corresponding /// to a batch of documents, and information about the batch operation. /// - public class RecognizeHealthcareEntitiesResultCollection : ReadOnlyCollection + public class AnalyzeHealthcareEntitiesResultCollection : ReadOnlyCollection { /// /// /// /// /// - internal RecognizeHealthcareEntitiesResultCollection(IList list, TextDocumentBatchStatistics statistics, string modelVersion) : base(list) + internal AnalyzeHealthcareEntitiesResultCollection(IList list, TextDocumentBatchStatistics statistics, string modelVersion) : base(list) { Statistics = statistics; ModelVersion = modelVersion; diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/DocumentHealthcareResult.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/DocumentHealthcareResult.cs deleted file mode 100644 index 274dd0cb1e20c..0000000000000 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/DocumentHealthcareResult.cs +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using System; -using System.Collections.Generic; -using System.Globalization; -using System.Linq; -using System.Text.RegularExpressions; -using Azure.AI.TextAnalytics.Models; - -namespace Azure.AI.TextAnalytics -{ - /// - /// DocumentHealthcareEntities. - /// - public partial class DocumentHealthcareResult - { - internal DocumentHealthcareResult(DocumentHealthcareEntitiesInternal documentHealthcareEntities) - { - Entities = documentHealthcareEntities.Entities; - Relations = ResolveHealthcareRelations(documentHealthcareEntities.Entities, documentHealthcareEntities.Relations); - Id = documentHealthcareEntities.Id; - Warnings = Transforms.ConvertToWarnings(documentHealthcareEntities.Warnings); - Statistics = documentHealthcareEntities.Statistics; - } - - /// - /// Initializes a new instance of the class. - /// - /// - /// - internal DocumentHealthcareResult(string id, TextAnalyticsError textAnalyticsError) - { - Id = id; - TextAnalyticsError = textAnalyticsError; - } - - internal static IReadOnlyList ResolveHealthcareRelations(IEnumerable entities, IEnumerable relations) - { - List list = new List(); - - if (relations == null) - { - return list; - } - - foreach (HealthcareRelationInternal relation in relations) - { - list.Add(new HealthcareRelation(relation.RelationType, - relation.Bidirectional, - ResolveHealthcareEntity(entities, relation.Source), - ResolveHealthcareEntity(entities, relation.Target))); - } - - return list; - } - - /// Unique, non-empty document identifier. - public string Id { get; } - /// Healthcare entities. - public IReadOnlyList Entities { get; } - /// Healthcare entity relations. - public IReadOnlyList Relations { get; } = new List(); - /// Warnings encountered while processing document. - public IReadOnlyList Warnings { get; } = new List(); - /// if IncludeStatistics=true was specified in the request this field will contain information about the document payload. - public TextDocumentStatistics? Statistics { get; } - - /// TextAnalyticsError. - public TextAnalyticsError TextAnalyticsError { get; } - - private static Regex _healthcareEntityRegex = new Regex(@"\#/results/documents\/(?\d*)\/entities\/(?\d*)$", RegexOptions.Compiled, TimeSpan.FromSeconds(2)); - - internal static HealthcareEntity ResolveHealthcareEntity(IEnumerable entities, string reference) - { - var healthcareEntityMatch = _healthcareEntityRegex.Match(reference); - if (healthcareEntityMatch.Success) - { - int entityIndex = int.Parse(healthcareEntityMatch.Groups["entityIndex"].Value, CultureInfo.InvariantCulture); - - if (entityIndex < entities.Count()) - { - return entities.ElementAt(entityIndex); - } - } - - throw new InvalidOperationException($"Failed to parse element reference: {reference}"); - } - } -} diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/EntityDataSource.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/EntityDataSource.cs new file mode 100644 index 0000000000000..5fcf7dba9ee3f --- /dev/null +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/EntityDataSource.cs @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Core; + +namespace Azure.AI.TextAnalytics +{ + /// + /// HealthcareEntityLink. + /// + [CodeGenModel("HealthcareEntityLink")] + public partial class EntityDataSource + { + /// Entity id in the given source catalog. + [CodeGenMember("Id")] + public string EntityId { get; } + + /// Entity Catalog. Examples include: UMLS, CHV, MSH, etc. + [CodeGenMember("DataSource")] + public string Name { get; } + } +} diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntityLink.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityDataSource.Serialization.cs similarity index 78% rename from sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntityLink.Serialization.cs rename to sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityDataSource.Serialization.cs index 41bcc3c65d054..52977f39108c3 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntityLink.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityDataSource.Serialization.cs @@ -10,9 +10,9 @@ namespace Azure.AI.TextAnalytics { - public partial class HealthcareEntityLink + public partial class EntityDataSource { - internal static HealthcareEntityLink DeserializeHealthcareEntityLink(JsonElement element) + internal static EntityDataSource DeserializeEntityDataSource(JsonElement element) { string dataSource = default; string id = default; @@ -29,7 +29,7 @@ internal static HealthcareEntityLink DeserializeHealthcareEntityLink(JsonElement continue; } } - return new HealthcareEntityLink(dataSource, id); + return new EntityDataSource(dataSource, id); } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityDataSource.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityDataSource.cs new file mode 100644 index 0000000000000..75be70d61febc --- /dev/null +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/EntityDataSource.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.AI.TextAnalytics +{ + /// The HealthcareEntityLink. + public partial class EntityDataSource + { + /// Initializes a new instance of EntityDataSource. + /// Entity Catalog. Examples include: UMLS, CHV, MSH, etc. + /// Entity id in the given source catalog. + /// or is null. + internal EntityDataSource(string name, string entityId) + { + if (name == null) + { + throw new ArgumentNullException(nameof(name)); + } + if (entityId == null) + { + throw new ArgumentNullException(nameof(entityId)); + } + + Name = name; + EntityId = entityId; + } + } +} diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntity.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntity.Serialization.cs index d2a73b85b5048..151a587e10ab3 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntity.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntity.Serialization.cs @@ -16,7 +16,7 @@ public partial class HealthcareEntity internal static HealthcareEntity DeserializeHealthcareEntity(JsonElement element) { bool isNegated = default; - Optional> links = default; + Optional> links = default; string text = default; string category = default; Optional subcategory = default; @@ -37,10 +37,10 @@ internal static HealthcareEntity DeserializeHealthcareEntity(JsonElement element property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(HealthcareEntityLink.DeserializeHealthcareEntityLink(item)); + array.Add(EntityDataSource.DeserializeEntityDataSource(item)); } links = array; continue; diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntity.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntity.cs index 2d817694fa049..69cf15c80f071 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntity.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntity.cs @@ -34,7 +34,7 @@ internal HealthcareEntity(string text, string category, int offset, int length, } IsNegated = isNegated; - Links = new ChangeTrackingList(); + Links = new ChangeTrackingList(); } /// Initializes a new instance of HealthcareEntity. @@ -46,12 +46,12 @@ internal HealthcareEntity(string text, string category, int offset, int length, /// Confidence score between 0 and 1 of the extracted entity. /// . /// Entity references in known data sources. - internal HealthcareEntity(string text, string category, string subcategory, int offset, int length, double confidenceScore, bool isNegated, IReadOnlyList links) : base(text, category, subcategory, offset, length, confidenceScore) + internal HealthcareEntity(string text, string category, string subcategory, int offset, int length, double confidenceScore, bool isNegated, IReadOnlyList links) : base(text, category, subcategory, offset, length, confidenceScore) { IsNegated = isNegated; Links = links; } /// Entity references in known data sources. - public IReadOnlyList Links { get; } + public IReadOnlyList Links { get; } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntityLink.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntityLink.cs deleted file mode 100644 index 6ad7ef0d584c2..0000000000000 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntityLink.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; - -namespace Azure.AI.TextAnalytics -{ - /// The HealthcareEntityLink. - public partial class HealthcareEntityLink - { - /// Initializes a new instance of HealthcareEntityLink. - /// Entity Catalog. Examples include: UMLS, CHV, MSH, etc. - /// Entity id in the given source catalog. - /// or is null. - internal HealthcareEntityLink(string dataSource, string id) - { - if (dataSource == null) - { - throw new ArgumentNullException(nameof(dataSource)); - } - if (id == null) - { - throw new ArgumentNullException(nameof(id)); - } - - DataSource = dataSource; - Id = id; - } - - /// Entity Catalog. Examples include: UMLS, CHV, MSH, etc. - public string DataSource { get; } - /// Entity id in the given source catalog. - public string Id { get; } - } -} diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntity.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntity.cs index 267414b85b745..4ad98136d2f24 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntity.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntity.cs @@ -16,5 +16,15 @@ public partial class HealthcareEntity /// IsNegated /// public bool IsNegated { get; } + + /// + /// DataSources + /// + public IReadOnlyCollection DataSources { get; } + + /// + /// RelatedEntities + /// + public IReadOnlyDictionary RelatedEntities { get; } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntityLink.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntityLink.cs deleted file mode 100644 index 3fd0acbd6de39..0000000000000 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntityLink.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using Azure.Core; - -namespace Azure.AI.TextAnalytics -{ - /// - /// HealthcareEntityLink. - /// - [CodeGenModel("HealthcareEntityLink")] - public partial class HealthcareEntityLink - { - } -} diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntityRelationType.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntityRelationType.cs new file mode 100644 index 0000000000000..39773ff7fe3e7 --- /dev/null +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntityRelationType.cs @@ -0,0 +1,101 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.ComponentModel; +using Azure.Core; + +namespace Azure.AI.TextAnalytics +{ + /// + /// HealthcareEntityRelationType + /// + public class HealthcareEntityRelationType : IEquatable + { + /// + /// Specifies that the entity corresponds to a Person. + /// + public static readonly HealthcareEntityRelationType DirectionOfBodyStructure = new HealthcareEntityRelationType("DirectionOfBodyStructure"); + + /// + /// Specifies that the entity corresponds to a job type or role held by a person. + /// + public static readonly HealthcareEntityRelationType DirectionOfExamination = new HealthcareEntityRelationType("DirectionOfExamination"); + + /// + /// RelationOfExamination + /// + public static readonly HealthcareEntityRelationType RelationOfExamination = new HealthcareEntityRelationType("RelationOfExamination"); + + /// + /// TimeOfExamination + /// + public static readonly HealthcareEntityRelationType TimeOfExamination = new HealthcareEntityRelationType("TimeOfExamination"); + + private readonly string _value; + + private HealthcareEntityRelationType(string category) + { + Argument.AssertNotNull(category, nameof(category)); + _value = category; + } + + /// + /// Defines implicit conversion from string to EntityCategory. + /// + /// string to convert. + /// The string as an EntityCategory. + public static implicit operator HealthcareEntityRelationType(string category) => new HealthcareEntityRelationType(category); + + /// + /// Defines explicit conversion from EntityCategory to string. + /// + /// EntityCategory to convert. + /// The EntityCategory as a string. + public static explicit operator string(HealthcareEntityRelationType category) => category._value; + + /// + /// Compares two EntityCategory values for equality. + /// + /// The first EntityCategory to compare. + /// The second EntityCategory to compare. + /// true if the EntityCategory objects are equal or are both null; false otherwise. + public static bool operator ==(HealthcareEntityRelationType left, HealthcareEntityRelationType right) => Equals(left, right); + + /// + /// Compares two EntityCategory values for inequality. + /// + /// The first EntityCategory to compare. + /// The second EntityCategory to compare. + /// true if the EntityCategory objects are not equal; false otherwise. + public static bool operator !=(HealthcareEntityRelationType left, HealthcareEntityRelationType right) => !Equals(left, right); + + /// + /// Compares the EntityCategory for equality with another EntityCategory. + /// + /// The EntityCategory with which to compare. + /// true if the EntityCategory objects are equal; otherwise, false. + public bool Equals(HealthcareEntityRelationType other) => _value == other._value; + + /// + /// Determines whether the specified object is equal to the current object. + /// + /// The object to compare with the current object. + /// true if the specified object is equal to the current object; otherwise, false. + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is HealthcareEntityRelationType category && Equals(category); + + /// + /// Serves as the default hash function. + /// + /// A hash code for the current object. + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value.GetHashCode(); + + /// + /// Returns a string representation of the EntityCategory. + /// + /// The EntityCategory as a string. + public override string ToString() => _value; + } +} diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/TextAnalyticsClient.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/TextAnalyticsClient.cs index 3c90fcad0aaea..00a0c82eed0d2 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/TextAnalyticsClient.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/TextAnalyticsClient.cs @@ -2081,15 +2081,15 @@ private Response RecognizeLinkedEntitie /// /// The document to analyze. /// The language that the document is written in. - /// The additional configurable + /// The additional configurable /// A /// controlling the request lifetime. /// Service returned a non-success /// status code. - public virtual async Task StartHealthcareAsync(string document, string language = default, HealthcareOptions options = default, CancellationToken cancellationToken = default) + public virtual async Task StartHealthcareAsync(string document, string language = default, AnalyzeHealthcareEntitiesOptions options = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(document, nameof(document)); - options ??= new HealthcareOptions(); + options ??= new AnalyzeHealthcareEntitiesOptions(); var documents = new List() { document }; @@ -2130,15 +2130,15 @@ public virtual async Task StartHealthcareAsy /// /// The document to analyze. /// The language that the document is written in. - /// The additional configurable + /// The additional configurable /// A /// controlling the request lifetime. /// Service returned a non-success /// status code. - public virtual AnalyzeHealthcareEntitiesOperation StartHealthcare(string document, string language = default, HealthcareOptions options = default, CancellationToken cancellationToken = default) + public virtual AnalyzeHealthcareEntitiesOperation StartHealthcare(string document, string language = default, AnalyzeHealthcareEntitiesOptions options = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(document, nameof(document)); - options ??= new HealthcareOptions(); + options ??= new AnalyzeHealthcareEntitiesOptions(); var documents = new List() { document }; @@ -2179,15 +2179,15 @@ public virtual AnalyzeHealthcareEntitiesOperation StartHealthcare(string documen /// /// The documents to analyze. /// The language that the document is written in. - /// The additional configurable + /// The additional configurable /// A /// controlling the request lifetime. /// Service returned a non-success /// status code. - public virtual async Task StartHealthcareBatchAsync(IEnumerable documents, string language = default, HealthcareOptions options = default, CancellationToken cancellationToken = default) + public virtual async Task StartHealthcareBatchAsync(IEnumerable documents, string language = default, AnalyzeHealthcareEntitiesOptions options = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(documents, nameof(documents)); - options ??= new HealthcareOptions(); + options ??= new AnalyzeHealthcareEntitiesOptions(); MultiLanguageBatchInput documentInputs = ConvertToMultiLanguageInputs(documents, language); return await StartHealthcareBatchAsync(documentInputs, options, cancellationToken).ConfigureAwait(false); @@ -2213,7 +2213,7 @@ public virtual async Task StartHealthcareBat /// in the request sent to the /// service. If set to an empty string, the service will apply a model /// where the language is explicitly set to "None". - /// The additional configurable options + /// The additional configurable options /// A /// controlling the request lifetime. /// A result containing the collection of entities identified @@ -2221,10 +2221,10 @@ public virtual async Task StartHealthcareBat /// that a given entity correctly matches the identified substring. /// Service returned a non-success /// status code. - public virtual AnalyzeHealthcareEntitiesOperation StartHealthcareBatch(IEnumerable documents, string language = default, HealthcareOptions options = default, CancellationToken cancellationToken = default) + public virtual AnalyzeHealthcareEntitiesOperation StartHealthcareBatch(IEnumerable documents, string language = default, AnalyzeHealthcareEntitiesOptions options = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(documents, nameof(documents)); - options ??= new HealthcareOptions(); + options ??= new AnalyzeHealthcareEntitiesOptions(); MultiLanguageBatchInput documentInputs = ConvertToMultiLanguageInputs(documents, language); return StartHealthcareBatch(documentInputs, options, cancellationToken); @@ -2245,15 +2245,15 @@ public virtual AnalyzeHealthcareEntitiesOperation StartHealthcareBatch(IEnumerab /// /// /// The documents to analyze. - /// The additional configurable options + /// The additional configurable options /// A controlling the request lifetime. /// A to wait on this long-running operation. Its upon successful /// completion will contain layout elements extracted from the form. - public virtual AnalyzeHealthcareEntitiesOperation StartHealthcareBatch(IEnumerable documents, HealthcareOptions options, CancellationToken cancellationToken = default) + public virtual AnalyzeHealthcareEntitiesOperation StartHealthcareBatch(IEnumerable documents, AnalyzeHealthcareEntitiesOptions options, CancellationToken cancellationToken = default) { Argument.AssertNotNull(documents, nameof(documents)); - options ??= new HealthcareOptions(); + options ??= new AnalyzeHealthcareEntitiesOptions(); MultiLanguageBatchInput documentInputs = ConvertToMultiLanguageInputs(documents); @@ -2275,24 +2275,24 @@ public virtual AnalyzeHealthcareEntitiesOperation StartHealthcareBatch(IEnumerab /// /// /// The documents to analyze. - /// The additional configurable options + /// The additional configurable options /// A controlling the request lifetime. /// A to wait on this long-running operation. Its upon successful /// completion will contain layout elements extracted from the form. - public virtual async Task StartHealthcareBatchAsync(IEnumerable documents, HealthcareOptions options = default, CancellationToken cancellationToken = default) + public virtual async Task StartHealthcareBatchAsync(IEnumerable documents, AnalyzeHealthcareEntitiesOptions options = default, CancellationToken cancellationToken = default) { Argument.AssertNotNull(documents, nameof(documents)); - options ??= new HealthcareOptions(); + options ??= new AnalyzeHealthcareEntitiesOptions(); MultiLanguageBatchInput documentInputs = ConvertToMultiLanguageInputs(documents); return await StartHealthcareBatchAsync(documentInputs, options, cancellationToken).ConfigureAwait(false); } - private AnalyzeHealthcareEntitiesOperation StartHealthcareBatch(MultiLanguageBatchInput batchInput, HealthcareOptions options, CancellationToken cancellationToken = default) + private AnalyzeHealthcareEntitiesOperation StartHealthcareBatch(MultiLanguageBatchInput batchInput, AnalyzeHealthcareEntitiesOptions options, CancellationToken cancellationToken = default) { - options ??= new HealthcareOptions(); + options ??= new AnalyzeHealthcareEntitiesOptions(); using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(TextAnalyticsClient)}.{nameof(StartHealthcareBatch)}"); scope.Start(); @@ -2313,9 +2313,9 @@ private AnalyzeHealthcareEntitiesOperation StartHealthcareBatch(MultiLanguageBat } } - private async Task StartHealthcareBatchAsync(MultiLanguageBatchInput batchInput, HealthcareOptions options, CancellationToken cancellationToken = default) + private async Task StartHealthcareBatchAsync(MultiLanguageBatchInput batchInput, AnalyzeHealthcareEntitiesOptions options, CancellationToken cancellationToken = default) { - options ??= new HealthcareOptions(); + options ??= new AnalyzeHealthcareEntitiesOptions(); using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(TextAnalyticsClient)}.{nameof(StartHealthcareBatch)}"); scope.Start(); @@ -2341,19 +2341,19 @@ private async Task StartHealthcareBatchAsync /// /// Healthcare operation class object which is returned when operation is started. /// A controlling the request lifetime. - /// A collection of items. - public virtual AsyncPageable GetHealthcareEntities(AnalyzeHealthcareEntitiesOperation operation, CancellationToken cancellationToken = default) + /// A collection of items. + public virtual AsyncPageable GetHealthcareEntities(AnalyzeHealthcareEntitiesOperation operation, CancellationToken cancellationToken = default) { - async Task> FirstPageFunc(int? pageSizeHint) + async Task> FirstPageFunc(int? pageSizeHint) { using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(TextAnalyticsClient)}.{nameof(GetHealthcareEntities)}"); scope.Start(); try { - Response response = await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + Response response = await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); - RecognizeHealthcareEntitiesResultCollection result = operation.Value; + AnalyzeHealthcareEntitiesResultCollection result = operation.Value; return Page.FromValues(result.AsEnumerable(), operation.NextLink, response.GetRawResponse()); } catch (Exception e) @@ -2362,7 +2362,7 @@ async Task> FirstPageFunc(int? pageSizeHint) throw; } } - async Task> NextPageFunc(string nextLink, int? pageSizeHint) + async Task> NextPageFunc(string nextLink, int? pageSizeHint) { using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(TextAnalyticsClient)}.{nameof(GetHealthcareEntities)}"); scope.Start(); @@ -2417,7 +2417,7 @@ async Task> NextPageFunc(string nextLink, int? pa Response jobState = await _serviceRestClient.HealthStatusAsync(new Guid(jobId), top, skip, showStats, cancellationToken).ConfigureAwait(false); - RecognizeHealthcareEntitiesResultCollection result = Transforms.ConvertToRecognizeHealthcareEntitiesResultCollection(jobState.Value.Results, operation._idToIndexMap); + AnalyzeHealthcareEntitiesResultCollection result = Transforms.ConvertToRecognizeHealthcareEntitiesResultCollection(jobState.Value.Results, operation._idToIndexMap); return Page.FromValues(result.AsEnumerable(), jobState.Value.NextLink, jobState.GetRawResponse()); } catch (Exception e) diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Transforms.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Transforms.cs index 38f191a08eeb6..dc98a4dddeed9 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Transforms.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Transforms.cs @@ -245,25 +245,25 @@ internal static RecognizeLinkedEntitiesResultCollection ConvertToRecognizeLinked #region Healthcare - internal static RecognizeHealthcareEntitiesResultCollection ConvertToRecognizeHealthcareEntitiesResultCollection(HealthcareResult results, IDictionary idToIndexMap) + internal static AnalyzeHealthcareEntitiesResultCollection ConvertToRecognizeHealthcareEntitiesResultCollection(HealthcareResult results, IDictionary idToIndexMap) { - var healthcareEntititesResults = new List(); + var healthcareEntititesResults = new List(); //Read errors foreach (DocumentError error in results.Errors) { - healthcareEntititesResults.Add(new DocumentHealthcareResult(error.Id, ConvertToError(error.Error))); + healthcareEntititesResults.Add(new AnalyzeHealthcareEntitiesResult(error.Id, ConvertToError(error.Error))); } //Read entities foreach (DocumentHealthcareEntitiesInternal documentHealthcareEntities in results.Documents) { - healthcareEntititesResults.Add(new DocumentHealthcareResult(documentHealthcareEntities)); + healthcareEntititesResults.Add(new AnalyzeHealthcareEntitiesResult(documentHealthcareEntities.Id, documentHealthcareEntities.Statistics ?? default, documentHealthcareEntities.Entities, documentHealthcareEntities.Warnings)); } healthcareEntititesResults = healthcareEntititesResults.OrderBy(result => idToIndexMap[result.Id]).ToList(); - return new RecognizeHealthcareEntitiesResultCollection(healthcareEntititesResults, results.Statistics, results.ModelVersion); + return new AnalyzeHealthcareEntitiesResultCollection(healthcareEntititesResults, results.Statistics, results.ModelVersion); } #endregion diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/RecognizeHealthcareEntitiesTests.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/RecognizeHealthcareEntitiesTests.cs index c91d6ae24bbb5..dacb10b5fa6aa 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/RecognizeHealthcareEntitiesTests.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/RecognizeHealthcareEntitiesTests.cs @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; @@ -42,11 +43,11 @@ public async Task RecognizeHealthcareEntitiesTest() await operation.WaitForCompletionAsync(PollingInterval); - RecognizeHealthcareEntitiesResultCollection resultCollection = operation.Value; + AnalyzeHealthcareEntitiesResultCollection resultCollection = operation.Value; Assert.AreEqual(1, resultCollection.Count); - DocumentHealthcareResult result = resultCollection.Single(); + AnalyzeHealthcareEntitiesResult result = resultCollection.Single(); var entitiesList = new List { "100mg", "ibuprofen", "twice daily" }; @@ -62,28 +63,28 @@ public async Task RecognizeHealthcareEntitiesTest() { var linksList = new List { "UMLS", "AOD", "ATC", "CCPSS", "CHV", "CSP", "DRUGBANK", "GS", "LCH_NW", "LNC", "MEDCIN", "MMSL", "MSH", "MTHSPL", "NCI", "NCI_CTRP", "NCI_DCP", "NCI_DTP", "NCI_FDA", "NCI_NCI-GLOSS", "NDDF", "PDQ", "RCD", "RXNORM", "SNM", "SNMI", "SNOMEDCT_US", "USP", "USPMG", "VANDF" }; - foreach (HealthcareEntityLink link in entity.Links) - Assert.IsTrue(linksList.Contains(link.DataSource)); + foreach (EntityDataSource entityDataSource in entity.Links) + Assert.IsTrue(linksList.Contains(entityDataSource.Name)); } } - foreach (HealthcareRelation relation in result.Relations) - { - if (relation.RelationType == "DosageOfMedication") - { - Assert.AreEqual(relation.Source.Text, "100mg"); - Assert.AreEqual(relation.Source.Category, "Dosage"); - Assert.AreEqual(relation.Source.ConfidenceScore, 1); - Assert.AreEqual(relation.Source.Length, 5); - Assert.AreEqual(relation.Source.Offset, 18); - - Assert.AreEqual(relation.Target.Text, "ibuprofen"); - Assert.AreEqual(relation.Target.Category, "MedicationName"); - Assert.AreEqual(relation.Target.ConfidenceScore, 1); - Assert.AreEqual(relation.Target.Length, 9); - Assert.AreEqual(relation.Target.Offset, 27); - } - } + //foreach (HealthcareRelation relation in result.Relations) + //{ + // if (relation.RelationType == "DosageOfMedication") + // { + // Assert.AreEqual(relation.Source.Text, "100mg"); + // Assert.AreEqual(relation.Source.Category, "Dosage"); + // Assert.AreEqual(relation.Source.ConfidenceScore, 1); + // Assert.AreEqual(relation.Source.Length, 5); + // Assert.AreEqual(relation.Source.Offset, 18); + + // Assert.AreEqual(relation.Target.Text, "ibuprofen"); + // Assert.AreEqual(relation.Target.Category, "MedicationName"); + // Assert.AreEqual(relation.Target.ConfidenceScore, 1); + // Assert.AreEqual(relation.Target.Length, 9); + // Assert.AreEqual(relation.Target.Offset, 27); + // } + //} } [Test] @@ -96,9 +97,9 @@ public async Task RecognizeHealthcareEntitiesWithLanguageTest() await operation.WaitForCompletionAsync(PollingInterval); - RecognizeHealthcareEntitiesResultCollection resultCollection = operation.Value; + AnalyzeHealthcareEntitiesResultCollection resultCollection = operation.Value; - foreach (DocumentHealthcareResult result in resultCollection) + foreach (AnalyzeHealthcareEntitiesResult result in resultCollection) { Assert.AreEqual(3, result.Entities.Count); Assert.IsNotNull(result.Id); @@ -110,7 +111,7 @@ public async Task RecognizeHealthcareEntitiesWithTopParameter() { TextAnalyticsClient client = GetClient(); - HealthcareOptions options = new HealthcareOptions() + AnalyzeHealthcareEntitiesOptions options = new AnalyzeHealthcareEntitiesOptions() { Top = 1 }; @@ -119,7 +120,7 @@ public async Task RecognizeHealthcareEntitiesWithTopParameter() await operation.WaitForCompletionAsync(PollingInterval); - RecognizeHealthcareEntitiesResultCollection resultCollection = operation.Value; + AnalyzeHealthcareEntitiesResultCollection resultCollection = operation.Value; Assert.AreEqual(1, resultCollection.Count); Assert.AreEqual(3, resultCollection[0].Entities.Count); @@ -134,7 +135,7 @@ public async Task RecognizeHealthcareEntitiesWithSkipParameter() { TextAnalyticsClient client = GetClient(); - HealthcareOptions options = new HealthcareOptions() + AnalyzeHealthcareEntitiesOptions options = new AnalyzeHealthcareEntitiesOptions() { Skip = 1 }; @@ -143,9 +144,9 @@ public async Task RecognizeHealthcareEntitiesWithSkipParameter() await operation.WaitForCompletionAsync(PollingInterval); - RecognizeHealthcareEntitiesResultCollection resultCollection = operation.Value; + AnalyzeHealthcareEntitiesResultCollection resultCollection = operation.Value; - Assert.IsNotNull(resultCollection[0].TextAnalyticsError); + Assert.IsNotNull(resultCollection[0].HasError); Assert.IsNotNull(resultCollection[0].Warnings); Assert.AreEqual(1, resultCollection.Count); Assert.AreEqual(6, resultCollection[0].Entities.Count); @@ -170,12 +171,14 @@ public async Task RecognizeHealthcareEntitiesBatchWithErrorTest() await operation.WaitForCompletionAsync(PollingInterval); - RecognizeHealthcareEntitiesResultCollection resultCollection = operation.Value; + AnalyzeHealthcareEntitiesResultCollection resultCollection = operation.Value; Assert.IsNotNull(resultCollection[2].Id); - Assert.IsNotNull(resultCollection[2].TextAnalyticsError); - Assert.AreEqual("Document text is empty.", resultCollection[2].TextAnalyticsError.Message); - Assert.AreEqual(TextAnalyticsErrorCode.InvalidDocument, resultCollection[2].TextAnalyticsError.ErrorCode.ToString()); + + var exceptionMessage = "Document text is empty."; + Assert.IsTrue(resultCollection[2].HasError); + Assert.AreEqual(exceptionMessage, resultCollection[2].Error.Message); + Assert.AreEqual(TextAnalyticsErrorCode.InvalidDocument, resultCollection[2].Error.ErrorCode.ToString()); } [Test] @@ -188,7 +191,7 @@ public async Task RecognizeHealthcareEntitiesBatchConvenienceTest() await operation.WaitForCompletionAsync(PollingInterval); - RecognizeHealthcareEntitiesResultCollection resultCollection = operation.Value; + AnalyzeHealthcareEntitiesResultCollection resultCollection = operation.Value; Assert.AreEqual(2, resultCollection.Count); } @@ -199,7 +202,7 @@ public async Task RecognizeHealthcareEntitiesBatchConvenienceWithStatisticsTest( TextAnalyticsClient client = GetClient(); var documents = batchConvenienceDocuments; - HealthcareOptions options = new HealthcareOptions() + AnalyzeHealthcareEntitiesOptions options = new AnalyzeHealthcareEntitiesOptions() { IncludeStatistics = true }; @@ -208,12 +211,12 @@ public async Task RecognizeHealthcareEntitiesBatchConvenienceWithStatisticsTest( await operation.WaitForCompletionAsync(PollingInterval); - RecognizeHealthcareEntitiesResultCollection resultCollection = operation.Value; + AnalyzeHealthcareEntitiesResultCollection resultCollection = operation.Value; Assert.AreEqual(documents.Count, resultCollection.Statistics.DocumentCount); - Assert.AreEqual(48, resultCollection[0].Statistics.Value.CharacterCount); - Assert.AreEqual(1, resultCollection[0].Statistics.Value.TransactionCount); + Assert.AreEqual(48, resultCollection[0].Statistics.CharacterCount); + Assert.AreEqual(1, resultCollection[0].Statistics.TransactionCount); Assert.Greater(resultCollection.Statistics.DocumentCount, 0); Assert.AreEqual(2, resultCollection.Statistics.DocumentCount); @@ -232,7 +235,7 @@ public async Task RecognizeHealthcareEntitiesBatchTest() await operation.WaitForCompletionAsync(PollingInterval); - RecognizeHealthcareEntitiesResultCollection resultCollection = operation.Value; + AnalyzeHealthcareEntitiesResultCollection resultCollection = operation.Value; Assert.AreEqual(2, resultCollection.Count); } @@ -243,7 +246,7 @@ public async Task RecognizeHealthcareEntitiesBatchWithStatisticsTest() TextAnalyticsClient client = GetClient(); var documents = batchDocuments; - HealthcareOptions options = new HealthcareOptions() + AnalyzeHealthcareEntitiesOptions options = new AnalyzeHealthcareEntitiesOptions() { IncludeStatistics = true }; @@ -252,7 +255,7 @@ public async Task RecognizeHealthcareEntitiesBatchWithStatisticsTest() await operation.WaitForCompletionAsync(PollingInterval); - RecognizeHealthcareEntitiesResultCollection resultCollection = operation.Value; + AnalyzeHealthcareEntitiesResultCollection resultCollection = operation.Value; Assert.AreEqual(2, resultCollection.Count); @@ -309,17 +312,17 @@ public async Task RecognizeHealthcareEntitiesBatchWithPagination() list.Add(document); }; - HealthcareOptions options = new HealthcareOptions() + AnalyzeHealthcareEntitiesOptions options = new AnalyzeHealthcareEntitiesOptions() { Top = 2 }; AnalyzeHealthcareEntitiesOperation healthOperation = await client.StartHealthcareBatchAsync(list, "en", options); - AsyncPageable results = client.GetHealthcareEntities(healthOperation); + AsyncPageable results = client.GetHealthcareEntities(healthOperation); int resultCount = 0; - await foreach (DocumentHealthcareResult result in results) + await foreach (AnalyzeHealthcareEntitiesResult result in results) { resultCount += 1; } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_Healthcare.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_Healthcare.cs index d52bf20d34aa9..ea8747973a353 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_Healthcare.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_Healthcare.cs @@ -36,12 +36,12 @@ with a strong family history of coronary artery disease with a brother dying at await healthOperation.WaitForCompletionAsync(); - RecognizeHealthcareEntitiesResultCollection results = healthOperation.Value; + AnalyzeHealthcareEntitiesResultCollection results = healthOperation.Value; Console.WriteLine($"Results of Azure Text Analytics \"Healthcare\" Model, version: \"{results.ModelVersion}\""); Console.WriteLine(""); - foreach (DocumentHealthcareResult result in results) + foreach (AnalyzeHealthcareEntitiesResult result in results) { Console.WriteLine($" Recognized the following {result.Entities.Count} healthcare entities:"); @@ -54,10 +54,10 @@ with a strong family history of coronary artery disease with a brother dying at Console.WriteLine($" IsNegated: {entity.IsNegated}"); Console.WriteLine($" Links:"); - foreach (HealthcareEntityLink healthcareEntityLink in entity.Links) + foreach (EntityDataSource entityDataSource in entity.Links) { - Console.WriteLine($" ID: {healthcareEntityLink.Id}"); - Console.WriteLine($" DataSource: {healthcareEntityLink.DataSource}"); + Console.WriteLine($" ID: {entityDataSource.EntityId}"); + Console.WriteLine($" DataSource: {entityDataSource.Name}"); } } Console.WriteLine(""); diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync.cs index 9b7da1b4a2d26..d2804016649e7 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync.cs @@ -37,12 +37,12 @@ with a strong family history of coronary artery disease with a brother dying at await healthOperation.WaitForCompletionAsync(); - RecognizeHealthcareEntitiesResultCollection results = healthOperation.Value; + AnalyzeHealthcareEntitiesResultCollection results = healthOperation.Value; Console.WriteLine($"Results of Azure Text Analytics \"Healthcare Async\" Model, version: \"{results.ModelVersion}\""); Console.WriteLine(""); - foreach (DocumentHealthcareResult result in results) + foreach (AnalyzeHealthcareEntitiesResult result in results) { Console.WriteLine($" Recognized the following {result.Entities.Count} healthcare entities:"); @@ -55,10 +55,10 @@ with a strong family history of coronary artery disease with a brother dying at Console.WriteLine($" IsNegated: {entity.IsNegated}"); Console.WriteLine($" Links:"); - foreach (HealthcareEntityLink healthcareEntityLink in entity.Links) + foreach (EntityDataSource entityDataSource in entity.Links) { - Console.WriteLine($" ID: {healthcareEntityLink.Id}"); - Console.WriteLine($" DataSource: {healthcareEntityLink.DataSource}"); + Console.WriteLine($" ID: {entityDataSource.EntityId}"); + Console.WriteLine($" DataSource: {entityDataSource.Name}"); } } Console.WriteLine(""); diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync_AutomaticPolling.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync_AutomaticPolling.cs index 7d345b2f8a6ec..888d1dd83fd0d 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync_AutomaticPolling.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync_AutomaticPolling.cs @@ -39,12 +39,12 @@ with a strong family history of coronary artery disease with a brother dying at await healthOperation.WaitForCompletionAsync(pollingInterval); - RecognizeHealthcareEntitiesResultCollection results = healthOperation.Value; + AnalyzeHealthcareEntitiesResultCollection results = healthOperation.Value; Console.WriteLine($"Results of Azure Text Analytics \"Healthcare Async\" Model, version: \"{results.ModelVersion}\""); Console.WriteLine(""); - foreach (DocumentHealthcareResult result in results) + foreach (AnalyzeHealthcareEntitiesResult result in results) { Console.WriteLine($" Recognized the following {result.Entities.Count} healthcare entities:"); @@ -57,10 +57,10 @@ with a strong family history of coronary artery disease with a brother dying at Console.WriteLine($" IsNegated: {entity.IsNegated}"); Console.WriteLine($" Links:"); - foreach (HealthcareEntityLink healthcareEntityLink in entity.Links) + foreach (EntityDataSource entityDataSource in entity.Links) { - Console.WriteLine($" ID: {healthcareEntityLink.Id}"); - Console.WriteLine($" DataSource: {healthcareEntityLink.DataSource}"); + Console.WriteLine($" ID: {entityDataSource.EntityId}"); + Console.WriteLine($" DataSource: {entityDataSource.Name}"); } } Console.WriteLine(""); diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync_ManualPolling.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync_ManualPolling.cs index 9f748aae4eb39..91a551411cecb 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync_ManualPolling.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync_ManualPolling.cs @@ -48,12 +48,12 @@ with a strong family history of coronary artery disease with a brother dying at await Task.Delay(pollingInterval); } - RecognizeHealthcareEntitiesResultCollection results = healthOperation.Value; + AnalyzeHealthcareEntitiesResultCollection results = healthOperation.Value; Console.WriteLine($"Results of Azure Text Analytics \"Healthcare Async\" Model, version: \"{results.ModelVersion}\""); Console.WriteLine(""); - foreach (DocumentHealthcareResult result in results) + foreach (AnalyzeHealthcareEntitiesResult result in results) { Console.WriteLine($" Recognized the following {result.Entities.Count} healthcare entities:"); @@ -66,10 +66,10 @@ with a strong family history of coronary artery disease with a brother dying at Console.WriteLine($" IsNegated: {entity.IsNegated}"); Console.WriteLine($" Links:"); - foreach (HealthcareEntityLink healthcareEntityLink in entity.Links) + foreach (EntityDataSource entityDataSource in entity.Links) { - Console.WriteLine($" ID: {healthcareEntityLink.Id}"); - Console.WriteLine($" DataSource: {healthcareEntityLink.DataSource}"); + Console.WriteLine($" ID: {entityDataSource.EntityId}"); + Console.WriteLine($" DataSource: {entityDataSource.Name}"); } } Console.WriteLine(""); diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync_Pagination.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync_Pagination.cs index 5187c3992c194..a0c4e875b5ff0 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync_Pagination.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync_Pagination.cs @@ -32,20 +32,20 @@ public async Task HealthcareAsyncPagination() list.Add(document); }; - HealthcareOptions options = new HealthcareOptions() + AnalyzeHealthcareEntitiesOptions options = new AnalyzeHealthcareEntitiesOptions() { Top = 2 }; AnalyzeHealthcareEntitiesOperation healthOperation = await client.StartHealthcareBatchAsync(list, "en", options); - AsyncPageable results = client.GetHealthcareEntities(healthOperation); + AsyncPageable results = client.GetHealthcareEntities(healthOperation); Console.WriteLine($"Results of Azure Text Analytics \"Healthcare Async\""); Console.WriteLine(""); int resultCount = 0; - await foreach (DocumentHealthcareResult result in results) + await foreach (AnalyzeHealthcareEntitiesResult result in results) { resultCount += 1; } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatch.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatch.cs index 2f524b2e8894d..faf8772929adb 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatch.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatch.cs @@ -39,7 +39,7 @@ with a strong family history of coronary artery disease with a brother dying at document, }; - HealthcareOptions options = new HealthcareOptions() + AnalyzeHealthcareEntitiesOptions options = new AnalyzeHealthcareEntitiesOptions() { IncludeStatistics = true }; @@ -48,12 +48,12 @@ with a strong family history of coronary artery disease with a brother dying at await healthOperation.WaitForCompletionAsync(); - RecognizeHealthcareEntitiesResultCollection results = healthOperation.Value; + AnalyzeHealthcareEntitiesResultCollection results = healthOperation.Value; Console.WriteLine($"Results of Azure Text Analytics \"Healthcare\" Model, version: \"{results.ModelVersion}\""); Console.WriteLine(""); - foreach (DocumentHealthcareResult result in results) + foreach (AnalyzeHealthcareEntitiesResult result in results) { Console.WriteLine($" Recognized the following {result.Entities.Count} healthcare entities:"); @@ -66,16 +66,16 @@ with a strong family history of coronary artery disease with a brother dying at Console.WriteLine($" IsNegated: {entity.IsNegated}"); Console.WriteLine($" Links:"); - foreach (HealthcareEntityLink healthcareEntityLink in entity.Links) + foreach (EntityDataSource entityDataSource in entity.Links) { - Console.WriteLine($" ID: {healthcareEntityLink.Id}"); - Console.WriteLine($" DataSource: {healthcareEntityLink.DataSource}"); + Console.WriteLine($" ID: {entityDataSource.EntityId}"); + Console.WriteLine($" DataSource: {entityDataSource.Name}"); } } Console.WriteLine($" Document statistics:"); - Console.WriteLine($" Character count (in Unicode graphemes): {result.Statistics.Value.CharacterCount}"); - Console.WriteLine($" Transaction count: {result.Statistics.Value.TransactionCount}"); + Console.WriteLine($" Character count (in Unicode graphemes): {result.Statistics.CharacterCount}"); + Console.WriteLine($" Transaction count: {result.Statistics.TransactionCount}"); Console.WriteLine(""); } Console.WriteLine($"Request statistics:"); diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatchAsync.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatchAsync.cs index 8cedfdf3b33b4..79015302f0cfa 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatchAsync.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatchAsync.cs @@ -40,7 +40,7 @@ with a strong family history of coronary artery disease with a brother dying at document, }; - HealthcareOptions options = new HealthcareOptions() + AnalyzeHealthcareEntitiesOptions options = new AnalyzeHealthcareEntitiesOptions() { Top = 1, Skip = 0, @@ -51,12 +51,12 @@ with a strong family history of coronary artery disease with a brother dying at await healthOperation.WaitForCompletionAsync(); - RecognizeHealthcareEntitiesResultCollection results = healthOperation.Value; + AnalyzeHealthcareEntitiesResultCollection results = healthOperation.Value; Console.WriteLine($"Results of Azure Text Analytics \"Healthcare Async\" Model, version: \"{results.ModelVersion}\""); Console.WriteLine(""); - foreach (DocumentHealthcareResult result in results) + foreach (AnalyzeHealthcareEntitiesResult result in results) { Console.WriteLine($" Recognized the following {result.Entities.Count} healthcare entities:"); @@ -69,16 +69,16 @@ with a strong family history of coronary artery disease with a brother dying at Console.WriteLine($" IsNegated: {entity.IsNegated}"); Console.WriteLine($" Links:"); - foreach (HealthcareEntityLink healthcareEntityLink in entity.Links) + foreach (EntityDataSource entityDataSource in entity.Links) { - Console.WriteLine($" ID: {healthcareEntityLink.Id}"); - Console.WriteLine($" DataSource: {healthcareEntityLink.DataSource}"); + Console.WriteLine($" ID: {entityDataSource.EntityId}"); + Console.WriteLine($" DataSource: {entityDataSource.Name}"); } } Console.WriteLine($" Document statistics:"); - Console.WriteLine($" Character count (in Unicode graphemes): {result.Statistics.Value.CharacterCount}"); - Console.WriteLine($" Transaction count: {result.Statistics.Value.TransactionCount}"); + Console.WriteLine($" Character count (in Unicode graphemes): {result.Statistics.CharacterCount}"); + Console.WriteLine($" Transaction count: {result.Statistics.TransactionCount}"); Console.WriteLine(""); } Console.WriteLine($"Request statistics:"); diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatchConvenience.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatchConvenience.cs index a1b437e93cf57..b33b457b98980 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatchConvenience.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatchConvenience.cs @@ -42,12 +42,12 @@ with a strong family history of coronary artery disease with a brother dying at await healthOperation.WaitForCompletionAsync(); - RecognizeHealthcareEntitiesResultCollection results = healthOperation.Value; + AnalyzeHealthcareEntitiesResultCollection results = healthOperation.Value; Console.WriteLine($"Results of Azure Text Analytics \"Healthcare\" Model, version: \"{results.ModelVersion}\""); Console.WriteLine(""); - foreach (DocumentHealthcareResult result in results) + foreach (AnalyzeHealthcareEntitiesResult result in results) { Console.WriteLine($" Recognized the following {result.Entities.Count} healthcare entities:"); @@ -60,10 +60,10 @@ with a strong family history of coronary artery disease with a brother dying at Console.WriteLine($" IsNegated: {entity.IsNegated}"); Console.WriteLine($" Links:"); - foreach (HealthcareEntityLink healthcareEntityLink in entity.Links) + foreach (EntityDataSource entityDataSource in entity.Links) { - Console.WriteLine($" ID: {healthcareEntityLink.Id}"); - Console.WriteLine($" DataSource: {healthcareEntityLink.DataSource}"); + Console.WriteLine($" ID: {entityDataSource.EntityId}"); + Console.WriteLine($" DataSource: {entityDataSource.Name}"); } } Console.WriteLine(""); diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatchConvenienceAsync.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatchConvenienceAsync.cs index e5485636334f1..c70db4215f79a 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatchConvenienceAsync.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatchConvenienceAsync.cs @@ -43,12 +43,12 @@ with a strong family history of coronary artery disease with a brother dying at await healthOperation.WaitForCompletionAsync(); - RecognizeHealthcareEntitiesResultCollection results = healthOperation.Value; + AnalyzeHealthcareEntitiesResultCollection results = healthOperation.Value; Console.WriteLine($"Results of Azure Text Analytics \"Healthcare Async\" Model, version: \"{results.ModelVersion}\""); Console.WriteLine(""); - foreach (DocumentHealthcareResult result in results) + foreach (AnalyzeHealthcareEntitiesResult result in results) { Console.WriteLine($" Recognized the following {result.Entities.Count} healthcare entities:"); @@ -61,10 +61,10 @@ with a strong family history of coronary artery disease with a brother dying at Console.WriteLine($" IsNegated: {entity.IsNegated}"); Console.WriteLine($" Links:"); - foreach (HealthcareEntityLink healthcareEntityLink in entity.Links) + foreach (EntityDataSource entityDataSource in entity.Links) { - Console.WriteLine($" ID: {healthcareEntityLink.Id}"); - Console.WriteLine($" DataSource: {healthcareEntityLink.DataSource}"); + Console.WriteLine($" ID: {entityDataSource.EntityId}"); + Console.WriteLine($" DataSource: {entityDataSource.Name}"); } } Console.WriteLine(""); From 00679847e93d790a83a8ec783bd53e6ef9b6dfc3 Mon Sep 17 00:00:00 2001 From: Suhas Mehta Date: Tue, 26 Jan 2021 17:22:27 -0800 Subject: [PATCH 02/12] added related healthcare entities --- .../src/AnalyzeHealthcareEntitiesResult.cs | 12 +- .../src/DocumentHealthcareEntitiesInternal.cs | 2 +- ...ealthcareEntitiesInternal.Serialization.cs | 6 +- .../DocumentHealthcareEntitiesInternal.cs | 4 +- ...HealthcareEntityInternal.Serialization.cs} | 6 +- ...eEntity.cs => HealthcareEntityInternal.cs} | 12 +- .../src/HealthcareEntity.cs | 130 ++++++++++++++++-- .../src/HealthcareEntityInternal.cs | 16 +++ .../src/HealthcareRelation.cs | 55 -------- .../Azure.AI.TextAnalytics/src/Transforms.cs | 12 +- .../tests/RecognizeHealthcareEntitiesTests.cs | 35 +++-- .../tests/samples/Sample_Healthcare.cs | 3 +- .../tests/samples/Sample_HealthcareAsync.cs | 3 +- ...Sample_HealthcareAsync_AutomaticPolling.cs | 3 +- .../Sample_HealthcareAsync_ManualPolling.cs | 3 +- .../tests/samples/Sample_HealthcareBatch.cs | 3 +- .../samples/Sample_HealthcareBatchAsync.cs | 3 +- .../Sample_HealthcareBatchConvenience.cs | 3 +- .../Sample_HealthcareBatchConvenienceAsync.cs | 3 +- 19 files changed, 195 insertions(+), 119 deletions(-) rename sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/{HealthcareEntity.Serialization.cs => HealthcareEntityInternal.Serialization.cs} (89%) rename sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/{HealthcareEntity.cs => HealthcareEntityInternal.cs} (80%) create mode 100644 sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntityInternal.cs delete mode 100644 sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareRelation.cs diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesResult.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesResult.cs index baf68dc3e7aed..1a5ba66ae74b5 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesResult.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesResult.cs @@ -1,11 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System; using System.Collections.Generic; -using System.Globalization; -using System.Linq; -using System.Text.RegularExpressions; +using Azure.AI.TextAnalytics.Models; namespace Azure.AI.TextAnalytics { @@ -14,10 +11,13 @@ namespace Azure.AI.TextAnalytics /// public partial class AnalyzeHealthcareEntitiesResult : TextAnalyticsResult { - internal AnalyzeHealthcareEntitiesResult(string id, TextDocumentStatistics statistics, IReadOnlyCollection entities, IReadOnlyList warnings) + internal AnalyzeHealthcareEntitiesResult(string id, TextDocumentStatistics statistics, + IReadOnlyList healthcareEntities, + IReadOnlyList healthcareRelations, + IReadOnlyList warnings) : base(id, statistics) { - Entities = entities; + Entities = Transforms.ConvertToHealthcareEntityCollection(healthcareEntities, healthcareRelations); Warnings = Transforms.ConvertToWarnings(warnings); } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/DocumentHealthcareEntitiesInternal.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/DocumentHealthcareEntitiesInternal.cs index 0071611303222..eaab321612763 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/DocumentHealthcareEntitiesInternal.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/DocumentHealthcareEntitiesInternal.cs @@ -18,7 +18,7 @@ internal partial class DocumentHealthcareEntitiesInternal /// Unique, non-empty document identifier. public string Id { get; } /// Healthcare entities. - public IReadOnlyList Entities { get; } + public IReadOnlyList Entities { get; } /// Healthcare entity relations. public IReadOnlyList Relations { get; } /// Warnings encountered while processing document. diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentHealthcareEntitiesInternal.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentHealthcareEntitiesInternal.Serialization.cs index 2cc5178a37712..b1df5a366305c 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentHealthcareEntitiesInternal.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentHealthcareEntitiesInternal.Serialization.cs @@ -17,7 +17,7 @@ internal partial class DocumentHealthcareEntitiesInternal internal static DocumentHealthcareEntitiesInternal DeserializeDocumentHealthcareEntitiesInternal(JsonElement element) { string id = default; - IReadOnlyList entities = default; + IReadOnlyList entities = default; IReadOnlyList relations = default; IReadOnlyList warnings = default; Optional statistics = default; @@ -30,10 +30,10 @@ internal static DocumentHealthcareEntitiesInternal DeserializeDocumentHealthcare } if (property.NameEquals("entities")) { - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(HealthcareEntity.DeserializeHealthcareEntity(item)); + array.Add(HealthcareEntityInternal.DeserializeHealthcareEntityInternal(item)); } entities = array; continue; diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentHealthcareEntitiesInternal.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentHealthcareEntitiesInternal.cs index 8edffa1c4a9d0..b1ab8a18b1aea 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentHealthcareEntitiesInternal.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/DocumentHealthcareEntitiesInternal.cs @@ -21,7 +21,7 @@ internal partial class DocumentHealthcareEntitiesInternal /// Healthcare entity relations. /// Warnings encountered while processing document. /// , , , or is null. - internal DocumentHealthcareEntitiesInternal(string id, IEnumerable entities, IEnumerable relations, IEnumerable warnings) + internal DocumentHealthcareEntitiesInternal(string id, IEnumerable entities, IEnumerable relations, IEnumerable warnings) { if (id == null) { @@ -52,7 +52,7 @@ internal DocumentHealthcareEntitiesInternal(string id, IEnumerable Healthcare entity relations. /// Warnings encountered while processing document. /// if showStats=true was specified in the request this field will contain information about the document payload. - internal DocumentHealthcareEntitiesInternal(string id, IReadOnlyList entities, IReadOnlyList relations, IReadOnlyList warnings, TextDocumentStatistics? statistics) + internal DocumentHealthcareEntitiesInternal(string id, IReadOnlyList entities, IReadOnlyList relations, IReadOnlyList warnings, TextDocumentStatistics? statistics) { Id = id; Entities = entities; diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntity.Serialization.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntityInternal.Serialization.cs similarity index 89% rename from sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntity.Serialization.cs rename to sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntityInternal.Serialization.cs index 151a587e10ab3..8de37665e765b 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntity.Serialization.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntityInternal.Serialization.cs @@ -11,9 +11,9 @@ namespace Azure.AI.TextAnalytics { - public partial class HealthcareEntity + internal partial class HealthcareEntityInternal { - internal static HealthcareEntity DeserializeHealthcareEntity(JsonElement element) + internal static HealthcareEntityInternal DeserializeHealthcareEntityInternal(JsonElement element) { bool isNegated = default; Optional> links = default; @@ -76,7 +76,7 @@ internal static HealthcareEntity DeserializeHealthcareEntity(JsonElement element continue; } } - return new HealthcareEntity(text, category, subcategory.Value, offset, length, confidenceScore, isNegated, Optional.ToList(links)); + return new HealthcareEntityInternal(text, category, subcategory.Value, offset, length, confidenceScore, isNegated, Optional.ToList(links)); } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntity.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntityInternal.cs similarity index 80% rename from sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntity.cs rename to sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntityInternal.cs index 69cf15c80f071..8254438133d97 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntity.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/Models/HealthcareEntityInternal.cs @@ -12,9 +12,9 @@ namespace Azure.AI.TextAnalytics { /// The HealthcareEntity. - public partial class HealthcareEntity : Entity + internal partial class HealthcareEntityInternal : Entity { - /// Initializes a new instance of HealthcareEntity. + /// Initializes a new instance of HealthcareEntityInternal. /// Entity text as appears in the request. /// Entity type. /// Start position for the entity text. Use of different 'stringIndexType' values can affect the offset returned. @@ -22,7 +22,7 @@ public partial class HealthcareEntity : Entity /// Confidence score between 0 and 1 of the extracted entity. /// . /// or is null. - internal HealthcareEntity(string text, string category, int offset, int length, double confidenceScore, bool isNegated) : base(text, category, offset, length, confidenceScore) + internal HealthcareEntityInternal(string text, string category, int offset, int length, double confidenceScore, bool isNegated) : base(text, category, offset, length, confidenceScore) { if (text == null) { @@ -37,7 +37,7 @@ internal HealthcareEntity(string text, string category, int offset, int length, Links = new ChangeTrackingList(); } - /// Initializes a new instance of HealthcareEntity. + /// Initializes a new instance of HealthcareEntityInternal. /// Entity text as appears in the request. /// Entity type. /// (Optional) Entity sub type. @@ -46,11 +46,13 @@ internal HealthcareEntity(string text, string category, int offset, int length, /// Confidence score between 0 and 1 of the extracted entity. /// . /// Entity references in known data sources. - internal HealthcareEntity(string text, string category, string subcategory, int offset, int length, double confidenceScore, bool isNegated, IReadOnlyList links) : base(text, category, subcategory, offset, length, confidenceScore) + internal HealthcareEntityInternal(string text, string category, string subcategory, int offset, int length, double confidenceScore, bool isNegated, IReadOnlyList links) : base(text, category, subcategory, offset, length, confidenceScore) { IsNegated = isNegated; Links = links; } + + public bool IsNegated { get; } /// Entity references in known data sources. public IReadOnlyList Links { get; } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntity.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntity.cs index 4ad98136d2f24..74ca32417ba99 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntity.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntity.cs @@ -1,29 +1,143 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System; using System.Collections.Generic; -using Azure.Core; +using System.Globalization; +using System.Linq; +using System.Text.RegularExpressions; +using Azure.AI.TextAnalytics.Models; namespace Azure.AI.TextAnalytics { /// - /// HealthcareEntity. + /// . /// - [CodeGenModel("HealthcareEntity")] - public partial class HealthcareEntity + public class HealthcareEntity { + internal HealthcareEntity(HealthcareEntityInternal entity, IEnumerable healthcareEntities = default, IEnumerable healthcareRelations = default) + { + Category = entity.Category; + Text = entity.Text; + SubCategory = entity.Subcategory; + ConfidenceScore = entity.ConfidenceScore; + Offset = entity.Offset; + DataSources = entity.Links; + if (healthcareEntities != null && healthcareRelations != null) + { + RelatedEntities = ResolveRelatedEntities(entity, healthcareEntities, healthcareRelations); + } + } + + private static IReadOnlyDictionary ResolveRelatedEntities(HealthcareEntityInternal entity, + IEnumerable healthcareEntities, + IEnumerable healthcareRelations) + { + Dictionary dictionary = new Dictionary(); + + if (healthcareRelations == null) + { + return dictionary; + } + + foreach (HealthcareRelationInternal relation in healthcareRelations) + { + int entityIndex = healthcareEntities.ToList().FindIndex(e => e.Text.Equals(entity.Text)); + + if (IsEntitySource(relation, entityIndex)) + { + string targetRef = relation.Target; + + HealthcareEntityInternal relatedEntity = ResolveHealthcareEntity(healthcareEntities, targetRef); + + dictionary.Add(new HealthcareEntity(relatedEntity, healthcareEntities, healthcareRelations), relation.RelationType); + } + } + + return dictionary; + } + + internal static HealthcareEntityInternal ResolveHealthcareEntity(IEnumerable entities, string reference) + { + var healthcareEntityMatch = _healthcareEntityRegex.Match(reference); + if (healthcareEntityMatch.Success) + { + int entityIndex = int.Parse(healthcareEntityMatch.Groups["entityIndex"].Value, CultureInfo.InvariantCulture); + + if (entityIndex < entities.Count()) + { + return entities.ElementAt(entityIndex); + } + } + + throw new InvalidOperationException($"Failed to parse element reference: {reference}"); + } + + private static Regex _healthcareEntityRegex = new Regex(@"\#/results/documents\/(?\d*)\/entities\/(?\d*)$", RegexOptions.Compiled, TimeSpan.FromSeconds(2)); + + private static bool IsEntitySource(HealthcareRelationInternal healthcareRelation, int entityIndex) + { + string sourceRef = healthcareRelation.Source; + + var healthcareEntityMatch = _healthcareEntityRegex.Match(sourceRef); + + if (healthcareEntityMatch.Success) + { + int index = int.Parse(healthcareEntityMatch.Groups["entityIndex"].Value, CultureInfo.InvariantCulture); + + if (index == entityIndex) + { + return true; + } + } + return false; + } + + /// + /// Gets the entity text as it appears in the input document. + /// + public string Text { get; } + + /// + /// Gets the entity category inferred by the Text Analytics service's + /// named entity recognition model. The list of available categories is + /// described at + /// . + /// + public string Category { get; } + + /// + /// Gets the sub category of the entity inferred by the Text Analytics service's + /// named entity recognition model. This property may not have a value if + /// a sub category doesn't exist for this entity. The list of available categories and + /// subcategories is described at + /// . + /// + public string SubCategory { get; } + + /// + /// Gets a score between 0 and 1, indicating the confidence that the + /// text substring matches this inferred entity. + /// + public double ConfidenceScore { get; } + + /// + /// Gets the starting position (in UTF-16 code units) for the matching text in the input document. + /// + public int Offset { get; } + /// - /// IsNegated + /// . /// - public bool IsNegated { get; } + public int Length { get; } /// - /// DataSources + /// . /// public IReadOnlyCollection DataSources { get; } /// - /// RelatedEntities + /// . /// public IReadOnlyDictionary RelatedEntities { get; } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntityInternal.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntityInternal.cs new file mode 100644 index 0000000000000..0c028488dedf9 --- /dev/null +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntityInternal.cs @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.AI.TextAnalytics +{ + /// + /// HealthcareEntity. + /// + [CodeGenModel("HealthcareEntity")] + internal partial class HealthcareEntityInternal + { + } +} diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareRelation.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareRelation.cs deleted file mode 100644 index 49bd433d7dde1..0000000000000 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareRelation.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using System; - -namespace Azure.AI.TextAnalytics -{ - /// - /// HealthcareRelation class. - /// - public partial class HealthcareRelation - { - /// Initializes a new instance of HealthcareRelation. - /// Type of relation. Examples include: `DosageOfMedication` or `FrequencyOfMedication`, etc. - /// If true the relation between the entities is bidirectional, otherwise directionality is source to target. - /// Reference link to the source entity. - /// Reference link to the target entity. - /// , , or is null. - internal HealthcareRelation(string relationType, bool bidirectional, HealthcareEntity source, HealthcareEntity target) - { - if (relationType == null) - { - throw new ArgumentNullException(nameof(relationType)); - } - if (source == null) - { - throw new ArgumentNullException(nameof(source)); - } - if (target == null) - { - throw new ArgumentNullException(nameof(target)); - } - - RelationType = relationType; - Bidirectional = bidirectional; - Source = source; - Target = target; - } - - /// - /// Source Entity - /// - public HealthcareEntity Source { get; } - - /// - /// Target Entity - /// - public HealthcareEntity Target { get; } - - /// Type of relation. Examples include: `DosageOfMedication` or `FrequencyOfMedication`, etc. - public string RelationType { get; } - /// If true the relation between the entities is bidirectional, otherwise directionality is source to target. - public bool Bidirectional { get; } - } -} diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Transforms.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Transforms.cs index dc98a4dddeed9..375385c2712cf 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Transforms.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Transforms.cs @@ -245,6 +245,11 @@ internal static RecognizeLinkedEntitiesResultCollection ConvertToRecognizeLinked #region Healthcare + internal static IReadOnlyCollection ConvertToHealthcareEntityCollection(IEnumerable healthcareEntities, IEnumerable healthcareRelations) + { + return healthcareEntities.Select((entity) => new HealthcareEntity(entity, healthcareEntities, healthcareRelations)).ToList(); + } + internal static AnalyzeHealthcareEntitiesResultCollection ConvertToRecognizeHealthcareEntitiesResultCollection(HealthcareResult results, IDictionary idToIndexMap) { var healthcareEntititesResults = new List(); @@ -258,7 +263,12 @@ internal static AnalyzeHealthcareEntitiesResultCollection ConvertToRecognizeHeal //Read entities foreach (DocumentHealthcareEntitiesInternal documentHealthcareEntities in results.Documents) { - healthcareEntititesResults.Add(new AnalyzeHealthcareEntitiesResult(documentHealthcareEntities.Id, documentHealthcareEntities.Statistics ?? default, documentHealthcareEntities.Entities, documentHealthcareEntities.Warnings)); + healthcareEntititesResults.Add(new AnalyzeHealthcareEntitiesResult( + documentHealthcareEntities.Id, + documentHealthcareEntities.Statistics ?? default, + documentHealthcareEntities.Entities, + documentHealthcareEntities.Relations, + documentHealthcareEntities.Warnings)); } healthcareEntititesResults = healthcareEntititesResults.OrderBy(result => idToIndexMap[result.Id]).ToList(); diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/RecognizeHealthcareEntitiesTests.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/RecognizeHealthcareEntitiesTests.cs index dacb10b5fa6aa..9231de5efea34 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/RecognizeHealthcareEntitiesTests.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/RecognizeHealthcareEntitiesTests.cs @@ -63,28 +63,25 @@ public async Task RecognizeHealthcareEntitiesTest() { var linksList = new List { "UMLS", "AOD", "ATC", "CCPSS", "CHV", "CSP", "DRUGBANK", "GS", "LCH_NW", "LNC", "MEDCIN", "MMSL", "MSH", "MTHSPL", "NCI", "NCI_CTRP", "NCI_DCP", "NCI_DTP", "NCI_FDA", "NCI_NCI-GLOSS", "NDDF", "PDQ", "RCD", "RXNORM", "SNM", "SNMI", "SNOMEDCT_US", "USP", "USPMG", "VANDF" }; - foreach (EntityDataSource entityDataSource in entity.Links) + foreach (EntityDataSource entityDataSource in entity.DataSources) Assert.IsTrue(linksList.Contains(entityDataSource.Name)); } - } - //foreach (HealthcareRelation relation in result.Relations) - //{ - // if (relation.RelationType == "DosageOfMedication") - // { - // Assert.AreEqual(relation.Source.Text, "100mg"); - // Assert.AreEqual(relation.Source.Category, "Dosage"); - // Assert.AreEqual(relation.Source.ConfidenceScore, 1); - // Assert.AreEqual(relation.Source.Length, 5); - // Assert.AreEqual(relation.Source.Offset, 18); - - // Assert.AreEqual(relation.Target.Text, "ibuprofen"); - // Assert.AreEqual(relation.Target.Category, "MedicationName"); - // Assert.AreEqual(relation.Target.ConfidenceScore, 1); - // Assert.AreEqual(relation.Target.Length, 9); - // Assert.AreEqual(relation.Target.Offset, 27); - // } - //} + if (entity.Text == "100mg") + { + HealthcareEntity relatedEntity= new HealthcareEntity(new HealthcareEntityInternal("ibuprofen", "MedicationName", 27, 0, 1.0, false)); + + Assert.IsTrue(entity.RelatedEntities.Count == 1); + Assert.AreEqual(relatedEntity.Text, entity.RelatedEntities.ElementAt(0).Key.Text); + Assert.AreEqual(relatedEntity.Category, entity.RelatedEntities.ElementAt(0).Key.Category); + Assert.AreEqual(relatedEntity.Length, entity.RelatedEntities.ElementAt(0).Key.Length); + Assert.AreEqual(relatedEntity.Offset, entity.RelatedEntities.ElementAt(0).Key.Offset); + Assert.AreEqual(relatedEntity.ConfidenceScore, entity.RelatedEntities.ElementAt(0).Key.ConfidenceScore); + + // TODO - DosageOfMedication is not in relation types and is returned from the service. Need to add to swagger. + //Assert.AreEqual(HealthcareEntityRelationType.DosageOfMedication, entity.RelatedEntities.ElementAt(0).Value); + } + } } [Test] diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_Healthcare.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_Healthcare.cs index ea8747973a353..1c76d3099601a 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_Healthcare.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_Healthcare.cs @@ -51,10 +51,9 @@ with a strong family history of coronary artery disease with a brother dying at Console.WriteLine($" Category: {entity.Category}"); Console.WriteLine($" Offset: {entity.Offset}"); Console.WriteLine($" Length: {entity.Length}"); - Console.WriteLine($" IsNegated: {entity.IsNegated}"); Console.WriteLine($" Links:"); - foreach (EntityDataSource entityDataSource in entity.Links) + foreach (EntityDataSource entityDataSource in entity.DataSources) { Console.WriteLine($" ID: {entityDataSource.EntityId}"); Console.WriteLine($" DataSource: {entityDataSource.Name}"); diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync.cs index d2804016649e7..7f3d7f185fb88 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync.cs @@ -52,10 +52,9 @@ with a strong family history of coronary artery disease with a brother dying at Console.WriteLine($" Category: {entity.Category}"); Console.WriteLine($" Offset: {entity.Offset}"); Console.WriteLine($" Length: {entity.Length}"); - Console.WriteLine($" IsNegated: {entity.IsNegated}"); Console.WriteLine($" Links:"); - foreach (EntityDataSource entityDataSource in entity.Links) + foreach (EntityDataSource entityDataSource in entity.DataSources) { Console.WriteLine($" ID: {entityDataSource.EntityId}"); Console.WriteLine($" DataSource: {entityDataSource.Name}"); diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync_AutomaticPolling.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync_AutomaticPolling.cs index 888d1dd83fd0d..4953d63f76f25 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync_AutomaticPolling.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync_AutomaticPolling.cs @@ -54,10 +54,9 @@ with a strong family history of coronary artery disease with a brother dying at Console.WriteLine($" Category: {entity.Category}"); Console.WriteLine($" Offset: {entity.Offset}"); Console.WriteLine($" Length: {entity.Length}"); - Console.WriteLine($" IsNegated: {entity.IsNegated}"); Console.WriteLine($" Links:"); - foreach (EntityDataSource entityDataSource in entity.Links) + foreach (EntityDataSource entityDataSource in entity.DataSources) { Console.WriteLine($" ID: {entityDataSource.EntityId}"); Console.WriteLine($" DataSource: {entityDataSource.Name}"); diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync_ManualPolling.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync_ManualPolling.cs index 91a551411cecb..c965d1f25d471 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync_ManualPolling.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync_ManualPolling.cs @@ -63,10 +63,9 @@ with a strong family history of coronary artery disease with a brother dying at Console.WriteLine($" Category: {entity.Category}"); Console.WriteLine($" Offset: {entity.Offset}"); Console.WriteLine($" Length: {entity.Length}"); - Console.WriteLine($" IsNegated: {entity.IsNegated}"); Console.WriteLine($" Links:"); - foreach (EntityDataSource entityDataSource in entity.Links) + foreach (EntityDataSource entityDataSource in entity.DataSources) { Console.WriteLine($" ID: {entityDataSource.EntityId}"); Console.WriteLine($" DataSource: {entityDataSource.Name}"); diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatch.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatch.cs index faf8772929adb..dd7f6edbd09a4 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatch.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatch.cs @@ -63,10 +63,9 @@ with a strong family history of coronary artery disease with a brother dying at Console.WriteLine($" Category: {entity.Category}"); Console.WriteLine($" Offset: {entity.Offset}"); Console.WriteLine($" Length: {entity.Length}"); - Console.WriteLine($" IsNegated: {entity.IsNegated}"); Console.WriteLine($" Links:"); - foreach (EntityDataSource entityDataSource in entity.Links) + foreach (EntityDataSource entityDataSource in entity.DataSources) { Console.WriteLine($" ID: {entityDataSource.EntityId}"); Console.WriteLine($" DataSource: {entityDataSource.Name}"); diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatchAsync.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatchAsync.cs index 79015302f0cfa..6b59337fc2e12 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatchAsync.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatchAsync.cs @@ -66,10 +66,9 @@ with a strong family history of coronary artery disease with a brother dying at Console.WriteLine($" Category: {entity.Category}"); Console.WriteLine($" Offset: {entity.Offset}"); Console.WriteLine($" Length: {entity.Length}"); - Console.WriteLine($" IsNegated: {entity.IsNegated}"); Console.WriteLine($" Links:"); - foreach (EntityDataSource entityDataSource in entity.Links) + foreach (EntityDataSource entityDataSource in entity.DataSources) { Console.WriteLine($" ID: {entityDataSource.EntityId}"); Console.WriteLine($" DataSource: {entityDataSource.Name}"); diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatchConvenience.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatchConvenience.cs index b33b457b98980..3d8ce8ed6816d 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatchConvenience.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatchConvenience.cs @@ -57,10 +57,9 @@ with a strong family history of coronary artery disease with a brother dying at Console.WriteLine($" Category: {entity.Category}"); Console.WriteLine($" Offset: {entity.Offset}"); Console.WriteLine($" Length: {entity.Length}"); - Console.WriteLine($" IsNegated: {entity.IsNegated}"); Console.WriteLine($" Links:"); - foreach (EntityDataSource entityDataSource in entity.Links) + foreach (EntityDataSource entityDataSource in entity.DataSources) { Console.WriteLine($" ID: {entityDataSource.EntityId}"); Console.WriteLine($" DataSource: {entityDataSource.Name}"); diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatchConvenienceAsync.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatchConvenienceAsync.cs index c70db4215f79a..a57437ceaf9e6 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatchConvenienceAsync.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatchConvenienceAsync.cs @@ -58,10 +58,9 @@ with a strong family history of coronary artery disease with a brother dying at Console.WriteLine($" Category: {entity.Category}"); Console.WriteLine($" Offset: {entity.Offset}"); Console.WriteLine($" Length: {entity.Length}"); - Console.WriteLine($" IsNegated: {entity.IsNegated}"); Console.WriteLine($" Links:"); - foreach (EntityDataSource entityDataSource in entity.Links) + foreach (EntityDataSource entityDataSource in entity.DataSources) { Console.WriteLine($" ID: {entityDataSource.EntityId}"); Console.WriteLine($" DataSource: {entityDataSource.Name}"); From 7c143e9b00b801dfda46d5511970f34d06f398ea Mon Sep 17 00:00:00 2001 From: Suhas Mehta Date: Tue, 26 Jan 2021 17:23:53 -0800 Subject: [PATCH 03/12] updated session records --- .../Azure.AI.TextAnalytics/README.md | 3 +- .../Azure.AI.TextAnalytics.netstandard2.0.cs | 18 +- .../Sample_RecognizeHealthcareEntities.md | 6 +- ...ealthcareEntitiesBatchConvenienceTest.json | 230 +++++++-- ...careEntitiesBatchConvenienceTestAsync.json | 118 ++--- ...iesBatchConvenienceWithStatisticsTest.json | 110 ++-- ...tchConvenienceWithStatisticsTestAsync.json | 84 ++-- .../RecognizeHealthcareEntitiesBatchTest.json | 470 ++++++++++++++++-- ...gnizeHealthcareEntitiesBatchTestAsync.json | 80 ++- ...althcareEntitiesBatchWithCancellation.json | 42 +- ...areEntitiesBatchWithCancellationAsync.json | 42 +- ...eHealthcareEntitiesBatchWithErrorTest.json | 118 ++--- ...thcareEntitiesBatchWithErrorTestAsync.json | 116 ++--- ...HealthcareEntitiesBatchWithPagination.json | 288 ++++------- ...hcareEntitiesBatchWithPaginationAsync.json | 206 ++++---- ...thcareEntitiesBatchWithStatisticsTest.json | 82 ++- ...eEntitiesBatchWithStatisticsTestAsync.json | 114 +++-- .../RecognizeHealthcareEntitiesTest.json | 82 ++- .../RecognizeHealthcareEntitiesTestAsync.json | 118 ++--- ...izeHealthcareEntitiesWithLanguageTest.json | 84 ++-- ...althcareEntitiesWithLanguageTestAsync.json | 112 +++-- ...zeHealthcareEntitiesWithSkipParameter.json | 84 ++-- ...lthcareEntitiesWithSkipParameterAsync.json | 120 ++--- ...izeHealthcareEntitiesWithTopParameter.json | 84 ++-- ...althcareEntitiesWithTopParameterAsync.json | 112 +++-- 25 files changed, 1464 insertions(+), 1459 deletions(-) diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/README.md b/sdk/textanalytics/Azure.AI.TextAnalytics/README.md index 959f926c7ebc8..7991bfb118fd5 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/README.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/README.md @@ -441,10 +441,9 @@ Text Analytics for health is a containerized service that extracts and labels re Console.WriteLine($" Category: {entity.Category}"); Console.WriteLine($" Offset: {entity.Offset}"); Console.WriteLine($" Length: {entity.Length}"); - Console.WriteLine($" IsNegated: {entity.IsNegated}"); Console.WriteLine($" Links:"); - foreach (EntityDataSource entityDataSource in entity.Links) + foreach (EntityDataSource entityDataSource in entity.DataSources) { Console.WriteLine($" ID: {entityDataSource.EntityId}"); Console.WriteLine($" DataSource: {entityDataSource.Name}"); diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/api/Azure.AI.TextAnalytics.netstandard2.0.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/api/Azure.AI.TextAnalytics.netstandard2.0.cs index 7a675538b364b..9794804794f4e 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/api/Azure.AI.TextAnalytics.netstandard2.0.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/api/Azure.AI.TextAnalytics.netstandard2.0.cs @@ -234,13 +234,17 @@ internal ExtractKeyPhrasesResultCollection() : base (default(System.Collections. public string ModelVersion { get { throw null; } } public Azure.AI.TextAnalytics.TextDocumentBatchStatistics Statistics { get { throw null; } } } - public partial class HealthcareEntity : Azure.AI.TextAnalytics.Entity + public partial class HealthcareEntity { internal HealthcareEntity() { } + public string Category { get { throw null; } } + public double ConfidenceScore { get { throw null; } } public System.Collections.Generic.IReadOnlyCollection DataSources { get { throw null; } } - public bool IsNegated { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Links { get { throw null; } } + public int Length { get { throw null; } } + public int Offset { get { throw null; } } public System.Collections.Generic.IReadOnlyDictionary RelatedEntities { get { throw null; } } + public string SubCategory { get { throw null; } } + public string Text { get { throw null; } } } public partial class HealthcareEntityRelationType : System.IEquatable { @@ -260,14 +264,6 @@ internal HealthcareEntityRelationType() { } public static bool operator !=(Azure.AI.TextAnalytics.HealthcareEntityRelationType left, Azure.AI.TextAnalytics.HealthcareEntityRelationType right) { throw null; } public override string ToString() { throw null; } } - public partial class HealthcareRelation - { - internal HealthcareRelation() { } - public bool Bidirectional { get { throw null; } } - public string RelationType { get { throw null; } } - public Azure.AI.TextAnalytics.HealthcareEntity Source { get { throw null; } } - public Azure.AI.TextAnalytics.HealthcareEntity Target { get { throw null; } } - } public partial class JobManifestTasks { public JobManifestTasks() { } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_RecognizeHealthcareEntities.md b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_RecognizeHealthcareEntities.md index c3fe2d71bd6b1..2f69cf6cd8bb4 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_RecognizeHealthcareEntities.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_RecognizeHealthcareEntities.md @@ -47,10 +47,9 @@ To recognize healthcare entities in a document, use the `StarthealthcareAsyc` me Console.WriteLine($" Category: {entity.Category}"); Console.WriteLine($" Offset: {entity.Offset}"); Console.WriteLine($" Length: {entity.Length}"); - Console.WriteLine($" IsNegated: {entity.IsNegated}"); Console.WriteLine($" Links:"); - foreach (EntityDataSource entityDataSource in entity.Links) + foreach (EntityDataSource entityDataSource in entity.DataSources) { Console.WriteLine($" ID: {entityDataSource.EntityId}"); Console.WriteLine($" DataSource: {entityDataSource.Name}"); @@ -100,10 +99,9 @@ To recognize healthcare entities in multiple documents, call `StartHealthcareBat Console.WriteLine($" Category: {entity.Category}"); Console.WriteLine($" Offset: {entity.Offset}"); Console.WriteLine($" Length: {entity.Length}"); - Console.WriteLine($" IsNegated: {entity.IsNegated}"); Console.WriteLine($" Links:"); - foreach (EntityDataSource entityDataSource in entity.Links) + foreach (EntityDataSource entityDataSource in entity.DataSources) { Console.WriteLine($" ID: {entityDataSource.EntityId}"); Console.WriteLine($" DataSource: {entityDataSource.Name}"); diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceTest.json index bb3ca30567730..df413e227e80a 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceTest.json @@ -1,21 +1,15 @@ { "Entries": [ { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-14eaf278ddb2ac4ba8f8511b8c3100c1-5f0f7cccab366a47-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-2efce34d3ef51b4289a1ee73e78d03ca-5b62d4d4faca9f43-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "1d7c0f7df9a5be46a7bf1d0b574c6095", "x-ms-return-client-request-id": "true" }, @@ -35,84 +29,222 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "4ec9e445-1708-4951-bea3-f6741fc8740d", - "Date": "Tue, 17 Nov 2020 20:17:19 GMT", - "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/12a3f8a5-4582-4ed6-a21b-f906a663be51", + "apim-request-id": "9dfe40bc-9885-4ead-8641-39ed7ffc93d0", + "Date": "Wed, 27 Jan 2021 01:17:15 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/92e2e19c-f082-4282-9466-355f57c6ae00", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "111" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "176" }, "ResponseBody": [] }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/12a3f8a5-4582-4ed6-a21b-f906a663be51?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/92e2e19c-f082-4282-9466-355f57c6ae00?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "9441bfd5d8fa13e75ab79017f0dbec22", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "373937ad-40cd-4d82-b57f-69ee3d139277", + "apim-request-id": "732129e4-043b-42ea-9d4b-03fa9be42c42", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:19 GMT", + "Date": "Wed, 27 Jan 2021 01:17:15 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", + "x-content-type-options": "nosniff", "x-envoy-upstream-service-time": "12" }, "ResponseBody": { - "jobId": "12a3f8a5-4582-4ed6-a21b-f906a663be51", - "lastUpdateDateTime": "2020-11-17T20:17:19Z", - "createdDateTime": "2020-11-17T20:17:19Z", - "expirationDateTime": "2020-11-18T20:17:19Z", + "jobId": "92e2e19c-f082-4282-9466-355f57c6ae00", + "lastUpdateDateTime": "2021-01-27T01:17:15Z", + "createdDateTime": "2021-01-27T01:17:15Z", + "expirationDateTime": "2021-01-28T01:17:15Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/12a3f8a5-4582-4ed6-a21b-f906a663be51?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/92e2e19c-f082-4282-9466-355f57c6ae00?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "1f1476b4f8decd8416de12a15e37d599", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "ef23896f-7dda-4705-b697-f9e23f605d91", + "apim-request-id": "9e3be35b-f3d1-4ade-81a0-e45c24dbcdc1", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:20 GMT", + "Date": "Wed, 27 Jan 2021 01:17:16 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "62" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "13" }, "ResponseBody": { - "jobId": "12a3f8a5-4582-4ed6-a21b-f906a663be51", - "lastUpdateDateTime": "2020-11-17T20:17:20Z", - "createdDateTime": "2020-11-17T20:17:19Z", - "expirationDateTime": "2020-11-18T20:17:19Z", + "jobId": "92e2e19c-f082-4282-9466-355f57c6ae00", + "lastUpdateDateTime": "2021-01-27T01:17:15Z", + "createdDateTime": "2021-01-27T01:17:15Z", + "expirationDateTime": "2021-01-28T01:17:15Z", + "status": "notStarted", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/92e2e19c-f082-4282-9466-355f57c6ae00?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "9fb8c34e36bba5c72869c2ed682ecdcc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "37069cc1-baaa-4367-bc57-f0171300f89f", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 27 Jan 2021 01:17:17 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "15" + }, + "ResponseBody": { + "jobId": "92e2e19c-f082-4282-9466-355f57c6ae00", + "lastUpdateDateTime": "2021-01-27T01:17:15Z", + "createdDateTime": "2021-01-27T01:17:15Z", + "expirationDateTime": "2021-01-28T01:17:15Z", + "status": "notStarted", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/92e2e19c-f082-4282-9466-355f57c6ae00?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "e057fbd34137dcb63a747e1bc545b423", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "7e48781a-5ae1-4268-b3d0-f949ab3286c5", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 27 Jan 2021 01:17:18 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "13" + }, + "ResponseBody": { + "jobId": "92e2e19c-f082-4282-9466-355f57c6ae00", + "lastUpdateDateTime": "2021-01-27T01:17:15Z", + "createdDateTime": "2021-01-27T01:17:15Z", + "expirationDateTime": "2021-01-28T01:17:15Z", + "status": "notStarted", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/92e2e19c-f082-4282-9466-355f57c6ae00?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "2dc9f6e14c227d66ae6ff775359664e7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "c93063a0-2a96-4433-882d-e26fff3599c0", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 27 Jan 2021 01:17:19 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "13" + }, + "ResponseBody": { + "jobId": "92e2e19c-f082-4282-9466-355f57c6ae00", + "lastUpdateDateTime": "2021-01-27T01:17:15Z", + "createdDateTime": "2021-01-27T01:17:15Z", + "expirationDateTime": "2021-01-28T01:17:15Z", + "status": "notStarted", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/92e2e19c-f082-4282-9466-355f57c6ae00?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "63ce4611f5e00d620cdb6447b8abdfe2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "8f324de2-610e-49c0-895c-ce3b8980c77a", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 27 Jan 2021 01:17:20 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "6" + }, + "ResponseBody": { + "jobId": "92e2e19c-f082-4282-9466-355f57c6ae00", + "lastUpdateDateTime": "2021-01-27T01:17:15Z", + "createdDateTime": "2021-01-27T01:17:15Z", + "expirationDateTime": "2021-01-28T01:17:15Z", + "status": "notStarted", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/92e2e19c-f082-4282-9466-355f57c6ae00?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "710c9fb5a06586a995da31c84941a6a4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "2b3adfad-9e5c-4ade-999b-ca9de9e1e3d7", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 27 Jan 2021 01:17:22 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "431" + }, + "ResponseBody": { + "jobId": "92e2e19c-f082-4282-9466-355f57c6ae00", + "lastUpdateDateTime": "2021-01-27T01:17:21Z", + "createdDateTime": "2021-01-27T01:17:15Z", + "expirationDateTime": "2021-01-28T01:17:15Z", "status": "succeeded", "errors": [], "results": { @@ -1076,6 +1208,6 @@ "Variables": { "RandomSeed": "1964733569", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceTestAsync.json index 2b70b458d0017..4a0dd7a4513fd 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceTestAsync.json @@ -1,21 +1,15 @@ { "Entries": [ { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-e378a10bd4c5644d830ae0c747097d1d-66555824ce934042-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-0ce161650dabe142aee7968964327400-e5253839db43884c-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "99aaf08b1c844fb2d7a9025199ec97e4", "x-ms-return-client-request-id": "true" }, @@ -35,120 +29,72 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "bf7fa95d-3cbf-4d0d-93d1-f542314dd081", - "Date": "Tue, 17 Nov 2020 20:17:43 GMT", - "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2a3901ba-172d-4894-9597-8f300e7cc8be", + "apim-request-id": "35cf5f80-85db-4a7e-b8bb-b855188dd2aa", + "Date": "Wed, 27 Jan 2021 01:18:02 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/6363976a-fe31-4745-a00b-84403077e772", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "107" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "96" }, "ResponseBody": [] }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2a3901ba-172d-4894-9597-8f300e7cc8be?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/6363976a-fe31-4745-a00b-84403077e772?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "a6eb27012d3e0231e64179d6488bf525", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "4e4cca84-09df-4f71-ac0c-547db9859b9c", + "apim-request-id": "4dac8bae-7d3f-428c-8fb9-4a4ecac3d033", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:43 GMT", + "Date": "Wed, 27 Jan 2021 01:18:02 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8" - }, - "ResponseBody": { - "jobId": "2a3901ba-172d-4894-9597-8f300e7cc8be", - "lastUpdateDateTime": "2020-11-17T20:17:43Z", - "createdDateTime": "2020-11-17T20:17:43Z", - "expirationDateTime": "2020-11-18T20:17:43Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2a3901ba-172d-4894-9597-8f300e7cc8be?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "4d12280124119b66ed27d10225884cad", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "c29f4ac1-cde1-429a-b30f-a99981d6ccca", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:44 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", + "x-content-type-options": "nosniff", "x-envoy-upstream-service-time": "9" }, "ResponseBody": { - "jobId": "2a3901ba-172d-4894-9597-8f300e7cc8be", - "lastUpdateDateTime": "2020-11-17T20:17:43Z", - "createdDateTime": "2020-11-17T20:17:43Z", - "expirationDateTime": "2020-11-18T20:17:43Z", + "jobId": "6363976a-fe31-4745-a00b-84403077e772", + "lastUpdateDateTime": "2021-01-27T01:18:02Z", + "createdDateTime": "2021-01-27T01:18:02Z", + "expirationDateTime": "2021-01-28T01:18:02Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2a3901ba-172d-4894-9597-8f300e7cc8be?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/6363976a-fe31-4745-a00b-84403077e772?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "c1281b11742f5d97bfa8b242a2dc074b", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "4d12280124119b66ed27d10225884cad", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "4e75f13e-227f-4463-b2e8-b947178ddcd7", + "apim-request-id": "d233b633-a8dd-4a27-a60e-58fe5517f693", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:45 GMT", + "Date": "Wed, 27 Jan 2021 01:18:03 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "44" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "59" }, "ResponseBody": { - "jobId": "2a3901ba-172d-4894-9597-8f300e7cc8be", - "lastUpdateDateTime": "2020-11-17T20:17:45Z", - "createdDateTime": "2020-11-17T20:17:43Z", - "expirationDateTime": "2020-11-18T20:17:43Z", + "jobId": "6363976a-fe31-4745-a00b-84403077e772", + "lastUpdateDateTime": "2021-01-27T01:18:03Z", + "createdDateTime": "2021-01-27T01:18:02Z", + "expirationDateTime": "2021-01-28T01:18:02Z", "status": "succeeded", "errors": [], "results": { @@ -1112,6 +1058,6 @@ "Variables": { "RandomSeed": "2027271043", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceWithStatisticsTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceWithStatisticsTest.json index 97ae3df643b24..29002254c65f5 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceWithStatisticsTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceWithStatisticsTest.json @@ -1,21 +1,15 @@ { "Entries": [ { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-820d1670fbc3b9449f529347d8ae1c84-29a313a32c740747-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-b4657c408463fd4294aeaee9825f1a0f-803cac89464dad4d-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "87697e405fe3a2c8182b48340c37e5c5", "x-ms-return-client-request-id": "true" }, @@ -35,84 +29,102 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "bd9b5618-19b7-49ff-a1a4-a5e27664185a", - "Date": "Tue, 17 Nov 2020 20:17:21 GMT", - "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/0f1b6376-499b-4a5a-abd3-8a5a0014361e", + "apim-request-id": "0e3e4fb4-fa44-486b-8396-d011005adbce", + "Date": "Wed, 27 Jan 2021 01:17:23 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/84ed13d8-e10e-44d2-b213-a3d1f859fdbd", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "98" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "869" }, "ResponseBody": [] }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/0f1b6376-499b-4a5a-abd3-8a5a0014361e?showStats=true", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/84ed13d8-e10e-44d2-b213-a3d1f859fdbd?showStats=true", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "f1abd77b68195cb092c7f20f1aa7cc84", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "905aea21-8ae7-4bf5-a538-f49ed6618c09", + "apim-request-id": "c85015fc-e77b-4628-ab78-94c4b4c88eb7", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:21 GMT", + "Date": "Wed, 27 Jan 2021 01:17:23 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", + "x-content-type-options": "nosniff", "x-envoy-upstream-service-time": "8" }, "ResponseBody": { - "jobId": "0f1b6376-499b-4a5a-abd3-8a5a0014361e", - "lastUpdateDateTime": "2020-11-17T20:17:21Z", - "createdDateTime": "2020-11-17T20:17:21Z", - "expirationDateTime": "2020-11-18T20:17:21Z", + "jobId": "84ed13d8-e10e-44d2-b213-a3d1f859fdbd", + "lastUpdateDateTime": "2021-01-27T01:17:24Z", + "createdDateTime": "2021-01-27T01:17:23Z", + "expirationDateTime": "2021-01-28T01:17:23Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/0f1b6376-499b-4a5a-abd3-8a5a0014361e?showStats=true", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/84ed13d8-e10e-44d2-b213-a3d1f859fdbd?showStats=true", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "be37acebd508d7a1d3d78987b19e23cf", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "7b90bc3e-33b6-4cc3-8d64-8c18ce13eaf1", + "apim-request-id": "d54e0447-fbc7-47e3-8659-8dfa9d7c9ae7", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:22 GMT", + "Date": "Wed, 27 Jan 2021 01:17:25 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "59" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "8" + }, + "ResponseBody": { + "jobId": "84ed13d8-e10e-44d2-b213-a3d1f859fdbd", + "lastUpdateDateTime": "2021-01-27T01:17:24Z", + "createdDateTime": "2021-01-27T01:17:23Z", + "expirationDateTime": "2021-01-28T01:17:23Z", + "status": "notStarted", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/84ed13d8-e10e-44d2-b213-a3d1f859fdbd?showStats=true", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "b34190e23bc3d86ecd0cf51c6cb88870", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "68bccab3-d2df-48e6-85d0-bea85b4d9bb7", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 27 Jan 2021 01:17:26 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "344" }, "ResponseBody": { - "jobId": "0f1b6376-499b-4a5a-abd3-8a5a0014361e", - "lastUpdateDateTime": "2020-11-17T20:17:22Z", - "createdDateTime": "2020-11-17T20:17:21Z", - "expirationDateTime": "2020-11-18T20:17:21Z", + "jobId": "84ed13d8-e10e-44d2-b213-a3d1f859fdbd", + "lastUpdateDateTime": "2021-01-27T01:17:26Z", + "createdDateTime": "2021-01-27T01:17:23Z", + "expirationDateTime": "2021-01-28T01:17:23Z", "status": "succeeded", "errors": [], "results": { @@ -1090,6 +1102,6 @@ "Variables": { "RandomSeed": "609735027", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceWithStatisticsTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceWithStatisticsTestAsync.json index 9f5fcbd171ab6..bbd4444ae468b 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceWithStatisticsTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceWithStatisticsTestAsync.json @@ -1,21 +1,15 @@ { "Entries": [ { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-f8537121a74ad5429fde7e832852f234-e011b86eb7e6744d-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-a824bb8d05eee940bdc1cd980092c567-fe1d1cd64d88ae4b-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "da8d96a331a03c42a6c41c2d9f512b98", "x-ms-return-client-request-id": "true" }, @@ -35,84 +29,72 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "7d0b3fd6-fb21-4f54-bea8-6bd12f85a090", - "Date": "Tue, 17 Nov 2020 20:17:46 GMT", - "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/bbb94621-6197-42a6-b2d9-fcf7a3b93321", + "apim-request-id": "e829b3b9-4226-459b-97d2-ea0d59c6da8f", + "Date": "Wed, 27 Jan 2021 01:18:03 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/52379cf4-0f0e-40b5-b4aa-4b7613b86c97", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "90" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "95" }, "ResponseBody": [] }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/bbb94621-6197-42a6-b2d9-fcf7a3b93321?showStats=true", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/52379cf4-0f0e-40b5-b4aa-4b7613b86c97?showStats=true", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "a36dbbc9f92b427287ffda298bd01507", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "61921f13-fb74-4a60-bc26-105d1f5bcd79", + "apim-request-id": "20603490-ccdd-4e53-8027-648097872fad", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:46 GMT", + "Date": "Wed, 27 Jan 2021 01:18:04 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "9" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "6" }, "ResponseBody": { - "jobId": "bbb94621-6197-42a6-b2d9-fcf7a3b93321", - "lastUpdateDateTime": "2020-11-17T20:17:46Z", - "createdDateTime": "2020-11-17T20:17:46Z", - "expirationDateTime": "2020-11-18T20:17:46Z", - "status": "notStarted", + "jobId": "52379cf4-0f0e-40b5-b4aa-4b7613b86c97", + "lastUpdateDateTime": "2021-01-27T01:18:04Z", + "createdDateTime": "2021-01-27T01:18:04Z", + "expirationDateTime": "2021-01-28T01:18:04Z", + "status": "running", "errors": [] } }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/bbb94621-6197-42a6-b2d9-fcf7a3b93321?showStats=true", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/52379cf4-0f0e-40b5-b4aa-4b7613b86c97?showStats=true", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "86c4abbaba50d8ace0d0fc3795e01d2c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "f61f505d-0fba-4dcb-81cb-ac11692f0555", + "apim-request-id": "e638ec01-9949-4c3f-8ab6-2f3b5c8d59ee", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:47 GMT", + "Date": "Wed, 27 Jan 2021 01:18:05 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "41" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "54" }, "ResponseBody": { - "jobId": "bbb94621-6197-42a6-b2d9-fcf7a3b93321", - "lastUpdateDateTime": "2020-11-17T20:17:47Z", - "createdDateTime": "2020-11-17T20:17:46Z", - "expirationDateTime": "2020-11-18T20:17:46Z", + "jobId": "52379cf4-0f0e-40b5-b4aa-4b7613b86c97", + "lastUpdateDateTime": "2021-01-27T01:18:04Z", + "createdDateTime": "2021-01-27T01:18:04Z", + "expirationDateTime": "2021-01-28T01:18:04Z", "status": "succeeded", "errors": [], "results": { @@ -1090,6 +1072,6 @@ "Variables": { "RandomSeed": "377463297", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchTest.json index 51d2778c0b3ef..7caa3dc4b76d5 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchTest.json @@ -1,21 +1,15 @@ { "Entries": [ { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-4fb9030fb7690b4c94a47bff1f52e26d-240da57c9617ad46-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-822780699f0d0a4ebf6f88c2beb4d2d0-0b7a4cda0e44af45-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "0d63e53cea7530898179e7904fedbae6", "x-ms-return-client-request-id": "true" }, @@ -35,84 +29,462 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "66c3f9d5-e426-4cf8-8334-12d83a1758f4", - "Date": "Tue, 17 Nov 2020 20:17:22 GMT", - "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/362248b4-c139-42dc-9cf6-def8daf40398", + "apim-request-id": "a6a63b77-1b94-4fb9-82a7-1325342820d2", + "Date": "Wed, 27 Jan 2021 01:17:27 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8f354c47-84bf-400b-9229-e9f7baced53b", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "101" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "85" }, "ResponseBody": [] }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/362248b4-c139-42dc-9cf6-def8daf40398?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8f354c47-84bf-400b-9229-e9f7baced53b?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "7a482533d010f661d7a330e46a9c020c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "1eedc4be-a8d5-47ee-8e82-f68537143b9d", + "apim-request-id": "441ae42b-d4f1-4515-9b5f-96e0cad5f587", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:22 GMT", + "Date": "Wed, 27 Jan 2021 01:17:27 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", + "x-content-type-options": "nosniff", "x-envoy-upstream-service-time": "7" }, "ResponseBody": { - "jobId": "362248b4-c139-42dc-9cf6-def8daf40398", - "lastUpdateDateTime": "2020-11-17T20:17:23Z", - "createdDateTime": "2020-11-17T20:17:23Z", - "expirationDateTime": "2020-11-18T20:17:23Z", + "jobId": "8f354c47-84bf-400b-9229-e9f7baced53b", + "lastUpdateDateTime": "2021-01-27T01:17:27Z", + "createdDateTime": "2021-01-27T01:17:27Z", + "expirationDateTime": "2021-01-28T01:17:27Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/362248b4-c139-42dc-9cf6-def8daf40398?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8f354c47-84bf-400b-9229-e9f7baced53b?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "d4480f3cd87c0175cc930cf584ae8a9b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "95a2ab4f-95ba-4048-87b5-e5e9483174b4", + "apim-request-id": "2f80cb01-bb01-4352-9977-ebd59e154e2e", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:24 GMT", + "Date": "Wed, 27 Jan 2021 01:17:29 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "64" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "9" }, "ResponseBody": { - "jobId": "362248b4-c139-42dc-9cf6-def8daf40398", - "lastUpdateDateTime": "2020-11-17T20:17:23Z", - "createdDateTime": "2020-11-17T20:17:23Z", - "expirationDateTime": "2020-11-18T20:17:23Z", + "jobId": "8f354c47-84bf-400b-9229-e9f7baced53b", + "lastUpdateDateTime": "2021-01-27T01:17:27Z", + "createdDateTime": "2021-01-27T01:17:27Z", + "expirationDateTime": "2021-01-28T01:17:27Z", + "status": "notStarted", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8f354c47-84bf-400b-9229-e9f7baced53b?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "00da5d97d0326c02836c36d1baa4c6e5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "43ffb63a-36bc-460f-9eb6-4f75e9853942", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 27 Jan 2021 01:17:30 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "9" + }, + "ResponseBody": { + "jobId": "8f354c47-84bf-400b-9229-e9f7baced53b", + "lastUpdateDateTime": "2021-01-27T01:17:27Z", + "createdDateTime": "2021-01-27T01:17:27Z", + "expirationDateTime": "2021-01-28T01:17:27Z", + "status": "notStarted", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8f354c47-84bf-400b-9229-e9f7baced53b?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "4053da77e5a55a69b046ae7dc36c7228", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "8c9c9d13-9bd3-46aa-8835-bc123ca8e605", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 27 Jan 2021 01:17:31 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "8" + }, + "ResponseBody": { + "jobId": "8f354c47-84bf-400b-9229-e9f7baced53b", + "lastUpdateDateTime": "2021-01-27T01:17:27Z", + "createdDateTime": "2021-01-27T01:17:27Z", + "expirationDateTime": "2021-01-28T01:17:27Z", + "status": "notStarted", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8f354c47-84bf-400b-9229-e9f7baced53b?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "0d4c941902c16cda0cdb5110a2a34728", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "30f2128c-c756-4058-ab7a-bd6771e13c58", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 27 Jan 2021 01:17:32 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "8" + }, + "ResponseBody": { + "jobId": "8f354c47-84bf-400b-9229-e9f7baced53b", + "lastUpdateDateTime": "2021-01-27T01:17:27Z", + "createdDateTime": "2021-01-27T01:17:27Z", + "expirationDateTime": "2021-01-28T01:17:27Z", + "status": "notStarted", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8f354c47-84bf-400b-9229-e9f7baced53b?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "a97e27cc4a5bb1f5f37f4feb2184a817", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "73ddd322-57de-4e09-be1f-d259e709f815", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 27 Jan 2021 01:17:34 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "5" + }, + "ResponseBody": { + "jobId": "8f354c47-84bf-400b-9229-e9f7baced53b", + "lastUpdateDateTime": "2021-01-27T01:17:27Z", + "createdDateTime": "2021-01-27T01:17:27Z", + "expirationDateTime": "2021-01-28T01:17:27Z", + "status": "notStarted", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8f354c47-84bf-400b-9229-e9f7baced53b?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "25b80df9b857752300e733ca9458b80c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "2dea90ad-5599-4753-9293-6a94bd49be26", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 27 Jan 2021 01:17:35 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "9" + }, + "ResponseBody": { + "jobId": "8f354c47-84bf-400b-9229-e9f7baced53b", + "lastUpdateDateTime": "2021-01-27T01:17:27Z", + "createdDateTime": "2021-01-27T01:17:27Z", + "expirationDateTime": "2021-01-28T01:17:27Z", + "status": "notStarted", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8f354c47-84bf-400b-9229-e9f7baced53b?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "9cb085fec9edcecd9f9b1941b2ef4a88", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "472ea42b-6677-49b1-a962-8b8c09524d95", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 27 Jan 2021 01:17:36 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "9" + }, + "ResponseBody": { + "jobId": "8f354c47-84bf-400b-9229-e9f7baced53b", + "lastUpdateDateTime": "2021-01-27T01:17:27Z", + "createdDateTime": "2021-01-27T01:17:27Z", + "expirationDateTime": "2021-01-28T01:17:27Z", + "status": "notStarted", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8f354c47-84bf-400b-9229-e9f7baced53b?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "94173a3222eb13d00309a873172b1d9a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "7db87919-d427-4321-a9d9-f936aab8626f", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 27 Jan 2021 01:17:37 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "8" + }, + "ResponseBody": { + "jobId": "8f354c47-84bf-400b-9229-e9f7baced53b", + "lastUpdateDateTime": "2021-01-27T01:17:27Z", + "createdDateTime": "2021-01-27T01:17:27Z", + "expirationDateTime": "2021-01-28T01:17:27Z", + "status": "notStarted", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8f354c47-84bf-400b-9229-e9f7baced53b?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "9bec43c70cd4302940e986bc9fe1c211", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "5b0181b2-7a72-4cd4-8646-0bce9f0a3970", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 27 Jan 2021 01:17:38 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "7" + }, + "ResponseBody": { + "jobId": "8f354c47-84bf-400b-9229-e9f7baced53b", + "lastUpdateDateTime": "2021-01-27T01:17:38Z", + "createdDateTime": "2021-01-27T01:17:27Z", + "expirationDateTime": "2021-01-28T01:17:27Z", + "status": "running", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8f354c47-84bf-400b-9229-e9f7baced53b?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "5a97ab9c2341dc20b59c98e42059b773", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "d43cd483-da0a-487f-8a69-b5186307f95c", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 27 Jan 2021 01:17:39 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "9" + }, + "ResponseBody": { + "jobId": "8f354c47-84bf-400b-9229-e9f7baced53b", + "lastUpdateDateTime": "2021-01-27T01:17:38Z", + "createdDateTime": "2021-01-27T01:17:27Z", + "expirationDateTime": "2021-01-28T01:17:27Z", + "status": "running", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8f354c47-84bf-400b-9229-e9f7baced53b?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "6f7a7f7dae0226b310e754029c147421", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "1ab9ef48-d43b-45fa-a9a3-9ce67b601f84", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 27 Jan 2021 01:17:41 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "5" + }, + "ResponseBody": { + "jobId": "8f354c47-84bf-400b-9229-e9f7baced53b", + "lastUpdateDateTime": "2021-01-27T01:17:38Z", + "createdDateTime": "2021-01-27T01:17:27Z", + "expirationDateTime": "2021-01-28T01:17:27Z", + "status": "running", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8f354c47-84bf-400b-9229-e9f7baced53b?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "6cd79746c394a4592210e63773450fe6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "16c593c1-8717-45ce-8208-6d37f36f96e4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 27 Jan 2021 01:17:42 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "8" + }, + "ResponseBody": { + "jobId": "8f354c47-84bf-400b-9229-e9f7baced53b", + "lastUpdateDateTime": "2021-01-27T01:17:38Z", + "createdDateTime": "2021-01-27T01:17:27Z", + "expirationDateTime": "2021-01-28T01:17:27Z", + "status": "running", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8f354c47-84bf-400b-9229-e9f7baced53b?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "203e12325367ed0ef770495ace1e40a0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "4331be56-7b8c-430c-a862-d8d3e0d6bef8", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 27 Jan 2021 01:17:43 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "11" + }, + "ResponseBody": { + "jobId": "8f354c47-84bf-400b-9229-e9f7baced53b", + "lastUpdateDateTime": "2021-01-27T01:17:38Z", + "createdDateTime": "2021-01-27T01:17:27Z", + "expirationDateTime": "2021-01-28T01:17:27Z", + "status": "running", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8f354c47-84bf-400b-9229-e9f7baced53b?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "899e77274a81badf25d54cf2c87bb2cb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "37fabde4-838f-44ce-81da-d7fd12c10b72", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 27 Jan 2021 01:17:44 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "61" + }, + "ResponseBody": { + "jobId": "8f354c47-84bf-400b-9229-e9f7baced53b", + "lastUpdateDateTime": "2021-01-27T01:17:44Z", + "createdDateTime": "2021-01-27T01:17:27Z", + "expirationDateTime": "2021-01-28T01:17:27Z", "status": "succeeded", "errors": [], "results": { @@ -1076,6 +1448,6 @@ "Variables": { "RandomSeed": "894243901", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchTestAsync.json index 4f373637d109a..35d82351798d2 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchTestAsync.json @@ -1,21 +1,15 @@ { "Entries": [ { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-05f41b1b783914489db35780ac4e1eac-fce58d1f3cc89d4c-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-5fbecbed148de94b8217e48126765040-bf7a687b9c20194b-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "17e898e3099143136b2e35c82964efd9", "x-ms-return-client-request-id": "true" }, @@ -35,84 +29,72 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "8087eea0-099a-4cf6-bc28-917ba41d612e", - "Date": "Tue, 17 Nov 2020 20:17:47 GMT", - "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/3fa152cb-6ce3-4f6a-a245-947cc74a5869", + "apim-request-id": "5e793933-ac80-4fd2-bba7-7fce465b63e4", + "Date": "Wed, 27 Jan 2021 01:18:05 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/68ea820c-84ed-4a6a-b71a-fd04db987711", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "87" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "130" }, "ResponseBody": [] }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/3fa152cb-6ce3-4f6a-a245-947cc74a5869?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/68ea820c-84ed-4a6a-b71a-fd04db987711?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "7dd0fa2b947b788e4d51b90a9e064f06", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "c52df40a-dd12-4fd2-9516-84fb47b1ed90", + "apim-request-id": "5fef862b-9a28-4edc-a64c-bb958dcaa264", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:47 GMT", + "Date": "Wed, 27 Jan 2021 01:18:06 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", + "x-content-type-options": "nosniff", "x-envoy-upstream-service-time": "9" }, "ResponseBody": { - "jobId": "3fa152cb-6ce3-4f6a-a245-947cc74a5869", - "lastUpdateDateTime": "2020-11-17T20:17:48Z", - "createdDateTime": "2020-11-17T20:17:48Z", - "expirationDateTime": "2020-11-18T20:17:48Z", + "jobId": "68ea820c-84ed-4a6a-b71a-fd04db987711", + "lastUpdateDateTime": "2021-01-27T01:18:06Z", + "createdDateTime": "2021-01-27T01:18:06Z", + "expirationDateTime": "2021-01-28T01:18:06Z", "status": "running", "errors": [] } }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/3fa152cb-6ce3-4f6a-a245-947cc74a5869?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/68ea820c-84ed-4a6a-b71a-fd04db987711?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "ddd7cae644b1aa3bb79fb4ecc872f743", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "63573006-4315-4971-a57c-ae3446e47bce", + "apim-request-id": "cb28ce96-7538-4ddc-8f9d-1602aa3faac5", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:49 GMT", + "Date": "Wed, 27 Jan 2021 01:18:07 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "39" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "57" }, "ResponseBody": { - "jobId": "3fa152cb-6ce3-4f6a-a245-947cc74a5869", - "lastUpdateDateTime": "2020-11-17T20:17:48Z", - "createdDateTime": "2020-11-17T20:17:48Z", - "expirationDateTime": "2020-11-18T20:17:48Z", + "jobId": "68ea820c-84ed-4a6a-b71a-fd04db987711", + "lastUpdateDateTime": "2021-01-27T01:18:06Z", + "createdDateTime": "2021-01-27T01:18:06Z", + "expirationDateTime": "2021-01-28T01:18:06Z", "status": "succeeded", "errors": [], "results": { @@ -1076,6 +1058,6 @@ "Variables": { "RandomSeed": "1051051872", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithCancellation.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithCancellation.json index 5f8fe1d3ebef5..3a7c83b1def41 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithCancellation.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithCancellation.json @@ -8,8 +8,8 @@ "Content-Length": "1555", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-fe4a69256ca20e4d8e5be111c9b59898-4b073567e45cb94f-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210125.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-d6c95b781431bd40b7f16601bc835b0e-110e9d7798d96a40-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "d6f2d0cc095dc3418ddc67fdaec34f8c", "x-ms-return-client-request-id": "true" }, @@ -69,65 +69,65 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "4ef6323b-4b0f-41ab-8824-f1a6443a96e9", - "Date": "Mon, 25 Jan 2021 21:21:54 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/767c1c2f-b7e9-4d86-9649-d18c783b7981", + "apim-request-id": "eba67060-26cd-41c3-aa25-adacd92b2bcd", + "Date": "Wed, 27 Jan 2021 01:17:45 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/71660150-3199-4651-a221-7289528a6056", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "459" + "x-envoy-upstream-service-time": "176" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/767c1c2f-b7e9-4d86-9649-d18c783b7981", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/71660150-3199-4651-a221-7289528a6056", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210125.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "e1bd0b21afaacf4ed5d58b17e46d5140", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "a6dc1370-39b6-4769-8ac5-196bcfba641a", - "Date": "Mon, 25 Jan 2021 21:21:54 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/767c1c2f-b7e9-4d86-9649-d18c783b7981", + "apim-request-id": "ee6cf94e-a895-4632-9407-c46b5d2a7d9f", + "Date": "Wed, 27 Jan 2021 01:17:45 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/71660150-3199-4651-a221-7289528a6056", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "87" + "x-envoy-upstream-service-time": "19" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/767c1c2f-b7e9-4d86-9649-d18c783b7981?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/71660150-3199-4651-a221-7289528a6056?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210125.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "0b47155e744b34ff8e7def83a29a0d23", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "6625bb2b-e241-4a34-89c5-6da031a5cbe7", + "apim-request-id": "ab2557e0-bccc-4723-9125-d78cc96f412e", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Jan 2021 21:21:54 GMT", + "Date": "Wed, 27 Jan 2021 01:17:45 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "99" + "x-envoy-upstream-service-time": "8" }, "ResponseBody": { - "jobId": "767c1c2f-b7e9-4d86-9649-d18c783b7981", - "lastUpdateDateTime": "2021-01-25T21:21:55Z", - "createdDateTime": "2021-01-25T21:21:54Z", - "expirationDateTime": "2021-01-26T21:21:54Z", + "jobId": "71660150-3199-4651-a221-7289528a6056", + "lastUpdateDateTime": "2021-01-27T01:17:45Z", + "createdDateTime": "2021-01-27T01:17:45Z", + "expirationDateTime": "2021-01-28T01:17:45Z", "status": "cancelled", "errors": [] } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithCancellationAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithCancellationAsync.json index c2a0e3ceef7dc..e950ac5916169 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithCancellationAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithCancellationAsync.json @@ -8,8 +8,8 @@ "Content-Length": "1555", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-7bcbb70e0e9cbb4c9f364cc9834adaa9-77ff086169d2b44a-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210125.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-c934f6c091665141b9eff47e54134be3-0c121e3d41ce9e46-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "174f72762caf768d734c4bc2cef9931d", "x-ms-return-client-request-id": "true" }, @@ -69,65 +69,65 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "6030c1ef-5c9d-4d7e-aff2-264f15c6c0f4", - "Date": "Mon, 25 Jan 2021 21:21:55 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/7229745e-43ed-4502-ad23-1ebd33e9212a", + "apim-request-id": "55b32107-f7de-41c6-bd73-59e9e5480034", + "Date": "Wed, 27 Jan 2021 01:18:07 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2eb1db97-63e5-4097-9efa-f1d8e2c14c57", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "451" + "x-envoy-upstream-service-time": "204" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/7229745e-43ed-4502-ad23-1ebd33e9212a", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2eb1db97-63e5-4097-9efa-f1d8e2c14c57", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210125.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "b4dedd3f6eed1404f274aef6ca46c145", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "85e1a560-71be-4a46-911e-885e05a5f454", - "Date": "Mon, 25 Jan 2021 21:21:56 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/7229745e-43ed-4502-ad23-1ebd33e9212a", + "apim-request-id": "b81142b0-17c7-4e7f-93e5-6e59a2670e05", + "Date": "Wed, 27 Jan 2021 01:18:08 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2eb1db97-63e5-4097-9efa-f1d8e2c14c57", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "61" + "x-envoy-upstream-service-time": "14" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/7229745e-43ed-4502-ad23-1ebd33e9212a?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2eb1db97-63e5-4097-9efa-f1d8e2c14c57?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210125.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "1748fd33d947290e5b3b13a681114adc", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "583f1064-0e45-4634-996a-f8a9e37265c7", + "apim-request-id": "76dfec6a-b10d-4875-877f-79d849daf3f3", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Jan 2021 21:21:56 GMT", + "Date": "Wed, 27 Jan 2021 01:18:08 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "11" + "x-envoy-upstream-service-time": "8" }, "ResponseBody": { - "jobId": "7229745e-43ed-4502-ad23-1ebd33e9212a", - "lastUpdateDateTime": "2021-01-25T21:21:57Z", - "createdDateTime": "2021-01-25T21:21:56Z", - "expirationDateTime": "2021-01-26T21:21:56Z", + "jobId": "2eb1db97-63e5-4097-9efa-f1d8e2c14c57", + "lastUpdateDateTime": "2021-01-27T01:18:08Z", + "createdDateTime": "2021-01-27T01:18:08Z", + "expirationDateTime": "2021-01-28T01:18:08Z", "status": "cancelled", "errors": [] } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithErrorTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithErrorTest.json index 37bbbe0cf003d..52f4ea07addbb 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithErrorTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithErrorTest.json @@ -1,21 +1,15 @@ { "Entries": [ { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Content-Length": "260", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-5b8b45d57fc3fe4b8fbcf6aef4492347-60e6882442630a45-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-d1eafc5ce918094bab685591c392d9fa-4697151a57c7274b-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "ed679d93c08fe171a9b236aaa757046a", "x-ms-return-client-request-id": "true" }, @@ -40,120 +34,72 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "c5f10c46-5981-4387-a80f-8e22dc29cab1", - "Date": "Tue, 17 Nov 2020 20:17:24 GMT", - "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2fb767eb-a81e-4f61-8f75-0d4a0ee5691d", + "apim-request-id": "b0bb126d-a345-41ad-8490-2decf8afbce7", + "Date": "Wed, 27 Jan 2021 01:17:45 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/3692a48d-d9aa-40b3-b925-260149e95f65", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "126" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "121" }, "ResponseBody": [] }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2fb767eb-a81e-4f61-8f75-0d4a0ee5691d?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/3692a48d-d9aa-40b3-b925-260149e95f65?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "8ac7fae8cf64a9249598acb3531ad44c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "52ec23d4-b58a-487c-a840-82fbef19b656", + "apim-request-id": "f2f797c2-e025-480b-97de-236b27735d13", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:24 GMT", + "Date": "Wed, 27 Jan 2021 01:17:46 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8" - }, - "ResponseBody": { - "jobId": "2fb767eb-a81e-4f61-8f75-0d4a0ee5691d", - "lastUpdateDateTime": "2020-11-17T20:17:25Z", - "createdDateTime": "2020-11-17T20:17:25Z", - "expirationDateTime": "2020-11-18T20:17:25Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2fb767eb-a81e-4f61-8f75-0d4a0ee5691d?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "e1e35bcd7fe4ca895c5026b1fcf89877", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "ebfa1a3c-708a-48fe-80a2-4868d2e63267", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:25 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", + "x-content-type-options": "nosniff", "x-envoy-upstream-service-time": "9" }, "ResponseBody": { - "jobId": "2fb767eb-a81e-4f61-8f75-0d4a0ee5691d", - "lastUpdateDateTime": "2020-11-17T20:17:25Z", - "createdDateTime": "2020-11-17T20:17:25Z", - "expirationDateTime": "2020-11-18T20:17:25Z", + "jobId": "3692a48d-d9aa-40b3-b925-260149e95f65", + "lastUpdateDateTime": "2021-01-27T01:17:46Z", + "createdDateTime": "2021-01-27T01:17:46Z", + "expirationDateTime": "2021-01-28T01:17:46Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2fb767eb-a81e-4f61-8f75-0d4a0ee5691d?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/3692a48d-d9aa-40b3-b925-260149e95f65?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "42e053ff1beac39b78bd58f714be8d8f", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "e1e35bcd7fe4ca895c5026b1fcf89877", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "5eda0b83-2f8c-4434-908f-a0530e660163", + "apim-request-id": "93553fcc-47b9-4fb5-ba39-a07b38b10451", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:26 GMT", + "Date": "Wed, 27 Jan 2021 01:17:47 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "69" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "67" }, "ResponseBody": { - "jobId": "2fb767eb-a81e-4f61-8f75-0d4a0ee5691d", - "lastUpdateDateTime": "2020-11-17T20:17:27Z", - "createdDateTime": "2020-11-17T20:17:25Z", - "expirationDateTime": "2020-11-18T20:17:25Z", + "jobId": "3692a48d-d9aa-40b3-b925-260149e95f65", + "lastUpdateDateTime": "2021-01-27T01:17:46Z", + "createdDateTime": "2021-01-27T01:17:46Z", + "expirationDateTime": "2021-01-28T01:17:46Z", "status": "succeeded", "errors": [], "results": { @@ -1129,6 +1075,6 @@ "Variables": { "RandomSeed": "1719176907", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithErrorTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithErrorTestAsync.json index 420147347302a..39ba6b935e986 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithErrorTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithErrorTestAsync.json @@ -1,21 +1,15 @@ { "Entries": [ { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Content-Length": "260", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-0368f13da7cd13459cfdaab50b5b66d9-e31129e5a759704f-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-4c50823c4068cf4aa2e79bd5db9a2457-fe4799e90a86d341-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "4352d8dd6e2ff74a3743e20989f20949", "x-ms-return-client-request-id": "true" }, @@ -40,120 +34,72 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "94825d88-d0d8-48b0-90f2-9b766c6aa7af", - "Date": "Tue, 17 Nov 2020 20:17:49 GMT", - "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/02eb8b31-3b90-4831-9e21-ad2b9507e75b", + "apim-request-id": "13b6bbb3-6685-490e-b1e0-46b0f50d991f", + "Date": "Wed, 27 Jan 2021 01:18:08 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/6784c7ff-5aa2-46af-95bd-d700d34dbc99", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "100" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "94" }, "ResponseBody": [] }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/02eb8b31-3b90-4831-9e21-ad2b9507e75b?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/6784c7ff-5aa2-46af-95bd-d700d34dbc99?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "b850713105701863d1b6a799a800b67b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "c7819c40-9c03-44a2-87c0-7ee28aaf6a86", + "apim-request-id": "a12d1569-0364-4ac8-86f6-9f0cdec93fec", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:49 GMT", + "Date": "Wed, 27 Jan 2021 01:18:08 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", + "x-content-type-options": "nosniff", "x-envoy-upstream-service-time": "9" }, "ResponseBody": { - "jobId": "02eb8b31-3b90-4831-9e21-ad2b9507e75b", - "lastUpdateDateTime": "2020-11-17T20:17:50Z", - "createdDateTime": "2020-11-17T20:17:50Z", - "expirationDateTime": "2020-11-18T20:17:50Z", + "jobId": "6784c7ff-5aa2-46af-95bd-d700d34dbc99", + "lastUpdateDateTime": "2021-01-27T01:18:09Z", + "createdDateTime": "2021-01-27T01:18:09Z", + "expirationDateTime": "2021-01-28T01:18:09Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/02eb8b31-3b90-4831-9e21-ad2b9507e75b?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/6784c7ff-5aa2-46af-95bd-d700d34dbc99?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "7b6997a8eb08a1c0115e8728d43fe710", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "9c59f478-edbb-40c8-9ca0-c0d5bf4aaa5c", + "apim-request-id": "6d063146-16bf-4bc9-83ae-ab9b6a605f6d", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:50 GMT", + "Date": "Wed, 27 Jan 2021 01:18:09 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "7" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "73" }, "ResponseBody": { - "jobId": "02eb8b31-3b90-4831-9e21-ad2b9507e75b", - "lastUpdateDateTime": "2020-11-17T20:17:50Z", - "createdDateTime": "2020-11-17T20:17:50Z", - "expirationDateTime": "2020-11-18T20:17:50Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/02eb8b31-3b90-4831-9e21-ad2b9507e75b?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "c4c517d3dcd1d7de74397279c7b14e37", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "2b18d8e3-6ab9-427a-b382-c034485f0e73", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:51 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "84" - }, - "ResponseBody": { - "jobId": "02eb8b31-3b90-4831-9e21-ad2b9507e75b", - "lastUpdateDateTime": "2020-11-17T20:17:52Z", - "createdDateTime": "2020-11-17T20:17:50Z", - "expirationDateTime": "2020-11-18T20:17:50Z", + "jobId": "6784c7ff-5aa2-46af-95bd-d700d34dbc99", + "lastUpdateDateTime": "2021-01-27T01:18:09Z", + "createdDateTime": "2021-01-27T01:18:09Z", + "expirationDateTime": "2021-01-28T01:18:09Z", "status": "succeeded", "errors": [], "results": { @@ -1129,6 +1075,6 @@ "Variables": { "RandomSeed": "729062063", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithPagination.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithPagination.json index 476cf064b65b3..9c01020d706b6 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithPagination.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithPagination.json @@ -1,21 +1,15 @@ { "Entries": [ { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Content-Length": "1395", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-2dcca0f4273eab408841a8b945efb8d0-5f6dcf46f2900147-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-8234859e43143246b76e843db85b06ec-cd6a53cda7830647-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "3d690e65097214462e3994d44b026896", "x-ms-return-client-request-id": "true" }, @@ -75,156 +69,74 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "905323d2-0148-41fa-a03e-f6bb4f53c37c", - "Date": "Tue, 17 Nov 2020 20:17:28 GMT", - "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/828de621-689c-4434-b72e-3caaaa60d6e5", + "apim-request-id": "5b278b54-100c-4ffb-b71e-c64946af3538", + "Date": "Wed, 27 Jan 2021 01:17:47 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/bb124fb1-b95b-439a-8aa9-7a3e47acdb20", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "273" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "186" }, "ResponseBody": [] }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/828de621-689c-4434-b72e-3caaaa60d6e5?$top=2\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/bb124fb1-b95b-439a-8aa9-7a3e47acdb20?$top=2\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-ebb0ee7a3edb5540a965b687d082b607-240980a5928a144c-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "60014c42eec829d6c5965295103c077f", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "a6efae33-03b0-46d1-9a94-b74fa7d5d6ee", + "apim-request-id": "56119929-1629-4f89-9b8b-8675fd301785", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:28 GMT", + "Date": "Wed, 27 Jan 2021 01:17:48 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8" - }, - "ResponseBody": { - "jobId": "828de621-689c-4434-b72e-3caaaa60d6e5", - "lastUpdateDateTime": "2020-11-17T20:17:28Z", - "createdDateTime": "2020-11-17T20:17:28Z", - "expirationDateTime": "2020-11-18T20:17:28Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/828de621-689c-4434-b72e-3caaaa60d6e5?$top=2\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "e6e71e1943fddaaba6e9191ddcfc8d38", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "dcfb1111-41bf-4280-84e8-21971e251254", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:29 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", + "x-content-type-options": "nosniff", "x-envoy-upstream-service-time": "9" }, "ResponseBody": { - "jobId": "828de621-689c-4434-b72e-3caaaa60d6e5", - "lastUpdateDateTime": "2020-11-17T20:17:28Z", - "createdDateTime": "2020-11-17T20:17:28Z", - "expirationDateTime": "2020-11-18T20:17:28Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/828de621-689c-4434-b72e-3caaaa60d6e5?$top=2\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "6bedcd03a2427620384078dbb7b003f2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "c94b7d03-a988-4a47-804b-a0dabbcb2c22", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:30 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8" - }, - "ResponseBody": { - "jobId": "828de621-689c-4434-b72e-3caaaa60d6e5", - "lastUpdateDateTime": "2020-11-17T20:17:30Z", - "createdDateTime": "2020-11-17T20:17:28Z", - "expirationDateTime": "2020-11-18T20:17:28Z", + "jobId": "bb124fb1-b95b-439a-8aa9-7a3e47acdb20", + "lastUpdateDateTime": "2021-01-27T01:17:48Z", + "createdDateTime": "2021-01-27T01:17:48Z", + "expirationDateTime": "2021-01-28T01:17:48Z", "status": "running", "errors": [] } }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/828de621-689c-4434-b72e-3caaaa60d6e5?$top=2\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/bb124fb1-b95b-439a-8aa9-7a3e47acdb20?$top=2\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "2cba1531821bff99a027b9ded5b94dc9", + "traceparent": "00-ebb0ee7a3edb5540a965b687d082b607-4d9d6ccf13991041-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "e6e71e1943fddaaba6e9191ddcfc8d38", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "ac799a42-e207-4727-aef3-d7d073fad944", + "apim-request-id": "383ae20b-2893-4845-90fa-7b06e31c5e6f", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:31 GMT", + "Date": "Wed, 27 Jan 2021 01:17:49 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "61" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "50" }, "ResponseBody": { - "jobId": "828de621-689c-4434-b72e-3caaaa60d6e5", - "lastUpdateDateTime": "2020-11-17T20:17:31Z", - "createdDateTime": "2020-11-17T20:17:28Z", - "expirationDateTime": "2020-11-18T20:17:28Z", + "jobId": "bb124fb1-b95b-439a-8aa9-7a3e47acdb20", + "lastUpdateDateTime": "2021-01-27T01:17:49Z", + "createdDateTime": "2021-01-27T01:17:48Z", + "expirationDateTime": "2021-01-28T01:17:48Z", "status": "succeeded", "errors": [], "results": { @@ -473,41 +385,36 @@ "errors": [], "modelVersion": "2020-09-03" }, - "@nextLink": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/828de621-689c-4434-b72e-3caaaa60d6e5?$skip=2\u0026$top=2" + "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/bb124fb1-b95b-439a-8aa9-7a3e47acdb20?$skip=2\u0026$top=2" } }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/828de621-689c-4434-b72e-3caaaa60d6e5?$top=2\u0026$skip=2\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/bb124fb1-b95b-439a-8aa9-7a3e47acdb20?$top=2\u0026$skip=2\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "439219099c4e763dfe70aebdcbcf23f6", + "traceparent": "00-9563e084466f0242baae6a8a62395252-9a2ba9e00bc40b48-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "6bedcd03a2427620384078dbb7b003f2", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "14af19a6-08b2-4e39-8461-f4b78e1a586f", + "apim-request-id": "e852f698-8ed3-4aeb-a76d-40fc28abd3b4", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:32 GMT", + "Date": "Wed, 27 Jan 2021 01:17:49 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "54" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "55" }, "ResponseBody": { - "jobId": "828de621-689c-4434-b72e-3caaaa60d6e5", - "lastUpdateDateTime": "2020-11-17T20:17:31Z", - "createdDateTime": "2020-11-17T20:17:28Z", - "expirationDateTime": "2020-11-18T20:17:28Z", + "jobId": "bb124fb1-b95b-439a-8aa9-7a3e47acdb20", + "lastUpdateDateTime": "2021-01-27T01:17:49Z", + "createdDateTime": "2021-01-27T01:17:48Z", + "expirationDateTime": "2021-01-28T01:17:48Z", "status": "succeeded", "errors": [], "results": { @@ -756,41 +663,36 @@ "errors": [], "modelVersion": "2020-09-03" }, - "@nextLink": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/828de621-689c-4434-b72e-3caaaa60d6e5?$skip=4\u0026$top=2" + "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/bb124fb1-b95b-439a-8aa9-7a3e47acdb20?$skip=4\u0026$top=2" } }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/828de621-689c-4434-b72e-3caaaa60d6e5?$top=2\u0026$skip=4\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/bb124fb1-b95b-439a-8aa9-7a3e47acdb20?$top=2\u0026$skip=4\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "c6eb26e66141811d33eeca1ae941a17e", + "traceparent": "00-55aade2af580394e9e5e7e749a0ce7a8-62c3dae9ff9f5c47-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "2cba1531821bff99a027b9ded5b94dc9", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "f3e26ac2-fb54-42c7-a263-858866af9316", + "apim-request-id": "6600b1e9-a4f9-48fa-a1e3-baef2ddc7adf", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:32 GMT", + "Date": "Wed, 27 Jan 2021 01:17:50 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "53" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "545" }, "ResponseBody": { - "jobId": "828de621-689c-4434-b72e-3caaaa60d6e5", - "lastUpdateDateTime": "2020-11-17T20:17:31Z", - "createdDateTime": "2020-11-17T20:17:28Z", - "expirationDateTime": "2020-11-18T20:17:28Z", + "jobId": "bb124fb1-b95b-439a-8aa9-7a3e47acdb20", + "lastUpdateDateTime": "2021-01-27T01:17:49Z", + "createdDateTime": "2021-01-27T01:17:48Z", + "expirationDateTime": "2021-01-28T01:17:48Z", "status": "succeeded", "errors": [], "results": { @@ -1039,41 +941,36 @@ "errors": [], "modelVersion": "2020-09-03" }, - "@nextLink": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/828de621-689c-4434-b72e-3caaaa60d6e5?$skip=6\u0026$top=2" + "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/bb124fb1-b95b-439a-8aa9-7a3e47acdb20?$skip=6\u0026$top=2" } }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/828de621-689c-4434-b72e-3caaaa60d6e5?$top=2\u0026$skip=6\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/bb124fb1-b95b-439a-8aa9-7a3e47acdb20?$top=2\u0026$skip=6\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "9dd2aef2c01e95a3d8442daad3dc33d1", + "traceparent": "00-25b003dffb56cf49bb1c00e6480b4ae9-367419b8f82fd04d-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "439219099c4e763dfe70aebdcbcf23f6", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "c2b61286-ebb1-4d78-b85a-285636c499e1", + "apim-request-id": "c5b47541-7543-4188-b08d-8fdf9e83c89a", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:33 GMT", + "Date": "Wed, 27 Jan 2021 01:17:50 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "60" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "59" }, "ResponseBody": { - "jobId": "828de621-689c-4434-b72e-3caaaa60d6e5", - "lastUpdateDateTime": "2020-11-17T20:17:31Z", - "createdDateTime": "2020-11-17T20:17:28Z", - "expirationDateTime": "2020-11-18T20:17:28Z", + "jobId": "bb124fb1-b95b-439a-8aa9-7a3e47acdb20", + "lastUpdateDateTime": "2021-01-27T01:17:49Z", + "createdDateTime": "2021-01-27T01:17:48Z", + "expirationDateTime": "2021-01-28T01:17:48Z", "status": "succeeded", "errors": [], "results": { @@ -1322,41 +1219,36 @@ "errors": [], "modelVersion": "2020-09-03" }, - "@nextLink": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/828de621-689c-4434-b72e-3caaaa60d6e5?$skip=8\u0026$top=2" + "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/bb124fb1-b95b-439a-8aa9-7a3e47acdb20?$skip=8\u0026$top=2" } }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/828de621-689c-4434-b72e-3caaaa60d6e5?$top=2\u0026$skip=8\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/bb124fb1-b95b-439a-8aa9-7a3e47acdb20?$top=2\u0026$skip=8\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "aef8c20486cda788fc100f60d1228dbd", + "traceparent": "00-075b1b66a0c6ef4a91c5056a2c0b66a1-382695d03c366b4b-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "c6eb26e66141811d33eeca1ae941a17e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "c2a0641a-233e-4fc8-b658-88403206c4f8", + "apim-request-id": "8f65048b-2bb1-48f7-b45b-c42625458ecb", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:33 GMT", + "Date": "Wed, 27 Jan 2021 01:17:51 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "58" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "130" }, "ResponseBody": { - "jobId": "828de621-689c-4434-b72e-3caaaa60d6e5", - "lastUpdateDateTime": "2020-11-17T20:17:31Z", - "createdDateTime": "2020-11-17T20:17:28Z", - "expirationDateTime": "2020-11-18T20:17:28Z", + "jobId": "bb124fb1-b95b-439a-8aa9-7a3e47acdb20", + "lastUpdateDateTime": "2021-01-27T01:17:49Z", + "createdDateTime": "2021-01-27T01:17:48Z", + "expirationDateTime": "2021-01-28T01:17:48Z", "status": "succeeded", "errors": [], "results": { @@ -1611,6 +1503,6 @@ "Variables": { "RandomSeed": "1357450788", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithPaginationAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithPaginationAsync.json index f57c7a18ba7e8..7f3def2d9d4af 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithPaginationAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithPaginationAsync.json @@ -1,21 +1,15 @@ { "Entries": [ { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Content-Length": "1395", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-607bc0a7a208aa41810b58713abb68ea-5d1eba8ac5995640-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-1818a5602c6edd45b4a88cba0cf8840f-461b1ea6e1092a42-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "f142919ab8153bebc5d9f5272ba0209d", "x-ms-return-client-request-id": "true" }, @@ -75,84 +69,74 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "c5358900-0109-40ac-a4e8-78ed8190675d", - "Date": "Tue, 17 Nov 2020 20:17:53 GMT", - "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/dcb89372-7aef-40b9-b879-409253681ed4", + "apim-request-id": "80671448-dd4b-410c-a93c-12fff57885f4", + "Date": "Wed, 27 Jan 2021 01:18:11 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2a838af3-1eae-4880-8a22-388b6c4356e8", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "220" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "240" }, "ResponseBody": [] }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/dcb89372-7aef-40b9-b879-409253681ed4?$top=2\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2a838af3-1eae-4880-8a22-388b6c4356e8?$top=2\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-de4ecdce7625f7409f446f4d353d9110-95c8c00eed30ae46-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "abea9627e0cd843f9974ee5faa963225", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "39e48ba7-59b6-4313-a141-132a29f040ea", + "apim-request-id": "c09c1053-e605-409c-90a3-d1de4a900725", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:53 GMT", + "Date": "Wed, 27 Jan 2021 01:18:11 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "6" }, "ResponseBody": { - "jobId": "dcb89372-7aef-40b9-b879-409253681ed4", - "lastUpdateDateTime": "2020-11-17T20:17:53Z", - "createdDateTime": "2020-11-17T20:17:53Z", - "expirationDateTime": "2020-11-18T20:17:53Z", + "jobId": "2a838af3-1eae-4880-8a22-388b6c4356e8", + "lastUpdateDateTime": "2021-01-27T01:18:11Z", + "createdDateTime": "2021-01-27T01:18:11Z", + "expirationDateTime": "2021-01-28T01:18:11Z", "status": "running", "errors": [] } }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/dcb89372-7aef-40b9-b879-409253681ed4?$top=2\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2a838af3-1eae-4880-8a22-388b6c4356e8?$top=2\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-de4ecdce7625f7409f446f4d353d9110-568e87668bcc3e49-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "29e58cf2b8b376a1d7b53c264371cd5a", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "807c4f12-8cce-4016-85f5-8cfdbd88569e", + "apim-request-id": "fee8b4f1-ffd9-40a4-b95e-78d9a75a0141", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:54 GMT", + "Date": "Wed, 27 Jan 2021 01:18:12 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "68" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "51" }, "ResponseBody": { - "jobId": "dcb89372-7aef-40b9-b879-409253681ed4", - "lastUpdateDateTime": "2020-11-17T20:17:54Z", - "createdDateTime": "2020-11-17T20:17:53Z", - "expirationDateTime": "2020-11-18T20:17:53Z", + "jobId": "2a838af3-1eae-4880-8a22-388b6c4356e8", + "lastUpdateDateTime": "2021-01-27T01:18:12Z", + "createdDateTime": "2021-01-27T01:18:11Z", + "expirationDateTime": "2021-01-28T01:18:11Z", "status": "succeeded", "errors": [], "results": { @@ -401,41 +385,36 @@ "errors": [], "modelVersion": "2020-09-03" }, - "@nextLink": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/dcb89372-7aef-40b9-b879-409253681ed4?$skip=2\u0026$top=2" + "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2a838af3-1eae-4880-8a22-388b6c4356e8?$skip=2\u0026$top=2" } }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/dcb89372-7aef-40b9-b879-409253681ed4?$top=2\u0026$skip=2\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2a838af3-1eae-4880-8a22-388b6c4356e8?$top=2\u0026$skip=2\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-b31ba1dde9704147a3f79e97846206a0-30d9e48a8f810548-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "ebc37c63c42eb92852bd57a0ca8c902e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "64f636d5-dfd2-46c0-9f5c-8e919242953e", + "apim-request-id": "39194090-9742-4e01-bc26-926eef0cf1e7", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:55 GMT", + "Date": "Wed, 27 Jan 2021 01:18:13 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", + "x-content-type-options": "nosniff", "x-envoy-upstream-service-time": "61" }, "ResponseBody": { - "jobId": "dcb89372-7aef-40b9-b879-409253681ed4", - "lastUpdateDateTime": "2020-11-17T20:17:54Z", - "createdDateTime": "2020-11-17T20:17:53Z", - "expirationDateTime": "2020-11-18T20:17:53Z", + "jobId": "2a838af3-1eae-4880-8a22-388b6c4356e8", + "lastUpdateDateTime": "2021-01-27T01:18:12Z", + "createdDateTime": "2021-01-27T01:18:11Z", + "expirationDateTime": "2021-01-28T01:18:11Z", "status": "succeeded", "errors": [], "results": { @@ -684,41 +663,36 @@ "errors": [], "modelVersion": "2020-09-03" }, - "@nextLink": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/dcb89372-7aef-40b9-b879-409253681ed4?$skip=4\u0026$top=2" + "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2a838af3-1eae-4880-8a22-388b6c4356e8?$skip=4\u0026$top=2" } }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/dcb89372-7aef-40b9-b879-409253681ed4?$top=2\u0026$skip=4\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2a838af3-1eae-4880-8a22-388b6c4356e8?$top=2\u0026$skip=4\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-d2adcd81859a3f41a954da02d98c1070-04e2079b19a8b94e-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "9f34cfa6f7bb6feaf474d418a4184128", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "44cb7af7-c55e-4b02-904b-7c197939733f", + "apim-request-id": "ff13dd83-8c1b-4f77-a9c5-ddbb84079104", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:55 GMT", + "Date": "Wed, 27 Jan 2021 01:18:13 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "40" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "67" }, "ResponseBody": { - "jobId": "dcb89372-7aef-40b9-b879-409253681ed4", - "lastUpdateDateTime": "2020-11-17T20:17:54Z", - "createdDateTime": "2020-11-17T20:17:53Z", - "expirationDateTime": "2020-11-18T20:17:53Z", + "jobId": "2a838af3-1eae-4880-8a22-388b6c4356e8", + "lastUpdateDateTime": "2021-01-27T01:18:12Z", + "createdDateTime": "2021-01-27T01:18:11Z", + "expirationDateTime": "2021-01-28T01:18:11Z", "status": "succeeded", "errors": [], "results": { @@ -967,41 +941,36 @@ "errors": [], "modelVersion": "2020-09-03" }, - "@nextLink": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/dcb89372-7aef-40b9-b879-409253681ed4?$skip=6\u0026$top=2" + "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2a838af3-1eae-4880-8a22-388b6c4356e8?$skip=6\u0026$top=2" } }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/dcb89372-7aef-40b9-b879-409253681ed4?$top=2\u0026$skip=6\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2a838af3-1eae-4880-8a22-388b6c4356e8?$top=2\u0026$skip=6\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-bf802641afbe1443835f6d3840683184-873f2e89c1c76243-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "2efb93a746d22ef7642bd7f66001ab4b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "dda4d9ab-f0de-47ca-80fe-e086b9aaaae1", + "apim-request-id": "0e990587-b208-49c2-b526-b3d4f4a5085f", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:55 GMT", + "Date": "Wed, 27 Jan 2021 01:18:13 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "62" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "81" }, "ResponseBody": { - "jobId": "dcb89372-7aef-40b9-b879-409253681ed4", - "lastUpdateDateTime": "2020-11-17T20:17:54Z", - "createdDateTime": "2020-11-17T20:17:53Z", - "expirationDateTime": "2020-11-18T20:17:53Z", + "jobId": "2a838af3-1eae-4880-8a22-388b6c4356e8", + "lastUpdateDateTime": "2021-01-27T01:18:12Z", + "createdDateTime": "2021-01-27T01:18:11Z", + "expirationDateTime": "2021-01-28T01:18:11Z", "status": "succeeded", "errors": [], "results": { @@ -1250,41 +1219,36 @@ "errors": [], "modelVersion": "2020-09-03" }, - "@nextLink": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/dcb89372-7aef-40b9-b879-409253681ed4?$skip=8\u0026$top=2" + "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2a838af3-1eae-4880-8a22-388b6c4356e8?$skip=8\u0026$top=2" } }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/dcb89372-7aef-40b9-b879-409253681ed4?$top=2\u0026$skip=8\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2a838af3-1eae-4880-8a22-388b6c4356e8?$top=2\u0026$skip=8\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-532190e91aae2844b55e60b50dad7584-94da578f274bf64c-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "747f0d242e3c6c9f9253f6b9ef0f1539", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "599abe3b-cc45-4df6-93db-315a8247e24d", + "apim-request-id": "b9b180dc-3059-435f-bf99-9435286625c9", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:56 GMT", + "Date": "Wed, 27 Jan 2021 01:18:14 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "61" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "72" }, "ResponseBody": { - "jobId": "dcb89372-7aef-40b9-b879-409253681ed4", - "lastUpdateDateTime": "2020-11-17T20:17:54Z", - "createdDateTime": "2020-11-17T20:17:53Z", - "expirationDateTime": "2020-11-18T20:17:53Z", + "jobId": "2a838af3-1eae-4880-8a22-388b6c4356e8", + "lastUpdateDateTime": "2021-01-27T01:18:12Z", + "createdDateTime": "2021-01-27T01:18:11Z", + "expirationDateTime": "2021-01-28T01:18:11Z", "status": "succeeded", "errors": [], "results": { @@ -1539,6 +1503,6 @@ "Variables": { "RandomSeed": "386709158", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithStatisticsTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithStatisticsTest.json index cf9d11d442a1b..00e135dc4cc6f 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithStatisticsTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithStatisticsTest.json @@ -1,21 +1,15 @@ { "Entries": [ { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-cb0b72f0f737ad46b488b099de2d5f02-281d591a3652c44a-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-134e503ef0ba0b468ee3ae4d843f903f-29b6b9acc18f4b4a-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "8ec3c90b7880bba55b75abdb84a19321", "x-ms-return-client-request-id": "true" }, @@ -35,84 +29,72 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "afda2f44-d43b-457f-936b-b7b68444a0d9", - "Date": "Tue, 17 Nov 2020 20:17:33 GMT", - "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/9fea5a29-65ef-4c9d-a1c7-a52d290964f9", + "apim-request-id": "94b1f6ba-78ad-4ded-9f32-cf42dda2e37d", + "Date": "Wed, 27 Jan 2021 01:17:51 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8bac188b-871f-42ac-9269-a7ab6c395640", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "96" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "186" }, "ResponseBody": [] }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/9fea5a29-65ef-4c9d-a1c7-a52d290964f9?showStats=true", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8bac188b-871f-42ac-9269-a7ab6c395640?showStats=true", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "56fe48ebb003114e437c6f5c1a23295d", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "f26b44c8-1570-4f34-95eb-1529be62a1fb", + "apim-request-id": "68ab8c1d-48df-4757-8a4e-589fdfe432f8", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:34 GMT", + "Date": "Wed, 27 Jan 2021 01:17:51 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "6" }, "ResponseBody": { - "jobId": "9fea5a29-65ef-4c9d-a1c7-a52d290964f9", - "lastUpdateDateTime": "2020-11-17T20:17:34Z", - "createdDateTime": "2020-11-17T20:17:34Z", - "expirationDateTime": "2020-11-18T20:17:34Z", + "jobId": "8bac188b-871f-42ac-9269-a7ab6c395640", + "lastUpdateDateTime": "2021-01-27T01:17:52Z", + "createdDateTime": "2021-01-27T01:17:52Z", + "expirationDateTime": "2021-01-28T01:17:52Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/9fea5a29-65ef-4c9d-a1c7-a52d290964f9?showStats=true", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8bac188b-871f-42ac-9269-a7ab6c395640?showStats=true", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "e2f12bb5a78a8d006ec8d88886d7049c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "194db38b-1f21-43cb-b8e3-1e2a265e9e77", + "apim-request-id": "b64d4677-15de-485e-89d7-1d8aa0600b06", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:35 GMT", + "Date": "Wed, 27 Jan 2021 01:17:52 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "55" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "53" }, "ResponseBody": { - "jobId": "9fea5a29-65ef-4c9d-a1c7-a52d290964f9", - "lastUpdateDateTime": "2020-11-17T20:17:35Z", - "createdDateTime": "2020-11-17T20:17:34Z", - "expirationDateTime": "2020-11-18T20:17:34Z", + "jobId": "8bac188b-871f-42ac-9269-a7ab6c395640", + "lastUpdateDateTime": "2021-01-27T01:17:53Z", + "createdDateTime": "2021-01-27T01:17:52Z", + "expirationDateTime": "2021-01-28T01:17:52Z", "status": "succeeded", "errors": [], "results": { @@ -1090,6 +1072,6 @@ "Variables": { "RandomSeed": "858087556", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithStatisticsTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithStatisticsTestAsync.json index 3bade03be42e7..22437292abaee 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithStatisticsTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithStatisticsTestAsync.json @@ -1,21 +1,15 @@ { "Entries": [ { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-602b2ed8d3af63489380e207d9991ee2-5459ddb583294a4e-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-25211c69545a6746ab7360505b0e157c-82de3410291ab14b-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "cb820fc464b79dcc9212329646bf509a", "x-ms-return-client-request-id": "true" }, @@ -35,84 +29,102 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "adc15c3a-153a-4cf3-a7b4-8551ba4be5f0", - "Date": "Tue, 17 Nov 2020 20:17:56 GMT", - "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/d8b654cc-f229-4dbd-82af-28622459e1df", + "apim-request-id": "fc1b2d0b-9377-4be0-9b55-af104f20c5e8", + "Date": "Wed, 27 Jan 2021 01:18:14 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c5ab38dc-2eb6-4e37-b11e-a8f990f048fc", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "89" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "116" }, "ResponseBody": [] }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/d8b654cc-f229-4dbd-82af-28622459e1df?showStats=true", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c5ab38dc-2eb6-4e37-b11e-a8f990f048fc?showStats=true", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "08d18cd76fa1ba75ad5e5758b7de00e4", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "835e47aa-338d-478d-ad6f-7cbf8a7a5f86", + "apim-request-id": "f6bf81fd-0cb4-4bef-a0d2-d3bc5644ee96", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:57 GMT", + "Date": "Wed, 27 Jan 2021 01:18:14 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "9" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "8" }, "ResponseBody": { - "jobId": "d8b654cc-f229-4dbd-82af-28622459e1df", - "lastUpdateDateTime": "2020-11-17T20:17:57Z", - "createdDateTime": "2020-11-17T20:17:56Z", - "expirationDateTime": "2020-11-18T20:17:56Z", - "status": "running", + "jobId": "c5ab38dc-2eb6-4e37-b11e-a8f990f048fc", + "lastUpdateDateTime": "2021-01-27T01:18:15Z", + "createdDateTime": "2021-01-27T01:18:14Z", + "expirationDateTime": "2021-01-28T01:18:14Z", + "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/d8b654cc-f229-4dbd-82af-28622459e1df?showStats=true", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c5ab38dc-2eb6-4e37-b11e-a8f990f048fc?showStats=true", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "2ac480b3f6758c758bf3f8f60a589915", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "a1d8a604-d619-4cb8-a707-9058753142d3", + "apim-request-id": "523d1800-dcc8-406c-8d1a-5b460a0b827f", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 27 Jan 2021 01:18:15 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "9" + }, + "ResponseBody": { + "jobId": "c5ab38dc-2eb6-4e37-b11e-a8f990f048fc", + "lastUpdateDateTime": "2021-01-27T01:18:15Z", + "createdDateTime": "2021-01-27T01:18:14Z", + "expirationDateTime": "2021-01-28T01:18:14Z", + "status": "notStarted", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c5ab38dc-2eb6-4e37-b11e-a8f990f048fc?showStats=true", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "4456bc1eb361546e99c71e580d73e5b3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "db437561-859f-4062-a77a-0a793dcfaa76", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:58 GMT", + "Date": "Wed, 27 Jan 2021 01:18:17 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "61" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "66" }, "ResponseBody": { - "jobId": "d8b654cc-f229-4dbd-82af-28622459e1df", - "lastUpdateDateTime": "2020-11-17T20:17:57Z", - "createdDateTime": "2020-11-17T20:17:56Z", - "expirationDateTime": "2020-11-18T20:17:56Z", + "jobId": "c5ab38dc-2eb6-4e37-b11e-a8f990f048fc", + "lastUpdateDateTime": "2021-01-27T01:18:16Z", + "createdDateTime": "2021-01-27T01:18:14Z", + "expirationDateTime": "2021-01-28T01:18:14Z", "status": "succeeded", "errors": [], "results": { @@ -1090,6 +1102,6 @@ "Variables": { "RandomSeed": "1450670554", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesTest.json index 92fe79ec6adc5..dd39264d25770 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesTest.json @@ -1,21 +1,15 @@ { "Entries": [ { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Content-Length": "100", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-7d83b3ff7afff74d8646a40f3a9773bb-75577e8f2adc544c-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-d45af49652d74b48928e76d19d916a09-d2159c12af317147-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "e51cbf87a321df02032925de5e6708b4", "x-ms-return-client-request-id": "true" }, @@ -30,84 +24,72 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "3ebc853f-1e23-4fac-9805-ab8f7ece142b", - "Date": "Tue, 17 Nov 2020 20:17:35 GMT", - "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/970738c7-50b4-4b04-806a-5e05c01ba70f", + "apim-request-id": "1adaefdb-c485-47bb-8c53-7f8405733072", + "Date": "Wed, 27 Jan 2021 01:17:54 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/a976624f-41ff-4de5-b561-9c6d379c1420", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "69" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "81" }, "ResponseBody": [] }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/970738c7-50b4-4b04-806a-5e05c01ba70f?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/a976624f-41ff-4de5-b561-9c6d379c1420?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "2cdb69530701f208f175aa6a97e2593b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "4b91b2da-980d-48ba-b3fd-680b8e10d8f7", + "apim-request-id": "e6b5f243-92b0-4346-a3ca-3aadc1b52b18", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:35 GMT", + "Date": "Wed, 27 Jan 2021 01:17:54 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", + "x-content-type-options": "nosniff", "x-envoy-upstream-service-time": "8" }, "ResponseBody": { - "jobId": "970738c7-50b4-4b04-806a-5e05c01ba70f", - "lastUpdateDateTime": "2020-11-17T20:17:36Z", - "createdDateTime": "2020-11-17T20:17:36Z", - "expirationDateTime": "2020-11-18T20:17:36Z", - "status": "notStarted", + "jobId": "a976624f-41ff-4de5-b561-9c6d379c1420", + "lastUpdateDateTime": "2021-01-27T01:17:54Z", + "createdDateTime": "2021-01-27T01:17:54Z", + "expirationDateTime": "2021-01-28T01:17:54Z", + "status": "running", "errors": [] } }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/970738c7-50b4-4b04-806a-5e05c01ba70f?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/a976624f-41ff-4de5-b561-9c6d379c1420?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "a701cb20bb11a529608aebe12f36a48e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "496f7a26-757f-4d47-96c9-b39dd77dfc28", + "apim-request-id": "6745d906-ee37-413e-8ad2-22184cc27a2e", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:36 GMT", + "Date": "Wed, 27 Jan 2021 01:17:55 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "42" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "43" }, "ResponseBody": { - "jobId": "970738c7-50b4-4b04-806a-5e05c01ba70f", - "lastUpdateDateTime": "2020-11-17T20:17:37Z", - "createdDateTime": "2020-11-17T20:17:36Z", - "expirationDateTime": "2020-11-18T20:17:36Z", + "jobId": "a976624f-41ff-4de5-b561-9c6d379c1420", + "lastUpdateDateTime": "2021-01-27T01:17:54Z", + "createdDateTime": "2021-01-27T01:17:54Z", + "expirationDateTime": "2021-01-28T01:17:54Z", "status": "succeeded", "errors": [], "results": { @@ -288,6 +270,6 @@ "Variables": { "RandomSeed": "1686725774", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesTestAsync.json index f456d4b3de42c..e63fa664c2947 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesTestAsync.json @@ -1,21 +1,15 @@ { "Entries": [ { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Content-Length": "100", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-e5a4811315d9ac458320de27ff359ca5-038f3624c8c5b245-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-03f45010e7001244aa2b00705b0fc56f-5a153de9115cea4b-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "acdb13842ca5b9295fa84adf0c4870a8", "x-ms-return-client-request-id": "true" }, @@ -30,120 +24,72 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "12c1243f-92ad-4c7f-b481-1a74aa2310a5", - "Date": "Tue, 17 Nov 2020 20:17:58 GMT", - "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/438b8056-a2b2-4122-b554-92ddd20bf4cd", + "apim-request-id": "2b61dd75-9eb8-48b6-9a9d-872e0a3a2933", + "Date": "Wed, 27 Jan 2021 01:18:17 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/7d1b014e-96e6-49b0-b0b2-d350898b3657", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "77" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "99" }, "ResponseBody": [] }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/438b8056-a2b2-4122-b554-92ddd20bf4cd?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/7d1b014e-96e6-49b0-b0b2-d350898b3657?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "1181511460ff1ed085a4ba80632c2cfd", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "baf7113b-79a6-429c-9229-820419698c27", + "apim-request-id": "647c09b0-935e-4fa2-bbac-4d6388c83089", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:58 GMT", + "Date": "Wed, 27 Jan 2021 01:18:17 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "6" }, "ResponseBody": { - "jobId": "438b8056-a2b2-4122-b554-92ddd20bf4cd", - "lastUpdateDateTime": "2020-11-17T20:17:58Z", - "createdDateTime": "2020-11-17T20:17:58Z", - "expirationDateTime": "2020-11-18T20:17:58Z", + "jobId": "7d1b014e-96e6-49b0-b0b2-d350898b3657", + "lastUpdateDateTime": "2021-01-27T01:18:18Z", + "createdDateTime": "2021-01-27T01:18:18Z", + "expirationDateTime": "2021-01-28T01:18:18Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/438b8056-a2b2-4122-b554-92ddd20bf4cd?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/7d1b014e-96e6-49b0-b0b2-d350898b3657?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "d0605b7dc709a544ca5e0c1b0401dc1e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "d027eaed-0b6c-4468-8fbf-3ff4d24be74f", + "apim-request-id": "0bb88141-ae99-4a4f-907b-af4b85a1e589", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:59 GMT", + "Date": "Wed, 27 Jan 2021 01:18:18 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "10" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "41" }, "ResponseBody": { - "jobId": "438b8056-a2b2-4122-b554-92ddd20bf4cd", - "lastUpdateDateTime": "2020-11-17T20:18:00Z", - "createdDateTime": "2020-11-17T20:17:58Z", - "expirationDateTime": "2020-11-18T20:17:58Z", - "status": "running", - "errors": [] - } - }, - { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/438b8056-a2b2-4122-b554-92ddd20bf4cd?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "b5e59345e53b24c743bd270071a85633", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d2e9e5f5-5a76-4f03-aad3-aed1c8c851b2", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:18:00 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "32" - }, - "ResponseBody": { - "jobId": "438b8056-a2b2-4122-b554-92ddd20bf4cd", - "lastUpdateDateTime": "2020-11-17T20:18:00Z", - "createdDateTime": "2020-11-17T20:17:58Z", - "expirationDateTime": "2020-11-18T20:17:58Z", + "jobId": "7d1b014e-96e6-49b0-b0b2-d350898b3657", + "lastUpdateDateTime": "2021-01-27T01:18:18Z", + "createdDateTime": "2021-01-27T01:18:18Z", + "expirationDateTime": "2021-01-28T01:18:18Z", "status": "succeeded", "errors": [], "results": { @@ -324,6 +270,6 @@ "Variables": { "RandomSeed": "1184190609", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithLanguageTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithLanguageTest.json index 06805f2a2c6ac..bef6110fddbd6 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithLanguageTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithLanguageTest.json @@ -1,21 +1,15 @@ { "Entries": [ { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Content-Length": "100", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-36cfc969bf6a294796db3cb15203a604-89e222e418939149-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-ac17d41d36af67498b2b44a21f405e85-a98b17ae0ba3e242-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "0e649e128b084513c9c62e584c5f813b", "x-ms-return-client-request-id": "true" }, @@ -30,84 +24,72 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "38c00f76-81ce-4583-87df-3d387c5eb35b", - "Date": "Tue, 17 Nov 2020 20:17:37 GMT", - "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/4a6dd64f-c7d5-4282-95fa-c825c6f17899", + "apim-request-id": "8d8b7ab3-a0c1-4dee-a9a6-e45ace113091", + "Date": "Wed, 27 Jan 2021 01:17:56 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/ebd8a601-c3a7-49d9-95ef-3613b476acbf", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "78" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "133" }, "ResponseBody": [] }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/4a6dd64f-c7d5-4282-95fa-c825c6f17899?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/ebd8a601-c3a7-49d9-95ef-3613b476acbf?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "796705c1528f3adf8bba34f0a8f2bd37", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "aad0caa3-cf62-4233-b820-78bbfc7078bc", + "apim-request-id": "3525c400-ec57-427c-a3f0-48fe4b78010a", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:37 GMT", + "Date": "Wed, 27 Jan 2021 01:17:56 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "9" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "6" }, "ResponseBody": { - "jobId": "4a6dd64f-c7d5-4282-95fa-c825c6f17899", - "lastUpdateDateTime": "2020-11-17T20:17:37Z", - "createdDateTime": "2020-11-17T20:17:37Z", - "expirationDateTime": "2020-11-18T20:17:37Z", - "status": "notStarted", + "jobId": "ebd8a601-c3a7-49d9-95ef-3613b476acbf", + "lastUpdateDateTime": "2021-01-27T01:17:56Z", + "createdDateTime": "2021-01-27T01:17:56Z", + "expirationDateTime": "2021-01-28T01:17:56Z", + "status": "running", "errors": [] } }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/4a6dd64f-c7d5-4282-95fa-c825c6f17899?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/ebd8a601-c3a7-49d9-95ef-3613b476acbf?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "740ea8ad2ce006c130b149d1ae645358", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "e5539721-c70f-43ce-a7a6-e2d7d75126fe", + "apim-request-id": "19866876-89b4-491a-8f3c-fbc2970afd08", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:39 GMT", + "Date": "Wed, 27 Jan 2021 01:17:57 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "50" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "39" }, "ResponseBody": { - "jobId": "4a6dd64f-c7d5-4282-95fa-c825c6f17899", - "lastUpdateDateTime": "2020-11-17T20:17:38Z", - "createdDateTime": "2020-11-17T20:17:37Z", - "expirationDateTime": "2020-11-18T20:17:37Z", + "jobId": "ebd8a601-c3a7-49d9-95ef-3613b476acbf", + "lastUpdateDateTime": "2021-01-27T01:17:56Z", + "createdDateTime": "2021-01-27T01:17:56Z", + "expirationDateTime": "2021-01-28T01:17:56Z", "status": "succeeded", "errors": [], "results": { @@ -288,6 +270,6 @@ "Variables": { "RandomSeed": "1940196881", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithLanguageTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithLanguageTestAsync.json index 44a91c2273118..3aab04b198915 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithLanguageTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithLanguageTestAsync.json @@ -1,21 +1,15 @@ { "Entries": [ { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Content-Length": "100", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-99228a8ee4d9cc488f6e34bc8987592a-9923de0f474bf643-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-b9b5ec91e284564b92d4dc6268504c89-9f020f9c8ae3fd43-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "ac50657e0564f29f4cf677ed0a13f18a", "x-ms-return-client-request-id": "true" }, @@ -30,84 +24,102 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "656324cd-2d1e-442d-9868-c7a8bfdd3e6c", - "Date": "Tue, 17 Nov 2020 20:18:01 GMT", - "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c5509402-2dd7-446d-b06b-0a4c18b1121e", + "apim-request-id": "cccdd2da-f324-4979-a031-bac344669e39", + "Date": "Wed, 27 Jan 2021 01:18:19 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/7a083530-8f70-4901-957d-d1bf35439a15", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "70" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "156" }, "ResponseBody": [] }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c5509402-2dd7-446d-b06b-0a4c18b1121e?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/7a083530-8f70-4901-957d-d1bf35439a15?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "ee06e8ec9851bf144fa0b3348eac9147", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "80aa3164-ca18-445a-87c4-02c589e46445", + "apim-request-id": "8627f9a4-f347-44d7-b044-53811cb6032e", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:18:01 GMT", + "Date": "Wed, 27 Jan 2021 01:18:19 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "9" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "10" }, "ResponseBody": { - "jobId": "c5509402-2dd7-446d-b06b-0a4c18b1121e", - "lastUpdateDateTime": "2020-11-17T20:18:01Z", - "createdDateTime": "2020-11-17T20:18:01Z", - "expirationDateTime": "2020-11-18T20:18:01Z", + "jobId": "7a083530-8f70-4901-957d-d1bf35439a15", + "lastUpdateDateTime": "2021-01-27T01:18:20Z", + "createdDateTime": "2021-01-27T01:18:20Z", + "expirationDateTime": "2021-01-28T01:18:20Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c5509402-2dd7-446d-b06b-0a4c18b1121e?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/7a083530-8f70-4901-957d-d1bf35439a15?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "c56f00a8f06aed051c550a52700d0abf", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "44af406a-5ab5-4d04-a332-7498a53767fe", + "apim-request-id": "445466ad-6d11-4cfd-b9b7-63cc3221ec33", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:18:02 GMT", + "Date": "Wed, 27 Jan 2021 01:18:21 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "69" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "8" }, "ResponseBody": { - "jobId": "c5509402-2dd7-446d-b06b-0a4c18b1121e", - "lastUpdateDateTime": "2020-11-17T20:18:02Z", - "createdDateTime": "2020-11-17T20:18:01Z", - "expirationDateTime": "2020-11-18T20:18:01Z", + "jobId": "7a083530-8f70-4901-957d-d1bf35439a15", + "lastUpdateDateTime": "2021-01-27T01:18:21Z", + "createdDateTime": "2021-01-27T01:18:20Z", + "expirationDateTime": "2021-01-28T01:18:20Z", + "status": "running", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/7a083530-8f70-4901-957d-d1bf35439a15?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "c9cabda7fe2ee58e51915dc3526b639f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "72034f11-6a88-470b-aef3-d49d9f763f71", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 27 Jan 2021 01:18:22 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "68" + }, + "ResponseBody": { + "jobId": "7a083530-8f70-4901-957d-d1bf35439a15", + "lastUpdateDateTime": "2021-01-27T01:18:21Z", + "createdDateTime": "2021-01-27T01:18:20Z", + "expirationDateTime": "2021-01-28T01:18:20Z", "status": "succeeded", "errors": [], "results": { @@ -288,6 +300,6 @@ "Variables": { "RandomSeed": "330150674", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithSkipParameter.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithSkipParameter.json index ce04a1b3075ab..ee7177b57c556 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithSkipParameter.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithSkipParameter.json @@ -1,21 +1,15 @@ { "Entries": [ { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-835ca07a1f6c854d90cee53817174c75-7c84577713198947-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-71ded06a22022e4fb36d16a71dd0c428-32b5d9abf5b8494f-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "e5bbee521fd95f6f85d46045340cc5e0", "x-ms-return-client-request-id": "true" }, @@ -35,84 +29,72 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "899e90f1-f7e4-4661-8987-c7b513bfb215", - "Date": "Tue, 17 Nov 2020 20:17:39 GMT", - "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/ae7852a7-abb0-428f-97fa-3534f4c6be36", + "apim-request-id": "06d899be-5474-469d-b574-c15a1b8524ae", + "Date": "Wed, 27 Jan 2021 01:17:58 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/ed4834d2-7697-4545-a55d-6d7dfd6c31a5", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "93" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "87" }, "ResponseBody": [] }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/ae7852a7-abb0-428f-97fa-3534f4c6be36?$skip=1\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/ed4834d2-7697-4545-a55d-6d7dfd6c31a5?$skip=1\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "cb3ef020b17077b8ee6ec139b3f21813", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "d2ef618d-aebd-4a4a-a655-1fa52e190d1c", + "apim-request-id": "474e6ef9-9cff-4cb9-80d6-6f8ee04df1a6", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:39 GMT", + "Date": "Wed, 27 Jan 2021 01:17:58 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "9" }, "ResponseBody": { - "jobId": "ae7852a7-abb0-428f-97fa-3534f4c6be36", - "lastUpdateDateTime": "2020-11-17T20:17:39Z", - "createdDateTime": "2020-11-17T20:17:39Z", - "expirationDateTime": "2020-11-18T20:17:39Z", - "status": "notStarted", + "jobId": "ed4834d2-7697-4545-a55d-6d7dfd6c31a5", + "lastUpdateDateTime": "2021-01-27T01:17:58Z", + "createdDateTime": "2021-01-27T01:17:58Z", + "expirationDateTime": "2021-01-28T01:17:58Z", + "status": "running", "errors": [] } }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/ae7852a7-abb0-428f-97fa-3534f4c6be36?$skip=1\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/ed4834d2-7697-4545-a55d-6d7dfd6c31a5?$skip=1\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "beccfc644b839adbc9a8ce8f926f328c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "a568563c-be35-4841-b7fd-8a9c8f7d0a87", + "apim-request-id": "29ffbd3d-4a83-4d1f-8781-e56635623826", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:40 GMT", + "Date": "Wed, 27 Jan 2021 01:17:59 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "44" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "46" }, "ResponseBody": { - "jobId": "ae7852a7-abb0-428f-97fa-3534f4c6be36", - "lastUpdateDateTime": "2020-11-17T20:17:40Z", - "createdDateTime": "2020-11-17T20:17:39Z", - "expirationDateTime": "2020-11-18T20:17:39Z", + "jobId": "ed4834d2-7697-4545-a55d-6d7dfd6c31a5", + "lastUpdateDateTime": "2021-01-27T01:17:58Z", + "createdDateTime": "2021-01-27T01:17:58Z", + "expirationDateTime": "2021-01-28T01:17:58Z", "status": "succeeded", "errors": [], "results": { @@ -910,6 +892,6 @@ "Variables": { "RandomSeed": "900872338", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithSkipParameterAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithSkipParameterAsync.json index 2c80aee94c676..da28b1b74609b 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithSkipParameterAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithSkipParameterAsync.json @@ -1,21 +1,15 @@ { "Entries": [ { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-51417cebb732f041aae3fd6629760b9f-b532a00a7940684b-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-adfbc5174316ea4eb3039e09eda29f12-1b1b8585fdb9cd4e-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "9e757d2d83ce1123a7e23fad5376473f", "x-ms-return-client-request-id": "true" }, @@ -35,120 +29,72 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "0e245385-bf5f-4786-af97-619eaf455fcf", - "Date": "Tue, 17 Nov 2020 20:18:03 GMT", - "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8da09cb2-5c3b-4082-857e-e6e042c74ebc", + "apim-request-id": "eb3d1ab8-f2a4-4919-9693-aa8718df901b", + "Date": "Wed, 27 Jan 2021 01:18:23 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/08e26f2b-c5ab-45cd-8f04-3f6487a559cd", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "92" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "98" }, "ResponseBody": [] }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8da09cb2-5c3b-4082-857e-e6e042c74ebc?$skip=1\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/08e26f2b-c5ab-45cd-8f04-3f6487a559cd?$skip=1\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "68a7733fd31f0864ffb638781102da48", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "eb516f73-1c8e-4292-91f9-12a4ecae291d", + "apim-request-id": "741228d5-49ba-4069-8a4a-c42b1f24df47", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:18:03 GMT", + "Date": "Wed, 27 Jan 2021 01:18:23 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "9" - }, - "ResponseBody": { - "jobId": "8da09cb2-5c3b-4082-857e-e6e042c74ebc", - "lastUpdateDateTime": "2020-11-17T20:18:03Z", - "createdDateTime": "2020-11-17T20:18:03Z", - "expirationDateTime": "2020-11-18T20:18:03Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8da09cb2-5c3b-4082-857e-e6e042c74ebc?$skip=1\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "39eac04aaed6996e7ea6b9f62c4a8897", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "875d762e-fd4e-48ac-b3a9-cbb909786f25", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:18:04 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", + "x-content-type-options": "nosniff", "x-envoy-upstream-service-time": "8" }, "ResponseBody": { - "jobId": "8da09cb2-5c3b-4082-857e-e6e042c74ebc", - "lastUpdateDateTime": "2020-11-17T20:18:03Z", - "createdDateTime": "2020-11-17T20:18:03Z", - "expirationDateTime": "2020-11-18T20:18:03Z", - "status": "notStarted", + "jobId": "08e26f2b-c5ab-45cd-8f04-3f6487a559cd", + "lastUpdateDateTime": "2021-01-27T01:18:23Z", + "createdDateTime": "2021-01-27T01:18:23Z", + "expirationDateTime": "2021-01-28T01:18:23Z", + "status": "running", "errors": [] } }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8da09cb2-5c3b-4082-857e-e6e042c74ebc?$skip=1\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/08e26f2b-c5ab-45cd-8f04-3f6487a559cd?$skip=1\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "eaa1ba814c8b59b1196c9f174baaffa5", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "39eac04aaed6996e7ea6b9f62c4a8897", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "0a8a7b59-8aec-4d64-9072-9e8963ba9816", + "apim-request-id": "3615a7f8-b410-4a27-8d81-96885308e02e", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:18:05 GMT", + "Date": "Wed, 27 Jan 2021 01:18:24 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "49" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "45" }, "ResponseBody": { - "jobId": "8da09cb2-5c3b-4082-857e-e6e042c74ebc", - "lastUpdateDateTime": "2020-11-17T20:18:05Z", - "createdDateTime": "2020-11-17T20:18:03Z", - "expirationDateTime": "2020-11-18T20:18:03Z", + "jobId": "08e26f2b-c5ab-45cd-8f04-3f6487a559cd", + "lastUpdateDateTime": "2021-01-27T01:18:23Z", + "createdDateTime": "2021-01-27T01:18:23Z", + "expirationDateTime": "2021-01-28T01:18:23Z", "status": "succeeded", "errors": [], "results": { @@ -946,6 +892,6 @@ "Variables": { "RandomSeed": "448859439", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithTopParameter.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithTopParameter.json index 671208807c3c1..076634a6e9176 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithTopParameter.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithTopParameter.json @@ -1,21 +1,15 @@ { "Entries": [ { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-a5d188d6be4c56459dc4295f082149ba-06c979a38b63aa49-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-09a47334a2563c44b9e6f10eb8dc6a4c-48689b5b4ef7e44a-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "8efbb01e5acc858dcd1ff153470e4093", "x-ms-return-client-request-id": "true" }, @@ -35,84 +29,72 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "0d9495bb-a756-4f93-99c7-0d34356d7079", - "Date": "Tue, 17 Nov 2020 20:17:41 GMT", - "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/ff9a49c9-ab18-4f9d-8582-4a648ef21779", + "apim-request-id": "e12863de-40e4-4a5b-a103-0b6aad2c0c63", + "Date": "Wed, 27 Jan 2021 01:18:00 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8d7c2fb1-6ad0-4649-8fde-278b2837bff2", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "103" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "108" }, "ResponseBody": [] }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/ff9a49c9-ab18-4f9d-8582-4a648ef21779?$top=1\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8d7c2fb1-6ad0-4649-8fde-278b2837bff2?$top=1\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "2660bb690f1e14745ff6a5df3888e782", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "6212bebf-3e21-4549-9d4f-87a68a9efedf", + "apim-request-id": "ac33c7be-86a6-4f28-9915-1db41064a0b0", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:41 GMT", + "Date": "Wed, 27 Jan 2021 01:18:00 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "5" }, "ResponseBody": { - "jobId": "ff9a49c9-ab18-4f9d-8582-4a648ef21779", - "lastUpdateDateTime": "2020-11-17T20:17:41Z", - "createdDateTime": "2020-11-17T20:17:41Z", - "expirationDateTime": "2020-11-18T20:17:41Z", + "jobId": "8d7c2fb1-6ad0-4649-8fde-278b2837bff2", + "lastUpdateDateTime": "2021-01-27T01:18:00Z", + "createdDateTime": "2021-01-27T01:18:00Z", + "expirationDateTime": "2021-01-28T01:18:00Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/ff9a49c9-ab18-4f9d-8582-4a648ef21779?$top=1\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8d7c2fb1-6ad0-4649-8fde-278b2837bff2?$top=1\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "4c0a13cbdad64cf8d7c97184a7f98e05", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "629a2cc8-fc42-4ede-8797-964086c19816", + "apim-request-id": "6d718607-ec5e-411e-bab2-674d9763db0c", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:42 GMT", + "Date": "Wed, 27 Jan 2021 01:18:01 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "65" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "42" }, "ResponseBody": { - "jobId": "ff9a49c9-ab18-4f9d-8582-4a648ef21779", - "lastUpdateDateTime": "2020-11-17T20:17:42Z", - "createdDateTime": "2020-11-17T20:17:41Z", - "expirationDateTime": "2020-11-18T20:17:41Z", + "jobId": "8d7c2fb1-6ad0-4649-8fde-278b2837bff2", + "lastUpdateDateTime": "2021-01-27T01:18:01Z", + "createdDateTime": "2021-01-27T01:18:00Z", + "expirationDateTime": "2021-01-28T01:18:00Z", "status": "succeeded", "errors": [], "results": { @@ -287,13 +269,13 @@ "errors": [], "modelVersion": "2020-09-03" }, - "@nextLink": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/ff9a49c9-ab18-4f9d-8582-4a648ef21779?$skip=1\u0026$top=1" + "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8d7c2fb1-6ad0-4649-8fde-278b2837bff2?$skip=1\u0026$top=1" } } ], "Variables": { "RandomSeed": "1474656437", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithTopParameterAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithTopParameterAsync.json index fbaad6c902f23..29b7471773bf1 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithTopParameterAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithTopParameterAsync.json @@ -1,21 +1,15 @@ { "Entries": [ { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-0b22aeee30fbfe4fa9f98fa85c31cbdb-8655d085fc074f42-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-769e1b75aafc9942a073abc428518c2a-d6f96db461d06640-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "724372daad48480e76510121b5839b2e", "x-ms-return-client-request-id": "true" }, @@ -35,84 +29,102 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "27196e4a-c609-4a0b-99c2-3de38564fe6c", - "Date": "Tue, 17 Nov 2020 20:18:05 GMT", - "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/1e11eb94-911f-44c6-a50c-767fe44c7ae0", + "apim-request-id": "b13f9689-4340-47e3-a18a-872d3c9dce0d", + "Date": "Wed, 27 Jan 2021 01:18:26 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/7ce1802c-95d6-4443-9b16-f8b9d4944f44", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "109" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "1578" }, "ResponseBody": [] }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/1e11eb94-911f-44c6-a50c-767fe44c7ae0?$top=1\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/7ce1802c-95d6-4443-9b16-f8b9d4944f44?$top=1\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "934d972f1ac830d592026d8c2beeac11", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "ba43e48e-6dc8-464b-aa0e-aded5d7a8d11", + "apim-request-id": "7481cc1b-7ccc-4908-9c8f-f57c746ac5d2", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:18:06 GMT", + "Date": "Wed, 27 Jan 2021 01:18:26 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", + "x-content-type-options": "nosniff", "x-envoy-upstream-service-time": "8" }, "ResponseBody": { - "jobId": "1e11eb94-911f-44c6-a50c-767fe44c7ae0", - "lastUpdateDateTime": "2020-11-17T20:18:06Z", - "createdDateTime": "2020-11-17T20:18:06Z", - "expirationDateTime": "2020-11-18T20:18:06Z", + "jobId": "7ce1802c-95d6-4443-9b16-f8b9d4944f44", + "lastUpdateDateTime": "2021-01-27T01:18:26Z", + "createdDateTime": "2021-01-27T01:18:25Z", + "expirationDateTime": "2021-01-28T01:18:25Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/1e11eb94-911f-44c6-a50c-767fe44c7ae0?$top=1\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/7ce1802c-95d6-4443-9b16-f8b9d4944f44?$top=1\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "ceb201b6e72887166038d111abceeca7", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "a780e6f6-195b-4db1-ba95-db5eae13e086", + "apim-request-id": "d2fdf480-8d83-42a0-9492-faa7c0732c69", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:18:07 GMT", + "Date": "Wed, 27 Jan 2021 01:18:27 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "51" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "9" }, "ResponseBody": { - "jobId": "1e11eb94-911f-44c6-a50c-767fe44c7ae0", - "lastUpdateDateTime": "2020-11-17T20:18:07Z", - "createdDateTime": "2020-11-17T20:18:06Z", - "expirationDateTime": "2020-11-18T20:18:06Z", + "jobId": "7ce1802c-95d6-4443-9b16-f8b9d4944f44", + "lastUpdateDateTime": "2021-01-27T01:18:26Z", + "createdDateTime": "2021-01-27T01:18:25Z", + "expirationDateTime": "2021-01-28T01:18:25Z", + "status": "notStarted", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/7ce1802c-95d6-4443-9b16-f8b9d4944f44?$top=1\u0026showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "9e71f8d80ef6c0f19d12df4640821c87", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "ea86a6b7-3273-4971-a6ac-3096f0fcc1ac", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 27 Jan 2021 01:18:28 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "38" + }, + "ResponseBody": { + "jobId": "7ce1802c-95d6-4443-9b16-f8b9d4944f44", + "lastUpdateDateTime": "2021-01-27T01:18:28Z", + "createdDateTime": "2021-01-27T01:18:25Z", + "expirationDateTime": "2021-01-28T01:18:25Z", "status": "succeeded", "errors": [], "results": { @@ -287,13 +299,13 @@ "errors": [], "modelVersion": "2020-09-03" }, - "@nextLink": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/1e11eb94-911f-44c6-a50c-767fe44c7ae0?$skip=1\u0026$top=1" + "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/7ce1802c-95d6-4443-9b16-f8b9d4944f44?$skip=1\u0026$top=1" } } ], "Variables": { "RandomSeed": "554796851", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" } } \ No newline at end of file From 952eb2859327041688a96c43ffa29b2c43f90c3e Mon Sep 17 00:00:00 2001 From: Suhas Mehta Date: Fri, 29 Jan 2021 10:40:44 -0800 Subject: [PATCH 04/12] addressed comments --- .../Azure.AI.TextAnalytics/README.md | 29 +- .../Azure.AI.TextAnalytics.netstandard2.0.cs | 16 +- .../Sample_RecognizeHealthcareEntities.md | 61 +- .../src/AnalyzeHealthcareEntitiesResult.cs | 34 +- .../src/EntityDataSource.cs | 2 +- .../src/HealthcareEntity.cs | 87 +- .../src/HealthcareEntityRelationType.cs | 58 +- .../src/TextAnalyticsClient.cs | 122 +-- .../Azure.AI.TextAnalytics/src/Transforms.cs | 75 +- .../tests/RecognizeHealthcareEntitiesTests.cs | 49 +- ...ealthcareEntitiesBatchConvenienceTest.json | 186 +--- ...careEntitiesBatchConvenienceTestAsync.json | 60 +- ...iesBatchConvenienceWithStatisticsTest.json | 80 +- ...tchConvenienceWithStatisticsTestAsync.json | 110 ++- .../RecognizeHealthcareEntitiesBatchTest.json | 424 +------- ...gnizeHealthcareEntitiesBatchTestAsync.json | 108 ++- ...althcareEntitiesBatchWithCancellation.json | 42 +- ...areEntitiesBatchWithCancellationAsync.json | 42 +- ...eHealthcareEntitiesBatchWithErrorTest.json | 258 ++++- ...thcareEntitiesBatchWithErrorTestAsync.json | 106 +- ...HealthcareEntitiesBatchWithPagination.json | 241 +++-- ...hcareEntitiesBatchWithPaginationAsync.json | 243 +++-- ...thcareEntitiesBatchWithStatisticsTest.json | 50 +- ...eEntitiesBatchWithStatisticsTestAsync.json | 66 +- .../RecognizeHealthcareEntitiesTest.json | 904 +++++++++++++++++- .../RecognizeHealthcareEntitiesTestAsync.json | 900 ++++++++++++++++- ...izeHealthcareEntitiesWithLanguageTest.json | 80 +- ...althcareEntitiesWithLanguageTestAsync.json | 76 +- ...zeHealthcareEntitiesWithSkipParameter.json | 48 +- ...lthcareEntitiesWithSkipParameterAsync.json | 80 +- ...izeHealthcareEntitiesWithTopParameter.json | 110 ++- ...althcareEntitiesWithTopParameterAsync.json | 82 +- .../tests/samples/Sample_Healthcare.cs | 68 -- .../tests/samples/Sample_HealthcareAsync.cs | 69 -- ...Sample_HealthcareAsync_AutomaticPolling.cs | 7 +- .../Sample_HealthcareAsync_Cancellation.cs | 3 +- .../Sample_HealthcareAsync_ManualPolling.cs | 7 +- .../Sample_HealthcareAsync_Pagination.cs | 3 +- .../tests/samples/Sample_HealthcareBatch.cs | 5 +- .../samples/Sample_HealthcareBatchAsync.cs | 6 +- .../Sample_HealthcareBatchConvenience.cs | 5 +- .../Sample_HealthcareBatchConvenienceAsync.cs | 6 +- .../samples/Sample_Healthcare_Cancellation.cs | 4 +- 43 files changed, 3305 insertions(+), 1707 deletions(-) delete mode 100644 sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_Healthcare.cs delete mode 100644 sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync.cs diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/README.md b/sdk/textanalytics/Azure.AI.TextAnalytics/README.md index 7991bfb118fd5..f67b99c0d5999 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/README.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/README.md @@ -411,7 +411,7 @@ catch (RequestFailedException exception) ### Recognize Healthcare Entities Asynchronously Text Analytics for health is a containerized service that extracts and labels relevant medical information from unstructured texts such as doctor's notes, discharge summaries, clinical documents, and electronic health records. For more information see [How to: Use Text Analytics for health][healthcare]. -```C# Snippet:RecognizeHealthcareEntitiesAsync +```C# Snippet:TextAnalyticsSampleHealthcareBatchAsync string document = @"RECORD #333582770390100 | MH | 85986313 | | 054351 | 2/14/2001 12:00:00 AM | CORONARY ARTERY DISEASE | Signed | DIS | \ Admission Date: 5/22/2001 Report Status: Signed Discharge Date: 4/24/2001 ADMISSION DIAGNOSIS: CORONARY ARTERY DISEASE. \ HISTORY OF PRESENT ILLNESS: The patient is a 54-year-old gentleman with a history of progressive angina over the past several months. \ @@ -422,7 +422,20 @@ Text Analytics for health is a containerized service that extracts and labels re minimal ST depressions in the anterior lateral leads , thought due to fatigue and wrist pain , his anginal equivalent. Due to the patient's \ increased symptoms and family history and history left main disease with total occasional of his RCA was referred for revascularization with open heart surgery."; - AnalyzeHealthcareEntitiesOperation healthOperation = await client.StartHealthcareAsync(document); + List batchInput = new List() + { + document, + document, + }; + + AnalyzeHealthcareEntitiesOptions options = new AnalyzeHealthcareEntitiesOptions() + { + Top = 1, + Skip = 0, + IncludeStatistics = true + }; + + AnalyzeHealthcareEntitiesOperation healthOperation = await client.StartAnalyzeHealthcareEntitiesAsync(batchInput, "en", options); await healthOperation.WaitForCompletionAsync(); @@ -445,12 +458,22 @@ Text Analytics for health is a containerized service that extracts and labels re foreach (EntityDataSource entityDataSource in entity.DataSources) { - Console.WriteLine($" ID: {entityDataSource.EntityId}"); + Console.WriteLine($" Entity ID in Data Source: {entityDataSource.EntityId}"); Console.WriteLine($" DataSource: {entityDataSource.Name}"); } } + + Console.WriteLine($" Document statistics:"); + Console.WriteLine($" Character count (in Unicode graphemes): {result.Statistics.CharacterCount}"); + Console.WriteLine($" Transaction count: {result.Statistics.TransactionCount}"); Console.WriteLine(""); } + Console.WriteLine($"Request statistics:"); + Console.WriteLine($" Document Count: {results.Statistics.DocumentCount}"); + Console.WriteLine($" Valid Document Count: {results.Statistics.ValidDocumentCount}"); + Console.WriteLine($" Transaction Count: {results.Statistics.TransactionCount}"); + Console.WriteLine($" Invalid Document Count: {results.Statistics.InvalidDocumentCount}"); + Console.WriteLine(""); } ``` diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/api/Azure.AI.TextAnalytics.netstandard2.0.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/api/Azure.AI.TextAnalytics.netstandard2.0.cs index 9794804794f4e..6956bda19a534 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/api/Azure.AI.TextAnalytics.netstandard2.0.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/api/Azure.AI.TextAnalytics.netstandard2.0.cs @@ -29,7 +29,7 @@ public partial class AnalyzeHealthcareEntitiesResult : Azure.AI.TextAnalytics.Te { internal AnalyzeHealthcareEntitiesResult() { } public System.Collections.Generic.IReadOnlyCollection Entities { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Warnings { get { throw null; } } + public System.Collections.Generic.IReadOnlyCollection Warnings { get { throw null; } } } public partial class AnalyzeHealthcareEntitiesResultCollection : System.Collections.ObjectModel.ReadOnlyCollection { @@ -259,8 +259,8 @@ internal HealthcareEntityRelationType() { } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } public static bool operator ==(Azure.AI.TextAnalytics.HealthcareEntityRelationType left, Azure.AI.TextAnalytics.HealthcareEntityRelationType right) { throw null; } - public static explicit operator string (Azure.AI.TextAnalytics.HealthcareEntityRelationType category) { throw null; } - public static implicit operator Azure.AI.TextAnalytics.HealthcareEntityRelationType (string category) { throw null; } + public static explicit operator string (Azure.AI.TextAnalytics.HealthcareEntityRelationType relationtype) { throw null; } + public static implicit operator Azure.AI.TextAnalytics.HealthcareEntityRelationType (string relationtype) { throw null; } public static bool operator !=(Azure.AI.TextAnalytics.HealthcareEntityRelationType left, Azure.AI.TextAnalytics.HealthcareEntityRelationType right) { throw null; } public override string ToString() { throw null; } } @@ -534,16 +534,14 @@ public TextAnalyticsClient(System.Uri endpoint, Azure.Core.TokenCredential crede public virtual Azure.Response RecognizePiiEntitiesBatch(System.Collections.Generic.IEnumerable documents, string language = null, Azure.AI.TextAnalytics.RecognizePiiEntitiesOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> RecognizePiiEntitiesBatchAsync(System.Collections.Generic.IEnumerable documents, Azure.AI.TextAnalytics.RecognizePiiEntitiesOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> RecognizePiiEntitiesBatchAsync(System.Collections.Generic.IEnumerable documents, string language = null, Azure.AI.TextAnalytics.RecognizePiiEntitiesOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOperation StartAnalyzeHealthcareEntities(System.Collections.Generic.IEnumerable documents, Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOperation StartAnalyzeHealthcareEntities(System.Collections.Generic.IEnumerable documents, string language = null, Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task StartAnalyzeHealthcareEntitiesAsync(System.Collections.Generic.IEnumerable documents, Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task StartAnalyzeHealthcareEntitiesAsync(System.Collections.Generic.IEnumerable documents, string language = null, Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AI.TextAnalytics.AnalyzeOperation StartAnalyzeOperationBatch(System.Collections.Generic.IEnumerable documents, Azure.AI.TextAnalytics.AnalyzeOperationOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AI.TextAnalytics.AnalyzeOperation StartAnalyzeOperationBatch(System.Collections.Generic.IEnumerable documents, Azure.AI.TextAnalytics.AnalyzeOperationOptions options, string language = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task StartAnalyzeOperationBatchAsync(System.Collections.Generic.IEnumerable documents, Azure.AI.TextAnalytics.AnalyzeOperationOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task StartAnalyzeOperationBatchAsync(System.Collections.Generic.IEnumerable documents, Azure.AI.TextAnalytics.AnalyzeOperationOptions options, string language = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOperation StartHealthcare(string document, string language = null, Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task StartHealthcareAsync(string document, string language = null, Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOperation StartHealthcareBatch(System.Collections.Generic.IEnumerable documents, Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOperation StartHealthcareBatch(System.Collections.Generic.IEnumerable documents, string language = null, Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task StartHealthcareBatchAsync(System.Collections.Generic.IEnumerable documents, Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task StartHealthcareBatchAsync(System.Collections.Generic.IEnumerable documents, string language = null, Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override string ToString() { throw null; } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_RecognizeHealthcareEntities.md b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_RecognizeHealthcareEntities.md index 2f69cf6cd8bb4..4e0216732ebe8 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_RecognizeHealthcareEntities.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_RecognizeHealthcareEntities.md @@ -17,7 +17,7 @@ var client = new TextAnalyticsClient(new Uri(endpoint), new AzureKeyCredential(a To recognize healthcare entities in a document, use the `StarthealthcareAsyc` method. The returned type is a Long Running operation of type `HealthcareOperation` which polls for the results from the API. -```C# Snippet:RecognizeHealthcareEntities +```C# Snippet:TextAnalyticsSampleHealthcareBatchAsync string document = @"RECORD #333582770390100 | MH | 85986313 | | 054351 | 2/14/2001 12:00:00 AM | CORONARY ARTERY DISEASE | Signed | DIS | \ Admission Date: 5/22/2001 Report Status: Signed Discharge Date: 4/24/2001 ADMISSION DIAGNOSIS: CORONARY ARTERY DISEASE. \ HISTORY OF PRESENT ILLNESS: The patient is a 54-year-old gentleman with a history of progressive angina over the past several months. \ @@ -28,35 +28,58 @@ To recognize healthcare entities in a document, use the `StarthealthcareAsyc` me minimal ST depressions in the anterior lateral leads , thought due to fatigue and wrist pain , his anginal equivalent. Due to the patient's \ increased symptoms and family history and history left main disease with total occasional of his RCA was referred for revascularization with open heart surgery."; - AnalyzeHealthcareEntitiesOperation healthOperation = client.StartHealthcare(document); + List batchInput = new List() + { + document, + document, + }; + + AnalyzeHealthcareEntitiesOptions options = new AnalyzeHealthcareEntitiesOptions() + { + Top = 1, + Skip = 0, + IncludeStatistics = true + }; + + AnalyzeHealthcareEntitiesOperation healthOperation = await client.StartAnalyzeHealthcareEntitiesAsync(batchInput, "en", options); await healthOperation.WaitForCompletionAsync(); AnalyzeHealthcareEntitiesResultCollection results = healthOperation.Value; - Console.WriteLine($"Results of Azure Text Analytics \"Healthcare\" Model, version: \"{results.ModelVersion}\""); + Console.WriteLine($"Results of Azure Text Analytics \"Healthcare Async\" Model, version: \"{results.ModelVersion}\""); Console.WriteLine(""); foreach (AnalyzeHealthcareEntitiesResult result in results) { - Console.WriteLine($" Recognized the following {result.Entities.Count} healthcare entities:"); + Console.WriteLine($" Recognized the following {result.Entities.Count} healthcare entities:"); - foreach (HealthcareEntity entity in result.Entities) + foreach (HealthcareEntity entity in result.Entities) + { + Console.WriteLine($" Entity: {entity.Text}"); + Console.WriteLine($" Category: {entity.Category}"); + Console.WriteLine($" Offset: {entity.Offset}"); + Console.WriteLine($" Length: {entity.Length}"); + Console.WriteLine($" Links:"); + + foreach (EntityDataSource entityDataSource in entity.DataSources) { - Console.WriteLine($" Entity: {entity.Text}"); - Console.WriteLine($" Category: {entity.Category}"); - Console.WriteLine($" Offset: {entity.Offset}"); - Console.WriteLine($" Length: {entity.Length}"); - Console.WriteLine($" Links:"); - - foreach (EntityDataSource entityDataSource in entity.DataSources) - { - Console.WriteLine($" ID: {entityDataSource.EntityId}"); - Console.WriteLine($" DataSource: {entityDataSource.Name}"); - } + Console.WriteLine($" Entity ID in Data Source: {entityDataSource.EntityId}"); + Console.WriteLine($" DataSource: {entityDataSource.Name}"); } - Console.WriteLine(""); + } + + Console.WriteLine($" Document statistics:"); + Console.WriteLine($" Character count (in Unicode graphemes): {result.Statistics.CharacterCount}"); + Console.WriteLine($" Transaction count: {result.Statistics.TransactionCount}"); + Console.WriteLine(""); } + Console.WriteLine($"Request statistics:"); + Console.WriteLine($" Document Count: {results.Statistics.DocumentCount}"); + Console.WriteLine($" Valid Document Count: {results.Statistics.ValidDocumentCount}"); + Console.WriteLine($" Transaction Count: {results.Statistics.TransactionCount}"); + Console.WriteLine($" Invalid Document Count: {results.Statistics.InvalidDocumentCount}"); + Console.WriteLine(""); } ``` @@ -80,7 +103,7 @@ To recognize healthcare entities in multiple documents, call `StartHealthcareBat document, }; - AnalyzeHealthcareEntitiesOperation healthOperation = await client.StartHealthcareBatchAsync(batchInput, "en"); + AnalyzeHealthcareEntitiesOperation healthOperation = await client.StartAnalyzeHealthcareEntitiesAsync(batchInput, "en"); await healthOperation.WaitForCompletionAsync(); @@ -103,7 +126,7 @@ To recognize healthcare entities in multiple documents, call `StartHealthcareBat foreach (EntityDataSource entityDataSource in entity.DataSources) { - Console.WriteLine($" ID: {entityDataSource.EntityId}"); + Console.WriteLine($" Entity ID in Data Source: {entityDataSource.EntityId}"); Console.WriteLine($" DataSource: {entityDataSource.Name}"); } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesResult.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesResult.cs index 1a5ba66ae74b5..b5b82e9ee5780 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesResult.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesResult.cs @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System; using System.Collections.Generic; using Azure.AI.TextAnalytics.Models; @@ -11,22 +12,37 @@ namespace Azure.AI.TextAnalytics /// public partial class AnalyzeHealthcareEntitiesResult : TextAnalyticsResult { + private readonly IReadOnlyCollection _entities; + internal AnalyzeHealthcareEntitiesResult(string id, TextDocumentStatistics statistics, - IReadOnlyList healthcareEntities, - IReadOnlyList healthcareRelations, - IReadOnlyList warnings) + IReadOnlyList healthcareEntities, + IReadOnlyList warnings) : base(id, statistics) { - Entities = Transforms.ConvertToHealthcareEntityCollection(healthcareEntities, healthcareRelations); - Warnings = Transforms.ConvertToWarnings(warnings); + _entities = healthcareEntities; + Warnings = warnings; } internal AnalyzeHealthcareEntitiesResult(string id, TextAnalyticsError error) : base(id, error) { } - /// Healthcare entities. - public IReadOnlyCollection Entities { get; } - /// Warnings encountered while processing document. - public IReadOnlyList Warnings { get; } = new List(); + public IReadOnlyCollection Warnings { get; } = new List(); + + /// + /// Gets the collection of healthcare entities in the document. + /// + public IReadOnlyCollection Entities + { + get + { + if (HasError) + { +#pragma warning disable CA1065 // Do not raise exceptions in unexpected locations + throw new InvalidOperationException($"Cannot access result for document {Id}, due to error {Error.ErrorCode}: {Error.Message}"); +#pragma warning restore CA1065 // Do not raise exceptions in unexpected locations + } + return _entities; + } + } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/EntityDataSource.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/EntityDataSource.cs index 5fcf7dba9ee3f..9abc15b2ff980 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/EntityDataSource.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/EntityDataSource.cs @@ -6,7 +6,7 @@ namespace Azure.AI.TextAnalytics { /// - /// HealthcareEntityLink. + /// EntityDataSource. /// [CodeGenModel("HealthcareEntityLink")] public partial class EntityDataSource diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntity.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntity.cs index 74ca32417ba99..534d844723d38 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntity.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntity.cs @@ -6,7 +6,6 @@ using System.Globalization; using System.Linq; using System.Text.RegularExpressions; -using Azure.AI.TextAnalytics.Models; namespace Azure.AI.TextAnalytics { @@ -15,7 +14,7 @@ namespace Azure.AI.TextAnalytics /// public class HealthcareEntity { - internal HealthcareEntity(HealthcareEntityInternal entity, IEnumerable healthcareEntities = default, IEnumerable healthcareRelations = default) + internal HealthcareEntity(HealthcareEntityInternal entity, IReadOnlyDictionary relatedEntities) { Category = entity.Category; Text = entity.Text; @@ -23,76 +22,8 @@ internal HealthcareEntity(HealthcareEntityInternal entity, IEnumerable ResolveRelatedEntities(HealthcareEntityInternal entity, - IEnumerable healthcareEntities, - IEnumerable healthcareRelations) - { - Dictionary dictionary = new Dictionary(); - - if (healthcareRelations == null) - { - return dictionary; - } - - foreach (HealthcareRelationInternal relation in healthcareRelations) - { - int entityIndex = healthcareEntities.ToList().FindIndex(e => e.Text.Equals(entity.Text)); - - if (IsEntitySource(relation, entityIndex)) - { - string targetRef = relation.Target; - - HealthcareEntityInternal relatedEntity = ResolveHealthcareEntity(healthcareEntities, targetRef); - - dictionary.Add(new HealthcareEntity(relatedEntity, healthcareEntities, healthcareRelations), relation.RelationType); - } - } - - return dictionary; - } - - internal static HealthcareEntityInternal ResolveHealthcareEntity(IEnumerable entities, string reference) - { - var healthcareEntityMatch = _healthcareEntityRegex.Match(reference); - if (healthcareEntityMatch.Success) - { - int entityIndex = int.Parse(healthcareEntityMatch.Groups["entityIndex"].Value, CultureInfo.InvariantCulture); - - if (entityIndex < entities.Count()) - { - return entities.ElementAt(entityIndex); - } - } - - throw new InvalidOperationException($"Failed to parse element reference: {reference}"); - } - - private static Regex _healthcareEntityRegex = new Regex(@"\#/results/documents\/(?\d*)\/entities\/(?\d*)$", RegexOptions.Compiled, TimeSpan.FromSeconds(2)); - - private static bool IsEntitySource(HealthcareRelationInternal healthcareRelation, int entityIndex) - { - string sourceRef = healthcareRelation.Source; - - var healthcareEntityMatch = _healthcareEntityRegex.Match(sourceRef); - - if (healthcareEntityMatch.Success) - { - int index = int.Parse(healthcareEntityMatch.Groups["entityIndex"].Value, CultureInfo.InvariantCulture); - - if (index == entityIndex) - { - return true; - } - } - return false; - } - /// /// Gets the entity text as it appears in the input document. /// @@ -100,18 +31,18 @@ private static bool IsEntitySource(HealthcareRelationInternal healthcareRelation /// /// Gets the entity category inferred by the Text Analytics service's - /// named entity recognition model. The list of available categories is + /// healthcare model. The list of available categories is /// described at - /// . + /// . /// public string Category { get; } /// /// Gets the sub category of the entity inferred by the Text Analytics service's - /// named entity recognition model. This property may not have a value if + /// healthcare model. This property may not have a value if /// a sub category doesn't exist for this entity. The list of available categories and /// subcategories is described at - /// . + /// . /// public string SubCategory { get; } @@ -127,17 +58,17 @@ private static bool IsEntitySource(HealthcareRelationInternal healthcareRelation public int Offset { get; } /// - /// . + /// Gets the length of input document. /// public int Length { get; } /// - /// . + /// Get the list of data sources for the entity. /// public IReadOnlyCollection DataSources { get; } /// - /// . + /// Gets the dictionary for related entity with mapped relation type for each. /// public IReadOnlyDictionary RelatedEntities { get; } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntityRelationType.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntityRelationType.cs index 39773ff7fe3e7..216b4ec1ba5de 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntityRelationType.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntityRelationType.cs @@ -13,68 +13,68 @@ namespace Azure.AI.TextAnalytics public class HealthcareEntityRelationType : IEquatable { /// - /// Specifies that the entity corresponds to a Person. + /// Specifies the relation type of DirectionOfBodyStructure. /// public static readonly HealthcareEntityRelationType DirectionOfBodyStructure = new HealthcareEntityRelationType("DirectionOfBodyStructure"); /// - /// Specifies that the entity corresponds to a job type or role held by a person. + /// Specifies the relation type of DirectionOfExamination. /// public static readonly HealthcareEntityRelationType DirectionOfExamination = new HealthcareEntityRelationType("DirectionOfExamination"); /// - /// RelationOfExamination + /// Specifies the relation type of RelationOfExamination. /// public static readonly HealthcareEntityRelationType RelationOfExamination = new HealthcareEntityRelationType("RelationOfExamination"); /// - /// TimeOfExamination + /// Specifies the relation type of TimeOfExamination. /// public static readonly HealthcareEntityRelationType TimeOfExamination = new HealthcareEntityRelationType("TimeOfExamination"); private readonly string _value; - private HealthcareEntityRelationType(string category) + private HealthcareEntityRelationType(string relationtype) { - Argument.AssertNotNull(category, nameof(category)); - _value = category; + Argument.AssertNotNull(relationtype, nameof(relationtype)); + _value = relationtype; } /// - /// Defines implicit conversion from string to EntityCategory. + /// Defines implicit conversion from string to HealthcareEntityRelationType. /// - /// string to convert. - /// The string as an EntityCategory. - public static implicit operator HealthcareEntityRelationType(string category) => new HealthcareEntityRelationType(category); + /// string to convert. + /// The string as an HealthcareEntityRelationType. + public static implicit operator HealthcareEntityRelationType(string relationtype) => new HealthcareEntityRelationType(relationtype); /// - /// Defines explicit conversion from EntityCategory to string. + /// Defines explicit conversion from HealthcareEntityRelationType to string. /// - /// EntityCategory to convert. - /// The EntityCategory as a string. - public static explicit operator string(HealthcareEntityRelationType category) => category._value; + /// HealthcareEntityRelationType to convert. + /// The HealthcareEntityRelationType as a string. + public static explicit operator string(HealthcareEntityRelationType relationtype) => relationtype._value; /// - /// Compares two EntityCategory values for equality. + /// Compares two HealthcareEntityRelationType values for equality. /// - /// The first EntityCategory to compare. - /// The second EntityCategory to compare. - /// true if the EntityCategory objects are equal or are both null; false otherwise. + /// The first HealthcareEntityRelationType to compare. + /// The second HealthcareEntityRelationType to compare. + /// true if the HealthcareEntityRelationType objects are equal or are both null; false otherwise. public static bool operator ==(HealthcareEntityRelationType left, HealthcareEntityRelationType right) => Equals(left, right); /// - /// Compares two EntityCategory values for inequality. + /// Compares two HealthcareEntityRelationType values for inequality. /// - /// The first EntityCategory to compare. - /// The second EntityCategory to compare. - /// true if the EntityCategory objects are not equal; false otherwise. + /// The first HealthcareEntityRelationType to compare. + /// The second HealthcareEntityRelationType to compare. + /// true if the HealthcareEntityRelationType objects are not equal; false otherwise. public static bool operator !=(HealthcareEntityRelationType left, HealthcareEntityRelationType right) => !Equals(left, right); /// - /// Compares the EntityCategory for equality with another EntityCategory. + /// Compares the HealthcareEntityRelationType for equality with another HealthcareEntityRelationType. /// - /// The EntityCategory with which to compare. - /// true if the EntityCategory objects are equal; otherwise, false. + /// The HealthcareEntityRelationType with which to compare. + /// true if the HealthcareEntityRelationType objects are equal; otherwise, false. public bool Equals(HealthcareEntityRelationType other) => _value == other._value; /// @@ -83,7 +83,7 @@ private HealthcareEntityRelationType(string category) /// The object to compare with the current object. /// true if the specified object is equal to the current object; otherwise, false. [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is HealthcareEntityRelationType category && Equals(category); + public override bool Equals(object obj) => obj is HealthcareEntityRelationType relationtype && Equals(relationtype); /// /// Serves as the default hash function. @@ -93,9 +93,9 @@ private HealthcareEntityRelationType(string category) public override int GetHashCode() => _value.GetHashCode(); /// - /// Returns a string representation of the EntityCategory. + /// Returns a string representation of the HealthcareEntityRelationType. /// - /// The EntityCategory as a string. + /// The HealthcareEntityRelationType as a string. public override string ToString() => _value; } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/TextAnalyticsClient.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/TextAnalyticsClient.cs index 00a0c82eed0d2..83a939d3d3283 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/TextAnalyticsClient.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/TextAnalyticsClient.cs @@ -2065,104 +2065,6 @@ private Response RecognizeLinkedEntitie #region Healthcare - /// - /// Runs a predictive model to identify a collection of healthcare entities - /// found in the passed-in document, and include information linking the - /// entities to their corresponding entries in a well-known knowledge base. - /// For a list of languages supported by this operation, see - /// . - /// For document length limits, maximum batch size, and supported text encoding, see - /// . - /// - /// Note: In order to use this functionality, request to access public preview is required. - /// Azure Active Directory (AAD) is not currently supported. For more information see - /// . - /// - /// - /// The document to analyze. - /// The language that the document is written in. - /// The additional configurable - /// A - /// controlling the request lifetime. - /// Service returned a non-success - /// status code. - public virtual async Task StartHealthcareAsync(string document, string language = default, AnalyzeHealthcareEntitiesOptions options = default, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(document, nameof(document)); - options ??= new AnalyzeHealthcareEntitiesOptions(); - - var documents = new List() { document }; - - MultiLanguageBatchInput documentInputs = ConvertToMultiLanguageInputs(documents, language); - - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(TextAnalyticsClient)}.{nameof(StartHealthcare)}"); - scope.Start(); - - try - { - ResponseWithHeaders response = await _serviceRestClient.HealthAsync(documentInputs, options.ModelVersion, options.StringIndexType, cancellationToken).ConfigureAwait(false); - string location = response.Headers.OperationLocation; - - IDictionary idToIndexMap = CreateIdToIndexMap(documentInputs.Documents); - - return new AnalyzeHealthcareEntitiesOperation(_serviceRestClient, _clientDiagnostics, location, idToIndexMap, options.Top, options.Skip, options.IncludeStatistics); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Runs a predictive model to identify a collection of healthcare entities - /// found in the passed-in document, and include information linking the - /// entities to their corresponding entries in a well-known knowledge base. - /// For a list of languages supported by this operation, see - /// . - /// For document length limits, maximum batch size, and supported text encoding, see - /// . - /// - /// Note: In order to use this functionality, request to access public preview is required. - /// Azure Active Directory (AAD) is not currently supported. For more information see - /// . - /// - /// - /// The document to analyze. - /// The language that the document is written in. - /// The additional configurable - /// A - /// controlling the request lifetime. - /// Service returned a non-success - /// status code. - public virtual AnalyzeHealthcareEntitiesOperation StartHealthcare(string document, string language = default, AnalyzeHealthcareEntitiesOptions options = default, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(document, nameof(document)); - options ??= new AnalyzeHealthcareEntitiesOptions(); - - var documents = new List() { document }; - - MultiLanguageBatchInput documentInputs = ConvertToMultiLanguageInputs(documents, language); - - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(TextAnalyticsClient)}.{nameof(StartHealthcare)}"); - scope.Start(); - - try - { - ResponseWithHeaders response = _serviceRestClient.Health(documentInputs, options.ModelVersion, options.StringIndexType, cancellationToken); - string location = response.Headers.OperationLocation; - - IDictionary idToIndexMap = CreateIdToIndexMap(documentInputs.Documents); - - return new AnalyzeHealthcareEntitiesOperation(_serviceRestClient, _clientDiagnostics, location, idToIndexMap, options.Top, options.Skip, options.IncludeStatistics); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - /// /// Runs a predictive model to identify a collection of healthcare entities /// found in the passed-in document, and include information linking the @@ -2184,13 +2086,13 @@ public virtual AnalyzeHealthcareEntitiesOperation StartHealthcare(string documen /// controlling the request lifetime. /// Service returned a non-success /// status code. - public virtual async Task StartHealthcareBatchAsync(IEnumerable documents, string language = default, AnalyzeHealthcareEntitiesOptions options = default, CancellationToken cancellationToken = default) + public virtual async Task StartAnalyzeHealthcareEntitiesAsync(IEnumerable documents, string language = default, AnalyzeHealthcareEntitiesOptions options = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(documents, nameof(documents)); options ??= new AnalyzeHealthcareEntitiesOptions(); MultiLanguageBatchInput documentInputs = ConvertToMultiLanguageInputs(documents, language); - return await StartHealthcareBatchAsync(documentInputs, options, cancellationToken).ConfigureAwait(false); + return await StartAnalyzeHealthcareEntitiesAsync(documentInputs, options, cancellationToken).ConfigureAwait(false); } /// @@ -2221,13 +2123,13 @@ public virtual async Task StartHealthcareBat /// that a given entity correctly matches the identified substring. /// Service returned a non-success /// status code. - public virtual AnalyzeHealthcareEntitiesOperation StartHealthcareBatch(IEnumerable documents, string language = default, AnalyzeHealthcareEntitiesOptions options = default, CancellationToken cancellationToken = default) + public virtual AnalyzeHealthcareEntitiesOperation StartAnalyzeHealthcareEntities(IEnumerable documents, string language = default, AnalyzeHealthcareEntitiesOptions options = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(documents, nameof(documents)); options ??= new AnalyzeHealthcareEntitiesOptions(); MultiLanguageBatchInput documentInputs = ConvertToMultiLanguageInputs(documents, language); - return StartHealthcareBatch(documentInputs, options, cancellationToken); + return StartAnalyzeHealthcareEntities(documentInputs, options, cancellationToken); } /// @@ -2249,7 +2151,7 @@ public virtual AnalyzeHealthcareEntitiesOperation StartHealthcareBatch(IEnumerab /// A controlling the request lifetime. /// A to wait on this long-running operation. Its upon successful /// completion will contain layout elements extracted from the form. - public virtual AnalyzeHealthcareEntitiesOperation StartHealthcareBatch(IEnumerable documents, AnalyzeHealthcareEntitiesOptions options, CancellationToken cancellationToken = default) + public virtual AnalyzeHealthcareEntitiesOperation StartAnalyzeHealthcareEntities(IEnumerable documents, AnalyzeHealthcareEntitiesOptions options, CancellationToken cancellationToken = default) { Argument.AssertNotNull(documents, nameof(documents)); @@ -2257,7 +2159,7 @@ public virtual AnalyzeHealthcareEntitiesOperation StartHealthcareBatch(IEnumerab MultiLanguageBatchInput documentInputs = ConvertToMultiLanguageInputs(documents); - return StartHealthcareBatch(documentInputs, options, cancellationToken); + return StartAnalyzeHealthcareEntities(documentInputs, options, cancellationToken); } /// @@ -2279,7 +2181,7 @@ public virtual AnalyzeHealthcareEntitiesOperation StartHealthcareBatch(IEnumerab /// A controlling the request lifetime. /// A to wait on this long-running operation. Its upon successful /// completion will contain layout elements extracted from the form. - public virtual async Task StartHealthcareBatchAsync(IEnumerable documents, AnalyzeHealthcareEntitiesOptions options = default, CancellationToken cancellationToken = default) + public virtual async Task StartAnalyzeHealthcareEntitiesAsync(IEnumerable documents, AnalyzeHealthcareEntitiesOptions options = default, CancellationToken cancellationToken = default) { Argument.AssertNotNull(documents, nameof(documents)); @@ -2287,14 +2189,14 @@ public virtual async Task StartHealthcareBat MultiLanguageBatchInput documentInputs = ConvertToMultiLanguageInputs(documents); - return await StartHealthcareBatchAsync(documentInputs, options, cancellationToken).ConfigureAwait(false); + return await StartAnalyzeHealthcareEntitiesAsync(documentInputs, options, cancellationToken).ConfigureAwait(false); } - private AnalyzeHealthcareEntitiesOperation StartHealthcareBatch(MultiLanguageBatchInput batchInput, AnalyzeHealthcareEntitiesOptions options, CancellationToken cancellationToken = default) + private AnalyzeHealthcareEntitiesOperation StartAnalyzeHealthcareEntities(MultiLanguageBatchInput batchInput, AnalyzeHealthcareEntitiesOptions options, CancellationToken cancellationToken = default) { options ??= new AnalyzeHealthcareEntitiesOptions(); - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(TextAnalyticsClient)}.{nameof(StartHealthcareBatch)}"); + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(TextAnalyticsClient)}.{nameof(StartAnalyzeHealthcareEntities)}"); scope.Start(); try @@ -2313,11 +2215,11 @@ private AnalyzeHealthcareEntitiesOperation StartHealthcareBatch(MultiLanguageBat } } - private async Task StartHealthcareBatchAsync(MultiLanguageBatchInput batchInput, AnalyzeHealthcareEntitiesOptions options, CancellationToken cancellationToken = default) + private async Task StartAnalyzeHealthcareEntitiesAsync(MultiLanguageBatchInput batchInput, AnalyzeHealthcareEntitiesOptions options, CancellationToken cancellationToken = default) { options ??= new AnalyzeHealthcareEntitiesOptions(); - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(TextAnalyticsClient)}.{nameof(StartHealthcareBatch)}"); + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(TextAnalyticsClient)}.{nameof(StartAnalyzeHealthcareEntities)}"); scope.Start(); try diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Transforms.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Transforms.cs index 375385c2712cf..f49b3055e9a70 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Transforms.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Transforms.cs @@ -3,7 +3,9 @@ using System; using System.Collections.Generic; +using System.Globalization; using System.Linq; +using System.Text.RegularExpressions; using Azure.AI.TextAnalytics.Models; namespace Azure.AI.TextAnalytics @@ -245,9 +247,9 @@ internal static RecognizeLinkedEntitiesResultCollection ConvertToRecognizeLinked #region Healthcare - internal static IReadOnlyCollection ConvertToHealthcareEntityCollection(IEnumerable healthcareEntities, IEnumerable healthcareRelations) + internal static List ConvertToHealthcareEntityCollection(IEnumerable healthcareEntities, IEnumerable healthcareRelations) { - return healthcareEntities.Select((entity) => new HealthcareEntity(entity, healthcareEntities, healthcareRelations)).ToList(); + return healthcareEntities.Select((entity) => new HealthcareEntity(entity, ResolveRelatedEntities(entity, healthcareEntities, healthcareRelations))).ToList(); } internal static AnalyzeHealthcareEntitiesResultCollection ConvertToRecognizeHealthcareEntitiesResultCollection(HealthcareResult results, IDictionary idToIndexMap) @@ -266,9 +268,8 @@ internal static AnalyzeHealthcareEntitiesResultCollection ConvertToRecognizeHeal healthcareEntititesResults.Add(new AnalyzeHealthcareEntitiesResult( documentHealthcareEntities.Id, documentHealthcareEntities.Statistics ?? default, - documentHealthcareEntities.Entities, - documentHealthcareEntities.Relations, - documentHealthcareEntities.Warnings)); + ConvertToHealthcareEntityCollection(documentHealthcareEntities.Entities, documentHealthcareEntities.Relations), + ConvertToWarnings(documentHealthcareEntities.Warnings))); } healthcareEntititesResults = healthcareEntititesResults.OrderBy(result => idToIndexMap[result.Id]).ToList(); @@ -276,6 +277,70 @@ internal static AnalyzeHealthcareEntitiesResultCollection ConvertToRecognizeHeal return new AnalyzeHealthcareEntitiesResultCollection(healthcareEntititesResults, results.Statistics, results.ModelVersion); } + private static Dictionary ResolveRelatedEntities(HealthcareEntityInternal entity, + IEnumerable healthcareEntities, + IEnumerable healthcareRelations) + { + Dictionary dictionary = new Dictionary(); + + if (!healthcareRelations.Any()) + { + return dictionary; + } + + foreach (HealthcareRelationInternal relation in healthcareRelations) + { + int entityIndex = healthcareEntities.ToList().FindIndex(e => e.Text.Equals(entity.Text)); + + if (IsEntitySource(relation, entityIndex)) + { + string targetRef = relation.Target; + + HealthcareEntityInternal relatedEntity = ResolveHealthcareEntity(healthcareEntities, targetRef); + + dictionary.Add(new HealthcareEntity(relatedEntity, ResolveRelatedEntities(relatedEntity, healthcareEntities, healthcareRelations)), relation.RelationType); + } + } + + return dictionary; + } + + private static HealthcareEntityInternal ResolveHealthcareEntity(IEnumerable entities, string reference) + { + Match healthcareEntityMatch = _healthcareEntityRegex.Match(reference); + if (healthcareEntityMatch.Success) + { + int entityIndex = int.Parse(healthcareEntityMatch.Groups["entityIndex"].Value, CultureInfo.InvariantCulture); + + if (entityIndex < entities.Count()) + { + return entities.ElementAt(entityIndex); + } + } + + throw new InvalidOperationException($"Failed to parse element reference: {reference}"); + } + + private static Regex _healthcareEntityRegex = new Regex(@"\#/results/documents\/(?\d*)\/entities\/(?\d*)$", RegexOptions.Compiled, TimeSpan.FromSeconds(2)); + + private static bool IsEntitySource(HealthcareRelationInternal healthcareRelation, int entityIndex) + { + string sourceRef = healthcareRelation.Source; + + var healthcareEntityMatch = _healthcareEntityRegex.Match(sourceRef); + + if (healthcareEntityMatch.Success) + { + int index = int.Parse(healthcareEntityMatch.Groups["entityIndex"].Value, CultureInfo.InvariantCulture); + + if (index == entityIndex) + { + return true; + } + } + return false; + } + #endregion #region Analyze Operation diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/RecognizeHealthcareEntitiesTests.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/RecognizeHealthcareEntitiesTests.cs index 9231de5efea34..1bceb4cf2daa8 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/RecognizeHealthcareEntitiesTests.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/RecognizeHealthcareEntitiesTests.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; @@ -37,23 +36,22 @@ public RecognizeHealthcareEntitiesTests(bool isAsync) : base(isAsync) { } public async Task RecognizeHealthcareEntitiesTest() { TextAnalyticsClient client = GetClient(); - string document = singleEnglish; - AnalyzeHealthcareEntitiesOperation operation = await client.StartHealthcareAsync(document); + AnalyzeHealthcareEntitiesOperation operation = await client.StartAnalyzeHealthcareEntitiesAsync(batchDocuments); await operation.WaitForCompletionAsync(PollingInterval); AnalyzeHealthcareEntitiesResultCollection resultCollection = operation.Value; - Assert.AreEqual(1, resultCollection.Count); + Assert.AreEqual(2, resultCollection.Count); - AnalyzeHealthcareEntitiesResult result = resultCollection.Single(); + AnalyzeHealthcareEntitiesResult result = resultCollection[0]; var entitiesList = new List { "100mg", "ibuprofen", "twice daily" }; Assert.AreEqual(3, result.Entities.Count); Assert.IsNotNull(result.Id); - Assert.AreEqual("0", result.Id); + Assert.AreEqual("1", result.Id); foreach (HealthcareEntity entity in result.Entities) { @@ -69,14 +67,15 @@ public async Task RecognizeHealthcareEntitiesTest() if (entity.Text == "100mg") { - HealthcareEntity relatedEntity= new HealthcareEntity(new HealthcareEntityInternal("ibuprofen", "MedicationName", 27, 0, 1.0, false)); - Assert.IsTrue(entity.RelatedEntities.Count == 1); - Assert.AreEqual(relatedEntity.Text, entity.RelatedEntities.ElementAt(0).Key.Text); - Assert.AreEqual(relatedEntity.Category, entity.RelatedEntities.ElementAt(0).Key.Category); - Assert.AreEqual(relatedEntity.Length, entity.RelatedEntities.ElementAt(0).Key.Length); - Assert.AreEqual(relatedEntity.Offset, entity.RelatedEntities.ElementAt(0).Key.Offset); - Assert.AreEqual(relatedEntity.ConfidenceScore, entity.RelatedEntities.ElementAt(0).Key.ConfidenceScore); + + var relatedEntity = entity.RelatedEntities.FirstOrDefault().Key; + + Assert.AreEqual("ibuprofen", relatedEntity.Text); + Assert.AreEqual("MedicationName", relatedEntity.Category); + Assert.AreEqual(0, relatedEntity.Length); + Assert.AreEqual(27, relatedEntity.Offset); + Assert.AreEqual(1.0, relatedEntity.ConfidenceScore); // TODO - DosageOfMedication is not in relation types and is returned from the service. Need to add to swagger. //Assert.AreEqual(HealthcareEntityRelationType.DosageOfMedication, entity.RelatedEntities.ElementAt(0).Value); @@ -90,7 +89,7 @@ public async Task RecognizeHealthcareEntitiesWithLanguageTest() TextAnalyticsClient client = GetClient(); string document = singleEnglish; - AnalyzeHealthcareEntitiesOperation operation = await client.StartHealthcareBatchAsync(new List() { document }, "en"); + AnalyzeHealthcareEntitiesOperation operation = await client.StartAnalyzeHealthcareEntitiesAsync(new List() { document }, "en"); await operation.WaitForCompletionAsync(PollingInterval); @@ -113,7 +112,7 @@ public async Task RecognizeHealthcareEntitiesWithTopParameter() Top = 1 }; - AnalyzeHealthcareEntitiesOperation operation = await client.StartHealthcareBatchAsync(batchDocuments, options); + AnalyzeHealthcareEntitiesOperation operation = await client.StartAnalyzeHealthcareEntitiesAsync(batchDocuments, options); await operation.WaitForCompletionAsync(PollingInterval); @@ -137,13 +136,13 @@ public async Task RecognizeHealthcareEntitiesWithSkipParameter() Skip = 1 }; - AnalyzeHealthcareEntitiesOperation operation = await client.StartHealthcareBatchAsync(batchDocuments, options); + AnalyzeHealthcareEntitiesOperation operation = await client.StartAnalyzeHealthcareEntitiesAsync(batchDocuments, options); await operation.WaitForCompletionAsync(PollingInterval); AnalyzeHealthcareEntitiesResultCollection resultCollection = operation.Value; - Assert.IsNotNull(resultCollection[0].HasError); + Assert.IsFalse(resultCollection[0].HasError); Assert.IsNotNull(resultCollection[0].Warnings); Assert.AreEqual(1, resultCollection.Count); Assert.AreEqual(6, resultCollection[0].Entities.Count); @@ -164,7 +163,7 @@ public async Task RecognizeHealthcareEntitiesBatchWithErrorTest() "", }; - AnalyzeHealthcareEntitiesOperation operation = await client.StartHealthcareBatchAsync(documents); + AnalyzeHealthcareEntitiesOperation operation = await client.StartAnalyzeHealthcareEntitiesAsync(documents); await operation.WaitForCompletionAsync(PollingInterval); @@ -172,9 +171,7 @@ public async Task RecognizeHealthcareEntitiesBatchWithErrorTest() Assert.IsNotNull(resultCollection[2].Id); - var exceptionMessage = "Document text is empty."; Assert.IsTrue(resultCollection[2].HasError); - Assert.AreEqual(exceptionMessage, resultCollection[2].Error.Message); Assert.AreEqual(TextAnalyticsErrorCode.InvalidDocument, resultCollection[2].Error.ErrorCode.ToString()); } @@ -184,7 +181,7 @@ public async Task RecognizeHealthcareEntitiesBatchConvenienceTest() TextAnalyticsClient client = GetClient(); var documents = batchConvenienceDocuments; - AnalyzeHealthcareEntitiesOperation operation = await client.StartHealthcareBatchAsync(documents); + AnalyzeHealthcareEntitiesOperation operation = await client.StartAnalyzeHealthcareEntitiesAsync(documents); await operation.WaitForCompletionAsync(PollingInterval); @@ -204,7 +201,7 @@ public async Task RecognizeHealthcareEntitiesBatchConvenienceWithStatisticsTest( IncludeStatistics = true }; - AnalyzeHealthcareEntitiesOperation operation = await client.StartHealthcareBatchAsync(documents, "en", options); + AnalyzeHealthcareEntitiesOperation operation = await client.StartAnalyzeHealthcareEntitiesAsync(documents, "en", options); await operation.WaitForCompletionAsync(PollingInterval); @@ -228,7 +225,7 @@ public async Task RecognizeHealthcareEntitiesBatchTest() TextAnalyticsClient client = GetClient(); List documents = batchDocuments; - AnalyzeHealthcareEntitiesOperation operation = await client.StartHealthcareBatchAsync(documents); + AnalyzeHealthcareEntitiesOperation operation = await client.StartAnalyzeHealthcareEntitiesAsync(documents); await operation.WaitForCompletionAsync(PollingInterval); @@ -248,7 +245,7 @@ public async Task RecognizeHealthcareEntitiesBatchWithStatisticsTest() IncludeStatistics = true }; - AnalyzeHealthcareEntitiesOperation operation = await client.StartHealthcareBatchAsync(documents, options); + AnalyzeHealthcareEntitiesOperation operation = await client.StartAnalyzeHealthcareEntitiesAsync(documents, options); await operation.WaitForCompletionAsync(PollingInterval); @@ -274,7 +271,7 @@ public async Task RecognizeHealthcareEntitiesBatchWithCancellation() batchDocuments.Add(document); } - AnalyzeHealthcareEntitiesOperation operation = await client.StartHealthcareBatchAsync(batchDocuments, "en"); + AnalyzeHealthcareEntitiesOperation operation = await client.StartAnalyzeHealthcareEntitiesAsync(batchDocuments, "en"); await operation.CancelAsync(); @@ -314,7 +311,7 @@ public async Task RecognizeHealthcareEntitiesBatchWithPagination() Top = 2 }; - AnalyzeHealthcareEntitiesOperation healthOperation = await client.StartHealthcareBatchAsync(list, "en", options); + AnalyzeHealthcareEntitiesOperation healthOperation = await client.StartAnalyzeHealthcareEntitiesAsync(list, "en", options); AsyncPageable results = client.GetHealthcareEntities(healthOperation); diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceTest.json index df413e227e80a..9254d8d05009a 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceTest.json @@ -8,8 +8,8 @@ "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-2efce34d3ef51b4289a1ee73e78d03ca-5b62d4d4faca9f43-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-f2aaf54b5609c9448f9ee5764c6eb49a-47810d0086aba547-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "1d7c0f7df9a5be46a7bf1d0b574c6095", "x-ms-return-client-request-id": "true" }, @@ -29,222 +29,102 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "9dfe40bc-9885-4ead-8641-39ed7ffc93d0", - "Date": "Wed, 27 Jan 2021 01:17:15 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/92e2e19c-f082-4282-9466-355f57c6ae00", + "apim-request-id": "ee1836f8-5f94-4f60-b2ff-45a17baaacc6", + "Date": "Thu, 28 Jan 2021 23:16:34 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/3f7500c9-7b84-4ae3-9335-8e1e63139f1c", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "176" + "x-envoy-upstream-service-time": "208" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/92e2e19c-f082-4282-9466-355f57c6ae00?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/3f7500c9-7b84-4ae3-9335-8e1e63139f1c?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "9441bfd5d8fa13e75ab79017f0dbec22", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "732129e4-043b-42ea-9d4b-03fa9be42c42", + "apim-request-id": "9e6b2c43-4200-4ff6-86e4-c2a15011912a", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:15 GMT", + "Date": "Thu, 28 Jan 2021 23:16:34 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "12" + "x-envoy-upstream-service-time": "6" }, "ResponseBody": { - "jobId": "92e2e19c-f082-4282-9466-355f57c6ae00", - "lastUpdateDateTime": "2021-01-27T01:17:15Z", - "createdDateTime": "2021-01-27T01:17:15Z", - "expirationDateTime": "2021-01-28T01:17:15Z", + "jobId": "3f7500c9-7b84-4ae3-9335-8e1e63139f1c", + "lastUpdateDateTime": "2021-01-28T23:16:34Z", + "createdDateTime": "2021-01-28T23:16:33Z", + "expirationDateTime": "2021-01-29T23:16:33Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/92e2e19c-f082-4282-9466-355f57c6ae00?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/3f7500c9-7b84-4ae3-9335-8e1e63139f1c?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "1f1476b4f8decd8416de12a15e37d599", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "9e3be35b-f3d1-4ade-81a0-e45c24dbcdc1", + "apim-request-id": "2d3f83b6-bd36-4ad4-ac71-0f5a53cf90e9", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:16 GMT", + "Date": "Thu, 28 Jan 2021 23:16:35 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "13" + "x-envoy-upstream-service-time": "10" }, "ResponseBody": { - "jobId": "92e2e19c-f082-4282-9466-355f57c6ae00", - "lastUpdateDateTime": "2021-01-27T01:17:15Z", - "createdDateTime": "2021-01-27T01:17:15Z", - "expirationDateTime": "2021-01-28T01:17:15Z", + "jobId": "3f7500c9-7b84-4ae3-9335-8e1e63139f1c", + "lastUpdateDateTime": "2021-01-28T23:16:34Z", + "createdDateTime": "2021-01-28T23:16:33Z", + "expirationDateTime": "2021-01-29T23:16:33Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/92e2e19c-f082-4282-9466-355f57c6ae00?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/3f7500c9-7b84-4ae3-9335-8e1e63139f1c?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "9fb8c34e36bba5c72869c2ed682ecdcc", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "37069cc1-baaa-4367-bc57-f0171300f89f", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:17 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "15" - }, - "ResponseBody": { - "jobId": "92e2e19c-f082-4282-9466-355f57c6ae00", - "lastUpdateDateTime": "2021-01-27T01:17:15Z", - "createdDateTime": "2021-01-27T01:17:15Z", - "expirationDateTime": "2021-01-28T01:17:15Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/92e2e19c-f082-4282-9466-355f57c6ae00?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "e057fbd34137dcb63a747e1bc545b423", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "7e48781a-5ae1-4268-b3d0-f949ab3286c5", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:18 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "13" - }, - "ResponseBody": { - "jobId": "92e2e19c-f082-4282-9466-355f57c6ae00", - "lastUpdateDateTime": "2021-01-27T01:17:15Z", - "createdDateTime": "2021-01-27T01:17:15Z", - "expirationDateTime": "2021-01-28T01:17:15Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/92e2e19c-f082-4282-9466-355f57c6ae00?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "2dc9f6e14c227d66ae6ff775359664e7", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "c93063a0-2a96-4433-882d-e26fff3599c0", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:19 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "13" - }, - "ResponseBody": { - "jobId": "92e2e19c-f082-4282-9466-355f57c6ae00", - "lastUpdateDateTime": "2021-01-27T01:17:15Z", - "createdDateTime": "2021-01-27T01:17:15Z", - "expirationDateTime": "2021-01-28T01:17:15Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/92e2e19c-f082-4282-9466-355f57c6ae00?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "63ce4611f5e00d620cdb6447b8abdfe2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "8f324de2-610e-49c0-895c-ce3b8980c77a", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:20 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "6" - }, - "ResponseBody": { - "jobId": "92e2e19c-f082-4282-9466-355f57c6ae00", - "lastUpdateDateTime": "2021-01-27T01:17:15Z", - "createdDateTime": "2021-01-27T01:17:15Z", - "expirationDateTime": "2021-01-28T01:17:15Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/92e2e19c-f082-4282-9466-355f57c6ae00?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "710c9fb5a06586a995da31c84941a6a4", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "2b3adfad-9e5c-4ade-999b-ca9de9e1e3d7", + "apim-request-id": "ff7a09f2-d422-4ed7-99d1-f7de2ca1fe9f", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:22 GMT", + "Date": "Thu, 28 Jan 2021 23:16:36 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "431" + "x-envoy-upstream-service-time": "62" }, "ResponseBody": { - "jobId": "92e2e19c-f082-4282-9466-355f57c6ae00", - "lastUpdateDateTime": "2021-01-27T01:17:21Z", - "createdDateTime": "2021-01-27T01:17:15Z", - "expirationDateTime": "2021-01-28T01:17:15Z", + "jobId": "3f7500c9-7b84-4ae3-9335-8e1e63139f1c", + "lastUpdateDateTime": "2021-01-28T23:16:36Z", + "createdDateTime": "2021-01-28T23:16:33Z", + "expirationDateTime": "2021-01-29T23:16:33Z", "status": "succeeded", "errors": [], "results": { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceTestAsync.json index 4a0dd7a4513fd..c92f785f3e5b2 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceTestAsync.json @@ -8,8 +8,8 @@ "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-0ce161650dabe142aee7968964327400-e5253839db43884c-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-4969be23bb8775429f372a31ad7413e1-3d9c03fdc1079e45-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "99aaf08b1c844fb2d7a9025199ec97e4", "x-ms-return-client-request-id": "true" }, @@ -29,72 +29,42 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "35cf5f80-85db-4a7e-b8bb-b855188dd2aa", - "Date": "Wed, 27 Jan 2021 01:18:02 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/6363976a-fe31-4745-a00b-84403077e772", + "apim-request-id": "0f00aa00-a70c-453d-a8f0-322ebea9bc3a", + "Date": "Thu, 28 Jan 2021 23:17:12 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/6068f6ce-6fd5-4cbe-ab81-0e5931b93e70", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "96" + "x-envoy-upstream-service-time": "593" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/6363976a-fe31-4745-a00b-84403077e772?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/6068f6ce-6fd5-4cbe-ab81-0e5931b93e70?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "a6eb27012d3e0231e64179d6488bf525", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "4dac8bae-7d3f-428c-8fb9-4a4ecac3d033", + "apim-request-id": "257ec493-4427-4c20-aedf-c7ff17a6bdaa", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:18:02 GMT", + "Date": "Thu, 28 Jan 2021 23:17:12 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "9" + "x-envoy-upstream-service-time": "47" }, "ResponseBody": { - "jobId": "6363976a-fe31-4745-a00b-84403077e772", - "lastUpdateDateTime": "2021-01-27T01:18:02Z", - "createdDateTime": "2021-01-27T01:18:02Z", - "expirationDateTime": "2021-01-28T01:18:02Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/6363976a-fe31-4745-a00b-84403077e772?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "4d12280124119b66ed27d10225884cad", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d233b633-a8dd-4a27-a60e-58fe5517f693", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:18:03 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "59" - }, - "ResponseBody": { - "jobId": "6363976a-fe31-4745-a00b-84403077e772", - "lastUpdateDateTime": "2021-01-27T01:18:03Z", - "createdDateTime": "2021-01-27T01:18:02Z", - "expirationDateTime": "2021-01-28T01:18:02Z", + "jobId": "6068f6ce-6fd5-4cbe-ab81-0e5931b93e70", + "lastUpdateDateTime": "2021-01-28T23:17:12Z", + "createdDateTime": "2021-01-28T23:17:12Z", + "expirationDateTime": "2021-01-29T23:17:12Z", "status": "succeeded", "errors": [], "results": { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceWithStatisticsTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceWithStatisticsTest.json index 29002254c65f5..49dab61f9f933 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceWithStatisticsTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceWithStatisticsTest.json @@ -8,8 +8,8 @@ "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-b4657c408463fd4294aeaee9825f1a0f-803cac89464dad4d-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-893ad086adf9e042a6d13ceebe034471-dadb55943649bf40-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "87697e405fe3a2c8182b48340c37e5c5", "x-ms-return-client-request-id": "true" }, @@ -29,102 +29,72 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "0e3e4fb4-fa44-486b-8396-d011005adbce", - "Date": "Wed, 27 Jan 2021 01:17:23 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/84ed13d8-e10e-44d2-b213-a3d1f859fdbd", + "apim-request-id": "fd38784c-e179-4ec3-8cce-92987dcd04e8", + "Date": "Thu, 28 Jan 2021 23:16:37 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/398abfec-e751-45ac-86cc-70b931f6fcdf", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "869" + "x-envoy-upstream-service-time": "108" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/84ed13d8-e10e-44d2-b213-a3d1f859fdbd?showStats=true", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/398abfec-e751-45ac-86cc-70b931f6fcdf?showStats=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "f1abd77b68195cb092c7f20f1aa7cc84", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "c85015fc-e77b-4628-ab78-94c4b4c88eb7", + "apim-request-id": "c2905fd6-069e-45f1-86fc-9cd8b96054f8", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:23 GMT", + "Date": "Thu, 28 Jan 2021 23:16:37 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "8" + "x-envoy-upstream-service-time": "9" }, "ResponseBody": { - "jobId": "84ed13d8-e10e-44d2-b213-a3d1f859fdbd", - "lastUpdateDateTime": "2021-01-27T01:17:24Z", - "createdDateTime": "2021-01-27T01:17:23Z", - "expirationDateTime": "2021-01-28T01:17:23Z", - "status": "notStarted", + "jobId": "398abfec-e751-45ac-86cc-70b931f6fcdf", + "lastUpdateDateTime": "2021-01-28T23:16:37Z", + "createdDateTime": "2021-01-28T23:16:37Z", + "expirationDateTime": "2021-01-29T23:16:37Z", + "status": "running", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/84ed13d8-e10e-44d2-b213-a3d1f859fdbd?showStats=true", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/398abfec-e751-45ac-86cc-70b931f6fcdf?showStats=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "be37acebd508d7a1d3d78987b19e23cf", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "d54e0447-fbc7-47e3-8659-8dfa9d7c9ae7", + "apim-request-id": "0314f455-d7ba-4375-b6fc-65990fde0138", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:25 GMT", + "Date": "Thu, 28 Jan 2021 23:16:38 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "8" + "x-envoy-upstream-service-time": "64" }, "ResponseBody": { - "jobId": "84ed13d8-e10e-44d2-b213-a3d1f859fdbd", - "lastUpdateDateTime": "2021-01-27T01:17:24Z", - "createdDateTime": "2021-01-27T01:17:23Z", - "expirationDateTime": "2021-01-28T01:17:23Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/84ed13d8-e10e-44d2-b213-a3d1f859fdbd?showStats=true", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "b34190e23bc3d86ecd0cf51c6cb88870", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "68bccab3-d2df-48e6-85d0-bea85b4d9bb7", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:26 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "344" - }, - "ResponseBody": { - "jobId": "84ed13d8-e10e-44d2-b213-a3d1f859fdbd", - "lastUpdateDateTime": "2021-01-27T01:17:26Z", - "createdDateTime": "2021-01-27T01:17:23Z", - "expirationDateTime": "2021-01-28T01:17:23Z", + "jobId": "398abfec-e751-45ac-86cc-70b931f6fcdf", + "lastUpdateDateTime": "2021-01-28T23:16:37Z", + "createdDateTime": "2021-01-28T23:16:37Z", + "expirationDateTime": "2021-01-29T23:16:37Z", "status": "succeeded", "errors": [], "results": { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceWithStatisticsTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceWithStatisticsTestAsync.json index bbd4444ae468b..5c74791c4d7b2 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceWithStatisticsTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceWithStatisticsTestAsync.json @@ -8,8 +8,8 @@ "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-a824bb8d05eee940bdc1cd980092c567-fe1d1cd64d88ae4b-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-0ac204e0d6555b468db40d19f2343baf-eda187de35d66749-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "da8d96a331a03c42a6c41c2d9f512b98", "x-ms-return-client-request-id": "true" }, @@ -29,72 +29,132 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "e829b3b9-4226-459b-97d2-ea0d59c6da8f", - "Date": "Wed, 27 Jan 2021 01:18:03 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/52379cf4-0f0e-40b5-b4aa-4b7613b86c97", + "apim-request-id": "4b645467-436c-4190-8a47-3ebb11d17ab6", + "Date": "Thu, 28 Jan 2021 23:17:12 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/f8d816e4-7dfa-4d23-926c-c1c294089534", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "95" + "x-envoy-upstream-service-time": "96" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/52379cf4-0f0e-40b5-b4aa-4b7613b86c97?showStats=true", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/f8d816e4-7dfa-4d23-926c-c1c294089534?showStats=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "a36dbbc9f92b427287ffda298bd01507", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "20603490-ccdd-4e53-8027-648097872fad", + "apim-request-id": "50703f57-b8cd-4149-8000-4848724f01fd", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:18:04 GMT", + "Date": "Thu, 28 Jan 2021 23:17:13 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "6" + "x-envoy-upstream-service-time": "9" }, "ResponseBody": { - "jobId": "52379cf4-0f0e-40b5-b4aa-4b7613b86c97", - "lastUpdateDateTime": "2021-01-27T01:18:04Z", - "createdDateTime": "2021-01-27T01:18:04Z", - "expirationDateTime": "2021-01-28T01:18:04Z", - "status": "running", + "jobId": "f8d816e4-7dfa-4d23-926c-c1c294089534", + "lastUpdateDateTime": "2021-01-28T23:17:13Z", + "createdDateTime": "2021-01-28T23:17:13Z", + "expirationDateTime": "2021-01-29T23:17:13Z", + "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/52379cf4-0f0e-40b5-b4aa-4b7613b86c97?showStats=true", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/f8d816e4-7dfa-4d23-926c-c1c294089534?showStats=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "86c4abbaba50d8ace0d0fc3795e01d2c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "e638ec01-9949-4c3f-8ab6-2f3b5c8d59ee", + "apim-request-id": "e2f1899c-78fd-4633-b3c3-56b18c6ecdcc", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:18:05 GMT", + "Date": "Thu, 28 Jan 2021 23:17:14 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "54" + "x-envoy-upstream-service-time": "9" }, "ResponseBody": { - "jobId": "52379cf4-0f0e-40b5-b4aa-4b7613b86c97", - "lastUpdateDateTime": "2021-01-27T01:18:04Z", - "createdDateTime": "2021-01-27T01:18:04Z", - "expirationDateTime": "2021-01-28T01:18:04Z", + "jobId": "f8d816e4-7dfa-4d23-926c-c1c294089534", + "lastUpdateDateTime": "2021-01-28T23:17:13Z", + "createdDateTime": "2021-01-28T23:17:13Z", + "expirationDateTime": "2021-01-29T23:17:13Z", + "status": "notStarted", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/f8d816e4-7dfa-4d23-926c-c1c294089534?showStats=true", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "97afe1fd518fa965244a53a05719b0d6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "3fe9f1be-81ce-4343-8a8c-7a95153a5917", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jan 2021 23:17:16 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "11" + }, + "ResponseBody": { + "jobId": "f8d816e4-7dfa-4d23-926c-c1c294089534", + "lastUpdateDateTime": "2021-01-28T23:17:13Z", + "createdDateTime": "2021-01-28T23:17:13Z", + "expirationDateTime": "2021-01-29T23:17:13Z", + "status": "notStarted", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/f8d816e4-7dfa-4d23-926c-c1c294089534?showStats=true", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "f47314aea48d0f480e95c35afd3bada6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "f10b976b-2e32-4756-ab23-d4bed03c0c14", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jan 2021 23:17:17 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "117" + }, + "ResponseBody": { + "jobId": "f8d816e4-7dfa-4d23-926c-c1c294089534", + "lastUpdateDateTime": "2021-01-28T23:17:16Z", + "createdDateTime": "2021-01-28T23:17:13Z", + "expirationDateTime": "2021-01-29T23:17:13Z", "status": "succeeded", "errors": [], "results": { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchTest.json index 7caa3dc4b76d5..7558839fdc20f 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchTest.json @@ -8,8 +8,8 @@ "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-822780699f0d0a4ebf6f88c2beb4d2d0-0b7a4cda0e44af45-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-caa036b15d3871449af92b335c759017-722e8f89000b324f-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "0d63e53cea7530898179e7904fedbae6", "x-ms-return-client-request-id": "true" }, @@ -29,462 +29,102 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "a6a63b77-1b94-4fb9-82a7-1325342820d2", - "Date": "Wed, 27 Jan 2021 01:17:27 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8f354c47-84bf-400b-9229-e9f7baced53b", + "apim-request-id": "ad509db9-12f2-4c53-9bb1-65181615a3d2", + "Date": "Thu, 28 Jan 2021 23:16:39 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/3f594ff7-ba39-4323-a898-ae66d17b26e9", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "85" + "x-envoy-upstream-service-time": "93" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8f354c47-84bf-400b-9229-e9f7baced53b?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/3f594ff7-ba39-4323-a898-ae66d17b26e9?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "7a482533d010f661d7a330e46a9c020c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "441ae42b-d4f1-4515-9b5f-96e0cad5f587", + "apim-request-id": "df46733b-2e29-4561-86ec-ea0ca27624ba", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:27 GMT", + "Date": "Thu, 28 Jan 2021 23:16:39 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "7" + "x-envoy-upstream-service-time": "10" }, "ResponseBody": { - "jobId": "8f354c47-84bf-400b-9229-e9f7baced53b", - "lastUpdateDateTime": "2021-01-27T01:17:27Z", - "createdDateTime": "2021-01-27T01:17:27Z", - "expirationDateTime": "2021-01-28T01:17:27Z", + "jobId": "3f594ff7-ba39-4323-a898-ae66d17b26e9", + "lastUpdateDateTime": "2021-01-28T23:16:39Z", + "createdDateTime": "2021-01-28T23:16:39Z", + "expirationDateTime": "2021-01-29T23:16:39Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8f354c47-84bf-400b-9229-e9f7baced53b?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/3f594ff7-ba39-4323-a898-ae66d17b26e9?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "d4480f3cd87c0175cc930cf584ae8a9b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "2f80cb01-bb01-4352-9977-ebd59e154e2e", + "apim-request-id": "da535583-72e8-4120-b635-455275ef4684", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:29 GMT", + "Date": "Thu, 28 Jan 2021 23:16:40 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", "x-envoy-upstream-service-time": "9" }, "ResponseBody": { - "jobId": "8f354c47-84bf-400b-9229-e9f7baced53b", - "lastUpdateDateTime": "2021-01-27T01:17:27Z", - "createdDateTime": "2021-01-27T01:17:27Z", - "expirationDateTime": "2021-01-28T01:17:27Z", + "jobId": "3f594ff7-ba39-4323-a898-ae66d17b26e9", + "lastUpdateDateTime": "2021-01-28T23:16:39Z", + "createdDateTime": "2021-01-28T23:16:39Z", + "expirationDateTime": "2021-01-29T23:16:39Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8f354c47-84bf-400b-9229-e9f7baced53b?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/3f594ff7-ba39-4323-a898-ae66d17b26e9?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "00da5d97d0326c02836c36d1baa4c6e5", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "43ffb63a-36bc-460f-9eb6-4f75e9853942", + "apim-request-id": "65cc098a-6021-4557-a551-556bc269680e", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:30 GMT", + "Date": "Thu, 28 Jan 2021 23:16:41 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "9" - }, - "ResponseBody": { - "jobId": "8f354c47-84bf-400b-9229-e9f7baced53b", - "lastUpdateDateTime": "2021-01-27T01:17:27Z", - "createdDateTime": "2021-01-27T01:17:27Z", - "expirationDateTime": "2021-01-28T01:17:27Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8f354c47-84bf-400b-9229-e9f7baced53b?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "4053da77e5a55a69b046ae7dc36c7228", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "8c9c9d13-9bd3-46aa-8835-bc123ca8e605", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:31 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "8" - }, - "ResponseBody": { - "jobId": "8f354c47-84bf-400b-9229-e9f7baced53b", - "lastUpdateDateTime": "2021-01-27T01:17:27Z", - "createdDateTime": "2021-01-27T01:17:27Z", - "expirationDateTime": "2021-01-28T01:17:27Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8f354c47-84bf-400b-9229-e9f7baced53b?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "0d4c941902c16cda0cdb5110a2a34728", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "30f2128c-c756-4058-ab7a-bd6771e13c58", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:32 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "8" - }, - "ResponseBody": { - "jobId": "8f354c47-84bf-400b-9229-e9f7baced53b", - "lastUpdateDateTime": "2021-01-27T01:17:27Z", - "createdDateTime": "2021-01-27T01:17:27Z", - "expirationDateTime": "2021-01-28T01:17:27Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8f354c47-84bf-400b-9229-e9f7baced53b?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "a97e27cc4a5bb1f5f37f4feb2184a817", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "73ddd322-57de-4e09-be1f-d259e709f815", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:34 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "5" - }, - "ResponseBody": { - "jobId": "8f354c47-84bf-400b-9229-e9f7baced53b", - "lastUpdateDateTime": "2021-01-27T01:17:27Z", - "createdDateTime": "2021-01-27T01:17:27Z", - "expirationDateTime": "2021-01-28T01:17:27Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8f354c47-84bf-400b-9229-e9f7baced53b?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "25b80df9b857752300e733ca9458b80c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "2dea90ad-5599-4753-9293-6a94bd49be26", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:35 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "9" - }, - "ResponseBody": { - "jobId": "8f354c47-84bf-400b-9229-e9f7baced53b", - "lastUpdateDateTime": "2021-01-27T01:17:27Z", - "createdDateTime": "2021-01-27T01:17:27Z", - "expirationDateTime": "2021-01-28T01:17:27Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8f354c47-84bf-400b-9229-e9f7baced53b?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "9cb085fec9edcecd9f9b1941b2ef4a88", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "472ea42b-6677-49b1-a962-8b8c09524d95", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:36 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "9" - }, - "ResponseBody": { - "jobId": "8f354c47-84bf-400b-9229-e9f7baced53b", - "lastUpdateDateTime": "2021-01-27T01:17:27Z", - "createdDateTime": "2021-01-27T01:17:27Z", - "expirationDateTime": "2021-01-28T01:17:27Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8f354c47-84bf-400b-9229-e9f7baced53b?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "94173a3222eb13d00309a873172b1d9a", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "7db87919-d427-4321-a9d9-f936aab8626f", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:37 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "8" - }, - "ResponseBody": { - "jobId": "8f354c47-84bf-400b-9229-e9f7baced53b", - "lastUpdateDateTime": "2021-01-27T01:17:27Z", - "createdDateTime": "2021-01-27T01:17:27Z", - "expirationDateTime": "2021-01-28T01:17:27Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8f354c47-84bf-400b-9229-e9f7baced53b?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "9bec43c70cd4302940e986bc9fe1c211", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "5b0181b2-7a72-4cd4-8646-0bce9f0a3970", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:38 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "7" - }, - "ResponseBody": { - "jobId": "8f354c47-84bf-400b-9229-e9f7baced53b", - "lastUpdateDateTime": "2021-01-27T01:17:38Z", - "createdDateTime": "2021-01-27T01:17:27Z", - "expirationDateTime": "2021-01-28T01:17:27Z", - "status": "running", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8f354c47-84bf-400b-9229-e9f7baced53b?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "5a97ab9c2341dc20b59c98e42059b773", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d43cd483-da0a-487f-8a69-b5186307f95c", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:39 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "9" - }, - "ResponseBody": { - "jobId": "8f354c47-84bf-400b-9229-e9f7baced53b", - "lastUpdateDateTime": "2021-01-27T01:17:38Z", - "createdDateTime": "2021-01-27T01:17:27Z", - "expirationDateTime": "2021-01-28T01:17:27Z", - "status": "running", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8f354c47-84bf-400b-9229-e9f7baced53b?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "6f7a7f7dae0226b310e754029c147421", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1ab9ef48-d43b-45fa-a9a3-9ce67b601f84", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:41 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "5" - }, - "ResponseBody": { - "jobId": "8f354c47-84bf-400b-9229-e9f7baced53b", - "lastUpdateDateTime": "2021-01-27T01:17:38Z", - "createdDateTime": "2021-01-27T01:17:27Z", - "expirationDateTime": "2021-01-28T01:17:27Z", - "status": "running", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8f354c47-84bf-400b-9229-e9f7baced53b?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "6cd79746c394a4592210e63773450fe6", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "16c593c1-8717-45ce-8208-6d37f36f96e4", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:42 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "8" - }, - "ResponseBody": { - "jobId": "8f354c47-84bf-400b-9229-e9f7baced53b", - "lastUpdateDateTime": "2021-01-27T01:17:38Z", - "createdDateTime": "2021-01-27T01:17:27Z", - "expirationDateTime": "2021-01-28T01:17:27Z", - "status": "running", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8f354c47-84bf-400b-9229-e9f7baced53b?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "203e12325367ed0ef770495ace1e40a0", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "4331be56-7b8c-430c-a862-d8d3e0d6bef8", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:43 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "11" - }, - "ResponseBody": { - "jobId": "8f354c47-84bf-400b-9229-e9f7baced53b", - "lastUpdateDateTime": "2021-01-27T01:17:38Z", - "createdDateTime": "2021-01-27T01:17:27Z", - "expirationDateTime": "2021-01-28T01:17:27Z", - "status": "running", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8f354c47-84bf-400b-9229-e9f7baced53b?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "899e77274a81badf25d54cf2c87bb2cb", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "37fabde4-838f-44ce-81da-d7fd12c10b72", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:44 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "61" + "x-envoy-upstream-service-time": "65" }, "ResponseBody": { - "jobId": "8f354c47-84bf-400b-9229-e9f7baced53b", - "lastUpdateDateTime": "2021-01-27T01:17:44Z", - "createdDateTime": "2021-01-27T01:17:27Z", - "expirationDateTime": "2021-01-28T01:17:27Z", + "jobId": "3f594ff7-ba39-4323-a898-ae66d17b26e9", + "lastUpdateDateTime": "2021-01-28T23:16:41Z", + "createdDateTime": "2021-01-28T23:16:39Z", + "expirationDateTime": "2021-01-29T23:16:39Z", "status": "succeeded", "errors": [], "results": { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchTestAsync.json index 35d82351798d2..d524eefed0695 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchTestAsync.json @@ -8,8 +8,8 @@ "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-5fbecbed148de94b8217e48126765040-bf7a687b9c20194b-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-dff925c4361b2a40bd9c1bc57b249822-e3c092051a358e49-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "17e898e3099143136b2e35c82964efd9", "x-ms-return-client-request-id": "true" }, @@ -29,72 +29,132 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "5e793933-ac80-4fd2-bba7-7fce465b63e4", - "Date": "Wed, 27 Jan 2021 01:18:05 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/68ea820c-84ed-4a6a-b71a-fd04db987711", + "apim-request-id": "7f765e9e-7809-4cbe-8186-65ee4bedc708", + "Date": "Thu, 28 Jan 2021 23:17:18 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/0b3f3e6a-5d69-44c7-b304-fcde15d9dd2d", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "130" + "x-envoy-upstream-service-time": "93" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/68ea820c-84ed-4a6a-b71a-fd04db987711?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/0b3f3e6a-5d69-44c7-b304-fcde15d9dd2d?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "7dd0fa2b947b788e4d51b90a9e064f06", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "5fef862b-9a28-4edc-a64c-bb958dcaa264", + "apim-request-id": "5ec6305a-ae9c-4539-89a0-1d39ecd1d1dc", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:18:06 GMT", + "Date": "Thu, 28 Jan 2021 23:17:18 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", "x-envoy-upstream-service-time": "9" }, "ResponseBody": { - "jobId": "68ea820c-84ed-4a6a-b71a-fd04db987711", - "lastUpdateDateTime": "2021-01-27T01:18:06Z", - "createdDateTime": "2021-01-27T01:18:06Z", - "expirationDateTime": "2021-01-28T01:18:06Z", - "status": "running", + "jobId": "0b3f3e6a-5d69-44c7-b304-fcde15d9dd2d", + "lastUpdateDateTime": "2021-01-28T23:17:18Z", + "createdDateTime": "2021-01-28T23:17:18Z", + "expirationDateTime": "2021-01-29T23:17:18Z", + "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/68ea820c-84ed-4a6a-b71a-fd04db987711?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/0b3f3e6a-5d69-44c7-b304-fcde15d9dd2d?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "ddd7cae644b1aa3bb79fb4ecc872f743", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "cb28ce96-7538-4ddc-8f9d-1602aa3faac5", + "apim-request-id": "28976bef-b49f-4f04-ac22-e4c9dab62155", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:18:07 GMT", + "Date": "Thu, 28 Jan 2021 23:17:19 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "57" + "x-envoy-upstream-service-time": "7" }, "ResponseBody": { - "jobId": "68ea820c-84ed-4a6a-b71a-fd04db987711", - "lastUpdateDateTime": "2021-01-27T01:18:06Z", - "createdDateTime": "2021-01-27T01:18:06Z", - "expirationDateTime": "2021-01-28T01:18:06Z", + "jobId": "0b3f3e6a-5d69-44c7-b304-fcde15d9dd2d", + "lastUpdateDateTime": "2021-01-28T23:17:18Z", + "createdDateTime": "2021-01-28T23:17:18Z", + "expirationDateTime": "2021-01-29T23:17:18Z", + "status": "notStarted", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/0b3f3e6a-5d69-44c7-b304-fcde15d9dd2d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "3c1db919135b4f3e0970ca3f4f09a565", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "c9ddecfa-db79-483a-b773-9dc2e0c20f41", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jan 2021 23:17:20 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "9" + }, + "ResponseBody": { + "jobId": "0b3f3e6a-5d69-44c7-b304-fcde15d9dd2d", + "lastUpdateDateTime": "2021-01-28T23:17:18Z", + "createdDateTime": "2021-01-28T23:17:18Z", + "expirationDateTime": "2021-01-29T23:17:18Z", + "status": "notStarted", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/0b3f3e6a-5d69-44c7-b304-fcde15d9dd2d?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "5fe22edf128ce627be26c6dcdfa2b0da", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "9dbc5e2e-8353-4667-83bf-520e46fdf232", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jan 2021 23:17:21 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "65" + }, + "ResponseBody": { + "jobId": "0b3f3e6a-5d69-44c7-b304-fcde15d9dd2d", + "lastUpdateDateTime": "2021-01-28T23:17:21Z", + "createdDateTime": "2021-01-28T23:17:18Z", + "expirationDateTime": "2021-01-29T23:17:18Z", "status": "succeeded", "errors": [], "results": { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithCancellation.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithCancellation.json index 3a7c83b1def41..63e5095b46060 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithCancellation.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithCancellation.json @@ -8,8 +8,8 @@ "Content-Length": "1555", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-d6c95b781431bd40b7f16601bc835b0e-110e9d7798d96a40-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-486d6e22f3be9a47afde02c8b5334cd6-e1c587633540784b-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "d6f2d0cc095dc3418ddc67fdaec34f8c", "x-ms-return-client-request-id": "true" }, @@ -69,65 +69,65 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "eba67060-26cd-41c3-aa25-adacd92b2bcd", - "Date": "Wed, 27 Jan 2021 01:17:45 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/71660150-3199-4651-a221-7289528a6056", + "apim-request-id": "22b23492-c6aa-4072-ac5b-d2b42ff554ef", + "Date": "Thu, 28 Jan 2021 23:16:42 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/9201a8ad-0a6b-484a-bfc8-8f9f810541f0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "176" + "x-envoy-upstream-service-time": "212" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/71660150-3199-4651-a221-7289528a6056", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/9201a8ad-0a6b-484a-bfc8-8f9f810541f0", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "e1bd0b21afaacf4ed5d58b17e46d5140", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "ee6cf94e-a895-4632-9407-c46b5d2a7d9f", - "Date": "Wed, 27 Jan 2021 01:17:45 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/71660150-3199-4651-a221-7289528a6056", + "apim-request-id": "bd410178-fb0d-4301-ab40-2f2cf8429cbb", + "Date": "Thu, 28 Jan 2021 23:16:42 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/9201a8ad-0a6b-484a-bfc8-8f9f810541f0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "19" + "x-envoy-upstream-service-time": "39" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/71660150-3199-4651-a221-7289528a6056?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/9201a8ad-0a6b-484a-bfc8-8f9f810541f0?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "0b47155e744b34ff8e7def83a29a0d23", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "ab2557e0-bccc-4723-9125-d78cc96f412e", + "apim-request-id": "56448435-8852-456e-a3e1-2314bde0ef90", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:45 GMT", + "Date": "Thu, 28 Jan 2021 23:16:42 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "8" + "x-envoy-upstream-service-time": "5" }, "ResponseBody": { - "jobId": "71660150-3199-4651-a221-7289528a6056", - "lastUpdateDateTime": "2021-01-27T01:17:45Z", - "createdDateTime": "2021-01-27T01:17:45Z", - "expirationDateTime": "2021-01-28T01:17:45Z", + "jobId": "9201a8ad-0a6b-484a-bfc8-8f9f810541f0", + "lastUpdateDateTime": "2021-01-28T23:16:43Z", + "createdDateTime": "2021-01-28T23:16:42Z", + "expirationDateTime": "2021-01-29T23:16:42Z", "status": "cancelled", "errors": [] } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithCancellationAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithCancellationAsync.json index e950ac5916169..184e368f31d2a 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithCancellationAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithCancellationAsync.json @@ -8,8 +8,8 @@ "Content-Length": "1555", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-c934f6c091665141b9eff47e54134be3-0c121e3d41ce9e46-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-1457ed661c33ad449761f8f69ef16ba7-2d3d9c0afcecae44-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "174f72762caf768d734c4bc2cef9931d", "x-ms-return-client-request-id": "true" }, @@ -69,65 +69,65 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "55b32107-f7de-41c6-bd73-59e9e5480034", - "Date": "Wed, 27 Jan 2021 01:18:07 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2eb1db97-63e5-4097-9efa-f1d8e2c14c57", + "apim-request-id": "ecb052e7-3eb7-454d-baf4-997c091726b4", + "Date": "Thu, 28 Jan 2021 23:17:22 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/52beb13b-8900-4632-8106-3f2a4834d4d9", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "204" + "x-envoy-upstream-service-time": "216" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2eb1db97-63e5-4097-9efa-f1d8e2c14c57", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/52beb13b-8900-4632-8106-3f2a4834d4d9", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "b4dedd3f6eed1404f274aef6ca46c145", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "b81142b0-17c7-4e7f-93e5-6e59a2670e05", - "Date": "Wed, 27 Jan 2021 01:18:08 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2eb1db97-63e5-4097-9efa-f1d8e2c14c57", + "apim-request-id": "cd2106de-3c44-4a02-bb6b-4e77d0c3d8a4", + "Date": "Thu, 28 Jan 2021 23:17:22 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/52beb13b-8900-4632-8106-3f2a4834d4d9", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "14" + "x-envoy-upstream-service-time": "18" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2eb1db97-63e5-4097-9efa-f1d8e2c14c57?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/52beb13b-8900-4632-8106-3f2a4834d4d9?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "1748fd33d947290e5b3b13a681114adc", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "76dfec6a-b10d-4875-877f-79d849daf3f3", + "apim-request-id": "9cea828a-f4d9-4be6-ab6c-1357c9317063", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:18:08 GMT", + "Date": "Thu, 28 Jan 2021 23:17:22 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "8" + "x-envoy-upstream-service-time": "5" }, "ResponseBody": { - "jobId": "2eb1db97-63e5-4097-9efa-f1d8e2c14c57", - "lastUpdateDateTime": "2021-01-27T01:18:08Z", - "createdDateTime": "2021-01-27T01:18:08Z", - "expirationDateTime": "2021-01-28T01:18:08Z", + "jobId": "52beb13b-8900-4632-8106-3f2a4834d4d9", + "lastUpdateDateTime": "2021-01-28T23:17:22Z", + "createdDateTime": "2021-01-28T23:17:22Z", + "expirationDateTime": "2021-01-29T23:17:22Z", "status": "cancelled", "errors": [] } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithErrorTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithErrorTest.json index 52f4ea07addbb..439dd40528970 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithErrorTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithErrorTest.json @@ -8,8 +8,8 @@ "Content-Length": "260", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-d1eafc5ce918094bab685591c392d9fa-4697151a57c7274b-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-edde41867e8272408319ad3b27ce4278-6afc02dbf247f44c-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210129.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "ed679d93c08fe171a9b236aaa757046a", "x-ms-return-client-request-id": "true" }, @@ -34,72 +34,282 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "b0bb126d-a345-41ad-8490-2decf8afbce7", - "Date": "Wed, 27 Jan 2021 01:17:45 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/3692a48d-d9aa-40b3-b925-260149e95f65", + "apim-request-id": "d55af006-23df-4cac-af23-09c836eea8e3", + "Date": "Fri, 29 Jan 2021 17:48:29 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/6e283a9d-6739-4f93-9db8-57de75d4e0f2", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "121" + "x-envoy-upstream-service-time": "867" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/3692a48d-d9aa-40b3-b925-260149e95f65?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/6e283a9d-6739-4f93-9db8-57de75d4e0f2?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210129.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "8ac7fae8cf64a9249598acb3531ad44c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "f2f797c2-e025-480b-97de-236b27735d13", + "apim-request-id": "4c20017a-a0b2-478b-9744-dfa0b6cf98c5", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:46 GMT", + "Date": "Fri, 29 Jan 2021 17:48:29 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "9" + "x-envoy-upstream-service-time": "122" }, "ResponseBody": { - "jobId": "3692a48d-d9aa-40b3-b925-260149e95f65", - "lastUpdateDateTime": "2021-01-27T01:17:46Z", - "createdDateTime": "2021-01-27T01:17:46Z", - "expirationDateTime": "2021-01-28T01:17:46Z", + "jobId": "6e283a9d-6739-4f93-9db8-57de75d4e0f2", + "lastUpdateDateTime": "2021-01-29T17:48:29Z", + "createdDateTime": "2021-01-29T17:48:28Z", + "expirationDateTime": "2021-01-30T17:48:28Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/3692a48d-d9aa-40b3-b925-260149e95f65?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/6e283a9d-6739-4f93-9db8-57de75d4e0f2?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210129.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "e1e35bcd7fe4ca895c5026b1fcf89877", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "93553fcc-47b9-4fb5-ba39-a07b38b10451", + "apim-request-id": "b2f606fc-c88a-4d34-ae20-4a927d38ce55", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:47 GMT", + "Date": "Fri, 29 Jan 2021 17:48:30 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "67" + "x-envoy-upstream-service-time": "8" }, "ResponseBody": { - "jobId": "3692a48d-d9aa-40b3-b925-260149e95f65", - "lastUpdateDateTime": "2021-01-27T01:17:46Z", - "createdDateTime": "2021-01-27T01:17:46Z", - "expirationDateTime": "2021-01-28T01:17:46Z", + "jobId": "6e283a9d-6739-4f93-9db8-57de75d4e0f2", + "lastUpdateDateTime": "2021-01-29T17:48:29Z", + "createdDateTime": "2021-01-29T17:48:28Z", + "expirationDateTime": "2021-01-30T17:48:28Z", + "status": "notStarted", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/6e283a9d-6739-4f93-9db8-57de75d4e0f2?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210129.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "42e053ff1beac39b78bd58f714be8d8f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "9554bfa3-f3cb-4312-bf47-e48e43fe00fd", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 29 Jan 2021 17:48:32 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "817" + }, + "ResponseBody": { + "jobId": "6e283a9d-6739-4f93-9db8-57de75d4e0f2", + "lastUpdateDateTime": "2021-01-29T17:48:29Z", + "createdDateTime": "2021-01-29T17:48:28Z", + "expirationDateTime": "2021-01-30T17:48:28Z", + "status": "notStarted", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/6e283a9d-6739-4f93-9db8-57de75d4e0f2?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210129.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "4bddeade2273698670fd2d14a873ad9c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "45a6ed6e-c601-4089-8369-74ae56f1e34f", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 29 Jan 2021 17:48:34 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "778" + }, + "ResponseBody": { + "jobId": "6e283a9d-6739-4f93-9db8-57de75d4e0f2", + "lastUpdateDateTime": "2021-01-29T17:48:34Z", + "createdDateTime": "2021-01-29T17:48:28Z", + "expirationDateTime": "2021-01-30T17:48:28Z", + "status": "running", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/6e283a9d-6739-4f93-9db8-57de75d4e0f2?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210129.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "ffb435ff9139b161bf1f68262691b59e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "463cf7c0-0339-4803-a7ee-b09e0f1aaa1f", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 29 Jan 2021 17:48:35 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "145" + }, + "ResponseBody": { + "jobId": "6e283a9d-6739-4f93-9db8-57de75d4e0f2", + "lastUpdateDateTime": "2021-01-29T17:48:34Z", + "createdDateTime": "2021-01-29T17:48:28Z", + "expirationDateTime": "2021-01-30T17:48:28Z", + "status": "running", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/6e283a9d-6739-4f93-9db8-57de75d4e0f2?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210129.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "11d297c24c1bdc03cd77d1edee871a04", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "ea51e2d4-7b02-4403-951d-8fa0578d50c6", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 29 Jan 2021 17:48:36 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "6" + }, + "ResponseBody": { + "jobId": "6e283a9d-6739-4f93-9db8-57de75d4e0f2", + "lastUpdateDateTime": "2021-01-29T17:48:34Z", + "createdDateTime": "2021-01-29T17:48:28Z", + "expirationDateTime": "2021-01-30T17:48:28Z", + "status": "running", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/6e283a9d-6739-4f93-9db8-57de75d4e0f2?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210129.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "dff8bc108d094c55892c8b53ba6042df", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "1dd54f1b-efee-4e5d-b306-f2316f3fd39e", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 29 Jan 2021 17:48:38 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "10" + }, + "ResponseBody": { + "jobId": "6e283a9d-6739-4f93-9db8-57de75d4e0f2", + "lastUpdateDateTime": "2021-01-29T17:48:34Z", + "createdDateTime": "2021-01-29T17:48:28Z", + "expirationDateTime": "2021-01-30T17:48:28Z", + "status": "running", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/6e283a9d-6739-4f93-9db8-57de75d4e0f2?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210129.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "11518e479ba1b28131d832c2c073c238", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "df881b99-1ea5-40cb-adc3-706459049adb", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 29 Jan 2021 17:48:39 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "8" + }, + "ResponseBody": { + "jobId": "6e283a9d-6739-4f93-9db8-57de75d4e0f2", + "lastUpdateDateTime": "2021-01-29T17:48:34Z", + "createdDateTime": "2021-01-29T17:48:28Z", + "expirationDateTime": "2021-01-30T17:48:28Z", + "status": "running", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/6e283a9d-6739-4f93-9db8-57de75d4e0f2?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210129.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "6a156405d5993595428588eec1b0216c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "0fa1911e-cb0f-4fc3-8de1-1feaef6d5c37", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 29 Jan 2021 17:48:41 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "699" + }, + "ResponseBody": { + "jobId": "6e283a9d-6739-4f93-9db8-57de75d4e0f2", + "lastUpdateDateTime": "2021-01-29T17:48:39Z", + "createdDateTime": "2021-01-29T17:48:28Z", + "expirationDateTime": "2021-01-30T17:48:28Z", "status": "succeeded", "errors": [], "results": { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithErrorTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithErrorTestAsync.json index 39ba6b935e986..2b3adb9b073c5 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithErrorTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithErrorTestAsync.json @@ -8,8 +8,8 @@ "Content-Length": "260", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-4c50823c4068cf4aa2e79bd5db9a2457-fe4799e90a86d341-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-1580268df4b10f47a1ea29598ecb0a57-3d6cd26d4be31841-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "4352d8dd6e2ff74a3743e20989f20949", "x-ms-return-client-request-id": "true" }, @@ -34,72 +34,132 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "13b6bbb3-6685-490e-b1e0-46b0f50d991f", - "Date": "Wed, 27 Jan 2021 01:18:08 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/6784c7ff-5aa2-46af-95bd-d700d34dbc99", + "apim-request-id": "9625a10b-52d8-4921-a249-7cc743ef49f8", + "Date": "Thu, 28 Jan 2021 23:17:23 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/cca29591-4889-40a5-94bc-2ee110020310", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "94" + "x-envoy-upstream-service-time": "124" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/6784c7ff-5aa2-46af-95bd-d700d34dbc99?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/cca29591-4889-40a5-94bc-2ee110020310?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "b850713105701863d1b6a799a800b67b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "a12d1569-0364-4ac8-86f6-9f0cdec93fec", + "apim-request-id": "b33d73d9-a3f8-4f32-b6d5-6c2b6d5f904d", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:18:08 GMT", + "Date": "Thu, 28 Jan 2021 23:17:23 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", "x-envoy-upstream-service-time": "9" }, "ResponseBody": { - "jobId": "6784c7ff-5aa2-46af-95bd-d700d34dbc99", - "lastUpdateDateTime": "2021-01-27T01:18:09Z", - "createdDateTime": "2021-01-27T01:18:09Z", - "expirationDateTime": "2021-01-28T01:18:09Z", + "jobId": "cca29591-4889-40a5-94bc-2ee110020310", + "lastUpdateDateTime": "2021-01-28T23:17:23Z", + "createdDateTime": "2021-01-28T23:17:23Z", + "expirationDateTime": "2021-01-29T23:17:23Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/6784c7ff-5aa2-46af-95bd-d700d34dbc99?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/cca29591-4889-40a5-94bc-2ee110020310?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "7b6997a8eb08a1c0115e8728d43fe710", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "6d063146-16bf-4bc9-83ae-ab9b6a605f6d", + "apim-request-id": "60b2f7a0-4fa1-463e-b197-a0dfa7acddee", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:18:09 GMT", + "Date": "Thu, 28 Jan 2021 23:17:24 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "73" + "x-envoy-upstream-service-time": "9" + }, + "ResponseBody": { + "jobId": "cca29591-4889-40a5-94bc-2ee110020310", + "lastUpdateDateTime": "2021-01-28T23:17:23Z", + "createdDateTime": "2021-01-28T23:17:23Z", + "expirationDateTime": "2021-01-29T23:17:23Z", + "status": "notStarted", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/cca29591-4889-40a5-94bc-2ee110020310?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "c4c517d3dcd1d7de74397279c7b14e37", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "613a0d29-d359-4cf0-9bfa-7af927d3f952", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jan 2021 23:17:25 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "9" + }, + "ResponseBody": { + "jobId": "cca29591-4889-40a5-94bc-2ee110020310", + "lastUpdateDateTime": "2021-01-28T23:17:23Z", + "createdDateTime": "2021-01-28T23:17:23Z", + "expirationDateTime": "2021-01-29T23:17:23Z", + "status": "notStarted", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/cca29591-4889-40a5-94bc-2ee110020310?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "f260678d8d894640b1aea7117e3b4491", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "6d21eef9-eab2-4d8e-99b9-ab2ef58864c1", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jan 2021 23:17:26 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "143" }, "ResponseBody": { - "jobId": "6784c7ff-5aa2-46af-95bd-d700d34dbc99", - "lastUpdateDateTime": "2021-01-27T01:18:09Z", - "createdDateTime": "2021-01-27T01:18:09Z", - "expirationDateTime": "2021-01-28T01:18:09Z", + "jobId": "cca29591-4889-40a5-94bc-2ee110020310", + "lastUpdateDateTime": "2021-01-28T23:17:26Z", + "createdDateTime": "2021-01-28T23:17:23Z", + "expirationDateTime": "2021-01-29T23:17:23Z", "status": "succeeded", "errors": [], "results": { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithPagination.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithPagination.json index 9c01020d706b6..e6935335fe2e1 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithPagination.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithPagination.json @@ -8,8 +8,8 @@ "Content-Length": "1395", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-8234859e43143246b76e843db85b06ec-cd6a53cda7830647-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-af9f8df578418e4d96d0384bc54db74e-7243ac22ac498e48-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "3d690e65097214462e3994d44b026896", "x-ms-return-client-request-id": "true" }, @@ -69,74 +69,167 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "5b278b54-100c-4ffb-b71e-c64946af3538", - "Date": "Wed, 27 Jan 2021 01:17:47 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/bb124fb1-b95b-439a-8aa9-7a3e47acdb20", + "apim-request-id": "a22fba7e-48fe-4176-99c3-90675f80c2e6", + "Date": "Thu, 28 Jan 2021 23:16:47 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "186" + "x-envoy-upstream-service-time": "173" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/bb124fb1-b95b-439a-8aa9-7a3e47acdb20?$top=2\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c?$top=2\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-ebb0ee7a3edb5540a965b687d082b607-240980a5928a144c-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-5436248d2ee1ba42b93889ebbae02a5c-711cbc7aa4287d43-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "60014c42eec829d6c5965295103c077f", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "56119929-1629-4f89-9b8b-8675fd301785", + "apim-request-id": "28af0f18-2c0e-45d1-a0db-bc9ed36e9245", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:48 GMT", + "Date": "Thu, 28 Jan 2021 23:16:47 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", "x-envoy-upstream-service-time": "9" }, "ResponseBody": { - "jobId": "bb124fb1-b95b-439a-8aa9-7a3e47acdb20", - "lastUpdateDateTime": "2021-01-27T01:17:48Z", - "createdDateTime": "2021-01-27T01:17:48Z", - "expirationDateTime": "2021-01-28T01:17:48Z", - "status": "running", + "jobId": "c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c", + "lastUpdateDateTime": "2021-01-28T23:16:48Z", + "createdDateTime": "2021-01-28T23:16:48Z", + "expirationDateTime": "2021-01-29T23:16:48Z", + "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/bb124fb1-b95b-439a-8aa9-7a3e47acdb20?$top=2\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c?$top=2\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-ebb0ee7a3edb5540a965b687d082b607-4d9d6ccf13991041-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-5436248d2ee1ba42b93889ebbae02a5c-f8cd546fb20c7a4f-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "e6e71e1943fddaaba6e9191ddcfc8d38", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "383ae20b-2893-4845-90fa-7b06e31c5e6f", + "apim-request-id": "27d9923d-969d-4fa7-9af1-fe6216c58ad5", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jan 2021 23:16:48 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "9" + }, + "ResponseBody": { + "jobId": "c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c", + "lastUpdateDateTime": "2021-01-28T23:16:48Z", + "createdDateTime": "2021-01-28T23:16:48Z", + "expirationDateTime": "2021-01-29T23:16:48Z", + "status": "notStarted", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c?$top=2\u0026showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-5436248d2ee1ba42b93889ebbae02a5c-11410e6ba2a2364b-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "6bedcd03a2427620384078dbb7b003f2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "fbc76809-ec9b-4cc5-922a-72696a03e113", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jan 2021 23:16:50 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "11" + }, + "ResponseBody": { + "jobId": "c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c", + "lastUpdateDateTime": "2021-01-28T23:16:48Z", + "createdDateTime": "2021-01-28T23:16:48Z", + "expirationDateTime": "2021-01-29T23:16:48Z", + "status": "notStarted", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c?$top=2\u0026showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-5436248d2ee1ba42b93889ebbae02a5c-9b928cb0a15a064d-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "2cba1531821bff99a027b9ded5b94dc9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "3691e18e-cdeb-4255-b27e-6d917f8f5fd2", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:49 GMT", + "Date": "Thu, 28 Jan 2021 23:16:52 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "50" + "x-envoy-upstream-service-time": "7" }, "ResponseBody": { - "jobId": "bb124fb1-b95b-439a-8aa9-7a3e47acdb20", - "lastUpdateDateTime": "2021-01-27T01:17:49Z", - "createdDateTime": "2021-01-27T01:17:48Z", - "expirationDateTime": "2021-01-28T01:17:48Z", + "jobId": "c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c", + "lastUpdateDateTime": "2021-01-28T23:16:52Z", + "createdDateTime": "2021-01-28T23:16:48Z", + "expirationDateTime": "2021-01-29T23:16:48Z", + "status": "running", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c?$top=2\u0026showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-5436248d2ee1ba42b93889ebbae02a5c-02078d7a572b8443-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "439219099c4e763dfe70aebdcbcf23f6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "a09b4828-0349-43a3-a33a-158d9f6a97c7", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jan 2021 23:16:53 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "70" + }, + "ResponseBody": { + "jobId": "c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c", + "lastUpdateDateTime": "2021-01-28T23:16:52Z", + "createdDateTime": "2021-01-28T23:16:48Z", + "expirationDateTime": "2021-01-29T23:16:48Z", "status": "succeeded", "errors": [], "results": { @@ -385,36 +478,36 @@ "errors": [], "modelVersion": "2020-09-03" }, - "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/bb124fb1-b95b-439a-8aa9-7a3e47acdb20?$skip=2\u0026$top=2" + "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c?$skip=2\u0026$top=2" } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/bb124fb1-b95b-439a-8aa9-7a3e47acdb20?$top=2\u0026$skip=2\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c?$top=2\u0026$skip=2\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-9563e084466f0242baae6a8a62395252-9a2ba9e00bc40b48-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "6bedcd03a2427620384078dbb7b003f2", + "traceparent": "00-19167d558e4dd449a1a698766f3eb9e4-d2bd79a89469ab42-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "c6eb26e66141811d33eeca1ae941a17e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "e852f698-8ed3-4aeb-a76d-40fc28abd3b4", + "apim-request-id": "0f77ce70-873a-45ef-afc7-3c5a84db7798", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:49 GMT", + "Date": "Thu, 28 Jan 2021 23:16:53 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "55" + "x-envoy-upstream-service-time": "59" }, "ResponseBody": { - "jobId": "bb124fb1-b95b-439a-8aa9-7a3e47acdb20", - "lastUpdateDateTime": "2021-01-27T01:17:49Z", - "createdDateTime": "2021-01-27T01:17:48Z", - "expirationDateTime": "2021-01-28T01:17:48Z", + "jobId": "c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c", + "lastUpdateDateTime": "2021-01-28T23:16:52Z", + "createdDateTime": "2021-01-28T23:16:48Z", + "expirationDateTime": "2021-01-29T23:16:48Z", "status": "succeeded", "errors": [], "results": { @@ -663,36 +756,36 @@ "errors": [], "modelVersion": "2020-09-03" }, - "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/bb124fb1-b95b-439a-8aa9-7a3e47acdb20?$skip=4\u0026$top=2" + "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c?$skip=4\u0026$top=2" } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/bb124fb1-b95b-439a-8aa9-7a3e47acdb20?$top=2\u0026$skip=4\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c?$top=2\u0026$skip=4\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-55aade2af580394e9e5e7e749a0ce7a8-62c3dae9ff9f5c47-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "2cba1531821bff99a027b9ded5b94dc9", + "traceparent": "00-58cf82c2ab1e0844869c23cbf5afd119-11098fec8fa22d43-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "9dd2aef2c01e95a3d8442daad3dc33d1", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "6600b1e9-a4f9-48fa-a1e3-baef2ddc7adf", + "apim-request-id": "da889e8e-7131-4673-853e-d4814f109d1c", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:50 GMT", + "Date": "Thu, 28 Jan 2021 23:16:54 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "545" + "x-envoy-upstream-service-time": "75" }, "ResponseBody": { - "jobId": "bb124fb1-b95b-439a-8aa9-7a3e47acdb20", - "lastUpdateDateTime": "2021-01-27T01:17:49Z", - "createdDateTime": "2021-01-27T01:17:48Z", - "expirationDateTime": "2021-01-28T01:17:48Z", + "jobId": "c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c", + "lastUpdateDateTime": "2021-01-28T23:16:52Z", + "createdDateTime": "2021-01-28T23:16:48Z", + "expirationDateTime": "2021-01-29T23:16:48Z", "status": "succeeded", "errors": [], "results": { @@ -941,36 +1034,36 @@ "errors": [], "modelVersion": "2020-09-03" }, - "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/bb124fb1-b95b-439a-8aa9-7a3e47acdb20?$skip=6\u0026$top=2" + "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c?$skip=6\u0026$top=2" } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/bb124fb1-b95b-439a-8aa9-7a3e47acdb20?$top=2\u0026$skip=6\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c?$top=2\u0026$skip=6\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-25b003dffb56cf49bb1c00e6480b4ae9-367419b8f82fd04d-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "439219099c4e763dfe70aebdcbcf23f6", + "traceparent": "00-0fcf75fff6f3714794d64af0b1e3bcf7-3741389588b5f248-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "aef8c20486cda788fc100f60d1228dbd", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "c5b47541-7543-4188-b08d-8fdf9e83c89a", + "apim-request-id": "3f2240c1-bc49-4254-aa42-895feff85a7a", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:50 GMT", + "Date": "Thu, 28 Jan 2021 23:16:56 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "59" + "x-envoy-upstream-service-time": "1633" }, "ResponseBody": { - "jobId": "bb124fb1-b95b-439a-8aa9-7a3e47acdb20", - "lastUpdateDateTime": "2021-01-27T01:17:49Z", - "createdDateTime": "2021-01-27T01:17:48Z", - "expirationDateTime": "2021-01-28T01:17:48Z", + "jobId": "c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c", + "lastUpdateDateTime": "2021-01-28T23:16:52Z", + "createdDateTime": "2021-01-28T23:16:48Z", + "expirationDateTime": "2021-01-29T23:16:48Z", "status": "succeeded", "errors": [], "results": { @@ -1219,36 +1312,36 @@ "errors": [], "modelVersion": "2020-09-03" }, - "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/bb124fb1-b95b-439a-8aa9-7a3e47acdb20?$skip=8\u0026$top=2" + "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c?$skip=8\u0026$top=2" } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/bb124fb1-b95b-439a-8aa9-7a3e47acdb20?$top=2\u0026$skip=8\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c?$top=2\u0026$skip=8\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-075b1b66a0c6ef4a91c5056a2c0b66a1-382695d03c366b4b-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "c6eb26e66141811d33eeca1ae941a17e", + "traceparent": "00-bfcb1d6981b06448a1e85faa45ef133d-3e8fe5e695e7a34a-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "1cca2fce85fd26d88355eefd3372ae57", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "8f65048b-2bb1-48f7-b45b-c42625458ecb", + "apim-request-id": "dbf39f5d-c149-4fc0-a8dc-1d68a762e5d0", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:51 GMT", + "Date": "Thu, 28 Jan 2021 23:16:56 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "130" + "x-envoy-upstream-service-time": "182" }, "ResponseBody": { - "jobId": "bb124fb1-b95b-439a-8aa9-7a3e47acdb20", - "lastUpdateDateTime": "2021-01-27T01:17:49Z", - "createdDateTime": "2021-01-27T01:17:48Z", - "expirationDateTime": "2021-01-28T01:17:48Z", + "jobId": "c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c", + "lastUpdateDateTime": "2021-01-28T23:16:52Z", + "createdDateTime": "2021-01-28T23:16:48Z", + "expirationDateTime": "2021-01-29T23:16:48Z", "status": "succeeded", "errors": [], "results": { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithPaginationAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithPaginationAsync.json index 7f3def2d9d4af..0b9232efd357b 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithPaginationAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithPaginationAsync.json @@ -8,8 +8,8 @@ "Content-Length": "1395", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-1818a5602c6edd45b4a88cba0cf8840f-461b1ea6e1092a42-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-7dc60986b645784dbbb84fdc7b83e293-bfa808aa3b2edc4c-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "f142919ab8153bebc5d9f5272ba0209d", "x-ms-return-client-request-id": "true" }, @@ -69,74 +69,167 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "80671448-dd4b-410c-a93c-12fff57885f4", - "Date": "Wed, 27 Jan 2021 01:18:11 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2a838af3-1eae-4880-8a22-388b6c4356e8", + "apim-request-id": "dd0015e6-8ba1-4eef-afd9-8d845c42459c", + "Date": "Thu, 28 Jan 2021 23:17:27 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/e682fd08-0396-486d-ace4-44469f2a4951", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "240" + "x-envoy-upstream-service-time": "230" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2a838af3-1eae-4880-8a22-388b6c4356e8?$top=2\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/e682fd08-0396-486d-ace4-44469f2a4951?$top=2\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-de4ecdce7625f7409f446f4d353d9110-95c8c00eed30ae46-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-afc6dd214fc7d240b0aaefaeba25fb23-9202e7ecca91c84e-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "abea9627e0cd843f9974ee5faa963225", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "c09c1053-e605-409c-90a3-d1de4a900725", + "apim-request-id": "b9370178-825a-4e38-9086-8f93508045e1", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:18:11 GMT", + "Date": "Thu, 28 Jan 2021 23:17:27 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "6" + "x-envoy-upstream-service-time": "9" }, "ResponseBody": { - "jobId": "2a838af3-1eae-4880-8a22-388b6c4356e8", - "lastUpdateDateTime": "2021-01-27T01:18:11Z", - "createdDateTime": "2021-01-27T01:18:11Z", - "expirationDateTime": "2021-01-28T01:18:11Z", - "status": "running", + "jobId": "e682fd08-0396-486d-ace4-44469f2a4951", + "lastUpdateDateTime": "2021-01-28T23:17:28Z", + "createdDateTime": "2021-01-28T23:17:27Z", + "expirationDateTime": "2021-01-29T23:17:27Z", + "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2a838af3-1eae-4880-8a22-388b6c4356e8?$top=2\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/e682fd08-0396-486d-ace4-44469f2a4951?$top=2\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-de4ecdce7625f7409f446f4d353d9110-568e87668bcc3e49-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-afc6dd214fc7d240b0aaefaeba25fb23-c89a90d3186d4941-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "29e58cf2b8b376a1d7b53c264371cd5a", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "fee8b4f1-ffd9-40a4-b95e-78d9a75a0141", + "apim-request-id": "760773ab-f15e-4632-bb3e-329eca2a44cd", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:18:12 GMT", + "Date": "Thu, 28 Jan 2021 23:17:28 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "51" + "x-envoy-upstream-service-time": "9" }, "ResponseBody": { - "jobId": "2a838af3-1eae-4880-8a22-388b6c4356e8", - "lastUpdateDateTime": "2021-01-27T01:18:12Z", - "createdDateTime": "2021-01-27T01:18:11Z", - "expirationDateTime": "2021-01-28T01:18:11Z", + "jobId": "e682fd08-0396-486d-ace4-44469f2a4951", + "lastUpdateDateTime": "2021-01-28T23:17:28Z", + "createdDateTime": "2021-01-28T23:17:27Z", + "expirationDateTime": "2021-01-29T23:17:27Z", + "status": "notStarted", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/e682fd08-0396-486d-ace4-44469f2a4951?$top=2\u0026showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-afc6dd214fc7d240b0aaefaeba25fb23-2c191aeda98d5848-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "ebc37c63c42eb92852bd57a0ca8c902e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "6c6e4503-c815-413d-b5c8-20c74a400a77", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jan 2021 23:17:29 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "9" + }, + "ResponseBody": { + "jobId": "e682fd08-0396-486d-ace4-44469f2a4951", + "lastUpdateDateTime": "2021-01-28T23:17:28Z", + "createdDateTime": "2021-01-28T23:17:27Z", + "expirationDateTime": "2021-01-29T23:17:27Z", + "status": "notStarted", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/e682fd08-0396-486d-ace4-44469f2a4951?$top=2\u0026showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-afc6dd214fc7d240b0aaefaeba25fb23-fd346212eff0784b-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "9f34cfa6f7bb6feaf474d418a4184128", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "9a1c24e1-0e78-4c69-899d-48db54f28f73", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jan 2021 23:17:31 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "8" + }, + "ResponseBody": { + "jobId": "e682fd08-0396-486d-ace4-44469f2a4951", + "lastUpdateDateTime": "2021-01-28T23:17:31Z", + "createdDateTime": "2021-01-28T23:17:27Z", + "expirationDateTime": "2021-01-29T23:17:27Z", + "status": "running", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/e682fd08-0396-486d-ace4-44469f2a4951?$top=2\u0026showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-afc6dd214fc7d240b0aaefaeba25fb23-6cbe9fb07231a546-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "2efb93a746d22ef7642bd7f66001ab4b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "7a8a0c67-e926-449e-a5c4-f607fd0f45a8", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jan 2021 23:17:32 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "77" + }, + "ResponseBody": { + "jobId": "e682fd08-0396-486d-ace4-44469f2a4951", + "lastUpdateDateTime": "2021-01-28T23:17:32Z", + "createdDateTime": "2021-01-28T23:17:27Z", + "expirationDateTime": "2021-01-29T23:17:27Z", "status": "succeeded", "errors": [], "results": { @@ -385,36 +478,36 @@ "errors": [], "modelVersion": "2020-09-03" }, - "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2a838af3-1eae-4880-8a22-388b6c4356e8?$skip=2\u0026$top=2" + "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/e682fd08-0396-486d-ace4-44469f2a4951?$skip=2\u0026$top=2" } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2a838af3-1eae-4880-8a22-388b6c4356e8?$top=2\u0026$skip=2\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/e682fd08-0396-486d-ace4-44469f2a4951?$top=2\u0026$skip=2\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-b31ba1dde9704147a3f79e97846206a0-30d9e48a8f810548-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "ebc37c63c42eb92852bd57a0ca8c902e", + "traceparent": "00-57fadc54e4f89943b3f2f1d37c30acbd-e88c92f8465a3c48-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "747f0d242e3c6c9f9253f6b9ef0f1539", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "39194090-9742-4e01-bc26-926eef0cf1e7", + "apim-request-id": "27728971-2221-4b20-b52e-57b357a3a35f", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:18:13 GMT", + "Date": "Thu, 28 Jan 2021 23:17:32 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "61" + "x-envoy-upstream-service-time": "75" }, "ResponseBody": { - "jobId": "2a838af3-1eae-4880-8a22-388b6c4356e8", - "lastUpdateDateTime": "2021-01-27T01:18:12Z", - "createdDateTime": "2021-01-27T01:18:11Z", - "expirationDateTime": "2021-01-28T01:18:11Z", + "jobId": "e682fd08-0396-486d-ace4-44469f2a4951", + "lastUpdateDateTime": "2021-01-28T23:17:32Z", + "createdDateTime": "2021-01-28T23:17:27Z", + "expirationDateTime": "2021-01-29T23:17:27Z", "status": "succeeded", "errors": [], "results": { @@ -663,36 +756,36 @@ "errors": [], "modelVersion": "2020-09-03" }, - "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2a838af3-1eae-4880-8a22-388b6c4356e8?$skip=4\u0026$top=2" + "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/e682fd08-0396-486d-ace4-44469f2a4951?$skip=4\u0026$top=2" } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2a838af3-1eae-4880-8a22-388b6c4356e8?$top=2\u0026$skip=4\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/e682fd08-0396-486d-ace4-44469f2a4951?$top=2\u0026$skip=4\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-d2adcd81859a3f41a954da02d98c1070-04e2079b19a8b94e-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "9f34cfa6f7bb6feaf474d418a4184128", + "traceparent": "00-745e57342dee1446a8df7f830ab153f3-b787cbad6ba62844-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "36f82f7c62905f5bd8053a8f1ff30ef3", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "ff13dd83-8c1b-4f77-a9c5-ddbb84079104", + "apim-request-id": "08119583-2518-48be-bd24-78df0693dab9", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:18:13 GMT", + "Date": "Thu, 28 Jan 2021 23:17:33 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "67" + "x-envoy-upstream-service-time": "59" }, "ResponseBody": { - "jobId": "2a838af3-1eae-4880-8a22-388b6c4356e8", - "lastUpdateDateTime": "2021-01-27T01:18:12Z", - "createdDateTime": "2021-01-27T01:18:11Z", - "expirationDateTime": "2021-01-28T01:18:11Z", + "jobId": "e682fd08-0396-486d-ace4-44469f2a4951", + "lastUpdateDateTime": "2021-01-28T23:17:32Z", + "createdDateTime": "2021-01-28T23:17:27Z", + "expirationDateTime": "2021-01-29T23:17:27Z", "status": "succeeded", "errors": [], "results": { @@ -941,36 +1034,36 @@ "errors": [], "modelVersion": "2020-09-03" }, - "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2a838af3-1eae-4880-8a22-388b6c4356e8?$skip=6\u0026$top=2" + "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/e682fd08-0396-486d-ace4-44469f2a4951?$skip=6\u0026$top=2" } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2a838af3-1eae-4880-8a22-388b6c4356e8?$top=2\u0026$skip=6\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/e682fd08-0396-486d-ace4-44469f2a4951?$top=2\u0026$skip=6\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-bf802641afbe1443835f6d3840683184-873f2e89c1c76243-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "2efb93a746d22ef7642bd7f66001ab4b", + "traceparent": "00-8cbe80f4fe503b4b9cb8dc98d98c1ab5-e021a8abbd6cd548-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "96f489c8cc9879ebf48f9c7e4f3d3e54", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "0e990587-b208-49c2-b526-b3d4f4a5085f", + "apim-request-id": "4c28bdd8-e27b-4eb9-8e77-1193aaa64a6e", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:18:13 GMT", + "Date": "Thu, 28 Jan 2021 23:17:33 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "81" + "x-envoy-upstream-service-time": "68" }, "ResponseBody": { - "jobId": "2a838af3-1eae-4880-8a22-388b6c4356e8", - "lastUpdateDateTime": "2021-01-27T01:18:12Z", - "createdDateTime": "2021-01-27T01:18:11Z", - "expirationDateTime": "2021-01-28T01:18:11Z", + "jobId": "e682fd08-0396-486d-ace4-44469f2a4951", + "lastUpdateDateTime": "2021-01-28T23:17:32Z", + "createdDateTime": "2021-01-28T23:17:27Z", + "expirationDateTime": "2021-01-29T23:17:27Z", "status": "succeeded", "errors": [], "results": { @@ -1219,36 +1312,36 @@ "errors": [], "modelVersion": "2020-09-03" }, - "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2a838af3-1eae-4880-8a22-388b6c4356e8?$skip=8\u0026$top=2" + "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/e682fd08-0396-486d-ace4-44469f2a4951?$skip=8\u0026$top=2" } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2a838af3-1eae-4880-8a22-388b6c4356e8?$top=2\u0026$skip=8\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/e682fd08-0396-486d-ace4-44469f2a4951?$top=2\u0026$skip=8\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-532190e91aae2844b55e60b50dad7584-94da578f274bf64c-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "747f0d242e3c6c9f9253f6b9ef0f1539", + "traceparent": "00-0bac2f9f6fc54d499496063d6b68044d-3703f5d58fe4d34a-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "317a9d167508c1bab11f9b36f30f4c9e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "b9b180dc-3059-435f-bf99-9435286625c9", + "apim-request-id": "344912f7-d66c-4008-a154-32393f5db7a9", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:18:14 GMT", + "Date": "Thu, 28 Jan 2021 23:17:33 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "72" + "x-envoy-upstream-service-time": "61" }, "ResponseBody": { - "jobId": "2a838af3-1eae-4880-8a22-388b6c4356e8", - "lastUpdateDateTime": "2021-01-27T01:18:12Z", - "createdDateTime": "2021-01-27T01:18:11Z", - "expirationDateTime": "2021-01-28T01:18:11Z", + "jobId": "e682fd08-0396-486d-ace4-44469f2a4951", + "lastUpdateDateTime": "2021-01-28T23:17:32Z", + "createdDateTime": "2021-01-28T23:17:27Z", + "expirationDateTime": "2021-01-29T23:17:27Z", "status": "succeeded", "errors": [], "results": { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithStatisticsTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithStatisticsTest.json index 00e135dc4cc6f..b202221e98d08 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithStatisticsTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithStatisticsTest.json @@ -8,8 +8,8 @@ "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-134e503ef0ba0b468ee3ae4d843f903f-29b6b9acc18f4b4a-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-59767376e49db64aa854131b53690e90-3d7a804027fa1d43-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "8ec3c90b7880bba55b75abdb84a19321", "x-ms-return-client-request-id": "true" }, @@ -29,72 +29,72 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "94b1f6ba-78ad-4ded-9f32-cf42dda2e37d", - "Date": "Wed, 27 Jan 2021 01:17:51 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8bac188b-871f-42ac-9269-a7ab6c395640", + "apim-request-id": "72e4f1dc-1d42-4356-9578-c080708e5f9c", + "Date": "Thu, 28 Jan 2021 23:16:57 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/05094d70-79bb-49b3-a086-64dd9a75f14a", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "186" + "x-envoy-upstream-service-time": "99" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8bac188b-871f-42ac-9269-a7ab6c395640?showStats=true", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/05094d70-79bb-49b3-a086-64dd9a75f14a?showStats=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "56fe48ebb003114e437c6f5c1a23295d", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "68ab8c1d-48df-4757-8a4e-589fdfe432f8", + "apim-request-id": "f2d3b788-b049-4d45-94ca-2acf7838847f", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:51 GMT", + "Date": "Thu, 28 Jan 2021 23:16:57 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "6" + "x-envoy-upstream-service-time": "9" }, "ResponseBody": { - "jobId": "8bac188b-871f-42ac-9269-a7ab6c395640", - "lastUpdateDateTime": "2021-01-27T01:17:52Z", - "createdDateTime": "2021-01-27T01:17:52Z", - "expirationDateTime": "2021-01-28T01:17:52Z", - "status": "notStarted", + "jobId": "05094d70-79bb-49b3-a086-64dd9a75f14a", + "lastUpdateDateTime": "2021-01-28T23:16:57Z", + "createdDateTime": "2021-01-28T23:16:57Z", + "expirationDateTime": "2021-01-29T23:16:57Z", + "status": "running", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8bac188b-871f-42ac-9269-a7ab6c395640?showStats=true", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/05094d70-79bb-49b3-a086-64dd9a75f14a?showStats=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "e2f12bb5a78a8d006ec8d88886d7049c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "b64d4677-15de-485e-89d7-1d8aa0600b06", + "apim-request-id": "f801b8d3-8530-4b12-87a8-144db66711a9", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:52 GMT", + "Date": "Thu, 28 Jan 2021 23:16:58 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "53" + "x-envoy-upstream-service-time": "62" }, "ResponseBody": { - "jobId": "8bac188b-871f-42ac-9269-a7ab6c395640", - "lastUpdateDateTime": "2021-01-27T01:17:53Z", - "createdDateTime": "2021-01-27T01:17:52Z", - "expirationDateTime": "2021-01-28T01:17:52Z", + "jobId": "05094d70-79bb-49b3-a086-64dd9a75f14a", + "lastUpdateDateTime": "2021-01-28T23:16:57Z", + "createdDateTime": "2021-01-28T23:16:57Z", + "expirationDateTime": "2021-01-29T23:16:57Z", "status": "succeeded", "errors": [], "results": { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithStatisticsTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithStatisticsTestAsync.json index 22437292abaee..7db5193d0c9dd 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithStatisticsTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithStatisticsTestAsync.json @@ -8,8 +8,8 @@ "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-25211c69545a6746ab7360505b0e157c-82de3410291ab14b-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-294ed5f1d279314e86216f257c8c2774-b17a4117eb4b9441-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "cb820fc464b79dcc9212329646bf509a", "x-ms-return-client-request-id": "true" }, @@ -29,102 +29,102 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "fc1b2d0b-9377-4be0-9b55-af104f20c5e8", - "Date": "Wed, 27 Jan 2021 01:18:14 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c5ab38dc-2eb6-4e37-b11e-a8f990f048fc", + "apim-request-id": "1292f0db-b90e-4cc8-a36c-45a573ff4ddf", + "Date": "Thu, 28 Jan 2021 23:17:34 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/bffee8be-3645-420f-951e-ee62fd25e5f0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "116" + "x-envoy-upstream-service-time": "88" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c5ab38dc-2eb6-4e37-b11e-a8f990f048fc?showStats=true", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/bffee8be-3645-420f-951e-ee62fd25e5f0?showStats=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "08d18cd76fa1ba75ad5e5758b7de00e4", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "f6bf81fd-0cb4-4bef-a0d2-d3bc5644ee96", + "apim-request-id": "399e5c0d-7139-4aac-9113-7c26a3c5b307", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:18:14 GMT", + "Date": "Thu, 28 Jan 2021 23:17:34 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "8" + "x-envoy-upstream-service-time": "9" }, "ResponseBody": { - "jobId": "c5ab38dc-2eb6-4e37-b11e-a8f990f048fc", - "lastUpdateDateTime": "2021-01-27T01:18:15Z", - "createdDateTime": "2021-01-27T01:18:14Z", - "expirationDateTime": "2021-01-28T01:18:14Z", + "jobId": "bffee8be-3645-420f-951e-ee62fd25e5f0", + "lastUpdateDateTime": "2021-01-28T23:17:35Z", + "createdDateTime": "2021-01-28T23:17:35Z", + "expirationDateTime": "2021-01-29T23:17:35Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c5ab38dc-2eb6-4e37-b11e-a8f990f048fc?showStats=true", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/bffee8be-3645-420f-951e-ee62fd25e5f0?showStats=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "2ac480b3f6758c758bf3f8f60a589915", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "523d1800-dcc8-406c-8d1a-5b460a0b827f", + "apim-request-id": "56723fb4-9a8a-4b6c-8f96-6690d7f1e50a", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:18:15 GMT", + "Date": "Thu, 28 Jan 2021 23:17:35 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", "x-envoy-upstream-service-time": "9" }, "ResponseBody": { - "jobId": "c5ab38dc-2eb6-4e37-b11e-a8f990f048fc", - "lastUpdateDateTime": "2021-01-27T01:18:15Z", - "createdDateTime": "2021-01-27T01:18:14Z", - "expirationDateTime": "2021-01-28T01:18:14Z", - "status": "notStarted", + "jobId": "bffee8be-3645-420f-951e-ee62fd25e5f0", + "lastUpdateDateTime": "2021-01-28T23:17:36Z", + "createdDateTime": "2021-01-28T23:17:35Z", + "expirationDateTime": "2021-01-29T23:17:35Z", + "status": "running", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c5ab38dc-2eb6-4e37-b11e-a8f990f048fc?showStats=true", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/bffee8be-3645-420f-951e-ee62fd25e5f0?showStats=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "4456bc1eb361546e99c71e580d73e5b3", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "db437561-859f-4062-a77a-0a793dcfaa76", + "apim-request-id": "9bce019b-d940-4bbe-8b7c-b80490f717fb", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:18:17 GMT", + "Date": "Thu, 28 Jan 2021 23:17:37 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "66" + "x-envoy-upstream-service-time": "48" }, "ResponseBody": { - "jobId": "c5ab38dc-2eb6-4e37-b11e-a8f990f048fc", - "lastUpdateDateTime": "2021-01-27T01:18:16Z", - "createdDateTime": "2021-01-27T01:18:14Z", - "expirationDateTime": "2021-01-28T01:18:14Z", + "jobId": "bffee8be-3645-420f-951e-ee62fd25e5f0", + "lastUpdateDateTime": "2021-01-28T23:17:36Z", + "createdDateTime": "2021-01-28T23:17:35Z", + "expirationDateTime": "2021-01-29T23:17:35Z", "status": "succeeded", "errors": [], "results": { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesTest.json index dd39264d25770..22fe924351371 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesTest.json @@ -5,97 +5,162 @@ "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", - "Content-Length": "100", + "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-d45af49652d74b48928e76d19d916a09-d2159c12af317147-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-c156c66f18c6f14a980db5b3504b3539-d6295857b9b92f4c-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "e51cbf87a321df02032925de5e6708b4", "x-ms-return-client-request-id": "true" }, "RequestBody": { "documents": [ { - "id": "0", + "id": "1", "text": "Subject is taking 100mg of ibuprofen twice daily", "language": "en" + }, + { + "id": "2", + "text": "Can cause rapid or irregular heartbeat, delirium, panic, psychosis, and heart failure.", + "language": "en" } ] }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "1adaefdb-c485-47bb-8c53-7f8405733072", - "Date": "Wed, 27 Jan 2021 01:17:54 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/a976624f-41ff-4de5-b561-9c6d379c1420", + "apim-request-id": "f6446bc3-b4d0-4369-8ec0-f660db989122", + "Date": "Thu, 28 Jan 2021 23:46:49 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2393eb0c-de17-43d5-9e2e-386c0aa8f4b9", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "81" + "x-envoy-upstream-service-time": "203" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/a976624f-41ff-4de5-b561-9c6d379c1420?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2393eb0c-de17-43d5-9e2e-386c0aa8f4b9?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "2cdb69530701f208f175aa6a97e2593b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "e6b5f243-92b0-4346-a3ca-3aadc1b52b18", + "apim-request-id": "16c35f9b-3175-43a7-aafb-5417e57aebfd", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:54 GMT", + "Date": "Thu, 28 Jan 2021 23:46:50 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "8" + "x-envoy-upstream-service-time": "12" }, "ResponseBody": { - "jobId": "a976624f-41ff-4de5-b561-9c6d379c1420", - "lastUpdateDateTime": "2021-01-27T01:17:54Z", - "createdDateTime": "2021-01-27T01:17:54Z", - "expirationDateTime": "2021-01-28T01:17:54Z", - "status": "running", + "jobId": "2393eb0c-de17-43d5-9e2e-386c0aa8f4b9", + "lastUpdateDateTime": "2021-01-28T23:46:50Z", + "createdDateTime": "2021-01-28T23:46:49Z", + "expirationDateTime": "2021-01-29T23:46:49Z", + "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/a976624f-41ff-4de5-b561-9c6d379c1420?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2393eb0c-de17-43d5-9e2e-386c0aa8f4b9?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "a701cb20bb11a529608aebe12f36a48e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "6745d906-ee37-413e-8ad2-22184cc27a2e", + "apim-request-id": "61c849e2-6ac8-4dc6-b4a5-3e02dd04dad3", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jan 2021 23:46:51 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "9" + }, + "ResponseBody": { + "jobId": "2393eb0c-de17-43d5-9e2e-386c0aa8f4b9", + "lastUpdateDateTime": "2021-01-28T23:46:50Z", + "createdDateTime": "2021-01-28T23:46:49Z", + "expirationDateTime": "2021-01-29T23:46:49Z", + "status": "notStarted", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2393eb0c-de17-43d5-9e2e-386c0aa8f4b9?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "03c09e10ea8d7fc1b629f4abf8984821", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "cf9a20f6-2181-42e2-8321-03ba0cbcb96c", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jan 2021 23:46:52 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "6" + }, + "ResponseBody": { + "jobId": "2393eb0c-de17-43d5-9e2e-386c0aa8f4b9", + "lastUpdateDateTime": "2021-01-28T23:46:50Z", + "createdDateTime": "2021-01-28T23:46:49Z", + "expirationDateTime": "2021-01-29T23:46:49Z", + "status": "notStarted", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2393eb0c-de17-43d5-9e2e-386c0aa8f4b9?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "93bde9d0616598a24035cb771c26c3ba", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "ef4afe6c-1e5f-4053-b3d8-ea40e0683e99", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:55 GMT", + "Date": "Thu, 28 Jan 2021 23:46:53 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "43" + "x-envoy-upstream-service-time": "237" }, "ResponseBody": { - "jobId": "a976624f-41ff-4de5-b561-9c6d379c1420", - "lastUpdateDateTime": "2021-01-27T01:17:54Z", - "createdDateTime": "2021-01-27T01:17:54Z", - "expirationDateTime": "2021-01-28T01:17:54Z", + "jobId": "2393eb0c-de17-43d5-9e2e-386c0aa8f4b9", + "lastUpdateDateTime": "2021-01-28T23:46:53Z", + "createdDateTime": "2021-01-28T23:46:49Z", + "expirationDateTime": "2021-01-29T23:46:49Z", "status": "succeeded", "errors": [], "results": { "documents": [ { - "id": "0", + "id": "1", "entities": [ { "offset": 18, @@ -259,6 +324,789 @@ } ], "warnings": [] + }, + { + "id": "2", + "entities": [ + { + "offset": 10, + "length": 5, + "text": "rapid", + "category": "SymptomOrSign", + "confidenceScore": 0.98, + "isNegated": false, + "links": [ + { + "dataSource": "UMLS", + "id": "C0456962" + }, + { + "dataSource": "AOD", + "id": "0000002744" + }, + { + "dataSource": "CHV", + "id": "0000034666" + }, + { + "dataSource": "LNC", + "id": "LA24868-4" + }, + { + "dataSource": "NCI", + "id": "C65069" + }, + { + "dataSource": "RCD", + "id": "X78xZ" + }, + { + "dataSource": "SNOMEDCT_US", + "id": "255358001" + } + ] + }, + { + "offset": 19, + "length": 19, + "text": "irregular heartbeat", + "category": "SymptomOrSign", + "confidenceScore": 1.0, + "isNegated": false, + "links": [ + { + "dataSource": "UMLS", + "id": "C0003811" + }, + { + "dataSource": "AOD", + "id": "0000005346" + }, + { + "dataSource": "BI", + "id": "BI00057" + }, + { + "dataSource": "CCPSS", + "id": "1017785" + }, + { + "dataSource": "CCS", + "id": "7.2.9" + }, + { + "dataSource": "CCSR_10", + "id": "CIR017" + }, + { + "dataSource": "CHV", + "id": "0000001440" + }, + { + "dataSource": "COSTAR", + "id": "153" + }, + { + "dataSource": "CSP", + "id": "1393-3277" + }, + { + "dataSource": "CST", + "id": "ARRHYTHMIA" + }, + { + "dataSource": "HPO", + "id": "HP:0011675" + }, + { + "dataSource": "ICD10", + "id": "I49.9" + }, + { + "dataSource": "ICD10AM", + "id": "I49.9" + }, + { + "dataSource": "ICD10CM", + "id": "I49.9" + }, + { + "dataSource": "ICD9CM", + "id": "427.9" + }, + { + "dataSource": "ICPC", + "id": "K80" + }, + { + "dataSource": "ICPC2EENG", + "id": "K80" + }, + { + "dataSource": "ICPC2ICD10ENG", + "id": "MTHU033639" + }, + { + "dataSource": "ICPC2P", + "id": "K80012" + }, + { + "dataSource": "LCH", + "id": "U000359" + }, + { + "dataSource": "LCH_NW", + "id": "sh85007430" + }, + { + "dataSource": "LNC", + "id": "LA15419-7" + }, + { + "dataSource": "MDR", + "id": "10003119" + }, + { + "dataSource": "MEDCIN", + "id": "35851" + }, + { + "dataSource": "MEDLINEPLUS", + "id": "147" + }, + { + "dataSource": "MSH", + "id": "D001145" + }, + { + "dataSource": "MTH", + "id": "153" + }, + { + "dataSource": "MTHICD9", + "id": "427.9" + }, + { + "dataSource": "NANDA-I", + "id": "00126" + }, + { + "dataSource": "NCI", + "id": "C2881" + }, + { + "dataSource": "NCI_FDA", + "id": "1721" + }, + { + "dataSource": "NCI_NICHD", + "id": "C2881" + }, + { + "dataSource": "NOC", + "id": "040520" + }, + { + "dataSource": "OMIM", + "id": "115000" + }, + { + "dataSource": "PSY", + "id": "03790" + }, + { + "dataSource": "RCD", + "id": "X77BB" + }, + { + "dataSource": "SNM", + "id": "F-73102" + }, + { + "dataSource": "SNMI", + "id": "D3-30010" + }, + { + "dataSource": "SNOMEDCT_US", + "id": "698247007" + }, + { + "dataSource": "WHO", + "id": "0433" + } + ] + }, + { + "offset": 40, + "length": 8, + "text": "delirium", + "category": "Diagnosis", + "confidenceScore": 0.99, + "isNegated": false, + "links": [ + { + "dataSource": "UMLS", + "id": "C0011206" + }, + { + "dataSource": "AOD", + "id": "0000004328" + }, + { + "dataSource": "CCPSS", + "id": "1017884" + }, + { + "dataSource": "CHV", + "id": "0000003670" + }, + { + "dataSource": "COSTAR", + "id": "U000178" + }, + { + "dataSource": "CSP", + "id": "5003-0016" + }, + { + "dataSource": "CST", + "id": "DELIRIUM" + }, + { + "dataSource": "DSM-5", + "id": "780.09" + }, + { + "dataSource": "DXP", + "id": "U000937" + }, + { + "dataSource": "HPO", + "id": "HP:0031258" + }, + { + "dataSource": "ICD10", + "id": "F05.9" + }, + { + "dataSource": "ICD10AM", + "id": "F05.9" + }, + { + "dataSource": "ICD10CM", + "id": "R41.0" + }, + { + "dataSource": "ICNP", + "id": "10022091" + }, + { + "dataSource": "ICPC2ICD10ENG", + "id": "MTHU022150" + }, + { + "dataSource": "LCH", + "id": "U001289" + }, + { + "dataSource": "LCH_NW", + "id": "sh85036579" + }, + { + "dataSource": "LNC", + "id": "LP89856-6" + }, + { + "dataSource": "MDR", + "id": "10012218" + }, + { + "dataSource": "MEDCIN", + "id": "677" + }, + { + "dataSource": "MEDLINEPLUS", + "id": "5562" + }, + { + "dataSource": "MSH", + "id": "D003693" + }, + { + "dataSource": "NANDA-I", + "id": "02157" + }, + { + "dataSource": "NCI", + "id": "C2981" + }, + { + "dataSource": "NCI_CTCAE", + "id": "E12898" + }, + { + "dataSource": "NCI_CTRP", + "id": "C2981" + }, + { + "dataSource": "NCI_NCI-GLOSS", + "id": "CDR0000450100" + }, + { + "dataSource": "NCI_NICHD", + "id": "C2981" + }, + { + "dataSource": "NOC", + "id": "091213" + }, + { + "dataSource": "OMIM", + "id": "MTHU035152" + }, + { + "dataSource": "PDQ", + "id": "CDR0000042226" + }, + { + "dataSource": "PSY", + "id": "13360" + }, + { + "dataSource": "QMR", + "id": "Q0200089" + }, + { + "dataSource": "RCD", + "id": "XE1Xv" + }, + { + "dataSource": "SNM", + "id": "F-85720" + }, + { + "dataSource": "SNMI", + "id": "D9-20100" + }, + { + "dataSource": "SNOMEDCT_US", + "id": "2776000" + }, + { + "dataSource": "WHO", + "id": "0099" + } + ] + }, + { + "offset": 50, + "length": 5, + "text": "panic", + "category": "Diagnosis", + "confidenceScore": 0.89, + "isNegated": false, + "links": [ + { + "dataSource": "UMLS", + "id": "C0030318" + }, + { + "dataSource": "AOD", + "id": "0000023911" + }, + { + "dataSource": "CHV", + "id": "0000009234" + }, + { + "dataSource": "CST", + "id": "AGITATION" + }, + { + "dataSource": "ICD10CM", + "id": "F41.0" + }, + { + "dataSource": "ICPC2ICD10ENG", + "id": "MTHU057222" + }, + { + "dataSource": "LCH", + "id": "U003458" + }, + { + "dataSource": "LCH_NW", + "id": "sh85097438" + }, + { + "dataSource": "MDR", + "id": "10033670" + }, + { + "dataSource": "MSH", + "id": "D010200" + }, + { + "dataSource": "MTH", + "id": "551" + }, + { + "dataSource": "MTHICD9", + "id": "300.01" + }, + { + "dataSource": "NCI", + "id": "C94438" + }, + { + "dataSource": "NCI_NCI-GLOSS", + "id": "CDR0000454704" + }, + { + "dataSource": "NOC", + "id": "121346" + }, + { + "dataSource": "PSY", + "id": "36260" + }, + { + "dataSource": "RCD", + "id": "Xa3Vj" + }, + { + "dataSource": "SNM", + "id": "F-90880" + }, + { + "dataSource": "SNMI", + "id": "F-92560" + }, + { + "dataSource": "SNOMEDCT_US", + "id": "79823003" + }, + { + "dataSource": "WHO", + "id": "0163" + } + ] + }, + { + "offset": 57, + "length": 9, + "text": "psychosis", + "category": "Diagnosis", + "confidenceScore": 1.0, + "isNegated": false, + "links": [ + { + "dataSource": "UMLS", + "id": "C0033975" + }, + { + "dataSource": "AIR", + "id": "PSYCH" + }, + { + "dataSource": "AOD", + "id": "0000004324" + }, + { + "dataSource": "BI", + "id": "BI00688" + }, + { + "dataSource": "CCPSS", + "id": "1018204" + }, + { + "dataSource": "CHV", + "id": "0000010350" + }, + { + "dataSource": "COSTAR", + "id": "089" + }, + { + "dataSource": "CSP", + "id": "2484-8182" + }, + { + "dataSource": "CST", + "id": "PSYCHOSIS" + }, + { + "dataSource": "DXP", + "id": "U003257" + }, + { + "dataSource": "HPO", + "id": "HP:0000709" + }, + { + "dataSource": "ICD9CM", + "id": "298.9" + }, + { + "dataSource": "ICPC2ICD10ENG", + "id": "MTHU070382" + }, + { + "dataSource": "ICPC2P", + "id": "P98004" + }, + { + "dataSource": "LCH_NW", + "id": "sh85108502" + }, + { + "dataSource": "LNC", + "id": "LA7534-6" + }, + { + "dataSource": "MDR", + "id": "10061920" + }, + { + "dataSource": "MEDCIN", + "id": "364298" + }, + { + "dataSource": "MEDLINEPLUS", + "id": "4180" + }, + { + "dataSource": "MSH", + "id": "D011618" + }, + { + "dataSource": "MTH", + "id": "089" + }, + { + "dataSource": "MTHICD9", + "id": "298.9" + }, + { + "dataSource": "NANDA-I", + "id": "03128" + }, + { + "dataSource": "NCI", + "id": "C78576" + }, + { + "dataSource": "NCI_CTCAE", + "id": "E12954" + }, + { + "dataSource": "NCI_NCI-GLOSS", + "id": "CDR0000450115" + }, + { + "dataSource": "NCI_NICHD", + "id": "C78576" + }, + { + "dataSource": "NOC", + "id": "061619" + }, + { + "dataSource": "OMIM", + "id": "MTHU002910" + }, + { + "dataSource": "PSY", + "id": "41910" + }, + { + "dataSource": "QMR", + "id": "Q0200208" + }, + { + "dataSource": "RCD", + "id": "X00S6" + }, + { + "dataSource": "SNM", + "id": "D-9200" + }, + { + "dataSource": "SNMI", + "id": "D9-72000" + }, + { + "dataSource": "SNOMEDCT_US", + "id": "69322001" + }, + { + "dataSource": "WHO", + "id": "0193" + } + ] + }, + { + "offset": 72, + "length": 13, + "text": "heart failure", + "category": "Diagnosis", + "confidenceScore": 0.99, + "isNegated": false, + "links": [ + { + "dataSource": "UMLS", + "id": "C0018801" + }, + { + "dataSource": "AOD", + "id": "0000005308" + }, + { + "dataSource": "BI", + "id": "BI00019" + }, + { + "dataSource": "CCPSS", + "id": "0017571" + }, + { + "dataSource": "CCS", + "id": "7.2.11.2" + }, + { + "dataSource": "CCSR_10", + "id": "CIR019" + }, + { + "dataSource": "CHV", + "id": "0000005877" + }, + { + "dataSource": "COSTAR", + "id": "U000338" + }, + { + "dataSource": "CSP", + "id": "1393-3587" + }, + { + "dataSource": "CST", + "id": "HEART FAIL" + }, + { + "dataSource": "HPO", + "id": "HP:0001635" + }, + { + "dataSource": "ICD10", + "id": "I50.9" + }, + { + "dataSource": "ICD10AM", + "id": "I50.9" + }, + { + "dataSource": "ICD10CM", + "id": "I50.9" + }, + { + "dataSource": "ICD9CM", + "id": "428.9" + }, + { + "dataSource": "ICPC", + "id": "K77" + }, + { + "dataSource": "ICPC2EENG", + "id": "K77" + }, + { + "dataSource": "ICPC2ICD10ENG", + "id": "MTHU027668" + }, + { + "dataSource": "ICPC2P", + "id": "K77011" + }, + { + "dataSource": "LCH", + "id": "U005616" + }, + { + "dataSource": "LCH_NW", + "id": "sh85059745" + }, + { + "dataSource": "LNC", + "id": "LP269421-6" + }, + { + "dataSource": "MDR", + "id": "10007554" + }, + { + "dataSource": "MEDCIN", + "id": "95724" + }, + { + "dataSource": "MEDLINEPLUS", + "id": "199" + }, + { + "dataSource": "MSH", + "id": "D006333" + }, + { + "dataSource": "MTHICD9", + "id": "428.9" + }, + { + "dataSource": "NCI", + "id": "C50577" + }, + { + "dataSource": "NCI_CTCAE", + "id": "E10124" + }, + { + "dataSource": "NCI_FDA", + "id": "2206" + }, + { + "dataSource": "NCI_NICHD", + "id": "C50577" + }, + { + "dataSource": "OMIM", + "id": "MTHU009472" + }, + { + "dataSource": "RCD", + "id": "G58.." + }, + { + "dataSource": "SNM", + "id": "D-7050" + }, + { + "dataSource": "SNMI", + "id": "D3-16000" + }, + { + "dataSource": "SNOMEDCT_US", + "id": "84114007" + }, + { + "dataSource": "WHO", + "id": "0496" + } + ] + } + ], + "relations": [], + "warnings": [] } ], "errors": [], diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesTestAsync.json index e63fa664c2947..969a75052c7ee 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesTestAsync.json @@ -5,97 +5,162 @@ "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json, text/json", - "Content-Length": "100", + "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-03f45010e7001244aa2b00705b0fc56f-5a153de9115cea4b-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-b675e11c0120ab4d84ef02f94f7edde5-9435e3bff7862546-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "acdb13842ca5b9295fa84adf0c4870a8", "x-ms-return-client-request-id": "true" }, "RequestBody": { "documents": [ { - "id": "0", + "id": "1", "text": "Subject is taking 100mg of ibuprofen twice daily", "language": "en" + }, + { + "id": "2", + "text": "Can cause rapid or irregular heartbeat, delirium, panic, psychosis, and heart failure.", + "language": "en" } ] }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "2b61dd75-9eb8-48b6-9a9d-872e0a3a2933", - "Date": "Wed, 27 Jan 2021 01:18:17 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/7d1b014e-96e6-49b0-b0b2-d350898b3657", + "apim-request-id": "b4fdfda4-ae84-4e50-b13d-85629df6f75e", + "Date": "Thu, 28 Jan 2021 23:46:54 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/4d32399b-c95c-4afe-a910-dd92b98d08fb", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "99" + "x-envoy-upstream-service-time": "516" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/7d1b014e-96e6-49b0-b0b2-d350898b3657?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/4d32399b-c95c-4afe-a910-dd92b98d08fb?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "1181511460ff1ed085a4ba80632c2cfd", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "647c09b0-935e-4fa2-bbac-4d6388c83089", + "apim-request-id": "a0053276-71ed-4f13-91f2-f2eacce1ecb9", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:18:17 GMT", + "Date": "Thu, 28 Jan 2021 23:46:55 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", "x-envoy-upstream-service-time": "6" }, "ResponseBody": { - "jobId": "7d1b014e-96e6-49b0-b0b2-d350898b3657", - "lastUpdateDateTime": "2021-01-27T01:18:18Z", - "createdDateTime": "2021-01-27T01:18:18Z", - "expirationDateTime": "2021-01-28T01:18:18Z", + "jobId": "4d32399b-c95c-4afe-a910-dd92b98d08fb", + "lastUpdateDateTime": "2021-01-28T23:46:55Z", + "createdDateTime": "2021-01-28T23:46:54Z", + "expirationDateTime": "2021-01-29T23:46:54Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/7d1b014e-96e6-49b0-b0b2-d350898b3657?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/4d32399b-c95c-4afe-a910-dd92b98d08fb?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "d0605b7dc709a544ca5e0c1b0401dc1e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "0bb88141-ae99-4a4f-907b-af4b85a1e589", + "apim-request-id": "096f12bb-cf64-49b7-81a6-56debe62a8d1", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jan 2021 23:46:56 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "9" + }, + "ResponseBody": { + "jobId": "4d32399b-c95c-4afe-a910-dd92b98d08fb", + "lastUpdateDateTime": "2021-01-28T23:46:55Z", + "createdDateTime": "2021-01-28T23:46:54Z", + "expirationDateTime": "2021-01-29T23:46:54Z", + "status": "notStarted", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/4d32399b-c95c-4afe-a910-dd92b98d08fb?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "b5e59345e53b24c743bd270071a85633", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "e5bcc553-124c-4f6d-b2f7-216438947549", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jan 2021 23:46:57 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "12" + }, + "ResponseBody": { + "jobId": "4d32399b-c95c-4afe-a910-dd92b98d08fb", + "lastUpdateDateTime": "2021-01-28T23:46:55Z", + "createdDateTime": "2021-01-28T23:46:54Z", + "expirationDateTime": "2021-01-29T23:46:54Z", + "status": "notStarted", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/4d32399b-c95c-4afe-a910-dd92b98d08fb?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "b0624d7ba0e84c9f0cdc46a153b41a84", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "7e744998-9a6a-483a-a8fb-1776641f359c", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:18:18 GMT", + "Date": "Thu, 28 Jan 2021 23:46:58 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "41" + "x-envoy-upstream-service-time": "57" }, "ResponseBody": { - "jobId": "7d1b014e-96e6-49b0-b0b2-d350898b3657", - "lastUpdateDateTime": "2021-01-27T01:18:18Z", - "createdDateTime": "2021-01-27T01:18:18Z", - "expirationDateTime": "2021-01-28T01:18:18Z", + "jobId": "4d32399b-c95c-4afe-a910-dd92b98d08fb", + "lastUpdateDateTime": "2021-01-28T23:46:58Z", + "createdDateTime": "2021-01-28T23:46:54Z", + "expirationDateTime": "2021-01-29T23:46:54Z", "status": "succeeded", "errors": [], "results": { "documents": [ { - "id": "0", + "id": "1", "entities": [ { "offset": 18, @@ -259,6 +324,789 @@ } ], "warnings": [] + }, + { + "id": "2", + "entities": [ + { + "offset": 10, + "length": 5, + "text": "rapid", + "category": "SymptomOrSign", + "confidenceScore": 0.98, + "isNegated": false, + "links": [ + { + "dataSource": "UMLS", + "id": "C0456962" + }, + { + "dataSource": "AOD", + "id": "0000002744" + }, + { + "dataSource": "CHV", + "id": "0000034666" + }, + { + "dataSource": "LNC", + "id": "LA24868-4" + }, + { + "dataSource": "NCI", + "id": "C65069" + }, + { + "dataSource": "RCD", + "id": "X78xZ" + }, + { + "dataSource": "SNOMEDCT_US", + "id": "255358001" + } + ] + }, + { + "offset": 19, + "length": 19, + "text": "irregular heartbeat", + "category": "SymptomOrSign", + "confidenceScore": 1.0, + "isNegated": false, + "links": [ + { + "dataSource": "UMLS", + "id": "C0003811" + }, + { + "dataSource": "AOD", + "id": "0000005346" + }, + { + "dataSource": "BI", + "id": "BI00057" + }, + { + "dataSource": "CCPSS", + "id": "1017785" + }, + { + "dataSource": "CCS", + "id": "7.2.9" + }, + { + "dataSource": "CCSR_10", + "id": "CIR017" + }, + { + "dataSource": "CHV", + "id": "0000001440" + }, + { + "dataSource": "COSTAR", + "id": "153" + }, + { + "dataSource": "CSP", + "id": "1393-3277" + }, + { + "dataSource": "CST", + "id": "ARRHYTHMIA" + }, + { + "dataSource": "HPO", + "id": "HP:0011675" + }, + { + "dataSource": "ICD10", + "id": "I49.9" + }, + { + "dataSource": "ICD10AM", + "id": "I49.9" + }, + { + "dataSource": "ICD10CM", + "id": "I49.9" + }, + { + "dataSource": "ICD9CM", + "id": "427.9" + }, + { + "dataSource": "ICPC", + "id": "K80" + }, + { + "dataSource": "ICPC2EENG", + "id": "K80" + }, + { + "dataSource": "ICPC2ICD10ENG", + "id": "MTHU033639" + }, + { + "dataSource": "ICPC2P", + "id": "K80012" + }, + { + "dataSource": "LCH", + "id": "U000359" + }, + { + "dataSource": "LCH_NW", + "id": "sh85007430" + }, + { + "dataSource": "LNC", + "id": "LA15419-7" + }, + { + "dataSource": "MDR", + "id": "10003119" + }, + { + "dataSource": "MEDCIN", + "id": "35851" + }, + { + "dataSource": "MEDLINEPLUS", + "id": "147" + }, + { + "dataSource": "MSH", + "id": "D001145" + }, + { + "dataSource": "MTH", + "id": "153" + }, + { + "dataSource": "MTHICD9", + "id": "427.9" + }, + { + "dataSource": "NANDA-I", + "id": "00126" + }, + { + "dataSource": "NCI", + "id": "C2881" + }, + { + "dataSource": "NCI_FDA", + "id": "1721" + }, + { + "dataSource": "NCI_NICHD", + "id": "C2881" + }, + { + "dataSource": "NOC", + "id": "040520" + }, + { + "dataSource": "OMIM", + "id": "115000" + }, + { + "dataSource": "PSY", + "id": "03790" + }, + { + "dataSource": "RCD", + "id": "X77BB" + }, + { + "dataSource": "SNM", + "id": "F-73102" + }, + { + "dataSource": "SNMI", + "id": "D3-30010" + }, + { + "dataSource": "SNOMEDCT_US", + "id": "698247007" + }, + { + "dataSource": "WHO", + "id": "0433" + } + ] + }, + { + "offset": 40, + "length": 8, + "text": "delirium", + "category": "Diagnosis", + "confidenceScore": 0.99, + "isNegated": false, + "links": [ + { + "dataSource": "UMLS", + "id": "C0011206" + }, + { + "dataSource": "AOD", + "id": "0000004328" + }, + { + "dataSource": "CCPSS", + "id": "1017884" + }, + { + "dataSource": "CHV", + "id": "0000003670" + }, + { + "dataSource": "COSTAR", + "id": "U000178" + }, + { + "dataSource": "CSP", + "id": "5003-0016" + }, + { + "dataSource": "CST", + "id": "DELIRIUM" + }, + { + "dataSource": "DSM-5", + "id": "780.09" + }, + { + "dataSource": "DXP", + "id": "U000937" + }, + { + "dataSource": "HPO", + "id": "HP:0031258" + }, + { + "dataSource": "ICD10", + "id": "F05.9" + }, + { + "dataSource": "ICD10AM", + "id": "F05.9" + }, + { + "dataSource": "ICD10CM", + "id": "R41.0" + }, + { + "dataSource": "ICNP", + "id": "10022091" + }, + { + "dataSource": "ICPC2ICD10ENG", + "id": "MTHU022150" + }, + { + "dataSource": "LCH", + "id": "U001289" + }, + { + "dataSource": "LCH_NW", + "id": "sh85036579" + }, + { + "dataSource": "LNC", + "id": "LP89856-6" + }, + { + "dataSource": "MDR", + "id": "10012218" + }, + { + "dataSource": "MEDCIN", + "id": "677" + }, + { + "dataSource": "MEDLINEPLUS", + "id": "5562" + }, + { + "dataSource": "MSH", + "id": "D003693" + }, + { + "dataSource": "NANDA-I", + "id": "02157" + }, + { + "dataSource": "NCI", + "id": "C2981" + }, + { + "dataSource": "NCI_CTCAE", + "id": "E12898" + }, + { + "dataSource": "NCI_CTRP", + "id": "C2981" + }, + { + "dataSource": "NCI_NCI-GLOSS", + "id": "CDR0000450100" + }, + { + "dataSource": "NCI_NICHD", + "id": "C2981" + }, + { + "dataSource": "NOC", + "id": "091213" + }, + { + "dataSource": "OMIM", + "id": "MTHU035152" + }, + { + "dataSource": "PDQ", + "id": "CDR0000042226" + }, + { + "dataSource": "PSY", + "id": "13360" + }, + { + "dataSource": "QMR", + "id": "Q0200089" + }, + { + "dataSource": "RCD", + "id": "XE1Xv" + }, + { + "dataSource": "SNM", + "id": "F-85720" + }, + { + "dataSource": "SNMI", + "id": "D9-20100" + }, + { + "dataSource": "SNOMEDCT_US", + "id": "2776000" + }, + { + "dataSource": "WHO", + "id": "0099" + } + ] + }, + { + "offset": 50, + "length": 5, + "text": "panic", + "category": "Diagnosis", + "confidenceScore": 0.89, + "isNegated": false, + "links": [ + { + "dataSource": "UMLS", + "id": "C0030318" + }, + { + "dataSource": "AOD", + "id": "0000023911" + }, + { + "dataSource": "CHV", + "id": "0000009234" + }, + { + "dataSource": "CST", + "id": "AGITATION" + }, + { + "dataSource": "ICD10CM", + "id": "F41.0" + }, + { + "dataSource": "ICPC2ICD10ENG", + "id": "MTHU057222" + }, + { + "dataSource": "LCH", + "id": "U003458" + }, + { + "dataSource": "LCH_NW", + "id": "sh85097438" + }, + { + "dataSource": "MDR", + "id": "10033670" + }, + { + "dataSource": "MSH", + "id": "D010200" + }, + { + "dataSource": "MTH", + "id": "551" + }, + { + "dataSource": "MTHICD9", + "id": "300.01" + }, + { + "dataSource": "NCI", + "id": "C94438" + }, + { + "dataSource": "NCI_NCI-GLOSS", + "id": "CDR0000454704" + }, + { + "dataSource": "NOC", + "id": "121346" + }, + { + "dataSource": "PSY", + "id": "36260" + }, + { + "dataSource": "RCD", + "id": "Xa3Vj" + }, + { + "dataSource": "SNM", + "id": "F-90880" + }, + { + "dataSource": "SNMI", + "id": "F-92560" + }, + { + "dataSource": "SNOMEDCT_US", + "id": "79823003" + }, + { + "dataSource": "WHO", + "id": "0163" + } + ] + }, + { + "offset": 57, + "length": 9, + "text": "psychosis", + "category": "Diagnosis", + "confidenceScore": 1.0, + "isNegated": false, + "links": [ + { + "dataSource": "UMLS", + "id": "C0033975" + }, + { + "dataSource": "AIR", + "id": "PSYCH" + }, + { + "dataSource": "AOD", + "id": "0000004324" + }, + { + "dataSource": "BI", + "id": "BI00688" + }, + { + "dataSource": "CCPSS", + "id": "1018204" + }, + { + "dataSource": "CHV", + "id": "0000010350" + }, + { + "dataSource": "COSTAR", + "id": "089" + }, + { + "dataSource": "CSP", + "id": "2484-8182" + }, + { + "dataSource": "CST", + "id": "PSYCHOSIS" + }, + { + "dataSource": "DXP", + "id": "U003257" + }, + { + "dataSource": "HPO", + "id": "HP:0000709" + }, + { + "dataSource": "ICD9CM", + "id": "298.9" + }, + { + "dataSource": "ICPC2ICD10ENG", + "id": "MTHU070382" + }, + { + "dataSource": "ICPC2P", + "id": "P98004" + }, + { + "dataSource": "LCH_NW", + "id": "sh85108502" + }, + { + "dataSource": "LNC", + "id": "LA7534-6" + }, + { + "dataSource": "MDR", + "id": "10061920" + }, + { + "dataSource": "MEDCIN", + "id": "364298" + }, + { + "dataSource": "MEDLINEPLUS", + "id": "4180" + }, + { + "dataSource": "MSH", + "id": "D011618" + }, + { + "dataSource": "MTH", + "id": "089" + }, + { + "dataSource": "MTHICD9", + "id": "298.9" + }, + { + "dataSource": "NANDA-I", + "id": "03128" + }, + { + "dataSource": "NCI", + "id": "C78576" + }, + { + "dataSource": "NCI_CTCAE", + "id": "E12954" + }, + { + "dataSource": "NCI_NCI-GLOSS", + "id": "CDR0000450115" + }, + { + "dataSource": "NCI_NICHD", + "id": "C78576" + }, + { + "dataSource": "NOC", + "id": "061619" + }, + { + "dataSource": "OMIM", + "id": "MTHU002910" + }, + { + "dataSource": "PSY", + "id": "41910" + }, + { + "dataSource": "QMR", + "id": "Q0200208" + }, + { + "dataSource": "RCD", + "id": "X00S6" + }, + { + "dataSource": "SNM", + "id": "D-9200" + }, + { + "dataSource": "SNMI", + "id": "D9-72000" + }, + { + "dataSource": "SNOMEDCT_US", + "id": "69322001" + }, + { + "dataSource": "WHO", + "id": "0193" + } + ] + }, + { + "offset": 72, + "length": 13, + "text": "heart failure", + "category": "Diagnosis", + "confidenceScore": 0.99, + "isNegated": false, + "links": [ + { + "dataSource": "UMLS", + "id": "C0018801" + }, + { + "dataSource": "AOD", + "id": "0000005308" + }, + { + "dataSource": "BI", + "id": "BI00019" + }, + { + "dataSource": "CCPSS", + "id": "0017571" + }, + { + "dataSource": "CCS", + "id": "7.2.11.2" + }, + { + "dataSource": "CCSR_10", + "id": "CIR019" + }, + { + "dataSource": "CHV", + "id": "0000005877" + }, + { + "dataSource": "COSTAR", + "id": "U000338" + }, + { + "dataSource": "CSP", + "id": "1393-3587" + }, + { + "dataSource": "CST", + "id": "HEART FAIL" + }, + { + "dataSource": "HPO", + "id": "HP:0001635" + }, + { + "dataSource": "ICD10", + "id": "I50.9" + }, + { + "dataSource": "ICD10AM", + "id": "I50.9" + }, + { + "dataSource": "ICD10CM", + "id": "I50.9" + }, + { + "dataSource": "ICD9CM", + "id": "428.9" + }, + { + "dataSource": "ICPC", + "id": "K77" + }, + { + "dataSource": "ICPC2EENG", + "id": "K77" + }, + { + "dataSource": "ICPC2ICD10ENG", + "id": "MTHU027668" + }, + { + "dataSource": "ICPC2P", + "id": "K77011" + }, + { + "dataSource": "LCH", + "id": "U005616" + }, + { + "dataSource": "LCH_NW", + "id": "sh85059745" + }, + { + "dataSource": "LNC", + "id": "LP269421-6" + }, + { + "dataSource": "MDR", + "id": "10007554" + }, + { + "dataSource": "MEDCIN", + "id": "95724" + }, + { + "dataSource": "MEDLINEPLUS", + "id": "199" + }, + { + "dataSource": "MSH", + "id": "D006333" + }, + { + "dataSource": "MTHICD9", + "id": "428.9" + }, + { + "dataSource": "NCI", + "id": "C50577" + }, + { + "dataSource": "NCI_CTCAE", + "id": "E10124" + }, + { + "dataSource": "NCI_FDA", + "id": "2206" + }, + { + "dataSource": "NCI_NICHD", + "id": "C50577" + }, + { + "dataSource": "OMIM", + "id": "MTHU009472" + }, + { + "dataSource": "RCD", + "id": "G58.." + }, + { + "dataSource": "SNM", + "id": "D-7050" + }, + { + "dataSource": "SNMI", + "id": "D3-16000" + }, + { + "dataSource": "SNOMEDCT_US", + "id": "84114007" + }, + { + "dataSource": "WHO", + "id": "0496" + } + ] + } + ], + "relations": [], + "warnings": [] } ], "errors": [], diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithLanguageTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithLanguageTest.json index bef6110fddbd6..cf4ed81602542 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithLanguageTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithLanguageTest.json @@ -8,8 +8,8 @@ "Content-Length": "100", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-ac17d41d36af67498b2b44a21f405e85-a98b17ae0ba3e242-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-ef4dd2eb1c2e604d80d42d69b9055b33-4ec6f2f1e6a6404f-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "0e649e128b084513c9c62e584c5f813b", "x-ms-return-client-request-id": "true" }, @@ -24,72 +24,102 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "8d8b7ab3-a0c1-4dee-a9a6-e45ace113091", - "Date": "Wed, 27 Jan 2021 01:17:56 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/ebd8a601-c3a7-49d9-95ef-3613b476acbf", + "apim-request-id": "1e84f064-0697-4f80-94ec-14e2c46c72ea", + "Date": "Thu, 28 Jan 2021 23:17:02 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/4fdada86-7cf4-4506-ad45-275f813d53c0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "133" + "x-envoy-upstream-service-time": "102" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/ebd8a601-c3a7-49d9-95ef-3613b476acbf?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/4fdada86-7cf4-4506-ad45-275f813d53c0?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "796705c1528f3adf8bba34f0a8f2bd37", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "3525c400-ec57-427c-a3f0-48fe4b78010a", + "apim-request-id": "551a8196-281f-4895-b3a1-9a6667d76d60", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:56 GMT", + "Date": "Thu, 28 Jan 2021 23:17:02 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "6" + "x-envoy-upstream-service-time": "9" }, "ResponseBody": { - "jobId": "ebd8a601-c3a7-49d9-95ef-3613b476acbf", - "lastUpdateDateTime": "2021-01-27T01:17:56Z", - "createdDateTime": "2021-01-27T01:17:56Z", - "expirationDateTime": "2021-01-28T01:17:56Z", - "status": "running", + "jobId": "4fdada86-7cf4-4506-ad45-275f813d53c0", + "lastUpdateDateTime": "2021-01-28T23:17:02Z", + "createdDateTime": "2021-01-28T23:17:02Z", + "expirationDateTime": "2021-01-29T23:17:02Z", + "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/ebd8a601-c3a7-49d9-95ef-3613b476acbf?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/4fdada86-7cf4-4506-ad45-275f813d53c0?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "740ea8ad2ce006c130b149d1ae645358", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "19866876-89b4-491a-8f3c-fbc2970afd08", + "apim-request-id": "0f6f751b-03d5-4bb1-9208-456538423c2f", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jan 2021 23:17:03 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "9" + }, + "ResponseBody": { + "jobId": "4fdada86-7cf4-4506-ad45-275f813d53c0", + "lastUpdateDateTime": "2021-01-28T23:17:03Z", + "createdDateTime": "2021-01-28T23:17:02Z", + "expirationDateTime": "2021-01-29T23:17:02Z", + "status": "running", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/4fdada86-7cf4-4506-ad45-275f813d53c0?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "07effce6ecdcc068be2a834d57229cd7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "95b4fcb6-576b-42c1-9d78-1435c305247e", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:57 GMT", + "Date": "Thu, 28 Jan 2021 23:17:04 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "39" + "x-envoy-upstream-service-time": "48" }, "ResponseBody": { - "jobId": "ebd8a601-c3a7-49d9-95ef-3613b476acbf", - "lastUpdateDateTime": "2021-01-27T01:17:56Z", - "createdDateTime": "2021-01-27T01:17:56Z", - "expirationDateTime": "2021-01-28T01:17:56Z", + "jobId": "4fdada86-7cf4-4506-ad45-275f813d53c0", + "lastUpdateDateTime": "2021-01-28T23:17:04Z", + "createdDateTime": "2021-01-28T23:17:02Z", + "expirationDateTime": "2021-01-29T23:17:02Z", "status": "succeeded", "errors": [], "results": { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithLanguageTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithLanguageTestAsync.json index 3aab04b198915..b746800da2645 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithLanguageTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithLanguageTestAsync.json @@ -8,8 +8,8 @@ "Content-Length": "100", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-b9b5ec91e284564b92d4dc6268504c89-9f020f9c8ae3fd43-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-f609ef834ea3b543b8c9d774f29de5e3-c4547a85b28c5e4c-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "ac50657e0564f29f4cf677ed0a13f18a", "x-ms-return-client-request-id": "true" }, @@ -24,102 +24,72 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "cccdd2da-f324-4979-a031-bac344669e39", - "Date": "Wed, 27 Jan 2021 01:18:19 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/7a083530-8f70-4901-957d-d1bf35439a15", + "apim-request-id": "45478fd4-f1c3-43c4-8944-93793fb572aa", + "Date": "Thu, 28 Jan 2021 23:17:42 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/3d8afffe-9fcc-4f83-8e8a-9c7182e08019", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "156" + "x-envoy-upstream-service-time": "90" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/7a083530-8f70-4901-957d-d1bf35439a15?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/3d8afffe-9fcc-4f83-8e8a-9c7182e08019?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "ee06e8ec9851bf144fa0b3348eac9147", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "8627f9a4-f347-44d7-b044-53811cb6032e", + "apim-request-id": "7bf13a21-e7ba-4026-b14a-08dfb8d68208", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:18:19 GMT", + "Date": "Thu, 28 Jan 2021 23:17:42 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", "x-envoy-upstream-service-time": "10" }, "ResponseBody": { - "jobId": "7a083530-8f70-4901-957d-d1bf35439a15", - "lastUpdateDateTime": "2021-01-27T01:18:20Z", - "createdDateTime": "2021-01-27T01:18:20Z", - "expirationDateTime": "2021-01-28T01:18:20Z", + "jobId": "3d8afffe-9fcc-4f83-8e8a-9c7182e08019", + "lastUpdateDateTime": "2021-01-28T23:17:42Z", + "createdDateTime": "2021-01-28T23:17:42Z", + "expirationDateTime": "2021-01-29T23:17:42Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/7a083530-8f70-4901-957d-d1bf35439a15?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/3d8afffe-9fcc-4f83-8e8a-9c7182e08019?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "c56f00a8f06aed051c550a52700d0abf", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "445466ad-6d11-4cfd-b9b7-63cc3221ec33", + "apim-request-id": "8dbfd494-6316-4294-b81b-b15a5d5d020b", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:18:21 GMT", + "Date": "Thu, 28 Jan 2021 23:17:43 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "8" + "x-envoy-upstream-service-time": "49" }, "ResponseBody": { - "jobId": "7a083530-8f70-4901-957d-d1bf35439a15", - "lastUpdateDateTime": "2021-01-27T01:18:21Z", - "createdDateTime": "2021-01-27T01:18:20Z", - "expirationDateTime": "2021-01-28T01:18:20Z", - "status": "running", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/7a083530-8f70-4901-957d-d1bf35439a15?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "c9cabda7fe2ee58e51915dc3526b639f", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "72034f11-6a88-470b-aef3-d49d9f763f71", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:18:22 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "68" - }, - "ResponseBody": { - "jobId": "7a083530-8f70-4901-957d-d1bf35439a15", - "lastUpdateDateTime": "2021-01-27T01:18:21Z", - "createdDateTime": "2021-01-27T01:18:20Z", - "expirationDateTime": "2021-01-28T01:18:20Z", + "jobId": "3d8afffe-9fcc-4f83-8e8a-9c7182e08019", + "lastUpdateDateTime": "2021-01-28T23:17:43Z", + "createdDateTime": "2021-01-28T23:17:42Z", + "expirationDateTime": "2021-01-29T23:17:42Z", "status": "succeeded", "errors": [], "results": { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithSkipParameter.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithSkipParameter.json index ee7177b57c556..ffae5323240e5 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithSkipParameter.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithSkipParameter.json @@ -8,8 +8,8 @@ "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-71ded06a22022e4fb36d16a71dd0c428-32b5d9abf5b8494f-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-07ec5cf80467164a918a5c8cc7f6d585-c68c6da9ce955e43-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "e5bbee521fd95f6f85d46045340cc5e0", "x-ms-return-client-request-id": "true" }, @@ -29,72 +29,72 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "06d899be-5474-469d-b574-c15a1b8524ae", - "Date": "Wed, 27 Jan 2021 01:17:58 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/ed4834d2-7697-4545-a55d-6d7dfd6c31a5", + "apim-request-id": "07fba2f4-0c97-497e-b3a6-2b51d607e5e3", + "Date": "Thu, 28 Jan 2021 23:17:05 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2adee4d2-07f0-4d41-81c0-3b42440daf9f", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "87" + "x-envoy-upstream-service-time": "92" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/ed4834d2-7697-4545-a55d-6d7dfd6c31a5?$skip=1\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2adee4d2-07f0-4d41-81c0-3b42440daf9f?$skip=1\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "cb3ef020b17077b8ee6ec139b3f21813", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "474e6ef9-9cff-4cb9-80d6-6f8ee04df1a6", + "apim-request-id": "2c9ba1f6-db38-4937-b1a6-c417d35c7d3b", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:58 GMT", + "Date": "Thu, 28 Jan 2021 23:17:05 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", "x-envoy-upstream-service-time": "9" }, "ResponseBody": { - "jobId": "ed4834d2-7697-4545-a55d-6d7dfd6c31a5", - "lastUpdateDateTime": "2021-01-27T01:17:58Z", - "createdDateTime": "2021-01-27T01:17:58Z", - "expirationDateTime": "2021-01-28T01:17:58Z", - "status": "running", + "jobId": "2adee4d2-07f0-4d41-81c0-3b42440daf9f", + "lastUpdateDateTime": "2021-01-28T23:17:06Z", + "createdDateTime": "2021-01-28T23:17:05Z", + "expirationDateTime": "2021-01-29T23:17:05Z", + "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/ed4834d2-7697-4545-a55d-6d7dfd6c31a5?$skip=1\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2adee4d2-07f0-4d41-81c0-3b42440daf9f?$skip=1\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "beccfc644b839adbc9a8ce8f926f328c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "29ffbd3d-4a83-4d1f-8781-e56635623826", + "apim-request-id": "36e2d9f4-88c9-4b36-b19d-78dade7c415c", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:17:59 GMT", + "Date": "Thu, 28 Jan 2021 23:17:06 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "46" + "x-envoy-upstream-service-time": "62" }, "ResponseBody": { - "jobId": "ed4834d2-7697-4545-a55d-6d7dfd6c31a5", - "lastUpdateDateTime": "2021-01-27T01:17:58Z", - "createdDateTime": "2021-01-27T01:17:58Z", - "expirationDateTime": "2021-01-28T01:17:58Z", + "jobId": "2adee4d2-07f0-4d41-81c0-3b42440daf9f", + "lastUpdateDateTime": "2021-01-28T23:17:06Z", + "createdDateTime": "2021-01-28T23:17:05Z", + "expirationDateTime": "2021-01-29T23:17:05Z", "status": "succeeded", "errors": [], "results": { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithSkipParameterAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithSkipParameterAsync.json index da28b1b74609b..60fae28be56e8 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithSkipParameterAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithSkipParameterAsync.json @@ -8,8 +8,8 @@ "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-adfbc5174316ea4eb3039e09eda29f12-1b1b8585fdb9cd4e-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-0447fab028287144a6e9db765d6b025f-042fbec7b49b804d-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "9e757d2d83ce1123a7e23fad5376473f", "x-ms-return-client-request-id": "true" }, @@ -29,72 +29,102 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "eb3d1ab8-f2a4-4919-9693-aa8718df901b", - "Date": "Wed, 27 Jan 2021 01:18:23 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/08e26f2b-c5ab-45cd-8f04-3f6487a559cd", + "apim-request-id": "0bf87938-a6e8-43e0-8c7b-94a287288dd0", + "Date": "Thu, 28 Jan 2021 23:17:44 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/18c64b16-d372-4fcf-9fdd-520757bf4448", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "98" + "x-envoy-upstream-service-time": "90" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/08e26f2b-c5ab-45cd-8f04-3f6487a559cd?$skip=1\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/18c64b16-d372-4fcf-9fdd-520757bf4448?$skip=1\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "68a7733fd31f0864ffb638781102da48", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "741228d5-49ba-4069-8a4a-c42b1f24df47", + "apim-request-id": "14e42674-9b38-44e8-912f-6d727869f864", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:18:23 GMT", + "Date": "Thu, 28 Jan 2021 23:17:44 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "8" + "x-envoy-upstream-service-time": "9" }, "ResponseBody": { - "jobId": "08e26f2b-c5ab-45cd-8f04-3f6487a559cd", - "lastUpdateDateTime": "2021-01-27T01:18:23Z", - "createdDateTime": "2021-01-27T01:18:23Z", - "expirationDateTime": "2021-01-28T01:18:23Z", - "status": "running", + "jobId": "18c64b16-d372-4fcf-9fdd-520757bf4448", + "lastUpdateDateTime": "2021-01-28T23:17:44Z", + "createdDateTime": "2021-01-28T23:17:44Z", + "expirationDateTime": "2021-01-29T23:17:44Z", + "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/08e26f2b-c5ab-45cd-8f04-3f6487a559cd?$skip=1\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/18c64b16-d372-4fcf-9fdd-520757bf4448?$skip=1\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "39eac04aaed6996e7ea6b9f62c4a8897", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "3615a7f8-b410-4a27-8d81-96885308e02e", + "apim-request-id": "777abaa9-047f-43bd-bca9-bdbef6205287", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:18:24 GMT", + "Date": "Thu, 28 Jan 2021 23:17:45 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "45" + "x-envoy-upstream-service-time": "9" }, "ResponseBody": { - "jobId": "08e26f2b-c5ab-45cd-8f04-3f6487a559cd", - "lastUpdateDateTime": "2021-01-27T01:18:23Z", - "createdDateTime": "2021-01-27T01:18:23Z", - "expirationDateTime": "2021-01-28T01:18:23Z", + "jobId": "18c64b16-d372-4fcf-9fdd-520757bf4448", + "lastUpdateDateTime": "2021-01-28T23:17:44Z", + "createdDateTime": "2021-01-28T23:17:44Z", + "expirationDateTime": "2021-01-29T23:17:44Z", + "status": "notStarted", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/18c64b16-d372-4fcf-9fdd-520757bf4448?$skip=1\u0026showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "eaa1ba814c8b59b1196c9f174baaffa5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "c8e0c65c-614e-4933-8218-6b8d1f4045eb", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jan 2021 23:17:46 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "36" + }, + "ResponseBody": { + "jobId": "18c64b16-d372-4fcf-9fdd-520757bf4448", + "lastUpdateDateTime": "2021-01-28T23:17:46Z", + "createdDateTime": "2021-01-28T23:17:44Z", + "expirationDateTime": "2021-01-29T23:17:44Z", "status": "succeeded", "errors": [], "results": { diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithTopParameter.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithTopParameter.json index 076634a6e9176..3a4cb9f1f3747 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithTopParameter.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithTopParameter.json @@ -8,8 +8,8 @@ "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-09a47334a2563c44b9e6f10eb8dc6a4c-48689b5b4ef7e44a-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-09737fdbda85ba45b2449540965b2c74-d34d7500022bff4a-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "8efbb01e5acc858dcd1ff153470e4093", "x-ms-return-client-request-id": "true" }, @@ -29,72 +29,132 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "e12863de-40e4-4a5b-a103-0b6aad2c0c63", - "Date": "Wed, 27 Jan 2021 01:18:00 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8d7c2fb1-6ad0-4649-8fde-278b2837bff2", + "apim-request-id": "6a72cde1-5318-480c-9931-09a5c814f998", + "Date": "Thu, 28 Jan 2021 23:17:07 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/b44c9e8b-11cd-4a35-af37-c22befdfcd5c", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "108" + "x-envoy-upstream-service-time": "95" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8d7c2fb1-6ad0-4649-8fde-278b2837bff2?$top=1\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/b44c9e8b-11cd-4a35-af37-c22befdfcd5c?$top=1\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "2660bb690f1e14745ff6a5df3888e782", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "ac33c7be-86a6-4f28-9915-1db41064a0b0", + "apim-request-id": "a1d9096c-5936-4668-a6d9-a79b77c1da31", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:18:00 GMT", + "Date": "Thu, 28 Jan 2021 23:17:07 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "5" + "x-envoy-upstream-service-time": "9" }, "ResponseBody": { - "jobId": "8d7c2fb1-6ad0-4649-8fde-278b2837bff2", - "lastUpdateDateTime": "2021-01-27T01:18:00Z", - "createdDateTime": "2021-01-27T01:18:00Z", - "expirationDateTime": "2021-01-28T01:18:00Z", + "jobId": "b44c9e8b-11cd-4a35-af37-c22befdfcd5c", + "lastUpdateDateTime": "2021-01-28T23:17:08Z", + "createdDateTime": "2021-01-28T23:17:07Z", + "expirationDateTime": "2021-01-29T23:17:07Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8d7c2fb1-6ad0-4649-8fde-278b2837bff2?$top=1\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/b44c9e8b-11cd-4a35-af37-c22befdfcd5c?$top=1\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "4c0a13cbdad64cf8d7c97184a7f98e05", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "6d718607-ec5e-411e-bab2-674d9763db0c", + "apim-request-id": "5ee040c4-f2a9-4caf-803b-8a33f4ffaf54", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:18:01 GMT", + "Date": "Thu, 28 Jan 2021 23:17:08 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "42" + "x-envoy-upstream-service-time": "9" }, "ResponseBody": { - "jobId": "8d7c2fb1-6ad0-4649-8fde-278b2837bff2", - "lastUpdateDateTime": "2021-01-27T01:18:01Z", - "createdDateTime": "2021-01-27T01:18:00Z", - "expirationDateTime": "2021-01-28T01:18:00Z", + "jobId": "b44c9e8b-11cd-4a35-af37-c22befdfcd5c", + "lastUpdateDateTime": "2021-01-28T23:17:08Z", + "createdDateTime": "2021-01-28T23:17:07Z", + "expirationDateTime": "2021-01-29T23:17:07Z", + "status": "notStarted", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/b44c9e8b-11cd-4a35-af37-c22befdfcd5c?$top=1\u0026showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "89adbdfd593e0f483ce62ed6b5ad4d44", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "884a683e-0563-4c60-8637-26087b0779ff", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jan 2021 23:17:10 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "16" + }, + "ResponseBody": { + "jobId": "b44c9e8b-11cd-4a35-af37-c22befdfcd5c", + "lastUpdateDateTime": "2021-01-28T23:17:08Z", + "createdDateTime": "2021-01-28T23:17:07Z", + "expirationDateTime": "2021-01-29T23:17:07Z", + "status": "notStarted", + "errors": [] + } + }, + { + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/b44c9e8b-11cd-4a35-af37-c22befdfcd5c?$top=1\u0026showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json, text/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "34876f37f3038fbdc3134f559df06d66", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "4973b09b-0ab8-457c-8ff7-3171fe17544a", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Jan 2021 23:17:11 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "72" + }, + "ResponseBody": { + "jobId": "b44c9e8b-11cd-4a35-af37-c22befdfcd5c", + "lastUpdateDateTime": "2021-01-28T23:17:11Z", + "createdDateTime": "2021-01-28T23:17:07Z", + "expirationDateTime": "2021-01-29T23:17:07Z", "status": "succeeded", "errors": [], "results": { @@ -269,7 +329,7 @@ "errors": [], "modelVersion": "2020-09-03" }, - "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8d7c2fb1-6ad0-4649-8fde-278b2837bff2?$skip=1\u0026$top=1" + "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/b44c9e8b-11cd-4a35-af37-c22befdfcd5c?$skip=1\u0026$top=1" } } ], diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithTopParameterAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithTopParameterAsync.json index 29b7471773bf1..1f329af8d86e6 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithTopParameterAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithTopParameterAsync.json @@ -8,8 +8,8 @@ "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-769e1b75aafc9942a073abc428518c2a-d6f96db461d06640-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-e4c2c071a10f704aa3c6d5e3d29c3cce-98bd973f130e1b47-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "724372daad48480e76510121b5839b2e", "x-ms-return-client-request-id": "true" }, @@ -29,102 +29,72 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "b13f9689-4340-47e3-a18a-872d3c9dce0d", - "Date": "Wed, 27 Jan 2021 01:18:26 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/7ce1802c-95d6-4443-9b16-f8b9d4944f44", + "apim-request-id": "0bfb4cc9-adad-4d31-8cec-125e65511f37", + "Date": "Thu, 28 Jan 2021 23:17:47 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/a6ef9bf4-dde7-48c3-8534-37ca0e87c723", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "1578" + "x-envoy-upstream-service-time": "97" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/7ce1802c-95d6-4443-9b16-f8b9d4944f44?$top=1\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/a6ef9bf4-dde7-48c3-8534-37ca0e87c723?$top=1\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "934d972f1ac830d592026d8c2beeac11", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "7481cc1b-7ccc-4908-9c8f-f57c746ac5d2", + "apim-request-id": "2b903d4e-32ec-4280-8b74-161e3fbe4e03", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:18:26 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "8" - }, - "ResponseBody": { - "jobId": "7ce1802c-95d6-4443-9b16-f8b9d4944f44", - "lastUpdateDateTime": "2021-01-27T01:18:26Z", - "createdDateTime": "2021-01-27T01:18:25Z", - "expirationDateTime": "2021-01-28T01:18:25Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/7ce1802c-95d6-4443-9b16-f8b9d4944f44?$top=1\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "ceb201b6e72887166038d111abceeca7", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d2fdf480-8d83-42a0-9492-faa7c0732c69", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:18:27 GMT", + "Date": "Thu, 28 Jan 2021 23:17:47 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", "x-envoy-upstream-service-time": "9" }, "ResponseBody": { - "jobId": "7ce1802c-95d6-4443-9b16-f8b9d4944f44", - "lastUpdateDateTime": "2021-01-27T01:18:26Z", - "createdDateTime": "2021-01-27T01:18:25Z", - "expirationDateTime": "2021-01-28T01:18:25Z", - "status": "notStarted", + "jobId": "a6ef9bf4-dde7-48c3-8534-37ca0e87c723", + "lastUpdateDateTime": "2021-01-28T23:17:47Z", + "createdDateTime": "2021-01-28T23:17:47Z", + "expirationDateTime": "2021-01-29T23:17:47Z", + "status": "running", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/7ce1802c-95d6-4443-9b16-f8b9d4944f44?$top=1\u0026showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/a6ef9bf4-dde7-48c3-8534-37ca0e87c723?$top=1\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210126.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "9e71f8d80ef6c0f19d12df4640821c87", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "ceb201b6e72887166038d111abceeca7", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "ea86a6b7-3273-4971-a6ac-3096f0fcc1ac", + "apim-request-id": "356aa485-414f-49c2-8bbd-05b31d6c6ef7", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Jan 2021 01:18:28 GMT", + "Date": "Thu, 28 Jan 2021 23:17:48 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "38" + "x-envoy-upstream-service-time": "44" }, "ResponseBody": { - "jobId": "7ce1802c-95d6-4443-9b16-f8b9d4944f44", - "lastUpdateDateTime": "2021-01-27T01:18:28Z", - "createdDateTime": "2021-01-27T01:18:25Z", - "expirationDateTime": "2021-01-28T01:18:25Z", + "jobId": "a6ef9bf4-dde7-48c3-8534-37ca0e87c723", + "lastUpdateDateTime": "2021-01-28T23:17:48Z", + "createdDateTime": "2021-01-28T23:17:47Z", + "expirationDateTime": "2021-01-29T23:17:47Z", "status": "succeeded", "errors": [], "results": { @@ -299,7 +269,7 @@ "errors": [], "modelVersion": "2020-09-03" }, - "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/7ce1802c-95d6-4443-9b16-f8b9d4944f44?$skip=1\u0026$top=1" + "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/a6ef9bf4-dde7-48c3-8534-37ca0e87c723?$skip=1\u0026$top=1" } } ], diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_Healthcare.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_Healthcare.cs deleted file mode 100644 index 1c76d3099601a..0000000000000 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_Healthcare.cs +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using System; -using System.Threading.Tasks; -using Azure.AI.TextAnalytics.Models; -using Azure.AI.TextAnalytics.Tests; -using Azure.Core.TestFramework; -using NUnit.Framework; - -namespace Azure.AI.TextAnalytics.Samples -{ - [LiveOnly] - public partial class TextAnalyticsSamples: SamplesBase - { - [Test] - public async Task Healthcare() - { - string endpoint = TestEnvironment.Endpoint; - string apiKey = TestEnvironment.ApiKey; - - var client = new TextAnalyticsClient(new Uri(endpoint), new AzureKeyCredential(apiKey)); - - #region Snippet:RecognizeHealthcareEntities - string document = @"RECORD #333582770390100 | MH | 85986313 | | 054351 | 2/14/2001 12:00:00 AM | CORONARY ARTERY DISEASE | Signed | DIS | \ - Admission Date: 5/22/2001 Report Status: Signed Discharge Date: 4/24/2001 ADMISSION DIAGNOSIS: CORONARY ARTERY DISEASE. \ - HISTORY OF PRESENT ILLNESS: The patient is a 54-year-old gentleman with a history of progressive angina over the past several months. \ - The patient had a cardiac catheterization in July of this year revealing total occlusion of the RCA and 50% left main disease ,\ - with a strong family history of coronary artery disease with a brother dying at the age of 52 from a myocardial infarction and \ - another brother who is status post coronary artery bypass grafting. The patient had a stress echocardiogram done on July , 2001 , \ - which showed no wall motion abnormalities , but this was a difficult study due to body habitus. The patient went for six minutes with \ - minimal ST depressions in the anterior lateral leads , thought due to fatigue and wrist pain , his anginal equivalent. Due to the patient's \ - increased symptoms and family history and history left main disease with total occasional of his RCA was referred for revascularization with open heart surgery."; - - AnalyzeHealthcareEntitiesOperation healthOperation = client.StartHealthcare(document); - - await healthOperation.WaitForCompletionAsync(); - - AnalyzeHealthcareEntitiesResultCollection results = healthOperation.Value; - - Console.WriteLine($"Results of Azure Text Analytics \"Healthcare\" Model, version: \"{results.ModelVersion}\""); - Console.WriteLine(""); - - foreach (AnalyzeHealthcareEntitiesResult result in results) - { - Console.WriteLine($" Recognized the following {result.Entities.Count} healthcare entities:"); - - foreach (HealthcareEntity entity in result.Entities) - { - Console.WriteLine($" Entity: {entity.Text}"); - Console.WriteLine($" Category: {entity.Category}"); - Console.WriteLine($" Offset: {entity.Offset}"); - Console.WriteLine($" Length: {entity.Length}"); - Console.WriteLine($" Links:"); - - foreach (EntityDataSource entityDataSource in entity.DataSources) - { - Console.WriteLine($" ID: {entityDataSource.EntityId}"); - Console.WriteLine($" DataSource: {entityDataSource.Name}"); - } - } - Console.WriteLine(""); - } - } - - #endregion - } -} diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync.cs deleted file mode 100644 index 7f3d7f185fb88..0000000000000 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync.cs +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using System; -using System.Linq; -using System.Threading.Tasks; -using Azure.AI.TextAnalytics.Models; -using Azure.AI.TextAnalytics.Tests; -using Azure.Core.TestFramework; -using NUnit.Framework; - -namespace Azure.AI.TextAnalytics.Samples -{ - [LiveOnly] - public partial class TextAnalyticsSamples: SamplesBase - { - [Test] - public async Task HealthcareAsync() - { - string endpoint = TestEnvironment.Endpoint; - string apiKey = TestEnvironment.ApiKey; - - var client = new TextAnalyticsClient(new Uri(endpoint), new AzureKeyCredential(apiKey)); - - #region Snippet:RecognizeHealthcareEntitiesAsync - string document = @"RECORD #333582770390100 | MH | 85986313 | | 054351 | 2/14/2001 12:00:00 AM | CORONARY ARTERY DISEASE | Signed | DIS | \ - Admission Date: 5/22/2001 Report Status: Signed Discharge Date: 4/24/2001 ADMISSION DIAGNOSIS: CORONARY ARTERY DISEASE. \ - HISTORY OF PRESENT ILLNESS: The patient is a 54-year-old gentleman with a history of progressive angina over the past several months. \ - The patient had a cardiac catheterization in July of this year revealing total occlusion of the RCA and 50% left main disease ,\ - with a strong family history of coronary artery disease with a brother dying at the age of 52 from a myocardial infarction and \ - another brother who is status post coronary artery bypass grafting. The patient had a stress echocardiogram done on July , 2001 , \ - which showed no wall motion abnormalities , but this was a difficult study due to body habitus. The patient went for six minutes with \ - minimal ST depressions in the anterior lateral leads , thought due to fatigue and wrist pain , his anginal equivalent. Due to the patient's \ - increased symptoms and family history and history left main disease with total occasional of his RCA was referred for revascularization with open heart surgery."; - - AnalyzeHealthcareEntitiesOperation healthOperation = await client.StartHealthcareAsync(document); - - await healthOperation.WaitForCompletionAsync(); - - AnalyzeHealthcareEntitiesResultCollection results = healthOperation.Value; - - Console.WriteLine($"Results of Azure Text Analytics \"Healthcare Async\" Model, version: \"{results.ModelVersion}\""); - Console.WriteLine(""); - - foreach (AnalyzeHealthcareEntitiesResult result in results) - { - Console.WriteLine($" Recognized the following {result.Entities.Count} healthcare entities:"); - - foreach (HealthcareEntity entity in result.Entities) - { - Console.WriteLine($" Entity: {entity.Text}"); - Console.WriteLine($" Category: {entity.Category}"); - Console.WriteLine($" Offset: {entity.Offset}"); - Console.WriteLine($" Length: {entity.Length}"); - Console.WriteLine($" Links:"); - - foreach (EntityDataSource entityDataSource in entity.DataSources) - { - Console.WriteLine($" ID: {entityDataSource.EntityId}"); - Console.WriteLine($" DataSource: {entityDataSource.Name}"); - } - } - Console.WriteLine(""); - } - } - - #endregion - } -} diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync_AutomaticPolling.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync_AutomaticPolling.cs index 4953d63f76f25..3c475e4066903 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync_AutomaticPolling.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync_AutomaticPolling.cs @@ -2,9 +2,8 @@ // Licensed under the MIT License. using System; -using System.Linq; +using System.Collections.Generic; using System.Threading.Tasks; -using Azure.AI.TextAnalytics.Models; using Azure.AI.TextAnalytics.Tests; using Azure.Core.TestFramework; using NUnit.Framework; @@ -33,7 +32,7 @@ with a strong family history of coronary artery disease with a brother dying at minimal ST depressions in the anterior lateral leads , thought due to fatigue and wrist pain , his anginal equivalent. Due to the patient's \ increased symptoms and family history and history left main disease with total occasional of his RCA was referred for revascularization with open heart surgery."; - AnalyzeHealthcareEntitiesOperation healthOperation = await client.StartHealthcareAsync(document); + AnalyzeHealthcareEntitiesOperation healthOperation = await client.StartAnalyzeHealthcareEntitiesAsync(new List() { document }); TimeSpan pollingInterval = new TimeSpan(1000); @@ -58,7 +57,7 @@ with a strong family history of coronary artery disease with a brother dying at foreach (EntityDataSource entityDataSource in entity.DataSources) { - Console.WriteLine($" ID: {entityDataSource.EntityId}"); + Console.WriteLine($" Entity ID in Data Source: {entityDataSource.EntityId}"); Console.WriteLine($" DataSource: {entityDataSource.Name}"); } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync_Cancellation.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync_Cancellation.cs index f85701d6245d1..aaeef88e5aeaa 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync_Cancellation.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync_Cancellation.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.Threading.Tasks; -using Azure.AI.TextAnalytics.Models; using Azure.AI.TextAnalytics.Tests; using Azure.Core.TestFramework; using NUnit.Framework; @@ -40,7 +39,7 @@ with a strong family history of coronary artery disease with a brother dying at batchDocument.Add(document); } - AnalyzeHealthcareEntitiesOperation healthOperation = await client.StartHealthcareBatchAsync(batchDocument, "en"); + AnalyzeHealthcareEntitiesOperation healthOperation = await client.StartAnalyzeHealthcareEntitiesAsync(batchDocument, "en"); await healthOperation.CancelAsync(); } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync_ManualPolling.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync_ManualPolling.cs index c965d1f25d471..39ffbe0763021 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync_ManualPolling.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync_ManualPolling.cs @@ -2,9 +2,8 @@ // Licensed under the MIT License. using System; -using System.Linq; +using System.Collections.Generic; using System.Threading.Tasks; -using Azure.AI.TextAnalytics.Models; using Azure.AI.TextAnalytics.Tests; using Azure.Core.TestFramework; using NUnit.Framework; @@ -33,7 +32,7 @@ with a strong family history of coronary artery disease with a brother dying at minimal ST depressions in the anterior lateral leads , thought due to fatigue and wrist pain , his anginal equivalent. Due to the patient's \ increased symptoms and family history and history left main disease with total occasional of his RCA was referred for revascularization with open heart surgery."; - AnalyzeHealthcareEntitiesOperation healthOperation = await client.StartHealthcareAsync(document); + AnalyzeHealthcareEntitiesOperation healthOperation = await client.StartAnalyzeHealthcareEntitiesAsync(new List() { document }); TimeSpan pollingInterval = new TimeSpan(1000); @@ -67,7 +66,7 @@ with a strong family history of coronary artery disease with a brother dying at foreach (EntityDataSource entityDataSource in entity.DataSources) { - Console.WriteLine($" ID: {entityDataSource.EntityId}"); + Console.WriteLine($" Entity ID in Data Source: {entityDataSource.EntityId}"); Console.WriteLine($" DataSource: {entityDataSource.Name}"); } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync_Pagination.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync_Pagination.cs index a0c4e875b5ff0..39ca46ec5fefa 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync_Pagination.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync_Pagination.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; -using System.Diagnostics; using System.Threading.Tasks; using Azure.AI.TextAnalytics.Tests; using Azure.Core.TestFramework; @@ -37,7 +36,7 @@ public async Task HealthcareAsyncPagination() Top = 2 }; - AnalyzeHealthcareEntitiesOperation healthOperation = await client.StartHealthcareBatchAsync(list, "en", options); + AnalyzeHealthcareEntitiesOperation healthOperation = await client.StartAnalyzeHealthcareEntitiesAsync(list, "en", options); AsyncPageable results = client.GetHealthcareEntities(healthOperation); diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatch.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatch.cs index dd7f6edbd09a4..1b69c8304bf1f 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatch.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatch.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.Threading.Tasks; -using Azure.AI.TextAnalytics.Models; using Azure.AI.TextAnalytics.Tests; using Azure.Core.TestFramework; using NUnit.Framework; @@ -44,7 +43,7 @@ with a strong family history of coronary artery disease with a brother dying at IncludeStatistics = true }; - AnalyzeHealthcareEntitiesOperation healthOperation = client.StartHealthcareBatch(batchInput, "en", options); + AnalyzeHealthcareEntitiesOperation healthOperation = client.StartAnalyzeHealthcareEntities(batchInput, "en", options); await healthOperation.WaitForCompletionAsync(); @@ -67,7 +66,7 @@ with a strong family history of coronary artery disease with a brother dying at foreach (EntityDataSource entityDataSource in entity.DataSources) { - Console.WriteLine($" ID: {entityDataSource.EntityId}"); + Console.WriteLine($" Entity ID in Data Source: {entityDataSource.EntityId}"); Console.WriteLine($" DataSource: {entityDataSource.Name}"); } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatchAsync.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatchAsync.cs index 6b59337fc2e12..21ac7d445a528 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatchAsync.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatchAsync.cs @@ -3,9 +3,7 @@ using System; using System.Collections.Generic; -using System.Linq; using System.Threading.Tasks; -using Azure.AI.TextAnalytics.Models; using Azure.AI.TextAnalytics.Tests; using Azure.Core.TestFramework; using NUnit.Framework; @@ -47,7 +45,7 @@ with a strong family history of coronary artery disease with a brother dying at IncludeStatistics = true }; - AnalyzeHealthcareEntitiesOperation healthOperation = await client.StartHealthcareBatchAsync(batchInput, "en", options); + AnalyzeHealthcareEntitiesOperation healthOperation = await client.StartAnalyzeHealthcareEntitiesAsync(batchInput, "en", options); await healthOperation.WaitForCompletionAsync(); @@ -70,7 +68,7 @@ with a strong family history of coronary artery disease with a brother dying at foreach (EntityDataSource entityDataSource in entity.DataSources) { - Console.WriteLine($" ID: {entityDataSource.EntityId}"); + Console.WriteLine($" Entity ID in Data Source: {entityDataSource.EntityId}"); Console.WriteLine($" DataSource: {entityDataSource.Name}"); } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatchConvenience.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatchConvenience.cs index 3d8ce8ed6816d..7a2fc45695f53 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatchConvenience.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatchConvenience.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.Threading.Tasks; -using Azure.AI.TextAnalytics.Models; using Azure.AI.TextAnalytics.Tests; using Azure.Core.TestFramework; using NUnit.Framework; @@ -38,7 +37,7 @@ with a strong family history of coronary artery disease with a brother dying at document, }; - AnalyzeHealthcareEntitiesOperation healthOperation = client.StartHealthcareBatch(batchInput, "en"); + AnalyzeHealthcareEntitiesOperation healthOperation = client.StartAnalyzeHealthcareEntities(batchInput, "en"); await healthOperation.WaitForCompletionAsync(); @@ -61,7 +60,7 @@ with a strong family history of coronary artery disease with a brother dying at foreach (EntityDataSource entityDataSource in entity.DataSources) { - Console.WriteLine($" ID: {entityDataSource.EntityId}"); + Console.WriteLine($" Entity ID in Data Source: {entityDataSource.EntityId}"); Console.WriteLine($" DataSource: {entityDataSource.Name}"); } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatchConvenienceAsync.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatchConvenienceAsync.cs index a57437ceaf9e6..d30999df06e3a 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatchConvenienceAsync.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatchConvenienceAsync.cs @@ -3,9 +3,7 @@ using System; using System.Collections.Generic; -using System.Linq; using System.Threading.Tasks; -using Azure.AI.TextAnalytics.Models; using Azure.AI.TextAnalytics.Tests; using Azure.Core.TestFramework; using NUnit.Framework; @@ -39,7 +37,7 @@ with a strong family history of coronary artery disease with a brother dying at document, }; - AnalyzeHealthcareEntitiesOperation healthOperation = await client.StartHealthcareBatchAsync(batchInput, "en"); + AnalyzeHealthcareEntitiesOperation healthOperation = await client.StartAnalyzeHealthcareEntitiesAsync(batchInput, "en"); await healthOperation.WaitForCompletionAsync(); @@ -62,7 +60,7 @@ with a strong family history of coronary artery disease with a brother dying at foreach (EntityDataSource entityDataSource in entity.DataSources) { - Console.WriteLine($" ID: {entityDataSource.EntityId}"); + Console.WriteLine($" Entity ID in Data Source: {entityDataSource.EntityId}"); Console.WriteLine($" DataSource: {entityDataSource.Name}"); } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_Healthcare_Cancellation.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_Healthcare_Cancellation.cs index 74fd7b24d198f..137c6133ffd16 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_Healthcare_Cancellation.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_Healthcare_Cancellation.cs @@ -3,8 +3,6 @@ using System; using System.Collections.Generic; -using System.Threading.Tasks; -using Azure.AI.TextAnalytics.Models; using Azure.AI.TextAnalytics.Tests; using Azure.Core.TestFramework; using NUnit.Framework; @@ -40,7 +38,7 @@ with a strong family history of coronary artery disease with a brother dying at batchDocument.Add(document); } - AnalyzeHealthcareEntitiesOperation healthOperation = client.StartHealthcareBatch(batchDocument, "en"); + AnalyzeHealthcareEntitiesOperation healthOperation = client.StartAnalyzeHealthcareEntities(batchDocument, "en"); healthOperation.Cancel(); } From 9d456daea225b60a10a4923c89be3257d5b31772 Mon Sep 17 00:00:00 2001 From: Suhas Mehta Date: Mon, 1 Feb 2021 13:52:06 -0800 Subject: [PATCH 05/12] addressed comments --- .../src/AnalyzeHealthcareEntitiesResult.cs | 5 +- .../src/HealthcareEntity.cs | 18 ++--- .../src/HealthcareEntityInternal.cs | 4 ++ .../src/HealthcareEntityRelationType.cs | 8 +-- .../Azure.AI.TextAnalytics/src/Transforms.cs | 70 +++++-------------- 5 files changed, 34 insertions(+), 71 deletions(-) diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesResult.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesResult.cs index b5b82e9ee5780..c164c0bb06dcb 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesResult.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesResult.cs @@ -3,6 +3,7 @@ using System; using System.Collections.Generic; +using System.Collections.ObjectModel; using Azure.AI.TextAnalytics.Models; namespace Azure.AI.TextAnalytics @@ -16,11 +17,11 @@ public partial class AnalyzeHealthcareEntitiesResult : TextAnalyticsResult internal AnalyzeHealthcareEntitiesResult(string id, TextDocumentStatistics statistics, IReadOnlyList healthcareEntities, - IReadOnlyList warnings) + IList warnings) : base(id, statistics) { _entities = healthcareEntities; - Warnings = warnings; + Warnings = new ReadOnlyCollection(warnings); } internal AnalyzeHealthcareEntitiesResult(string id, TextAnalyticsError error) : base(id, error) { } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntity.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntity.cs index 534d844723d38..b437e21f47e2c 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntity.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntity.cs @@ -1,11 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System; using System.Collections.Generic; -using System.Globalization; -using System.Linq; -using System.Text.RegularExpressions; namespace Azure.AI.TextAnalytics { @@ -14,7 +10,7 @@ namespace Azure.AI.TextAnalytics /// public class HealthcareEntity { - internal HealthcareEntity(HealthcareEntityInternal entity, IReadOnlyDictionary relatedEntities) + internal HealthcareEntity(HealthcareEntityInternal entity) { Category = entity.Category; Text = entity.Text; @@ -22,7 +18,7 @@ internal HealthcareEntity(HealthcareEntityInternal entity, IReadOnlyDictionary(entity.RelatedEntities); } /// /// Gets the entity text as it appears in the input document. @@ -33,7 +29,7 @@ internal HealthcareEntity(HealthcareEntityInternal entity, IReadOnlyDictionary. + /// . /// public string Category { get; } @@ -42,7 +38,7 @@ internal HealthcareEntity(HealthcareEntityInternal entity, IReadOnlyDictionary. + /// . /// public string SubCategory { get; } @@ -58,7 +54,7 @@ internal HealthcareEntity(HealthcareEntityInternal entity, IReadOnlyDictionary - /// Gets the length of input document. + /// Gets the length for the matching entity in the input document. /// public int Length { get; } @@ -68,8 +64,8 @@ internal HealthcareEntity(HealthcareEntityInternal entity, IReadOnlyDictionary DataSources { get; } /// - /// Gets the dictionary for related entity with mapped relation type for each. + /// Gets the entities and the relationship between the entities. /// - public IReadOnlyDictionary RelatedEntities { get; } + public Dictionary RelatedEntities { get; } } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntityInternal.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntityInternal.cs index 0c028488dedf9..4dd61d8319e7b 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntityInternal.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntityInternal.cs @@ -12,5 +12,9 @@ namespace Azure.AI.TextAnalytics [CodeGenModel("HealthcareEntity")] internal partial class HealthcareEntityInternal { + /// + /// Gets the dictionary for related entity with mapped relation type for each. + /// + internal Dictionary RelatedEntities { get; } = new Dictionary(); } } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntityRelationType.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntityRelationType.cs index 216b4ec1ba5de..1cc17f53f7379 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntityRelationType.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/HealthcareEntityRelationType.cs @@ -13,22 +13,22 @@ namespace Azure.AI.TextAnalytics public class HealthcareEntityRelationType : IEquatable { /// - /// Specifies the relation type of DirectionOfBodyStructure. + /// Specifies the relation type DirectionOfBodyStructure. /// public static readonly HealthcareEntityRelationType DirectionOfBodyStructure = new HealthcareEntityRelationType("DirectionOfBodyStructure"); /// - /// Specifies the relation type of DirectionOfExamination. + /// Specifies the relation type DirectionOfExamination. /// public static readonly HealthcareEntityRelationType DirectionOfExamination = new HealthcareEntityRelationType("DirectionOfExamination"); /// - /// Specifies the relation type of RelationOfExamination. + /// Specifies the relation type RelationOfExamination. /// public static readonly HealthcareEntityRelationType RelationOfExamination = new HealthcareEntityRelationType("RelationOfExamination"); /// - /// Specifies the relation type of TimeOfExamination. + /// Specifies the relation type TimeOfExamination. /// public static readonly HealthcareEntityRelationType TimeOfExamination = new HealthcareEntityRelationType("TimeOfExamination"); diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Transforms.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Transforms.cs index f49b3055e9a70..bec0c1aeb7101 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Transforms.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Transforms.cs @@ -249,7 +249,20 @@ internal static RecognizeLinkedEntitiesResultCollection ConvertToRecognizeLinked internal static List ConvertToHealthcareEntityCollection(IEnumerable healthcareEntities, IEnumerable healthcareRelations) { - return healthcareEntities.Select((entity) => new HealthcareEntity(entity, ResolveRelatedEntities(entity, healthcareEntities, healthcareRelations))).ToList(); + var entities = healthcareEntities.Select((entity) => new HealthcareEntity(entity)).ToList(); + foreach (HealthcareRelationInternal relation in healthcareRelations) { + string relationType = relation.RelationType; + int sourceIndex = ParseHealthcareEntityIndex(relation.Source); + int targetIndex = ParseHealthcareEntityIndex(relation.Target); + HealthcareEntity sourceEntity = entities[sourceIndex]; + HealthcareEntity targetEntity = entities[targetIndex]; + sourceEntity.RelatedEntities.Add(targetEntity, relationType); + if (relation.Bidirectional) + { + targetEntity.RelatedEntities.Add(sourceEntity, relationType); + } + } + return entities; } internal static AnalyzeHealthcareEntitiesResultCollection ConvertToRecognizeHealthcareEntitiesResultCollection(HealthcareResult results, IDictionary idToIndexMap) @@ -277,45 +290,12 @@ internal static AnalyzeHealthcareEntitiesResultCollection ConvertToRecognizeHeal return new AnalyzeHealthcareEntitiesResultCollection(healthcareEntititesResults, results.Statistics, results.ModelVersion); } - private static Dictionary ResolveRelatedEntities(HealthcareEntityInternal entity, - IEnumerable healthcareEntities, - IEnumerable healthcareRelations) - { - Dictionary dictionary = new Dictionary(); - - if (!healthcareRelations.Any()) - { - return dictionary; - } - - foreach (HealthcareRelationInternal relation in healthcareRelations) - { - int entityIndex = healthcareEntities.ToList().FindIndex(e => e.Text.Equals(entity.Text)); - - if (IsEntitySource(relation, entityIndex)) - { - string targetRef = relation.Target; - - HealthcareEntityInternal relatedEntity = ResolveHealthcareEntity(healthcareEntities, targetRef); - - dictionary.Add(new HealthcareEntity(relatedEntity, ResolveRelatedEntities(relatedEntity, healthcareEntities, healthcareRelations)), relation.RelationType); - } - } - - return dictionary; - } - - private static HealthcareEntityInternal ResolveHealthcareEntity(IEnumerable entities, string reference) + private static int ParseHealthcareEntityIndex(string reference) { Match healthcareEntityMatch = _healthcareEntityRegex.Match(reference); if (healthcareEntityMatch.Success) { - int entityIndex = int.Parse(healthcareEntityMatch.Groups["entityIndex"].Value, CultureInfo.InvariantCulture); - - if (entityIndex < entities.Count()) - { - return entities.ElementAt(entityIndex); - } + return int.Parse(healthcareEntityMatch.Groups["entityIndex"].Value, CultureInfo.InvariantCulture); } throw new InvalidOperationException($"Failed to parse element reference: {reference}"); @@ -323,24 +303,6 @@ private static HealthcareEntityInternal ResolveHealthcareEntity(IEnumerable\d*)\/entities\/(?\d*)$", RegexOptions.Compiled, TimeSpan.FromSeconds(2)); - private static bool IsEntitySource(HealthcareRelationInternal healthcareRelation, int entityIndex) - { - string sourceRef = healthcareRelation.Source; - - var healthcareEntityMatch = _healthcareEntityRegex.Match(sourceRef); - - if (healthcareEntityMatch.Success) - { - int index = int.Parse(healthcareEntityMatch.Groups["entityIndex"].Value, CultureInfo.InvariantCulture); - - if (index == entityIndex) - { - return true; - } - } - return false; - } - #endregion #region Analyze Operation From 2dba53e78dc47094195acfa963312be154e95bd5 Mon Sep 17 00:00:00 2001 From: Suhas Mehta Date: Mon, 1 Feb 2021 13:56:35 -0800 Subject: [PATCH 06/12] revert sessio records --- ...ealthcareEntitiesBatchConvenienceTest.json | 110 +- ...careEntitiesBatchConvenienceTestAsync.json | 126 ++- ...iesBatchConvenienceWithStatisticsTest.json | 84 +- ...tchConvenienceWithStatisticsTestAsync.json | 140 +-- .../RecognizeHealthcareEntitiesBatchTest.json | 112 +-- ...gnizeHealthcareEntitiesBatchTestAsync.json | 142 +-- ...althcareEntitiesBatchWithCancellation.json | 42 +- ...areEntitiesBatchWithCancellationAsync.json | 42 +- ...eHealthcareEntitiesBatchWithErrorTest.json | 290 ++---- ...thcareEntitiesBatchWithErrorTestAsync.json | 138 ++- ...HealthcareEntitiesBatchWithPagination.json | 305 +++--- ...hcareEntitiesBatchWithPaginationAsync.json | 307 +++--- ...thcareEntitiesBatchWithStatisticsTest.json | 84 +- ...eEntitiesBatchWithStatisticsTestAsync.json | 112 +-- .../RecognizeHealthcareEntitiesTest.json | 936 +----------------- .../RecognizeHealthcareEntitiesTestAsync.json | 936 ++---------------- ...izeHealthcareEntitiesWithLanguageTest.json | 110 +- ...althcareEntitiesWithLanguageTestAsync.json | 82 +- ...zeHealthcareEntitiesWithSkipParameter.json | 82 +- ...lthcareEntitiesWithSkipParameterAsync.json | 108 +- ...izeHealthcareEntitiesWithTopParameter.json | 144 +-- ...althcareEntitiesWithTopParameterAsync.json | 86 +- 22 files changed, 1357 insertions(+), 3161 deletions(-) diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceTest.json index 9254d8d05009a..bb3ca30567730 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceTest.json @@ -1,15 +1,21 @@ { "Entries": [ { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-f2aaf54b5609c9448f9ee5764c6eb49a-47810d0086aba547-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-14eaf278ddb2ac4ba8f8511b8c3100c1-5f0f7cccab366a47-00", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "1d7c0f7df9a5be46a7bf1d0b574c6095", "x-ms-return-client-request-id": "true" }, @@ -29,102 +35,84 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "ee1836f8-5f94-4f60-b2ff-45a17baaacc6", - "Date": "Thu, 28 Jan 2021 23:16:34 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/3f7500c9-7b84-4ae3-9335-8e1e63139f1c", + "apim-request-id": "4ec9e445-1708-4951-bea3-f6741fc8740d", + "Date": "Tue, 17 Nov 2020 20:17:19 GMT", + "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/12a3f8a5-4582-4ed6-a21b-f906a663be51", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "208" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "111" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/3f7500c9-7b84-4ae3-9335-8e1e63139f1c?showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/12a3f8a5-4582-4ed6-a21b-f906a663be51?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "9441bfd5d8fa13e75ab79017f0dbec22", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "9e6b2c43-4200-4ff6-86e4-c2a15011912a", + "apim-request-id": "373937ad-40cd-4d82-b57f-69ee3d139277", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:16:34 GMT", + "Date": "Tue, 17 Nov 2020 20:17:19 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "6" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "12" }, "ResponseBody": { - "jobId": "3f7500c9-7b84-4ae3-9335-8e1e63139f1c", - "lastUpdateDateTime": "2021-01-28T23:16:34Z", - "createdDateTime": "2021-01-28T23:16:33Z", - "expirationDateTime": "2021-01-29T23:16:33Z", + "jobId": "12a3f8a5-4582-4ed6-a21b-f906a663be51", + "lastUpdateDateTime": "2020-11-17T20:17:19Z", + "createdDateTime": "2020-11-17T20:17:19Z", + "expirationDateTime": "2020-11-18T20:17:19Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/3f7500c9-7b84-4ae3-9335-8e1e63139f1c?showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/12a3f8a5-4582-4ed6-a21b-f906a663be51?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "1f1476b4f8decd8416de12a15e37d599", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "2d3f83b6-bd36-4ad4-ac71-0f5a53cf90e9", + "apim-request-id": "ef23896f-7dda-4705-b697-f9e23f605d91", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:16:35 GMT", + "Date": "Tue, 17 Nov 2020 20:17:20 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "10" - }, - "ResponseBody": { - "jobId": "3f7500c9-7b84-4ae3-9335-8e1e63139f1c", - "lastUpdateDateTime": "2021-01-28T23:16:34Z", - "createdDateTime": "2021-01-28T23:16:33Z", - "expirationDateTime": "2021-01-29T23:16:33Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/3f7500c9-7b84-4ae3-9335-8e1e63139f1c?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "9fb8c34e36bba5c72869c2ed682ecdcc", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "ff7a09f2-d422-4ed7-99d1-f7de2ca1fe9f", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:16:36 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", + "X-Content-Type-Options": "nosniff", "x-envoy-upstream-service-time": "62" }, "ResponseBody": { - "jobId": "3f7500c9-7b84-4ae3-9335-8e1e63139f1c", - "lastUpdateDateTime": "2021-01-28T23:16:36Z", - "createdDateTime": "2021-01-28T23:16:33Z", - "expirationDateTime": "2021-01-29T23:16:33Z", + "jobId": "12a3f8a5-4582-4ed6-a21b-f906a663be51", + "lastUpdateDateTime": "2020-11-17T20:17:20Z", + "createdDateTime": "2020-11-17T20:17:19Z", + "expirationDateTime": "2020-11-18T20:17:19Z", "status": "succeeded", "errors": [], "results": { @@ -1088,6 +1076,6 @@ "Variables": { "RandomSeed": "1964733569", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceTestAsync.json index c92f785f3e5b2..2b70b458d0017 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceTestAsync.json @@ -1,15 +1,21 @@ { "Entries": [ { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-4969be23bb8775429f372a31ad7413e1-3d9c03fdc1079e45-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-e378a10bd4c5644d830ae0c747097d1d-66555824ce934042-00", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "99aaf08b1c844fb2d7a9025199ec97e4", "x-ms-return-client-request-id": "true" }, @@ -29,42 +35,120 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "0f00aa00-a70c-453d-a8f0-322ebea9bc3a", - "Date": "Thu, 28 Jan 2021 23:17:12 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/6068f6ce-6fd5-4cbe-ab81-0e5931b93e70", + "apim-request-id": "bf7fa95d-3cbf-4d0d-93d1-f542314dd081", + "Date": "Tue, 17 Nov 2020 20:17:43 GMT", + "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2a3901ba-172d-4894-9597-8f300e7cc8be", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "593" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "107" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/6068f6ce-6fd5-4cbe-ab81-0e5931b93e70?showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2a3901ba-172d-4894-9597-8f300e7cc8be?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "a6eb27012d3e0231e64179d6488bf525", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "257ec493-4427-4c20-aedf-c7ff17a6bdaa", + "apim-request-id": "4e4cca84-09df-4f71-ac0c-547db9859b9c", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:12 GMT", + "Date": "Tue, 17 Nov 2020 20:17:43 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "47" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "8" }, "ResponseBody": { - "jobId": "6068f6ce-6fd5-4cbe-ab81-0e5931b93e70", - "lastUpdateDateTime": "2021-01-28T23:17:12Z", - "createdDateTime": "2021-01-28T23:17:12Z", - "expirationDateTime": "2021-01-29T23:17:12Z", + "jobId": "2a3901ba-172d-4894-9597-8f300e7cc8be", + "lastUpdateDateTime": "2020-11-17T20:17:43Z", + "createdDateTime": "2020-11-17T20:17:43Z", + "expirationDateTime": "2020-11-18T20:17:43Z", + "status": "notStarted", + "errors": [] + } + }, + { + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2a3901ba-172d-4894-9597-8f300e7cc8be?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": [ + "application/json", + "text/json" + ], + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "4d12280124119b66ed27d10225884cad", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "c29f4ac1-cde1-429a-b30f-a99981d6ccca", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 17 Nov 2020 20:17:44 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "9" + }, + "ResponseBody": { + "jobId": "2a3901ba-172d-4894-9597-8f300e7cc8be", + "lastUpdateDateTime": "2020-11-17T20:17:43Z", + "createdDateTime": "2020-11-17T20:17:43Z", + "expirationDateTime": "2020-11-18T20:17:43Z", + "status": "notStarted", + "errors": [] + } + }, + { + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2a3901ba-172d-4894-9597-8f300e7cc8be?showStats=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": [ + "application/json", + "text/json" + ], + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "c1281b11742f5d97bfa8b242a2dc074b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "4e75f13e-227f-4463-b2e8-b947178ddcd7", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 17 Nov 2020 20:17:45 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "Transfer-Encoding": "chunked", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "44" + }, + "ResponseBody": { + "jobId": "2a3901ba-172d-4894-9597-8f300e7cc8be", + "lastUpdateDateTime": "2020-11-17T20:17:45Z", + "createdDateTime": "2020-11-17T20:17:43Z", + "expirationDateTime": "2020-11-18T20:17:43Z", "status": "succeeded", "errors": [], "results": { @@ -1028,6 +1112,6 @@ "Variables": { "RandomSeed": "2027271043", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceWithStatisticsTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceWithStatisticsTest.json index 49dab61f9f933..97ae3df643b24 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceWithStatisticsTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceWithStatisticsTest.json @@ -1,15 +1,21 @@ { "Entries": [ { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-893ad086adf9e042a6d13ceebe034471-dadb55943649bf40-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-820d1670fbc3b9449f529347d8ae1c84-29a313a32c740747-00", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "87697e405fe3a2c8182b48340c37e5c5", "x-ms-return-client-request-id": "true" }, @@ -29,72 +35,84 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "fd38784c-e179-4ec3-8cce-92987dcd04e8", - "Date": "Thu, 28 Jan 2021 23:16:37 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/398abfec-e751-45ac-86cc-70b931f6fcdf", + "apim-request-id": "bd9b5618-19b7-49ff-a1a4-a5e27664185a", + "Date": "Tue, 17 Nov 2020 20:17:21 GMT", + "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/0f1b6376-499b-4a5a-abd3-8a5a0014361e", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "108" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "98" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/398abfec-e751-45ac-86cc-70b931f6fcdf?showStats=true", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/0f1b6376-499b-4a5a-abd3-8a5a0014361e?showStats=true", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "f1abd77b68195cb092c7f20f1aa7cc84", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "c2905fd6-069e-45f1-86fc-9cd8b96054f8", + "apim-request-id": "905aea21-8ae7-4bf5-a538-f49ed6618c09", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:16:37 GMT", + "Date": "Tue, 17 Nov 2020 20:17:21 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "9" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "8" }, "ResponseBody": { - "jobId": "398abfec-e751-45ac-86cc-70b931f6fcdf", - "lastUpdateDateTime": "2021-01-28T23:16:37Z", - "createdDateTime": "2021-01-28T23:16:37Z", - "expirationDateTime": "2021-01-29T23:16:37Z", - "status": "running", + "jobId": "0f1b6376-499b-4a5a-abd3-8a5a0014361e", + "lastUpdateDateTime": "2020-11-17T20:17:21Z", + "createdDateTime": "2020-11-17T20:17:21Z", + "expirationDateTime": "2020-11-18T20:17:21Z", + "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/398abfec-e751-45ac-86cc-70b931f6fcdf?showStats=true", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/0f1b6376-499b-4a5a-abd3-8a5a0014361e?showStats=true", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "be37acebd508d7a1d3d78987b19e23cf", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "0314f455-d7ba-4375-b6fc-65990fde0138", + "apim-request-id": "7b90bc3e-33b6-4cc3-8d64-8c18ce13eaf1", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:16:38 GMT", + "Date": "Tue, 17 Nov 2020 20:17:22 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "64" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "59" }, "ResponseBody": { - "jobId": "398abfec-e751-45ac-86cc-70b931f6fcdf", - "lastUpdateDateTime": "2021-01-28T23:16:37Z", - "createdDateTime": "2021-01-28T23:16:37Z", - "expirationDateTime": "2021-01-29T23:16:37Z", + "jobId": "0f1b6376-499b-4a5a-abd3-8a5a0014361e", + "lastUpdateDateTime": "2020-11-17T20:17:22Z", + "createdDateTime": "2020-11-17T20:17:21Z", + "expirationDateTime": "2020-11-18T20:17:21Z", "status": "succeeded", "errors": [], "results": { @@ -1072,6 +1090,6 @@ "Variables": { "RandomSeed": "609735027", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceWithStatisticsTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceWithStatisticsTestAsync.json index 5c74791c4d7b2..9f5fcbd171ab6 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceWithStatisticsTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchConvenienceWithStatisticsTestAsync.json @@ -1,15 +1,21 @@ { "Entries": [ { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-0ac204e0d6555b468db40d19f2343baf-eda187de35d66749-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-f8537121a74ad5429fde7e832852f234-e011b86eb7e6744d-00", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "da8d96a331a03c42a6c41c2d9f512b98", "x-ms-return-client-request-id": "true" }, @@ -29,132 +35,84 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "4b645467-436c-4190-8a47-3ebb11d17ab6", - "Date": "Thu, 28 Jan 2021 23:17:12 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/f8d816e4-7dfa-4d23-926c-c1c294089534", + "apim-request-id": "7d0b3fd6-fb21-4f54-bea8-6bd12f85a090", + "Date": "Tue, 17 Nov 2020 20:17:46 GMT", + "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/bbb94621-6197-42a6-b2d9-fcf7a3b93321", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "96" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "90" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/f8d816e4-7dfa-4d23-926c-c1c294089534?showStats=true", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/bbb94621-6197-42a6-b2d9-fcf7a3b93321?showStats=true", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "a36dbbc9f92b427287ffda298bd01507", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "50703f57-b8cd-4149-8000-4848724f01fd", + "apim-request-id": "61921f13-fb74-4a60-bc26-105d1f5bcd79", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:13 GMT", + "Date": "Tue, 17 Nov 2020 20:17:46 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", + "X-Content-Type-Options": "nosniff", "x-envoy-upstream-service-time": "9" }, "ResponseBody": { - "jobId": "f8d816e4-7dfa-4d23-926c-c1c294089534", - "lastUpdateDateTime": "2021-01-28T23:17:13Z", - "createdDateTime": "2021-01-28T23:17:13Z", - "expirationDateTime": "2021-01-29T23:17:13Z", + "jobId": "bbb94621-6197-42a6-b2d9-fcf7a3b93321", + "lastUpdateDateTime": "2020-11-17T20:17:46Z", + "createdDateTime": "2020-11-17T20:17:46Z", + "expirationDateTime": "2020-11-18T20:17:46Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/f8d816e4-7dfa-4d23-926c-c1c294089534?showStats=true", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/bbb94621-6197-42a6-b2d9-fcf7a3b93321?showStats=true", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "86c4abbaba50d8ace0d0fc3795e01d2c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "e2f1899c-78fd-4633-b3c3-56b18c6ecdcc", + "apim-request-id": "f61f505d-0fba-4dcb-81cb-ac11692f0555", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:14 GMT", + "Date": "Tue, 17 Nov 2020 20:17:47 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "9" - }, - "ResponseBody": { - "jobId": "f8d816e4-7dfa-4d23-926c-c1c294089534", - "lastUpdateDateTime": "2021-01-28T23:17:13Z", - "createdDateTime": "2021-01-28T23:17:13Z", - "expirationDateTime": "2021-01-29T23:17:13Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/f8d816e4-7dfa-4d23-926c-c1c294089534?showStats=true", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "97afe1fd518fa965244a53a05719b0d6", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "3fe9f1be-81ce-4343-8a8c-7a95153a5917", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:16 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "11" - }, - "ResponseBody": { - "jobId": "f8d816e4-7dfa-4d23-926c-c1c294089534", - "lastUpdateDateTime": "2021-01-28T23:17:13Z", - "createdDateTime": "2021-01-28T23:17:13Z", - "expirationDateTime": "2021-01-29T23:17:13Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/f8d816e4-7dfa-4d23-926c-c1c294089534?showStats=true", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "f47314aea48d0f480e95c35afd3bada6", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "f10b976b-2e32-4756-ab23-d4bed03c0c14", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:17 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "117" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "41" }, "ResponseBody": { - "jobId": "f8d816e4-7dfa-4d23-926c-c1c294089534", - "lastUpdateDateTime": "2021-01-28T23:17:16Z", - "createdDateTime": "2021-01-28T23:17:13Z", - "expirationDateTime": "2021-01-29T23:17:13Z", + "jobId": "bbb94621-6197-42a6-b2d9-fcf7a3b93321", + "lastUpdateDateTime": "2020-11-17T20:17:47Z", + "createdDateTime": "2020-11-17T20:17:46Z", + "expirationDateTime": "2020-11-18T20:17:46Z", "status": "succeeded", "errors": [], "results": { @@ -1132,6 +1090,6 @@ "Variables": { "RandomSeed": "377463297", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchTest.json index 7558839fdc20f..51d2778c0b3ef 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchTest.json @@ -1,15 +1,21 @@ { "Entries": [ { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-caa036b15d3871449af92b335c759017-722e8f89000b324f-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-4fb9030fb7690b4c94a47bff1f52e26d-240da57c9617ad46-00", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "0d63e53cea7530898179e7904fedbae6", "x-ms-return-client-request-id": "true" }, @@ -29,102 +35,84 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "ad509db9-12f2-4c53-9bb1-65181615a3d2", - "Date": "Thu, 28 Jan 2021 23:16:39 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/3f594ff7-ba39-4323-a898-ae66d17b26e9", + "apim-request-id": "66c3f9d5-e426-4cf8-8334-12d83a1758f4", + "Date": "Tue, 17 Nov 2020 20:17:22 GMT", + "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/362248b4-c139-42dc-9cf6-def8daf40398", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "93" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "101" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/3f594ff7-ba39-4323-a898-ae66d17b26e9?showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/362248b4-c139-42dc-9cf6-def8daf40398?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "7a482533d010f661d7a330e46a9c020c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "df46733b-2e29-4561-86ec-ea0ca27624ba", + "apim-request-id": "1eedc4be-a8d5-47ee-8e82-f68537143b9d", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:16:39 GMT", + "Date": "Tue, 17 Nov 2020 20:17:22 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "10" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "7" }, "ResponseBody": { - "jobId": "3f594ff7-ba39-4323-a898-ae66d17b26e9", - "lastUpdateDateTime": "2021-01-28T23:16:39Z", - "createdDateTime": "2021-01-28T23:16:39Z", - "expirationDateTime": "2021-01-29T23:16:39Z", + "jobId": "362248b4-c139-42dc-9cf6-def8daf40398", + "lastUpdateDateTime": "2020-11-17T20:17:23Z", + "createdDateTime": "2020-11-17T20:17:23Z", + "expirationDateTime": "2020-11-18T20:17:23Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/3f594ff7-ba39-4323-a898-ae66d17b26e9?showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/362248b4-c139-42dc-9cf6-def8daf40398?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "d4480f3cd87c0175cc930cf584ae8a9b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "da535583-72e8-4120-b635-455275ef4684", + "apim-request-id": "95a2ab4f-95ba-4048-87b5-e5e9483174b4", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:16:40 GMT", + "Date": "Tue, 17 Nov 2020 20:17:24 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "9" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "64" }, "ResponseBody": { - "jobId": "3f594ff7-ba39-4323-a898-ae66d17b26e9", - "lastUpdateDateTime": "2021-01-28T23:16:39Z", - "createdDateTime": "2021-01-28T23:16:39Z", - "expirationDateTime": "2021-01-29T23:16:39Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/3f594ff7-ba39-4323-a898-ae66d17b26e9?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "00da5d97d0326c02836c36d1baa4c6e5", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "65cc098a-6021-4557-a551-556bc269680e", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:16:41 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "65" - }, - "ResponseBody": { - "jobId": "3f594ff7-ba39-4323-a898-ae66d17b26e9", - "lastUpdateDateTime": "2021-01-28T23:16:41Z", - "createdDateTime": "2021-01-28T23:16:39Z", - "expirationDateTime": "2021-01-29T23:16:39Z", + "jobId": "362248b4-c139-42dc-9cf6-def8daf40398", + "lastUpdateDateTime": "2020-11-17T20:17:23Z", + "createdDateTime": "2020-11-17T20:17:23Z", + "expirationDateTime": "2020-11-18T20:17:23Z", "status": "succeeded", "errors": [], "results": { @@ -1088,6 +1076,6 @@ "Variables": { "RandomSeed": "894243901", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchTestAsync.json index d524eefed0695..4f373637d109a 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchTestAsync.json @@ -1,15 +1,21 @@ { "Entries": [ { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-dff925c4361b2a40bd9c1bc57b249822-e3c092051a358e49-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-05f41b1b783914489db35780ac4e1eac-fce58d1f3cc89d4c-00", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "17e898e3099143136b2e35c82964efd9", "x-ms-return-client-request-id": "true" }, @@ -29,132 +35,84 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "7f765e9e-7809-4cbe-8186-65ee4bedc708", - "Date": "Thu, 28 Jan 2021 23:17:18 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/0b3f3e6a-5d69-44c7-b304-fcde15d9dd2d", + "apim-request-id": "8087eea0-099a-4cf6-bc28-917ba41d612e", + "Date": "Tue, 17 Nov 2020 20:17:47 GMT", + "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/3fa152cb-6ce3-4f6a-a245-947cc74a5869", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "93" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "87" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/0b3f3e6a-5d69-44c7-b304-fcde15d9dd2d?showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/3fa152cb-6ce3-4f6a-a245-947cc74a5869?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "7dd0fa2b947b788e4d51b90a9e064f06", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "5ec6305a-ae9c-4539-89a0-1d39ecd1d1dc", + "apim-request-id": "c52df40a-dd12-4fd2-9516-84fb47b1ed90", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:18 GMT", + "Date": "Tue, 17 Nov 2020 20:17:47 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", + "X-Content-Type-Options": "nosniff", "x-envoy-upstream-service-time": "9" }, "ResponseBody": { - "jobId": "0b3f3e6a-5d69-44c7-b304-fcde15d9dd2d", - "lastUpdateDateTime": "2021-01-28T23:17:18Z", - "createdDateTime": "2021-01-28T23:17:18Z", - "expirationDateTime": "2021-01-29T23:17:18Z", - "status": "notStarted", + "jobId": "3fa152cb-6ce3-4f6a-a245-947cc74a5869", + "lastUpdateDateTime": "2020-11-17T20:17:48Z", + "createdDateTime": "2020-11-17T20:17:48Z", + "expirationDateTime": "2020-11-18T20:17:48Z", + "status": "running", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/0b3f3e6a-5d69-44c7-b304-fcde15d9dd2d?showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/3fa152cb-6ce3-4f6a-a245-947cc74a5869?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "ddd7cae644b1aa3bb79fb4ecc872f743", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "28976bef-b49f-4f04-ac22-e4c9dab62155", + "apim-request-id": "63573006-4315-4971-a57c-ae3446e47bce", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:19 GMT", + "Date": "Tue, 17 Nov 2020 20:17:49 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "7" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "39" }, "ResponseBody": { - "jobId": "0b3f3e6a-5d69-44c7-b304-fcde15d9dd2d", - "lastUpdateDateTime": "2021-01-28T23:17:18Z", - "createdDateTime": "2021-01-28T23:17:18Z", - "expirationDateTime": "2021-01-29T23:17:18Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/0b3f3e6a-5d69-44c7-b304-fcde15d9dd2d?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "3c1db919135b4f3e0970ca3f4f09a565", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "c9ddecfa-db79-483a-b773-9dc2e0c20f41", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:20 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "9" - }, - "ResponseBody": { - "jobId": "0b3f3e6a-5d69-44c7-b304-fcde15d9dd2d", - "lastUpdateDateTime": "2021-01-28T23:17:18Z", - "createdDateTime": "2021-01-28T23:17:18Z", - "expirationDateTime": "2021-01-29T23:17:18Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/0b3f3e6a-5d69-44c7-b304-fcde15d9dd2d?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "5fe22edf128ce627be26c6dcdfa2b0da", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "9dbc5e2e-8353-4667-83bf-520e46fdf232", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:21 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "65" - }, - "ResponseBody": { - "jobId": "0b3f3e6a-5d69-44c7-b304-fcde15d9dd2d", - "lastUpdateDateTime": "2021-01-28T23:17:21Z", - "createdDateTime": "2021-01-28T23:17:18Z", - "expirationDateTime": "2021-01-29T23:17:18Z", + "jobId": "3fa152cb-6ce3-4f6a-a245-947cc74a5869", + "lastUpdateDateTime": "2020-11-17T20:17:48Z", + "createdDateTime": "2020-11-17T20:17:48Z", + "expirationDateTime": "2020-11-18T20:17:48Z", "status": "succeeded", "errors": [], "results": { @@ -1118,6 +1076,6 @@ "Variables": { "RandomSeed": "1051051872", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithCancellation.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithCancellation.json index 63e5095b46060..5f8fe1d3ebef5 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithCancellation.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithCancellation.json @@ -8,8 +8,8 @@ "Content-Length": "1555", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-486d6e22f3be9a47afde02c8b5334cd6-e1c587633540784b-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-fe4a69256ca20e4d8e5be111c9b59898-4b073567e45cb94f-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210125.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "d6f2d0cc095dc3418ddc67fdaec34f8c", "x-ms-return-client-request-id": "true" }, @@ -69,65 +69,65 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "22b23492-c6aa-4072-ac5b-d2b42ff554ef", - "Date": "Thu, 28 Jan 2021 23:16:42 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/9201a8ad-0a6b-484a-bfc8-8f9f810541f0", + "apim-request-id": "4ef6323b-4b0f-41ab-8824-f1a6443a96e9", + "Date": "Mon, 25 Jan 2021 21:21:54 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/767c1c2f-b7e9-4d86-9649-d18c783b7981", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "212" + "x-envoy-upstream-service-time": "459" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/9201a8ad-0a6b-484a-bfc8-8f9f810541f0", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/767c1c2f-b7e9-4d86-9649-d18c783b7981", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210125.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "e1bd0b21afaacf4ed5d58b17e46d5140", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "bd410178-fb0d-4301-ab40-2f2cf8429cbb", - "Date": "Thu, 28 Jan 2021 23:16:42 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/9201a8ad-0a6b-484a-bfc8-8f9f810541f0", + "apim-request-id": "a6dc1370-39b6-4769-8ac5-196bcfba641a", + "Date": "Mon, 25 Jan 2021 21:21:54 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/767c1c2f-b7e9-4d86-9649-d18c783b7981", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "39" + "x-envoy-upstream-service-time": "87" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/9201a8ad-0a6b-484a-bfc8-8f9f810541f0?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/767c1c2f-b7e9-4d86-9649-d18c783b7981?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210125.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "0b47155e744b34ff8e7def83a29a0d23", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "56448435-8852-456e-a3e1-2314bde0ef90", + "apim-request-id": "6625bb2b-e241-4a34-89c5-6da031a5cbe7", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:16:42 GMT", + "Date": "Mon, 25 Jan 2021 21:21:54 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "5" + "x-envoy-upstream-service-time": "99" }, "ResponseBody": { - "jobId": "9201a8ad-0a6b-484a-bfc8-8f9f810541f0", - "lastUpdateDateTime": "2021-01-28T23:16:43Z", - "createdDateTime": "2021-01-28T23:16:42Z", - "expirationDateTime": "2021-01-29T23:16:42Z", + "jobId": "767c1c2f-b7e9-4d86-9649-d18c783b7981", + "lastUpdateDateTime": "2021-01-25T21:21:55Z", + "createdDateTime": "2021-01-25T21:21:54Z", + "expirationDateTime": "2021-01-26T21:21:54Z", "status": "cancelled", "errors": [] } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithCancellationAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithCancellationAsync.json index 184e368f31d2a..c2a0e3ceef7dc 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithCancellationAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithCancellationAsync.json @@ -8,8 +8,8 @@ "Content-Length": "1555", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-1457ed661c33ad449761f8f69ef16ba7-2d3d9c0afcecae44-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-7bcbb70e0e9cbb4c9f364cc9834adaa9-77ff086169d2b44a-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210125.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "174f72762caf768d734c4bc2cef9931d", "x-ms-return-client-request-id": "true" }, @@ -69,65 +69,65 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "ecb052e7-3eb7-454d-baf4-997c091726b4", - "Date": "Thu, 28 Jan 2021 23:17:22 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/52beb13b-8900-4632-8106-3f2a4834d4d9", + "apim-request-id": "6030c1ef-5c9d-4d7e-aff2-264f15c6c0f4", + "Date": "Mon, 25 Jan 2021 21:21:55 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/7229745e-43ed-4502-ad23-1ebd33e9212a", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "216" + "x-envoy-upstream-service-time": "451" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/52beb13b-8900-4632-8106-3f2a4834d4d9", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/7229745e-43ed-4502-ad23-1ebd33e9212a", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210125.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "b4dedd3f6eed1404f274aef6ca46c145", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "cd2106de-3c44-4a02-bb6b-4e77d0c3d8a4", - "Date": "Thu, 28 Jan 2021 23:17:22 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/52beb13b-8900-4632-8106-3f2a4834d4d9", + "apim-request-id": "85e1a560-71be-4a46-911e-885e05a5f454", + "Date": "Mon, 25 Jan 2021 21:21:56 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/7229745e-43ed-4502-ad23-1ebd33e9212a", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "18" + "x-envoy-upstream-service-time": "61" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/52beb13b-8900-4632-8106-3f2a4834d4d9?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/7229745e-43ed-4502-ad23-1ebd33e9212a?showStats=false", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210125.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "1748fd33d947290e5b3b13a681114adc", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "9cea828a-f4d9-4be6-ab6c-1357c9317063", + "apim-request-id": "583f1064-0e45-4634-996a-f8a9e37265c7", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:22 GMT", + "Date": "Mon, 25 Jan 2021 21:21:56 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "5" + "x-envoy-upstream-service-time": "11" }, "ResponseBody": { - "jobId": "52beb13b-8900-4632-8106-3f2a4834d4d9", - "lastUpdateDateTime": "2021-01-28T23:17:22Z", - "createdDateTime": "2021-01-28T23:17:22Z", - "expirationDateTime": "2021-01-29T23:17:22Z", + "jobId": "7229745e-43ed-4502-ad23-1ebd33e9212a", + "lastUpdateDateTime": "2021-01-25T21:21:57Z", + "createdDateTime": "2021-01-25T21:21:56Z", + "expirationDateTime": "2021-01-26T21:21:56Z", "status": "cancelled", "errors": [] } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithErrorTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithErrorTest.json index 439dd40528970..37bbbe0cf003d 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithErrorTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithErrorTest.json @@ -1,15 +1,21 @@ { "Entries": [ { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Content-Length": "260", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-edde41867e8272408319ad3b27ce4278-6afc02dbf247f44c-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210129.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-5b8b45d57fc3fe4b8fbcf6aef4492347-60e6882442630a45-00", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "ed679d93c08fe171a9b236aaa757046a", "x-ms-return-client-request-id": "true" }, @@ -34,282 +40,120 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "d55af006-23df-4cac-af23-09c836eea8e3", - "Date": "Fri, 29 Jan 2021 17:48:29 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/6e283a9d-6739-4f93-9db8-57de75d4e0f2", + "apim-request-id": "c5f10c46-5981-4387-a80f-8e22dc29cab1", + "Date": "Tue, 17 Nov 2020 20:17:24 GMT", + "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2fb767eb-a81e-4f61-8f75-0d4a0ee5691d", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "867" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "126" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/6e283a9d-6739-4f93-9db8-57de75d4e0f2?showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2fb767eb-a81e-4f61-8f75-0d4a0ee5691d?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210129.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "8ac7fae8cf64a9249598acb3531ad44c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "4c20017a-a0b2-478b-9744-dfa0b6cf98c5", + "apim-request-id": "52ec23d4-b58a-487c-a840-82fbef19b656", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 29 Jan 2021 17:48:29 GMT", + "Date": "Tue, 17 Nov 2020 20:17:24 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "122" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "8" }, "ResponseBody": { - "jobId": "6e283a9d-6739-4f93-9db8-57de75d4e0f2", - "lastUpdateDateTime": "2021-01-29T17:48:29Z", - "createdDateTime": "2021-01-29T17:48:28Z", - "expirationDateTime": "2021-01-30T17:48:28Z", + "jobId": "2fb767eb-a81e-4f61-8f75-0d4a0ee5691d", + "lastUpdateDateTime": "2020-11-17T20:17:25Z", + "createdDateTime": "2020-11-17T20:17:25Z", + "expirationDateTime": "2020-11-18T20:17:25Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/6e283a9d-6739-4f93-9db8-57de75d4e0f2?showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2fb767eb-a81e-4f61-8f75-0d4a0ee5691d?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210129.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "e1e35bcd7fe4ca895c5026b1fcf89877", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "b2f606fc-c88a-4d34-ae20-4a927d38ce55", + "apim-request-id": "ebfa1a3c-708a-48fe-80a2-4868d2e63267", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 29 Jan 2021 17:48:30 GMT", + "Date": "Tue, 17 Nov 2020 20:17:25 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "8" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "9" }, "ResponseBody": { - "jobId": "6e283a9d-6739-4f93-9db8-57de75d4e0f2", - "lastUpdateDateTime": "2021-01-29T17:48:29Z", - "createdDateTime": "2021-01-29T17:48:28Z", - "expirationDateTime": "2021-01-30T17:48:28Z", + "jobId": "2fb767eb-a81e-4f61-8f75-0d4a0ee5691d", + "lastUpdateDateTime": "2020-11-17T20:17:25Z", + "createdDateTime": "2020-11-17T20:17:25Z", + "expirationDateTime": "2020-11-18T20:17:25Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/6e283a9d-6739-4f93-9db8-57de75d4e0f2?showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2fb767eb-a81e-4f61-8f75-0d4a0ee5691d?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210129.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "42e053ff1beac39b78bd58f714be8d8f", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "9554bfa3-f3cb-4312-bf47-e48e43fe00fd", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 29 Jan 2021 17:48:32 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "817" - }, - "ResponseBody": { - "jobId": "6e283a9d-6739-4f93-9db8-57de75d4e0f2", - "lastUpdateDateTime": "2021-01-29T17:48:29Z", - "createdDateTime": "2021-01-29T17:48:28Z", - "expirationDateTime": "2021-01-30T17:48:28Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/6e283a9d-6739-4f93-9db8-57de75d4e0f2?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210129.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "4bddeade2273698670fd2d14a873ad9c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "45a6ed6e-c601-4089-8369-74ae56f1e34f", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 29 Jan 2021 17:48:34 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "778" - }, - "ResponseBody": { - "jobId": "6e283a9d-6739-4f93-9db8-57de75d4e0f2", - "lastUpdateDateTime": "2021-01-29T17:48:34Z", - "createdDateTime": "2021-01-29T17:48:28Z", - "expirationDateTime": "2021-01-30T17:48:28Z", - "status": "running", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/6e283a9d-6739-4f93-9db8-57de75d4e0f2?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210129.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "ffb435ff9139b161bf1f68262691b59e", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "463cf7c0-0339-4803-a7ee-b09e0f1aaa1f", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 29 Jan 2021 17:48:35 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "145" - }, - "ResponseBody": { - "jobId": "6e283a9d-6739-4f93-9db8-57de75d4e0f2", - "lastUpdateDateTime": "2021-01-29T17:48:34Z", - "createdDateTime": "2021-01-29T17:48:28Z", - "expirationDateTime": "2021-01-30T17:48:28Z", - "status": "running", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/6e283a9d-6739-4f93-9db8-57de75d4e0f2?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210129.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "11d297c24c1bdc03cd77d1edee871a04", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "ea51e2d4-7b02-4403-951d-8fa0578d50c6", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 29 Jan 2021 17:48:36 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "6" - }, - "ResponseBody": { - "jobId": "6e283a9d-6739-4f93-9db8-57de75d4e0f2", - "lastUpdateDateTime": "2021-01-29T17:48:34Z", - "createdDateTime": "2021-01-29T17:48:28Z", - "expirationDateTime": "2021-01-30T17:48:28Z", - "status": "running", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/6e283a9d-6739-4f93-9db8-57de75d4e0f2?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210129.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "dff8bc108d094c55892c8b53ba6042df", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1dd54f1b-efee-4e5d-b306-f2316f3fd39e", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 29 Jan 2021 17:48:38 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "10" - }, - "ResponseBody": { - "jobId": "6e283a9d-6739-4f93-9db8-57de75d4e0f2", - "lastUpdateDateTime": "2021-01-29T17:48:34Z", - "createdDateTime": "2021-01-29T17:48:28Z", - "expirationDateTime": "2021-01-30T17:48:28Z", - "status": "running", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/6e283a9d-6739-4f93-9db8-57de75d4e0f2?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210129.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "11518e479ba1b28131d832c2c073c238", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "df881b99-1ea5-40cb-adc3-706459049adb", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 29 Jan 2021 17:48:39 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "8" - }, - "ResponseBody": { - "jobId": "6e283a9d-6739-4f93-9db8-57de75d4e0f2", - "lastUpdateDateTime": "2021-01-29T17:48:34Z", - "createdDateTime": "2021-01-29T17:48:28Z", - "expirationDateTime": "2021-01-30T17:48:28Z", - "status": "running", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/6e283a9d-6739-4f93-9db8-57de75d4e0f2?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210129.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "6a156405d5993595428588eec1b0216c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "0fa1911e-cb0f-4fc3-8de1-1feaef6d5c37", + "apim-request-id": "5eda0b83-2f8c-4434-908f-a0530e660163", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 29 Jan 2021 17:48:41 GMT", + "Date": "Tue, 17 Nov 2020 20:17:26 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "699" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "69" }, "ResponseBody": { - "jobId": "6e283a9d-6739-4f93-9db8-57de75d4e0f2", - "lastUpdateDateTime": "2021-01-29T17:48:39Z", - "createdDateTime": "2021-01-29T17:48:28Z", - "expirationDateTime": "2021-01-30T17:48:28Z", + "jobId": "2fb767eb-a81e-4f61-8f75-0d4a0ee5691d", + "lastUpdateDateTime": "2020-11-17T20:17:27Z", + "createdDateTime": "2020-11-17T20:17:25Z", + "expirationDateTime": "2020-11-18T20:17:25Z", "status": "succeeded", "errors": [], "results": { @@ -1285,6 +1129,6 @@ "Variables": { "RandomSeed": "1719176907", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithErrorTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithErrorTestAsync.json index 2b3adb9b073c5..420147347302a 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithErrorTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithErrorTestAsync.json @@ -1,15 +1,21 @@ { "Entries": [ { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Content-Length": "260", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-1580268df4b10f47a1ea29598ecb0a57-3d6cd26d4be31841-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-0368f13da7cd13459cfdaab50b5b66d9-e31129e5a759704f-00", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "4352d8dd6e2ff74a3743e20989f20949", "x-ms-return-client-request-id": "true" }, @@ -34,132 +40,120 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "9625a10b-52d8-4921-a249-7cc743ef49f8", - "Date": "Thu, 28 Jan 2021 23:17:23 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/cca29591-4889-40a5-94bc-2ee110020310", + "apim-request-id": "94825d88-d0d8-48b0-90f2-9b766c6aa7af", + "Date": "Tue, 17 Nov 2020 20:17:49 GMT", + "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/02eb8b31-3b90-4831-9e21-ad2b9507e75b", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "124" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "100" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/cca29591-4889-40a5-94bc-2ee110020310?showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/02eb8b31-3b90-4831-9e21-ad2b9507e75b?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "b850713105701863d1b6a799a800b67b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "b33d73d9-a3f8-4f32-b6d5-6c2b6d5f904d", + "apim-request-id": "c7819c40-9c03-44a2-87c0-7ee28aaf6a86", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:23 GMT", + "Date": "Tue, 17 Nov 2020 20:17:49 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", + "X-Content-Type-Options": "nosniff", "x-envoy-upstream-service-time": "9" }, "ResponseBody": { - "jobId": "cca29591-4889-40a5-94bc-2ee110020310", - "lastUpdateDateTime": "2021-01-28T23:17:23Z", - "createdDateTime": "2021-01-28T23:17:23Z", - "expirationDateTime": "2021-01-29T23:17:23Z", + "jobId": "02eb8b31-3b90-4831-9e21-ad2b9507e75b", + "lastUpdateDateTime": "2020-11-17T20:17:50Z", + "createdDateTime": "2020-11-17T20:17:50Z", + "expirationDateTime": "2020-11-18T20:17:50Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/cca29591-4889-40a5-94bc-2ee110020310?showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/02eb8b31-3b90-4831-9e21-ad2b9507e75b?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "7b6997a8eb08a1c0115e8728d43fe710", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "60b2f7a0-4fa1-463e-b197-a0dfa7acddee", + "apim-request-id": "9c59f478-edbb-40c8-9ca0-c0d5bf4aaa5c", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:24 GMT", + "Date": "Tue, 17 Nov 2020 20:17:50 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "9" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "7" }, "ResponseBody": { - "jobId": "cca29591-4889-40a5-94bc-2ee110020310", - "lastUpdateDateTime": "2021-01-28T23:17:23Z", - "createdDateTime": "2021-01-28T23:17:23Z", - "expirationDateTime": "2021-01-29T23:17:23Z", + "jobId": "02eb8b31-3b90-4831-9e21-ad2b9507e75b", + "lastUpdateDateTime": "2020-11-17T20:17:50Z", + "createdDateTime": "2020-11-17T20:17:50Z", + "expirationDateTime": "2020-11-18T20:17:50Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/cca29591-4889-40a5-94bc-2ee110020310?showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/02eb8b31-3b90-4831-9e21-ad2b9507e75b?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "c4c517d3dcd1d7de74397279c7b14e37", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "613a0d29-d359-4cf0-9bfa-7af927d3f952", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:25 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "9" - }, - "ResponseBody": { - "jobId": "cca29591-4889-40a5-94bc-2ee110020310", - "lastUpdateDateTime": "2021-01-28T23:17:23Z", - "createdDateTime": "2021-01-28T23:17:23Z", - "expirationDateTime": "2021-01-29T23:17:23Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/cca29591-4889-40a5-94bc-2ee110020310?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "f260678d8d894640b1aea7117e3b4491", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6d21eef9-eab2-4d8e-99b9-ab2ef58864c1", + "apim-request-id": "2b18d8e3-6ab9-427a-b382-c034485f0e73", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:26 GMT", + "Date": "Tue, 17 Nov 2020 20:17:51 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "143" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "84" }, "ResponseBody": { - "jobId": "cca29591-4889-40a5-94bc-2ee110020310", - "lastUpdateDateTime": "2021-01-28T23:17:26Z", - "createdDateTime": "2021-01-28T23:17:23Z", - "expirationDateTime": "2021-01-29T23:17:23Z", + "jobId": "02eb8b31-3b90-4831-9e21-ad2b9507e75b", + "lastUpdateDateTime": "2020-11-17T20:17:52Z", + "createdDateTime": "2020-11-17T20:17:50Z", + "expirationDateTime": "2020-11-18T20:17:50Z", "status": "succeeded", "errors": [], "results": { @@ -1135,6 +1129,6 @@ "Variables": { "RandomSeed": "729062063", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithPagination.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithPagination.json index e6935335fe2e1..476cf064b65b3 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithPagination.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithPagination.json @@ -1,15 +1,21 @@ { "Entries": [ { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Content-Length": "1395", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-af9f8df578418e4d96d0384bc54db74e-7243ac22ac498e48-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-2dcca0f4273eab408841a8b945efb8d0-5f6dcf46f2900147-00", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "3d690e65097214462e3994d44b026896", "x-ms-return-client-request-id": "true" }, @@ -69,167 +75,156 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "a22fba7e-48fe-4176-99c3-90675f80c2e6", - "Date": "Thu, 28 Jan 2021 23:16:47 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c", + "apim-request-id": "905323d2-0148-41fa-a03e-f6bb4f53c37c", + "Date": "Tue, 17 Nov 2020 20:17:28 GMT", + "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/828de621-689c-4434-b72e-3caaaa60d6e5", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "173" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "273" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c?$top=2\u0026showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/828de621-689c-4434-b72e-3caaaa60d6e5?$top=2\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-5436248d2ee1ba42b93889ebbae02a5c-711cbc7aa4287d43-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "60014c42eec829d6c5965295103c077f", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "28af0f18-2c0e-45d1-a0db-bc9ed36e9245", + "apim-request-id": "a6efae33-03b0-46d1-9a94-b74fa7d5d6ee", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:16:47 GMT", + "Date": "Tue, 17 Nov 2020 20:17:28 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "9" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "8" }, "ResponseBody": { - "jobId": "c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c", - "lastUpdateDateTime": "2021-01-28T23:16:48Z", - "createdDateTime": "2021-01-28T23:16:48Z", - "expirationDateTime": "2021-01-29T23:16:48Z", + "jobId": "828de621-689c-4434-b72e-3caaaa60d6e5", + "lastUpdateDateTime": "2020-11-17T20:17:28Z", + "createdDateTime": "2020-11-17T20:17:28Z", + "expirationDateTime": "2020-11-18T20:17:28Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c?$top=2\u0026showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/828de621-689c-4434-b72e-3caaaa60d6e5?$top=2\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-5436248d2ee1ba42b93889ebbae02a5c-f8cd546fb20c7a4f-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "e6e71e1943fddaaba6e9191ddcfc8d38", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "27d9923d-969d-4fa7-9af1-fe6216c58ad5", + "apim-request-id": "dcfb1111-41bf-4280-84e8-21971e251254", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:16:48 GMT", + "Date": "Tue, 17 Nov 2020 20:17:29 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", + "X-Content-Type-Options": "nosniff", "x-envoy-upstream-service-time": "9" }, "ResponseBody": { - "jobId": "c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c", - "lastUpdateDateTime": "2021-01-28T23:16:48Z", - "createdDateTime": "2021-01-28T23:16:48Z", - "expirationDateTime": "2021-01-29T23:16:48Z", + "jobId": "828de621-689c-4434-b72e-3caaaa60d6e5", + "lastUpdateDateTime": "2020-11-17T20:17:28Z", + "createdDateTime": "2020-11-17T20:17:28Z", + "expirationDateTime": "2020-11-18T20:17:28Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c?$top=2\u0026showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/828de621-689c-4434-b72e-3caaaa60d6e5?$top=2\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-5436248d2ee1ba42b93889ebbae02a5c-11410e6ba2a2364b-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "6bedcd03a2427620384078dbb7b003f2", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "fbc76809-ec9b-4cc5-922a-72696a03e113", + "apim-request-id": "c94b7d03-a988-4a47-804b-a0dabbcb2c22", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:16:50 GMT", + "Date": "Tue, 17 Nov 2020 20:17:30 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "11" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "8" }, "ResponseBody": { - "jobId": "c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c", - "lastUpdateDateTime": "2021-01-28T23:16:48Z", - "createdDateTime": "2021-01-28T23:16:48Z", - "expirationDateTime": "2021-01-29T23:16:48Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c?$top=2\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-5436248d2ee1ba42b93889ebbae02a5c-9b928cb0a15a064d-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "2cba1531821bff99a027b9ded5b94dc9", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "3691e18e-cdeb-4255-b27e-6d917f8f5fd2", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:16:52 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "7" - }, - "ResponseBody": { - "jobId": "c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c", - "lastUpdateDateTime": "2021-01-28T23:16:52Z", - "createdDateTime": "2021-01-28T23:16:48Z", - "expirationDateTime": "2021-01-29T23:16:48Z", + "jobId": "828de621-689c-4434-b72e-3caaaa60d6e5", + "lastUpdateDateTime": "2020-11-17T20:17:30Z", + "createdDateTime": "2020-11-17T20:17:28Z", + "expirationDateTime": "2020-11-18T20:17:28Z", "status": "running", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c?$top=2\u0026showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/828de621-689c-4434-b72e-3caaaa60d6e5?$top=2\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-5436248d2ee1ba42b93889ebbae02a5c-02078d7a572b8443-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "439219099c4e763dfe70aebdcbcf23f6", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "2cba1531821bff99a027b9ded5b94dc9", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "a09b4828-0349-43a3-a33a-158d9f6a97c7", + "apim-request-id": "ac799a42-e207-4727-aef3-d7d073fad944", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:16:53 GMT", + "Date": "Tue, 17 Nov 2020 20:17:31 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "70" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "61" }, "ResponseBody": { - "jobId": "c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c", - "lastUpdateDateTime": "2021-01-28T23:16:52Z", - "createdDateTime": "2021-01-28T23:16:48Z", - "expirationDateTime": "2021-01-29T23:16:48Z", + "jobId": "828de621-689c-4434-b72e-3caaaa60d6e5", + "lastUpdateDateTime": "2020-11-17T20:17:31Z", + "createdDateTime": "2020-11-17T20:17:28Z", + "expirationDateTime": "2020-11-18T20:17:28Z", "status": "succeeded", "errors": [], "results": { @@ -478,36 +473,41 @@ "errors": [], "modelVersion": "2020-09-03" }, - "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c?$skip=2\u0026$top=2" + "@nextLink": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/828de621-689c-4434-b72e-3caaaa60d6e5?$skip=2\u0026$top=2" } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c?$top=2\u0026$skip=2\u0026showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/828de621-689c-4434-b72e-3caaaa60d6e5?$top=2\u0026$skip=2\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-19167d558e4dd449a1a698766f3eb9e4-d2bd79a89469ab42-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "c6eb26e66141811d33eeca1ae941a17e", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "439219099c4e763dfe70aebdcbcf23f6", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "0f77ce70-873a-45ef-afc7-3c5a84db7798", + "apim-request-id": "14af19a6-08b2-4e39-8461-f4b78e1a586f", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:16:53 GMT", + "Date": "Tue, 17 Nov 2020 20:17:32 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "59" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "54" }, "ResponseBody": { - "jobId": "c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c", - "lastUpdateDateTime": "2021-01-28T23:16:52Z", - "createdDateTime": "2021-01-28T23:16:48Z", - "expirationDateTime": "2021-01-29T23:16:48Z", + "jobId": "828de621-689c-4434-b72e-3caaaa60d6e5", + "lastUpdateDateTime": "2020-11-17T20:17:31Z", + "createdDateTime": "2020-11-17T20:17:28Z", + "expirationDateTime": "2020-11-18T20:17:28Z", "status": "succeeded", "errors": [], "results": { @@ -756,36 +756,41 @@ "errors": [], "modelVersion": "2020-09-03" }, - "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c?$skip=4\u0026$top=2" + "@nextLink": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/828de621-689c-4434-b72e-3caaaa60d6e5?$skip=4\u0026$top=2" } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c?$top=2\u0026$skip=4\u0026showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/828de621-689c-4434-b72e-3caaaa60d6e5?$top=2\u0026$skip=4\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-58cf82c2ab1e0844869c23cbf5afd119-11098fec8fa22d43-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "9dd2aef2c01e95a3d8442daad3dc33d1", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "c6eb26e66141811d33eeca1ae941a17e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "da889e8e-7131-4673-853e-d4814f109d1c", + "apim-request-id": "f3e26ac2-fb54-42c7-a263-858866af9316", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:16:54 GMT", + "Date": "Tue, 17 Nov 2020 20:17:32 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "75" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "53" }, "ResponseBody": { - "jobId": "c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c", - "lastUpdateDateTime": "2021-01-28T23:16:52Z", - "createdDateTime": "2021-01-28T23:16:48Z", - "expirationDateTime": "2021-01-29T23:16:48Z", + "jobId": "828de621-689c-4434-b72e-3caaaa60d6e5", + "lastUpdateDateTime": "2020-11-17T20:17:31Z", + "createdDateTime": "2020-11-17T20:17:28Z", + "expirationDateTime": "2020-11-18T20:17:28Z", "status": "succeeded", "errors": [], "results": { @@ -1034,36 +1039,41 @@ "errors": [], "modelVersion": "2020-09-03" }, - "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c?$skip=6\u0026$top=2" + "@nextLink": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/828de621-689c-4434-b72e-3caaaa60d6e5?$skip=6\u0026$top=2" } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c?$top=2\u0026$skip=6\u0026showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/828de621-689c-4434-b72e-3caaaa60d6e5?$top=2\u0026$skip=6\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-0fcf75fff6f3714794d64af0b1e3bcf7-3741389588b5f248-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "aef8c20486cda788fc100f60d1228dbd", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "9dd2aef2c01e95a3d8442daad3dc33d1", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "3f2240c1-bc49-4254-aa42-895feff85a7a", + "apim-request-id": "c2b61286-ebb1-4d78-b85a-285636c499e1", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:16:56 GMT", + "Date": "Tue, 17 Nov 2020 20:17:33 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "1633" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "60" }, "ResponseBody": { - "jobId": "c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c", - "lastUpdateDateTime": "2021-01-28T23:16:52Z", - "createdDateTime": "2021-01-28T23:16:48Z", - "expirationDateTime": "2021-01-29T23:16:48Z", + "jobId": "828de621-689c-4434-b72e-3caaaa60d6e5", + "lastUpdateDateTime": "2020-11-17T20:17:31Z", + "createdDateTime": "2020-11-17T20:17:28Z", + "expirationDateTime": "2020-11-18T20:17:28Z", "status": "succeeded", "errors": [], "results": { @@ -1312,36 +1322,41 @@ "errors": [], "modelVersion": "2020-09-03" }, - "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c?$skip=8\u0026$top=2" + "@nextLink": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/828de621-689c-4434-b72e-3caaaa60d6e5?$skip=8\u0026$top=2" } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c?$top=2\u0026$skip=8\u0026showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/828de621-689c-4434-b72e-3caaaa60d6e5?$top=2\u0026$skip=8\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-bfcb1d6981b06448a1e85faa45ef133d-3e8fe5e695e7a34a-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "1cca2fce85fd26d88355eefd3372ae57", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "aef8c20486cda788fc100f60d1228dbd", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "dbf39f5d-c149-4fc0-a8dc-1d68a762e5d0", + "apim-request-id": "c2a0641a-233e-4fc8-b658-88403206c4f8", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:16:56 GMT", + "Date": "Tue, 17 Nov 2020 20:17:33 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "182" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "58" }, "ResponseBody": { - "jobId": "c0acb2d0-b92f-489a-9ebb-3d26dbf60a5c", - "lastUpdateDateTime": "2021-01-28T23:16:52Z", - "createdDateTime": "2021-01-28T23:16:48Z", - "expirationDateTime": "2021-01-29T23:16:48Z", + "jobId": "828de621-689c-4434-b72e-3caaaa60d6e5", + "lastUpdateDateTime": "2020-11-17T20:17:31Z", + "createdDateTime": "2020-11-17T20:17:28Z", + "expirationDateTime": "2020-11-18T20:17:28Z", "status": "succeeded", "errors": [], "results": { @@ -1596,6 +1611,6 @@ "Variables": { "RandomSeed": "1357450788", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithPaginationAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithPaginationAsync.json index 0b9232efd357b..f57c7a18ba7e8 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithPaginationAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithPaginationAsync.json @@ -1,15 +1,21 @@ { "Entries": [ { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Content-Length": "1395", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-7dc60986b645784dbbb84fdc7b83e293-bfa808aa3b2edc4c-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-607bc0a7a208aa41810b58713abb68ea-5d1eba8ac5995640-00", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "f142919ab8153bebc5d9f5272ba0209d", "x-ms-return-client-request-id": "true" }, @@ -69,167 +75,84 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "dd0015e6-8ba1-4eef-afd9-8d845c42459c", - "Date": "Thu, 28 Jan 2021 23:17:27 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/e682fd08-0396-486d-ace4-44469f2a4951", + "apim-request-id": "c5358900-0109-40ac-a4e8-78ed8190675d", + "Date": "Tue, 17 Nov 2020 20:17:53 GMT", + "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/dcb89372-7aef-40b9-b879-409253681ed4", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "230" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "220" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/e682fd08-0396-486d-ace4-44469f2a4951?$top=2\u0026showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/dcb89372-7aef-40b9-b879-409253681ed4?$top=2\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-afc6dd214fc7d240b0aaefaeba25fb23-9202e7ecca91c84e-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "abea9627e0cd843f9974ee5faa963225", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "b9370178-825a-4e38-9086-8f93508045e1", + "apim-request-id": "39e48ba7-59b6-4313-a141-132a29f040ea", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:27 GMT", + "Date": "Tue, 17 Nov 2020 20:17:53 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "9" - }, - "ResponseBody": { - "jobId": "e682fd08-0396-486d-ace4-44469f2a4951", - "lastUpdateDateTime": "2021-01-28T23:17:28Z", - "createdDateTime": "2021-01-28T23:17:27Z", - "expirationDateTime": "2021-01-29T23:17:27Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/e682fd08-0396-486d-ace4-44469f2a4951?$top=2\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-afc6dd214fc7d240b0aaefaeba25fb23-c89a90d3186d4941-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "29e58cf2b8b376a1d7b53c264371cd5a", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "760773ab-f15e-4632-bb3e-329eca2a44cd", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:28 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "9" - }, - "ResponseBody": { - "jobId": "e682fd08-0396-486d-ace4-44469f2a4951", - "lastUpdateDateTime": "2021-01-28T23:17:28Z", - "createdDateTime": "2021-01-28T23:17:27Z", - "expirationDateTime": "2021-01-29T23:17:27Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/e682fd08-0396-486d-ace4-44469f2a4951?$top=2\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-afc6dd214fc7d240b0aaefaeba25fb23-2c191aeda98d5848-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "ebc37c63c42eb92852bd57a0ca8c902e", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6c6e4503-c815-413d-b5c8-20c74a400a77", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:29 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "9" - }, - "ResponseBody": { - "jobId": "e682fd08-0396-486d-ace4-44469f2a4951", - "lastUpdateDateTime": "2021-01-28T23:17:28Z", - "createdDateTime": "2021-01-28T23:17:27Z", - "expirationDateTime": "2021-01-29T23:17:27Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/e682fd08-0396-486d-ace4-44469f2a4951?$top=2\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-afc6dd214fc7d240b0aaefaeba25fb23-fd346212eff0784b-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "9f34cfa6f7bb6feaf474d418a4184128", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "9a1c24e1-0e78-4c69-899d-48db54f28f73", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:31 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", + "X-Content-Type-Options": "nosniff", "x-envoy-upstream-service-time": "8" }, "ResponseBody": { - "jobId": "e682fd08-0396-486d-ace4-44469f2a4951", - "lastUpdateDateTime": "2021-01-28T23:17:31Z", - "createdDateTime": "2021-01-28T23:17:27Z", - "expirationDateTime": "2021-01-29T23:17:27Z", + "jobId": "dcb89372-7aef-40b9-b879-409253681ed4", + "lastUpdateDateTime": "2020-11-17T20:17:53Z", + "createdDateTime": "2020-11-17T20:17:53Z", + "expirationDateTime": "2020-11-18T20:17:53Z", "status": "running", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/e682fd08-0396-486d-ace4-44469f2a4951?$top=2\u0026showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/dcb89372-7aef-40b9-b879-409253681ed4?$top=2\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-afc6dd214fc7d240b0aaefaeba25fb23-6cbe9fb07231a546-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "2efb93a746d22ef7642bd7f66001ab4b", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "29e58cf2b8b376a1d7b53c264371cd5a", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "7a8a0c67-e926-449e-a5c4-f607fd0f45a8", + "apim-request-id": "807c4f12-8cce-4016-85f5-8cfdbd88569e", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:32 GMT", + "Date": "Tue, 17 Nov 2020 20:17:54 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "77" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "68" }, "ResponseBody": { - "jobId": "e682fd08-0396-486d-ace4-44469f2a4951", - "lastUpdateDateTime": "2021-01-28T23:17:32Z", - "createdDateTime": "2021-01-28T23:17:27Z", - "expirationDateTime": "2021-01-29T23:17:27Z", + "jobId": "dcb89372-7aef-40b9-b879-409253681ed4", + "lastUpdateDateTime": "2020-11-17T20:17:54Z", + "createdDateTime": "2020-11-17T20:17:53Z", + "expirationDateTime": "2020-11-18T20:17:53Z", "status": "succeeded", "errors": [], "results": { @@ -478,36 +401,41 @@ "errors": [], "modelVersion": "2020-09-03" }, - "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/e682fd08-0396-486d-ace4-44469f2a4951?$skip=2\u0026$top=2" + "@nextLink": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/dcb89372-7aef-40b9-b879-409253681ed4?$skip=2\u0026$top=2" } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/e682fd08-0396-486d-ace4-44469f2a4951?$top=2\u0026$skip=2\u0026showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/dcb89372-7aef-40b9-b879-409253681ed4?$top=2\u0026$skip=2\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-57fadc54e4f89943b3f2f1d37c30acbd-e88c92f8465a3c48-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "747f0d242e3c6c9f9253f6b9ef0f1539", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "ebc37c63c42eb92852bd57a0ca8c902e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "27728971-2221-4b20-b52e-57b357a3a35f", + "apim-request-id": "64f636d5-dfd2-46c0-9f5c-8e919242953e", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:32 GMT", + "Date": "Tue, 17 Nov 2020 20:17:55 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "75" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "61" }, "ResponseBody": { - "jobId": "e682fd08-0396-486d-ace4-44469f2a4951", - "lastUpdateDateTime": "2021-01-28T23:17:32Z", - "createdDateTime": "2021-01-28T23:17:27Z", - "expirationDateTime": "2021-01-29T23:17:27Z", + "jobId": "dcb89372-7aef-40b9-b879-409253681ed4", + "lastUpdateDateTime": "2020-11-17T20:17:54Z", + "createdDateTime": "2020-11-17T20:17:53Z", + "expirationDateTime": "2020-11-18T20:17:53Z", "status": "succeeded", "errors": [], "results": { @@ -756,36 +684,41 @@ "errors": [], "modelVersion": "2020-09-03" }, - "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/e682fd08-0396-486d-ace4-44469f2a4951?$skip=4\u0026$top=2" + "@nextLink": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/dcb89372-7aef-40b9-b879-409253681ed4?$skip=4\u0026$top=2" } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/e682fd08-0396-486d-ace4-44469f2a4951?$top=2\u0026$skip=4\u0026showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/dcb89372-7aef-40b9-b879-409253681ed4?$top=2\u0026$skip=4\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-745e57342dee1446a8df7f830ab153f3-b787cbad6ba62844-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "36f82f7c62905f5bd8053a8f1ff30ef3", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "9f34cfa6f7bb6feaf474d418a4184128", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "08119583-2518-48be-bd24-78df0693dab9", + "apim-request-id": "44cb7af7-c55e-4b02-904b-7c197939733f", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:33 GMT", + "Date": "Tue, 17 Nov 2020 20:17:55 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "59" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "40" }, "ResponseBody": { - "jobId": "e682fd08-0396-486d-ace4-44469f2a4951", - "lastUpdateDateTime": "2021-01-28T23:17:32Z", - "createdDateTime": "2021-01-28T23:17:27Z", - "expirationDateTime": "2021-01-29T23:17:27Z", + "jobId": "dcb89372-7aef-40b9-b879-409253681ed4", + "lastUpdateDateTime": "2020-11-17T20:17:54Z", + "createdDateTime": "2020-11-17T20:17:53Z", + "expirationDateTime": "2020-11-18T20:17:53Z", "status": "succeeded", "errors": [], "results": { @@ -1034,36 +967,41 @@ "errors": [], "modelVersion": "2020-09-03" }, - "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/e682fd08-0396-486d-ace4-44469f2a4951?$skip=6\u0026$top=2" + "@nextLink": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/dcb89372-7aef-40b9-b879-409253681ed4?$skip=6\u0026$top=2" } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/e682fd08-0396-486d-ace4-44469f2a4951?$top=2\u0026$skip=6\u0026showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/dcb89372-7aef-40b9-b879-409253681ed4?$top=2\u0026$skip=6\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-8cbe80f4fe503b4b9cb8dc98d98c1ab5-e021a8abbd6cd548-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "96f489c8cc9879ebf48f9c7e4f3d3e54", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "2efb93a746d22ef7642bd7f66001ab4b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "4c28bdd8-e27b-4eb9-8e77-1193aaa64a6e", + "apim-request-id": "dda4d9ab-f0de-47ca-80fe-e086b9aaaae1", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:33 GMT", + "Date": "Tue, 17 Nov 2020 20:17:55 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "68" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "62" }, "ResponseBody": { - "jobId": "e682fd08-0396-486d-ace4-44469f2a4951", - "lastUpdateDateTime": "2021-01-28T23:17:32Z", - "createdDateTime": "2021-01-28T23:17:27Z", - "expirationDateTime": "2021-01-29T23:17:27Z", + "jobId": "dcb89372-7aef-40b9-b879-409253681ed4", + "lastUpdateDateTime": "2020-11-17T20:17:54Z", + "createdDateTime": "2020-11-17T20:17:53Z", + "expirationDateTime": "2020-11-18T20:17:53Z", "status": "succeeded", "errors": [], "results": { @@ -1312,36 +1250,41 @@ "errors": [], "modelVersion": "2020-09-03" }, - "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/e682fd08-0396-486d-ace4-44469f2a4951?$skip=8\u0026$top=2" + "@nextLink": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/dcb89372-7aef-40b9-b879-409253681ed4?$skip=8\u0026$top=2" } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/e682fd08-0396-486d-ace4-44469f2a4951?$top=2\u0026$skip=8\u0026showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/dcb89372-7aef-40b9-b879-409253681ed4?$top=2\u0026$skip=8\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-0bac2f9f6fc54d499496063d6b68044d-3703f5d58fe4d34a-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "317a9d167508c1bab11f9b36f30f4c9e", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "747f0d242e3c6c9f9253f6b9ef0f1539", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "344912f7-d66c-4008-a154-32393f5db7a9", + "apim-request-id": "599abe3b-cc45-4df6-93db-315a8247e24d", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:33 GMT", + "Date": "Tue, 17 Nov 2020 20:17:56 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", + "X-Content-Type-Options": "nosniff", "x-envoy-upstream-service-time": "61" }, "ResponseBody": { - "jobId": "e682fd08-0396-486d-ace4-44469f2a4951", - "lastUpdateDateTime": "2021-01-28T23:17:32Z", - "createdDateTime": "2021-01-28T23:17:27Z", - "expirationDateTime": "2021-01-29T23:17:27Z", + "jobId": "dcb89372-7aef-40b9-b879-409253681ed4", + "lastUpdateDateTime": "2020-11-17T20:17:54Z", + "createdDateTime": "2020-11-17T20:17:53Z", + "expirationDateTime": "2020-11-18T20:17:53Z", "status": "succeeded", "errors": [], "results": { @@ -1596,6 +1539,6 @@ "Variables": { "RandomSeed": "386709158", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithStatisticsTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithStatisticsTest.json index b202221e98d08..cf9d11d442a1b 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithStatisticsTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithStatisticsTest.json @@ -1,15 +1,21 @@ { "Entries": [ { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-59767376e49db64aa854131b53690e90-3d7a804027fa1d43-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-cb0b72f0f737ad46b488b099de2d5f02-281d591a3652c44a-00", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "8ec3c90b7880bba55b75abdb84a19321", "x-ms-return-client-request-id": "true" }, @@ -29,72 +35,84 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "72e4f1dc-1d42-4356-9578-c080708e5f9c", - "Date": "Thu, 28 Jan 2021 23:16:57 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/05094d70-79bb-49b3-a086-64dd9a75f14a", + "apim-request-id": "afda2f44-d43b-457f-936b-b7b68444a0d9", + "Date": "Tue, 17 Nov 2020 20:17:33 GMT", + "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/9fea5a29-65ef-4c9d-a1c7-a52d290964f9", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "99" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "96" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/05094d70-79bb-49b3-a086-64dd9a75f14a?showStats=true", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/9fea5a29-65ef-4c9d-a1c7-a52d290964f9?showStats=true", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "56fe48ebb003114e437c6f5c1a23295d", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "f2d3b788-b049-4d45-94ca-2acf7838847f", + "apim-request-id": "f26b44c8-1570-4f34-95eb-1529be62a1fb", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:16:57 GMT", + "Date": "Tue, 17 Nov 2020 20:17:34 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "9" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "8" }, "ResponseBody": { - "jobId": "05094d70-79bb-49b3-a086-64dd9a75f14a", - "lastUpdateDateTime": "2021-01-28T23:16:57Z", - "createdDateTime": "2021-01-28T23:16:57Z", - "expirationDateTime": "2021-01-29T23:16:57Z", - "status": "running", + "jobId": "9fea5a29-65ef-4c9d-a1c7-a52d290964f9", + "lastUpdateDateTime": "2020-11-17T20:17:34Z", + "createdDateTime": "2020-11-17T20:17:34Z", + "expirationDateTime": "2020-11-18T20:17:34Z", + "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/05094d70-79bb-49b3-a086-64dd9a75f14a?showStats=true", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/9fea5a29-65ef-4c9d-a1c7-a52d290964f9?showStats=true", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "e2f12bb5a78a8d006ec8d88886d7049c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "f801b8d3-8530-4b12-87a8-144db66711a9", + "apim-request-id": "194db38b-1f21-43cb-b8e3-1e2a265e9e77", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:16:58 GMT", + "Date": "Tue, 17 Nov 2020 20:17:35 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "62" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "55" }, "ResponseBody": { - "jobId": "05094d70-79bb-49b3-a086-64dd9a75f14a", - "lastUpdateDateTime": "2021-01-28T23:16:57Z", - "createdDateTime": "2021-01-28T23:16:57Z", - "expirationDateTime": "2021-01-29T23:16:57Z", + "jobId": "9fea5a29-65ef-4c9d-a1c7-a52d290964f9", + "lastUpdateDateTime": "2020-11-17T20:17:35Z", + "createdDateTime": "2020-11-17T20:17:34Z", + "expirationDateTime": "2020-11-18T20:17:34Z", "status": "succeeded", "errors": [], "results": { @@ -1072,6 +1090,6 @@ "Variables": { "RandomSeed": "858087556", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithStatisticsTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithStatisticsTestAsync.json index 7db5193d0c9dd..3bade03be42e7 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithStatisticsTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesBatchWithStatisticsTestAsync.json @@ -1,15 +1,21 @@ { "Entries": [ { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-294ed5f1d279314e86216f257c8c2774-b17a4117eb4b9441-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-602b2ed8d3af63489380e207d9991ee2-5459ddb583294a4e-00", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "cb820fc464b79dcc9212329646bf509a", "x-ms-return-client-request-id": "true" }, @@ -29,102 +35,84 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "1292f0db-b90e-4cc8-a36c-45a573ff4ddf", - "Date": "Thu, 28 Jan 2021 23:17:34 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/bffee8be-3645-420f-951e-ee62fd25e5f0", + "apim-request-id": "adc15c3a-153a-4cf3-a7b4-8551ba4be5f0", + "Date": "Tue, 17 Nov 2020 20:17:56 GMT", + "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/d8b654cc-f229-4dbd-82af-28622459e1df", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "88" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "89" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/bffee8be-3645-420f-951e-ee62fd25e5f0?showStats=true", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/d8b654cc-f229-4dbd-82af-28622459e1df?showStats=true", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "08d18cd76fa1ba75ad5e5758b7de00e4", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "399e5c0d-7139-4aac-9113-7c26a3c5b307", + "apim-request-id": "835e47aa-338d-478d-ad6f-7cbf8a7a5f86", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:34 GMT", + "Date": "Tue, 17 Nov 2020 20:17:57 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", + "X-Content-Type-Options": "nosniff", "x-envoy-upstream-service-time": "9" }, "ResponseBody": { - "jobId": "bffee8be-3645-420f-951e-ee62fd25e5f0", - "lastUpdateDateTime": "2021-01-28T23:17:35Z", - "createdDateTime": "2021-01-28T23:17:35Z", - "expirationDateTime": "2021-01-29T23:17:35Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/bffee8be-3645-420f-951e-ee62fd25e5f0?showStats=true", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "2ac480b3f6758c758bf3f8f60a589915", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "56723fb4-9a8a-4b6c-8f96-6690d7f1e50a", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:35 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "9" - }, - "ResponseBody": { - "jobId": "bffee8be-3645-420f-951e-ee62fd25e5f0", - "lastUpdateDateTime": "2021-01-28T23:17:36Z", - "createdDateTime": "2021-01-28T23:17:35Z", - "expirationDateTime": "2021-01-29T23:17:35Z", + "jobId": "d8b654cc-f229-4dbd-82af-28622459e1df", + "lastUpdateDateTime": "2020-11-17T20:17:57Z", + "createdDateTime": "2020-11-17T20:17:56Z", + "expirationDateTime": "2020-11-18T20:17:56Z", "status": "running", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/bffee8be-3645-420f-951e-ee62fd25e5f0?showStats=true", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/d8b654cc-f229-4dbd-82af-28622459e1df?showStats=true", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "4456bc1eb361546e99c71e580d73e5b3", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "2ac480b3f6758c758bf3f8f60a589915", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "9bce019b-d940-4bbe-8b7c-b80490f717fb", + "apim-request-id": "a1d8a604-d619-4cb8-a707-9058753142d3", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:37 GMT", + "Date": "Tue, 17 Nov 2020 20:17:58 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "48" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "61" }, "ResponseBody": { - "jobId": "bffee8be-3645-420f-951e-ee62fd25e5f0", - "lastUpdateDateTime": "2021-01-28T23:17:36Z", - "createdDateTime": "2021-01-28T23:17:35Z", - "expirationDateTime": "2021-01-29T23:17:35Z", + "jobId": "d8b654cc-f229-4dbd-82af-28622459e1df", + "lastUpdateDateTime": "2020-11-17T20:17:57Z", + "createdDateTime": "2020-11-17T20:17:56Z", + "expirationDateTime": "2020-11-18T20:17:56Z", "status": "succeeded", "errors": [], "results": { @@ -1102,6 +1090,6 @@ "Variables": { "RandomSeed": "1450670554", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesTest.json index 22fe924351371..92fe79ec6adc5 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesTest.json @@ -1,166 +1,119 @@ { "Entries": [ { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": "application/json, text/json", - "Content-Length": "223", + "Accept": [ + "application/json", + "text/json" + ], + "Content-Length": "100", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-c156c66f18c6f14a980db5b3504b3539-d6295857b9b92f4c-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-7d83b3ff7afff74d8646a40f3a9773bb-75577e8f2adc544c-00", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "e51cbf87a321df02032925de5e6708b4", "x-ms-return-client-request-id": "true" }, "RequestBody": { "documents": [ { - "id": "1", + "id": "0", "text": "Subject is taking 100mg of ibuprofen twice daily", "language": "en" - }, - { - "id": "2", - "text": "Can cause rapid or irregular heartbeat, delirium, panic, psychosis, and heart failure.", - "language": "en" } ] }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "f6446bc3-b4d0-4369-8ec0-f660db989122", - "Date": "Thu, 28 Jan 2021 23:46:49 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2393eb0c-de17-43d5-9e2e-386c0aa8f4b9", + "apim-request-id": "3ebc853f-1e23-4fac-9805-ab8f7ece142b", + "Date": "Tue, 17 Nov 2020 20:17:35 GMT", + "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/970738c7-50b4-4b04-806a-5e05c01ba70f", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "203" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "69" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2393eb0c-de17-43d5-9e2e-386c0aa8f4b9?showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/970738c7-50b4-4b04-806a-5e05c01ba70f?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "2cdb69530701f208f175aa6a97e2593b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "16c35f9b-3175-43a7-aafb-5417e57aebfd", + "apim-request-id": "4b91b2da-980d-48ba-b3fd-680b8e10d8f7", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:46:50 GMT", + "Date": "Tue, 17 Nov 2020 20:17:35 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "12" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "8" }, "ResponseBody": { - "jobId": "2393eb0c-de17-43d5-9e2e-386c0aa8f4b9", - "lastUpdateDateTime": "2021-01-28T23:46:50Z", - "createdDateTime": "2021-01-28T23:46:49Z", - "expirationDateTime": "2021-01-29T23:46:49Z", + "jobId": "970738c7-50b4-4b04-806a-5e05c01ba70f", + "lastUpdateDateTime": "2020-11-17T20:17:36Z", + "createdDateTime": "2020-11-17T20:17:36Z", + "expirationDateTime": "2020-11-18T20:17:36Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2393eb0c-de17-43d5-9e2e-386c0aa8f4b9?showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/970738c7-50b4-4b04-806a-5e05c01ba70f?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "a701cb20bb11a529608aebe12f36a48e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "61c849e2-6ac8-4dc6-b4a5-3e02dd04dad3", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:46:51 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "9" - }, - "ResponseBody": { - "jobId": "2393eb0c-de17-43d5-9e2e-386c0aa8f4b9", - "lastUpdateDateTime": "2021-01-28T23:46:50Z", - "createdDateTime": "2021-01-28T23:46:49Z", - "expirationDateTime": "2021-01-29T23:46:49Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2393eb0c-de17-43d5-9e2e-386c0aa8f4b9?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "03c09e10ea8d7fc1b629f4abf8984821", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "cf9a20f6-2181-42e2-8321-03ba0cbcb96c", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:46:52 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "6" - }, - "ResponseBody": { - "jobId": "2393eb0c-de17-43d5-9e2e-386c0aa8f4b9", - "lastUpdateDateTime": "2021-01-28T23:46:50Z", - "createdDateTime": "2021-01-28T23:46:49Z", - "expirationDateTime": "2021-01-29T23:46:49Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2393eb0c-de17-43d5-9e2e-386c0aa8f4b9?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "93bde9d0616598a24035cb771c26c3ba", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "ef4afe6c-1e5f-4053-b3d8-ea40e0683e99", + "apim-request-id": "496f7a26-757f-4d47-96c9-b39dd77dfc28", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:46:53 GMT", + "Date": "Tue, 17 Nov 2020 20:17:36 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "237" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "42" }, "ResponseBody": { - "jobId": "2393eb0c-de17-43d5-9e2e-386c0aa8f4b9", - "lastUpdateDateTime": "2021-01-28T23:46:53Z", - "createdDateTime": "2021-01-28T23:46:49Z", - "expirationDateTime": "2021-01-29T23:46:49Z", + "jobId": "970738c7-50b4-4b04-806a-5e05c01ba70f", + "lastUpdateDateTime": "2020-11-17T20:17:37Z", + "createdDateTime": "2020-11-17T20:17:36Z", + "expirationDateTime": "2020-11-18T20:17:36Z", "status": "succeeded", "errors": [], "results": { "documents": [ { - "id": "1", + "id": "0", "entities": [ { "offset": 18, @@ -324,789 +277,6 @@ } ], "warnings": [] - }, - { - "id": "2", - "entities": [ - { - "offset": 10, - "length": 5, - "text": "rapid", - "category": "SymptomOrSign", - "confidenceScore": 0.98, - "isNegated": false, - "links": [ - { - "dataSource": "UMLS", - "id": "C0456962" - }, - { - "dataSource": "AOD", - "id": "0000002744" - }, - { - "dataSource": "CHV", - "id": "0000034666" - }, - { - "dataSource": "LNC", - "id": "LA24868-4" - }, - { - "dataSource": "NCI", - "id": "C65069" - }, - { - "dataSource": "RCD", - "id": "X78xZ" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "255358001" - } - ] - }, - { - "offset": 19, - "length": 19, - "text": "irregular heartbeat", - "category": "SymptomOrSign", - "confidenceScore": 1.0, - "isNegated": false, - "links": [ - { - "dataSource": "UMLS", - "id": "C0003811" - }, - { - "dataSource": "AOD", - "id": "0000005346" - }, - { - "dataSource": "BI", - "id": "BI00057" - }, - { - "dataSource": "CCPSS", - "id": "1017785" - }, - { - "dataSource": "CCS", - "id": "7.2.9" - }, - { - "dataSource": "CCSR_10", - "id": "CIR017" - }, - { - "dataSource": "CHV", - "id": "0000001440" - }, - { - "dataSource": "COSTAR", - "id": "153" - }, - { - "dataSource": "CSP", - "id": "1393-3277" - }, - { - "dataSource": "CST", - "id": "ARRHYTHMIA" - }, - { - "dataSource": "HPO", - "id": "HP:0011675" - }, - { - "dataSource": "ICD10", - "id": "I49.9" - }, - { - "dataSource": "ICD10AM", - "id": "I49.9" - }, - { - "dataSource": "ICD10CM", - "id": "I49.9" - }, - { - "dataSource": "ICD9CM", - "id": "427.9" - }, - { - "dataSource": "ICPC", - "id": "K80" - }, - { - "dataSource": "ICPC2EENG", - "id": "K80" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU033639" - }, - { - "dataSource": "ICPC2P", - "id": "K80012" - }, - { - "dataSource": "LCH", - "id": "U000359" - }, - { - "dataSource": "LCH_NW", - "id": "sh85007430" - }, - { - "dataSource": "LNC", - "id": "LA15419-7" - }, - { - "dataSource": "MDR", - "id": "10003119" - }, - { - "dataSource": "MEDCIN", - "id": "35851" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "147" - }, - { - "dataSource": "MSH", - "id": "D001145" - }, - { - "dataSource": "MTH", - "id": "153" - }, - { - "dataSource": "MTHICD9", - "id": "427.9" - }, - { - "dataSource": "NANDA-I", - "id": "00126" - }, - { - "dataSource": "NCI", - "id": "C2881" - }, - { - "dataSource": "NCI_FDA", - "id": "1721" - }, - { - "dataSource": "NCI_NICHD", - "id": "C2881" - }, - { - "dataSource": "NOC", - "id": "040520" - }, - { - "dataSource": "OMIM", - "id": "115000" - }, - { - "dataSource": "PSY", - "id": "03790" - }, - { - "dataSource": "RCD", - "id": "X77BB" - }, - { - "dataSource": "SNM", - "id": "F-73102" - }, - { - "dataSource": "SNMI", - "id": "D3-30010" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "698247007" - }, - { - "dataSource": "WHO", - "id": "0433" - } - ] - }, - { - "offset": 40, - "length": 8, - "text": "delirium", - "category": "Diagnosis", - "confidenceScore": 0.99, - "isNegated": false, - "links": [ - { - "dataSource": "UMLS", - "id": "C0011206" - }, - { - "dataSource": "AOD", - "id": "0000004328" - }, - { - "dataSource": "CCPSS", - "id": "1017884" - }, - { - "dataSource": "CHV", - "id": "0000003670" - }, - { - "dataSource": "COSTAR", - "id": "U000178" - }, - { - "dataSource": "CSP", - "id": "5003-0016" - }, - { - "dataSource": "CST", - "id": "DELIRIUM" - }, - { - "dataSource": "DSM-5", - "id": "780.09" - }, - { - "dataSource": "DXP", - "id": "U000937" - }, - { - "dataSource": "HPO", - "id": "HP:0031258" - }, - { - "dataSource": "ICD10", - "id": "F05.9" - }, - { - "dataSource": "ICD10AM", - "id": "F05.9" - }, - { - "dataSource": "ICD10CM", - "id": "R41.0" - }, - { - "dataSource": "ICNP", - "id": "10022091" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU022150" - }, - { - "dataSource": "LCH", - "id": "U001289" - }, - { - "dataSource": "LCH_NW", - "id": "sh85036579" - }, - { - "dataSource": "LNC", - "id": "LP89856-6" - }, - { - "dataSource": "MDR", - "id": "10012218" - }, - { - "dataSource": "MEDCIN", - "id": "677" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "5562" - }, - { - "dataSource": "MSH", - "id": "D003693" - }, - { - "dataSource": "NANDA-I", - "id": "02157" - }, - { - "dataSource": "NCI", - "id": "C2981" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E12898" - }, - { - "dataSource": "NCI_CTRP", - "id": "C2981" - }, - { - "dataSource": "NCI_NCI-GLOSS", - "id": "CDR0000450100" - }, - { - "dataSource": "NCI_NICHD", - "id": "C2981" - }, - { - "dataSource": "NOC", - "id": "091213" - }, - { - "dataSource": "OMIM", - "id": "MTHU035152" - }, - { - "dataSource": "PDQ", - "id": "CDR0000042226" - }, - { - "dataSource": "PSY", - "id": "13360" - }, - { - "dataSource": "QMR", - "id": "Q0200089" - }, - { - "dataSource": "RCD", - "id": "XE1Xv" - }, - { - "dataSource": "SNM", - "id": "F-85720" - }, - { - "dataSource": "SNMI", - "id": "D9-20100" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "2776000" - }, - { - "dataSource": "WHO", - "id": "0099" - } - ] - }, - { - "offset": 50, - "length": 5, - "text": "panic", - "category": "Diagnosis", - "confidenceScore": 0.89, - "isNegated": false, - "links": [ - { - "dataSource": "UMLS", - "id": "C0030318" - }, - { - "dataSource": "AOD", - "id": "0000023911" - }, - { - "dataSource": "CHV", - "id": "0000009234" - }, - { - "dataSource": "CST", - "id": "AGITATION" - }, - { - "dataSource": "ICD10CM", - "id": "F41.0" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU057222" - }, - { - "dataSource": "LCH", - "id": "U003458" - }, - { - "dataSource": "LCH_NW", - "id": "sh85097438" - }, - { - "dataSource": "MDR", - "id": "10033670" - }, - { - "dataSource": "MSH", - "id": "D010200" - }, - { - "dataSource": "MTH", - "id": "551" - }, - { - "dataSource": "MTHICD9", - "id": "300.01" - }, - { - "dataSource": "NCI", - "id": "C94438" - }, - { - "dataSource": "NCI_NCI-GLOSS", - "id": "CDR0000454704" - }, - { - "dataSource": "NOC", - "id": "121346" - }, - { - "dataSource": "PSY", - "id": "36260" - }, - { - "dataSource": "RCD", - "id": "Xa3Vj" - }, - { - "dataSource": "SNM", - "id": "F-90880" - }, - { - "dataSource": "SNMI", - "id": "F-92560" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "79823003" - }, - { - "dataSource": "WHO", - "id": "0163" - } - ] - }, - { - "offset": 57, - "length": 9, - "text": "psychosis", - "category": "Diagnosis", - "confidenceScore": 1.0, - "isNegated": false, - "links": [ - { - "dataSource": "UMLS", - "id": "C0033975" - }, - { - "dataSource": "AIR", - "id": "PSYCH" - }, - { - "dataSource": "AOD", - "id": "0000004324" - }, - { - "dataSource": "BI", - "id": "BI00688" - }, - { - "dataSource": "CCPSS", - "id": "1018204" - }, - { - "dataSource": "CHV", - "id": "0000010350" - }, - { - "dataSource": "COSTAR", - "id": "089" - }, - { - "dataSource": "CSP", - "id": "2484-8182" - }, - { - "dataSource": "CST", - "id": "PSYCHOSIS" - }, - { - "dataSource": "DXP", - "id": "U003257" - }, - { - "dataSource": "HPO", - "id": "HP:0000709" - }, - { - "dataSource": "ICD9CM", - "id": "298.9" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU070382" - }, - { - "dataSource": "ICPC2P", - "id": "P98004" - }, - { - "dataSource": "LCH_NW", - "id": "sh85108502" - }, - { - "dataSource": "LNC", - "id": "LA7534-6" - }, - { - "dataSource": "MDR", - "id": "10061920" - }, - { - "dataSource": "MEDCIN", - "id": "364298" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "4180" - }, - { - "dataSource": "MSH", - "id": "D011618" - }, - { - "dataSource": "MTH", - "id": "089" - }, - { - "dataSource": "MTHICD9", - "id": "298.9" - }, - { - "dataSource": "NANDA-I", - "id": "03128" - }, - { - "dataSource": "NCI", - "id": "C78576" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E12954" - }, - { - "dataSource": "NCI_NCI-GLOSS", - "id": "CDR0000450115" - }, - { - "dataSource": "NCI_NICHD", - "id": "C78576" - }, - { - "dataSource": "NOC", - "id": "061619" - }, - { - "dataSource": "OMIM", - "id": "MTHU002910" - }, - { - "dataSource": "PSY", - "id": "41910" - }, - { - "dataSource": "QMR", - "id": "Q0200208" - }, - { - "dataSource": "RCD", - "id": "X00S6" - }, - { - "dataSource": "SNM", - "id": "D-9200" - }, - { - "dataSource": "SNMI", - "id": "D9-72000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "69322001" - }, - { - "dataSource": "WHO", - "id": "0193" - } - ] - }, - { - "offset": 72, - "length": 13, - "text": "heart failure", - "category": "Diagnosis", - "confidenceScore": 0.99, - "isNegated": false, - "links": [ - { - "dataSource": "UMLS", - "id": "C0018801" - }, - { - "dataSource": "AOD", - "id": "0000005308" - }, - { - "dataSource": "BI", - "id": "BI00019" - }, - { - "dataSource": "CCPSS", - "id": "0017571" - }, - { - "dataSource": "CCS", - "id": "7.2.11.2" - }, - { - "dataSource": "CCSR_10", - "id": "CIR019" - }, - { - "dataSource": "CHV", - "id": "0000005877" - }, - { - "dataSource": "COSTAR", - "id": "U000338" - }, - { - "dataSource": "CSP", - "id": "1393-3587" - }, - { - "dataSource": "CST", - "id": "HEART FAIL" - }, - { - "dataSource": "HPO", - "id": "HP:0001635" - }, - { - "dataSource": "ICD10", - "id": "I50.9" - }, - { - "dataSource": "ICD10AM", - "id": "I50.9" - }, - { - "dataSource": "ICD10CM", - "id": "I50.9" - }, - { - "dataSource": "ICD9CM", - "id": "428.9" - }, - { - "dataSource": "ICPC", - "id": "K77" - }, - { - "dataSource": "ICPC2EENG", - "id": "K77" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU027668" - }, - { - "dataSource": "ICPC2P", - "id": "K77011" - }, - { - "dataSource": "LCH", - "id": "U005616" - }, - { - "dataSource": "LCH_NW", - "id": "sh85059745" - }, - { - "dataSource": "LNC", - "id": "LP269421-6" - }, - { - "dataSource": "MDR", - "id": "10007554" - }, - { - "dataSource": "MEDCIN", - "id": "95724" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "199" - }, - { - "dataSource": "MSH", - "id": "D006333" - }, - { - "dataSource": "MTHICD9", - "id": "428.9" - }, - { - "dataSource": "NCI", - "id": "C50577" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10124" - }, - { - "dataSource": "NCI_FDA", - "id": "2206" - }, - { - "dataSource": "NCI_NICHD", - "id": "C50577" - }, - { - "dataSource": "OMIM", - "id": "MTHU009472" - }, - { - "dataSource": "RCD", - "id": "G58.." - }, - { - "dataSource": "SNM", - "id": "D-7050" - }, - { - "dataSource": "SNMI", - "id": "D3-16000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "84114007" - }, - { - "dataSource": "WHO", - "id": "0496" - } - ] - } - ], - "relations": [], - "warnings": [] } ], "errors": [], @@ -1118,6 +288,6 @@ "Variables": { "RandomSeed": "1686725774", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesTestAsync.json index 969a75052c7ee..f456d4b3de42c 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesTestAsync.json @@ -1,166 +1,155 @@ { "Entries": [ { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": "application/json, text/json", - "Content-Length": "223", + "Accept": [ + "application/json", + "text/json" + ], + "Content-Length": "100", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-b675e11c0120ab4d84ef02f94f7edde5-9435e3bff7862546-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-e5a4811315d9ac458320de27ff359ca5-038f3624c8c5b245-00", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "acdb13842ca5b9295fa84adf0c4870a8", "x-ms-return-client-request-id": "true" }, "RequestBody": { "documents": [ { - "id": "1", + "id": "0", "text": "Subject is taking 100mg of ibuprofen twice daily", "language": "en" - }, - { - "id": "2", - "text": "Can cause rapid or irregular heartbeat, delirium, panic, psychosis, and heart failure.", - "language": "en" } ] }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "b4fdfda4-ae84-4e50-b13d-85629df6f75e", - "Date": "Thu, 28 Jan 2021 23:46:54 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/4d32399b-c95c-4afe-a910-dd92b98d08fb", + "apim-request-id": "12c1243f-92ad-4c7f-b481-1a74aa2310a5", + "Date": "Tue, 17 Nov 2020 20:17:58 GMT", + "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/438b8056-a2b2-4122-b554-92ddd20bf4cd", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "516" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "77" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/4d32399b-c95c-4afe-a910-dd92b98d08fb?showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/438b8056-a2b2-4122-b554-92ddd20bf4cd?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "1181511460ff1ed085a4ba80632c2cfd", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "a0053276-71ed-4f13-91f2-f2eacce1ecb9", + "apim-request-id": "baf7113b-79a6-429c-9229-820419698c27", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:46:55 GMT", + "Date": "Tue, 17 Nov 2020 20:17:58 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "6" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "8" }, "ResponseBody": { - "jobId": "4d32399b-c95c-4afe-a910-dd92b98d08fb", - "lastUpdateDateTime": "2021-01-28T23:46:55Z", - "createdDateTime": "2021-01-28T23:46:54Z", - "expirationDateTime": "2021-01-29T23:46:54Z", + "jobId": "438b8056-a2b2-4122-b554-92ddd20bf4cd", + "lastUpdateDateTime": "2020-11-17T20:17:58Z", + "createdDateTime": "2020-11-17T20:17:58Z", + "expirationDateTime": "2020-11-18T20:17:58Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/4d32399b-c95c-4afe-a910-dd92b98d08fb?showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/438b8056-a2b2-4122-b554-92ddd20bf4cd?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "d0605b7dc709a544ca5e0c1b0401dc1e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "096f12bb-cf64-49b7-81a6-56debe62a8d1", + "apim-request-id": "d027eaed-0b6c-4468-8fbf-3ff4d24be74f", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:46:56 GMT", + "Date": "Tue, 17 Nov 2020 20:17:59 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "9" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "10" }, "ResponseBody": { - "jobId": "4d32399b-c95c-4afe-a910-dd92b98d08fb", - "lastUpdateDateTime": "2021-01-28T23:46:55Z", - "createdDateTime": "2021-01-28T23:46:54Z", - "expirationDateTime": "2021-01-29T23:46:54Z", - "status": "notStarted", + "jobId": "438b8056-a2b2-4122-b554-92ddd20bf4cd", + "lastUpdateDateTime": "2020-11-17T20:18:00Z", + "createdDateTime": "2020-11-17T20:17:58Z", + "expirationDateTime": "2020-11-18T20:17:58Z", + "status": "running", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/4d32399b-c95c-4afe-a910-dd92b98d08fb?showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/438b8056-a2b2-4122-b554-92ddd20bf4cd?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "b5e59345e53b24c743bd270071a85633", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "e5bcc553-124c-4f6d-b2f7-216438947549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:46:57 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "12" - }, - "ResponseBody": { - "jobId": "4d32399b-c95c-4afe-a910-dd92b98d08fb", - "lastUpdateDateTime": "2021-01-28T23:46:55Z", - "createdDateTime": "2021-01-28T23:46:54Z", - "expirationDateTime": "2021-01-29T23:46:54Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/4d32399b-c95c-4afe-a910-dd92b98d08fb?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "b0624d7ba0e84c9f0cdc46a153b41a84", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "7e744998-9a6a-483a-a8fb-1776641f359c", + "apim-request-id": "d2e9e5f5-5a76-4f03-aad3-aed1c8c851b2", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:46:58 GMT", + "Date": "Tue, 17 Nov 2020 20:18:00 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "57" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "32" }, "ResponseBody": { - "jobId": "4d32399b-c95c-4afe-a910-dd92b98d08fb", - "lastUpdateDateTime": "2021-01-28T23:46:58Z", - "createdDateTime": "2021-01-28T23:46:54Z", - "expirationDateTime": "2021-01-29T23:46:54Z", + "jobId": "438b8056-a2b2-4122-b554-92ddd20bf4cd", + "lastUpdateDateTime": "2020-11-17T20:18:00Z", + "createdDateTime": "2020-11-17T20:17:58Z", + "expirationDateTime": "2020-11-18T20:17:58Z", "status": "succeeded", "errors": [], "results": { "documents": [ { - "id": "1", + "id": "0", "entities": [ { "offset": 18, @@ -324,789 +313,6 @@ } ], "warnings": [] - }, - { - "id": "2", - "entities": [ - { - "offset": 10, - "length": 5, - "text": "rapid", - "category": "SymptomOrSign", - "confidenceScore": 0.98, - "isNegated": false, - "links": [ - { - "dataSource": "UMLS", - "id": "C0456962" - }, - { - "dataSource": "AOD", - "id": "0000002744" - }, - { - "dataSource": "CHV", - "id": "0000034666" - }, - { - "dataSource": "LNC", - "id": "LA24868-4" - }, - { - "dataSource": "NCI", - "id": "C65069" - }, - { - "dataSource": "RCD", - "id": "X78xZ" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "255358001" - } - ] - }, - { - "offset": 19, - "length": 19, - "text": "irregular heartbeat", - "category": "SymptomOrSign", - "confidenceScore": 1.0, - "isNegated": false, - "links": [ - { - "dataSource": "UMLS", - "id": "C0003811" - }, - { - "dataSource": "AOD", - "id": "0000005346" - }, - { - "dataSource": "BI", - "id": "BI00057" - }, - { - "dataSource": "CCPSS", - "id": "1017785" - }, - { - "dataSource": "CCS", - "id": "7.2.9" - }, - { - "dataSource": "CCSR_10", - "id": "CIR017" - }, - { - "dataSource": "CHV", - "id": "0000001440" - }, - { - "dataSource": "COSTAR", - "id": "153" - }, - { - "dataSource": "CSP", - "id": "1393-3277" - }, - { - "dataSource": "CST", - "id": "ARRHYTHMIA" - }, - { - "dataSource": "HPO", - "id": "HP:0011675" - }, - { - "dataSource": "ICD10", - "id": "I49.9" - }, - { - "dataSource": "ICD10AM", - "id": "I49.9" - }, - { - "dataSource": "ICD10CM", - "id": "I49.9" - }, - { - "dataSource": "ICD9CM", - "id": "427.9" - }, - { - "dataSource": "ICPC", - "id": "K80" - }, - { - "dataSource": "ICPC2EENG", - "id": "K80" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU033639" - }, - { - "dataSource": "ICPC2P", - "id": "K80012" - }, - { - "dataSource": "LCH", - "id": "U000359" - }, - { - "dataSource": "LCH_NW", - "id": "sh85007430" - }, - { - "dataSource": "LNC", - "id": "LA15419-7" - }, - { - "dataSource": "MDR", - "id": "10003119" - }, - { - "dataSource": "MEDCIN", - "id": "35851" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "147" - }, - { - "dataSource": "MSH", - "id": "D001145" - }, - { - "dataSource": "MTH", - "id": "153" - }, - { - "dataSource": "MTHICD9", - "id": "427.9" - }, - { - "dataSource": "NANDA-I", - "id": "00126" - }, - { - "dataSource": "NCI", - "id": "C2881" - }, - { - "dataSource": "NCI_FDA", - "id": "1721" - }, - { - "dataSource": "NCI_NICHD", - "id": "C2881" - }, - { - "dataSource": "NOC", - "id": "040520" - }, - { - "dataSource": "OMIM", - "id": "115000" - }, - { - "dataSource": "PSY", - "id": "03790" - }, - { - "dataSource": "RCD", - "id": "X77BB" - }, - { - "dataSource": "SNM", - "id": "F-73102" - }, - { - "dataSource": "SNMI", - "id": "D3-30010" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "698247007" - }, - { - "dataSource": "WHO", - "id": "0433" - } - ] - }, - { - "offset": 40, - "length": 8, - "text": "delirium", - "category": "Diagnosis", - "confidenceScore": 0.99, - "isNegated": false, - "links": [ - { - "dataSource": "UMLS", - "id": "C0011206" - }, - { - "dataSource": "AOD", - "id": "0000004328" - }, - { - "dataSource": "CCPSS", - "id": "1017884" - }, - { - "dataSource": "CHV", - "id": "0000003670" - }, - { - "dataSource": "COSTAR", - "id": "U000178" - }, - { - "dataSource": "CSP", - "id": "5003-0016" - }, - { - "dataSource": "CST", - "id": "DELIRIUM" - }, - { - "dataSource": "DSM-5", - "id": "780.09" - }, - { - "dataSource": "DXP", - "id": "U000937" - }, - { - "dataSource": "HPO", - "id": "HP:0031258" - }, - { - "dataSource": "ICD10", - "id": "F05.9" - }, - { - "dataSource": "ICD10AM", - "id": "F05.9" - }, - { - "dataSource": "ICD10CM", - "id": "R41.0" - }, - { - "dataSource": "ICNP", - "id": "10022091" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU022150" - }, - { - "dataSource": "LCH", - "id": "U001289" - }, - { - "dataSource": "LCH_NW", - "id": "sh85036579" - }, - { - "dataSource": "LNC", - "id": "LP89856-6" - }, - { - "dataSource": "MDR", - "id": "10012218" - }, - { - "dataSource": "MEDCIN", - "id": "677" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "5562" - }, - { - "dataSource": "MSH", - "id": "D003693" - }, - { - "dataSource": "NANDA-I", - "id": "02157" - }, - { - "dataSource": "NCI", - "id": "C2981" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E12898" - }, - { - "dataSource": "NCI_CTRP", - "id": "C2981" - }, - { - "dataSource": "NCI_NCI-GLOSS", - "id": "CDR0000450100" - }, - { - "dataSource": "NCI_NICHD", - "id": "C2981" - }, - { - "dataSource": "NOC", - "id": "091213" - }, - { - "dataSource": "OMIM", - "id": "MTHU035152" - }, - { - "dataSource": "PDQ", - "id": "CDR0000042226" - }, - { - "dataSource": "PSY", - "id": "13360" - }, - { - "dataSource": "QMR", - "id": "Q0200089" - }, - { - "dataSource": "RCD", - "id": "XE1Xv" - }, - { - "dataSource": "SNM", - "id": "F-85720" - }, - { - "dataSource": "SNMI", - "id": "D9-20100" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "2776000" - }, - { - "dataSource": "WHO", - "id": "0099" - } - ] - }, - { - "offset": 50, - "length": 5, - "text": "panic", - "category": "Diagnosis", - "confidenceScore": 0.89, - "isNegated": false, - "links": [ - { - "dataSource": "UMLS", - "id": "C0030318" - }, - { - "dataSource": "AOD", - "id": "0000023911" - }, - { - "dataSource": "CHV", - "id": "0000009234" - }, - { - "dataSource": "CST", - "id": "AGITATION" - }, - { - "dataSource": "ICD10CM", - "id": "F41.0" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU057222" - }, - { - "dataSource": "LCH", - "id": "U003458" - }, - { - "dataSource": "LCH_NW", - "id": "sh85097438" - }, - { - "dataSource": "MDR", - "id": "10033670" - }, - { - "dataSource": "MSH", - "id": "D010200" - }, - { - "dataSource": "MTH", - "id": "551" - }, - { - "dataSource": "MTHICD9", - "id": "300.01" - }, - { - "dataSource": "NCI", - "id": "C94438" - }, - { - "dataSource": "NCI_NCI-GLOSS", - "id": "CDR0000454704" - }, - { - "dataSource": "NOC", - "id": "121346" - }, - { - "dataSource": "PSY", - "id": "36260" - }, - { - "dataSource": "RCD", - "id": "Xa3Vj" - }, - { - "dataSource": "SNM", - "id": "F-90880" - }, - { - "dataSource": "SNMI", - "id": "F-92560" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "79823003" - }, - { - "dataSource": "WHO", - "id": "0163" - } - ] - }, - { - "offset": 57, - "length": 9, - "text": "psychosis", - "category": "Diagnosis", - "confidenceScore": 1.0, - "isNegated": false, - "links": [ - { - "dataSource": "UMLS", - "id": "C0033975" - }, - { - "dataSource": "AIR", - "id": "PSYCH" - }, - { - "dataSource": "AOD", - "id": "0000004324" - }, - { - "dataSource": "BI", - "id": "BI00688" - }, - { - "dataSource": "CCPSS", - "id": "1018204" - }, - { - "dataSource": "CHV", - "id": "0000010350" - }, - { - "dataSource": "COSTAR", - "id": "089" - }, - { - "dataSource": "CSP", - "id": "2484-8182" - }, - { - "dataSource": "CST", - "id": "PSYCHOSIS" - }, - { - "dataSource": "DXP", - "id": "U003257" - }, - { - "dataSource": "HPO", - "id": "HP:0000709" - }, - { - "dataSource": "ICD9CM", - "id": "298.9" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU070382" - }, - { - "dataSource": "ICPC2P", - "id": "P98004" - }, - { - "dataSource": "LCH_NW", - "id": "sh85108502" - }, - { - "dataSource": "LNC", - "id": "LA7534-6" - }, - { - "dataSource": "MDR", - "id": "10061920" - }, - { - "dataSource": "MEDCIN", - "id": "364298" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "4180" - }, - { - "dataSource": "MSH", - "id": "D011618" - }, - { - "dataSource": "MTH", - "id": "089" - }, - { - "dataSource": "MTHICD9", - "id": "298.9" - }, - { - "dataSource": "NANDA-I", - "id": "03128" - }, - { - "dataSource": "NCI", - "id": "C78576" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E12954" - }, - { - "dataSource": "NCI_NCI-GLOSS", - "id": "CDR0000450115" - }, - { - "dataSource": "NCI_NICHD", - "id": "C78576" - }, - { - "dataSource": "NOC", - "id": "061619" - }, - { - "dataSource": "OMIM", - "id": "MTHU002910" - }, - { - "dataSource": "PSY", - "id": "41910" - }, - { - "dataSource": "QMR", - "id": "Q0200208" - }, - { - "dataSource": "RCD", - "id": "X00S6" - }, - { - "dataSource": "SNM", - "id": "D-9200" - }, - { - "dataSource": "SNMI", - "id": "D9-72000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "69322001" - }, - { - "dataSource": "WHO", - "id": "0193" - } - ] - }, - { - "offset": 72, - "length": 13, - "text": "heart failure", - "category": "Diagnosis", - "confidenceScore": 0.99, - "isNegated": false, - "links": [ - { - "dataSource": "UMLS", - "id": "C0018801" - }, - { - "dataSource": "AOD", - "id": "0000005308" - }, - { - "dataSource": "BI", - "id": "BI00019" - }, - { - "dataSource": "CCPSS", - "id": "0017571" - }, - { - "dataSource": "CCS", - "id": "7.2.11.2" - }, - { - "dataSource": "CCSR_10", - "id": "CIR019" - }, - { - "dataSource": "CHV", - "id": "0000005877" - }, - { - "dataSource": "COSTAR", - "id": "U000338" - }, - { - "dataSource": "CSP", - "id": "1393-3587" - }, - { - "dataSource": "CST", - "id": "HEART FAIL" - }, - { - "dataSource": "HPO", - "id": "HP:0001635" - }, - { - "dataSource": "ICD10", - "id": "I50.9" - }, - { - "dataSource": "ICD10AM", - "id": "I50.9" - }, - { - "dataSource": "ICD10CM", - "id": "I50.9" - }, - { - "dataSource": "ICD9CM", - "id": "428.9" - }, - { - "dataSource": "ICPC", - "id": "K77" - }, - { - "dataSource": "ICPC2EENG", - "id": "K77" - }, - { - "dataSource": "ICPC2ICD10ENG", - "id": "MTHU027668" - }, - { - "dataSource": "ICPC2P", - "id": "K77011" - }, - { - "dataSource": "LCH", - "id": "U005616" - }, - { - "dataSource": "LCH_NW", - "id": "sh85059745" - }, - { - "dataSource": "LNC", - "id": "LP269421-6" - }, - { - "dataSource": "MDR", - "id": "10007554" - }, - { - "dataSource": "MEDCIN", - "id": "95724" - }, - { - "dataSource": "MEDLINEPLUS", - "id": "199" - }, - { - "dataSource": "MSH", - "id": "D006333" - }, - { - "dataSource": "MTHICD9", - "id": "428.9" - }, - { - "dataSource": "NCI", - "id": "C50577" - }, - { - "dataSource": "NCI_CTCAE", - "id": "E10124" - }, - { - "dataSource": "NCI_FDA", - "id": "2206" - }, - { - "dataSource": "NCI_NICHD", - "id": "C50577" - }, - { - "dataSource": "OMIM", - "id": "MTHU009472" - }, - { - "dataSource": "RCD", - "id": "G58.." - }, - { - "dataSource": "SNM", - "id": "D-7050" - }, - { - "dataSource": "SNMI", - "id": "D3-16000" - }, - { - "dataSource": "SNOMEDCT_US", - "id": "84114007" - }, - { - "dataSource": "WHO", - "id": "0496" - } - ] - } - ], - "relations": [], - "warnings": [] } ], "errors": [], @@ -1118,6 +324,6 @@ "Variables": { "RandomSeed": "1184190609", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithLanguageTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithLanguageTest.json index cf4ed81602542..06805f2a2c6ac 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithLanguageTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithLanguageTest.json @@ -1,15 +1,21 @@ { "Entries": [ { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Content-Length": "100", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-ef4dd2eb1c2e604d80d42d69b9055b33-4ec6f2f1e6a6404f-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-36cfc969bf6a294796db3cb15203a604-89e222e418939149-00", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "0e649e128b084513c9c62e584c5f813b", "x-ms-return-client-request-id": "true" }, @@ -24,102 +30,84 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "1e84f064-0697-4f80-94ec-14e2c46c72ea", - "Date": "Thu, 28 Jan 2021 23:17:02 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/4fdada86-7cf4-4506-ad45-275f813d53c0", + "apim-request-id": "38c00f76-81ce-4583-87df-3d387c5eb35b", + "Date": "Tue, 17 Nov 2020 20:17:37 GMT", + "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/4a6dd64f-c7d5-4282-95fa-c825c6f17899", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "102" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "78" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/4fdada86-7cf4-4506-ad45-275f813d53c0?showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/4a6dd64f-c7d5-4282-95fa-c825c6f17899?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "796705c1528f3adf8bba34f0a8f2bd37", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "551a8196-281f-4895-b3a1-9a6667d76d60", + "apim-request-id": "aad0caa3-cf62-4233-b820-78bbfc7078bc", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:02 GMT", + "Date": "Tue, 17 Nov 2020 20:17:37 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", + "X-Content-Type-Options": "nosniff", "x-envoy-upstream-service-time": "9" }, "ResponseBody": { - "jobId": "4fdada86-7cf4-4506-ad45-275f813d53c0", - "lastUpdateDateTime": "2021-01-28T23:17:02Z", - "createdDateTime": "2021-01-28T23:17:02Z", - "expirationDateTime": "2021-01-29T23:17:02Z", + "jobId": "4a6dd64f-c7d5-4282-95fa-c825c6f17899", + "lastUpdateDateTime": "2020-11-17T20:17:37Z", + "createdDateTime": "2020-11-17T20:17:37Z", + "expirationDateTime": "2020-11-18T20:17:37Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/4fdada86-7cf4-4506-ad45-275f813d53c0?showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/4a6dd64f-c7d5-4282-95fa-c825c6f17899?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "740ea8ad2ce006c130b149d1ae645358", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "0f6f751b-03d5-4bb1-9208-456538423c2f", + "apim-request-id": "e5539721-c70f-43ce-a7a6-e2d7d75126fe", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:03 GMT", + "Date": "Tue, 17 Nov 2020 20:17:39 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "9" - }, - "ResponseBody": { - "jobId": "4fdada86-7cf4-4506-ad45-275f813d53c0", - "lastUpdateDateTime": "2021-01-28T23:17:03Z", - "createdDateTime": "2021-01-28T23:17:02Z", - "expirationDateTime": "2021-01-29T23:17:02Z", - "status": "running", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/4fdada86-7cf4-4506-ad45-275f813d53c0?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "07effce6ecdcc068be2a834d57229cd7", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "95b4fcb6-576b-42c1-9d78-1435c305247e", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:04 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "48" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "50" }, "ResponseBody": { - "jobId": "4fdada86-7cf4-4506-ad45-275f813d53c0", - "lastUpdateDateTime": "2021-01-28T23:17:04Z", - "createdDateTime": "2021-01-28T23:17:02Z", - "expirationDateTime": "2021-01-29T23:17:02Z", + "jobId": "4a6dd64f-c7d5-4282-95fa-c825c6f17899", + "lastUpdateDateTime": "2020-11-17T20:17:38Z", + "createdDateTime": "2020-11-17T20:17:37Z", + "expirationDateTime": "2020-11-18T20:17:37Z", "status": "succeeded", "errors": [], "results": { @@ -300,6 +288,6 @@ "Variables": { "RandomSeed": "1940196881", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithLanguageTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithLanguageTestAsync.json index b746800da2645..44a91c2273118 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithLanguageTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithLanguageTestAsync.json @@ -1,15 +1,21 @@ { "Entries": [ { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Content-Length": "100", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-f609ef834ea3b543b8c9d774f29de5e3-c4547a85b28c5e4c-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-99228a8ee4d9cc488f6e34bc8987592a-9923de0f474bf643-00", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "ac50657e0564f29f4cf677ed0a13f18a", "x-ms-return-client-request-id": "true" }, @@ -24,72 +30,84 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "45478fd4-f1c3-43c4-8944-93793fb572aa", - "Date": "Thu, 28 Jan 2021 23:17:42 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/3d8afffe-9fcc-4f83-8e8a-9c7182e08019", + "apim-request-id": "656324cd-2d1e-442d-9868-c7a8bfdd3e6c", + "Date": "Tue, 17 Nov 2020 20:18:01 GMT", + "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c5509402-2dd7-446d-b06b-0a4c18b1121e", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "90" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "70" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/3d8afffe-9fcc-4f83-8e8a-9c7182e08019?showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c5509402-2dd7-446d-b06b-0a4c18b1121e?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "ee06e8ec9851bf144fa0b3348eac9147", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "7bf13a21-e7ba-4026-b14a-08dfb8d68208", + "apim-request-id": "80aa3164-ca18-445a-87c4-02c589e46445", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:42 GMT", + "Date": "Tue, 17 Nov 2020 20:18:01 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "10" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "9" }, "ResponseBody": { - "jobId": "3d8afffe-9fcc-4f83-8e8a-9c7182e08019", - "lastUpdateDateTime": "2021-01-28T23:17:42Z", - "createdDateTime": "2021-01-28T23:17:42Z", - "expirationDateTime": "2021-01-29T23:17:42Z", + "jobId": "c5509402-2dd7-446d-b06b-0a4c18b1121e", + "lastUpdateDateTime": "2020-11-17T20:18:01Z", + "createdDateTime": "2020-11-17T20:18:01Z", + "expirationDateTime": "2020-11-18T20:18:01Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/3d8afffe-9fcc-4f83-8e8a-9c7182e08019?showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/c5509402-2dd7-446d-b06b-0a4c18b1121e?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "c56f00a8f06aed051c550a52700d0abf", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "8dbfd494-6316-4294-b81b-b15a5d5d020b", + "apim-request-id": "44af406a-5ab5-4d04-a332-7498a53767fe", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:43 GMT", + "Date": "Tue, 17 Nov 2020 20:18:02 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "49" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "69" }, "ResponseBody": { - "jobId": "3d8afffe-9fcc-4f83-8e8a-9c7182e08019", - "lastUpdateDateTime": "2021-01-28T23:17:43Z", - "createdDateTime": "2021-01-28T23:17:42Z", - "expirationDateTime": "2021-01-29T23:17:42Z", + "jobId": "c5509402-2dd7-446d-b06b-0a4c18b1121e", + "lastUpdateDateTime": "2020-11-17T20:18:02Z", + "createdDateTime": "2020-11-17T20:18:01Z", + "expirationDateTime": "2020-11-18T20:18:01Z", "status": "succeeded", "errors": [], "results": { @@ -270,6 +288,6 @@ "Variables": { "RandomSeed": "330150674", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithSkipParameter.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithSkipParameter.json index ffae5323240e5..ce04a1b3075ab 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithSkipParameter.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithSkipParameter.json @@ -1,15 +1,21 @@ { "Entries": [ { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-07ec5cf80467164a918a5c8cc7f6d585-c68c6da9ce955e43-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-835ca07a1f6c854d90cee53817174c75-7c84577713198947-00", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "e5bbee521fd95f6f85d46045340cc5e0", "x-ms-return-client-request-id": "true" }, @@ -29,72 +35,84 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "07fba2f4-0c97-497e-b3a6-2b51d607e5e3", - "Date": "Thu, 28 Jan 2021 23:17:05 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2adee4d2-07f0-4d41-81c0-3b42440daf9f", + "apim-request-id": "899e90f1-f7e4-4661-8987-c7b513bfb215", + "Date": "Tue, 17 Nov 2020 20:17:39 GMT", + "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/ae7852a7-abb0-428f-97fa-3534f4c6be36", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "92" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "93" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2adee4d2-07f0-4d41-81c0-3b42440daf9f?$skip=1\u0026showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/ae7852a7-abb0-428f-97fa-3534f4c6be36?$skip=1\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "cb3ef020b17077b8ee6ec139b3f21813", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "2c9ba1f6-db38-4937-b1a6-c417d35c7d3b", + "apim-request-id": "d2ef618d-aebd-4a4a-a655-1fa52e190d1c", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:05 GMT", + "Date": "Tue, 17 Nov 2020 20:17:39 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "9" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "8" }, "ResponseBody": { - "jobId": "2adee4d2-07f0-4d41-81c0-3b42440daf9f", - "lastUpdateDateTime": "2021-01-28T23:17:06Z", - "createdDateTime": "2021-01-28T23:17:05Z", - "expirationDateTime": "2021-01-29T23:17:05Z", + "jobId": "ae7852a7-abb0-428f-97fa-3534f4c6be36", + "lastUpdateDateTime": "2020-11-17T20:17:39Z", + "createdDateTime": "2020-11-17T20:17:39Z", + "expirationDateTime": "2020-11-18T20:17:39Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/2adee4d2-07f0-4d41-81c0-3b42440daf9f?$skip=1\u0026showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/ae7852a7-abb0-428f-97fa-3534f4c6be36?$skip=1\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "beccfc644b839adbc9a8ce8f926f328c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "36e2d9f4-88c9-4b36-b19d-78dade7c415c", + "apim-request-id": "a568563c-be35-4841-b7fd-8a9c8f7d0a87", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:06 GMT", + "Date": "Tue, 17 Nov 2020 20:17:40 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "62" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "44" }, "ResponseBody": { - "jobId": "2adee4d2-07f0-4d41-81c0-3b42440daf9f", - "lastUpdateDateTime": "2021-01-28T23:17:06Z", - "createdDateTime": "2021-01-28T23:17:05Z", - "expirationDateTime": "2021-01-29T23:17:05Z", + "jobId": "ae7852a7-abb0-428f-97fa-3534f4c6be36", + "lastUpdateDateTime": "2020-11-17T20:17:40Z", + "createdDateTime": "2020-11-17T20:17:39Z", + "expirationDateTime": "2020-11-18T20:17:39Z", "status": "succeeded", "errors": [], "results": { @@ -892,6 +910,6 @@ "Variables": { "RandomSeed": "900872338", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithSkipParameterAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithSkipParameterAsync.json index 60fae28be56e8..2c80aee94c676 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithSkipParameterAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithSkipParameterAsync.json @@ -1,15 +1,21 @@ { "Entries": [ { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-0447fab028287144a6e9db765d6b025f-042fbec7b49b804d-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-51417cebb732f041aae3fd6629760b9f-b532a00a7940684b-00", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "9e757d2d83ce1123a7e23fad5376473f", "x-ms-return-client-request-id": "true" }, @@ -29,102 +35,120 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "0bf87938-a6e8-43e0-8c7b-94a287288dd0", - "Date": "Thu, 28 Jan 2021 23:17:44 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/18c64b16-d372-4fcf-9fdd-520757bf4448", + "apim-request-id": "0e245385-bf5f-4786-af97-619eaf455fcf", + "Date": "Tue, 17 Nov 2020 20:18:03 GMT", + "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8da09cb2-5c3b-4082-857e-e6e042c74ebc", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "90" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "92" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/18c64b16-d372-4fcf-9fdd-520757bf4448?$skip=1\u0026showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8da09cb2-5c3b-4082-857e-e6e042c74ebc?$skip=1\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "68a7733fd31f0864ffb638781102da48", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "14e42674-9b38-44e8-912f-6d727869f864", + "apim-request-id": "eb516f73-1c8e-4292-91f9-12a4ecae291d", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:44 GMT", + "Date": "Tue, 17 Nov 2020 20:18:03 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", + "X-Content-Type-Options": "nosniff", "x-envoy-upstream-service-time": "9" }, "ResponseBody": { - "jobId": "18c64b16-d372-4fcf-9fdd-520757bf4448", - "lastUpdateDateTime": "2021-01-28T23:17:44Z", - "createdDateTime": "2021-01-28T23:17:44Z", - "expirationDateTime": "2021-01-29T23:17:44Z", + "jobId": "8da09cb2-5c3b-4082-857e-e6e042c74ebc", + "lastUpdateDateTime": "2020-11-17T20:18:03Z", + "createdDateTime": "2020-11-17T20:18:03Z", + "expirationDateTime": "2020-11-18T20:18:03Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/18c64b16-d372-4fcf-9fdd-520757bf4448?$skip=1\u0026showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8da09cb2-5c3b-4082-857e-e6e042c74ebc?$skip=1\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "39eac04aaed6996e7ea6b9f62c4a8897", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "777abaa9-047f-43bd-bca9-bdbef6205287", + "apim-request-id": "875d762e-fd4e-48ac-b3a9-cbb909786f25", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:45 GMT", + "Date": "Tue, 17 Nov 2020 20:18:04 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "9" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "8" }, "ResponseBody": { - "jobId": "18c64b16-d372-4fcf-9fdd-520757bf4448", - "lastUpdateDateTime": "2021-01-28T23:17:44Z", - "createdDateTime": "2021-01-28T23:17:44Z", - "expirationDateTime": "2021-01-29T23:17:44Z", + "jobId": "8da09cb2-5c3b-4082-857e-e6e042c74ebc", + "lastUpdateDateTime": "2020-11-17T20:18:03Z", + "createdDateTime": "2020-11-17T20:18:03Z", + "expirationDateTime": "2020-11-18T20:18:03Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/18c64b16-d372-4fcf-9fdd-520757bf4448?$skip=1\u0026showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/8da09cb2-5c3b-4082-857e-e6e042c74ebc?$skip=1\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "eaa1ba814c8b59b1196c9f174baaffa5", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "c8e0c65c-614e-4933-8218-6b8d1f4045eb", + "apim-request-id": "0a8a7b59-8aec-4d64-9072-9e8963ba9816", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:46 GMT", + "Date": "Tue, 17 Nov 2020 20:18:05 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "36" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "49" }, "ResponseBody": { - "jobId": "18c64b16-d372-4fcf-9fdd-520757bf4448", - "lastUpdateDateTime": "2021-01-28T23:17:46Z", - "createdDateTime": "2021-01-28T23:17:44Z", - "expirationDateTime": "2021-01-29T23:17:44Z", + "jobId": "8da09cb2-5c3b-4082-857e-e6e042c74ebc", + "lastUpdateDateTime": "2020-11-17T20:18:05Z", + "createdDateTime": "2020-11-17T20:18:03Z", + "expirationDateTime": "2020-11-18T20:18:03Z", "status": "succeeded", "errors": [], "results": { @@ -922,6 +946,6 @@ "Variables": { "RandomSeed": "448859439", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithTopParameter.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithTopParameter.json index 3a4cb9f1f3747..671208807c3c1 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithTopParameter.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithTopParameter.json @@ -1,15 +1,21 @@ { "Entries": [ { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-09737fdbda85ba45b2449540965b2c74-d34d7500022bff4a-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-a5d188d6be4c56459dc4295f082149ba-06c979a38b63aa49-00", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "8efbb01e5acc858dcd1ff153470e4093", "x-ms-return-client-request-id": "true" }, @@ -29,132 +35,84 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "6a72cde1-5318-480c-9931-09a5c814f998", - "Date": "Thu, 28 Jan 2021 23:17:07 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/b44c9e8b-11cd-4a35-af37-c22befdfcd5c", + "apim-request-id": "0d9495bb-a756-4f93-99c7-0d34356d7079", + "Date": "Tue, 17 Nov 2020 20:17:41 GMT", + "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/ff9a49c9-ab18-4f9d-8582-4a648ef21779", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "95" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "103" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/b44c9e8b-11cd-4a35-af37-c22befdfcd5c?$top=1\u0026showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/ff9a49c9-ab18-4f9d-8582-4a648ef21779?$top=1\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "2660bb690f1e14745ff6a5df3888e782", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "a1d9096c-5936-4668-a6d9-a79b77c1da31", + "apim-request-id": "6212bebf-3e21-4549-9d4f-87a68a9efedf", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:07 GMT", + "Date": "Tue, 17 Nov 2020 20:17:41 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "9" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "8" }, "ResponseBody": { - "jobId": "b44c9e8b-11cd-4a35-af37-c22befdfcd5c", - "lastUpdateDateTime": "2021-01-28T23:17:08Z", - "createdDateTime": "2021-01-28T23:17:07Z", - "expirationDateTime": "2021-01-29T23:17:07Z", + "jobId": "ff9a49c9-ab18-4f9d-8582-4a648ef21779", + "lastUpdateDateTime": "2020-11-17T20:17:41Z", + "createdDateTime": "2020-11-17T20:17:41Z", + "expirationDateTime": "2020-11-18T20:17:41Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/b44c9e8b-11cd-4a35-af37-c22befdfcd5c?$top=1\u0026showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/ff9a49c9-ab18-4f9d-8582-4a648ef21779?$top=1\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "4c0a13cbdad64cf8d7c97184a7f98e05", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "5ee040c4-f2a9-4caf-803b-8a33f4ffaf54", + "apim-request-id": "629a2cc8-fc42-4ede-8797-964086c19816", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:08 GMT", + "Date": "Tue, 17 Nov 2020 20:17:42 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "9" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "65" }, "ResponseBody": { - "jobId": "b44c9e8b-11cd-4a35-af37-c22befdfcd5c", - "lastUpdateDateTime": "2021-01-28T23:17:08Z", - "createdDateTime": "2021-01-28T23:17:07Z", - "expirationDateTime": "2021-01-29T23:17:07Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/b44c9e8b-11cd-4a35-af37-c22befdfcd5c?$top=1\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "89adbdfd593e0f483ce62ed6b5ad4d44", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "884a683e-0563-4c60-8637-26087b0779ff", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:10 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "16" - }, - "ResponseBody": { - "jobId": "b44c9e8b-11cd-4a35-af37-c22befdfcd5c", - "lastUpdateDateTime": "2021-01-28T23:17:08Z", - "createdDateTime": "2021-01-28T23:17:07Z", - "expirationDateTime": "2021-01-29T23:17:07Z", - "status": "notStarted", - "errors": [] - } - }, - { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/b44c9e8b-11cd-4a35-af37-c22befdfcd5c?$top=1\u0026showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, text/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "34876f37f3038fbdc3134f559df06d66", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "4973b09b-0ab8-457c-8ff7-3171fe17544a", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:11 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "72" - }, - "ResponseBody": { - "jobId": "b44c9e8b-11cd-4a35-af37-c22befdfcd5c", - "lastUpdateDateTime": "2021-01-28T23:17:11Z", - "createdDateTime": "2021-01-28T23:17:07Z", - "expirationDateTime": "2021-01-29T23:17:07Z", + "jobId": "ff9a49c9-ab18-4f9d-8582-4a648ef21779", + "lastUpdateDateTime": "2020-11-17T20:17:42Z", + "createdDateTime": "2020-11-17T20:17:41Z", + "expirationDateTime": "2020-11-18T20:17:41Z", "status": "succeeded", "errors": [], "results": { @@ -329,13 +287,13 @@ "errors": [], "modelVersion": "2020-09-03" }, - "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/b44c9e8b-11cd-4a35-af37-c22befdfcd5c?$skip=1\u0026$top=1" + "@nextLink": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/ff9a49c9-ab18-4f9d-8582-4a648ef21779?$skip=1\u0026$top=1" } } ], "Variables": { "RandomSeed": "1474656437", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithTopParameterAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithTopParameterAsync.json index 1f329af8d86e6..fbaad6c902f23 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithTopParameterAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesWithTopParameterAsync.json @@ -1,15 +1,21 @@ { "Entries": [ { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-e4c2c071a10f704aa3c6d5e3d29c3cce-98bd973f130e1b47-00", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-0b22aeee30fbfe4fa9f98fa85c31cbdb-8655d085fc074f42-00", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "724372daad48480e76510121b5839b2e", "x-ms-return-client-request-id": "true" }, @@ -29,72 +35,84 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "0bfb4cc9-adad-4d31-8cec-125e65511f37", - "Date": "Thu, 28 Jan 2021 23:17:47 GMT", - "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/a6ef9bf4-dde7-48c3-8534-37ca0e87c723", + "apim-request-id": "27196e4a-c609-4a0b-99c2-3de38564fe6c", + "Date": "Tue, 17 Nov 2020 20:18:05 GMT", + "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/1e11eb94-911f-44c6-a50c-767fe44c7ae0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "97" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "109" }, "ResponseBody": [] }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/a6ef9bf4-dde7-48c3-8534-37ca0e87c723?$top=1\u0026showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/1e11eb94-911f-44c6-a50c-767fe44c7ae0?$top=1\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "934d972f1ac830d592026d8c2beeac11", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "2b903d4e-32ec-4280-8b74-161e3fbe4e03", + "apim-request-id": "ba43e48e-6dc8-464b-aa0e-aded5d7a8d11", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:47 GMT", + "Date": "Tue, 17 Nov 2020 20:18:06 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "9" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "8" }, "ResponseBody": { - "jobId": "a6ef9bf4-dde7-48c3-8534-37ca0e87c723", - "lastUpdateDateTime": "2021-01-28T23:17:47Z", - "createdDateTime": "2021-01-28T23:17:47Z", - "expirationDateTime": "2021-01-29T23:17:47Z", - "status": "running", + "jobId": "1e11eb94-911f-44c6-a50c-767fe44c7ae0", + "lastUpdateDateTime": "2020-11-17T20:18:06Z", + "createdDateTime": "2020-11-17T20:18:06Z", + "expirationDateTime": "2020-11-18T20:18:06Z", + "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/a6ef9bf4-dde7-48c3-8534-37ca0e87c723?$top=1\u0026showStats=false", + "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/1e11eb94-911f-44c6-a50c-767fe44c7ae0?$top=1\u0026showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json, text/json", + "Accept": [ + "application/json", + "text/json" + ], "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "User-Agent": [ + "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", + "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" + ], "x-ms-client-request-id": "ceb201b6e72887166038d111abceeca7", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "356aa485-414f-49c2-8bbd-05b31d6c6ef7", + "apim-request-id": "a780e6f6-195b-4db1-ba95-db5eae13e086", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 28 Jan 2021 23:17:48 GMT", + "Date": "Tue, 17 Nov 2020 20:18:07 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "44" + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "51" }, "ResponseBody": { - "jobId": "a6ef9bf4-dde7-48c3-8534-37ca0e87c723", - "lastUpdateDateTime": "2021-01-28T23:17:48Z", - "createdDateTime": "2021-01-28T23:17:47Z", - "expirationDateTime": "2021-01-29T23:17:47Z", + "jobId": "1e11eb94-911f-44c6-a50c-767fe44c7ae0", + "lastUpdateDateTime": "2020-11-17T20:18:07Z", + "createdDateTime": "2020-11-17T20:18:06Z", + "expirationDateTime": "2020-11-18T20:18:06Z", "status": "succeeded", "errors": [], "results": { @@ -269,13 +287,13 @@ "errors": [], "modelVersion": "2020-09-03" }, - "@nextLink": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/a6ef9bf4-dde7-48c3-8534-37ca0e87c723?$skip=1\u0026$top=1" + "@nextLink": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/1e11eb94-911f-44c6-a50c-767fe44c7ae0?$skip=1\u0026$top=1" } } ], "Variables": { "RandomSeed": "554796851", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" } } \ No newline at end of file From 2143fb7ea1f50ba7421fab9e88fd1b0313e746ee Mon Sep 17 00:00:00 2001 From: Suhas Mehta Date: Mon, 1 Feb 2021 14:40:52 -0800 Subject: [PATCH 07/12] addressee comments --- .../src/AnalyzeHealthcareEntitiesResult.cs | 4 +- .../RecognizeHealthcareEntitiesTest.json | 876 ++++++++++++++++- .../RecognizeHealthcareEntitiesTestAsync.json | 912 ++++++++++++++++-- 3 files changed, 1648 insertions(+), 144 deletions(-) diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesResult.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesResult.cs index c164c0bb06dcb..a0576acb3c6e0 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesResult.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesResult.cs @@ -16,11 +16,11 @@ public partial class AnalyzeHealthcareEntitiesResult : TextAnalyticsResult private readonly IReadOnlyCollection _entities; internal AnalyzeHealthcareEntitiesResult(string id, TextDocumentStatistics statistics, - IReadOnlyList healthcareEntities, + IList healthcareEntities, IList warnings) : base(id, statistics) { - _entities = healthcareEntities; + _entities = new ReadOnlyCollection(healthcareEntities); Warnings = new ReadOnlyCollection(warnings); } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesTest.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesTest.json index 92fe79ec6adc5..e390bbbaaa871 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesTest.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesTest.json @@ -1,119 +1,106 @@ { "Entries": [ { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], - "Content-Length": "100", + "Accept": "application/json, text/json", + "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-7d83b3ff7afff74d8646a40f3a9773bb-75577e8f2adc544c-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-36f6c39da44b2546bad6c9a423bf90c6-96b8683de0ee4542-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210201.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "e51cbf87a321df02032925de5e6708b4", "x-ms-return-client-request-id": "true" }, "RequestBody": { "documents": [ { - "id": "0", + "id": "1", "text": "Subject is taking 100mg of ibuprofen twice daily", "language": "en" + }, + { + "id": "2", + "text": "Can cause rapid or irregular heartbeat, delirium, panic, psychosis, and heart failure.", + "language": "en" } ] }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "3ebc853f-1e23-4fac-9805-ab8f7ece142b", - "Date": "Tue, 17 Nov 2020 20:17:35 GMT", - "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/970738c7-50b4-4b04-806a-5e05c01ba70f", + "apim-request-id": "e8773249-c01a-4a99-b340-7b9288cbfd28", + "Date": "Mon, 01 Feb 2021 22:39:56 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/abf7284a-a7ce-45b8-8e97-928f6d9f9d06", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "69" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "303" }, "ResponseBody": [] }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/970738c7-50b4-4b04-806a-5e05c01ba70f?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/abf7284a-a7ce-45b8-8e97-928f6d9f9d06?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210201.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "2cdb69530701f208f175aa6a97e2593b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "4b91b2da-980d-48ba-b3fd-680b8e10d8f7", + "apim-request-id": "2211dd68-5bcb-4ce4-8f36-0cf5b87073ff", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:35 GMT", + "Date": "Mon, 01 Feb 2021 22:39:57 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "1143" }, "ResponseBody": { - "jobId": "970738c7-50b4-4b04-806a-5e05c01ba70f", - "lastUpdateDateTime": "2020-11-17T20:17:36Z", - "createdDateTime": "2020-11-17T20:17:36Z", - "expirationDateTime": "2020-11-18T20:17:36Z", + "jobId": "abf7284a-a7ce-45b8-8e97-928f6d9f9d06", + "lastUpdateDateTime": "2021-02-01T22:39:57Z", + "createdDateTime": "2021-02-01T22:39:56Z", + "expirationDateTime": "2021-02-02T22:39:56Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/970738c7-50b4-4b04-806a-5e05c01ba70f?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/abf7284a-a7ce-45b8-8e97-928f6d9f9d06?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210201.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "a701cb20bb11a529608aebe12f36a48e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "496f7a26-757f-4d47-96c9-b39dd77dfc28", + "apim-request-id": "8b838e7d-c660-4b9c-a2f2-adb50d7daf8d", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:36 GMT", + "Date": "Mon, 01 Feb 2021 22:40:00 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "42" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "1501" }, "ResponseBody": { - "jobId": "970738c7-50b4-4b04-806a-5e05c01ba70f", - "lastUpdateDateTime": "2020-11-17T20:17:37Z", - "createdDateTime": "2020-11-17T20:17:36Z", - "expirationDateTime": "2020-11-18T20:17:36Z", + "jobId": "abf7284a-a7ce-45b8-8e97-928f6d9f9d06", + "lastUpdateDateTime": "2021-02-01T22:40:00Z", + "createdDateTime": "2021-02-01T22:39:56Z", + "expirationDateTime": "2021-02-02T22:39:56Z", "status": "succeeded", "errors": [], "results": { "documents": [ { - "id": "0", + "id": "1", "entities": [ { "offset": 18, @@ -277,6 +264,789 @@ } ], "warnings": [] + }, + { + "id": "2", + "entities": [ + { + "offset": 10, + "length": 5, + "text": "rapid", + "category": "SymptomOrSign", + "confidenceScore": 0.98, + "isNegated": false, + "links": [ + { + "dataSource": "UMLS", + "id": "C0456962" + }, + { + "dataSource": "AOD", + "id": "0000002744" + }, + { + "dataSource": "CHV", + "id": "0000034666" + }, + { + "dataSource": "LNC", + "id": "LA24868-4" + }, + { + "dataSource": "NCI", + "id": "C65069" + }, + { + "dataSource": "RCD", + "id": "X78xZ" + }, + { + "dataSource": "SNOMEDCT_US", + "id": "255358001" + } + ] + }, + { + "offset": 19, + "length": 19, + "text": "irregular heartbeat", + "category": "SymptomOrSign", + "confidenceScore": 1.0, + "isNegated": false, + "links": [ + { + "dataSource": "UMLS", + "id": "C0003811" + }, + { + "dataSource": "AOD", + "id": "0000005346" + }, + { + "dataSource": "BI", + "id": "BI00057" + }, + { + "dataSource": "CCPSS", + "id": "1017785" + }, + { + "dataSource": "CCS", + "id": "7.2.9" + }, + { + "dataSource": "CCSR_10", + "id": "CIR017" + }, + { + "dataSource": "CHV", + "id": "0000001440" + }, + { + "dataSource": "COSTAR", + "id": "153" + }, + { + "dataSource": "CSP", + "id": "1393-3277" + }, + { + "dataSource": "CST", + "id": "ARRHYTHMIA" + }, + { + "dataSource": "HPO", + "id": "HP:0011675" + }, + { + "dataSource": "ICD10", + "id": "I49.9" + }, + { + "dataSource": "ICD10AM", + "id": "I49.9" + }, + { + "dataSource": "ICD10CM", + "id": "I49.9" + }, + { + "dataSource": "ICD9CM", + "id": "427.9" + }, + { + "dataSource": "ICPC", + "id": "K80" + }, + { + "dataSource": "ICPC2EENG", + "id": "K80" + }, + { + "dataSource": "ICPC2ICD10ENG", + "id": "MTHU033639" + }, + { + "dataSource": "ICPC2P", + "id": "K80012" + }, + { + "dataSource": "LCH", + "id": "U000359" + }, + { + "dataSource": "LCH_NW", + "id": "sh85007430" + }, + { + "dataSource": "LNC", + "id": "LA15419-7" + }, + { + "dataSource": "MDR", + "id": "10003119" + }, + { + "dataSource": "MEDCIN", + "id": "35851" + }, + { + "dataSource": "MEDLINEPLUS", + "id": "147" + }, + { + "dataSource": "MSH", + "id": "D001145" + }, + { + "dataSource": "MTH", + "id": "153" + }, + { + "dataSource": "MTHICD9", + "id": "427.9" + }, + { + "dataSource": "NANDA-I", + "id": "00126" + }, + { + "dataSource": "NCI", + "id": "C2881" + }, + { + "dataSource": "NCI_FDA", + "id": "1721" + }, + { + "dataSource": "NCI_NICHD", + "id": "C2881" + }, + { + "dataSource": "NOC", + "id": "040520" + }, + { + "dataSource": "OMIM", + "id": "115000" + }, + { + "dataSource": "PSY", + "id": "03790" + }, + { + "dataSource": "RCD", + "id": "X77BB" + }, + { + "dataSource": "SNM", + "id": "F-73102" + }, + { + "dataSource": "SNMI", + "id": "D3-30010" + }, + { + "dataSource": "SNOMEDCT_US", + "id": "698247007" + }, + { + "dataSource": "WHO", + "id": "0433" + } + ] + }, + { + "offset": 40, + "length": 8, + "text": "delirium", + "category": "Diagnosis", + "confidenceScore": 0.99, + "isNegated": false, + "links": [ + { + "dataSource": "UMLS", + "id": "C0011206" + }, + { + "dataSource": "AOD", + "id": "0000004328" + }, + { + "dataSource": "CCPSS", + "id": "1017884" + }, + { + "dataSource": "CHV", + "id": "0000003670" + }, + { + "dataSource": "COSTAR", + "id": "U000178" + }, + { + "dataSource": "CSP", + "id": "5003-0016" + }, + { + "dataSource": "CST", + "id": "DELIRIUM" + }, + { + "dataSource": "DSM-5", + "id": "780.09" + }, + { + "dataSource": "DXP", + "id": "U000937" + }, + { + "dataSource": "HPO", + "id": "HP:0031258" + }, + { + "dataSource": "ICD10", + "id": "F05.9" + }, + { + "dataSource": "ICD10AM", + "id": "F05.9" + }, + { + "dataSource": "ICD10CM", + "id": "R41.0" + }, + { + "dataSource": "ICNP", + "id": "10022091" + }, + { + "dataSource": "ICPC2ICD10ENG", + "id": "MTHU022150" + }, + { + "dataSource": "LCH", + "id": "U001289" + }, + { + "dataSource": "LCH_NW", + "id": "sh85036579" + }, + { + "dataSource": "LNC", + "id": "LP89856-6" + }, + { + "dataSource": "MDR", + "id": "10012218" + }, + { + "dataSource": "MEDCIN", + "id": "677" + }, + { + "dataSource": "MEDLINEPLUS", + "id": "5562" + }, + { + "dataSource": "MSH", + "id": "D003693" + }, + { + "dataSource": "NANDA-I", + "id": "02157" + }, + { + "dataSource": "NCI", + "id": "C2981" + }, + { + "dataSource": "NCI_CTCAE", + "id": "E12898" + }, + { + "dataSource": "NCI_CTRP", + "id": "C2981" + }, + { + "dataSource": "NCI_NCI-GLOSS", + "id": "CDR0000450100" + }, + { + "dataSource": "NCI_NICHD", + "id": "C2981" + }, + { + "dataSource": "NOC", + "id": "091213" + }, + { + "dataSource": "OMIM", + "id": "MTHU035152" + }, + { + "dataSource": "PDQ", + "id": "CDR0000042226" + }, + { + "dataSource": "PSY", + "id": "13360" + }, + { + "dataSource": "QMR", + "id": "Q0200089" + }, + { + "dataSource": "RCD", + "id": "XE1Xv" + }, + { + "dataSource": "SNM", + "id": "F-85720" + }, + { + "dataSource": "SNMI", + "id": "D9-20100" + }, + { + "dataSource": "SNOMEDCT_US", + "id": "2776000" + }, + { + "dataSource": "WHO", + "id": "0099" + } + ] + }, + { + "offset": 50, + "length": 5, + "text": "panic", + "category": "Diagnosis", + "confidenceScore": 0.89, + "isNegated": false, + "links": [ + { + "dataSource": "UMLS", + "id": "C0030318" + }, + { + "dataSource": "AOD", + "id": "0000023911" + }, + { + "dataSource": "CHV", + "id": "0000009234" + }, + { + "dataSource": "CST", + "id": "AGITATION" + }, + { + "dataSource": "ICD10CM", + "id": "F41.0" + }, + { + "dataSource": "ICPC2ICD10ENG", + "id": "MTHU057222" + }, + { + "dataSource": "LCH", + "id": "U003458" + }, + { + "dataSource": "LCH_NW", + "id": "sh85097438" + }, + { + "dataSource": "MDR", + "id": "10033670" + }, + { + "dataSource": "MSH", + "id": "D010200" + }, + { + "dataSource": "MTH", + "id": "551" + }, + { + "dataSource": "MTHICD9", + "id": "300.01" + }, + { + "dataSource": "NCI", + "id": "C94438" + }, + { + "dataSource": "NCI_NCI-GLOSS", + "id": "CDR0000454704" + }, + { + "dataSource": "NOC", + "id": "121346" + }, + { + "dataSource": "PSY", + "id": "36260" + }, + { + "dataSource": "RCD", + "id": "Xa3Vj" + }, + { + "dataSource": "SNM", + "id": "F-90880" + }, + { + "dataSource": "SNMI", + "id": "F-92560" + }, + { + "dataSource": "SNOMEDCT_US", + "id": "79823003" + }, + { + "dataSource": "WHO", + "id": "0163" + } + ] + }, + { + "offset": 57, + "length": 9, + "text": "psychosis", + "category": "Diagnosis", + "confidenceScore": 1.0, + "isNegated": false, + "links": [ + { + "dataSource": "UMLS", + "id": "C0033975" + }, + { + "dataSource": "AIR", + "id": "PSYCH" + }, + { + "dataSource": "AOD", + "id": "0000004324" + }, + { + "dataSource": "BI", + "id": "BI00688" + }, + { + "dataSource": "CCPSS", + "id": "1018204" + }, + { + "dataSource": "CHV", + "id": "0000010350" + }, + { + "dataSource": "COSTAR", + "id": "089" + }, + { + "dataSource": "CSP", + "id": "2484-8182" + }, + { + "dataSource": "CST", + "id": "PSYCHOSIS" + }, + { + "dataSource": "DXP", + "id": "U003257" + }, + { + "dataSource": "HPO", + "id": "HP:0000709" + }, + { + "dataSource": "ICD9CM", + "id": "298.9" + }, + { + "dataSource": "ICPC2ICD10ENG", + "id": "MTHU070382" + }, + { + "dataSource": "ICPC2P", + "id": "P98004" + }, + { + "dataSource": "LCH_NW", + "id": "sh85108502" + }, + { + "dataSource": "LNC", + "id": "LA7534-6" + }, + { + "dataSource": "MDR", + "id": "10061920" + }, + { + "dataSource": "MEDCIN", + "id": "364298" + }, + { + "dataSource": "MEDLINEPLUS", + "id": "4180" + }, + { + "dataSource": "MSH", + "id": "D011618" + }, + { + "dataSource": "MTH", + "id": "089" + }, + { + "dataSource": "MTHICD9", + "id": "298.9" + }, + { + "dataSource": "NANDA-I", + "id": "03128" + }, + { + "dataSource": "NCI", + "id": "C78576" + }, + { + "dataSource": "NCI_CTCAE", + "id": "E12954" + }, + { + "dataSource": "NCI_NCI-GLOSS", + "id": "CDR0000450115" + }, + { + "dataSource": "NCI_NICHD", + "id": "C78576" + }, + { + "dataSource": "NOC", + "id": "061619" + }, + { + "dataSource": "OMIM", + "id": "MTHU002910" + }, + { + "dataSource": "PSY", + "id": "41910" + }, + { + "dataSource": "QMR", + "id": "Q0200208" + }, + { + "dataSource": "RCD", + "id": "X00S6" + }, + { + "dataSource": "SNM", + "id": "D-9200" + }, + { + "dataSource": "SNMI", + "id": "D9-72000" + }, + { + "dataSource": "SNOMEDCT_US", + "id": "69322001" + }, + { + "dataSource": "WHO", + "id": "0193" + } + ] + }, + { + "offset": 72, + "length": 13, + "text": "heart failure", + "category": "Diagnosis", + "confidenceScore": 0.99, + "isNegated": false, + "links": [ + { + "dataSource": "UMLS", + "id": "C0018801" + }, + { + "dataSource": "AOD", + "id": "0000005308" + }, + { + "dataSource": "BI", + "id": "BI00019" + }, + { + "dataSource": "CCPSS", + "id": "0017571" + }, + { + "dataSource": "CCS", + "id": "7.2.11.2" + }, + { + "dataSource": "CCSR_10", + "id": "CIR019" + }, + { + "dataSource": "CHV", + "id": "0000005877" + }, + { + "dataSource": "COSTAR", + "id": "U000338" + }, + { + "dataSource": "CSP", + "id": "1393-3587" + }, + { + "dataSource": "CST", + "id": "HEART FAIL" + }, + { + "dataSource": "HPO", + "id": "HP:0001635" + }, + { + "dataSource": "ICD10", + "id": "I50.9" + }, + { + "dataSource": "ICD10AM", + "id": "I50.9" + }, + { + "dataSource": "ICD10CM", + "id": "I50.9" + }, + { + "dataSource": "ICD9CM", + "id": "428.9" + }, + { + "dataSource": "ICPC", + "id": "K77" + }, + { + "dataSource": "ICPC2EENG", + "id": "K77" + }, + { + "dataSource": "ICPC2ICD10ENG", + "id": "MTHU027668" + }, + { + "dataSource": "ICPC2P", + "id": "K77011" + }, + { + "dataSource": "LCH", + "id": "U005616" + }, + { + "dataSource": "LCH_NW", + "id": "sh85059745" + }, + { + "dataSource": "LNC", + "id": "LP269421-6" + }, + { + "dataSource": "MDR", + "id": "10007554" + }, + { + "dataSource": "MEDCIN", + "id": "95724" + }, + { + "dataSource": "MEDLINEPLUS", + "id": "199" + }, + { + "dataSource": "MSH", + "id": "D006333" + }, + { + "dataSource": "MTHICD9", + "id": "428.9" + }, + { + "dataSource": "NCI", + "id": "C50577" + }, + { + "dataSource": "NCI_CTCAE", + "id": "E10124" + }, + { + "dataSource": "NCI_FDA", + "id": "2206" + }, + { + "dataSource": "NCI_NICHD", + "id": "C50577" + }, + { + "dataSource": "OMIM", + "id": "MTHU009472" + }, + { + "dataSource": "RCD", + "id": "G58.." + }, + { + "dataSource": "SNM", + "id": "D-7050" + }, + { + "dataSource": "SNMI", + "id": "D3-16000" + }, + { + "dataSource": "SNOMEDCT_US", + "id": "84114007" + }, + { + "dataSource": "WHO", + "id": "0496" + } + ] + } + ], + "relations": [], + "warnings": [] } ], "errors": [], @@ -288,6 +1058,6 @@ "Variables": { "RandomSeed": "1686725774", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" } } \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesTestAsync.json b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesTestAsync.json index f456d4b3de42c..9d25996316703 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesTestAsync.json +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/tests/SessionRecords/RecognizeHealthcareEntitiesTests/RecognizeHealthcareEntitiesTestAsync.json @@ -1,155 +1,106 @@ { "Entries": [ { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs?stringIndexType=Utf16CodeUnit", "RequestMethod": "POST", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], - "Content-Length": "100", + "Accept": "application/json, text/json", + "Content-Length": "223", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-e5a4811315d9ac458320de27ff359ca5-038f3624c8c5b245-00", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-0731d84338b4a34597da1454795cff6f-32e439059e32dc4e-00", + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210201.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "acdb13842ca5b9295fa84adf0c4870a8", "x-ms-return-client-request-id": "true" }, "RequestBody": { "documents": [ { - "id": "0", + "id": "1", "text": "Subject is taking 100mg of ibuprofen twice daily", "language": "en" + }, + { + "id": "2", + "text": "Can cause rapid or irregular heartbeat, delirium, panic, psychosis, and heart failure.", + "language": "en" } ] }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "12c1243f-92ad-4c7f-b481-1a74aa2310a5", - "Date": "Tue, 17 Nov 2020 20:17:58 GMT", - "operation-location": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/438b8056-a2b2-4122-b554-92ddd20bf4cd", + "apim-request-id": "a8d93197-4ccc-44e0-9e54-09b4c1701fa5", + "Date": "Mon, 01 Feb 2021 22:40:01 GMT", + "operation-location": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/e16734bd-a6bc-4401-a89e-88c6f216a900", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "77" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "681" }, "ResponseBody": [] }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/438b8056-a2b2-4122-b554-92ddd20bf4cd?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/e16734bd-a6bc-4401-a89e-88c6f216a900?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210201.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "1181511460ff1ed085a4ba80632c2cfd", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "baf7113b-79a6-429c-9229-820419698c27", + "apim-request-id": "e3452241-630f-4efb-86ea-df96ed527dbc", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:58 GMT", + "Date": "Mon, 01 Feb 2021 22:40:01 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "122" }, "ResponseBody": { - "jobId": "438b8056-a2b2-4122-b554-92ddd20bf4cd", - "lastUpdateDateTime": "2020-11-17T20:17:58Z", - "createdDateTime": "2020-11-17T20:17:58Z", - "expirationDateTime": "2020-11-18T20:17:58Z", + "jobId": "e16734bd-a6bc-4401-a89e-88c6f216a900", + "lastUpdateDateTime": "2021-02-01T22:40:02Z", + "createdDateTime": "2021-02-01T22:40:01Z", + "expirationDateTime": "2021-02-02T22:40:01Z", "status": "notStarted", "errors": [] } }, { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/438b8056-a2b2-4122-b554-92ddd20bf4cd?showStats=false", + "RequestUri": "https://ta-s-westeurope.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/e16734bd-a6bc-4401-a89e-88c6f216a900?showStats=false", "RequestMethod": "GET", "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], + "Accept": "application/json, text/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], + "User-Agent": "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20210201.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "d0605b7dc709a544ca5e0c1b0401dc1e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "d027eaed-0b6c-4468-8fbf-3ff4d24be74f", + "apim-request-id": "5a409b75-0291-4bb3-99f8-50b010d94834", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:17:59 GMT", + "Date": "Mon, 01 Feb 2021 22:40:05 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "10" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "2378" }, "ResponseBody": { - "jobId": "438b8056-a2b2-4122-b554-92ddd20bf4cd", - "lastUpdateDateTime": "2020-11-17T20:18:00Z", - "createdDateTime": "2020-11-17T20:17:58Z", - "expirationDateTime": "2020-11-18T20:17:58Z", - "status": "running", - "errors": [] - } - }, - { - "RequestUri": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com/text/analytics/v3.1-preview.3/entities/health/jobs/438b8056-a2b2-4122-b554-92ddd20bf4cd?showStats=false", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": [ - "application/json", - "text/json" - ], - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.TextAnalytics/5.1.0-alpha.20201116.1", - "(.NET Core 4.6.29321.03; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "b5e59345e53b24c743bd270071a85633", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d2e9e5f5-5a76-4f03-aad3-aed1c8c851b2", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 20:18:00 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "Transfer-Encoding": "chunked", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "32" - }, - "ResponseBody": { - "jobId": "438b8056-a2b2-4122-b554-92ddd20bf4cd", - "lastUpdateDateTime": "2020-11-17T20:18:00Z", - "createdDateTime": "2020-11-17T20:17:58Z", - "expirationDateTime": "2020-11-18T20:17:58Z", + "jobId": "e16734bd-a6bc-4401-a89e-88c6f216a900", + "lastUpdateDateTime": "2021-02-01T22:40:03Z", + "createdDateTime": "2021-02-01T22:40:01Z", + "expirationDateTime": "2021-02-02T22:40:01Z", "status": "succeeded", "errors": [], "results": { "documents": [ { - "id": "0", + "id": "1", "entities": [ { "offset": 18, @@ -313,6 +264,789 @@ } ], "warnings": [] + }, + { + "id": "2", + "entities": [ + { + "offset": 10, + "length": 5, + "text": "rapid", + "category": "SymptomOrSign", + "confidenceScore": 0.98, + "isNegated": false, + "links": [ + { + "dataSource": "UMLS", + "id": "C0456962" + }, + { + "dataSource": "AOD", + "id": "0000002744" + }, + { + "dataSource": "CHV", + "id": "0000034666" + }, + { + "dataSource": "LNC", + "id": "LA24868-4" + }, + { + "dataSource": "NCI", + "id": "C65069" + }, + { + "dataSource": "RCD", + "id": "X78xZ" + }, + { + "dataSource": "SNOMEDCT_US", + "id": "255358001" + } + ] + }, + { + "offset": 19, + "length": 19, + "text": "irregular heartbeat", + "category": "SymptomOrSign", + "confidenceScore": 1.0, + "isNegated": false, + "links": [ + { + "dataSource": "UMLS", + "id": "C0003811" + }, + { + "dataSource": "AOD", + "id": "0000005346" + }, + { + "dataSource": "BI", + "id": "BI00057" + }, + { + "dataSource": "CCPSS", + "id": "1017785" + }, + { + "dataSource": "CCS", + "id": "7.2.9" + }, + { + "dataSource": "CCSR_10", + "id": "CIR017" + }, + { + "dataSource": "CHV", + "id": "0000001440" + }, + { + "dataSource": "COSTAR", + "id": "153" + }, + { + "dataSource": "CSP", + "id": "1393-3277" + }, + { + "dataSource": "CST", + "id": "ARRHYTHMIA" + }, + { + "dataSource": "HPO", + "id": "HP:0011675" + }, + { + "dataSource": "ICD10", + "id": "I49.9" + }, + { + "dataSource": "ICD10AM", + "id": "I49.9" + }, + { + "dataSource": "ICD10CM", + "id": "I49.9" + }, + { + "dataSource": "ICD9CM", + "id": "427.9" + }, + { + "dataSource": "ICPC", + "id": "K80" + }, + { + "dataSource": "ICPC2EENG", + "id": "K80" + }, + { + "dataSource": "ICPC2ICD10ENG", + "id": "MTHU033639" + }, + { + "dataSource": "ICPC2P", + "id": "K80012" + }, + { + "dataSource": "LCH", + "id": "U000359" + }, + { + "dataSource": "LCH_NW", + "id": "sh85007430" + }, + { + "dataSource": "LNC", + "id": "LA15419-7" + }, + { + "dataSource": "MDR", + "id": "10003119" + }, + { + "dataSource": "MEDCIN", + "id": "35851" + }, + { + "dataSource": "MEDLINEPLUS", + "id": "147" + }, + { + "dataSource": "MSH", + "id": "D001145" + }, + { + "dataSource": "MTH", + "id": "153" + }, + { + "dataSource": "MTHICD9", + "id": "427.9" + }, + { + "dataSource": "NANDA-I", + "id": "00126" + }, + { + "dataSource": "NCI", + "id": "C2881" + }, + { + "dataSource": "NCI_FDA", + "id": "1721" + }, + { + "dataSource": "NCI_NICHD", + "id": "C2881" + }, + { + "dataSource": "NOC", + "id": "040520" + }, + { + "dataSource": "OMIM", + "id": "115000" + }, + { + "dataSource": "PSY", + "id": "03790" + }, + { + "dataSource": "RCD", + "id": "X77BB" + }, + { + "dataSource": "SNM", + "id": "F-73102" + }, + { + "dataSource": "SNMI", + "id": "D3-30010" + }, + { + "dataSource": "SNOMEDCT_US", + "id": "698247007" + }, + { + "dataSource": "WHO", + "id": "0433" + } + ] + }, + { + "offset": 40, + "length": 8, + "text": "delirium", + "category": "Diagnosis", + "confidenceScore": 0.99, + "isNegated": false, + "links": [ + { + "dataSource": "UMLS", + "id": "C0011206" + }, + { + "dataSource": "AOD", + "id": "0000004328" + }, + { + "dataSource": "CCPSS", + "id": "1017884" + }, + { + "dataSource": "CHV", + "id": "0000003670" + }, + { + "dataSource": "COSTAR", + "id": "U000178" + }, + { + "dataSource": "CSP", + "id": "5003-0016" + }, + { + "dataSource": "CST", + "id": "DELIRIUM" + }, + { + "dataSource": "DSM-5", + "id": "780.09" + }, + { + "dataSource": "DXP", + "id": "U000937" + }, + { + "dataSource": "HPO", + "id": "HP:0031258" + }, + { + "dataSource": "ICD10", + "id": "F05.9" + }, + { + "dataSource": "ICD10AM", + "id": "F05.9" + }, + { + "dataSource": "ICD10CM", + "id": "R41.0" + }, + { + "dataSource": "ICNP", + "id": "10022091" + }, + { + "dataSource": "ICPC2ICD10ENG", + "id": "MTHU022150" + }, + { + "dataSource": "LCH", + "id": "U001289" + }, + { + "dataSource": "LCH_NW", + "id": "sh85036579" + }, + { + "dataSource": "LNC", + "id": "LP89856-6" + }, + { + "dataSource": "MDR", + "id": "10012218" + }, + { + "dataSource": "MEDCIN", + "id": "677" + }, + { + "dataSource": "MEDLINEPLUS", + "id": "5562" + }, + { + "dataSource": "MSH", + "id": "D003693" + }, + { + "dataSource": "NANDA-I", + "id": "02157" + }, + { + "dataSource": "NCI", + "id": "C2981" + }, + { + "dataSource": "NCI_CTCAE", + "id": "E12898" + }, + { + "dataSource": "NCI_CTRP", + "id": "C2981" + }, + { + "dataSource": "NCI_NCI-GLOSS", + "id": "CDR0000450100" + }, + { + "dataSource": "NCI_NICHD", + "id": "C2981" + }, + { + "dataSource": "NOC", + "id": "091213" + }, + { + "dataSource": "OMIM", + "id": "MTHU035152" + }, + { + "dataSource": "PDQ", + "id": "CDR0000042226" + }, + { + "dataSource": "PSY", + "id": "13360" + }, + { + "dataSource": "QMR", + "id": "Q0200089" + }, + { + "dataSource": "RCD", + "id": "XE1Xv" + }, + { + "dataSource": "SNM", + "id": "F-85720" + }, + { + "dataSource": "SNMI", + "id": "D9-20100" + }, + { + "dataSource": "SNOMEDCT_US", + "id": "2776000" + }, + { + "dataSource": "WHO", + "id": "0099" + } + ] + }, + { + "offset": 50, + "length": 5, + "text": "panic", + "category": "Diagnosis", + "confidenceScore": 0.89, + "isNegated": false, + "links": [ + { + "dataSource": "UMLS", + "id": "C0030318" + }, + { + "dataSource": "AOD", + "id": "0000023911" + }, + { + "dataSource": "CHV", + "id": "0000009234" + }, + { + "dataSource": "CST", + "id": "AGITATION" + }, + { + "dataSource": "ICD10CM", + "id": "F41.0" + }, + { + "dataSource": "ICPC2ICD10ENG", + "id": "MTHU057222" + }, + { + "dataSource": "LCH", + "id": "U003458" + }, + { + "dataSource": "LCH_NW", + "id": "sh85097438" + }, + { + "dataSource": "MDR", + "id": "10033670" + }, + { + "dataSource": "MSH", + "id": "D010200" + }, + { + "dataSource": "MTH", + "id": "551" + }, + { + "dataSource": "MTHICD9", + "id": "300.01" + }, + { + "dataSource": "NCI", + "id": "C94438" + }, + { + "dataSource": "NCI_NCI-GLOSS", + "id": "CDR0000454704" + }, + { + "dataSource": "NOC", + "id": "121346" + }, + { + "dataSource": "PSY", + "id": "36260" + }, + { + "dataSource": "RCD", + "id": "Xa3Vj" + }, + { + "dataSource": "SNM", + "id": "F-90880" + }, + { + "dataSource": "SNMI", + "id": "F-92560" + }, + { + "dataSource": "SNOMEDCT_US", + "id": "79823003" + }, + { + "dataSource": "WHO", + "id": "0163" + } + ] + }, + { + "offset": 57, + "length": 9, + "text": "psychosis", + "category": "Diagnosis", + "confidenceScore": 1.0, + "isNegated": false, + "links": [ + { + "dataSource": "UMLS", + "id": "C0033975" + }, + { + "dataSource": "AIR", + "id": "PSYCH" + }, + { + "dataSource": "AOD", + "id": "0000004324" + }, + { + "dataSource": "BI", + "id": "BI00688" + }, + { + "dataSource": "CCPSS", + "id": "1018204" + }, + { + "dataSource": "CHV", + "id": "0000010350" + }, + { + "dataSource": "COSTAR", + "id": "089" + }, + { + "dataSource": "CSP", + "id": "2484-8182" + }, + { + "dataSource": "CST", + "id": "PSYCHOSIS" + }, + { + "dataSource": "DXP", + "id": "U003257" + }, + { + "dataSource": "HPO", + "id": "HP:0000709" + }, + { + "dataSource": "ICD9CM", + "id": "298.9" + }, + { + "dataSource": "ICPC2ICD10ENG", + "id": "MTHU070382" + }, + { + "dataSource": "ICPC2P", + "id": "P98004" + }, + { + "dataSource": "LCH_NW", + "id": "sh85108502" + }, + { + "dataSource": "LNC", + "id": "LA7534-6" + }, + { + "dataSource": "MDR", + "id": "10061920" + }, + { + "dataSource": "MEDCIN", + "id": "364298" + }, + { + "dataSource": "MEDLINEPLUS", + "id": "4180" + }, + { + "dataSource": "MSH", + "id": "D011618" + }, + { + "dataSource": "MTH", + "id": "089" + }, + { + "dataSource": "MTHICD9", + "id": "298.9" + }, + { + "dataSource": "NANDA-I", + "id": "03128" + }, + { + "dataSource": "NCI", + "id": "C78576" + }, + { + "dataSource": "NCI_CTCAE", + "id": "E12954" + }, + { + "dataSource": "NCI_NCI-GLOSS", + "id": "CDR0000450115" + }, + { + "dataSource": "NCI_NICHD", + "id": "C78576" + }, + { + "dataSource": "NOC", + "id": "061619" + }, + { + "dataSource": "OMIM", + "id": "MTHU002910" + }, + { + "dataSource": "PSY", + "id": "41910" + }, + { + "dataSource": "QMR", + "id": "Q0200208" + }, + { + "dataSource": "RCD", + "id": "X00S6" + }, + { + "dataSource": "SNM", + "id": "D-9200" + }, + { + "dataSource": "SNMI", + "id": "D9-72000" + }, + { + "dataSource": "SNOMEDCT_US", + "id": "69322001" + }, + { + "dataSource": "WHO", + "id": "0193" + } + ] + }, + { + "offset": 72, + "length": 13, + "text": "heart failure", + "category": "Diagnosis", + "confidenceScore": 0.99, + "isNegated": false, + "links": [ + { + "dataSource": "UMLS", + "id": "C0018801" + }, + { + "dataSource": "AOD", + "id": "0000005308" + }, + { + "dataSource": "BI", + "id": "BI00019" + }, + { + "dataSource": "CCPSS", + "id": "0017571" + }, + { + "dataSource": "CCS", + "id": "7.2.11.2" + }, + { + "dataSource": "CCSR_10", + "id": "CIR019" + }, + { + "dataSource": "CHV", + "id": "0000005877" + }, + { + "dataSource": "COSTAR", + "id": "U000338" + }, + { + "dataSource": "CSP", + "id": "1393-3587" + }, + { + "dataSource": "CST", + "id": "HEART FAIL" + }, + { + "dataSource": "HPO", + "id": "HP:0001635" + }, + { + "dataSource": "ICD10", + "id": "I50.9" + }, + { + "dataSource": "ICD10AM", + "id": "I50.9" + }, + { + "dataSource": "ICD10CM", + "id": "I50.9" + }, + { + "dataSource": "ICD9CM", + "id": "428.9" + }, + { + "dataSource": "ICPC", + "id": "K77" + }, + { + "dataSource": "ICPC2EENG", + "id": "K77" + }, + { + "dataSource": "ICPC2ICD10ENG", + "id": "MTHU027668" + }, + { + "dataSource": "ICPC2P", + "id": "K77011" + }, + { + "dataSource": "LCH", + "id": "U005616" + }, + { + "dataSource": "LCH_NW", + "id": "sh85059745" + }, + { + "dataSource": "LNC", + "id": "LP269421-6" + }, + { + "dataSource": "MDR", + "id": "10007554" + }, + { + "dataSource": "MEDCIN", + "id": "95724" + }, + { + "dataSource": "MEDLINEPLUS", + "id": "199" + }, + { + "dataSource": "MSH", + "id": "D006333" + }, + { + "dataSource": "MTHICD9", + "id": "428.9" + }, + { + "dataSource": "NCI", + "id": "C50577" + }, + { + "dataSource": "NCI_CTCAE", + "id": "E10124" + }, + { + "dataSource": "NCI_FDA", + "id": "2206" + }, + { + "dataSource": "NCI_NICHD", + "id": "C50577" + }, + { + "dataSource": "OMIM", + "id": "MTHU009472" + }, + { + "dataSource": "RCD", + "id": "G58.." + }, + { + "dataSource": "SNM", + "id": "D-7050" + }, + { + "dataSource": "SNMI", + "id": "D3-16000" + }, + { + "dataSource": "SNOMEDCT_US", + "id": "84114007" + }, + { + "dataSource": "WHO", + "id": "0496" + } + ] + } + ], + "relations": [], + "warnings": [] } ], "errors": [], @@ -324,6 +1058,6 @@ "Variables": { "RandomSeed": "1184190609", "TEXT_ANALYTICS_API_KEY": "Sanitized", - "TEXT_ANALYTICS_ENDPOINT": "https://textanalytics-westeurope.ppe.cognitiveservices.azure.com" + "TEXT_ANALYTICS_ENDPOINT": "https://ta-s-westeurope.cognitiveservices.azure.com" } } \ No newline at end of file From 14ac143f957420d42bdefc4a9169a1857903b766 Mon Sep 17 00:00:00 2001 From: Suhas Mehta Date: Mon, 1 Feb 2021 14:54:41 -0800 Subject: [PATCH 08/12] added changelog --- sdk/textanalytics/Azure.AI.TextAnalytics/CHANGELOG.md | 6 ++++++ .../src/AnalyzeHealthcareEntitiesResult.cs | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/CHANGELOG.md b/sdk/textanalytics/Azure.AI.TextAnalytics/CHANGELOG.md index 64616c98b9636..4fc22cd15675d 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/CHANGELOG.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/CHANGELOG.md @@ -2,6 +2,12 @@ ## 5.1.0-beta.4 (Unreleased) +### Breaking changes +- Renamed `RecognizeHealthcareEntitiesResultCollection` to `RecognizeHealthcareEntitiesResultCollection`. +- Renamed `DocumentHealthcareResult` to `AnalyzeHealthcareEntitiesResult`. +- Removed `StartHealthcare` and `StartHealthcareAsync` methods. +- Renamed `StartHealthcareBatch` and `StartHealthcareBatchAsync` to `StartAnalyzeHealthcareEntities` and `StartAnalyzeHealthcareEntitiesAsync` respectively. +- Renamed `HealthcareOptions` to `AnalyzeHealthcareEntitiesOptions`. ## 5.1.0-beta.3 (2020-11-19) ### New Features diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesResult.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesResult.cs index a0576acb3c6e0..4ed1938a77264 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesResult.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeHealthcareEntitiesResult.cs @@ -4,12 +4,11 @@ using System; using System.Collections.Generic; using System.Collections.ObjectModel; -using Azure.AI.TextAnalytics.Models; namespace Azure.AI.TextAnalytics { /// - /// DocumentHealthcareEntities. + /// AnalyzeHealthcareEntitiesResult. /// public partial class AnalyzeHealthcareEntitiesResult : TextAnalyticsResult { From a3eaf0541a86022a9456016651a20ff5050df2f1 Mon Sep 17 00:00:00 2001 From: Suhas Mehta Date: Mon, 1 Feb 2021 15:24:39 -0800 Subject: [PATCH 09/12] updated breaking changes --- sdk/textanalytics/Azure.AI.TextAnalytics/CHANGELOG.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/CHANGELOG.md b/sdk/textanalytics/Azure.AI.TextAnalytics/CHANGELOG.md index 4fc22cd15675d..8056201cbf070 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/CHANGELOG.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/CHANGELOG.md @@ -3,11 +3,17 @@ ## 5.1.0-beta.4 (Unreleased) ### Breaking changes -- Renamed `RecognizeHealthcareEntitiesResultCollection` to `RecognizeHealthcareEntitiesResultCollection`. +- Renamed `RecognizeHealthcareEntitiesResultCollection` to `AnalyzeHealthcareEntitiesResultCollection`. - Renamed `DocumentHealthcareResult` to `AnalyzeHealthcareEntitiesResult`. - Removed `StartHealthcare` and `StartHealthcareAsync` methods. - Renamed `StartHealthcareBatch` and `StartHealthcareBatchAsync` to `StartAnalyzeHealthcareEntities` and `StartAnalyzeHealthcareEntitiesAsync` respectively. +- Renamed `HealthcareOperation` to ``AnalyzeHealthcareEntitiesOperation` - Renamed `HealthcareOptions` to `AnalyzeHealthcareEntitiesOptions`. +- Moved `Cancel` and `CancelAsync` for Healthcare from `TextAnalyticsClient` to `AnalyzeHealthcareEntitiesOperation`. +- Renamed `JobStatus` to `TextAnalyticsOperationStatus`. +- Renamed `HealthcareEntityLink` to `EntityDataSource` with `DataSource` to `EntityDataSource` and `Id` to `Name`. +- Removed `HealthcareRelation` and added `HealthcareRelationType` as an enaum for different types. + ## 5.1.0-beta.3 (2020-11-19) ### New Features From dd348b9ea462876aace7dd5fcac14c61c93f357f Mon Sep 17 00:00:00 2001 From: Suhas Mehta Date: Mon, 1 Feb 2021 15:38:23 -0800 Subject: [PATCH 10/12] update readme --- .../samples/Sample_RecognizeHealthcareEntities.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_RecognizeHealthcareEntities.md b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_RecognizeHealthcareEntities.md index 4e0216732ebe8..a26e0362be63f 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_RecognizeHealthcareEntities.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_RecognizeHealthcareEntities.md @@ -137,8 +137,6 @@ To recognize healthcare entities in multiple documents, call `StartHealthcareBat To see the full example source files, see: -* [Synchronously RecognizeHealthcare ](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_Healthcare.cs) -* [Asynchronously RecognizeHealthcare ](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareAsync.cs) * [Synchronously RecognizeHealthcareBatch](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatch.cs) * [Asynchronously RecognizeHealthcareBatch](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_HealthcareBatchAsync.cs) * [Synchronously RecognizeHealthcare Cancellation](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_Healthcare_Cancellation.cs) From 7bb17919924efd70cc0d981ff81e22710c41dd54 Mon Sep 17 00:00:00 2001 From: Suhas Mehta Date: Mon, 1 Feb 2021 15:44:13 -0800 Subject: [PATCH 11/12] updated change log --- sdk/textanalytics/Azure.AI.TextAnalytics/CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/CHANGELOG.md b/sdk/textanalytics/Azure.AI.TextAnalytics/CHANGELOG.md index 8056201cbf070..31e9ab56c8eff 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/CHANGELOG.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/CHANGELOG.md @@ -7,12 +7,12 @@ - Renamed `DocumentHealthcareResult` to `AnalyzeHealthcareEntitiesResult`. - Removed `StartHealthcare` and `StartHealthcareAsync` methods. - Renamed `StartHealthcareBatch` and `StartHealthcareBatchAsync` to `StartAnalyzeHealthcareEntities` and `StartAnalyzeHealthcareEntitiesAsync` respectively. -- Renamed `HealthcareOperation` to ``AnalyzeHealthcareEntitiesOperation` +- Renamed `HealthcareOperation` to `AnalyzeHealthcareEntitiesOperation`. - Renamed `HealthcareOptions` to `AnalyzeHealthcareEntitiesOptions`. - Moved `Cancel` and `CancelAsync` for Healthcare from `TextAnalyticsClient` to `AnalyzeHealthcareEntitiesOperation`. - Renamed `JobStatus` to `TextAnalyticsOperationStatus`. - Renamed `HealthcareEntityLink` to `EntityDataSource` with `DataSource` to `EntityDataSource` and `Id` to `Name`. -- Removed `HealthcareRelation` and added `HealthcareRelationType` as an enaum for different types. +- Removed `HealthcareRelation` and added `HealthcareRelationType`. ## 5.1.0-beta.3 (2020-11-19) From 31daf0d53db44a6f59dde8ca52d896d1bafa15c4 Mon Sep 17 00:00:00 2001 From: Suhas Mehta Date: Mon, 1 Feb 2021 15:54:53 -0800 Subject: [PATCH 12/12] run scripts --- .../api/Azure.AI.TextAnalytics.netstandard2.0.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/api/Azure.AI.TextAnalytics.netstandard2.0.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/api/Azure.AI.TextAnalytics.netstandard2.0.cs index 6956bda19a534..ccfd4ab92555c 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/api/Azure.AI.TextAnalytics.netstandard2.0.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/api/Azure.AI.TextAnalytics.netstandard2.0.cs @@ -242,7 +242,7 @@ internal HealthcareEntity() { } public System.Collections.Generic.IReadOnlyCollection DataSources { get { throw null; } } public int Length { get { throw null; } } public int Offset { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary RelatedEntities { get { throw null; } } + public System.Collections.Generic.Dictionary RelatedEntities { get { throw null; } } public string SubCategory { get { throw null; } } public string Text { get { throw null; } } }