private DicomQueryHangingProtocolParams GetDicomQueryParams() { DicomQueryHangingProtocolParams q = new DicomQueryHangingProtocolParams(); // Hanging Protocol q.Name = this.HangingProtocolName; q.Description = this.Description; q.Level = this.Level; q.Creator = this.Creator; q.CreationDateFromChecked = this.CreationDateFromChecked; q.CreationDateToChecked = this.CreationDateToChecked; q.CreationDateFrom = this.CreationDateFrom; q.CreationDateTo = this.CreationDateTo; q.Priors = this.Priors; q.Modalities = this.Modalities; q.StudyDescription = this.StudyDescription; q.Laterality = this.Laterality; q.BodyPartExamined = this.BodyPartExamined; q.ProtocolName = this.ProtocolName; q.AnatomicRegionCodeValue = this.AnatomicRegionCodeValue; q.AnatomicRegionCodeMeaning = this.AnatomicRegionCodeMeaning; q.ProcedureCodeValue = this.ProcedureCodeValue; q.ProcedureCodeMeaning = this.ProcedureCodeMeaning; q.ReasonCodeValue = this.ReasonCodeValue; q.ReasonCodeMeaning = this.ReasonCodeMeaning; return(q); }
public void PrepareSearchDefault(MatchingParameterCollection matchingCollection) { #if (LEADTOOLS_V19_OR_LATER) try { MatchingParameterList matchingList = new MatchingParameterList(); HangingProtocolEntity hpe = new HangingProtocolEntity(); HangingProtocolDefinitonSequenceEntity hpdse = new HangingProtocolDefinitonSequenceEntity(); matchingList.Add(hpe); matchingList.Add(hpdse); matchingCollection.Add(matchingList); DicomQueryHangingProtocolParams q = GetDicomQueryParams(); hpe.Name = q.Name; hpe.Description = q.Description; hpe.Level = q.Level; hpe.Creator = q.Creator; // Creation Date if (q.CreationDateFromChecked || q.CreationDateToChecked) { DateRange studyDateRange = new DateRange(); if (q.CreationDateFromChecked) { studyDateRange.StartDate = q.CreationDateFrom; } if (q.CreationDateToChecked) { studyDateRange.EndDate = q.CreationDateTo; } hpe.CreationDateTime = studyDateRange; } hpe.NumberOfPriorsReferenced = q.Priors; // Hanging Protocol Definition if (!string.IsNullOrEmpty(q.Modalities)) { hpdse.Modality = q.Modalities.Replace(",", "\\"); } hpdse.StudyDescription = q.StudyDescription; hpdse.Laterality = q.Laterality; hpdse.BodyPartExamined = q.BodyPartExamined; hpdse.ProtocolName = q.ProtocolName; // Anatomic Region Sequence if (!string.IsNullOrEmpty(q.AnatomicRegionCodeValue) || !string.IsNullOrEmpty(q.AnatomicRegionCodeMeaning)) { HangingProtocolAnatomicRegionSequenceEntity anatomicRegion = new HangingProtocolAnatomicRegionSequenceEntity(); matchingList.Add(anatomicRegion); anatomicRegion.CodeValue = q.AnatomicRegionCodeValue; anatomicRegion.CodeMeaning = q.AnatomicRegionCodeMeaning; } } catch (Exception exception) { throw exception; } #endif // #if (LEADTOOLS_V19_OR_LATER) }