Пример #1
0
 /// <summary>
 /// Constructs a new <see cref="PatientNode"/> using actual values from attributes in the given <see cref="DicomAttributeCollection"/>.
 /// </summary>
 /// <param name="dicomDataSet">The data set from which to initialize this node.</param>
 public PatientNode(DicomAttributeCollection dicomDataSet)
 {
     _studies   = new StudyNodeCollection(this);
     _patientId = dicomDataSet[DicomTags.PatientId].GetString(0, "");
     _name      = dicomDataSet[DicomTags.PatientsName].GetString(0, "");
     _birthdate = DicomConverter.GetDateTime(dicomDataSet[DicomTags.PatientsBirthDate].GetDateTime(0), dicomDataSet[DicomTags.PatientsBirthTime].GetDateTime(0));
     _sex       = DicomConverter.GetSex(dicomDataSet[DicomTags.PatientsSex].GetString(0, ""));
 }
Пример #2
0
 /// <summary>
 /// Constructs a new <see cref="SeriesNode"/> using actual values from attributes from the given <see cref="DicomAttributeCollection"/>.
 /// </summary>
 /// <param name="dicomDataSet">The data set from which to initialize this node.</param>
 public SeriesNode(DicomAttributeCollection dicomDataSet)
 {
     _images      = new SopInstanceNodeCollection(this);
     _description = dicomDataSet[DicomTags.SeriesDescription].GetString(0, "");
     _dateTime    =
         DicomConverter.GetDateTime(dicomDataSet[DicomTags.SeriesDate].GetDateTime(0),
                                    dicomDataSet[DicomTags.SeriesTime].GetDateTime(0));
     _instanceUid = dicomDataSet[DicomTags.SeriesInstanceUid].GetString(0, "");
     if (_instanceUid == "")
     {
         _instanceUid = StudyBuilder.NewUid();
     }
 }
Пример #3
0
 /// <summary>
 /// Constructs a new <see cref="StudyNode"/> using actual values from attributes in the given <see cref="DicomAttributeCollection"/>.
 /// </summary>
 /// <param name="dicomDataSet">The data set from which to initialize this node.</param>
 public StudyNode(DicomAttributeCollection dicomDataSet)
 {
     _series       = new SeriesNodeCollection(this);
     _studyId      = dicomDataSet[DicomTags.StudyId].GetString(0, "");
     _description  = dicomDataSet[DicomTags.StudyDescription].GetString(0, "");
     _dateTime     = DicomConverter.GetDateTime(dicomDataSet[DicomTags.StudyDate].GetDateTime(0), dicomDataSet[DicomTags.StudyTime].GetDateTime(0));
     _accessionNum = dicomDataSet[DicomTags.AccessionNumber].GetString(0, "");
     _instanceUid  = dicomDataSet[DicomTags.StudyInstanceUid].GetString(0, "");
     if (_instanceUid == "")
     {
         _instanceUid = StudyBuilder.NewUid();
     }
 }