<HTML>
<HEAD>
<TITLE>ImageProcessorReader.getSeriesMetadata() for extracting DICOM tags </TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>We are using ImageProcessorReader to extract DICOM tags from an RVG image. All seems to be well, however it does not seem to return repeating tags particularly tag id 0008,0104. Are there specific options needed to extract repeated tags? And are there known limitations with the Imetadata class? I have attached the DICOM tags table and Java code in question below.<BR>
<BR>
Thanks for your help,<BR>
M. Samarah<BR>
<a href="msamarah@alumni.fit.edu">msamarah@alumni.fit.edu</a><BR>
<BR>
<BR>
<B>Tag ID VR VM Len Description Value<BR>
</B>(0008,2228) SQ 0 0 Primary Anatomic Structure Sequence<BR>
(FFFE,E000)<BR>
(0008,0100)<BR>
(0008,0102)<BR>
<FONT COLOR="#008000"><B> (0008,0104) LO 1 34 Code Meaning Maxillary right third molar tooth<BR>
</B></FONT> (FFFE,E000)<BR>
(0008,0100)<BR>
(0008,0102)<BR>
<FONT COLOR="#008000"><B> (0008,0104) LO 1 34 Code Meaning Maxillary right second molar tooth<BR>
</B></FONT> (FFFE,E000)<BR>
(0008,0100)<BR>
(0008,0102)<BR>
<FONT COLOR="#008000"><B> (0008,0104) LO 1 34 Code Meaning Maxillary right first molar tooth<BR>
</B></FONT> <BR>
<BR>
ImageProcessorReader r = new ImageProcessorReader(new ChannelSeparator(LociPrefs.makeImageReader()));<BR>
try<BR>
{<BR>
ServiceFactory factory = new ServiceFactory();<BR>
OMEXMLService service = factory.getInstance(OMEXMLService.class);<BR>
IMetadata meta = service.createOMEXMLMetadata();<BR>
log_message("INFO: Examining file " + imagePath);<BR>
r.setMetadataStore(meta);<BR>
r.setGroupFiles(false);<BR>
r.setId(imagePath);<BR>
<B> <BR>
<FONT COLOR="#008000"> metadata = r.getSeriesMetadata();<BR>
</FONT></B> Set<String> keys = metadata.keySet();<BR>
for(String key: keys)<BR>
{<BR>
System.out.println("Value of "+key+" is: "+metadata.get(key));<BR>
}<BR>
}<BR>
</SPAN></FONT>
</BODY>
</HTML>