public override void FromDataset(DcmDataset dataset) { //dataset.Dump(); _dataset = dataset; dataset.LoadDicomFields(this); if (dataset.Contains(DicomTags.ScheduledProcedureStepSequence)) { DcmItemSequence sq = dataset.GetSQ(DicomTags.ScheduledProcedureStepSequence); if (sq.SequenceItems.Count > 0) { DcmItemSequenceItem sps = sq.SequenceItems[0]; Modality = sps.Dataset.GetString(DicomTags.Modality, String.Empty); ScheduledStationAETitle = sps.Dataset.GetString(DicomTags.ScheduledStationAETitle, String.Empty); ScheduledProcedureStartDate = sps.Dataset.GetDateTime(DicomTags.ScheduledProcedureStepStartDate, 0, DateTime.MinValue); ScheduledProcedureStartTime = sps.Dataset.GetDateTime(DicomTags.ScheduledProcedureStepStartTime, 0, DateTime.MinValue); ScheduledPerformingPhysicianName = sps.Dataset.GetString(DicomTags.ScheduledPerformingPhysiciansName, String.Empty); ScheduledProcedureStepDescription = sps.Dataset.GetString(DicomTags.ScheduledProcedureStepDescription, String.Empty); ScheduledProcedureStepID = sps.Dataset.GetString(DicomTags.ScheduledProcedureStepID, String.Empty); ScheduledProcedureStepLocation = sps.Dataset.GetString(DicomTags.ScheduledProcedureStepLocation, String.Empty); } } }
public virtual void FromDataset(DcmDataset dataset) { _dataset = dataset; dataset.LoadDicomFields(this); }