public void CreateNewStudy(ServerEntityKey itemKey) { InconsistentDataSIQRecord record = new InconsistentDataSIQRecord(StudyIntegrityQueue.Load(itemKey)); ReconcileCreateStudyDescriptor command = new ReconcileCreateStudyDescriptor { Automatic = false, UserName = ServerHelper.CurrentUserName, ExistingStudy = record.ExistingStudyInfo, ImageSetData = record.ConflictingImageDescriptor }; command.Commands.Add(new SetTagCommand(DicomTags.StudyInstanceUid, record.ExistingStudyInfo.StudyInstanceUid, DicomUid.GenerateUid().UID)); String xml = XmlUtils.SerializeAsString(command); ReconcileStudy(xml, record.QueueItem); }
public void Initialize(ReconcileStudyProcessorContext context, bool complete) { Platform.CheckForNullReference(context, "context"); Context = context; ReconcileCreateStudyDescriptor desc = XmlUtils.Deserialize <ReconcileCreateStudyDescriptor>(Context.History.ChangeDescription); if (Context.History.DestStudyStorageKey == null) { CreateStudyCommand command = new CreateStudyCommand(Context, desc.Commands, complete); AddCommand(command); } else { MergeStudyCommand command = new MergeStudyCommand(Context, false, desc.Commands, complete); AddCommand(command); } if (complete) { AddCleanupCommands(); } }