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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classprotected classprotected classprotected classprotected classprotected class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected DatabaseInformationModelprotected static intprotected Stringprotected Stringprotected static Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected static intprotected Stringprotected static final longprotected NetworkApplicationInformationFederatedprotected NetworkApplicationPropertiesprotected Stringprotected Propertiesprotected static Stringprotected static Stringprotected static Stringprotected static Stringprotected static Stringprotected static Stringprotected static Stringprotected static Stringprotected static Stringprotected static Stringprotected FTPRemoteHostprotected booleanprotected booleanprotected booleanprotected Fileprotected static intprotected static intprotected Stringprotected Stringprotected StoredFilePathStrategyprotected Stringprotected String -
Constructor Summary
ConstructorsConstructorDescriptionDoseReporterWithLegacyOCRAndAutoSendToRegistry(String propertiesFileName) Wait for incoming dose screen images and SRs and send to registry. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanalreadyHaveIt(AttributeList uniqueKeys) protected StringdeidentifyFile(String dicomFileName) protected voiddeleteFilesAndDatabaseRecords(Set<DoseReporterWithLegacyOCRAndAutoSendToRegistry.CandidateFile> setOfFiles) protected voiddeleteFilesAndSetDatabaseRecordsToReferenced(Set<DoseReporterWithLegacyOCRAndAutoSendToRegistry.CandidateFile> setOfFiles) protected longfindCandidateFilesToSendToRegistry(InformationEntity ie, String localPrimaryKeyValue, Set<DoseReporterWithLegacyOCRAndAutoSendToRegistry.CandidateFile> setOfOriginalSRFiles, Set<DoseReporterWithLegacyOCRAndAutoSendToRegistry.CandidateFile> setOfLegacyOCRSRFiles, Set<DoseReporterWithLegacyOCRAndAutoSendToRegistry.CandidateFile> setOfDoseScreenFiles, long mostRecentInsertionTime) protected booleanfindSuitableSRFilesAndSendThemToRegistry(String studyLocalPrimaryKeyValue) protected StringGet the date the package was built.protected voidloadProperties(String propertiesFileName) Load properties.static voidWait for incoming dose screen images and SRs and send to registry.protected voidprotected voidprotected voidprotected voidsendFileToRegistry(String fileName) protected voidprotected voidprotected voidprotected 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:
DicomExceptionDicomNetworkExceptionIOExceptionInterruptedExceptionFTPException
-
-
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:
DicomExceptionIOException
-
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:
DicomExceptionIOException
-
deleteFilesAndSetDatabaseRecordsToReferenced
protected void deleteFilesAndSetDatabaseRecordsToReferenced(Set<DoseReporterWithLegacyOCRAndAutoSendToRegistry.CandidateFile> setOfFiles) throws DicomException, IOException - Throws:
DicomExceptionIOException
-
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
-