| 1 |
import java.util.Vector; |
| 2 |
import DICOM.*; |
| 3 |
|
| 4 |
class sr5 { |
| 5 |
public static void main(String[] args) { |
| 6 |
DICOM.Code.CodeManager mgr = new DICOM.Code.CodeManager(); |
| 7 |
java.util.Vector v = mgr.readCodeTable("sr/doc_title.txt"); |
| 8 |
|
| 9 |
DICOM.InfoObj.CompositeFactory factory = new |
| 10 |
DICOM.InfoObj.CompositeFactory(); |
| 11 |
DICOM.SR.StructuredReport rpt = new |
| 12 |
DICOM.SR.StructuredReport(); |
| 13 |
DICOM.Code.CodeItem item = new DICOM.Code.CodeItem("a", "bc", "d"); |
| 14 |
DICOM.Module.SRDocumentContentModule m = new |
| 15 |
DICOM.Module.SRDocumentContentModule(item); |
| 16 |
|
| 17 |
DICOM.SR.ContentItemFactory contentFactory = new |
| 18 |
DICOM.SR.ContentItemFactory(); |
| 19 |
DICOM.Code.CodeItem codeItem = new |
| 20 |
DICOM.Code.CodeItem("A100", "Recording Observer", "MESA"); |
| 21 |
DICOM.SR.ContentItem contentItem = |
| 22 |
contentFactory.producePName(codeItem, "MOORE"); |
| 23 |
//factory.setSRDocumentContentModule(rpt, m); |
| 24 |
rpt.writeFile("zz.dcm"); |
| 25 |
} |
| 26 |
} |