Skip to content

Commit 05ed75e

Browse files
acrolinx recos
1 parent 7fc92ce commit 05ed75e

File tree

3 files changed

+24
-24
lines changed

3 files changed

+24
-24
lines changed

articles/healthcare-apis/dicom/dicomweb-standard-apis-c-sharp.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The filename, studyUID, seriesUID, and instanceUID of the sample DICOM files are
3535

3636
To use the DICOMweb Standard APIs, you need an instance of the DICOM service deployed. If you haven't already deployed an instance of the DICOM service, see [Deploy DICOM service using the Azure portal](deploy-dicom-services-in-azure.md).
3737

38-
After you've deployed an instance of the DICOM service, retrieve the URL for your app service:
38+
After you deploy an instance of the DICOM service, retrieve the URL for your app service:
3939

4040
1. Sign in to the [Azure portal](https://portal.azure.com).
4141
1. Search **Recent resources** and select your DICOM service instance.
@@ -49,7 +49,7 @@ In your application, install the following NuGet packages:
4949

5050
## Create a DicomWebClient
5151

52-
After you've deployed your DICOM service, you create a DicomWebClient. Run the code snippet to create DicomWebClient, which you use for the rest of this tutorial. Ensure you have both NuGet packages installed. If you haven't already obtained a token, see [Get access token for the DICOM service using Azure CLI](dicom-get-access-token-azure-cli.md).
52+
After you deploy your DICOM service, you create a DicomWebClient. Run the code snippet to create DicomWebClient, which you use for the rest of this tutorial. Ensure you have both NuGet packages installed. If you haven't already obtained a token, see [Get access token for the DICOM service using Azure CLI](dicom-get-access-token-azure-cli.md).
5353

5454
```c#
5555
string webServerUrl ="{Your DicomWeb Server URL}"
@@ -60,7 +60,7 @@ client.HttpClient.DefaultRequestHeaders.Authorization = new System.Net.Http.Head
6060
```
6161
With the DicomWebClient, we can now perform the Store, Retrieve, Search, and Delete operations.
6262

63-
## Store DICOM Instances (STOW)
63+
## Store DICOM instances (STOW)
6464

6565
Using the DicomWebClient that we've created, we can now store DICOM files.
6666

@@ -92,7 +92,7 @@ DicomWebResponse response = await client.StoreAsync(new[] { dicomFile }, "1.2.82
9292

9393
Before moving on to the next part of the tutorial, upload the `green-square.dcm` file using either of the preceding methods.
9494

95-
## Retrieving DICOM instance(s) (WADO)
95+
## Retrieve DICOM instance (WADO)
9696

9797
The code snippets show how to perform each of the retrieve queries using the DicomWebClient created previously.
9898

articles/healthcare-apis/dicom/dicomweb-standard-apis-curl.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,28 +42,28 @@ Once you've deployed an instance of the DICOM service, retrieve the URL for your
4242
3. Copy the **Service URL** of your DICOM service.
4343
4. If you haven't already obtained a token, see [Get access token for the DICOM service using Azure CLI](dicom-get-access-token-azure-cli.md).
4444

45-
For this code, we'll be accessing an Public Preview Azure service. It's important that you don't upload any private health information (PHI).
45+
For this code, we access a Public Preview Azure service. It's important that you don't upload any private health information (PHI).
4646

4747

4848
## Work with the DICOM service
4949

50-
The DICOMweb Standard makes heavy use of `multipart/related` HTTP requests combined with DICOM specific accept headers. Developers familiar with other REST-based APIs often find working with the DICOMweb Standard awkward. However, once you've it up and running, it's easy to use. It just takes a little familiarity to get started.
50+
The DICOMweb Standard makes heavy use of `multipart/related` HTTP requests combined with DICOM specific accept headers. Developers familiar with other REST-based APIs often find working with the DICOMweb Standard awkward. However, after you get it up and running, it's easy to use. It just takes a little familiarity to get started.
5151

5252
The cURL commands each contain at least one, and sometimes two, variables that must be replaced. To simplify running the commands, search and replace the following variables by replacing them with your specific values:
5353

54-
* {Service URL} This is the URL to access your DICOM service that you provisioned in the Azure portal, for example, ```https://<workspacename-dicomservicename>.dicom.azurehealthcareapis.com```. Make sure to specify the version as part of the url when making requests. More information can be found in the [API Versioning for DICOM service Documentation](api-versioning-dicom-service.md).
54+
* {Service URL} The service URL is the URL to access your DICOM service that you provisioned in the Azure portal, for example, ```https://<workspacename-dicomservicename>.dicom.azurehealthcareapis.com```. Make sure to specify the version as part of the url when making requests. More information can be found in the [API Versioning for DICOM service Documentation](api-versioning-dicom-service.md).
5555
* {path-to-dicoms} - The path to the directory that contains the red-triangle.dcm file, such as `C:/dicom-server/docs/dcms`
5656
* Ensure to use forward slashes as separators and end the directory _without_ a trailing forward slash.
5757

5858

59-
## Uploading DICOM Instances (STOW)
59+
## Upload DICOM instances (STOW)
6060

6161
### Store-instances-using-multipart/related
6262

6363
This request intends to demonstrate how to upload DICOM files using multipart/related.
6464

6565
>[!NOTE]
66-
>The DICOM service is more lenient than the DICOM standard. However, the example below demonstrates a POST request that complies tightly to the standard.
66+
>The DICOM service is more lenient than the DICOM standard. However, the example demonstrates a POST request that complies tightly to the standard.
6767
6868
_Details:_
6969

@@ -76,7 +76,7 @@ _Details:_
7676
* Body:
7777
* Content-Type: application/dicom for each file uploaded, separated by a boundary value
7878

79-
Some programming languages and tools behave differently. For instance, some require you to define your own boundary. For those, you may need to use a slightly modified Content-Type header. The following have been used successfully.
79+
Some programming languages and tools behave differently. For instance, some require you to define your own boundary. For those tools, you might need to use a slightly modified Content-Type header. The following have been used successfully.
8080
* Content-Type: multipart/related; type="application/dicom"; boundary=ABCD1234
8181
* Content-Type: multipart/related; boundary=ABCD1234
8282
* Content-Type: multipart/related
@@ -104,7 +104,7 @@ _Details:_
104104
* Body:
105105
* Content-Type: application/dicom for each file uploaded, separated by a boundary value
106106

107-
Some programming languages and tools behave differently. For instance, some require you to define your own boundary. For those, you may need to use a slightly modified Content-Type header. The following have been used successfully.
107+
Some programming languages and tools behave differently. For instance, some require you to define your own boundary. For those languages and tools, you might need to use a slightly modified Content-Type header. The following have been used successfully.
108108

109109
* Content-Type: multipart/related; type="application/dicom"; boundary=ABCD1234
110110
* Content-Type: multipart/related; boundary=ABCD1234
@@ -143,7 +143,7 @@ curl --location --request POST "{Service URL}/v{version}/studies"
143143
--data-binary "@{path-to-dicoms}/green-square.dcm"
144144
```
145145

146-
## Retrieving DICOM (WADO)
146+
## Retrieve DICOM (WADO)
147147

148148
### Retrieve all instances within a study
149149

@@ -163,7 +163,7 @@ curl --request GET "{Service URL}/v{version}/studies/1.2.826.0.1.3680043.8.498.1
163163
--output "suppressWarnings.txt"
164164
```
165165

166-
This cURL command will show the downloaded bytes in the output file (suppressWarnings.txt), but these aren't direct DICOM files, only a text representation of the multipart/related download.
166+
This cURL command shows the downloaded bytes in the output file (suppressWarnings.txt), but they aren't direct DICOM files, only a text representation of the multipart/related download.
167167

168168
### Retrieve metadata of all instances in study
169169

@@ -176,7 +176,7 @@ _Details:_
176176
* Accept: application/dicom+json
177177
* Authorization: Bearer {token value}
178178

179-
This cURL command will show the downloaded bytes in the output file (suppressWarnings.txt), but these aren't direct DICOM files, only a text representation of the multipart/related download.
179+
This cURL command shows the downloaded bytes in the output file (suppressWarnings.txt), but they aren't direct DICOM files, only a text representation of the multipart/related download.
180180

181181
```
182182
curl --request GET "{Service URL}/v{version}/studies/1.2.826.0.1.3680043.8.498.13230779778012324449356534479549187420/metadata"
@@ -195,7 +195,7 @@ _Details:_
195195
* Accept: multipart/related; type="application/dicom"; transfer-syntax=*
196196
* Authorization: Bearer {token value}
197197

198-
This cURL command will show the downloaded bytes in the output file (suppressWarnings.txt), but it's not the DICOM file, only a text representation of the multipart/related download.
198+
This cURL command shows the downloaded bytes in the output file (suppressWarnings.txt), but it's not the DICOM file, only a text representation of the multipart/related download.
199199

200200
```
201201
curl --request GET "{Service URL}/v{version}/studies/1.2.826.0.1.3680043.8.498.13230779778012324449356534479549187420/series/1.2.826.0.1.3680043.8.498.45787841905473114233124723359129632652"
@@ -278,7 +278,7 @@ curl --request GET "{Service URL}/v{version}/studies/1.2.826.0.1.3680043.8.498.1
278278

279279
## Query DICOM (QIDO)
280280

281-
In the following examples, we'll search for items using their unique identifiers. You can also search for other attributes, such as `PatientName`.
281+
In the following examples, we search for items using their unique identifiers. You can also search for other attributes, such as `PatientName`.
282282

283283
### Search for studies
284284

articles/healthcare-apis/dicom/dicomweb-standard-apis-python.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ ms.date: 02/15/2022
1010
ms.author: mmitrik
1111
---
1212

13-
# Using DICOM Standard APIs with Python
13+
# Use DICOMweb Standard APIs with Python
1414

15-
This article shows how to work with the DICOM&reg; service using Python and [sample .dcm DICOM files](https://github.com/microsoft/dicom-server/tree/main/docs/dcms).
15+
This article shows how to work with the DICOMweb service using Python and [sample .dcm DICOM&reg; files](https://github.com/microsoft/dicom-server/tree/main/docs/dcms).
1616

1717
Use these sample files:
1818

@@ -36,7 +36,7 @@ The filename, studyUID, seriesUID, and instanceUID of the sample DICOM files are
3636

3737
To use the DICOMweb Standard APIs, you must have an instance of the DICOM service deployed. If you haven't already deployed the DICOM service, see [Deploy DICOM service using the Azure portal](deploy-dicom-services-in-azure.md).
3838

39-
After you've deployed an instance of the DICOM service, retrieve the URL for your App service:
39+
After you deploy an instance of the DICOM service, retrieve the URL for your App service:
4040

4141
1. Sign in to the [Azure portal](https://portal.azure.com).
4242
1. Search **Recent resources** and select your DICOM service instance.
@@ -49,7 +49,7 @@ For this code, you access a Public Preview Azure service. It's important that yo
4949

5050
The DICOMweb Standard makes heavy use of `multipart/related` HTTP requests combined with DICOM specific accept headers. Developers familiar with other REST-based APIs often find working with the DICOMweb standard awkward. However, after it's up and running, it's easy to use. It just takes a little familiarity to get started.
5151

52-
### Import the appropriate Python libraries
52+
### Import the Python libraries
5353

5454
First, import the necessary Python libraries.
5555

@@ -138,13 +138,13 @@ if (response.status_code != 200):
138138
print('Error! Likely not authenticated!')
139139
```
140140

141-
## Uploading DICOM Instances (STOW)
141+
## Upload DICOM instances (STOW)
142142

143143
The following examples highlight persisting DICOM files.
144144

145145
### Store instances using `multipart/related`
146146

147-
This example demonstrates how to upload a single DICOM file, and it uses a bit of a Python to preload the DICOM file (as bytes) into memory. By passing an array of files to the fields parameter of `encode_multipart_related`, multiple files can be uploaded in a single POST. It's sometimes used to upload several instances inside a complete series or study.
147+
This example demonstrates how to upload a single DICOM file, and it uses a bit of a Python to preload the DICOM file (as bytes) into memory. When an array of files is passed to the fields parameter of `encode_multipart_related`, multiple files can be uploaded in a single POST. It's sometimes used to upload several instances inside a complete series or study.
148148

149149
_Details:_
150150

@@ -185,7 +185,7 @@ response = client.post(url, body, headers=headers, verify=False)
185185

186186
This example demonstrates how to upload multiple DICOM files into the specified study. It uses a bit of a Python to preload the DICOM file (as bytes) into memory.
187187

188-
By passing an array of files to the fields parameter of `encode_multipart_related`, multiple files can be uploaded in a single POST. It's sometimes used to upload a complete series or study.
188+
When an array of files is passed to the fields parameter of `encode_multipart_related`, multiple files can be uploaded in a single POST. It's sometimes used to upload a complete series or study.
189189

190190
_Details:_
191191
* Path: ../studies/{study}
@@ -249,7 +249,7 @@ response = client.post(url, body, headers=headers, verify=False)
249249
response # response should be a 409 Conflict if the file was already uploaded in the above request
250250
```
251251

252-
## Retrieve DICOM Instances (WADO)
252+
## Retrieve DICOM instances (WADO)
253253

254254
The following examples highlight retrieving DICOM instances.
255255

0 commit comments

Comments
 (0)