# Add a DICOM media set This guide will walk through how to import DICOM (`.dcm`) files to Foundry as a [media set](../../data-integration/media-sets/index.md). ![Diagram that shows the steps needed to use DICOM files in Foundry.](../../../assets/26646d918ace8b571672bddcf80f5583df79f53a6dc55b2c685733fdab7862b3.webp) ## Part 1: Import DICOM files First, you will need to create a new media set and add the DICOM files to the media set. 1. Navigate to the folder in which the media set will be created. Select **New > Media set**.

![Add new media set.](../../../assets/63c826e117038f5c93630864979c89153bc589f1aa0c36e3cb11fe1c9f9af860.webp)

2. Enter a name for your media set. Select **DICOM** as the media type and select **Batch** as the latency. Select **Create media set** to create the DICOM media set.

![Create a DICOM media set.](../../../assets/084d90bd2281e0677a36a175890593111ad1b14d3d865403702380094ff1ae87.webp)

3. Next, add one or more `.dcm` files to the media set.

![Add files to media set.](../../../assets/98160bcab2f90ee4574c83be04b79d417af826aad2eefd52731e66f48cd27671.webp)

The **DICOM** media set type includes metadata such as `Patient ID` and `Study ID`. You can select a DICOM file and drag left and right and up and down to change the contrast and exposure. ## Part 2: Create object type Next, you will need to create a new pipeline to transform the media set to an object type that you can use in Foundry. [Learn more about creating pipelines for media sets](../../building-pipelines/create-batch-pipeline-pb-media-set/index.md). 1. Create a pipeline by selecting **Create new pipeline** from the **All actions** dropdown.

![The Create new pipeline option is highlighted.](../../../assets/3f198dfeae054eed7504500d15cd5e236982c924c216675afad99f8a247dc83b.webp)

2. The media set will automatically be added to the pipeline. Select **Transform** to convert the media set to a table.

![The Transform option is highlighted.](../../../assets/5dab8bc2562be453bc3f94aa9dc0ad533b24b90e3ec1fb06096dfb7c99ae1d22.webp)

3. Select **Convert media set to table rows**, then select **Apply**.

![Media set transform to a table.](../../../assets/d743c8823dbff456b3921661b20052108500d16830c001354a2bc308c8a4017f.webp)

In the resulting table, each row represents a DICOM file in the media set.

![Table with four rows that correspond to four DICOM files in the media set.](../../../assets/aba7490795eaf2a91dfae96e2110e28b264d9231d7b49bfd1b336263f79ec1f3.webp)

4. Create an object type by selecting **Add pipeline output** from the **Pipeline outputs** menu in the right panel.

![The Add pipeline output option is highlighted.](../../../assets/cde531f7f3892dbb11562ce28d18b0413cb6d21c918901f3d022c828566161f4.webp)

Select the **Object type** option.

Add object type pipeline output.

5. Enter a name for the object type, for example `DICOM media set`. You can set the `Media Item Rid` property as the primary key by selecting the three dots to the right of the property and then selecting **Set as primary key**.

DICOM media set file mapping.

When you are finished, you can [save and deploy the pipeline](../../pipeline-builder/outputs-deliver-pipeline/index.md). After the pipeline is deployed, you can view the object type in Object Explorer or Ontology Manager. ## (Optional) Part 3: Create Workshop module You can open Workshop by selecting **Create Workshop module**. ![Create Workshop module.](../../../assets/affb30cc2051edb3dee3069948ea8452ac94cbfd008c74caea6be6c95ace821e.webp) Workshop will automatically generate helpful widgets like an object table and preview. ![Workshop module with an object table for DICOM files.](../../../assets/793ae94db79444c1f7acc65de4f98ce87f3dfc57f6236b35fa2a7a5b9b3dffb5.webp) [Learn more about creating widgets in Workshop](../../workshop/concepts-widgets/index.md).