RTimage and RTplan

23 views
Skip to first unread message

Pedro Argolo Piedade

unread,
Mar 15, 2018, 3:42:26 PM3/15/18
to DI...@medicalimaging.org, cerr-...@googlegroups.com, Yang, Deshan, Issam El Naqa (ielnaqa@medphys.mcgill.ca), Carlos Queiroz, Lucas Radicchi, Bernardo Batista, Leandro Baptista, Vinicius Goncalves, Samuel Avelino, nano...@googlegroups.com, Nano.
Hi, I am Pedro a Medical Physicist from Brazil.

I am having difficult in find a away to linkage the RTimage of a specific Beam Number of a RTplan file.

I read on the RTimage the Referenced Beam Number Dicom TAG, and correlates with the RTplan Beam Number. It was working fine, but if I read a sequence of files listed on a directory, example 2 RTplans and 12 RTimages, where each RTplans has it N-numbers of RTimage. I collected below all UID informatoin.
The array order is how my software upload the images to the server. So I am trying to order the RTimages with the correct file and beam of each RTplan.
I just need some tip about how to linkage this in a unique way.

$rtimageUID[1]=$SOPClassUIDRTimage;

 [1] => Array (

[1] => 1.2.840.10008.5.1.4.1.1.481.1

[2] => 1.2.840.10008.5.1.4.1.1.481.1

[3] => 1.2.840.10008.5.1.4.1.1.481.1

[4] => 1.2.840.10008.5.1.4.1.1.481.1

[5] => 1.2.840.10008.5.1.4.1.1.481.1

[6] => 1.2.840.10008.5.1.4.1.1.481.1

[7] => 1.2.840.10008.5.1.4.1.1.481.1

[8] => 1.2.840.10008.5.1.4.1.1.481.1

[9] => 1.2.840.10008.5.1.4.1.1.481.1

[10] => 1.2.840.10008.5.1.4.1.1.481.1

[11] => 1.2.840.10008.5.1.4.1.1.481.1

[12] => 1.2.840.10008.5.1.4.1.1.481.1

[13] => 1.2.840.10008.5.1.4.1.1.481.1

[14] => 1.2.840.10008.5.1.4.1.1.481.1

)

$rtimageUID[2]=$SOPInstanceUIDRTimage;

[2] => Array (

[1] => 1.2.246.352.71.3.187245169.1531747.20180315090921

[2] => 1.2.246.352.71.3.187245169.1531740.20180315090258

[3] => 1.2.246.352.71.3.187245169.1531741.20180315090258

[4] => 1.2.246.352.71.3.187245169.1531748.20180315090921

[5] => 1.2.246.352.71.3.187245169.1531742.20180315090258

[6] => 1.2.246.352.71.3.187245169.1531749.20180315090921

[7] => 1.2.246.352.71.3.187245169.1531743.20180315090258

[8] => 1.2.246.352.71.3.187245169.1531750.20180315090921

[9] => 1.2.246.352.71.3.187245169.1531744.20180315090258

[10] => 1.2.246.352.71.3.187245169.1531751.20180315090921

[11] => 1.2.246.352.71.3.187245169.1531745.20180315090258

[12] => 1.2.246.352.71.3.187245169.1531752.20180315090922

[13] => 1.2.246.352.71.3.187245169.1531746.20180315090258

[14] => 1.2.246.352.71.3.187245169.1531753.20180315090922

)

$rtimageUID[3]=$StudyInstanceUIDRTimage;

[3] => Array (

[1] => 1.2.276.0.20.1.2.4.185572756543.12560.1520952591.662372

[2] => 1.2.276.0.20.1.2.4.185572756543.12560.1520952591.662372

[3] => 1.2.276.0.20.1.2.4.185572756543.12560.1520952591.662372

[4] => 1.2.276.0.20.1.2.4.185572756543.12560.1520952591.662372

[5] => 1.2.276.0.20.1.2.4.185572756543.12560.1520952591.662372

[6] => 1.2.276.0.20.1.2.4.185572756543.12560.1520952591.662372

[7] => 1.2.276.0.20.1.2.4.185572756543.12560.1520952591.662372

[8] => 1.2.276.0.20.1.2.4.185572756543.12560.1520952591.662372

[9] => 1.2.276.0.20.1.2.4.185572756543.12560.1520952591.662372

[10] => 1.2.276.0.20.1.2.4.185572756543.12560.1520952591.662372

[11] => 1.2.276.0.20.1.2.4.185572756543.12560.1520952591.662372

[12] => 1.2.276.0.20.1.2.4.185572756543.12560.1520952591.662372

[13] => 1.2.276.0.20.1.2.4.185572756543.12560.1520952591.662372

[14] => 1.2.276.0.20.1.2.4.185572756543.12560.1520952591.662372

)

$rtimageUID[4]=$SeriesInstanceUIDRTimage;

[4] => Array (

[1] => 1.2.246.352.71.2.187245169.92195.20180315090909

[2] => 1.2.246.352.71.2.187245169.92194.20180315090245

[3] => 1.2.246.352.71.2.187245169.92194.20180315090245

[4] => 1.2.246.352.71.2.187245169.92195.20180315090909

[5] => 1.2.246.352.71.2.187245169.92194.20180315090245

[6] => 1.2.246.352.71.2.187245169.92195.20180315090909

[7] => 1.2.246.352.71.2.187245169.92194.20180315090245

[8] => 1.2.246.352.71.2.187245169.92195.20180315090909

[9] => 1.2.246.352.71.2.187245169.92194.20180315090245

[10] => 1.2.246.352.71.2.187245169.92195.20180315090909

[11] => 1.2.246.352.71.2.187245169.92194.20180315090245

[12] => 1.2.246.352.71.2.187245169.92195.20180315090909

[13] => 1.2.246.352.71.2.187245169.92194.20180315090245

[14] => 1.2.246.352.71.2.187245169.92195.20180315090909

)

$rtimageUID[5]=$StudyIDRTimage;

[5] => Array (

[1] => 09600306874

[2] => 09600306874

[3] => 09600306874

[4] => 09600306874

[5] => 09600306874

[6] => 09600306874

[7] => 09600306874

[8] => 09600306874

[9] => 09600306874

[10] => 09600306874

[11] => 09600306874

[12] => 09600306874

[13] => 09600306874

[14] => 09600306874

)

$rtimageUID[6]=$SeriesNumberRTimage;

[6] => Array (

[1] => 7

[2] => 6

[3] => 6

[4] => 7

[5] => 6

[6] => 7

[7] => 6

[8] => 7

[9] => 6

[10] => 7

[11] => 6

[12] => 7

[13] => 6

[14] => 7

)

$rtimageUID[7]=$InstanceNumberRTimage;

[7] => Array (

[1] => 1

[2] => 1

[3] => 2

[4] => 2

[5] => 3

[6] => 3

[7] => 4

[8] => 4

[9] => 5

[10] => 5

[11] => 6

[12] => 6

[13] => 7

[14] => 7

)

$rtimageUID[8]=$FrameOfReferenceUIDRTimage;

[8] => Array (

[1] => 1.2.276.0.20.1.30.4.185572756543.12560.1520952591.665372

[2] => 1.2.276.0.20.1.30.4.185572756543.12560.1520952591.665372

[3] => 1.2.276.0.20.1.30.4.185572756543.12560.1520952591.665372

[4] => 1.2.276.0.20.1.30.4.185572756543.12560.1520952591.665372

[5] => 1.2.276.0.20.1.30.4.185572756543.12560.1520952591.665372

[6] => 1.2.276.0.20.1.30.4.185572756543.12560.1520952591.665372

[7] => 1.2.276.0.20.1.30.4.185572756543.12560.1520952591.665372

[8] => 1.2.276.0.20.1.30.4.185572756543.12560.1520952591.665372

[9] => 1.2.276.0.20.1.30.4.185572756543.12560.1520952591.665372

[10] => 1.2.276.0.20.1.30.4.185572756543.12560.1520952591.665372

[11] => 1.2.276.0.20.1.30.4.185572756543.12560.1520952591.665372

[12] => 1.2.276.0.20.1.30.4.185572756543.12560.1520952591.665372

[13] => 1.2.276.0.20.1.30.4.185572756543.12560.1520952591.665372

[14] => 1.2.276.0.20.1.30.4.185572756543.12560.1520952591.665372

)

$rtimageUID[9]=$ReferencedSOPClassUIDRTimage;

[9] => Array (

[1] => 1.2.840.10008.5.1.4.1.1.481.5

[2] => 1.2.840.10008.5.1.4.1.1.481.5

[3] => 1.2.840.10008.5.1.4.1.1.481.5

[4] => 1.2.840.10008.5.1.4.1.1.481.5

[5] => 1.2.840.10008.5.1.4.1.1.481.5

[6] => 1.2.840.10008.5.1.4.1.1.481.5

[7] => 1.2.840.10008.5.1.4.1.1.481.5

[8] => 1.2.840.10008.5.1.4.1.1.481.5

[9] => 1.2.840.10008.5.1.4.1.1.481.5

[10] => 1.2.840.10008.5.1.4.1.1.481.5

[11] => 1.2.840.10008.5.1.4.1.1.481.5

[12] => 1.2.840.10008.5.1.4.1.1.481.5

[13] => 1.2.840.10008.5.1.4.1.1.481.5

[14] => 1.2.840.10008.5.1.4.1.1.481.5

)

$rtimageUID[10]=$ReferencedSOPInstanceUIDRTimage;

[10] => Array (

[1] => 1.2.246.352.71.5.187245169.49639.20180314141505

[2] => 1.2.246.352.71.5.187245169.49591.20180313123205

[3] => 1.2.246.352.71.5.187245169.49591.20180313123205

[4] => 1.2.246.352.71.5.187245169.49639.20180314141505

[5] => 1.2.246.352.71.5.187245169.49591.20180313123205

[6] => 1.2.246.352.71.5.187245169.49639.20180314141505

[7] => 1.2.246.352.71.5.187245169.49591.20180313123205

[8] => 1.2.246.352.71.5.187245169.49639.20180314141505

[9] => 1.2.246.352.71.5.187245169.49591.20180313123205

[10] => 1.2.246.352.71.5.187245169.49639.20180314141505

[11] => 1.2.246.352.71.5.187245169.49591.20180313123205

[12] => 1.2.246.352.71.5.187245169.49639.20180314141505

[13] => 1.2.246.352.71.5.187245169.49591.20180313123205

[14] => 1.2.246.352.71.5.187245169.49639.20180314141505

)

 

$rtplanUID[1]=$SOPClassUIDRTplan;

[1] => Array (

[0] => 1.2.840.10008.5.1.4.1.1.481.5

[1] => 1.2.840.10008.5.1.4.1.1.481.5

)

$rtplanUID[2]=$SOPInstanceUIDRTplan;

[2] => Array (

[0] => 1.2.246.352.71.5.187245169.49591.20180313123205

[1] => 1.2.246.352.71.5.187245169.49639.20180314141505

)

$rtplanUID[3]=$StudyInstanceUIDRTplan;

[3] => Array (

[0] => 1.2.276.0.20.1.2.4.185572756543.12560.1520952591.662372

[1] => 1.2.276.0.20.1.2.4.185572756543.12560.1520952591.662372

)

$rtplanUID[4]=$SeriesInstanceUIDRTplan;

[4] => Array (

[0] => 1.2.246.352.71.2.187245169.92058.20180313122747

[1] => 1.2.246.352.71.2.187245169.92058.20180313122747

)

$rtplanUID[5]=$StudyIDRTplan;

[5] => Array (

[0] => 09600306874

[1] => 09600306874

)

$rtplanUID[6]=$SeriesNumberRTplan;

[6] => Array (

[0] => 3

[1] => 3

)

$rtplanUID[7]=$InstanceNumberRTplan;

[7] => Array (

[0] => N/A

[1] => N/A

)

$rtplanUID[8]=$FrameOfReferenceUIDRTplan;

[8] => Array (

[0] => 1.2.276.0.20.1.30.4.185572756543.12560.1520952591.665372

[1] => 1.2.276.0.20.1.30.4.185572756543.12560.1520952591.665372

)

$rtplanUID[9]=$ReferencedSOPClassUIDRTplan;

[9] => Array (

[1] => 1.2.840.10008.5.1.4.1.1.481.1

[2] => 1.2.840.10008.5.1.4.1.1.481.1

[3] => 1.2.840.10008.5.1.4.1.1.481.1

[4] => 1.2.840.10008.5.1.4.1.1.481.1

[5] => 1.2.840.10008.5.1.4.1.1.481.1

[6] => 1.2.840.10008.5.1.4.1.1.481.1

[7] => 1.2.840.10008.5.1.4.1.1.481.1

[8] => 1.2.840.10008.5.1.4.1.1.481.1

[9] => 1.2.840.10008.5.1.4.1.1.481.1

[10] => 1.2.840.10008.5.1.4.1.1.481.1

[11] => 1.2.840.10008.5.1.4.1.1.481.1

[12] => 1.2.840.10008.5.1.4.1.1.481.1

[13] => 1.2.840.10008.5.1.4.1.1.481.1

[14] => 1.2.840.10008.5.1.4.1.1.481.1

)

$rtplanUID[10]=$ReferencedSOPInstanceUIDRTplan;

[10] => Array (

[1] => 1.2.246.352.71.3.187245169.1531740.20180315090258

[2] => 1.2.246.352.71.3.187245169.1531741.20180315090258

[3] => 1.2.246.352.71.3.187245169.1531742.20180315090258

[4] => 1.2.246.352.71.3.187245169.1531743.20180315090258

[5] => 1.2.246.352.71.3.187245169.1531744.20180315090258

[6] => 1.2.246.352.71.3.187245169.1531745.20180315090258

[7] => 1.2.246.352.71.3.187245169.1531746.20180315090258

[8] => 1.2.246.352.71.3.187245169.1531747.20180315090921

[9] => 1.2.246.352.71.3.187245169.1531748.20180315090921

[10] => 1.2.246.352.71.3.187245169.1531749.20180315090921

[11] => 1.2.246.352.71.3.187245169.1531750.20180315090921

[12] => 1.2.246.352.71.3.187245169.1531751.20180315090921

[13] => 1.2.246.352.71.3.187245169.1531752.20180315090922

[14] => 1.2.246.352.71.3.187245169.1531753.20180315090922

 



My best Regards

--
Pedro Argôlo Piedade
Físico Médico - Radioterapia São Sebastião
www.radioterapiass.com.br
+55-048-91672105
pedroar...@gmail.com
skype: pedroargolopie
whatsapp: +554891672105
Reply all
Reply to author
Forward
0 new messages