# Importation of additional data into a MRML node from a dicom

**URL:** <https://discourse.slicer.org/t/importation-of-additional-data-into-a-mrml-node-from-a-dicom/8927>\
**Category:** Development\
**Created:** [October 28, 2019, 3:28pm UTC](https://discourse.slicer.org/t/importation-of-additional-data-into-a-mrml-node-from-a-dicom/8927 "2019-10-28T15:28:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Impetus](https://avatars.discourse-cdn.com/v4/letter/i/ecd19e/32.png) [@Impetus](https://discourse.slicer.org/u/Impetus)\
**Post date:** [October 28, 2019, 3:28pm UTC](https://discourse.slicer.org/t/importation-of-additional-data-into-a-mrml-node-from-a-dicom/8927/1 "2019-10-28T15:28:27Z")

</div>

Hello,

I am currently working on a scripted plugin for 3DSlicer that aims to load extra data from DICOM files and store it into a MRML node. I was wondering if the embedded DICOM reader is enough for that purpose or if I need to use an other DICOM reader (for example : pydicom).  
Is anybody already worked on this ?

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [October 28, 2019, 5:24pm UTC](https://discourse.slicer.org/t/importation-of-additional-data-into-a-mrml-node-from-a-dicom/8927/2 "2019-10-28T17:24:22Z")

</div>

Hi -

Pydicom is bundled with Slicer, so you can easily access any of the header data you need that way.

What data are you trying to load? You can look at the DICOMPlugin classes for ideas on how to load and populate MRML nodes (see SlicerRT, and Quantitative Reporting extensions for a lot of examples).

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [October 28, 2019, 5:32pm UTC](https://discourse.slicer.org/t/importation-of-additional-data-into-a-mrml-node-from-a-dicom/8927/3 "2019-10-28T17:32:52Z")

</div>

Links to two DICOM plugins implemented in Python using pydicom:

- Structured report and segmentation: [https://github.com/QIICR/QuantitativeReporting/blob/master/DICOMPlugins/DICOMTID1500Plugin.py](https://github.com/QIICR/QuantitativeReporting/blob/master/DICOMPlugins/DICOMTID1500Plugin.py)
- Various ultrasound images: [https://github.com/SlicerHeart/SlicerHeart/blob/master/DicomUltrasoundPlugin/DicomUltrasoundPlugin.py](https://github.com/SlicerHeart/SlicerHeart/blob/master/DicomUltrasoundPlugin/DicomUltrasoundPlugin.py)
