GlobalUsings 清理实体层
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-09-20 09:20:04 +08:00
parent 0a1ce59670
commit 32931e155c
187 changed files with 7126 additions and 7323 deletions
+2 -7
View File
@@ -1,13 +1,8 @@
using Microsoft.EntityFrameworkCore;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models;
namespace IRaCIS.Core.Domain.Models;
[Comment("归档 - Instance表")]
[Table("DicomInstance")]
public class DicomInstance : BaseFullAuditEntity, IEntitySeqId
public class DicomInstance : BaseFullAuditEntity, IEntitySeqId
{
#region
[JsonIgnore]
+1 -7
View File
@@ -1,10 +1,4 @@
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models;
namespace IRaCIS.Core.Domain.Models;
[Comment("归档 - 序列表")]
public partial class DicomSeries : BaseFullDeleteAuditEntity, IEntitySeqId
+1 -7
View File
@@ -1,10 +1,4 @@
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models;
namespace IRaCIS.Core.Domain.Models;
[Table("DicomStudy")]
public class DicomStudy : BaseFullDeleteAuditEntity, IEntitySeqId
@@ -1,12 +1,7 @@
//--------------------------------------------------------------------
// 此代码由T4模板自动生成 byzhouhang 20210918
// 生成时间 2022-01-25 13:26:03
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
using Microsoft.EntityFrameworkCore;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models;
[Comment("项目 - 影像上传监控")]
+11 -18
View File
@@ -1,24 +1,17 @@
using Microsoft.EntityFrameworkCore;
using System;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models;
[Comment("影像 - 影像分享记录表")]
[Table("ImageShare")]
public class ImageShare: Entity
namespace IRaCIS.Core.Domain.Models
{
#region
public class ImageShare : Entity
{
#region
#endregion
public DateTime ExpireTime { get; set; }
#endregion
public Guid TrialId { get; set; }
public Guid SubjectId { get; set; }
public Guid StudyId { get; set; }
public string Password { get; set; } = null!;
public DateTime ExpireTime { get; set; }
public Guid StudyId { get; set; }
public Guid SubjectId { get; set; }
public Guid TrialId { get; set; }
public string Password { get; set; } = string.Empty;
}
}
+41 -37
View File
@@ -1,62 +1,66 @@
//--------------------------------------------------------------------
// 此代码由T4模板自动生成 byzhouhang 20210918
// 生成时间 2021-12-06 10:49:39
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models;
[Comment("影像 - 非dicom检查")]
[Table("NoneDicomStudy")]
public class NoneDicomStudy : BaseFullAuditEntity
namespace IRaCIS.Core.Domain.Models
{
#region
[JsonIgnore]
public List<NoneDicomStudyFile> NoneDicomFileList { get; set; }
///<summary>
///NoneDicomStudy
///</summary>
[Table("NoneDicomStudy")]
public class NoneDicomStudy : BaseFullAuditEntity
{
#region
[JsonIgnore]
public List<NoneDicomStudyFile> NoneDicomFileList { get; set; }
[JsonIgnore]
public List<NoneDicomStudyFile> TaskNoneDicomFileList { get; set; }
[JsonIgnore]
public List<NoneDicomStudyFile> TaskNoneDicomFileList { get; set; }
[JsonIgnore]
public SubjectVisit SubjectVisit { get; set; }
[JsonIgnore]
public Subject Subject { get; set; }
[JsonIgnore]
public SubjectVisit SubjectVisit { get; set; }
[JsonIgnore]
public Subject Subject { get; set; }
#endregion
#endregion
public string BodyPart { get; set; } = null!;
public int Code { get; set; }
public string StudyCode { get; set; } = string.Empty;
public string Description { get; set; } = null!;
public int FileCount { get; set; }
public int FileCount { get; set; }
public int Code { get; set; }
public DateTime ImageDate { get; set; }
public Guid TrialId { get; set; }
public string Modality { get; set; } = null!;
public string StudyCode { get; set; } = null!;
public Guid SubjectId { get; set; }
public Guid SubjectId { get; set; }
public Guid SubjectVisitId { get; set; }
public Guid SubjectVisitId { get; set; }
public Guid TrialId { get; set; }
public DateTime? UploadVideoTime { get; set; }
public string VideoName { get; set; } = null!;
public string BodyPart { get; set; } = string.Empty;
public string VideoObjectName { get; set; } = null!;
public string VideoUrl { get; set; } = null!;
public string Modality { get; set; } = string.Empty;
public DateTime ImageDate { get; set; }
public string Description { get; set; } = string.Empty;
public string VideoName { get; set; } = string.Empty;
public string VideoObjectName { get; set; } = string.Empty;
public DateTime? UploadVideoTime { get; set; }
public string VideoUrl { get; set; } = string.Empty;
}
}
+34 -31
View File
@@ -1,50 +1,53 @@
//--------------------------------------------------------------------
// 此代码由T4模板自动生成 byzhouhang 20210918
// 生成时间 2021-12-06 10:49:39
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
using Microsoft.EntityFrameworkCore;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models;
[Comment("影像 - 非dicom检查关联文件表")]
[Table("NoneDicomStudyFile")]
public class NoneDicomStudyFile : BaseAddAuditEntity
namespace IRaCIS.Core.Domain.Models
{
#region
[ForeignKey("NoneDicomStudyId")]
[JsonIgnore]
public NoneDicomStudy NoneDicomStudy { get; set; }
[Table("NoneDicomStudyFile")]
public class NoneDicomStudyFile : BaseAddAuditEntity
{
#region
[ForeignKey("NoneDicomStudyId")]
[JsonIgnore]
public NoneDicomStudy NoneDicomStudy { get; set; }
[JsonIgnore]
public VisitTask VisitTask { get; set; }
[JsonIgnore]
public VisitTask VisitTask { get; set; }
[ForeignKey("OriginNoneDicomStudyId")]
[JsonIgnore]
public NoneDicomStudy OriginNoneDicomStudy { get; set; }
#endregion
[ForeignKey("OriginNoneDicomStudyId")]
[JsonIgnore]
public NoneDicomStudy OriginNoneDicomStudy { get; set; }
#endregion
public string FileName { get; set; } = null!;
public Guid NoneDicomStudyId { get; set; }
public long? FileSize { get; set; }
public string FileType { get; set; } = null!;
public string Path { get; set; } = string.Empty;
public Guid NoneDicomStudyId { get; set; }
[Comment("为了不影响原始检查,跟任务绑定的 NoneDicomStudyId 为guid空 这个字段记录跟原始检查绑")]
public Guid? OriginNoneDicomStudyId { get; set; }
public string FileName { get; set; } = string.Empty;
[StringLength(512)]
public string Path { get; set; } = null!;
public string FileType { get; set; } = string.Empty;
[Comment("任务Id,配合OriginNoneDicomStudyId 一起使用")]
public Guid? VisitTaskId { get; set; }
public long? FileSize { get; set; }
#region
public Guid? VisitTaskId { get; set; }
/// <summary>
/// 为了不影响原始检查,跟任务绑定的 NoneDicomStudyId 为guid空 这个字段记录跟原始检查绑
/// </summary>
public Guid? OriginNoneDicomStudyId { get; set; }
#endregion
}
}
+39 -28
View File
@@ -1,49 +1,60 @@
//--------------------------------------------------------------------
// 此代码由T4模板自动生成 byzhouhang 20210918
// 生成时间 2024-05-24 14:31:45
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
using System;
using IRaCIS.Core.Domain.Share;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore;
namespace IRaCIS.Core.Domain.Models;
[Comment("项目中心 - 影像推送记录")]
[Table("SCPImageUpload")]
public class SCPImageUpload : BaseAddAuditEntity
namespace IRaCIS.Core.Domain.Models
{
#region
[JsonIgnore]
public Trial Trial { get; set; }
///<summary>
///SCPImageUpload
///</summary>
[Table("SCPImageUpload")]
public class SCPImageUpload : BaseAddAuditEntity
{
#region
[JsonIgnore]
public Trial Trial { get; set; }
[JsonIgnore]
public TrialSite TrialSite { get; set; }
#endregion
[JsonIgnore]
public TrialSite TrialSite { get; set; }
#endregion
public string CalledAE { get; set; } = null!;
public string CallingAE { get; set; } = string.Empty;
public string CallingAE { get; set; } = null!;
public string CallingAEIP { get; set; } = null!;
public string CalledAE { get; set; } = string.Empty;
public DateTime EndTime { get; set; }
public int FileCount { get; set; }
public long FileSize { get; set; }
public string CallingAEIP { get; set; } = string.Empty;
public DateTime StartTime { get; set; }
public int StudyCount { get; set; }
public Guid TrialId { get; set; }
public DateTime StartTime { get; set; }
public Guid TrialSiteId { get; set; }
public DateTime EndTime { get; set; }
public int FileCount { get; set; }
public long FileSize { get; set; }
public int StudyCount { get; set; }
public Guid TrialId { get; set; }
public Guid TrialSiteId { get; set; }
}
}
+43 -70
View File
@@ -1,76 +1,49 @@
using Microsoft.EntityFrameworkCore;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models;
[Table("SCPInstance")]
public class SCPInstance : BaseFullAuditEntity, IEntitySeqId
namespace IRaCIS.Core.Domain.Models
{
#region
[JsonIgnore]
[ForeignKey("SeriesId")]
public SCPSeries SCPSeries { get; set; }
[Table("SCPInstance")]
public class SCPInstance : BaseFullAuditEntity, IEntitySeqId
{
#region
[JsonIgnore]
[ForeignKey("SeriesId")]
public SCPSeries SCPSeries { get; set; }
[JsonIgnore]
[ForeignKey("StudyId")]
public SCPStudy SCPStudy { get; set; }
#endregion
public bool Anonymize { get; set; }
public bool CPIStatus { get; set; }
public long? FileSize { get; set; }
[StringLength(500)]
public string FrameOfReferenceUID { get; set; } = null!;
public int ImageColumns { get; set; }
public int ImageRows { get; set; }
[StringLength(400)]
public string ImagerPixelSpacing { get; set; } = null!;
public int InstanceNumber { get; set; }
public DateTime? InstanceTime { get; set; }
public int NumberOfFrames { get; set; }
[MaxLength]
[Unicode(false)]
public string Path { get; set; } = null!;
[StringLength(400)]
public string PixelSpacing { get; set; } = null!;
public Guid SeqId { get; set; }
public Guid SeriesId { get; set; }
public string SeriesInstanceUid { get; set; } = null!;
public int SliceLocation { get; set; }
[StringLength(400)]
public string SliceThickness { get; set; } = null!;
public string SopInstanceUid { get; set; } = null!;
public Guid StudyId { get; set; }
public string StudyInstanceUid { get; set; } = null!;
[StringLength(400)]
public string WindowCenter { get; set; } = null!;
[StringLength(400)]
public string WindowWidth { get; set; } = null!;
[JsonIgnore]
[ForeignKey("StudyId")]
public SCPStudy SCPStudy { get; set; }
#endregion
public Guid SeqId { get; set; }
public Guid StudyId { get; set; }
public Guid SeriesId { get; set; }
public string StudyInstanceUid { get; set; } = string.Empty;
public string SeriesInstanceUid { get; set; } = string.Empty;
public string SopInstanceUid { get; set; } = string.Empty;
public int InstanceNumber { get; set; }
public DateTime? InstanceTime { get; set; }
public bool CPIStatus { get; set; }
public int ImageRows { get; set; }
public int ImageColumns { get; set; }
public int SliceLocation { get; set; }
public string SliceThickness { get; set; } = string.Empty;
public int NumberOfFrames { get; set; }
public string PixelSpacing { get; set; } = string.Empty;
public string ImagerPixelSpacing { get; set; } = string.Empty;
public string FrameOfReferenceUID { get; set; } = string.Empty;
public string WindowCenter { get; set; } = string.Empty;
public string WindowWidth { get; set; } = string.Empty;
public bool Anonymize { get; set; }
public string Path { get; set; } = string.Empty;
public long? FileSize { get; set; }
}
}
+27 -36
View File
@@ -1,48 +1,39 @@
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models;
[Comment("项目中心 - 推送检查患者")]
[Table("SCPPatient")]
public class SCPPatient : BaseFullAuditEntity
namespace IRaCIS.Core.Domain.Models
{
#region
[JsonIgnore]
public List<SCPStudy> SCPStudyList { get; set; }
[JsonIgnore]
public Subject Subject { get; set; }
[JsonIgnore]
public Trial Trial { get; set; }
[JsonIgnore]
public TrialSite TrialSite { get; set; }
#endregion
[Table("SCPPatient")]
public class SCPPatient : BaseFullAuditEntity
{
#region
[JsonIgnore]
public List<SCPStudy> SCPStudyList { get; set; }
[JsonIgnore]
public Subject Subject { get; set; }
[JsonIgnore]
public Trial Trial { get; set; }
[JsonIgnore]
public TrialSite TrialSite { get; set; }
#endregion
public DateTime? EarliestStudyTime { get; set; }
public DateTime LatestPushTime { get; set; }
public string PatientIdStr { get; set; } = string.Empty;
public string PatientName { get; set; } = string.Empty;
public string PatientAge { get; set; } = string.Empty;
public string PatientSex { get; set; } = string.Empty;
public string PatientBirthDate { get; set; } = string.Empty;
public DateTime? LatestStudyTime { get; set; }
public DateTime? EarliestStudyTime { get; set; }
public string PatientAge { get; set; } = null!;
public DateTime? LatestStudyTime { get; set; }
public string PatientBirthDate { get; set; } = null!;
public DateTime LatestPushTime { get; set; }
public string PatientIdStr { get; set; } = null!;
public string PatientName { get; set; } = null!;
public string PatientSex { get; set; } = null!;
public Guid? SubjectId { get; set; }
public Guid TrialId { get; set; }
public Guid TrialSiteId { get; set; }
public Guid? SubjectId { get; set; }
public Guid TrialId { get; set; }
public Guid TrialSiteId { get; set; }
}
}
+34 -59
View File
@@ -1,70 +1,45 @@
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models;
[Comment("项目中心 - 推送序列")]
[Table("SCPSeries")]
public class SCPSeries : BaseFullDeleteAuditEntity, IEntitySeqId
namespace IRaCIS.Core.Domain.Models
{
#region
[JsonIgnore]
[ForeignKey("StudyId")]
public SCPStudy SCPStudy { get; set; }
[Table("SCPSeries")]
public class SCPSeries : BaseFullDeleteAuditEntity, IEntitySeqId
{
#region
[JsonIgnore]
[ForeignKey("StudyId")]
public SCPStudy SCPStudy { get; set; }
[JsonIgnore]
public List<SCPInstance> SCPInstanceList { get; set; }
#endregion
[JsonIgnore]
public List<SCPInstance> SCPInstanceList { get; set; }
#endregion
public string AcquisitionNumber { get; set; } = null!;
public Guid SeqId { get; set; }
public Guid StudyId { get; set; }
public string StudyInstanceUid { get; set; } = string.Empty;
public string SeriesInstanceUid { get; set; } = string.Empty;
public int SeriesNumber { get; set; }
public DateTime? SeriesTime { get; set; }
public string Modality { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public int InstanceCount { get; set; }
public string SliceThickness { get; set; } = string.Empty;
public string AcquisitionTime { get; set; } = null!;
public string ImagePositionPatient { get; set; } = string.Empty;
public string ImageOrientationPatient { get; set; } = string.Empty;
public string BodyPartExamined { get; set; } = string.Empty;
public string SequenceName { get; set; } = string.Empty;
public string ProtocolName { get; set; } = string.Empty;
public string ImagerPixelSpacing { get; set; } = string.Empty;
public string BodyPartExamined { get; set; } = null!;
public string AcquisitionTime { get; set; } = string.Empty;
public string AcquisitionNumber { get; set; } = string.Empty;
public string TriggerTime { get; set; } = string.Empty;
public string BodyPartForEdit { get; set; } = null!;
public string BodyPartForEdit { get; set; } = string.Empty;
[StringLength(500)]
public string Description { get; set; } = null!;
public bool IsReading { get; set; } = true;
public string ImageOrientationPatient { get; set; } = null!;
public string ImagePositionPatient { get; set; } = null!;
[StringLength(520)]
public string ImageResizePath { get; set; } = null!;
public string ImagerPixelSpacing { get; set; } = null!;
public int InstanceCount { get; set; }
public bool? IsReading { get; set; }
public string Modality { get; set; } = null!;
[StringLength(500)]
public string ProtocolName { get; set; } = null!;
public Guid SeqId { get; set; }
public string SequenceName { get; set; } = null!;
public string SeriesInstanceUid { get; set; } = null!;
public int SeriesNumber { get; set; }
public DateTime? SeriesTime { get; set; }
public string SliceThickness { get; set; } = null!;
public Guid StudyId { get; set; }
public string StudyInstanceUid { get; set; } = null!;
public string TriggerTime { get; set; } = null!;
public string ImageResizePath { get; set; } = string.Empty;
}
}
+50 -71
View File
@@ -1,103 +1,82 @@
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models;
[Comment("项目中心 - 推送检查")]
[Table("SCPStudy")]
public class SCPStudy : BaseFullDeleteAuditEntity, IEntitySeqId
namespace IRaCIS.Core.Domain.Models
{
[Table("SCPStudy")]
public class SCPStudy : BaseFullDeleteAuditEntity, IEntitySeqId
{
#region
[JsonIgnore]
public List<SCPInstance> InstanceList { get; set; }
#region
[JsonIgnore]
public List<SCPInstance> InstanceList { get; set; }
[JsonIgnore]
public List<SCPSeries> SeriesList { get; set; }
[JsonIgnore]
public SubjectVisit SubjectVisit { get; set; }
[JsonIgnore]
public List<SCPSeries> SeriesList { get; set; }
[JsonIgnore]
public SubjectVisit SubjectVisit { get; set; }
[JsonIgnore]
public Trial Trial { get; set; }
[JsonIgnore]
public Trial Trial { get; set; }
[JsonIgnore]
public TrialSite TrialSite { get; set; }
[JsonIgnore]
public TrialSite TrialSite { get; set; }
[ForeignKey("PatientId")]
[JsonIgnore]
public SCPPatient Patient { get; set; }
#endregion
#endregion
public string AccessionNumber { get; set; } = null!;
public string AcquisitionNumber { get; set; } = null!;
//0 未知 1 单重 2 双重
public bool IsDoubleReview { get; set; }
public string AcquisitionTime { get; set; } = null!;
public Guid SeqId { get; set; }
[StringLength(512)]
public string BodyPartExamined { get; set; } = null!;
[ForeignKey("PatientId")]
[JsonIgnore]
public SCPPatient Patient { get; set; }
public Guid PatientId { get; set; }
public string BodyPartForEdit { get; set; } = null!;
public string StudyInstanceUid { get; set; } = string.Empty;
public DateTime? StudyTime { get; set; }
public string Modalities { get; set; } = string.Empty;
public string CalledAE { get; set; } = null!;
public string Description { get; set; } = string.Empty;
public int SeriesCount { get; set; } = 0;
public int InstanceCount { get; set; } = 0;
public string CallingAE { get; set; } = null!;
[StringLength(1000)]
public string Description { get; set; } = null!;
public string InstitutionName { get; set; } = string.Empty;
public string PatientIdStr { get; set; } = string.Empty;
public string PatientName { get; set; } = string.Empty;
public string PatientAge { get; set; } = string.Empty;
public string PatientSex { get; set; } = string.Empty;
public int InstanceCount { get; set; }
public string StudyId { get; set; } = string.Empty;
public string AccessionNumber { get; set; } = string.Empty;
public string PatientBirthDate { get; set; } = string.Empty;
public string AcquisitionTime { get; set; } = string.Empty;
public string AcquisitionNumber { get; set; } = string.Empty;
public string TriggerTime { get; set; } = string.Empty;
public string InstitutionName { get; set; } = null!;
public string BodyPartExamined { get; set; } = string.Empty;
public bool IsDoubleReview { get; set; }
public string BodyPartForEdit { get; set; } = string.Empty;
public bool IsUploadFinished { get; set; }
public string ModalityForEdit { get; set; } = string.Empty;
public string Modalities { get; set; } = null!;
public string ModalityForEdit { get; set; } = null!;
public string PatientAge { get; set; } = null!;
public string CallingAE { get; set; } = string.Empty;
public string PatientBirthDate { get; set; } = null!;
public string CalledAE { get; set; } = string.Empty;
public Guid PatientId { get; set; }
public bool IsUploadFinished { get; set; }
public string PatientIdStr { get; set; } = null!;
public string PatientName { get; set; } = null!;
public Guid TrialId { get; set; }
public Guid TrialSiteId { get; set; }
public string PatientSex { get; set; } = null!;
public Guid? SubjectVisitId { get; set; }
[Comment(" 序列Id 避免内存移动")]
public Guid SeqId { get; set; }
public int SeriesCount { get; set; }
[Comment(" DicomTag.StudyID")]
public string StudyId { get; set; } = null!;
[StringLength(500)]
public string StudyInstanceUid { get; set; } = null!;
public DateTime? StudyTime { get; set; }
public Guid? SubjectVisitId { get; set; }
public Guid TrialId { get; set; }
public Guid TrialSiteId { get; set; }
public string TriggerTime { get; set; } = null!;
[Comment(" 上传时间")]
public DateTime? UploadedTime { get; set; }
public string Uploader { get; set; } = null!;
}
}
+26 -23
View File
@@ -1,40 +1,43 @@
//--------------------------------------------------------------------
// 此代码由T4模板自动生成 byzhouhang 20210918
// 生成时间 2022-03-03 15:26:35
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
using Microsoft.EntityFrameworkCore;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models;
[Comment("系统 - 匿名化配置(需要同步)")]
[Table("SystemAnonymization")]
public class SystemAnonymization : BaseFullAuditEntity
namespace IRaCIS.Core.Domain.Models
{
#region
///<summary>
///SystemAnonymization
///</summary>
[Table("SystemAnonymization")]
public class SystemAnonymization : BaseFullAuditEntity
{
#region
#endregion
public string Element { get; set; } = null!;
#endregion
public string Group { get; set; } = String.Empty;
public string Group { get; set; } = null!;
public string Element { get; set; } = String.Empty;
public bool IsAdd { get; set; }
public bool IsEnable { get; set; }
public string TagDescription { get; set; } = String.Empty;
public bool IsFixed { get; set; }
public string ReplaceValue { get; set; } = null!;
public string TagDescriptionCN { get; set; } = string.Empty;
public string TagDescription { get; set; } = null!;
public string TagDescriptionCN { get; set; } = null!;
public string ReplaceValue { get; set; } = String.Empty;
public string ValueRepresentation { get; set; } = null!;
public string ValueRepresentation { get; set; } = String.Empty;
public bool IsAdd { get; set; }
public bool IsEnable { get; set; }
public bool IsFixed { get; set; }
}
}
+38 -41
View File
@@ -1,56 +1,53 @@
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models;
public class TaskInstance : BaseFullAuditEntity, IEntitySeqId
namespace IRaCIS.Core.Domain.Models
{
#region
[JsonIgnore]
[ForeignKey("SeriesId")]
public TaskSeries TaskSeries { get; set; }
public class TaskInstance : BaseFullAuditEntity, IEntitySeqId
{
#region
[JsonIgnore]
[ForeignKey("SeriesId")]
public TaskSeries TaskSeries { get; set; }
[JsonIgnore]
[ForeignKey("StudyId")]
public TaskStudy TaskStudy { get; set; }
#endregion
[JsonIgnore]
[ForeignKey("StudyId")]
public TaskStudy TaskStudy { get; set; }
#endregion
public Guid SeqId { get; set; }
public Guid StudyId { get; set; }
public Guid SeriesId { get; set; }
public string StudyInstanceUid { get; set; } = string.Empty;
public string SeriesInstanceUid { get; set; } = string.Empty;
public string SopInstanceUid { get; set; } = string.Empty;
public int InstanceNumber { get; set; }
public DateTime? InstanceTime { get; set; }
public bool CPIStatus { get; set; }
public int ImageRows { get; set; }
public int ImageColumns { get; set; }
public int SliceLocation { get; set; }
public Guid SeqId { get; set; }
public Guid StudyId { get; set; }
public Guid SeriesId { get; set; }
public string StudyInstanceUid { get; set; } = string.Empty;
public string SeriesInstanceUid { get; set; } = string.Empty;
public string SopInstanceUid { get; set; } = string.Empty;
public int InstanceNumber { get; set; }
public DateTime? InstanceTime { get; set; }
public bool CPIStatus { get; set; }
public int ImageRows { get; set; }
public int ImageColumns { get; set; }
public int SliceLocation { get; set; }
public string SliceThickness { get; set; } = string.Empty;
public int NumberOfFrames { get; set; }
public string PixelSpacing { get; set; } = string.Empty;
public string SliceThickness { get; set; } = string.Empty;
public int NumberOfFrames { get; set; }
public string PixelSpacing { get; set; } = string.Empty;
public string ImagerPixelSpacing { get; set; } = string.Empty;
public string FrameOfReferenceUID { get; set; } = string.Empty;
public string WindowCenter { get; set; } = string.Empty;
public string WindowWidth { get; set; } = string.Empty;
public string ImagerPixelSpacing { get; set; } = string.Empty;
public string FrameOfReferenceUID { get; set; } = string.Empty;
public string WindowCenter { get; set; } = string.Empty;
public string WindowWidth { get; set; } = string.Empty;
public Guid TrialId { get; set; }
public Guid SubjectId { get; set; }
public Guid VisitTaskId { get; set; }
public bool Anonymize { get; set; }
public string Path { get; set; } = string.Empty;
public Guid TrialId { get; set; }
public Guid SubjectId { get; set; }
public Guid VisitTaskId { get; set; }
public bool Anonymize { get; set; }
public string Path { get; set; } = string.Empty;
public string HtmlPath { get; set; }=string.Empty;
public string HtmlPath { get; set; } = string.Empty;
public long? FileSize { get; set; }
public long? FileSize { get; set; }
}
}
+36 -40
View File
@@ -1,54 +1,50 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models;
public class TaskSeries : BaseFullDeleteAuditEntity, IEntitySeqId
namespace IRaCIS.Core.Domain.Models
{
#region
[JsonIgnore]
[ForeignKey("StudyId")]
public TaskStudy TaskStudy { get; set; }
public class TaskSeries : BaseFullDeleteAuditEntity, IEntitySeqId
{
#region
[JsonIgnore]
[ForeignKey("StudyId")]
public TaskStudy TaskStudy { get; set; }
[JsonIgnore]
public List<TaskInstance> InstanceList { get; set; }
#endregion
[JsonIgnore]
public List<TaskInstance> InstanceList { get; set; }
#endregion
public Guid SeqId { get; set; }
public Guid StudyId { get; set; }
public string StudyInstanceUid { get; set; } = String.Empty;
public string SeriesInstanceUid { get; set; } = String.Empty;
public int SeriesNumber { get; set; }
public DateTime? SeriesTime { get; set; }
public string Modality { get; set; } = String.Empty;
public string Description { get; set; } = String.Empty;
public int InstanceCount { get; set; }
public string SliceThickness { get; set; } = String.Empty;
public Guid SeqId { get; set; }
public Guid StudyId { get; set; }
public string StudyInstanceUid { get; set; } = String.Empty;
public string SeriesInstanceUid { get; set; } = String.Empty;
public int SeriesNumber { get; set; }
public DateTime? SeriesTime { get; set; }
public string Modality { get; set; } = String.Empty;
public string Description { get; set; } = String.Empty;
public int InstanceCount { get; set; }
public string SliceThickness { get; set; } = String.Empty;
public string ImagePositionPatient { get; set; } = String.Empty;
public string ImageOrientationPatient { get; set; } = String.Empty;
public string BodyPartExamined { get; set; } = String.Empty;
public string SequenceName { get; set; } = String.Empty;
public string ProtocolName { get; set; } = String.Empty;
public string ImagerPixelSpacing { get; set; } = String.Empty;
public string ImagePositionPatient { get; set; } = String.Empty;
public string ImageOrientationPatient { get; set; } = String.Empty;
public string BodyPartExamined { get; set; } = String.Empty;
public string SequenceName { get; set; } = String.Empty;
public string ProtocolName { get; set; } = String.Empty;
public string ImagerPixelSpacing { get; set; } = String.Empty;
public string AcquisitionTime { get; set; } = string.Empty;
public string AcquisitionNumber { get; set; } = string.Empty;
public string TriggerTime { get; set; } = string.Empty;
public string AcquisitionTime { get; set; } = string.Empty;
public string AcquisitionNumber { get; set; } = string.Empty;
public string TriggerTime { get; set; } = string.Empty;
public Guid TrialId { get; set; }
public Guid SubjectId { get; set; }
public Guid VisitTaskId { get; set; }
public Guid TrialId { get; set; }
public Guid SubjectId { get; set; }
public Guid VisitTaskId { get; set; }
public string BodyPartForEdit { get; set; } = string.Empty;
public string BodyPartForEdit { get; set; } = string.Empty;
public bool IsReading { get; set; } = true;
public bool IsReading { get; set; } = true;
public string ImageResizePath { get; set; }=string.Empty;
public string ImageResizePath { get; set; } = string.Empty;
}
}
+48 -52
View File
@@ -1,83 +1,79 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models;
public class TaskStudy : BaseFullDeleteAuditEntity, IEntitySeqId
namespace IRaCIS.Core.Domain.Models
{
#region
[JsonIgnore]
[ForeignKey("VisitTaskId")]
public VisitTask VisitTask { get; set; }
public class TaskStudy : BaseFullDeleteAuditEntity, IEntitySeqId
{
#region
[JsonIgnore]
[ForeignKey("VisitTaskId")]
public VisitTask VisitTask { get; set; }
[JsonIgnore]
public List<StudyMonitor> DicomStudyMonitorList { get; set; } = new List<StudyMonitor>();
[JsonIgnore]
public List<StudyMonitor> DicomStudyMonitorList { get; set; } = new List<StudyMonitor>();
[JsonIgnore]
public List<TaskInstance> InstanceList { get; set; }
[JsonIgnore]
public List<TaskInstance> InstanceList { get; set; }
[JsonIgnore]
public List<TaskSeries> SeriesList { get; set; }
[JsonIgnore]
public List<TaskSeries> SeriesList { get; set; }
[JsonIgnore]
[ForeignKey("SubjectId")]
public Subject Subject { get; set; }
[JsonIgnore]
[ForeignKey("SubjectId")]
public Subject Subject { get; set; }
#endregion
#endregion
public Guid SeqId { get; set; }
public Guid SeqId { get; set; }
public Guid TrialId { get; set; }
public Guid TrialId { get; set; }
public Guid SubjectId { get; set; }
public Guid SubjectId { get; set; }
public Guid VisitTaskId { get; set; }
public Guid VisitTaskId { get; set; }
public int Code { get; set; } = 0;
public int Code { get; set; } = 0;
public string StudyCode { get; set; } = string.Empty;
public string StudyCode { get; set; } = string.Empty;
public string StudyInstanceUid { get; set; } = string.Empty;
public DateTime? StudyTime { get; set; }
public string Modalities { get; set; } = string.Empty;
public string StudyInstanceUid { get; set; } = string.Empty;
public DateTime? StudyTime { get; set; }
public string Modalities { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public int SeriesCount { get; set; } = 0;
public int InstanceCount { get; set; } = 0;
public string Description { get; set; } = string.Empty;
public int SeriesCount { get; set; } = 0;
public int InstanceCount { get; set; } = 0;
public string InstitutionName { get; set; } = string.Empty;
public string PatientId { get; set; } = string.Empty;
public string PatientName { get; set; } = string.Empty;
public string PatientAge { get; set; } = string.Empty;
public string PatientSex { get; set; } = string.Empty;
public string InstitutionName { get; set; } = string.Empty;
public string PatientId { get; set; } = string.Empty;
public string PatientName { get; set; } = string.Empty;
public string PatientAge { get; set; } = string.Empty;
public string PatientSex { get; set; } = string.Empty;
public string StudyId { get; set; } = string.Empty;
public string AccessionNumber { get; set; } = string.Empty;
public string PatientBirthDate { get; set; } = string.Empty;
public string AcquisitionTime { get; set; } = string.Empty;
public string AcquisitionNumber { get; set; } = string.Empty;
public string TriggerTime { get; set; } = string.Empty;
public string StudyId { get; set; } = string.Empty;
public string AccessionNumber { get; set; } = string.Empty;
public string PatientBirthDate { get; set; } = string.Empty;
public string AcquisitionTime { get; set; } = string.Empty;
public string AcquisitionNumber { get; set; } = string.Empty;
public string TriggerTime { get; set; } = string.Empty;
public string BodyPartExamined { get; set; } = string.Empty;
public string BodyPartExamined { get; set; } = string.Empty;
public string BodyPartForEdit { get; set; } = string.Empty;
public string BodyPartForEdit { get; set; } = string.Empty;
public string ModalityForEdit { get; set; } = string.Empty;
public string ModalityForEdit { get; set; } = string.Empty;
//0 未知 1 单重 2 双重
public bool IsDoubleReview { get; set; }
//0 未知 1 单重 2 双重
public bool IsDoubleReview { get; set; }
}
}
+19 -21
View File
@@ -1,41 +1,39 @@
//--------------------------------------------------------------------
// 此代码由T4模板自动生成 byzhouhang 20210918
// 生成时间 2024-03-22 15:44:11
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
using System;
using IRaCIS.Core.Domain.Share;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace IRaCIS.Core.Domain.Models;
[Comment("项目 - 项目DicomAE")]
[Table("TrialDicomAE")]
public class TrialDicomAE : BaseFullAuditEntity
namespace IRaCIS.Core.Domain.Models
{
#region
///<summary>
///DicomAE
///</summary>
[Table("TrialDicomAE")]
public class TrialDicomAE : BaseFullAuditEntity
{
#region
#endregion
public Guid TrialId { get; set; }
#endregion
public Guid TrialId { get; set; }
public string CalledAE { get; set; } = string.Empty;
public string CalledAE { get; set; } = string.Empty;
public string IP { get; set; } = string.Empty;
public string IP { get; set; } = string.Empty;
public int Port { get; set; }
public int Port { get; set; }
public string Modality { get; set; } = string.Empty;
public string Modality { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public DateTime? LatestTestTime { get; set; }
public DateTime? LatestTestTime { get; set; }
public bool? IsTestOK { get; set; }
public bool? IsTestOK { get; set; }
}
}
+30 -41
View File
@@ -1,55 +1,44 @@
using IRaCIS.Core.Domain.Models;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IRaCIS.Core.Domain.Models;
[Comment("项目 - 影像下载监控")]
[Table("TrialImageDownload")]
public class TrialImageDownload : BaseFullAuditEntity
namespace IRaCIS.Core.Domain.Models
{
#region
[JsonIgnore]
public Trial Trial { get; set; }
[Table("TrialImageDownload")]
public class TrialImageDownload : BaseFullAuditEntity
{
#region
[JsonIgnore]
public Trial Trial { get; set; }
#endregion
#endregion
public Guid TrialId { get; set; }
public Guid TrialId { get; set; }
public string SubjectCode { get; set; }
public string SubjectCode { get; set; }
public bool IsSuccess { get; set; }
public bool IsSuccess { get; set; }
public DateTime DownloadStartTime { get; set; }
public DateTime? DownloadEndTime { get; set; }
public DateTime DownloadStartTime { get; set; }
public DateTime? DownloadEndTime { get; set; }
[StringLength(400)]
public string VisitName { get; set; }
public string VisitName { get; set; }
public ImageType ImageType { get; set; }
public ImageType ImageType { get; set; }
public int NoneDicomStudyCount { get; set; }
public int NoneDicomStudyCount { get; set; }
public int DicomStudyCount { get; set; }
public int DicomStudyCount { get; set; }
public int ImageCount { get; set; }
public long ImageSize { get; set; }
public int ImageCount { get; set; }
public long ImageSize { get; set; }
public string IP { get; set; }
public string IP { get; set; }
}
public enum ImageType
{
Dicom = 1,
NoneDicom = 2,
DicomAndNoneDicom = 3
};
}
public enum ImageType
{
Dicom = 1,
NoneDicom = 2,
DicomAndNoneDicom = 3
};