Exemple #1
0
		/// <summary>
		/// Copy constructor
		/// </summary>
		/// <param name="source"></param>
		/// <param name="copyDescendants"></param>
		public StudyNode(StudyNode source, bool copyDescendants) {
			_series = new SeriesNodeCollection(this);
			_instanceUid = StudyBuilder.NewUid();
			_studyId = source._studyId;
			_description = source._description;
			_dateTime = source._dateTime;
			_accessionNum = source._accessionNum;

			if(copyDescendants)
			{
				foreach (SeriesNode series in source._series)
				{
					_series.Add(series.Copy(true));
				}
			}
		}
Exemple #2
0
		/// <summary>
		/// Convenience method to insert study-level data nodes into the study builder tree under this patient.
		/// </summary>
		/// <param name="studies">An array of <see cref="StudyNode"/>s to insert into the study builder tree.</param>
		public void InsertStudy(StudyNode[] studies)
		{
			foreach (StudyNode node in studies)
			{
				this.Studies.Add(node);
			}
		}
Exemple #3
0
		/// <summary>
		/// Convenience method to insert series-level data nodes into the study builder tree under this patient, creating a <see cref="StudyNode">study</see> node if necessary.
		/// </summary>
		/// <param name="series">An array of <see cref="SeriesNode"/>s to insert into the study builder tree.</param>
		public void InsertSeries(SeriesNode[] series)
		{
			StudyNode study = new StudyNode();
			this.Studies.Add(study);
			foreach (SeriesNode node in series)
			{
				study.Series.Add(node);
			}
		}
Exemple #4
0
		/// <summary>
		/// Convenience method to insert SOP instance-level data nodes into the study builder tree under this patient, creating <see cref="StudyNode">study</see> and <see cref="SeriesNode">series</see> nodes as necessary.
		/// </summary>
		/// <param name="sopInstances">An array of <see cref="SopInstanceNode"/>s to insert into the study builder tree.</param>
		public void InsertSopInstance(SopInstanceNode[] sopInstances)
		{
			StudyNode study = new StudyNode();
			this.Studies.Add(study);
			SeriesNode series = new SeriesNode();
			study.Series.Add(series);
			foreach (SopInstanceNode node in sopInstances)
			{
				series.Images.Add(node);
			}
		}