Empty sequences in saved images

  • Hi,


    I use an Importconverter like

    Code
    ImportConverter1 = save to F:\Exchange\TMS_Original\%V0008,0018.dcm; set 0008,1030 to "%V0020,0010"; set 0010,0030 to "20%i[4,5]%i[2,3]%i[0,1]"; ifnumgreater "%V0010,0030","%V0008,0020"; set 0010,0030 to "19%i[4,5]%i[2,3]%i[0,1]"


    in the idea to preserve unmodified images for the case I have to detect, where a certain problem with the modified images come from.


    Now I noticed, that all sequences (3002,0030 ExposureSequence, 3006,0010 ReferencedFrameOfReferenceSequence, 300A,0010 DoseReferenceSequence, 300A,0070 FractionGroupSequence, 300A,00B0 BeamSequence and some more RT specific sequences) have length 0. Some private sequences of the planning system are preserved.
    I got the same behavior for Conquest 1.4.14 and 1.4.16.
    In Conquest 1.4.16 lua does the same:

    Code
    ImportConverter1 = lua "Data:Write('F:\\Exchange\\TMS_Original\\'..Data.SOPInstanceUID..'.dcm')";


    or

    Code
    ImportConverter1 = lua "writedicom(Data,'F:\\Exchange\\TMS_Original\\'..Data.SOPInstanceUID..'.dcm')";


    To have only a look at the original data this lua syntax dumps all sequences:

    Code
    ImportConverter1 = lua "Data:Dump('F:\\Exchange\\TMS_Original\\'..Data.SOPInstanceUID..'.txt')";


    Is this a bug or a feature?


    Gerald

  • Hi,


    you're right, the received data is correctly stored at mag0 and looks like

    Code
    ...(300a,0006) DA [20090129] # 8 RTPlanDate(300a,0007) TM [152448.11 ] # 10 RTPlanTime(300a,000c) CS [TREATMENT_DEVICE] # 16 RTPlanGeometry(300a,0010) SQ (empty) # 0 DoseReferenceSequence (300a,0000) UL 116 # 4 RTPlanGroupLength (300a,0012) IS [1 ] # 2 DoseReferenceNumber (300a,0014) CS [COORDINATES ] # 12 DoseReferenceStructureType (300a,0016) LO [Evaluation normalization point dose ] # 36 DoseReferenceDescription (300a,0018) DS [-89.98\40.83\-20.00 ] # 20 DoseReferencePointCoordinates (300a,0020) CS [TARGET] # 6 DoseReferenceType(300a,0070) SQ (empty) # 0 FractionGroupSequence (300a,0000) UL 38 # 4 RTPlanGroupLength (300a,0071) IS [1 ] # 2 FractionGroupNumber (300a,0078) IS (empty) # 0 NumberOfFractionsPlanned (300a,0080) IS [2 ] # 2 NumberOfBeams (300a,00a0) IS [0 ] # 2 NumberOfBrachyApplicationSetups (300c,0000) UL 236 # 4 RTRelationshipGroupLength (300c,0004) SQ (empty) # 0 ReferencedBeamSequence (300a,0000) UL 56 # 4 RTPlanGroupLength (300a,0082) DS [-89.98\40.83\-20.00 ] # 20 BeamDoseSpecificationPoint...


    but the by importconverters "save to" command saved "original" data looks so:

    Code
    ...
    (300a,0006) DA [20090129] # 8 RTPlanDate
    (300a,0007) TM [152448.11 ] # 10 RTPlanTime
    (300a,000c) CS [TREATMENT_DEVICE] # 16 RTPlanGeometry
    (300a,0010) SQ (empty) # 0 DoseReferenceSequence
    (300a,0070) SQ (empty) # 0 FractionGroupSequence
    (300a,00b0) SQ (empty) # 0 BeamSequence
    (300a,0180) SQ (empty) # 0 PatientSetupSequence
    ...


    This seems like lossy RTPlan compression. 8)


    Gerald

  • Hi,


    Saving dicom data is destructive so a copy is made before it is done, and .... the copy routine I used does NOT copy sequences....


    So it is a big bug. I added it to the buglist. I will try to fix it asap.


    Marcel

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!