public GetStringArray ( Dicom.Data.DicomTag tag, string deflt ) : string[] | ||
tag | Dicom.Data.DicomTag | |
deflt | string | |
Résultat | string[] |
private bool IsFilteredOutData(DcmDataset dataset) { if (!HasReceiveFilters) { return false; } var imageTypes = dataset.GetStringArray(DicomTags.ImageType, new string[]{}); if (imageTypes.Any( t => IsFilteredOut(t, ReceiveFilter_ImageTypes))) { Trace.WriteLine(String.Format("{0} Filtered DIMSE {1} from {2} because of imageType:{3}", DateTime.Now, dataset.GetString(DicomTags.Modality, "UN"), this.Associate.CallingAE, imageTypes)); return true; } var seriesDescription = dataset.GetString(DicomTags.SeriesDescription, ""); if (IsFilteredOut(seriesDescription, ReceiveFilter_SeriesDescription)) { Trace.WriteLine(String.Format("{0} Filtered DIMSE {1} from {2} because of seriesDescription:{3}", DateTime.Now, dataset.GetString(DicomTags.Modality, "UN"), this.Associate.CallingAE, seriesDescription)); return true; } return false; }