Debian Codegraph @

javactn/test_sr/sr1.java

raw
1 import java.util.Vector;
2 import DICOM.SR.StructuredReport;
3
4 class sr1 {
5 public static void main(String[] args) {
6 DICOM.SR.StructuredReport rpt = new DICOM.SR.StructuredReport(args[0]);
7
8 String s = rpt.getString((short)0x0010, (short)0x0010);
9 System.out.println("Patient Name: " + s);
10
11 /*
12 rpt.expandSRTree();
13
14 Vector v = rpt.contentItemVector();
15 int count = v.size();
16 int i;
17 for (i = 0; i < count; i++) {
18 DICOM.SR.ContentItem contentItem = (DICOM.SR.ContentItem)v.elementAt(i);
19 contentItem.dumpState();
20 }
21 */
22 int x = rpt.expand();
23 System.out.println(" " + x);
24 DICOM.SR.ContentItem rootItem = rpt.contentItem();
25 rootItem.dumpState();
26 }
27 }