Package com.pixelmed.apps
Class DoseReporterWithLegacyOCRAndAutoSendToRegistry
java.lang.Object
com.pixelmed.apps.DoseReporterWithLegacyOCRAndAutoSendToRegistry
A class to wait for incoming dose screen images and SRs and send them to pre-configured registry.
The class has no public methods other than the constructor and a main method that is useful as a utility.
External (unsecure) SQL access to the database is possible if the Application.DatabaseServerName property is specified; further
details are described in com.pixelmed.database.DatabaseInformationModel
; for example:
% java -cp lib/additional/hsqldb.jar org.hsqldb.util.DatabaseManagerSwing --url "jdbc:hsqldb:hsql://localhost/testserverdb"
For how to configure the necessary properties file, see:
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
protected class
protected class
protected class
protected class
protected class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected DatabaseInformationModel
protected static int
protected String
protected String
protected static String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected static int
protected String
protected static final long
protected NetworkApplicationInformationFederated
protected NetworkApplicationProperties
protected String
protected Properties
protected static String
protected static String
protected static String
protected static String
protected static String
protected static String
protected static String
protected static String
protected static String
protected static String
protected FTPRemoteHost
protected boolean
protected boolean
protected boolean
protected File
protected static int
protected static int
protected String
protected String
protected StoredFilePathStrategy
protected String
protected String
-
Constructor Summary
ConstructorsConstructorDescriptionDoseReporterWithLegacyOCRAndAutoSendToRegistry
(String propertiesFileName) Wait for incoming dose screen images and SRs and send to registry. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
alreadyHaveIt
(AttributeList uniqueKeys) protected String
deidentifyFile
(String dicomFileName) protected void
deleteFilesAndDatabaseRecords
(Set<DoseReporterWithLegacyOCRAndAutoSendToRegistry.CandidateFile> setOfFiles) protected void
deleteFilesAndSetDatabaseRecordsToReferenced
(Set<DoseReporterWithLegacyOCRAndAutoSendToRegistry.CandidateFile> setOfFiles) protected long
findCandidateFilesToSendToRegistry
(InformationEntity ie, String localPrimaryKeyValue, Set<DoseReporterWithLegacyOCRAndAutoSendToRegistry.CandidateFile> setOfOriginalSRFiles, Set<DoseReporterWithLegacyOCRAndAutoSendToRegistry.CandidateFile> setOfLegacyOCRSRFiles, Set<DoseReporterWithLegacyOCRAndAutoSendToRegistry.CandidateFile> setOfDoseScreenFiles, long mostRecentInsertionTime) protected boolean
findSuitableSRFilesAndSendThemToRegistry
(String studyLocalPrimaryKeyValue) protected String
Get the date the package was built.protected void
loadProperties
(String propertiesFileName) Load properties.static void
Wait for incoming dose screen images and SRs and send to registry.protected void
protected void
protected void
protected void
sendFileToRegistry
(String fileName) protected void
protected void
protected void
protected void
-
Field Details
-
defaultPropertiesFileName
-
propertyName_SelectedDoseRegistry
-
propertyName_SleepTimeBetweenPassesToProcessReceivedFiles
-
propertyName_IntervalAfterLastInstanceReceivedToWaitBeforeProcessingStudy
-
propertyName_SleepTimeBetweenPassesToQueryRemoteAEs
-
propertyName_DaysBackwardsFromTodayToQuery
-
propertyName_RetainSourceFilesUsedForSRGeneration
-
propertyName_RetainGeneratedRDSRFiles
-
propertyName_RetainDeidentifiedFiles
-
propertyName_RemoteAEsForQuery
-
propertyDelimitersForTokenizer_RemoteAEsForQuery
-
retainDeidentifiedFiles
protected boolean retainDeidentifiedFiles -
retainGeneratedRDSRFiles
protected boolean retainGeneratedRDSRFiles -
retainSourceFilesUsedForSRGeneration
protected boolean retainSourceFilesUsedForSRGeneration -
defaultRetainDeidentifiedFiles
-
defaultRetainGeneratedRDSRFiles
-
defaultRetainSourceFilesUsedForSRGeneration
-
defaultSleepTimeBetweenPassesToProcessReceivedFiles
-
defaultIntervalAfterLastInstanceReceivedToWaitBeforeProcessingStudy
-
defaultSleepTimeBetweenPassesToQueryRemoteAEs
-
defaultDaysBackwardsFromTodayToQuery
-
sleepTimeBetweenPassesToProcessReceivedFiles
protected static int sleepTimeBetweenPassesToProcessReceivedFiles -
intervalAfterLastInstanceReceivedToWaitBeforeProcessingStudy
protected static int intervalAfterLastInstanceReceivedToWaitBeforeProcessingStudy -
sleepTimeBetweenPassesToQueryRemoteAEs
protected static int sleepTimeBetweenPassesToQueryRemoteAEs -
daysBackwardsFromTodayToQuery
protected static int daysBackwardsFromTodayToQuery -
millisecondsPerDay
protected static final long millisecondsPerDay- See Also:
-
properties
-
networkApplicationProperties
-
networkApplicationInformation
-
ourCalledAETitle
-
remoteAEsForQuery
-
databaseInformationModel
-
remoteHost
-
buildDate
-
savedImagesFolder
-
storedFilePathStrategy
-
studyHasBeenProcessedColumnName
-
instanceHasBeenSentToRegistryColumnName
-
instanceIsRadiationDoseSRColumnName
-
instanceIsRadiationDoseScreenColumnName
-
instanceIsExposureDoseSequenceColumnName
-
studyInstanceUIDColumnName
-
sopClassUIDColumnName
-
manufacturerColumnName
-
imageTypeColumnName
-
instanceCreatorUIDColumnName
-
sourceApplicationEntityTitleColumnName
-
instanceLocalParentReferenceColumnName
-
instanceLocalFileNameColumnName
-
instanceLocalFileReferenceTypeColumnName
-
instanceLocalPrimaryKeyColumnName
-
-
Constructor Details
-
DoseReporterWithLegacyOCRAndAutoSendToRegistry
public DoseReporterWithLegacyOCRAndAutoSendToRegistry(String propertiesFileName) throws DicomException, DicomNetworkException, IOException, InterruptedException, FTPException Wait for incoming dose screen images and SRs and send to registry.
- Parameters:
propertiesFileName
-- Throws:
DicomException
DicomNetworkException
IOException
InterruptedException
FTPException
-
-
Method Details
-
getBuildDate
Get the date the package was built.
- Returns:
- the build date
-
loadProperties
Load properties.
- Throws:
IOException
- thrown if properties file is missing
-
deidentifyFile
- Throws:
DicomException
IOException
-
sendFileToRegistry
protected void sendFileToRegistry(String fileName) throws DicomException, IOException, NoSuchAlgorithmException, Exception -
sendFileToRegistry
protected void sendFileToRegistry(DoseReporterWithLegacyOCRAndAutoSendToRegistry.CandidateFile candidateFile) throws DicomException, IOException, NoSuchAlgorithmException, Exception -
sendFilesToRegistry
protected void sendFilesToRegistry(Set<DoseReporterWithLegacyOCRAndAutoSendToRegistry.CandidateFile> setOfSRFiles) throws DicomException, IOException, NoSuchAlgorithmException, Exception -
makeSRFileAndSendFileToRegistry
-
deleteFilesAndDatabaseRecords
protected void deleteFilesAndDatabaseRecords(Set<DoseReporterWithLegacyOCRAndAutoSendToRegistry.CandidateFile> setOfFiles) throws DicomException, IOException - Throws:
DicomException
IOException
-
deleteFilesAndSetDatabaseRecordsToReferenced
protected void deleteFilesAndSetDatabaseRecordsToReferenced(Set<DoseReporterWithLegacyOCRAndAutoSendToRegistry.CandidateFile> setOfFiles) throws DicomException, IOException - Throws:
DicomException
IOException
-
findCandidateFilesToSendToRegistry
protected long findCandidateFilesToSendToRegistry(InformationEntity ie, String localPrimaryKeyValue, Set<DoseReporterWithLegacyOCRAndAutoSendToRegistry.CandidateFile> setOfOriginalSRFiles, Set<DoseReporterWithLegacyOCRAndAutoSendToRegistry.CandidateFile> setOfLegacyOCRSRFiles, Set<DoseReporterWithLegacyOCRAndAutoSendToRegistry.CandidateFile> setOfDoseScreenFiles, long mostRecentInsertionTime) throws DicomException - Throws:
DicomException
-
findSuitableSRFilesAndSendThemToRegistry
protected boolean findSuitableSRFilesAndSendThemToRegistry(String studyLocalPrimaryKeyValue) throws DicomException, IOException, NoSuchAlgorithmException, Exception -
setSelectedDatabaseRecordIsRadiationDoseSR
- Throws:
DicomException
-
setSelectedDatabaseRecordIsRadiationDoseScreen
protected void setSelectedDatabaseRecordIsRadiationDoseScreen(String filename) throws DicomException - Throws:
DicomException
-
setSelectedDatabaseRecordIsExposureDoseSequence
protected void setSelectedDatabaseRecordIsExposureDoseSequence(String filename) throws DicomException - Throws:
DicomException
-
setSelectedDatabaseRecordHasBeenSentToRegistry
protected void setSelectedDatabaseRecordHasBeenSentToRegistry(String filename) throws DicomException - Throws:
DicomException
-
alreadyHaveIt
- Throws:
DicomException
-
main
Wait for incoming dose screen images and SRs and send to registry.
- Parameters:
arg
- none
-