/// <summary> /// Writes the data in this node into the given <see cref="DicomAttributeCollection"/> /// </summary> /// <param name="dicomDataSet">The data set to write data into.</param> internal void Update(DicomAttributeCollection dicomDataSet) { dicomDataSet[DicomTags.PatientId].SetStringValue(_patientId); dicomDataSet[DicomTags.PatientsName].SetStringValue(_name); dicomDataSet[DicomTags.PatientsSex].SetStringValue(DicomConverter.SetSex(_sex)); DicomConverter.SetDate(dicomDataSet[DicomTags.PatientsBirthDate], _birthdate); DicomConverter.SetTime(dicomDataSet[DicomTags.PatientsBirthTime], _birthdate); }
/// <summary> /// Writes the data in this node into the given <see cref="DicomAttributeCollection"/>. /// </summary> /// <param name="dicomDataSet">The data set to write data into.</param> /// <param name="writeUid"></param> internal void Update(DicomAttributeCollection dicomDataSet, bool writeUid) { dicomDataSet[DicomTags.SeriesDescription].SetStringValue(_description); DicomConverter.SetDate(dicomDataSet[DicomTags.SeriesDate], _dateTime); DicomConverter.SetTime(dicomDataSet[DicomTags.SeriesTime], _dateTime); DicomConverter.SetInt32(dicomDataSet[DicomTags.SeriesNumber], _seriesNum); if (writeUid) { dicomDataSet[DicomTags.SeriesInstanceUid].SetStringValue(_instanceUid); } }
/// <summary> /// Writes the data in this node into the given <see cref="DicomAttributeCollection"/> /// </summary> /// <param name="dicomDataSet">The data set to write data into.</param> internal void Update(DicomAttributeCollection dicomDataSet, bool writeUid) { dicomDataSet[DicomTags.StudyId].SetStringValue(_studyId); dicomDataSet[DicomTags.StudyDescription].SetStringValue(_description); dicomDataSet[DicomTags.AccessionNumber].SetStringValue(_accessionNum); DicomConverter.SetDate(dicomDataSet[DicomTags.StudyDate], _dateTime); DicomConverter.SetTime(dicomDataSet[DicomTags.StudyTime], _dateTime); if (writeUid) { dicomDataSet[DicomTags.StudyInstanceUid].SetStringValue(_instanceUid); } }