public class LegacyRadiationDoseOCRDicomForwardingService extends Object
A class to wait for incoming dose screen images, perform OCR to create Radiation Dose SRs and send RDSRs to a pre-configured DICOM destination.
The class has no public methods other than the constructor and a main method that is useful as a utility.
Modifier and Type | Class and Description |
---|---|
protected class |
LegacyRadiationDoseOCRDicomForwardingService.OurReceivedObjectHandler |
protected class |
LegacyRadiationDoseOCRDicomForwardingService.ReceivedFileProcessor |
protected class |
LegacyRadiationDoseOCRDicomForwardingService.Series |
protected class |
LegacyRadiationDoseOCRDicomForwardingService.SeriesProcessor |
protected class |
LegacyRadiationDoseOCRDicomForwardingService.SeriesQueue |
Modifier and Type | Field and Description |
---|---|
protected String |
ourAETitle |
protected LegacyRadiationDoseOCRDicomForwardingService.SeriesQueue |
seriesQueue |
protected String |
theirAETitle |
protected String |
theirHost |
protected int |
theirPort |
protected static long |
TIMEOUT_BEFORE_CHECKING_FOR_WORK_MS |
protected static long |
TIMEOUT_BEFORE_PROCESSING_SERIES_MS |
Constructor and Description |
---|
LegacyRadiationDoseOCRDicomForwardingService(int ourPort,
String ourAETitle,
String theirHost,
int theirPort,
String theirAETitle,
File savedImagesFolder)
Wait for incoming dose screen images, perform OCR to create Radiation Dose SRs and send RDSRs to specified DICOM destination.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] arg)
Wait for incoming dose screen images, perform OCR to create Radiation Dose SRs and send RDSRs to specified DICOM destination.
|
protected void |
sendSRFile(CTDose ctDose) |
protected String ourAETitle
protected LegacyRadiationDoseOCRDicomForwardingService.SeriesQueue seriesQueue
protected String theirAETitle
protected String theirHost
protected int theirPort
protected static long TIMEOUT_BEFORE_CHECKING_FOR_WORK_MS
protected static long TIMEOUT_BEFORE_PROCESSING_SERIES_MS
public LegacyRadiationDoseOCRDicomForwardingService(int ourPort, String ourAETitle, String theirHost, int theirPort, String theirAETitle, File savedImagesFolder) throws IOException
Wait for incoming dose screen images, perform OCR to create Radiation Dose SRs and send RDSRs to specified DICOM destination.
ourPort
- our portourAETitle
- our AE TitletheirHost
- their host name or IP addresstheirPort
- their porttheirAETitle
- their AE titlesavedImagesFolder
- the folder in which to save the received imagesIOException
public static void main(String[] arg)
Wait for incoming dose screen images, perform OCR to create Radiation Dose SRs and send RDSRs to specified DICOM destination.
arg
- array of five strings - our port, our AE Title, their hostname, their port, their AE Titleprotected void sendSRFile(CTDose ctDose)