Skip to content

Commit 42ad564

Browse files
alexathomasesAlexa Thomases
andauthored
Health Data AI Service GA release (Azure#46998)
* Regenerated with customization-options typespec * Fixes + pagedDocumentDetails * Revert pagedDocumentDetails * nextLink in DocumentDetails * DocumentDetail * Regenerated with no continuationToken * OperationType * CustomizationOptions and suppression * Change Config to Options * Regenerated after marking ListJobs and ListJobDocuments as internal * Customizations to remove continuationToken * Update tests and samples for new API version * Samples * Updating tests for new API version * Enable local testing * Add sanitizers * Update tests and sanitizers * Rename "body" to "content" * Tests working in all modes * Update commit in tsp-location.yaml * Updated serialization with dotnet build codegen * Version 1.0.0 * GA installation instructions * Use Deidentification prefix naming convention * Update tsp-location.yaml commit * Updates tests and samples with new prefix * Ran dotnet build /t:GenerateCode * Deidentification prefix for CustomizationOptions * Update tsp-location.yaml * Improve samples * Update commit in tsp-location * Update commit again * Update README sample * Regenerated with customization-options typespec * Fixes + pagedDocumentDetails * Revert pagedDocumentDetails * nextLink in DocumentDetails * DocumentDetail * Regenerated with no continuationToken * OperationType * CustomizationOptions and suppression * Change Config to Options * Regenerated after marking ListJobs and ListJobDocuments as internal * Customizations to remove continuationToken * Update tests and samples for new API version * Samples * Updating tests for new API version * Enable local testing * Add sanitizers * Update tests and sanitizers * Rename "body" to "content" * Tests working in all modes * Update commit in tsp-location.yaml * Updated serialization with dotnet build codegen * Version 1.0.0 * GA installation instructions * Use Deidentification prefix naming convention * Update tsp-location.yaml commit * Updates tests and samples with new prefix * Ran dotnet build /t:GenerateCode * Deidentification prefix for CustomizationOptions * Update tsp-location.yaml * Improve samples * Update commit in tsp-location * Update commit again * Update README sample * Export API * Switch back to ResourceList * Update commit hash * New tests with overwrite * Use public setter for overwrite * Regenerated after removing PartialFailed * Rm DeidentificationJobStatus from tests * Regenerated with merged typespec * Update changelog.md * Updating generated code * Update changelog --------- Co-authored-by: Alexa Thomases <[email protected]>
1 parent a4572df commit 42ad564

File tree

53 files changed

+1613
-1311
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1613
-1311
lines changed

sdk/healthdataaiservices/Azure.Health.Deidentification/CHANGELOG.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
# Release History
22

3-
## 1.0.0-beta.2 (Unreleased)
3+
## 1.0.0 (2025-01-14)
44

55
### Features Added
66

7-
### Breaking Changes
7+
- Introduced `DeidentificationCustomizationOptions` and `DeidentificationJobCustomizationOptions` models
8+
- Created `SurrogateLocale` field in these models
9+
- Moved `RedactionFormat` field into these models
10+
- Introduced `Overwrite` flag in `TargetStorageLocation` model
811

9-
### Bugs Fixed
12+
### Breaking Changes
1013

11-
### Other Changes
14+
- Changed `outputPrefix` behavior from including `jobName` to prefix replacement method
15+
- Changed `Path` field to `Location` in `SourceStorageLocation` and `TargetStorageLocation`
16+
- Deprecated `DocumentDataType`
17+
- Deprecated `Path` and `Location` from `TaggerResult` model
1218

1319
## 1.0.0-beta.1 (2024-08-15)
1420

sdk/healthdataaiservices/Azure.Health.Deidentification/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Azure.Health.Deidentification is a managed service that enables users to tag, re
1515
Install the client library for .NET with [NuGet](https://www.nuget.org/ ):
1616

1717
```dotnetcli
18-
dotnet add package Azure.Health.Deidentification --prerelease
18+
dotnet add package Azure.Health.Deidentification
1919
```
2020

2121
### Prerequisites
@@ -40,9 +40,9 @@ Basic code snippet to create your Deidentification Client and Deidentify a strin
4040
new DeidentificationClientOptions()
4141
);
4242

43-
DeidentificationContent content = new("Hello, John!", OperationType.Surrogate, DocumentDataType.Plaintext);
43+
DeidentificationContent content = new("Hello, John!");
4444

45-
Response<DeidentificationResult> result = client.Deidentify(content);
45+
Response<DeidentificationResult> result = client.DeidentifyText(content);
4646
string outputString = result.Value.OutputText;
4747
Console.WriteLine(outputString); // Hello, Tom!
4848
```

sdk/healthdataaiservices/Azure.Health.Deidentification/api/Azure.Health.Deidentification.net8.0.cs

Lines changed: 112 additions & 130 deletions
Large diffs are not rendered by default.

sdk/healthdataaiservices/Azure.Health.Deidentification/api/Azure.Health.Deidentification.netstandard2.0.cs

Lines changed: 112 additions & 130 deletions
Large diffs are not rendered by default.

sdk/healthdataaiservices/Azure.Health.Deidentification/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "net",
44
"TagPrefix": "net/healthdataaiservices/Azure.Health.Deidentification",
5-
"Tag": "net/healthdataaiservices/Azure.Health.Deidentification_d8c55b7fa6"
5+
"Tag": "net/healthdataaiservices/Azure.Health.Deidentification_dd33e2c279"
66
}

sdk/healthdataaiservices/Azure.Health.Deidentification/samples/Sample1_HelloWorld.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ DeidentificationClient client = new(
1717
## Build Request and Call Function
1818

1919
```C# Snippet:AzHealthDeidSample1_CreateRequest
20-
DeidentificationContent content = new("Hello, John!", OperationType.Surrogate, DocumentDataType.Plaintext, null, null);
20+
DeidentificationContent content = new("Hello, John!");
2121

22-
Response<DeidentificationResult> result = client.Deidentify(content);
22+
Response<DeidentificationResult> result = client.DeidentifyText(content);
2323
string outputString = result.Value.OutputText;
2424
Console.WriteLine(outputString); // Hello, Tom!
2525
```

sdk/healthdataaiservices/Azure.Health.Deidentification/samples/Sample1_HelloWorldAsync.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ DeidentificationClient client = new(
1717
## Build Request and Call Function
1818

1919
```C# Snippet:AzHealthDeidSample1Async_CreateRequest
20-
DeidentificationContent content = new("Hello, John!", OperationType.Surrogate, DocumentDataType.Plaintext, null, null);
20+
DeidentificationContent content = new("Hello, John!");
2121

22-
Response<DeidentificationResult> result = await client.DeidentifyAsync(content);
22+
Response<DeidentificationResult> result = await client.DeidentifyTextAsync(content);
2323
string outputString = result.Value.OutputText;
2424
Console.WriteLine(outputString); // Hello, Tom!
2525
```

sdk/healthdataaiservices/Azure.Health.Deidentification/samples/Sample2_CreateJob.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ This sample demonstrates how to create a job which will deidentify all files wit
88
DeidentificationJob job = new()
99
{
1010
SourceLocation = new SourceStorageLocation(new Uri(storageAccountUrl), "folder1/"),
11-
TargetLocation = new TargetStorageLocation(new Uri(storageAccountUrl), "output_path"),
12-
DataType = DocumentDataType.Plaintext,
13-
Operation = OperationType.Surrogate
11+
TargetLocation = new TargetStorageLocation(new Uri(storageAccountUrl), "output_folder1/"),
12+
Operation = DeidentificationOperationType.Redact,
1413
};
1514

16-
job = client.CreateJob(WaitUntil.Started, "my-job-1", job).Value;
15+
job = client.DeidentifyDocuments(WaitUntil.Started, "my-job-1", job).Value;
1716
Console.WriteLine($"Job status: {job.Status}"); // Job status: NotStarted
1817
```

sdk/healthdataaiservices/Azure.Health.Deidentification/samples/Sample2_CreateJobAsync.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ This sample demonstrates how to create a job which will deidentify all files wit
99
DeidentificationJob job = new()
1010
{
1111
SourceLocation = new SourceStorageLocation(new Uri(storageAccountUrl), "folder1/"),
12-
TargetLocation = new TargetStorageLocation(new Uri(storageAccountUrl), "output_path"),
13-
DataType = DocumentDataType.Plaintext,
14-
Operation = OperationType.Surrogate
12+
TargetLocation = new TargetStorageLocation(new Uri(storageAccountUrl), "output_folder1/"),
13+
Operation = DeidentificationOperationType.Redact,
1514
};
1615

17-
job = (await client.CreateJobAsync(WaitUntil.Completed, "my-job-1", job)).Value;
16+
job = (await client.DeidentifyDocumentsAsync(WaitUntil.Completed, "my-job-1", job)).Value;
1817
Console.WriteLine($"Job Status: {job.Status}"); // Job Status: Completed
1918
```

sdk/healthdataaiservices/Azure.Health.Deidentification/samples/Sample4_ListCompletedFiles.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ This sample demonstrates how to list files that were completed by a job.
66
## List Completed Files and iterate over in a for loop
77

88
```C# Snippet:AzHealthDeidSample4_ListCompletedFiles
9-
Pageable<DocumentDetails> files = client.GetJobDocuments("job-name-1");
9+
Pageable<DeidentificationDocumentDetails> files = client.GetJobDocuments("job-name-1");
1010

11-
foreach (DocumentDetails file in files)
11+
foreach (DeidentificationDocumentDetails file in files)
1212
{
13-
Console.WriteLine($"File Name: {file.Input.Path}");
13+
Console.WriteLine($"File Name: {file.Input.Location}");
1414
Console.WriteLine($"File Status: {file.Status}");
15-
Console.WriteLine($"File Output Path: {file.Output.Path}");
15+
Console.WriteLine($"File Output Path: {file.Output.Location}");
1616
}
1717
```

0 commit comments

Comments
 (0)