Support for RDSR format from Ziehm Vision RFD 3D C-Arm

Issue #499 resolved
Tim de Wit
created an issue

Modality supports RDSR, but on import I get the following error:

Traceback (most recent call last):
  File "/usr/local/bin/openrem_rdsr.py", line 23, in <module>
    rdsr(filename)
  File "/usr/local/lib/python2.7/dist-packages/celery/local.py", line 191, in __call__
    return self._get_current_object()(*a, **kw)
  File "/usr/local/lib/python2.7/dist-packages/celery/app/task.py", line 379, in __call__
    return self.run(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/openrem/remapp/extractors/rdsr.py", line 996, in rdsr
    _rsdr2db(dataset)
  File "/usr/local/lib/python2.7/dist-packages/openrem/remapp/extractors/rdsr.py", line 946, in _rsdr2db
    _generalstudymoduleattributes(dataset, g, ch)
  File "/usr/local/lib/python2.7/dist-packages/openrem/remapp/extractors/rdsr.py", line 907, in _generalstudymoduleattributes
    if dataset.ContentTemplateSequence[0].TemplateIdentifier == '10001':
  File "/usr/local/lib/python2.7/dist-packages/dicom/dataset.py", line 256, in __getattr__
    "'{0:s}'.".format(name))
AttributeError: Dataset does not have attribute 'ContentTemplateSequence'.

Modality details: https://www.ziehm.com/us/products/ziehm-vision-rfd-3d/

Comments (9)

  1. Luuk

    Tim,

    The DICOM object doesn't contain any dose information. Was the procedure aborted? A dump with dsrdump (offis) only reveals the following information in the (invalid) object:

    dsrdump -Ec -Ee Ziehm_vision_rfd_3d_c-arm_RDSR.dcm
    W: PersonName (0040,a123) empty in content item (type 1)
    W: Reading invalid/incomplete content item PNAME "1.5"
    X-Ray Radiation Dose SR Document
    
    Patient             : XXXTEST^K^^ (M, 20100101, #nnnnnn)
    Referring Physician : nnnnnnn^xx^^
    Study               : DL POLS LI (#nnnnnnnn)
    Manufacturer        : Ziehm Imaging (Ziehm Vision RFD, #xxxxx)
    Completion Flag     : PARTIAL
    Verification Flag   : UNVERIFIED
    Content Date/Time   : yyyymmdd hhmmss
    
    <CONTAINER:(,,"X-Ray Radiation Dose Report")=SEPARATE>
      <has concept mod CODE:(,,"Procedure reported")=(113704,DCM,"Projection X-Ray")>
        <has concept mod CODE:(,,"Has Intent")=(R-408C3,SRT,"Diagnostic Intent")>
      <contains TEXT:(,,"Comment")="Dose Protocol">
      <contains CODE:(,,"Source of Dose Information")=(113858,DCM,"MPPS Content")>
      <has obs context CODE:(,,"Observer Type")=(121007,DCM,"Person")>
      <has obs context PNAME:(,,"Person Observer Name")="">
    

    A dcmdump (tag level information) confirms that it only contains the above information. I think the code should be changed to recover from the error, but an import will be impossible.

  2. Log in to comment