예제 #1
0
 protected override bool AreEqual(DICOMObject dicomObject, RISObject risObject)
 {
     DICOMImageObject dicomImage = (DICOMImageObject)dicomObject;
     ImageObject risImage = (ImageObject)risObject;
     return dicomImage.ImageInstance.Value.Equals(risImage.ImageInstance.Value);
 }
예제 #2
0
 protected override void PerformPostSaveTasks(RISObject risObject)
 {
 }
예제 #3
0
 protected abstract bool AreEqual(DICOMObject dicomObject,RISObject risObject);
예제 #4
0
 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);
 }
예제 #6
0
 protected override bool AreEqual(DICOMObject dicomObject, RISObject risObject)
 {
     DICOMStudyObject dicomStudy = (DICOMStudyObject)dicomObject;
     StudyObject risStudy = (StudyObject)risObject;
     return dicomStudy.StudyInstance.Value.Equals(risStudy.StudyInstance.Value);
 }
예제 #7
0
        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();
            } */
        }
예제 #8
0
 protected override bool AreEqual(DICOMObject dicomObject, RISObject risObject)
 {
     DICOMSeriesObject dicomSeries = (DICOMSeriesObject)dicomObject;
     SeriesObject risSeries = (SeriesObject)risObject;
     return dicomSeries.SeriesInstance.Value.Equals(risSeries.SeriesInstance.Value);
 }
예제 #9
0
 protected override void PerformPostSaveTasks(RISObject risObject)
 {
     SeriesObject risSeries = (SeriesObject)risObject;
     risStudy.LatestSeriesId.Value = risSeries.GetPrimaryKey().Value;
     risStudy.Save();
 }