From 7e9bf65f9fb244593a50baa1d099f01a8925a861 Mon Sep 17 00:00:00 2001
From: he <109787524@qq.com>
Date: Tue, 21 Oct 2025 13:16:59 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../IRaCIS.Core.Application.xml | 10 +
.../20250901092654_CriterionType.cs | 29 -
...1021051326_ApplyCriterionList.Designer.cs} | 3800 +++++++++++------
.../20251021051326_ApplyCriterionList.cs | 22 +
4 files changed, 2640 insertions(+), 1221 deletions(-)
delete mode 100644 IRaCIS.Core.Infra.EFCore/Migrations/20250901092654_CriterionType.cs
rename IRaCIS.Core.Infra.EFCore/Migrations/{20250901092654_CriterionType.Designer.cs => 20251021051326_ApplyCriterionList.Designer.cs} (91%)
create mode 100644 IRaCIS.Core.Infra.EFCore/Migrations/20251021051326_ApplyCriterionList.cs
diff --git a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
index e4e693325..5727ff903 100644
--- a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
+++ b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
@@ -2464,6 +2464,11 @@
泛型
+
+
+ 用户 签名某个文档 Dto
+
+
标准枚举
@@ -15288,6 +15293,11 @@
适用的标准
+
+
+ 是否默认选择
+
+
字段的英文值
diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20250901092654_CriterionType.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20250901092654_CriterionType.cs
deleted file mode 100644
index 86acbc6a5..000000000
--- a/IRaCIS.Core.Infra.EFCore/Migrations/20250901092654_CriterionType.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using Microsoft.EntityFrameworkCore.Migrations;
-
-#nullable disable
-
-namespace IRaCIS.Core.Infra.EFCore.Migrations
-{
- ///
- public partial class CriterionType : Migration
- {
- ///
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.AddColumn(
- name: "ApplyCriterionList",
- table: "FrontAuditConfig",
- type: "nvarchar(max)",
- nullable: false,
- defaultValue: "[]");
- }
-
- ///
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropColumn(
- name: "ApplyCriterionList",
- table: "FrontAuditConfig");
- }
- }
-}
diff --git a/IRaCIS.Core.Infra.EFCore/Migrations/20250901092654_CriterionType.Designer.cs b/IRaCIS.Core.Infra.EFCore/Migrations/20251021051326_ApplyCriterionList.Designer.cs
similarity index 91%
rename from IRaCIS.Core.Infra.EFCore/Migrations/20250901092654_CriterionType.Designer.cs
rename to IRaCIS.Core.Infra.EFCore/Migrations/20251021051326_ApplyCriterionList.Designer.cs
index eb160759b..12fa7f366 100644
--- a/IRaCIS.Core.Infra.EFCore/Migrations/20250901092654_CriterionType.Designer.cs
+++ b/IRaCIS.Core.Infra.EFCore/Migrations/20251021051326_ApplyCriterionList.Designer.cs
@@ -12,8 +12,8 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace IRaCIS.Core.Infra.EFCore.Migrations
{
[DbContext(typeof(IRaCISDBContext))]
- [Migration("20250901092654_CriterionType")]
- partial class CriterionType
+ [Migration("20251021051326_ApplyCriterionList")]
+ partial class ApplyCriterionList
{
///
protected override void BuildTargetModel(ModelBuilder modelBuilder)
@@ -42,7 +42,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.Property("CreateUserId")
.HasColumnType("uniqueidentifier");
- b.Property("DoctorId")
+ b.Property("DoctorId")
.HasColumnType("uniqueidentifier");
b.Property("ExpiryDate")
@@ -54,6 +54,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
.HasMaxLength(400)
.HasColumnType("nvarchar(400)");
+ b.Property("IsAuthorizedView")
+ .HasColumnType("bit");
+
b.Property("IsOfficial")
.HasColumnType("bit")
.HasComment("是否正式简历");
@@ -67,12 +70,21 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
.HasMaxLength(1000)
.HasColumnType("nvarchar(1000)");
+ b.Property("TrialId")
+ .HasColumnType("uniqueidentifier");
+
b.Property("Type")
.IsRequired()
.HasMaxLength(400)
.HasColumnType("nvarchar(400)")
.HasComment("文件类型名");
+ b.Property("UpdateTime")
+ .HasColumnType("datetime2");
+
+ b.Property("UpdateUserId")
+ .HasColumnType("uniqueidentifier");
+
b.HasKey("Id");
b.HasIndex("CreateUserId");
@@ -85,6 +97,205 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
});
});
+ modelBuilder.Entity("IRaCIS.Core.Domain.Models.AuditDocument", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("AuditDocumentTypeEnum")
+ .HasColumnType("int");
+
+ b.Property("CreateTime")
+ .HasColumnType("datetime2");
+
+ b.Property("CreateUserId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("FileFormat")
+ .IsRequired()
+ .HasMaxLength(400)
+ .HasColumnType("nvarchar(400)");
+
+ b.Property("FilePath")
+ .IsRequired()
+ .HasMaxLength(1000)
+ .HasColumnType("nvarchar(1000)");
+
+ b.Property("FileSize")
+ .HasPrecision(18, 2)
+ .HasColumnType("decimal(18,2)");
+
+ b.Property("IsAuthorization")
+ .HasColumnType("bit");
+
+ b.Property("MainFileId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("Name")
+ .IsRequired()
+ .HasMaxLength(400)
+ .HasColumnType("nvarchar(400)");
+
+ b.Property("ParentId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("UpdateTime")
+ .HasColumnType("datetime2");
+
+ b.Property("UpdateUserId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("Version")
+ .HasColumnType("int");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CreateUserId");
+
+ b.HasIndex("MainFileId");
+
+ b.ToTable("AuditDocument", t =>
+ {
+ t.HasComment("稽查文档管理");
+ });
+ });
+
+ modelBuilder.Entity("IRaCIS.Core.Domain.Models.AuditDocumentClosure", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("AncestorId")
+ .HasColumnType("uniqueidentifier")
+ .HasComment("祖先");
+
+ b.Property("Depth")
+ .HasColumnType("int");
+
+ b.Property("DescendantId")
+ .HasColumnType("uniqueidentifier")
+ .HasComment("后代");
+
+ b.HasKey("Id");
+
+ b.HasIndex("AncestorId");
+
+ b.HasIndex("DescendantId");
+
+ b.ToTable("AuditDocumentClosure");
+ });
+
+ modelBuilder.Entity("IRaCIS.Core.Domain.Models.AuditRecord", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("AuditContent")
+ .IsRequired()
+ .HasMaxLength(400)
+ .HasColumnType("nvarchar(400)");
+
+ b.Property("AuditState")
+ .HasColumnType("int")
+ .HasComment("稽查状态");
+
+ b.Property("AuditTime")
+ .HasColumnType("date")
+ .HasComment("稽查日期");
+
+ b.Property("AuditType")
+ .HasColumnType("int")
+ .HasComment("稽查形式");
+
+ b.Property("BeginTime")
+ .HasColumnType("datetime2");
+
+ b.Property("CompanyName")
+ .IsRequired()
+ .HasMaxLength(400)
+ .HasColumnType("nvarchar(400)");
+
+ b.Property("CreateTime")
+ .HasColumnType("datetime2");
+
+ b.Property("CreateUserId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("EndTime")
+ .HasColumnType("datetime2");
+
+ b.Property("IsViewTrainingRecord")
+ .HasColumnType("bit");
+
+ b.Property("UpdateTime")
+ .HasColumnType("datetime2");
+
+ b.Property("UpdateUserId")
+ .HasColumnType("uniqueidentifier");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CreateUserId");
+
+ b.ToTable("AuditRecord");
+ });
+
+ modelBuilder.Entity("IRaCIS.Core.Domain.Models.AuditRecordIdentityUser", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("AuditRecordId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("CreateTime")
+ .HasColumnType("datetime2");
+
+ b.Property("CreateUserId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("IdentityUserId")
+ .HasColumnType("uniqueidentifier");
+
+ b.HasKey("Id");
+
+ b.HasIndex("AuditRecordId");
+
+ b.HasIndex("CreateUserId");
+
+ b.HasIndex("IdentityUserId");
+
+ b.ToTable("AuditRecordIdentityUser");
+ });
+
+ modelBuilder.Entity("IRaCIS.Core.Domain.Models.AuditRecordPermission", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("AuditDocumentId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("AuditRecordId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("CreateTime")
+ .HasColumnType("datetime2");
+
+ b.Property("CreateUserId")
+ .HasColumnType("uniqueidentifier");
+
+ b.HasKey("Id");
+
+ b.HasIndex("AuditDocumentId");
+
+ b.HasIndex("AuditRecordId");
+
+ b.HasIndex("CreateUserId");
+
+ b.ToTable("AuditRecordPermission");
+ });
+
modelBuilder.Entity("IRaCIS.Core.Domain.Models.CRO", b =>
{
b.Property("Id")
@@ -250,6 +461,16 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
.HasMaxLength(1000)
.HasColumnType("nvarchar(1000)");
+ b.Property("EnFileName")
+ .IsRequired()
+ .HasMaxLength(400)
+ .HasColumnType("nvarchar(400)");
+
+ b.Property("EnPath")
+ .IsRequired()
+ .HasMaxLength(400)
+ .HasColumnType("nvarchar(400)");
+
b.Property("FileName")
.IsRequired()
.HasMaxLength(400)
@@ -314,6 +535,16 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
.HasMaxLength(1000)
.HasColumnType("nvarchar(1000)");
+ b.Property("EnFileName")
+ .IsRequired()
+ .HasMaxLength(400)
+ .HasColumnType("nvarchar(400)");
+
+ b.Property("EnPath")
+ .IsRequired()
+ .HasMaxLength(400)
+ .HasColumnType("nvarchar(400)");
+
b.Property("FileName")
.IsRequired()
.HasMaxLength(400)
@@ -397,6 +628,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.HasIndex("CreateUserId");
+ b.HasIndex("ReadingId");
+
b.HasIndex("SubjectId");
b.ToTable("ClinicalForm", t =>
@@ -496,48 +729,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
});
});
- modelBuilder.Entity("IRaCIS.Core.Domain.Models.CmoveStudy", b =>
- {
- b.Property("Id")
- .HasColumnType("uniqueidentifier");
-
- b.Property("CalledAE")
- .IsRequired()
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)");
-
- b.Property("CallingAE")
- .IsRequired()
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)");
-
- b.Property("CreateTime")
- .HasColumnType("datetime2");
-
- b.Property("CreateUserId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("HopitalGroupIdList")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property("StudyInstanceUIDList")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property("UpdateTime")
- .HasColumnType("datetime2");
-
- b.Property("UpdateUserId")
- .HasColumnType("uniqueidentifier");
-
- b.HasKey("Id");
-
- b.HasIndex("CreateUserId");
-
- b.ToTable("CmoveStudy");
- });
-
modelBuilder.Entity("IRaCIS.Core.Domain.Models.CommonDocument", b =>
{
b.Property("Id")
@@ -820,74 +1011,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
});
});
- modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomAE", b =>
- {
- b.Property("Id")
- .HasColumnType("uniqueidentifier");
-
- b.Property("CalledAE")
- .IsRequired()
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)");
-
- b.Property("CreateTime")
- .HasColumnType("datetime2");
-
- b.Property("CreateUserId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("Description")
- .IsRequired()
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)");
-
- b.Property("IP")
- .IsRequired()
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)");
-
- b.Property("IsSupportMutiModality")
- .HasColumnType("bit")
- .HasComment("是否支持多模态查询");
-
- b.Property("IsTestOK")
- .HasColumnType("bit");
-
- b.Property("LatestTestTime")
- .HasColumnType("datetime2");
-
- b.Property("MaxStudyCount")
- .HasColumnType("int");
-
- b.Property("ModalityList")
- .IsRequired()
- .HasColumnType("nvarchar(max)");
-
- b.Property("PacsSearchMaxDays")
- .HasColumnType("int");
-
- b.Property("PacsTypeEnum")
- .HasColumnType("int");
-
- b.Property("Port")
- .HasColumnType("int");
-
- b.Property("UpdateTime")
- .HasColumnType("datetime2");
-
- b.Property("UpdateUserId")
- .HasColumnType("uniqueidentifier");
-
- b.HasKey("Id");
-
- b.HasIndex("CreateUserId");
-
- b.ToTable("DicomAE", t =>
- {
- t.HasComment("医院dicomAE 配置");
- });
- });
-
modelBuilder.Entity("IRaCIS.Core.Domain.Models.DicomInstance", b =>
{
b.Property("SeqId")
@@ -906,6 +1029,12 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.Property("CreateUserId")
.HasColumnType("uniqueidentifier");
+ b.Property("DeleteUserId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("DeletedTime")
+ .HasColumnType("datetime2");
+
b.Property("FileSize")
.HasColumnType("bigint");
@@ -939,9 +1068,15 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.Property("InstanceTime")
.HasColumnType("datetime2");
+ b.Property("IsDeleted")
+ .HasColumnType("bit");
+
b.Property("IsEncapsulated")
.HasColumnType("bit");
+ b.Property("IsReading")
+ .HasColumnType("bit");
+
b.Property("MediaStorageSOPClassUID")
.IsRequired()
.HasMaxLength(400)
@@ -1005,7 +1140,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.Property("SubjectVisitId")
.HasColumnType("uniqueidentifier");
- b.Property("TransferSyntaxUID")
+ b.Property("TransferSytaxUID")
.IsRequired()
.HasMaxLength(400)
.HasColumnType("nvarchar(400)");
@@ -1196,6 +1331,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.HasIndex("StudyId");
+ b.HasIndex("SubjectVisitId");
+
b.ToTable("DicomSeries", t =>
{
t.HasComment("归档 - 序列表");
@@ -1234,6 +1371,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
.HasMaxLength(400)
.HasColumnType("nvarchar(400)");
+ b.Property("BodyPartForEditOther")
+ .IsRequired()
+ .HasMaxLength(400)
+ .HasColumnType("nvarchar(400)");
+
b.Property("Code")
.HasColumnType("int");
@@ -1294,6 +1436,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
.HasMaxLength(400)
.HasColumnType("nvarchar(400)");
+ b.Property("ModifyReason")
+ .IsRequired()
+ .HasMaxLength(400)
+ .HasColumnType("nvarchar(400)");
+
b.Property("PatientAge")
.IsRequired()
.HasMaxLength(400)
@@ -1305,12 +1452,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
.HasColumnType("nvarchar(400)");
b.Property("PatientId")
- .IsRequired()
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)")
- .HasComment("废弃了,用PatientIdStr");
-
- b.Property("PatientIdStr")
.IsRequired()
.HasMaxLength(400)
.HasColumnType("nvarchar(400)");
@@ -1349,6 +1490,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
.HasMaxLength(400)
.HasColumnType("nvarchar(400)");
+ b.Property("StudyName")
+ .IsRequired()
+ .HasMaxLength(400)
+ .HasColumnType("nvarchar(400)");
+
b.Property("StudyTime")
.HasColumnType("datetime2");
@@ -1492,8 +1638,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.Property("BankName")
.IsRequired()
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)");
+ .HasColumnType("nvarchar(max)");
b.Property("BankNum")
.IsRequired()
@@ -1523,6 +1668,16 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
.HasMaxLength(400)
.HasColumnType("nvarchar(400)");
+ b.Property("City")
+ .IsRequired()
+ .HasMaxLength(400)
+ .HasColumnType("nvarchar(400)");
+
+ b.Property("CityCN")
+ .IsRequired()
+ .HasMaxLength(400)
+ .HasColumnType("nvarchar(400)");
+
b.Property("Code")
.HasColumnType("int");
@@ -1566,8 +1721,7 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.Property("GCPAgencies")
.IsRequired()
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)");
+ .HasColumnType("nvarchar(max)");
b.Property("GCPId")
.HasColumnType("uniqueidentifier");
@@ -1578,6 +1732,16 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.Property("HospitalId")
.HasColumnType("uniqueidentifier");
+ b.Property("HospitalName")
+ .IsRequired()
+ .HasMaxLength(400)
+ .HasColumnType("nvarchar(400)");
+
+ b.Property("HospitalNameCN")
+ .IsRequired()
+ .HasMaxLength(400)
+ .HasColumnType("nvarchar(400)");
+
b.Property("HospitalOther")
.IsRequired()
.HasMaxLength(400)
@@ -1713,36 +1877,40 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.Property("SpecialityOther")
.IsRequired()
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)");
+ .HasColumnType("nvarchar(max)");
b.Property("SpecialityOtherCN")
.IsRequired()
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)");
+ .HasColumnType("nvarchar(max)");
b.Property("SubspecialityOther")
.IsRequired()
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)");
+ .HasColumnType("nvarchar(max)");
b.Property("SubspecialityOtherCN")
.IsRequired()
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)");
+ .HasColumnType("nvarchar(max)");
b.Property("Summarize")
.IsRequired()
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)");
+ .HasColumnType("nvarchar(max)");
b.Property("SummarizeEn")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("TrialId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("UniversityAffiliated")
.IsRequired()
.HasMaxLength(400)
.HasColumnType("nvarchar(400)");
- b.Property("TrialId")
- .HasColumnType("uniqueidentifier");
+ b.Property("UniversityAffiliatedCN")
+ .IsRequired()
+ .HasMaxLength(400)
+ .HasColumnType("nvarchar(400)");
b.Property("UpdateTime")
.HasColumnType("datetime2");
@@ -1757,13 +1925,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.Property("WorkPartTime")
.IsRequired()
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)");
+ .HasColumnType("nvarchar(max)");
b.Property("WorkPartTimeEn")
.IsRequired()
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)");
+ .HasColumnType("nvarchar(max)");
b.HasKey("Id");
@@ -1845,6 +2011,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.HasIndex("DoctorId");
+ b.HasIndex("TrialReadingCriterionId");
+
b.ToTable("DoctorCriterionFile", t =>
{
t.HasComment("医生 - 项目标准签名文档");
@@ -1879,6 +2047,60 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
});
});
+ modelBuilder.Entity("IRaCIS.Core.Domain.Models.DoctorSummarize", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("CreateTime")
+ .HasColumnType("datetime2");
+
+ b.Property("CreateUserId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("DoctorId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("Indication")
+ .IsRequired()
+ .HasMaxLength(400)
+ .HasColumnType("nvarchar(400)");
+
+ b.Property("IndicationEn")
+ .IsRequired()
+ .HasMaxLength(400)
+ .HasColumnType("nvarchar(400)");
+
+ b.Property("IsMain")
+ .HasColumnType("bit");
+
+ b.Property("Summarize")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("SummarizeEn")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("TrialId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("UpdateTime")
+ .HasColumnType("datetime2");
+
+ b.Property("UpdateUserId")
+ .HasColumnType("uniqueidentifier");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CreateUserId");
+
+ b.ToTable("DoctorSummarize", t =>
+ {
+ t.HasComment("医生 - 概述");
+ });
+ });
+
modelBuilder.Entity("IRaCIS.Core.Domain.Models.Education", b =>
{
b.Property("Id")
@@ -2305,6 +2527,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.HasIndex("EnrollId");
+ b.HasIndex("TrialReadingCriterionId");
+
b.ToTable("EnrollReadingCategory", t =>
{
t.HasComment("医生 - 项目阅片标准阅片类型配置表");
@@ -2337,6 +2561,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.HasIndex("EnrollId");
+ b.HasIndex("TrialReadingCriterionId");
+
b.ToTable("EnrollReadingCriterion", t =>
{
t.HasComment("医生 - 项目阅片标准参与一致性分析配置表");
@@ -2624,10 +2850,16 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
.HasColumnType("nvarchar(400)")
.HasComment("接口名");
+ b.Property("IsBeforeModifyView")
+ .HasColumnType("bit");
+
b.Property("IsConfig")
.HasColumnType("bit")
.HasComment("未知是否有用-废弃核查");
+ b.Property("IsDefaultChoice")
+ .HasColumnType("bit");
+
b.Property("IsEnable")
.HasColumnType("bit");
@@ -2711,84 +2943,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
});
});
- modelBuilder.Entity("IRaCIS.Core.Domain.Models.HIRHospital", b =>
- {
- b.Property("Id")
- .HasColumnType("uniqueidentifier");
-
- b.Property("Address")
- .IsRequired()
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)");
-
- b.Property("City")
- .IsRequired()
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)");
-
- b.Property("Country")
- .IsRequired()
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)");
-
- b.Property("CreateTime")
- .HasColumnType("datetime2");
-
- b.Property("CreateUserId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("HospitalAliasName")
- .IsRequired()
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)");
-
- b.Property("HospitalCode")
- .IsRequired()
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)");
-
- b.Property("HospitalLogoPath")
- .IsRequired()
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)");
-
- b.Property("HospitalName")
- .IsRequired()
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)");
-
- b.Property("IsCanConnectInternet")
- .HasColumnType("bit");
-
- b.Property("IsDefault")
- .HasColumnType("bit");
-
- b.Property("Phone")
- .IsRequired()
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)");
-
- b.Property("Province")
- .IsRequired()
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)");
-
- b.Property("TrialKeepCount")
- .HasColumnType("int");
-
- b.Property("UpdateTime")
- .HasColumnType("datetime2");
-
- b.Property("UpdateUserId")
- .HasColumnType("uniqueidentifier");
-
- b.HasKey("Id");
-
- b.HasIndex("CreateUserId");
-
- b.ToTable("HIRHospital");
- });
-
modelBuilder.Entity("IRaCIS.Core.Domain.Models.Hospital", b =>
{
b.Property("Id")
@@ -2872,110 +3026,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
});
});
- modelBuilder.Entity("IRaCIS.Core.Domain.Models.HospitalGroup", b =>
- {
- b.Property("Id")
- .HasColumnType("uniqueidentifier");
-
- b.Property("Affiliation")
- .IsRequired()
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)")
- .HasComment("所属科室");
-
- b.Property("CallingAE")
- .IsRequired()
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)");
-
- b.Property("Code")
- .IsRequired()
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)");
-
- b.Property("ContactName")
- .IsRequired()
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)");
-
- b.Property("ContactPhone")
- .IsRequired()
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)");
-
- b.Property("CreateTime")
- .HasColumnType("datetime2");
-
- b.Property("CreateUserId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("IsEnable")
- .HasColumnType("bit");
-
- b.Property("Name")
- .IsRequired()
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)");
-
- b.Property("UpdateTime")
- .HasColumnType("datetime2");
-
- b.Property("UpdateUserId")
- .HasColumnType("uniqueidentifier");
-
- b.HasKey("Id");
-
- b.HasIndex("CreateUserId");
-
- b.ToTable("HospitalGroup", t =>
- {
- t.HasComment("课题组");
- });
- });
-
- modelBuilder.Entity("IRaCIS.Core.Domain.Models.HospitalGroupIdentityUser", b =>
- {
- b.Property("Id")
- .HasColumnType("uniqueidentifier");
-
- b.Property("CreateTime")
- .HasColumnType("datetime2");
-
- b.Property("CreateUserId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("HospitalGroupId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("IdentityUserId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("IsDisabled")
- .HasColumnType("bit");
-
- b.Property("IsManager")
- .HasColumnType("bit");
-
- b.Property("UpdateTime")
- .HasColumnType("datetime2");
-
- b.Property("UpdateUserId")
- .HasColumnType("uniqueidentifier");
-
- b.HasKey("Id");
-
- b.HasIndex("CreateUserId");
-
- b.HasIndex("HospitalGroupId");
-
- b.HasIndex("IdentityUserId");
-
- b.ToTable("HospitalGroupIdentityUser", t =>
- {
- t.HasComment("用户课题组中间关系表");
- });
- });
-
modelBuilder.Entity("IRaCIS.Core.Domain.Models.IdentityUser", b =>
{
b.Property("Id")
@@ -2985,11 +3035,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
.HasColumnType("bit")
.HasComment("这个字段废除,放在用户角色上面,后续删除");
- b.Property("CheckCode")
- .IsRequired()
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)");
-
b.Property("Code")
.HasColumnType("int");
@@ -3070,17 +3115,15 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
.HasMaxLength(400)
.HasColumnType("nvarchar(400)");
+ b.Property("PrivacyPolicyId")
+ .HasColumnType("uniqueidentifier");
+
b.Property("Sex")
.HasColumnType("int");
b.Property("Status")
.HasColumnType("int");
- b.Property("ThirdUserCode")
- .IsRequired()
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)");
-
b.Property("TrialId")
.HasColumnType("uniqueidentifier");
@@ -3090,6 +3133,12 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.Property("UpdateUserId")
.HasColumnType("uniqueidentifier");
+ b.Property("UserAgreementId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("UserCeateSource")
+ .HasColumnType("int");
+
b.Property("UserCode")
.IsRequired()
.HasMaxLength(400)
@@ -3125,12 +3174,13 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
.HasMaxLength(400)
.HasColumnType("nvarchar(400)");
- b.Property("RouteUrl")
- .IsRequired()
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)");
+ b.Property("StudyId")
+ .HasColumnType("uniqueidentifier");
- b.Property("VisitTaskId")
+ b.Property("SubjectId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("TrialId")
.HasColumnType("uniqueidentifier");
b.HasKey("Id");
@@ -3146,6 +3196,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.Property("Id")
.HasColumnType("uniqueidentifier");
+ b.Property("CheckState")
+ .HasColumnType("int");
+
b.Property("CreateTime")
.HasColumnType("datetime2");
@@ -3162,6 +3215,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
.HasMaxLength(400)
.HasColumnType("nvarchar(400)");
+ b.Property("ResultPath")
+ .IsRequired()
+ .HasMaxLength(400)
+ .HasColumnType("nvarchar(400)");
+
b.Property("TrialId")
.HasColumnType("uniqueidentifier");
@@ -3368,6 +3426,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
.HasMaxLength(400)
.HasColumnType("nvarchar(400)");
+ b.Property("BodyPartForEditOther")
+ .IsRequired()
+ .HasMaxLength(400)
+ .HasColumnType("nvarchar(400)");
+
b.Property("Code")
.HasColumnType("int");
@@ -3377,6 +3440,12 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.Property("CreateUserId")
.HasColumnType("uniqueidentifier");
+ b.Property("DeleteUserId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("DeletedTime")
+ .HasColumnType("datetime2");
+
b.Property("Description")
.IsRequired()
.HasMaxLength(400)
@@ -3388,16 +3457,32 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.Property("ImageDate")
.HasColumnType("datetime2");
+ b.Property("IsDeleted")
+ .HasColumnType("bit");
+
+ b.Property("IsReading")
+ .HasColumnType("bit");
+
b.Property("Modality")
.IsRequired()
.HasMaxLength(400)
.HasColumnType("nvarchar(400)");
+ b.Property("ModifyReason")
+ .IsRequired()
+ .HasMaxLength(400)
+ .HasColumnType("nvarchar(400)");
+
b.Property("StudyCode")
.IsRequired()
.HasMaxLength(400)
.HasColumnType("nvarchar(400)");
+ b.Property("StudyName")
+ .IsRequired()
+ .HasMaxLength(400)
+ .HasColumnType("nvarchar(400)");
+
b.Property("SubjectId")
.HasColumnType("uniqueidentifier");
@@ -3439,6 +3524,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.HasIndex("SubjectVisitId");
+ b.HasIndex("TrialId");
+
b.ToTable("NoneDicomStudy", t =>
{
t.HasComment("影像 - 非dicom检查");
@@ -3456,6 +3543,12 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.Property("CreateUserId")
.HasColumnType("uniqueidentifier");
+ b.Property("DeleteUserId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("DeletedTime")
+ .HasColumnType("datetime2");
+
b.Property("FileName")
.IsRequired()
.HasMaxLength(400)
@@ -3469,6 +3562,12 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
.HasMaxLength(400)
.HasColumnType("nvarchar(400)");
+ b.Property("IsDeleted")
+ .HasColumnType("bit");
+
+ b.Property("IsReading")
+ .HasColumnType("bit");
+
b.Property("NoneDicomStudyId")
.HasColumnType("uniqueidentifier");
@@ -3697,58 +3796,6 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
});
});
- modelBuilder.Entity("IRaCIS.Core.Domain.Models.PIAudit", b =>
- {
- b.Property("Id")
- .HasColumnType("uniqueidentifier");
-
- b.Property("CreateTime")
- .HasColumnType("datetime2");
-
- b.Property("CreateUserId")
- .HasColumnType("uniqueidentifier");
-
- b.Property("IsEnrollment")
- .HasColumnType("bit");
-
- b.Property("IsPDConfirm")
- .HasColumnType("bit");
-
- b.Property("NotAgreeReason")
- .IsRequired()
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)");
-
- b.Property("PIAuditImagePath")
- .IsRequired()
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)");
-
- b.Property("PIAuditNote")
- .IsRequired()
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)");
-
- b.Property("PIAuditState")
- .HasColumnType("int");
-
- b.Property("ReplyContent")
- .IsRequired()
- .HasMaxLength(400)
- .HasColumnType("nvarchar(400)");
-
- b.Property("VisitTaskId")
- .HasColumnType("uniqueidentifier");
-
- b.HasKey("Id");
-
- b.HasIndex("CreateUserId");
-
- b.HasIndex("VisitTaskId");
-
- b.ToTable("PIAudit");
- });
-
modelBuilder.Entity("IRaCIS.Core.Domain.Models.Payment", b =>
{
b.Property("Id")
@@ -4071,6 +4118,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.HasIndex("CreateUserId");
+ b.HasIndex("HospitalId");
+
b.ToTable("Postgraduate", t =>
{
t.HasComment("医生 - 继续教育经历");
@@ -4123,6 +4172,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.HasKey("Id");
+ b.HasIndex("ClinicalDataTrialSetId");
+
b.HasIndex("CreateUserId");
b.HasIndex("SubjectVisitId");
@@ -4180,6 +4231,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.HasKey("Id");
+ b.HasIndex("ClinicalDataTrialSetId");
+
b.HasIndex("CreateUserId");
b.HasIndex("SubjectVisitId");
@@ -4288,6 +4341,8 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.HasKey("Id");
+ b.HasIndex("ClinicalDataTrialSetId");
+
b.HasIndex("CreateUserId");
b.HasIndex("SubjectVisitId");
@@ -5152,6 +5207,52 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
});
});
+ modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingImportFile", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("CreateTime")
+ .HasColumnType("datetime2");
+
+ b.Property("CreateUserId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("FilePath")
+ .IsRequired()
+ .HasMaxLength(400)
+ .HasColumnType("nvarchar(400)");
+
+ b.Property("SubjectId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("SubjectVisitId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("TableName")
+ .IsRequired()
+ .HasMaxLength(400)
+ .HasColumnType("nvarchar(400)");
+
+ b.Property("TrialId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("TrialReadingCriterionId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("VisitTaskId")
+ .HasColumnType("uniqueidentifier");
+
+ b.HasKey("Id");
+
+ b.HasIndex("CreateUserId");
+
+ b.ToTable("ReadingImportFile", t =>
+ {
+ t.HasComment("阅片导入表");
+ });
+ });
+
modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingJudgeInfo", b =>
{
b.Property("Id")
@@ -5501,6 +5602,93 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
});
});
+ modelBuilder.Entity("IRaCIS.Core.Domain.Models.ReadingNoneDicomMark", b =>
+ {
+ b.Property