Merge branch 'Test_IRC_Net8' of https://gitea.frp.extimaging.com/XCKJ/irc-netcore-api into Test_IRC_Net8
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
commit
9834335767
|
@ -514,14 +514,12 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
|
|
||||||
public class IRReadingDownloadQuery : SortInput
|
public class IRReadingDownloadQuery : SortInput
|
||||||
{
|
{
|
||||||
[NotDefault]
|
public Guid? SubjectId { get; set; }
|
||||||
public Guid SubjectId { get; set; }
|
|
||||||
|
|
||||||
[NotDefault]
|
[NotDefault]
|
||||||
public Guid TrialReadingCriterionId { get; set; }
|
public Guid TrialReadingCriterionId { get; set; }
|
||||||
|
|
||||||
[NotDefault]
|
public string? SubjectCode { get; set; }
|
||||||
public string SubjectCode { get; set; }
|
|
||||||
|
|
||||||
public Guid? VisitTaskId { get; set; }
|
public Guid? VisitTaskId { get; set; }
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
using FellowOakDicom;
|
using DocumentFormat.OpenXml.EMMA;
|
||||||
|
using FellowOakDicom;
|
||||||
using IRaCIS.Core.Application.Contracts;
|
using IRaCIS.Core.Application.Contracts;
|
||||||
using IRaCIS.Core.Application.Contracts.Dicom.DTO;
|
using IRaCIS.Core.Application.Contracts.Dicom.DTO;
|
||||||
using IRaCIS.Core.Application.Filter;
|
using IRaCIS.Core.Application.Filter;
|
||||||
|
@ -806,32 +807,62 @@ namespace IRaCIS.Core.Application.Service.ImageAndDoc
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
public async Task<List<SubjectCRCImageUploadedStudyDto>> GetSubjectImageDownloadSelectList(IRReadingDownloadQuery inQuery)
|
public async Task<List<SubjectCRCImageUploadedStudyDto>> GetSubjectImageDownloadSelectList(IRReadingDownloadQuery inQuery)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
var doctorUserId = _userInfo.Id;
|
||||||
|
var isAnalysisCreate = false;
|
||||||
|
|
||||||
//要根据标准阅片顺序,确定是否查询单个任务的,还是查询所有的
|
//要根据标准阅片顺序,确定是否查询单个任务的,还是查询所有的
|
||||||
var criterionInfo = await _readingQuestionCriterionTrialRepository.Where(t => t.Id == inQuery.TrialReadingCriterionId)
|
var criterionInfo = await _readingQuestionCriterionTrialRepository.Where(t => t.Id == inQuery.TrialReadingCriterionId)
|
||||||
.Select(t => new { t.IsReadingTaskViewInOrder }).FirstNotNullAsync();
|
.Select(t => new { t.IsReadingTaskViewInOrder }).FirstNotNullAsync();
|
||||||
|
|
||||||
|
var subjectCode = string.Empty;
|
||||||
|
var subjectId = inQuery.SubjectId;
|
||||||
|
|
||||||
var doctorUserId = _userInfo.Id;
|
if (criterionInfo.IsReadingTaskViewInOrder == ReadingOrder.Random)
|
||||||
|
|
||||||
var isAnalysisCreate = false;
|
|
||||||
|
|
||||||
//医学审核查看下载按钮,这个时候需要知道医生
|
|
||||||
if (inQuery.VisitTaskId != null)
|
|
||||||
{
|
{
|
||||||
var info = await _visitTaskRepository.Where(t => t.Id == inQuery.VisitTaskId).Select(t => new { t.DoctorUserId, t.IsAnalysisCreate }).FirstNotNullAsync();
|
if (inQuery.VisitTaskId == null)
|
||||||
|
{
|
||||||
|
throw new Exception("无序阅片,前端参数传递错误");
|
||||||
|
}
|
||||||
|
|
||||||
doctorUserId = (Guid)info.DoctorUserId!;
|
}
|
||||||
isAnalysisCreate = info.IsAnalysisCreate;
|
else
|
||||||
|
{
|
||||||
|
if (inQuery.SubjectId == null || inQuery.SubjectCode == null)
|
||||||
|
{
|
||||||
|
throw new Exception("有序阅片,前端参数传递错误");
|
||||||
|
}
|
||||||
|
|
||||||
|
//考虑到一致性分析,必须要这个编号进行过滤
|
||||||
|
subjectCode = inQuery.SubjectCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
var query = _visitTaskRepository.Where(t => t.SubjectId == inQuery.SubjectId && t.TrialReadingCriterionId == inQuery.TrialReadingCriterionId
|
if (inQuery.VisitTaskId != null)
|
||||||
|
{
|
||||||
|
//考虑到一致性分析,必须要这个编号进行过滤
|
||||||
|
//医学审核查看下载按钮,这个时候需要知道医生
|
||||||
|
|
||||||
|
var taskInfo = await _visitTaskRepository.Where(t => t.Id == inQuery.VisitTaskId).Select(t => new {
|
||||||
|
SubjectCode = t.IsAnalysisCreate ? t.BlindSubjectCode : t.Subject.Code,
|
||||||
|
SubjectId = t.SubjectId,
|
||||||
|
t.DoctorUserId,
|
||||||
|
t.IsAnalysisCreate
|
||||||
|
}).FirstNotNullAsync();
|
||||||
|
|
||||||
|
subjectId = taskInfo.SubjectId;
|
||||||
|
subjectCode = taskInfo.SubjectCode;
|
||||||
|
doctorUserId = (Guid)taskInfo.DoctorUserId!;
|
||||||
|
isAnalysisCreate = taskInfo.IsAnalysisCreate;
|
||||||
|
}
|
||||||
|
|
||||||
|
var query = _visitTaskRepository.Where(t => t.SubjectId == subjectId && t.TrialReadingCriterionId == inQuery.TrialReadingCriterionId
|
||||||
&& t.SourceSubjectVisitId != null && t.DoctorUserId == doctorUserId && t.TaskState == TaskState.Effect)
|
&& t.SourceSubjectVisitId != null && t.DoctorUserId == doctorUserId && t.TaskState == TaskState.Effect)
|
||||||
//满足 有序,或者随机只看到当前任务的dicom 非dicom检查
|
//满足 有序,或者随机只看到当前任务的dicom 非dicom检查
|
||||||
.WhereIf(criterionInfo.IsReadingTaskViewInOrder != ReadingOrder.SubjectRandom && inQuery.VisitTaskId != null, t => t.Id == inQuery.VisitTaskId)
|
.WhereIf(criterionInfo.IsReadingTaskViewInOrder != ReadingOrder.SubjectRandom && inQuery.VisitTaskId != null, t => t.Id == inQuery.VisitTaskId)
|
||||||
.ProjectTo<SubjectCRCImageUploadedDto>(_mapper.ConfigurationProvider);
|
.ProjectTo<SubjectCRCImageUploadedDto>(_mapper.ConfigurationProvider);
|
||||||
|
|
||||||
//这里过滤是否是一致性分析的
|
//这里过滤是否是一致性分析的
|
||||||
var list = await query.Where(t => t.SubjectCode == inQuery.SubjectCode).ToListAsync();
|
var list = await query.Where(t => t.SubjectCode == subjectCode).ToListAsync();
|
||||||
|
|
||||||
foreach (var item in list)
|
foreach (var item in list)
|
||||||
{
|
{
|
||||||
|
|
|
@ -19,6 +19,7 @@ public abstract class Entity : IEntity<Guid>
|
||||||
|
|
||||||
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||||
public Guid Id { get; set; }
|
public Guid Id { get; set; }
|
||||||
|
|
||||||
#region 领域事件 仅仅允许通过提供的方法进行操作
|
#region 领域事件 仅仅允许通过提供的方法进行操作
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
private readonly List<DomainEvent> _domainEvents = [];
|
private readonly List<DomainEvent> _domainEvents = [];
|
||||||
|
|
|
@ -12,8 +12,6 @@ public class SubjectCriteriaEvaluation : BaseFullAuditEntity
|
||||||
[ForeignKey("TrialReadingCriterionId")]
|
[ForeignKey("TrialReadingCriterionId")]
|
||||||
public ReadingQuestionCriterionTrial TrialReadingCriterion { get; set; }
|
public ReadingQuestionCriterionTrial TrialReadingCriterion { get; set; }
|
||||||
|
|
||||||
[JsonIgnore]
|
|
||||||
public List<SubjectCriteriaEvaluationVisitFilter> SubjectCriteriaEvaluationVisitFilterList { get; set; }
|
|
||||||
#endregion
|
#endregion
|
||||||
public Guid SubjectId { get; set; }
|
public Guid SubjectId { get; set; }
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,6 @@ public class SubjectCriteriaEvaluationVisitFilter : BaseFullAuditEntity
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
[ForeignKey("TrialReadingCriterionId")]
|
[ForeignKey("TrialReadingCriterionId")]
|
||||||
public ReadingQuestionCriterionTrial TrialReadingCriterion { get; set; }
|
public ReadingQuestionCriterionTrial TrialReadingCriterion { get; set; }
|
||||||
[JsonIgnore]
|
|
||||||
public SubjectCriteriaEvaluation SubjectCriteriaEvaluation { get; set; }
|
|
||||||
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ public class IRaCISDBContextFactory : IDesignTimeDbContextFactory<IRaCISDBContex
|
||||||
public IRaCISDBContext CreateDbContext(string[] args)
|
public IRaCISDBContext CreateDbContext(string[] args)
|
||||||
{
|
{
|
||||||
var optionsBuilder = new DbContextOptionsBuilder<IRaCISDBContext>();
|
var optionsBuilder = new DbContextOptionsBuilder<IRaCISDBContext>();
|
||||||
optionsBuilder.UseSqlServer("Server=106.14.89.110,1434;Database=Test_IRC_CodeFirst;User ID=sa;Password=xc@123456;TrustServerCertificate=true", contextOptionsBuilder => contextOptionsBuilder.EnableRetryOnFailure());
|
optionsBuilder.UseSqlServer("Server=106.14.89.110,1434;Database=Test_IRC_KEY;User ID=sa;Password=xc@123456;TrustServerCertificate=true", contextOptionsBuilder => contextOptionsBuilder.EnableRetryOnFailure());
|
||||||
//迁移的时候,不生成外键
|
//迁移的时候,不生成外键
|
||||||
optionsBuilder.ReplaceService<IMigrationsSqlGenerator, NoForeignKeyMigrationsSqlGenerator>();
|
optionsBuilder.ReplaceService<IMigrationsSqlGenerator, NoForeignKeyMigrationsSqlGenerator>();
|
||||||
return new IRaCISDBContext(optionsBuilder.Options);
|
return new IRaCISDBContext(optionsBuilder.Options);
|
||||||
|
|
|
@ -0,0 +1,81 @@
|
||||||
|
//using IRaCIS.Core.Domain.Models;
|
||||||
|
//using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||||
|
|
||||||
|
//namespace IRaCIS.Core.Infra.EFCore.EntityConfigration;
|
||||||
|
|
||||||
|
///// <summary>
|
||||||
|
///// 医学影像 数据量大,主键是 SeqId ,Id 是自己算的,也可以作为Id,但是不是有序的,数据量大,会导致性能很差,所以是逻辑主键
|
||||||
|
///// </summary>
|
||||||
|
|
||||||
|
//public class DicomStudyConfigration : IEntityTypeConfiguration<DicomStudy>
|
||||||
|
//{
|
||||||
|
// public void Configure(EntityTypeBuilder<DicomStudy> builder)
|
||||||
|
// {
|
||||||
|
// builder.HasKey(e => e.SeqId);
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
|
||||||
|
//public class DicomSeriesConfigration : IEntityTypeConfiguration<DicomSeries>
|
||||||
|
//{
|
||||||
|
// public void Configure(EntityTypeBuilder<DicomSeries> builder)
|
||||||
|
// {
|
||||||
|
// builder.HasKey(e => e.SeqId);
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
|
||||||
|
//public class DicomInstanceConfigration : IEntityTypeConfiguration<DicomInstance>
|
||||||
|
//{
|
||||||
|
// public void Configure(EntityTypeBuilder<DicomInstance> builder)
|
||||||
|
// {
|
||||||
|
// builder.HasKey(e => e.SeqId);
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
|
||||||
|
//public class TaskStudyConfigration : IEntityTypeConfiguration<TaskStudy>
|
||||||
|
//{
|
||||||
|
// public void Configure(EntityTypeBuilder<TaskStudy> builder)
|
||||||
|
// {
|
||||||
|
// builder.HasKey(e => e.SeqId);
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
|
||||||
|
//public class TaskSeriesConfigration : IEntityTypeConfiguration<TaskSeries>
|
||||||
|
//{
|
||||||
|
// public void Configure(EntityTypeBuilder<TaskSeries> builder)
|
||||||
|
// {
|
||||||
|
// builder.HasKey(e => e.SeqId);
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
|
||||||
|
//public class TaskInstanceConfigration : IEntityTypeConfiguration<TaskInstance>
|
||||||
|
//{
|
||||||
|
// public void Configure(EntityTypeBuilder<TaskInstance> builder)
|
||||||
|
// {
|
||||||
|
// builder.HasKey(e => e.SeqId);
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
|
||||||
|
|
||||||
|
//public class SCPStudyConfigration : IEntityTypeConfiguration<SCPStudy>
|
||||||
|
//{
|
||||||
|
// public void Configure(EntityTypeBuilder<SCPStudy> builder)
|
||||||
|
// {
|
||||||
|
// builder.HasKey(e => e.SeqId);
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
|
||||||
|
//public class SCPSeriesConfigration : IEntityTypeConfiguration<SCPSeries>
|
||||||
|
//{
|
||||||
|
// public void Configure(EntityTypeBuilder<SCPSeries> builder)
|
||||||
|
// {
|
||||||
|
// builder.HasKey(e => e.SeqId);
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
|
||||||
|
//public class SCPInstanceConfigration : IEntityTypeConfiguration<SCPInstance>
|
||||||
|
//{
|
||||||
|
// public void Configure(EntityTypeBuilder<SCPInstance> builder)
|
||||||
|
// {
|
||||||
|
// builder.HasKey(e => e.SeqId);
|
||||||
|
// }
|
||||||
|
//}
|
|
@ -1,22 +0,0 @@
|
||||||
using IRaCIS.Core.Domain.Models;
|
|
||||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
|
||||||
|
|
||||||
namespace IRaCIS.Core.Infra.EFCore.EntityConfigration
|
|
||||||
{
|
|
||||||
|
|
||||||
public class SubjectCriteriaEvaluationConfigration : IEntityTypeConfiguration<SubjectCriteriaEvaluation>
|
|
||||||
{
|
|
||||||
|
|
||||||
public void Configure(EntityTypeBuilder<SubjectCriteriaEvaluation> builder)
|
|
||||||
{
|
|
||||||
builder
|
|
||||||
.HasMany(s => s.SubjectCriteriaEvaluationVisitFilterList)
|
|
||||||
.WithOne(c => c.SubjectCriteriaEvaluation)
|
|
||||||
.HasForeignKey(s => new { s.SubjectId, s.TrialReadingCriterionId })
|
|
||||||
.HasPrincipalKey(c => new { c.SubjectId, c.TrialReadingCriterionId });
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
|
@ -12,7 +12,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||||
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(IRaCISDBContext))]
|
[DbContext(typeof(IRaCISDBContext))]
|
||||||
[Migration("20240925064340_CodeFirst_Init")]
|
[Migration("20240926022902_CodeFirst_Init")]
|
||||||
partial class CodeFirst_Init
|
partial class CodeFirst_Init
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
@ -780,7 +780,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
|
||||||
modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b =>
|
modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("SeqId")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<bool>("Anonymize")
|
b.Property<bool>("Anonymize")
|
||||||
|
@ -808,6 +809,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(1000)
|
.HasMaxLength(1000)
|
||||||
.HasColumnType("nvarchar(1000)");
|
.HasColumnType("nvarchar(1000)");
|
||||||
|
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<int>("ImageColumns")
|
b.Property<int>("ImageColumns")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
@ -838,9 +842,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
b.Property<Guid>("SeqId")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<Guid>("SeriesId")
|
b.Property<Guid>("SeriesId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
@ -895,7 +896,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("SeqId");
|
||||||
|
|
||||||
b.HasIndex("CreateUserId");
|
b.HasIndex("CreateUserId");
|
||||||
|
|
||||||
|
@ -911,7 +912,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
|
||||||
modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b =>
|
modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("SeqId")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("AcquisitionNumber")
|
b.Property<string>("AcquisitionNumber")
|
||||||
|
@ -951,6 +953,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("ImageOrientationPatient")
|
b.Property<string>("ImageOrientationPatient")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
|
@ -990,9 +995,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
b.Property<Guid>("SeqId")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<string>("SequenceName")
|
b.Property<string>("SequenceName")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
|
@ -1045,7 +1047,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
b.Property<Guid?>("VisitTaskId")
|
b.Property<Guid?>("VisitTaskId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("SeqId");
|
||||||
|
|
||||||
b.HasIndex("CreateUserId");
|
b.HasIndex("CreateUserId");
|
||||||
|
|
||||||
|
@ -1059,8 +1061,10 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
|
||||||
modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b =>
|
modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("SeqId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasComment("序列Id 避免内存移动");
|
||||||
|
|
||||||
b.Property<string>("AccessionNumber")
|
b.Property<string>("AccessionNumber")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
|
@ -1107,6 +1111,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<int>("InstanceCount")
|
b.Property<int>("InstanceCount")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
@ -1159,10 +1166,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
b.Property<Guid>("SeqId")
|
|
||||||
.HasColumnType("uniqueidentifier")
|
|
||||||
.HasComment("序列Id 避免内存移动");
|
|
||||||
|
|
||||||
b.Property<int>("SeriesCount")
|
b.Property<int>("SeriesCount")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
@ -1214,7 +1217,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("SeqId");
|
||||||
|
|
||||||
b.HasIndex("CreateUserId");
|
b.HasIndex("CreateUserId");
|
||||||
|
|
||||||
|
@ -3729,8 +3732,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
|
||||||
b.Property<string>("Content")
|
b.Property<string>("Content")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(1000)
|
.HasMaxLength(1200)
|
||||||
.HasColumnType("nvarchar(1000)");
|
.HasColumnType("nvarchar(1200)");
|
||||||
|
|
||||||
b.Property<DateTime>("CreateTime")
|
b.Property<DateTime>("CreateTime")
|
||||||
.HasColumnType("datetime2");
|
.HasColumnType("datetime2");
|
||||||
|
@ -6914,7 +6917,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
|
||||||
modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b =>
|
modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("SeqId")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<bool>("Anonymize")
|
b.Property<bool>("Anonymize")
|
||||||
|
@ -6937,6 +6941,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<int>("ImageColumns")
|
b.Property<int>("ImageColumns")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
@ -6967,9 +6974,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
b.Property<Guid>("SeqId")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<Guid>("SeriesId")
|
b.Property<Guid>("SeriesId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
@ -7015,7 +7019,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("SeqId");
|
||||||
|
|
||||||
b.HasIndex("CreateUserId");
|
b.HasIndex("CreateUserId");
|
||||||
|
|
||||||
|
@ -7107,7 +7111,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
|
||||||
modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b =>
|
modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("SeqId")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("AcquisitionNumber")
|
b.Property<string>("AcquisitionNumber")
|
||||||
|
@ -7147,6 +7152,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("ImageOrientationPatient")
|
b.Property<string>("ImageOrientationPatient")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
|
@ -7183,9 +7191,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
b.Property<Guid>("SeqId")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<string>("SequenceName")
|
b.Property<string>("SequenceName")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
|
@ -7226,7 +7231,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
b.Property<Guid>("UpdateUserId")
|
b.Property<Guid>("UpdateUserId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("SeqId");
|
||||||
|
|
||||||
b.HasIndex("CreateUserId");
|
b.HasIndex("CreateUserId");
|
||||||
|
|
||||||
|
@ -7240,7 +7245,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
|
||||||
modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b =>
|
modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("SeqId")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("AccessionNumber")
|
b.Property<string>("AccessionNumber")
|
||||||
|
@ -7295,6 +7301,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<int>("InstanceCount")
|
b.Property<int>("InstanceCount")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
@ -7347,9 +7356,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
b.Property<Guid>("SeqId")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<int>("SeriesCount")
|
b.Property<int>("SeriesCount")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
@ -7386,7 +7392,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
b.Property<Guid>("UpdateUserId")
|
b.Property<Guid>("UpdateUserId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("SeqId");
|
||||||
|
|
||||||
b.HasIndex("CreateUserId");
|
b.HasIndex("CreateUserId");
|
||||||
|
|
||||||
|
@ -7973,6 +7979,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
|
||||||
b.HasIndex("CreateUserId");
|
b.HasIndex("CreateUserId");
|
||||||
|
|
||||||
|
b.HasIndex("SubjectId");
|
||||||
|
|
||||||
b.HasIndex("TrialReadingCriterionId");
|
b.HasIndex("TrialReadingCriterionId");
|
||||||
|
|
||||||
b.ToTable("SubjectCriteriaEvaluation", t =>
|
b.ToTable("SubjectCriteriaEvaluation", t =>
|
||||||
|
@ -8023,12 +8031,12 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
|
||||||
b.HasIndex("CreateUserId");
|
b.HasIndex("CreateUserId");
|
||||||
|
|
||||||
|
b.HasIndex("SubjectId");
|
||||||
|
|
||||||
b.HasIndex("SubjectVisitId");
|
b.HasIndex("SubjectVisitId");
|
||||||
|
|
||||||
b.HasIndex("TrialReadingCriterionId");
|
b.HasIndex("TrialReadingCriterionId");
|
||||||
|
|
||||||
b.HasIndex("SubjectId", "TrialReadingCriterionId");
|
|
||||||
|
|
||||||
b.ToTable("SubjectCriteriaEvaluationVisitFilter", t =>
|
b.ToTable("SubjectCriteriaEvaluationVisitFilter", t =>
|
||||||
{
|
{
|
||||||
t.HasComment("受试者 - 附加评估标准影像筛选");
|
t.HasComment("受试者 - 附加评估标准影像筛选");
|
||||||
|
@ -8506,13 +8514,13 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
|
||||||
b.Property<string>("Value")
|
b.Property<string>("Value")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(1000)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(1000)");
|
||||||
|
|
||||||
b.Property<string>("ValueCN")
|
b.Property<string>("ValueCN")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(1000)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(1000)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
@ -9209,7 +9217,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
|
||||||
modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b =>
|
modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("SeqId")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<bool>("Anonymize")
|
b.Property<bool>("Anonymize")
|
||||||
|
@ -9237,6 +9246,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(1000)
|
.HasMaxLength(1000)
|
||||||
.HasColumnType("nvarchar(1000)");
|
.HasColumnType("nvarchar(1000)");
|
||||||
|
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<int>("ImageColumns")
|
b.Property<int>("ImageColumns")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
@ -9267,9 +9279,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
b.Property<Guid>("SeqId")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<Guid>("SeriesId")
|
b.Property<Guid>("SeriesId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
@ -9324,7 +9333,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("SeqId");
|
||||||
|
|
||||||
b.HasIndex("CreateUserId");
|
b.HasIndex("CreateUserId");
|
||||||
|
|
||||||
|
@ -9532,7 +9541,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
|
||||||
modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b =>
|
modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("SeqId")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("AcquisitionNumber")
|
b.Property<string>("AcquisitionNumber")
|
||||||
|
@ -9572,6 +9582,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("ImageOrientationPatient")
|
b.Property<string>("ImageOrientationPatient")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
|
@ -9608,9 +9621,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
b.Property<Guid>("SeqId")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<string>("SequenceName")
|
b.Property<string>("SequenceName")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
|
@ -9660,7 +9670,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
b.Property<Guid>("VisitTaskId")
|
b.Property<Guid>("VisitTaskId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("SeqId");
|
||||||
|
|
||||||
b.HasIndex("CreateUserId");
|
b.HasIndex("CreateUserId");
|
||||||
|
|
||||||
|
@ -9674,7 +9684,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
|
||||||
modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b =>
|
modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("SeqId")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("AccessionNumber")
|
b.Property<string>("AccessionNumber")
|
||||||
|
@ -9722,6 +9733,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<int>("InstanceCount")
|
b.Property<int>("InstanceCount")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
@ -9768,9 +9782,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
b.Property<Guid>("SeqId")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<int>("SeriesCount")
|
b.Property<int>("SeriesCount")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
@ -9812,7 +9823,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
b.Property<Guid>("VisitTaskId")
|
b.Property<Guid>("VisitTaskId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("SeqId");
|
||||||
|
|
||||||
b.HasIndex("CreateUserId");
|
b.HasIndex("CreateUserId");
|
||||||
|
|
||||||
|
@ -15411,14 +15422,14 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
.IsRequired();
|
.IsRequired();
|
||||||
|
|
||||||
b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy")
|
b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy")
|
||||||
.WithMany("DicomStudyMonitorList")
|
.WithMany()
|
||||||
.HasForeignKey("StudyId")
|
.HasForeignKey("StudyId")
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
.IsRequired();
|
.IsRequired();
|
||||||
|
|
||||||
b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy")
|
b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy")
|
||||||
.WithMany()
|
.WithMany("DicomStudyMonitorList")
|
||||||
.HasForeignKey("StudyId")
|
.HasForeignKey("StudyId")
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
.IsRequired();
|
.IsRequired();
|
||||||
|
@ -15598,17 +15609,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
.IsRequired();
|
.IsRequired();
|
||||||
|
|
||||||
b.HasOne("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", "SubjectCriteriaEvaluation")
|
|
||||||
.WithMany("SubjectCriteriaEvaluationVisitFilterList")
|
|
||||||
.HasForeignKey("SubjectId", "TrialReadingCriterionId")
|
|
||||||
.HasPrincipalKey("SubjectId", "TrialReadingCriterionId")
|
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.Navigation("CreateUser");
|
b.Navigation("CreateUser");
|
||||||
|
|
||||||
b.Navigation("SubjectCriteriaEvaluation");
|
|
||||||
|
|
||||||
b.Navigation("SubjectVisit");
|
b.Navigation("SubjectVisit");
|
||||||
|
|
||||||
b.Navigation("TrialReadingCriterion");
|
b.Navigation("TrialReadingCriterion");
|
||||||
|
@ -17490,11 +17492,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
b.Navigation("TaskStudyList");
|
b.Navigation("TaskStudyList");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b =>
|
|
||||||
{
|
|
||||||
b.Navigation("SubjectCriteriaEvaluationVisitFilterList");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b =>
|
modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b =>
|
||||||
{
|
{
|
||||||
b.Navigation("EarlierSubjectUserList");
|
b.Navigation("EarlierSubjectUserList");
|
||||||
|
|
|
@ -457,7 +457,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
name: "DicomInstance",
|
name: "DicomInstance",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
SeqId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
Anonymize = table.Column<bool>(type: "bit", nullable: false),
|
Anonymize = table.Column<bool>(type: "bit", nullable: false),
|
||||||
CPIStatus = table.Column<bool>(type: "bit", nullable: false),
|
CPIStatus = table.Column<bool>(type: "bit", nullable: false),
|
||||||
FileSize = table.Column<long>(type: "bigint", nullable: true),
|
FileSize = table.Column<long>(type: "bigint", nullable: true),
|
||||||
|
@ -471,7 +471,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
NumberOfFrames = table.Column<int>(type: "int", nullable: false),
|
NumberOfFrames = table.Column<int>(type: "int", nullable: false),
|
||||||
Path = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: false),
|
Path = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: false),
|
||||||
PixelSpacing = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
PixelSpacing = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
SeqId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
||||||
SeriesId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
SeriesId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
SeriesInstanceUid = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
SeriesInstanceUid = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
SliceLocation = table.Column<int>(type: "int", nullable: false),
|
SliceLocation = table.Column<int>(type: "int", nullable: false),
|
||||||
|
@ -484,6 +483,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
TrialId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
TrialId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
WindowCenter = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
WindowCenter = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
WindowWidth = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
WindowWidth = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
CreateUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
CreateUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
UpdateUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
UpdateUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
@ -491,7 +491,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
},
|
},
|
||||||
constraints: table =>
|
constraints: table =>
|
||||||
{
|
{
|
||||||
table.PrimaryKey("PK_DicomInstance", x => x.Id);
|
table.PrimaryKey("PK_DicomInstance", x => x.SeqId);
|
||||||
},
|
},
|
||||||
comment: "归档 - Instance表");
|
comment: "归档 - Instance表");
|
||||||
|
|
||||||
|
@ -499,7 +499,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
name: "DicomSeries",
|
name: "DicomSeries",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
SeqId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
AcquisitionNumber = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
AcquisitionNumber = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
AcquisitionTime = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
AcquisitionTime = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
BodyPartExamined = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
BodyPartExamined = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
|
@ -513,7 +513,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
IsReading = table.Column<bool>(type: "bit", nullable: false),
|
IsReading = table.Column<bool>(type: "bit", nullable: false),
|
||||||
Modality = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
Modality = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
ProtocolName = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
ProtocolName = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
SeqId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
||||||
SequenceName = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
SequenceName = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
SeriesInstanceUid = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
SeriesInstanceUid = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
SeriesNumber = table.Column<int>(type: "int", nullable: false),
|
SeriesNumber = table.Column<int>(type: "int", nullable: false),
|
||||||
|
@ -526,6 +525,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
TrialId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
TrialId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
TriggerTime = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
TriggerTime = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
VisitTaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
VisitTaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
DeleteUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
DeleteUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
IsDeleted = table.Column<bool>(type: "bit", nullable: false),
|
IsDeleted = table.Column<bool>(type: "bit", nullable: false),
|
||||||
DeletedTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
DeletedTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
|
@ -536,7 +536,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
},
|
},
|
||||||
constraints: table =>
|
constraints: table =>
|
||||||
{
|
{
|
||||||
table.PrimaryKey("PK_DicomSeries", x => x.Id);
|
table.PrimaryKey("PK_DicomSeries", x => x.SeqId);
|
||||||
},
|
},
|
||||||
comment: "归档 - 序列表");
|
comment: "归档 - 序列表");
|
||||||
|
|
||||||
|
@ -544,7 +544,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
name: "DicomStudy",
|
name: "DicomStudy",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
SeqId = table.Column<Guid>(type: "uniqueidentifier", nullable: false, comment: "序列Id 避免内存移动"),
|
||||||
AccessionNumber = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
AccessionNumber = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
AcquisitionNumber = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
AcquisitionNumber = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
AcquisitionTime = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
AcquisitionTime = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
|
@ -563,7 +563,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
PatientId = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
PatientId = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
PatientName = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
PatientName = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
PatientSex = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
PatientSex = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
SeqId = table.Column<Guid>(type: "uniqueidentifier", nullable: false, comment: "序列Id 避免内存移动"),
|
|
||||||
SeriesCount = table.Column<int>(type: "int", nullable: false),
|
SeriesCount = table.Column<int>(type: "int", nullable: false),
|
||||||
StudyCode = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
StudyCode = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
StudyId = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "DicomTag.StudyID"),
|
StudyId = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false, comment: "DicomTag.StudyID"),
|
||||||
|
@ -575,6 +574,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
TriggerTime = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
TriggerTime = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
UploadedTime = table.Column<DateTime>(type: "datetime2", nullable: true, comment: "上传时间"),
|
UploadedTime = table.Column<DateTime>(type: "datetime2", nullable: true, comment: "上传时间"),
|
||||||
Uploader = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
Uploader = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
DeleteUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
DeleteUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
IsDeleted = table.Column<bool>(type: "bit", nullable: false),
|
IsDeleted = table.Column<bool>(type: "bit", nullable: false),
|
||||||
DeletedTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
DeletedTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
|
@ -585,7 +585,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
},
|
},
|
||||||
constraints: table =>
|
constraints: table =>
|
||||||
{
|
{
|
||||||
table.PrimaryKey("PK_DicomStudy", x => x.Id);
|
table.PrimaryKey("PK_DicomStudy", x => x.SeqId);
|
||||||
});
|
});
|
||||||
|
|
||||||
migrationBuilder.CreateTable(
|
migrationBuilder.CreateTable(
|
||||||
|
@ -1829,12 +1829,12 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
{
|
{
|
||||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
Name = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
Name = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
Value = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
Value = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: false),
|
||||||
Description = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
Description = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
ShowOrder = table.Column<int>(type: "int", nullable: false),
|
ShowOrder = table.Column<int>(type: "int", nullable: false),
|
||||||
Code = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
Code = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
ParentId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
ParentId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
ValueCN = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
ValueCN = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: false),
|
||||||
IsEnable = table.Column<bool>(type: "bit", nullable: false),
|
IsEnable = table.Column<bool>(type: "bit", nullable: false),
|
||||||
BasicDataTypeEnum = table.Column<int>(type: "int", nullable: false),
|
BasicDataTypeEnum = table.Column<int>(type: "int", nullable: false),
|
||||||
CreateUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
CreateUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
@ -4974,7 +4974,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
ClosedTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
ClosedTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
ClosedUser = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
ClosedUser = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
CloseResonEnum = table.Column<int>(type: "int", nullable: false),
|
CloseResonEnum = table.Column<int>(type: "int", nullable: false),
|
||||||
Content = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: false),
|
Content = table.Column<string>(type: "nvarchar(1200)", maxLength: 1200, nullable: false),
|
||||||
ActionContent = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: false),
|
ActionContent = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: false),
|
||||||
UserTypeEnum = table.Column<int>(type: "int", nullable: false),
|
UserTypeEnum = table.Column<int>(type: "int", nullable: false),
|
||||||
ChallengeType = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
ChallengeType = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
|
@ -5060,7 +5060,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
name: "FK_ReadingClinicalData_DicomStudy_StudyId",
|
name: "FK_ReadingClinicalData_DicomStudy_StudyId",
|
||||||
column: x => x.StudyId,
|
column: x => x.StudyId,
|
||||||
principalTable: "DicomStudy",
|
principalTable: "DicomStudy",
|
||||||
principalColumn: "Id");
|
principalColumn: "SeqId");
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_ReadingClinicalData_Trial_TrialId",
|
name: "FK_ReadingClinicalData_Trial_TrialId",
|
||||||
column: x => x.TrialId,
|
column: x => x.TrialId,
|
||||||
|
@ -5139,7 +5139,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
name: "FK_ReadingConsistentClinicalData_DicomStudy_StudyId",
|
name: "FK_ReadingConsistentClinicalData_DicomStudy_StudyId",
|
||||||
column: x => x.StudyId,
|
column: x => x.StudyId,
|
||||||
principalTable: "DicomStudy",
|
principalTable: "DicomStudy",
|
||||||
principalColumn: "Id");
|
principalColumn: "SeqId");
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_ReadingConsistentClinicalData_Trial_TrialId",
|
name: "FK_ReadingConsistentClinicalData_Trial_TrialId",
|
||||||
column: x => x.TrialId,
|
column: x => x.TrialId,
|
||||||
|
@ -5393,7 +5393,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
name: "FK_ReadingTableAnswerRowInfo_DicomInstance_InstanceId",
|
name: "FK_ReadingTableAnswerRowInfo_DicomInstance_InstanceId",
|
||||||
column: x => x.InstanceId,
|
column: x => x.InstanceId,
|
||||||
principalTable: "DicomInstance",
|
principalTable: "DicomInstance",
|
||||||
principalColumn: "Id");
|
principalColumn: "SeqId");
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_ReadingTableAnswerRowInfo_OrganInfo_OrganInfoId",
|
name: "FK_ReadingTableAnswerRowInfo_OrganInfo_OrganInfoId",
|
||||||
column: x => x.OrganInfoId,
|
column: x => x.OrganInfoId,
|
||||||
|
@ -5674,7 +5674,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
name: "SCPInstance",
|
name: "SCPInstance",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
||||||
SeqId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
SeqId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
StudyId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
StudyId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
SeriesId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
SeriesId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
@ -5697,6 +5696,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
Anonymize = table.Column<bool>(type: "bit", nullable: false),
|
Anonymize = table.Column<bool>(type: "bit", nullable: false),
|
||||||
Path = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: false),
|
Path = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: false),
|
||||||
FileSize = table.Column<long>(type: "bigint", nullable: true),
|
FileSize = table.Column<long>(type: "bigint", nullable: true),
|
||||||
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
CreateUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
CreateUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
UpdateUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
UpdateUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
@ -5704,7 +5704,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
},
|
},
|
||||||
constraints: table =>
|
constraints: table =>
|
||||||
{
|
{
|
||||||
table.PrimaryKey("PK_SCPInstance", x => x.Id);
|
table.PrimaryKey("PK_SCPInstance", x => x.SeqId);
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_SCPInstance_User_CreateUserId",
|
name: "FK_SCPInstance_User_CreateUserId",
|
||||||
column: x => x.CreateUserId,
|
column: x => x.CreateUserId,
|
||||||
|
@ -5763,7 +5763,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
name: "SCPSeries",
|
name: "SCPSeries",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
||||||
SeqId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
SeqId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
StudyId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
StudyId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
StudyInstanceUid = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
StudyInstanceUid = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
|
@ -5785,6 +5784,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
TriggerTime = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
TriggerTime = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
BodyPartForEdit = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
BodyPartForEdit = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
ImageResizePath = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: false),
|
ImageResizePath = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: false),
|
||||||
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
DeleteUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
DeleteUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
IsDeleted = table.Column<bool>(type: "bit", nullable: false),
|
IsDeleted = table.Column<bool>(type: "bit", nullable: false),
|
||||||
DeletedTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
DeletedTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
|
@ -5795,7 +5795,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
},
|
},
|
||||||
constraints: table =>
|
constraints: table =>
|
||||||
{
|
{
|
||||||
table.PrimaryKey("PK_SCPSeries", x => x.Id);
|
table.PrimaryKey("PK_SCPSeries", x => x.SeqId);
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_SCPSeries_User_CreateUserId",
|
name: "FK_SCPSeries_User_CreateUserId",
|
||||||
column: x => x.CreateUserId,
|
column: x => x.CreateUserId,
|
||||||
|
@ -5809,7 +5809,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
name: "SCPStudy",
|
name: "SCPStudy",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
||||||
SeqId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
SeqId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
PatientId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
PatientId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
StudyInstanceUid = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
StudyInstanceUid = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
|
@ -5838,6 +5837,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
TrialId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
TrialId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
TrialSiteId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
TrialSiteId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
SubjectVisitId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
SubjectVisitId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
DeleteUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
DeleteUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
IsDeleted = table.Column<bool>(type: "bit", nullable: false),
|
IsDeleted = table.Column<bool>(type: "bit", nullable: false),
|
||||||
DeletedTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
DeletedTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
|
@ -5848,7 +5848,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
},
|
},
|
||||||
constraints: table =>
|
constraints: table =>
|
||||||
{
|
{
|
||||||
table.PrimaryKey("PK_SCPStudy", x => x.Id);
|
table.PrimaryKey("PK_SCPStudy", x => x.SeqId);
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_SCPStudy_SCPPatient_PatientId",
|
name: "FK_SCPStudy_SCPPatient_PatientId",
|
||||||
column: x => x.PatientId,
|
column: x => x.PatientId,
|
||||||
|
@ -5908,7 +5908,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
name: "FK_StudyMonitor_DicomStudy_StudyId",
|
name: "FK_StudyMonitor_DicomStudy_StudyId",
|
||||||
column: x => x.StudyId,
|
column: x => x.StudyId,
|
||||||
principalTable: "DicomStudy",
|
principalTable: "DicomStudy",
|
||||||
principalColumn: "Id",
|
principalColumn: "SeqId",
|
||||||
onDelete: ReferentialAction.Cascade);
|
onDelete: ReferentialAction.Cascade);
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_StudyMonitor_NoneDicomStudy_StudyId",
|
name: "FK_StudyMonitor_NoneDicomStudy_StudyId",
|
||||||
|
@ -6079,7 +6079,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
constraints: table =>
|
constraints: table =>
|
||||||
{
|
{
|
||||||
table.PrimaryKey("PK_SubjectCriteriaEvaluation", x => x.Id);
|
table.PrimaryKey("PK_SubjectCriteriaEvaluation", x => x.Id);
|
||||||
table.UniqueConstraint("AK_SubjectCriteriaEvaluation_SubjectId_TrialReadingCriterionId", x => new { x.SubjectId, x.TrialReadingCriterionId });
|
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_SubjectCriteriaEvaluation_ReadingQuestionCriterionTrial_TrialReadingCriterionId",
|
name: "FK_SubjectCriteriaEvaluation_ReadingQuestionCriterionTrial_TrialReadingCriterionId",
|
||||||
column: x => x.TrialReadingCriterionId,
|
column: x => x.TrialReadingCriterionId,
|
||||||
|
@ -6307,12 +6306,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
principalTable: "ReadingQuestionCriterionTrial",
|
principalTable: "ReadingQuestionCriterionTrial",
|
||||||
principalColumn: "Id",
|
principalColumn: "Id",
|
||||||
onDelete: ReferentialAction.Cascade);
|
onDelete: ReferentialAction.Cascade);
|
||||||
table.ForeignKey(
|
|
||||||
name: "FK_SubjectCriteriaEvaluationVisitFilter_SubjectCriteriaEvaluation_SubjectId_TrialReadingCriterionId",
|
|
||||||
columns: x => new { x.SubjectId, x.TrialReadingCriterionId },
|
|
||||||
principalTable: "SubjectCriteriaEvaluation",
|
|
||||||
principalColumns: new[] { "SubjectId", "TrialReadingCriterionId" },
|
|
||||||
onDelete: ReferentialAction.Cascade);
|
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_SubjectCriteriaEvaluationVisitFilter_SubjectVisit_SubjectVisitId",
|
name: "FK_SubjectCriteriaEvaluationVisitFilter_SubjectVisit_SubjectVisitId",
|
||||||
column: x => x.SubjectVisitId,
|
column: x => x.SubjectVisitId,
|
||||||
|
@ -6357,13 +6350,13 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
name: "FK_SubjectCriteriaEvaluationVisitStudyFilter_DicomSeries_SeriesId",
|
name: "FK_SubjectCriteriaEvaluationVisitStudyFilter_DicomSeries_SeriesId",
|
||||||
column: x => x.SeriesId,
|
column: x => x.SeriesId,
|
||||||
principalTable: "DicomSeries",
|
principalTable: "DicomSeries",
|
||||||
principalColumn: "Id",
|
principalColumn: "SeqId",
|
||||||
onDelete: ReferentialAction.Cascade);
|
onDelete: ReferentialAction.Cascade);
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_SubjectCriteriaEvaluationVisitStudyFilter_DicomStudy_StudyId",
|
name: "FK_SubjectCriteriaEvaluationVisitStudyFilter_DicomStudy_StudyId",
|
||||||
column: x => x.StudyId,
|
column: x => x.StudyId,
|
||||||
principalTable: "DicomStudy",
|
principalTable: "DicomStudy",
|
||||||
principalColumn: "Id",
|
principalColumn: "SeqId",
|
||||||
onDelete: ReferentialAction.Cascade);
|
onDelete: ReferentialAction.Cascade);
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_SubjectCriteriaEvaluationVisitStudyFilter_ReadingQuestionCriterionTrial_TrialReadingCriterionId",
|
name: "FK_SubjectCriteriaEvaluationVisitStudyFilter_ReadingQuestionCriterionTrial_TrialReadingCriterionId",
|
||||||
|
@ -6651,7 +6644,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
name: "TaskStudy",
|
name: "TaskStudy",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
||||||
SeqId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
SeqId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
TrialId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
TrialId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
SubjectId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
SubjectId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
@ -6678,6 +6670,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
BodyPartExamined = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
BodyPartExamined = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
BodyPartForEdit = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
BodyPartForEdit = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
ModalityForEdit = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
ModalityForEdit = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
DeleteUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
DeleteUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
IsDeleted = table.Column<bool>(type: "bit", nullable: false),
|
IsDeleted = table.Column<bool>(type: "bit", nullable: false),
|
||||||
DeletedTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
DeletedTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
|
@ -6688,7 +6681,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
},
|
},
|
||||||
constraints: table =>
|
constraints: table =>
|
||||||
{
|
{
|
||||||
table.PrimaryKey("PK_TaskStudy", x => x.Id);
|
table.PrimaryKey("PK_TaskStudy", x => x.SeqId);
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_TaskStudy_Subject_SubjectId",
|
name: "FK_TaskStudy_Subject_SubjectId",
|
||||||
column: x => x.SubjectId,
|
column: x => x.SubjectId,
|
||||||
|
@ -6839,11 +6832,10 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
name: "TaskSeries",
|
name: "TaskSeries",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
SeqId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
TrialId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
TrialId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
SubjectId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
SubjectId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
VisitTaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
VisitTaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
SeqId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
||||||
StudyId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
StudyId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
StudyInstanceUid = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
StudyInstanceUid = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
SeriesInstanceUid = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
SeriesInstanceUid = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
|
@ -6864,6 +6856,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
TriggerTime = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
TriggerTime = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
BodyPartForEdit = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
BodyPartForEdit = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
ImageResizePath = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: false),
|
ImageResizePath = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: false),
|
||||||
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
DeleteUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
DeleteUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
IsDeleted = table.Column<bool>(type: "bit", nullable: false),
|
IsDeleted = table.Column<bool>(type: "bit", nullable: false),
|
||||||
DeletedTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
DeletedTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
|
@ -6874,12 +6867,12 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
},
|
},
|
||||||
constraints: table =>
|
constraints: table =>
|
||||||
{
|
{
|
||||||
table.PrimaryKey("PK_TaskSeries", x => x.Id);
|
table.PrimaryKey("PK_TaskSeries", x => x.SeqId);
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_TaskSeries_TaskStudy_StudyId",
|
name: "FK_TaskSeries_TaskStudy_StudyId",
|
||||||
column: x => x.StudyId,
|
column: x => x.StudyId,
|
||||||
principalTable: "TaskStudy",
|
principalTable: "TaskStudy",
|
||||||
principalColumn: "Id",
|
principalColumn: "SeqId",
|
||||||
onDelete: ReferentialAction.Cascade);
|
onDelete: ReferentialAction.Cascade);
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_TaskSeries_User_CreateUserId",
|
name: "FK_TaskSeries_User_CreateUserId",
|
||||||
|
@ -6894,7 +6887,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
name: "TaskInstance",
|
name: "TaskInstance",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
{
|
{
|
||||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
||||||
SeqId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
SeqId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
StudyId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
StudyId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
SeriesId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
SeriesId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
@ -6921,6 +6913,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
Path = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
Path = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
HtmlPath = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: false),
|
HtmlPath = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: false),
|
||||||
FileSize = table.Column<long>(type: "bigint", nullable: true),
|
FileSize = table.Column<long>(type: "bigint", nullable: true),
|
||||||
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
CreateUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
CreateUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
UpdateUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
UpdateUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
@ -6928,18 +6921,18 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
},
|
},
|
||||||
constraints: table =>
|
constraints: table =>
|
||||||
{
|
{
|
||||||
table.PrimaryKey("PK_TaskInstance", x => x.Id);
|
table.PrimaryKey("PK_TaskInstance", x => x.SeqId);
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_TaskInstance_TaskSeries_SeriesId",
|
name: "FK_TaskInstance_TaskSeries_SeriesId",
|
||||||
column: x => x.SeriesId,
|
column: x => x.SeriesId,
|
||||||
principalTable: "TaskSeries",
|
principalTable: "TaskSeries",
|
||||||
principalColumn: "Id",
|
principalColumn: "SeqId",
|
||||||
onDelete: ReferentialAction.Cascade);
|
onDelete: ReferentialAction.Cascade);
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_TaskInstance_TaskStudy_StudyId",
|
name: "FK_TaskInstance_TaskStudy_StudyId",
|
||||||
column: x => x.StudyId,
|
column: x => x.StudyId,
|
||||||
principalTable: "TaskStudy",
|
principalTable: "TaskStudy",
|
||||||
principalColumn: "Id",
|
principalColumn: "SeqId",
|
||||||
onDelete: ReferentialAction.Cascade);
|
onDelete: ReferentialAction.Cascade);
|
||||||
table.ForeignKey(
|
table.ForeignKey(
|
||||||
name: "FK_TaskInstance_User_CreateUserId",
|
name: "FK_TaskInstance_User_CreateUserId",
|
||||||
|
@ -8140,6 +8133,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
table: "SubjectCriteriaEvaluation",
|
table: "SubjectCriteriaEvaluation",
|
||||||
column: "CreateUserId");
|
column: "CreateUserId");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_SubjectCriteriaEvaluation_SubjectId",
|
||||||
|
table: "SubjectCriteriaEvaluation",
|
||||||
|
column: "SubjectId");
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
migrationBuilder.CreateIndex(
|
||||||
name: "IX_SubjectCriteriaEvaluation_TrialReadingCriterionId",
|
name: "IX_SubjectCriteriaEvaluation_TrialReadingCriterionId",
|
||||||
table: "SubjectCriteriaEvaluation",
|
table: "SubjectCriteriaEvaluation",
|
||||||
|
@ -8151,9 +8149,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
column: "CreateUserId");
|
column: "CreateUserId");
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
migrationBuilder.CreateIndex(
|
||||||
name: "IX_SubjectCriteriaEvaluationVisitFilter_SubjectId_TrialReadingCriterionId",
|
name: "IX_SubjectCriteriaEvaluationVisitFilter_SubjectId",
|
||||||
table: "SubjectCriteriaEvaluationVisitFilter",
|
table: "SubjectCriteriaEvaluationVisitFilter",
|
||||||
columns: new[] { "SubjectId", "TrialReadingCriterionId" });
|
column: "SubjectId");
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
migrationBuilder.CreateIndex(
|
||||||
name: "IX_SubjectCriteriaEvaluationVisitFilter_SubjectVisitId",
|
name: "IX_SubjectCriteriaEvaluationVisitFilter_SubjectVisitId",
|
||||||
|
@ -9295,7 +9293,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
table: "DicomInstance",
|
table: "DicomInstance",
|
||||||
column: "SeriesId",
|
column: "SeriesId",
|
||||||
principalTable: "DicomSeries",
|
principalTable: "DicomSeries",
|
||||||
principalColumn: "Id",
|
principalColumn: "SeqId",
|
||||||
onDelete: ReferentialAction.Cascade);
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
|
||||||
migrationBuilder.AddForeignKey(
|
migrationBuilder.AddForeignKey(
|
||||||
|
@ -9303,7 +9301,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
table: "DicomInstance",
|
table: "DicomInstance",
|
||||||
column: "StudyId",
|
column: "StudyId",
|
||||||
principalTable: "DicomStudy",
|
principalTable: "DicomStudy",
|
||||||
principalColumn: "Id",
|
principalColumn: "SeqId",
|
||||||
onDelete: ReferentialAction.Cascade);
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
|
||||||
migrationBuilder.AddForeignKey(
|
migrationBuilder.AddForeignKey(
|
||||||
|
@ -9319,7 +9317,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
table: "DicomSeries",
|
table: "DicomSeries",
|
||||||
column: "StudyId",
|
column: "StudyId",
|
||||||
principalTable: "DicomStudy",
|
principalTable: "DicomStudy",
|
||||||
principalColumn: "Id",
|
principalColumn: "SeqId",
|
||||||
onDelete: ReferentialAction.Cascade);
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
|
||||||
migrationBuilder.AddForeignKey(
|
migrationBuilder.AddForeignKey(
|
||||||
|
@ -9636,7 +9634,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
table: "SCPInstance",
|
table: "SCPInstance",
|
||||||
column: "SeriesId",
|
column: "SeriesId",
|
||||||
principalTable: "SCPSeries",
|
principalTable: "SCPSeries",
|
||||||
principalColumn: "Id",
|
principalColumn: "SeqId",
|
||||||
onDelete: ReferentialAction.Cascade);
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
|
||||||
migrationBuilder.AddForeignKey(
|
migrationBuilder.AddForeignKey(
|
||||||
|
@ -9644,7 +9642,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
table: "SCPInstance",
|
table: "SCPInstance",
|
||||||
column: "StudyId",
|
column: "StudyId",
|
||||||
principalTable: "SCPStudy",
|
principalTable: "SCPStudy",
|
||||||
principalColumn: "Id",
|
principalColumn: "SeqId",
|
||||||
onDelete: ReferentialAction.Cascade);
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
|
||||||
migrationBuilder.AddForeignKey(
|
migrationBuilder.AddForeignKey(
|
||||||
|
@ -9659,7 +9657,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
table: "SCPSeries",
|
table: "SCPSeries",
|
||||||
column: "StudyId",
|
column: "StudyId",
|
||||||
principalTable: "SCPStudy",
|
principalTable: "SCPStudy",
|
||||||
principalColumn: "Id",
|
principalColumn: "SeqId",
|
||||||
onDelete: ReferentialAction.Cascade);
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
|
||||||
migrationBuilder.AddForeignKey(
|
migrationBuilder.AddForeignKey(
|
||||||
|
@ -9690,7 +9688,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
table: "StudyMonitor",
|
table: "StudyMonitor",
|
||||||
column: "StudyId",
|
column: "StudyId",
|
||||||
principalTable: "TaskStudy",
|
principalTable: "TaskStudy",
|
||||||
principalColumn: "Id",
|
principalColumn: "SeqId",
|
||||||
onDelete: ReferentialAction.Cascade);
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
|
||||||
migrationBuilder.AddForeignKey(
|
migrationBuilder.AddForeignKey(
|
||||||
|
@ -9979,6 +9977,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "SubjectCanceDoctor");
|
name: "SubjectCanceDoctor");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "SubjectCriteriaEvaluation");
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "SubjectCriteriaEvaluationVisitFilter");
|
name: "SubjectCriteriaEvaluationVisitFilter");
|
||||||
|
|
||||||
|
@ -10195,9 +10196,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "NoneDicomStudy");
|
name: "NoneDicomStudy");
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
|
||||||
name: "SubjectCriteriaEvaluation");
|
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "SystemDocument");
|
name: "SystemDocument");
|
||||||
|
|
||||||
|
|
|
@ -777,7 +777,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
|
||||||
modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b =>
|
modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("SeqId")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<bool>("Anonymize")
|
b.Property<bool>("Anonymize")
|
||||||
|
@ -805,6 +806,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(1000)
|
.HasMaxLength(1000)
|
||||||
.HasColumnType("nvarchar(1000)");
|
.HasColumnType("nvarchar(1000)");
|
||||||
|
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<int>("ImageColumns")
|
b.Property<int>("ImageColumns")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
@ -835,9 +839,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
b.Property<Guid>("SeqId")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<Guid>("SeriesId")
|
b.Property<Guid>("SeriesId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
@ -892,7 +893,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("SeqId");
|
||||||
|
|
||||||
b.HasIndex("CreateUserId");
|
b.HasIndex("CreateUserId");
|
||||||
|
|
||||||
|
@ -908,7 +909,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
|
||||||
modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b =>
|
modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomSeries", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("SeqId")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("AcquisitionNumber")
|
b.Property<string>("AcquisitionNumber")
|
||||||
|
@ -948,6 +950,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("ImageOrientationPatient")
|
b.Property<string>("ImageOrientationPatient")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
|
@ -987,9 +992,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
b.Property<Guid>("SeqId")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<string>("SequenceName")
|
b.Property<string>("SequenceName")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
|
@ -1042,7 +1044,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
b.Property<Guid?>("VisitTaskId")
|
b.Property<Guid?>("VisitTaskId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("SeqId");
|
||||||
|
|
||||||
b.HasIndex("CreateUserId");
|
b.HasIndex("CreateUserId");
|
||||||
|
|
||||||
|
@ -1056,8 +1058,10 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
|
||||||
modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b =>
|
modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomStudy", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("SeqId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.HasComment("序列Id 避免内存移动");
|
||||||
|
|
||||||
b.Property<string>("AccessionNumber")
|
b.Property<string>("AccessionNumber")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
|
@ -1104,6 +1108,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<int>("InstanceCount")
|
b.Property<int>("InstanceCount")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
@ -1156,10 +1163,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
b.Property<Guid>("SeqId")
|
|
||||||
.HasColumnType("uniqueidentifier")
|
|
||||||
.HasComment("序列Id 避免内存移动");
|
|
||||||
|
|
||||||
b.Property<int>("SeriesCount")
|
b.Property<int>("SeriesCount")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
@ -1211,7 +1214,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("SeqId");
|
||||||
|
|
||||||
b.HasIndex("CreateUserId");
|
b.HasIndex("CreateUserId");
|
||||||
|
|
||||||
|
@ -3726,8 +3729,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
|
||||||
b.Property<string>("Content")
|
b.Property<string>("Content")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(1000)
|
.HasMaxLength(1200)
|
||||||
.HasColumnType("nvarchar(1000)");
|
.HasColumnType("nvarchar(1200)");
|
||||||
|
|
||||||
b.Property<DateTime>("CreateTime")
|
b.Property<DateTime>("CreateTime")
|
||||||
.HasColumnType("datetime2");
|
.HasColumnType("datetime2");
|
||||||
|
@ -6911,7 +6914,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
|
||||||
modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b =>
|
modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPInstance", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("SeqId")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<bool>("Anonymize")
|
b.Property<bool>("Anonymize")
|
||||||
|
@ -6934,6 +6938,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<int>("ImageColumns")
|
b.Property<int>("ImageColumns")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
@ -6964,9 +6971,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
b.Property<Guid>("SeqId")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<Guid>("SeriesId")
|
b.Property<Guid>("SeriesId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
@ -7012,7 +7016,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("SeqId");
|
||||||
|
|
||||||
b.HasIndex("CreateUserId");
|
b.HasIndex("CreateUserId");
|
||||||
|
|
||||||
|
@ -7104,7 +7108,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
|
||||||
modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b =>
|
modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPSeries", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("SeqId")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("AcquisitionNumber")
|
b.Property<string>("AcquisitionNumber")
|
||||||
|
@ -7144,6 +7149,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("ImageOrientationPatient")
|
b.Property<string>("ImageOrientationPatient")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
|
@ -7180,9 +7188,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
b.Property<Guid>("SeqId")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<string>("SequenceName")
|
b.Property<string>("SequenceName")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
|
@ -7223,7 +7228,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
b.Property<Guid>("UpdateUserId")
|
b.Property<Guid>("UpdateUserId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("SeqId");
|
||||||
|
|
||||||
b.HasIndex("CreateUserId");
|
b.HasIndex("CreateUserId");
|
||||||
|
|
||||||
|
@ -7237,7 +7242,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
|
||||||
modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b =>
|
modelBuilder.Entity("IRaCIS.Core.Domain.Models.SCPStudy", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("SeqId")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("AccessionNumber")
|
b.Property<string>("AccessionNumber")
|
||||||
|
@ -7292,6 +7298,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<int>("InstanceCount")
|
b.Property<int>("InstanceCount")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
@ -7344,9 +7353,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
b.Property<Guid>("SeqId")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<int>("SeriesCount")
|
b.Property<int>("SeriesCount")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
@ -7383,7 +7389,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
b.Property<Guid>("UpdateUserId")
|
b.Property<Guid>("UpdateUserId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("SeqId");
|
||||||
|
|
||||||
b.HasIndex("CreateUserId");
|
b.HasIndex("CreateUserId");
|
||||||
|
|
||||||
|
@ -7970,6 +7976,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
|
||||||
b.HasIndex("CreateUserId");
|
b.HasIndex("CreateUserId");
|
||||||
|
|
||||||
|
b.HasIndex("SubjectId");
|
||||||
|
|
||||||
b.HasIndex("TrialReadingCriterionId");
|
b.HasIndex("TrialReadingCriterionId");
|
||||||
|
|
||||||
b.ToTable("SubjectCriteriaEvaluation", t =>
|
b.ToTable("SubjectCriteriaEvaluation", t =>
|
||||||
|
@ -8020,12 +8028,12 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
|
||||||
b.HasIndex("CreateUserId");
|
b.HasIndex("CreateUserId");
|
||||||
|
|
||||||
|
b.HasIndex("SubjectId");
|
||||||
|
|
||||||
b.HasIndex("SubjectVisitId");
|
b.HasIndex("SubjectVisitId");
|
||||||
|
|
||||||
b.HasIndex("TrialReadingCriterionId");
|
b.HasIndex("TrialReadingCriterionId");
|
||||||
|
|
||||||
b.HasIndex("SubjectId", "TrialReadingCriterionId");
|
|
||||||
|
|
||||||
b.ToTable("SubjectCriteriaEvaluationVisitFilter", t =>
|
b.ToTable("SubjectCriteriaEvaluationVisitFilter", t =>
|
||||||
{
|
{
|
||||||
t.HasComment("受试者 - 附加评估标准影像筛选");
|
t.HasComment("受试者 - 附加评估标准影像筛选");
|
||||||
|
@ -8503,13 +8511,13 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
|
||||||
b.Property<string>("Value")
|
b.Property<string>("Value")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(1000)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(1000)");
|
||||||
|
|
||||||
b.Property<string>("ValueCN")
|
b.Property<string>("ValueCN")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(1000)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(1000)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
@ -9206,7 +9214,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
|
||||||
modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b =>
|
modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskInstance", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("SeqId")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<bool>("Anonymize")
|
b.Property<bool>("Anonymize")
|
||||||
|
@ -9234,6 +9243,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(1000)
|
.HasMaxLength(1000)
|
||||||
.HasColumnType("nvarchar(1000)");
|
.HasColumnType("nvarchar(1000)");
|
||||||
|
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<int>("ImageColumns")
|
b.Property<int>("ImageColumns")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
@ -9264,9 +9276,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
b.Property<Guid>("SeqId")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<Guid>("SeriesId")
|
b.Property<Guid>("SeriesId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
@ -9321,7 +9330,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("SeqId");
|
||||||
|
|
||||||
b.HasIndex("CreateUserId");
|
b.HasIndex("CreateUserId");
|
||||||
|
|
||||||
|
@ -9529,7 +9538,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
|
||||||
modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b =>
|
modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskSeries", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("SeqId")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("AcquisitionNumber")
|
b.Property<string>("AcquisitionNumber")
|
||||||
|
@ -9569,6 +9579,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("ImageOrientationPatient")
|
b.Property<string>("ImageOrientationPatient")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
|
@ -9605,9 +9618,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
b.Property<Guid>("SeqId")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<string>("SequenceName")
|
b.Property<string>("SequenceName")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
|
@ -9657,7 +9667,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
b.Property<Guid>("VisitTaskId")
|
b.Property<Guid>("VisitTaskId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("SeqId");
|
||||||
|
|
||||||
b.HasIndex("CreateUserId");
|
b.HasIndex("CreateUserId");
|
||||||
|
|
||||||
|
@ -9671,7 +9681,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
|
||||||
modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b =>
|
modelBuilder.Entity("IRaCIS.Core.Domain.Models.TaskStudy", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("SeqId")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<string>("AccessionNumber")
|
b.Property<string>("AccessionNumber")
|
||||||
|
@ -9719,6 +9730,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.Property<int>("InstanceCount")
|
b.Property<int>("InstanceCount")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
@ -9765,9 +9779,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.HasMaxLength(400)
|
.HasMaxLength(400)
|
||||||
.HasColumnType("nvarchar(400)");
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
b.Property<Guid>("SeqId")
|
|
||||||
.HasColumnType("uniqueidentifier");
|
|
||||||
|
|
||||||
b.Property<int>("SeriesCount")
|
b.Property<int>("SeriesCount")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
@ -9809,7 +9820,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
b.Property<Guid>("VisitTaskId")
|
b.Property<Guid>("VisitTaskId")
|
||||||
.HasColumnType("uniqueidentifier");
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("SeqId");
|
||||||
|
|
||||||
b.HasIndex("CreateUserId");
|
b.HasIndex("CreateUserId");
|
||||||
|
|
||||||
|
@ -15408,14 +15419,14 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
.IsRequired();
|
.IsRequired();
|
||||||
|
|
||||||
b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy")
|
b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy")
|
||||||
.WithMany("DicomStudyMonitorList")
|
.WithMany()
|
||||||
.HasForeignKey("StudyId")
|
.HasForeignKey("StudyId")
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
.IsRequired();
|
.IsRequired();
|
||||||
|
|
||||||
b.HasOne("IRaCIS.Core.Domain.Models.NoneDicomStudy", "NoneDicomStudy")
|
b.HasOne("IRaCIS.Core.Domain.Models.DicomStudy", "DicomStudy")
|
||||||
.WithMany()
|
.WithMany("DicomStudyMonitorList")
|
||||||
.HasForeignKey("StudyId")
|
.HasForeignKey("StudyId")
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
.IsRequired();
|
.IsRequired();
|
||||||
|
@ -15595,17 +15606,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
.IsRequired();
|
.IsRequired();
|
||||||
|
|
||||||
b.HasOne("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", "SubjectCriteriaEvaluation")
|
|
||||||
.WithMany("SubjectCriteriaEvaluationVisitFilterList")
|
|
||||||
.HasForeignKey("SubjectId", "TrialReadingCriterionId")
|
|
||||||
.HasPrincipalKey("SubjectId", "TrialReadingCriterionId")
|
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.Navigation("CreateUser");
|
b.Navigation("CreateUser");
|
||||||
|
|
||||||
b.Navigation("SubjectCriteriaEvaluation");
|
|
||||||
|
|
||||||
b.Navigation("SubjectVisit");
|
b.Navigation("SubjectVisit");
|
||||||
|
|
||||||
b.Navigation("TrialReadingCriterion");
|
b.Navigation("TrialReadingCriterion");
|
||||||
|
@ -17487,11 +17489,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
b.Navigation("TaskStudyList");
|
b.Navigation("TaskStudyList");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectCriteriaEvaluation", b =>
|
|
||||||
{
|
|
||||||
b.Navigation("SubjectCriteriaEvaluationVisitFilterList");
|
|
||||||
});
|
|
||||||
|
|
||||||
modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b =>
|
modelBuilder.Entity("IRaCIS.Core.Domain.Models.SubjectUser", b =>
|
||||||
{
|
{
|
||||||
b.Navigation("EarlierSubjectUserList");
|
b.Navigation("EarlierSubjectUserList");
|
||||||
|
|
Loading…
Reference in New Issue