protected override bool AreEqual(DICOMObject dicomObject, RISObject risObject) { DICOMImageObject dicomImage = (DICOMImageObject)dicomObject; ImageObject risImage = (ImageObject)risObject; return dicomImage.ImageInstance.Value.Equals(risImage.ImageInstance.Value); }
protected override void PerformPostSaveTasks(RISObject risObject) { }
protected abstract bool AreEqual(DICOMObject dicomObject,RISObject risObject);
protected abstract void PerformPostSaveTasks(RISObject risObject);
protected override bool AreEqual(DICOMObject dicomObject, RISObject risObject) { DICOMPatientObject dicomPatient = (DICOMPatientObject)dicomObject; PatientObject risPatient = (PatientObject)risObject; return dicomPatient.PatientID.Value.Equals(risPatient.ExternalPatientId.Value); }
protected override bool AreEqual(DICOMObject dicomObject, RISObject risObject) { DICOMStudyObject dicomStudy = (DICOMStudyObject)dicomObject; StudyObject risStudy = (StudyObject)risObject; return dicomStudy.StudyInstance.Value.Equals(risStudy.StudyInstance.Value); }
protected override void PerformPostSaveTasks(RISObject risObject) { /*StudyObject risStudy = (StudyObject)risObject; if (risStudy.HospitalId.Value != null) { RISDatabaseAccessLayer databaseAccessLayer = new RISDatabaseAccessLayer(); SqlConnection connection = (SqlConnection)databaseAccessLayer.GetConnection(); connection.Open(); SqlCommand command = new SqlCommand("sp_insert_study_group", connection); command.Parameters.AddWithValue("@studyId", risStudy.GetPrimaryKey().Value); command.Parameters.AddWithValue("@hospitalId", risStudy.HospitalId.Value); command.Parameters.AddWithValue("@adminUserId", GenericDataMigrator.AdminUserId); command.CommandType = CommandType.StoredProcedure; command.ExecuteNonQuery(); connection.Close(); } */ }
protected override bool AreEqual(DICOMObject dicomObject, RISObject risObject) { DICOMSeriesObject dicomSeries = (DICOMSeriesObject)dicomObject; SeriesObject risSeries = (SeriesObject)risObject; return dicomSeries.SeriesInstance.Value.Equals(risSeries.SeriesInstance.Value); }
protected override void PerformPostSaveTasks(RISObject risObject) { SeriesObject risSeries = (SeriesObject)risObject; risStudy.LatestSeriesId.Value = risSeries.GetPrimaryKey().Value; risStudy.Save(); }