Secondary capture CT data can cause storescp to fail

Issue #308 resolved
Ed McDonagh
created an issue

Philips Bigbore can send 4DCT wave files that don't have manufacturer in the header, so fails at this point: https://bitbucket.org/openrem/openrem/src/99a960c42f98d4034e911f30035180b0b955d38a/openrem/remapp/netdicom/storescp.py?at=develop&fileviewer=file-view-default#storescp.py-126

As success is never returned, the object gets repeatedly sent.

Comments (4)

  1. Ed McDonagh reporter

    Something like:

        elif (DS.SOPClassUID == '1.2.840.10008.5.1.4.1.1.7'):
            try: 
                manufacturer = DS.Manufacturer
                series_desc = DS.SeriesDescription
            except:
                print "Secondary capture, but either manufaturer or series description was not in the header"
                if RM_DCM_NOMATCH:
                    os.remove(filename)
                return SOPClass.Success
            if manufacturer == 'Philips' and series_desc == 'Dose Info':
                print "Philips CT Dose Info image"
                ct_philips.delay(filename)
    
  2. Log in to comment