How to read a single object/element?

138 views
Skip to first unread message

Mike D

unread,
Mar 14, 2014, 12:56:53 PM3/14/14
to dcm...@googlegroups.com
I've got a long list of macros in an SR.  How can I read out specific items.  Take the example below.  How do I read just the Patient Weight where the Code Value = 2-4-02.  Note that I know the Code Values for the items I want in advance.
Thanks,
Mike

1092:(0040,A491) CS #8 [COMPLETE] Completion Flag
1108:(0040,A493) CS #10 [UNVERIFIED] Verification Flag
1126:(0040,A504) SQ #-1 Content Template Sequence
1138:>(FFFE,E000) #-1 Item
1146:>(0008,0105) CS #4 [DCMR] Mapping Resource
1158:>(0040,DB00) CS #4 [6000] Template Identifier
1170:>(FFFE,E00D) #0 Item Delimitation Item
1178:>(FFFE,E0DD) #0 Sequence Delimitation Item
1186:(0040,A730) SQ #-1 Content Sequence
1198:>(FFFE,E000) #-1 Item
1206:>(0040,A010) CS #8 [CONTAINS] Relationship Type
1222:>(0040,A040) CS #4 [TEXT] Value Type
1234:>(0040,A043) SQ #-1 Concept Name Code Sequence
1246:>>(FFFE,E000) #-1 Item
1254:>>(0008,0100) SH #6 [2-4-01] Code Value
1268:>>(0008,0102) SH #10 [99XXXX] Coding Scheme Designator
1286:>>(0008,0104) LO #14 [Patient Height] Code Meaning
1308:>>(FFFE,E00D) #0 Item Delimitation Item
1316:>>(FFFE,E0DD) #0 Sequence Delimitation Item
1324:>(0040,A160) UT #8 [69.0 in] Text Value
1344:>(FFFE,E00D) #0 Item Delimitation Item
1352:>(FFFE,E000) #-1 Item
1360:>(0040,A010) CS #8 [CONTAINS] Relationship Type
1376:>(0040,A040) CS #4 [TEXT] Value Type
1388:>(0040,A043) SQ #-1 Concept Name Code Sequence
1400:>>(FFFE,E000) #-1 Item
1408:>>(0008,0100) SH #6 [2-4-02] Code Value
1422:>>(0008,0102) SH #10 [99XXXX] Coding Scheme Designator
1440:>>(0008,0104) LO #14 [Patient Weight] Code Meaning
1462:>>(FFFE,E00D) #0 Item Delimitation Item
1470:>>(FFFE,E0DD) #0 Sequence Delimitation Item
1478:>(0040,A160) UT #10 [180.0  lb] Text Value
1500:>(FFFE,E00D) #0 Item Delimitation Item

Dimitri Pianeta

unread,
Mar 15, 2014, 10:57:37 AM3/15/14
to dcm...@googlegroups.com
He exact other tag for Patient Weight (0010,1030).

Mike D

unread,
Mar 15, 2014, 11:02:38 AM3/15/14
to dcm...@googlegroups.com
I need to get it out of the SR as displayed in the attached sample DICOM.  There are many other fields I need to read out that DO NOT have standard DICOM tags.

Dimitri Pianeta

unread,
Mar 17, 2014, 1:29:53 PM3/17/14
to dcm...@googlegroups.com

Mike D

unread,
Mar 17, 2014, 1:50:23 PM3/17/14
to
That is not helpful.  It doesn't tell me how to read within macros using dcm4che nor look for specific objects within macros.

I guess one could iterate over all the dicom elements looking for one specific element.  I was hoping there was a better way to do it.

On Monday, March 17, 2014 10:29:53 AM UTC-7, Dimitri Pianeta wrote:

Dimitri Pianeta

unread,
Mar 17, 2014, 5:45:22 PM3/17/14
to
Here code for reading metadata dicom SR or no.
Is-he possible put image dicom with modality SR?
 
 
testMetadata.java
Reply all
Reply to author
Forward
0 new messages