no metadata on a dicom file

13 views
Skip to first unread message

Simon C

unread,
Aug 28, 2018, 10:44:00 AM8/28/18
to fits-users
Hi, I'm trying to get FITS 1.3.0 to extract metadata from dicom files.  So far, I commented out all tools except exiftool to avoid conflicts, and still I can only see the metadata in the rawOutput under exiftool, not in the metadata tag (see partial output below).  Any suggestion on how to get the output in metadata tag?   Thanks.


<?xml version="1.0" encoding="UTF-8"?>
  <identification status="SINGLE_RESULT">
    <identity format="DICOM" mimetype="application/dicom" toolname="FITS" toolversion="build.version=1.3.0">
      <tool toolname="Exiftool" toolversion="10.00" />
    </identity>
  </identification>
  <fileinfo>
    <filepath toolname="OIS File Information" toolversion="0.2" status="SINGLE_RESULT">/vagrant/temp/CMB06020_R-m1_011.dcm</filepath>
    <filename toolname="OIS File Information" toolversion="0.2" status="SINGLE_RESULT">CMB06020_R-m1_011.dcm</filename>
    <size toolname="OIS File Information" toolversion="0.2" status="SINGLE_RESULT">326188</size>
    <md5checksum toolname="OIS File Information" toolversion="0.2" status="SINGLE_RESULT">4658512bba1c8539739d955991eea4f0</md5checksum>
    <fslastmodified toolname="OIS File Information" toolversion="0.2" status="SINGLE_RESULT">1534959857000</fslastmodified>
  </fileinfo>
  <filestatus />
  <metadata />
  <toolOutput>
    <tool name="Jhove" version="1.20">
      <repInfo xmlns="" uri="/vagrant/temp/CMB06020_R-m1_011.dcm">
        <reportingModule release="1.3" date="2007-04-10">BYTESTREAM</reportingModule>
        <lastModified>2018-08-22T17:44:17+00:00</lastModified>
        <size>326188</size>
        <format>bytestream</format>
        <status>Well-Formed and valid</status>
        <mimeType>application/octet-stream</mimeType>
      </repInfo>
    </tool>
    <tool name="Exiftool" version="10.00">
      <exiftool xmlns="">
        <rawOutput>ExifToolVersion 10.00
FileName CMB06020_R-m1_011.dcm
Directory .
FileSize 319 kB
FileModifyDate 2018:08:22 17:44:17+00:00
FileAccessDate 2018:08:27 20:01:51+00:00
FileInodeChangeDate 2018:08:24 20:29:15+00:00
FilePermissions rw-r--r--
FileType DICOM
FileTypeExtension dcm
MIMEType application/dicom

Thanks
Simon

Simon C

unread,
Aug 29, 2018, 12:18:47 PM8/29/18
to fits-users
For the future reference, I think the problem was that there was no XSLT to transform the exiftool output to FITS output for the dicom attributes.  I've resolved this by adding a XSLT for dicom under:

<fits-dir>/xml/exiftool/exiftool_dicom_to_fits.xslt

and add the mapping in exiftool_xslt_map.xml :

<map format="DICOM" transform="exiftool_dicom_to_fits.xslt"/>
Reply all
Reply to author
Forward
0 new messages