29 #ifndef WlmFileSystemInteractionManager_h
30 #define WlmFileSystemInteractionManager_h
32 #include "dcmtk/config/osconfig.h"
33 #include "dcmtk/ofstd/ofstring.h"
34 #include "dcmtk/ofstd/oftypes.h"
187 OFBool
ModalitiesMatch(
const char *datasetValue,
const char *searchMaskValue );
211 OFBool
PatientsIDsMatch(
const char *datasetValue,
const char *searchMaskValue );
259 OFBool
AdmissionIdsMatch(
const char *datasetValue,
const char *searchMaskValue );
286 OFBool
DateTimeRangeMatch(
const char *datasetDateValue,
const char *datasetTimeValue,
const char *searchMaskDateValue,
const char *searchMaskTimeValue );
295 OFBool
DateRangeMatch(
const char *datasetDateValue,
const char *searchMaskDateValue );
304 OFBool
TimeRangeMatch(
const char *datasetTimeValue,
const char *searchMaskTimeValue );
315 OFBool
DateTimeSingleValueMatch(
const char *datasetDateValue,
const char *datasetTimeValue,
const char *searchMaskDateValue,
const char *searchMaskTimeValue );
350 OFBool
WildcardMatch(
const char *datasetValue,
const char *searchMaskValue );
a class representing a list of DICOM elements in which each element has a different tag and elements ...
class maintaining a attribute tag (group and element number)
OFBool DateSingleValueMatch(const char *datasetDateValue, const char *searchMaskDateValue)
This function performs a date single value match and returns OFTrue if the dataset's and the search m...
This template class provides a data structure and operations for administrating an ordered set of ele...
OFCondition ConnectToFileSystem(const OFString &dfPathv)
Connects to the worklist file system database.
OFBool PatientsIDsMatch(const char *datasetValue, const char *searchMaskValue)
This function returns OFTrue if the dataset's and the search mask's values in attribute patient id ma...
OFBool TimeSingleValueMatch(const char *datasetTimeValue, const char *searchMaskTimeValue)
This function performs a time single value match and returns OFTrue if the dataset's and the search m...
OFBool MatchStarSymbol(const char *dv, const char *sv)
This function is called, if the search pattern contains a star symbol.
OFBool DateRangeMatch(const char *datasetDateValue, const char *searchMaskDateValue)
This function performs a date range match and returns OFTrue if the dataset's and the search mask's v...
void ExtractValuesFromRange(const char *range, char *&lower, char *&upper)
This function extracts the actual lower and upper date or time values from a given date or time range...
OFBool PatientsSexesMatch(const char *datasetValue, const char *searchMaskValue)
This function returns OFTrue if the dataset's and the search mask's values in attribute patient sex m...
OFString dfPath
path to database files
DcmDataset ** matchingRecords
array of matching records
OFBool PatientsBirthDatesMatch(const char *datasetValue, const char *searchMaskValue)
This function returns OFTrue if the dataset's and the search mask's values in attribute patient's bir...
OFBool DateTimeRangeMatch(const char *datasetDateValue, const char *datasetTimeValue, const char *searchMaskDateValue, const char *searchMaskTimeValue)
This function performs a date time range match and returns OFTrue if the dataset's and the search mas...
OFBool ScheduledPerformingPhysicianNamesMatch(const char *datasetValue, const char *searchMaskValue)
This function returns OFTrue if the dataset's and the search mask's values in attribute scheduled per...
OFBool IsCalledApplicationEntityTitleSupported(const OFString &calledApplicationEntityTitlev)
Checks if the given called application entity title is supported.
OFBool AttributeIsAbsentOrEmpty(DcmTagKey elemTagKey, DcmItem *dset)
This function checks if the specified attribute is absent or contains an empty value in the given dat...
OFBool DatasetMatchesSearchMask(DcmDataset *dataset, DcmDataset *searchMask)
This function returns OFTrue, if the matching key attribute values in the dataset match the matching ...
void SetEnableRejectionOfIncompleteWlFiles(OFBool value)
Set value in member variable.
unsigned long numOfMatchingRecords
number of array fields
OFBool RequestedProcedurePrioritiesMatch(const char *datasetValue, const char *searchMaskValue)
This function returns OFTrue if the dataset's and the search mask's values in attribute requested pro...
void ClearMatchingRecords()
This function frees the memory which was occupied by matchingRecords.
OFString calledApplicationEntityTitle
called AE title
OFBool PatientsNamesMatch(const char *datasetValue, const char *searchMaskValue)
This function returns OFTrue if the dataset's and the search mask's values in attribute patient's nam...
OFBool DateTimeSingleValueMatch(const char *datasetDateValue, const char *datasetTimeValue, const char *searchMaskDateValue, const char *searchMaskTimeValue)
This function performs a date time single value match and returns OFTrue if the dataset's and the sea...
OFBool CaseSensitiveSingleValueMatch(const char *datasetValue, const char *searchMaskValue)
This function returns OFTrue if the dataset's and the search mask's values match while performing a c...
OFBool ReferringPhysicianNamesMatch(const char *datasetValue, const char *searchMaskValue)
This function returns OFTrue if the dataset's and the search mask's values in attribute referring phy...
OFBool RequestingPhysiciansMatch(const char *datasetValue, const char *searchMaskValue)
This function returns OFTrue if the dataset's and the search mask's values in attribute requesting ph...
OFCondition DisconnectFromFileSystem()
Disconnects from the worklist file system database.
This class encapsulates data structures and operations for managing data base interaction in the fram...
unsigned long DetermineMatchingRecords(DcmDataset *searchMask)
This function determines the records from the worklist files which match the given search mask and re...
OFBool enableRejectionOfIncompleteWlFiles
indicates if wl-files which are lacking return type 1 attributes or information in such attributes sh...
OFBool ScheduledStationAETitlesMatch(const char *datasetValue, const char *searchMaskValue)
This function returns OFTrue if the dataset's and the search mask's values in attribute scheduled sta...
OFBool ModalitiesMatch(const char *datasetValue, const char *searchMaskValue)
This function returns OFTrue if the dataset's and the search mask's values in attribute modality matc...
OFBool DescriptionAndCodeSequenceAttributesAreIncomplete(DcmTagKey descriptionTagKey, DcmTagKey codeSequenceTagKey, DcmItem *dset)
This function checks if the specified description and code sequence attribute are both incomplete in ...
unsigned long GetNumberOfSequenceItemsForMatchingRecord(DcmTagKey sequenceTag, WlmSuperiorSequenceInfoType *superiorSequenceArray, unsigned long numOfSuperiorSequences, unsigned long idx)
For the matching record that is identified through idx, this function returns the number of items tha...
WlmFileSystemInteractionManager & operator=(const WlmFileSystemInteractionManager &obj)
Privately defined assignment operator.
void DetermineMatchingKeyAttributeValues(DcmDataset *dataset, const char **&matchingKeyAttrValues)
This function determines the values of the matching key attributes in the given dataset.
OFBool ReferencedStudyOrPatientSequenceIsAbsentOrExistentButNonEmptyAndIncomplete(DcmTagKey sequenceTagKey, DcmItem *dset)
This function checks if the specified sequence attribute is absent or existent but non-empty and inco...
OFBool IsWorklistFile(const char *fname)
This function returns OFTrue if the given filename refers to a worklist file, i.e.
a class handling the DICOM dataset format (files without meta header)
structure for handling arbitrary types of superior sequences in query result datasets ...
a simple string class that implements a subset of std::string.
OFBool ScheduledProcedureStepStartDateTimesMatch(const char *datasetDateValue, const char *datasetTimeValue, const char *searchMaskDateValue, const char *searchMaskTimeValue)
This function returns OFTrue if the dataset's and the search mask's values in attributes scheduled pr...
OFBool AdmissionIdsMatch(const char *datasetValue, const char *searchMaskValue)
This function returns OFTrue if the dataset's and the search mask's values in attribute admission id ...
~WlmFileSystemInteractionManager()
destructor
WlmFileSystemInteractionManager()
default constructor.
Singleton class which provides thread-safe access to the standard console output and error streams...
void DetermineWorklistFiles(OFOrderedSet< OFString > &worklistFiles)
This function determines all worklist files in the directory specified by dfPath and calledApplicatio...
OFBool AccessionNumbersMatch(const char *datasetValue, const char *searchMaskValue)
This function returns OFTrue if the dataset's and the search mask's values in attribute accession num...
OFBool WildcardMatch(const char *datasetValue, const char *searchMaskValue)
This function returns OFTrue if the dataset's and the search mask's values match while performing a w...
OFBool TimeRangeMatch(const char *datasetTimeValue, const char *searchMaskTimeValue)
This function performs a time range match and returns OFTrue if the dataset's and the search mask's v...
OFBool DatasetIsComplete(DcmDataset *dataset)
This function checks if the given dataset (which represents the information from a worklist file) con...
OFBool RequestedProcedureIdsMatch(const char *datasetValue, const char *searchMaskValue)
This function returns OFTrue if the dataset's and the search mask's values in attribute requested pro...
void GetAttributeValueForMatchingRecord(DcmTagKey tag, WlmSuperiorSequenceInfoType *superiorSequenceArray, unsigned long numOfSuperiorSequences, unsigned long idx, char *&value)
This function determines an attribute value of a matching record and returns this value in a newly cr...
General purpose class for condition codes.