private Study CreateNewStudyInfo(DvtkHighLevelInterface.Dicom.Other.DataSet dataSet) { string studyId = ""; if (dataSet.Exists("0x00200010")) { HLI.Attribute studyIdAtt = dataSet["0x00200010"]; studyId = studyIdAtt.Values[0]; } string accNr = ""; if (dataSet.Exists("0x00080050")) { HLI.Attribute accNrAtt = dataSet["0x00080050"]; accNr = accNrAtt.Values[0]; } string studyInstUid = ""; if (dataSet.Exists("0x0020000D")) { HLI.Attribute studyInstUidAtt = dataSet["0x0020000D"]; studyInstUid = studyInstUidAtt.Values[0]; } Study study = new Study(); study.StudyID = studyId; study.AccessionNumber = accNr; study.StudyInstanceUID = studyInstUid; return(study); }
private Patient CreateNewPatientInfo(DvtkHighLevelInterface.Dicom.Other.DataSet dataSet) { string patientName = ""; if (dataSet.Exists("0x00100010")) { HLI.Attribute patientNameAtt = dataSet["0x00100010"]; patientName = patientNameAtt.Values[0]; } string patientId = ""; if (dataSet.Exists("0x00100020")) { HLI.Attribute patientIdAtt = dataSet["0x00100020"]; patientId = patientIdAtt.Values[0]; } string patientBd = ""; if (dataSet.Exists("0x00100030")) { HLI.Attribute patientBdAtt = dataSet["0x00100030"]; patientBd = patientBdAtt.Values[0]; } Patient patient = new Patient(); patient.PatientName = patientName; patient.PatientId = patientId; patient.PatientBirthDate = patientBd; return(patient); }
private Image CreateNewImageInfo(DvtkHighLevelInterface.Dicom.Other.DataSet dataSet) { string sopInstUid = ""; if (dataSet.Exists("0x00080018")) { HLI.Attribute sopInstUidAtt = dataSet["0x00080018"]; sopInstUid = sopInstUidAtt.Values[0]; } Image image = new Image(); image.SOPInstanceUID = sopInstUid; return(image); }
private Series CreateNewSeriesInfo(DvtkHighLevelInterface.Dicom.Other.DataSet dataSet) { string seriesInstUid = ""; if (dataSet.Exists("0x0020000E")) { HLI.Attribute seriesInstUidAtt = dataSet["0x0020000E"]; seriesInstUid = seriesInstUidAtt.Values[0]; } Series series = new Series(); series.SeriesUID = seriesInstUid; return(series); }
// // - Methods - // public override bool Evaluate(DataSet dataSet) { return(dataSet.Exists(this.tagSequence)); }