|
|
|
@ -2196,16 +2196,17 @@ namespace Shentun.Peis.Migrations |
|
|
|
.HasColumnType("uuid") |
|
|
|
.HasColumnName("last_modifier_id"); |
|
|
|
|
|
|
|
b.Property<Guid>("MedicalCenterId") |
|
|
|
.HasColumnType("uuid") |
|
|
|
.HasColumnName("medical_center_id") |
|
|
|
.HasComment("体检中心ID"); |
|
|
|
|
|
|
|
b.Property<Guid>("OrgTypeId") |
|
|
|
.HasColumnType("uuid") |
|
|
|
.HasColumnName("org_type_id") |
|
|
|
.IsFixedLength() |
|
|
|
.HasComment("单位性质"); |
|
|
|
|
|
|
|
b.Property<Guid?>("OrganizationUnitId") |
|
|
|
.HasColumnType("uuid") |
|
|
|
.HasColumnName("organization_unit_id"); |
|
|
|
|
|
|
|
b.Property<Guid?>("ParentId") |
|
|
|
.HasColumnType("uuid") |
|
|
|
.HasColumnName("parent_id") |
|
|
|
@ -2253,7 +2254,7 @@ namespace Shentun.Peis.Migrations |
|
|
|
|
|
|
|
b.HasKey("Id"); |
|
|
|
|
|
|
|
b.HasIndex(new[] { "OrganizationUnitId" }, "fki_fk_customer_org_organization_units"); |
|
|
|
b.HasIndex(new[] { "MedicalCenterId" }, "fki_fk_customer_org_organization_units"); |
|
|
|
|
|
|
|
b.HasIndex(new[] { "ParentId", "DisplayName" }, "ix_org") |
|
|
|
.IsUnique(); |
|
|
|
@ -5382,10 +5383,10 @@ namespace Shentun.Peis.Migrations |
|
|
|
|
|
|
|
modelBuilder.Entity("Shentun.Peis.Models.Nation", b => |
|
|
|
{ |
|
|
|
b.Property<string>("NationId") |
|
|
|
b.Property<string>("Id") |
|
|
|
.HasMaxLength(3) |
|
|
|
.HasColumnType("character(3)") |
|
|
|
.HasColumnName("nation_id") |
|
|
|
.HasColumnName("id") |
|
|
|
.IsFixedLength() |
|
|
|
.HasComment("编号"); |
|
|
|
|
|
|
|
@ -5440,7 +5441,7 @@ namespace Shentun.Peis.Migrations |
|
|
|
.HasColumnName("simple_code") |
|
|
|
.HasComment("拼音简码"); |
|
|
|
|
|
|
|
b.HasKey("NationId"); |
|
|
|
b.HasKey("Id"); |
|
|
|
|
|
|
|
b.HasIndex(new[] { "DisplayName" }, "ix_nation") |
|
|
|
.IsUnique(); |
|
|
|
@ -5702,6 +5703,11 @@ namespace Shentun.Peis.Migrations |
|
|
|
.HasDefaultValueSql("'9'") |
|
|
|
.HasComment("婚姻状况"); |
|
|
|
|
|
|
|
b.Property<Guid>("MedicalCenterId") |
|
|
|
.HasColumnType("uuid") |
|
|
|
.HasColumnName("medical_center_id") |
|
|
|
.HasComment("组织单位ID"); |
|
|
|
|
|
|
|
b.Property<string>("MobileTelephone") |
|
|
|
.HasMaxLength(20) |
|
|
|
.HasColumnType("character varying(20)") |
|
|
|
@ -5741,6 +5747,13 @@ namespace Shentun.Peis.Migrations |
|
|
|
.HasDefaultValueSql("'U'") |
|
|
|
.HasComment("性别"); |
|
|
|
|
|
|
|
b.Property<string>("SimpleCode") |
|
|
|
.IsRequired() |
|
|
|
.HasMaxLength(30) |
|
|
|
.HasColumnType("character varying(30)") |
|
|
|
.HasColumnName("simple_code") |
|
|
|
.HasComment("简码"); |
|
|
|
|
|
|
|
b.Property<string>("Telephone") |
|
|
|
.HasMaxLength(20) |
|
|
|
.HasColumnType("character varying(20)") |
|
|
|
@ -6131,8 +6144,7 @@ namespace Shentun.Peis.Migrations |
|
|
|
.HasDefaultValueSql("'N'") |
|
|
|
.HasComment("审核"); |
|
|
|
|
|
|
|
b.Property<char?>("IsLock") |
|
|
|
.IsRequired() |
|
|
|
b.Property<char>("IsLock") |
|
|
|
.ValueGeneratedOnAdd() |
|
|
|
.HasMaxLength(1) |
|
|
|
.HasColumnType("character(1)") |
|
|
|
@ -6230,6 +6242,11 @@ namespace Shentun.Peis.Migrations |
|
|
|
.HasColumnName("medical_card_no") |
|
|
|
.HasComment("体检卡号"); |
|
|
|
|
|
|
|
b.Property<Guid>("MedicalCenterId") |
|
|
|
.HasColumnType("uuid") |
|
|
|
.HasColumnName("medical_center_id") |
|
|
|
.HasComment("体检中心ID"); |
|
|
|
|
|
|
|
b.Property<Guid?>("MedicalConclusionId") |
|
|
|
.HasColumnType("uuid") |
|
|
|
.HasColumnName("medical_conclusion_id") |
|
|
|
@ -6261,11 +6278,6 @@ namespace Shentun.Peis.Migrations |
|
|
|
.IsFixedLength() |
|
|
|
.HasComment("体检类别"); |
|
|
|
|
|
|
|
b.Property<Guid>("OrganizationUnitId") |
|
|
|
.HasColumnType("uuid") |
|
|
|
.HasColumnName("organization_unit_id") |
|
|
|
.HasComment("体检中心ID"); |
|
|
|
|
|
|
|
b.Property<Guid>("PatientId") |
|
|
|
.HasColumnType("uuid") |
|
|
|
.HasColumnName("patient_id") |
|
|
|
@ -6350,7 +6362,7 @@ namespace Shentun.Peis.Migrations |
|
|
|
|
|
|
|
b.HasIndex("MaritalStatusId"); |
|
|
|
|
|
|
|
b.HasIndex(new[] { "OrganizationUnitId" }, "fki_fk_patient_register_ororganization_unit"); |
|
|
|
b.HasIndex(new[] { "MedicalCenterId" }, "fki_fk_patient_register_ororganization_unit"); |
|
|
|
|
|
|
|
b.HasIndex(new[] { "PatientRegisterNo" }, "ix_patient_register") |
|
|
|
.IsUnique(); |
|
|
|
@ -7082,116 +7094,6 @@ namespace Shentun.Peis.Migrations |
|
|
|
b.HasComment("项目参考范围设置"); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Shentun.Peis.Models.RegisterAsbitem", b => |
|
|
|
{ |
|
|
|
b.Property<Guid>("Id") |
|
|
|
.HasColumnType("uuid") |
|
|
|
.HasColumnName("id") |
|
|
|
.HasComment("主键"); |
|
|
|
|
|
|
|
b.Property<short?>("Amount") |
|
|
|
.IsRequired() |
|
|
|
.ValueGeneratedOnAdd() |
|
|
|
.HasColumnType("smallint") |
|
|
|
.HasColumnName("amount") |
|
|
|
.HasDefaultValueSql("1") |
|
|
|
.HasComment("数量"); |
|
|
|
|
|
|
|
b.Property<Guid>("AsbitemId") |
|
|
|
.HasMaxLength(6) |
|
|
|
.HasColumnType("uuid") |
|
|
|
.HasColumnName("asbitem_id") |
|
|
|
.IsFixedLength() |
|
|
|
.HasComment("组合项目"); |
|
|
|
|
|
|
|
b.Property<decimal?>("ChargePrice") |
|
|
|
.IsRequired() |
|
|
|
.HasPrecision(10, 2) |
|
|
|
.HasColumnType("numeric(10,2)") |
|
|
|
.HasColumnName("charge_price") |
|
|
|
.HasComment("实收价格"); |
|
|
|
|
|
|
|
b.Property<string>("ConcurrencyStamp") |
|
|
|
.IsConcurrencyToken() |
|
|
|
.HasMaxLength(40) |
|
|
|
.HasColumnType("character varying(40)") |
|
|
|
.HasColumnName("concurrency_stamp"); |
|
|
|
|
|
|
|
b.Property<DateTime>("CreationTime") |
|
|
|
.HasColumnType("timestamp without time zone") |
|
|
|
.HasColumnName("creation_time"); |
|
|
|
|
|
|
|
b.Property<Guid?>("CreatorId") |
|
|
|
.IsRequired() |
|
|
|
.HasColumnType("uuid") |
|
|
|
.HasColumnName("creator_id"); |
|
|
|
|
|
|
|
b.Property<Guid?>("GroupPackageId") |
|
|
|
.HasColumnType("uuid") |
|
|
|
.HasColumnName("group_package_id"); |
|
|
|
|
|
|
|
b.Property<char?>("IsCharge") |
|
|
|
.IsRequired() |
|
|
|
.ValueGeneratedOnAdd() |
|
|
|
.HasMaxLength(1) |
|
|
|
.HasColumnType("character(1)") |
|
|
|
.HasColumnName("is_charge") |
|
|
|
.HasDefaultValueSql("'N'") |
|
|
|
.HasComment("是否已收费"); |
|
|
|
|
|
|
|
b.Property<DateTime?>("LastModificationTime") |
|
|
|
.IsRequired() |
|
|
|
.HasColumnType("timestamp without time zone") |
|
|
|
.HasColumnName("last_modification_time"); |
|
|
|
|
|
|
|
b.Property<Guid?>("LastModifierId") |
|
|
|
.IsRequired() |
|
|
|
.HasColumnType("uuid") |
|
|
|
.HasColumnName("last_modifier_id"); |
|
|
|
|
|
|
|
b.Property<Guid?>("LisRequestId") |
|
|
|
.HasColumnType("uuid") |
|
|
|
.HasColumnName("lis_request_id") |
|
|
|
.HasComment("LIS申请ID"); |
|
|
|
|
|
|
|
b.Property<Guid>("PatientRegisterId") |
|
|
|
.HasColumnType("uuid") |
|
|
|
.HasColumnName("patient_register_id") |
|
|
|
.HasComment("登记流水号"); |
|
|
|
|
|
|
|
b.Property<string>("PayTypeFlag") |
|
|
|
.IsRequired() |
|
|
|
.ValueGeneratedOnAdd() |
|
|
|
.HasMaxLength(4) |
|
|
|
.HasColumnType("character varying(4)") |
|
|
|
.HasColumnName("pay_type_flag") |
|
|
|
.HasDefaultValueSql("0") |
|
|
|
.HasComment("支付方式,比如是自费、免费、单位支付"); |
|
|
|
|
|
|
|
b.Property<Guid?>("RegisterCheckId") |
|
|
|
.HasColumnType("uuid") |
|
|
|
.HasColumnName("register_check_id"); |
|
|
|
|
|
|
|
b.Property<decimal?>("StandardPrice") |
|
|
|
.HasPrecision(10, 2) |
|
|
|
.HasColumnType("numeric(10,2)") |
|
|
|
.HasColumnName("standard_price") |
|
|
|
.HasComment("标准价格"); |
|
|
|
|
|
|
|
b.HasKey("Id"); |
|
|
|
|
|
|
|
b.HasIndex("AsbitemId"); |
|
|
|
|
|
|
|
b.HasIndex("RegisterCheckId"); |
|
|
|
|
|
|
|
b.HasIndex(new[] { "PatientRegisterId", "AsbitemId" }, "ix_register_asbitem") |
|
|
|
.IsUnique(); |
|
|
|
|
|
|
|
b.ToTable("register_asbitem"); |
|
|
|
|
|
|
|
b.HasComment("检查组合项目记录"); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Shentun.Peis.Models.RegisterCheck", b => |
|
|
|
{ |
|
|
|
b.Property<Guid>("Id") |
|
|
|
@ -7322,6 +7224,10 @@ namespace Shentun.Peis.Migrations |
|
|
|
.HasColumnType("uuid") |
|
|
|
.HasColumnName("last_modifier_id"); |
|
|
|
|
|
|
|
b.Property<Guid>("PatientRegisterId") |
|
|
|
.HasColumnType("uuid") |
|
|
|
.HasColumnName("patient_register_id"); |
|
|
|
|
|
|
|
b.Property<string>("ThirdInfo") |
|
|
|
.HasMaxLength(80) |
|
|
|
.HasColumnType("character varying(80)") |
|
|
|
@ -7337,6 +7243,112 @@ namespace Shentun.Peis.Migrations |
|
|
|
b.HasComment("登记检查单"); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Shentun.Peis.Models.RegisterCheckAsbitem", b => |
|
|
|
{ |
|
|
|
b.Property<Guid>("Id") |
|
|
|
.HasColumnType("uuid") |
|
|
|
.HasColumnName("id") |
|
|
|
.HasComment("主键"); |
|
|
|
|
|
|
|
b.Property<short>("Amount") |
|
|
|
.ValueGeneratedOnAdd() |
|
|
|
.HasColumnType("smallint") |
|
|
|
.HasColumnName("amount") |
|
|
|
.HasDefaultValueSql("1") |
|
|
|
.HasComment("数量"); |
|
|
|
|
|
|
|
b.Property<Guid>("AsbitemId") |
|
|
|
.HasMaxLength(6) |
|
|
|
.HasColumnType("uuid") |
|
|
|
.HasColumnName("asbitem_id") |
|
|
|
.IsFixedLength() |
|
|
|
.HasComment("组合项目"); |
|
|
|
|
|
|
|
b.Property<decimal>("ChargePrice") |
|
|
|
.HasPrecision(10, 2) |
|
|
|
.HasColumnType("numeric(10,2)") |
|
|
|
.HasColumnName("charge_price") |
|
|
|
.HasComment("实收价格"); |
|
|
|
|
|
|
|
b.Property<string>("ConcurrencyStamp") |
|
|
|
.IsConcurrencyToken() |
|
|
|
.HasMaxLength(40) |
|
|
|
.HasColumnType("character varying(40)") |
|
|
|
.HasColumnName("concurrency_stamp"); |
|
|
|
|
|
|
|
b.Property<DateTime>("CreationTime") |
|
|
|
.HasColumnType("timestamp without time zone") |
|
|
|
.HasColumnName("creation_time"); |
|
|
|
|
|
|
|
b.Property<Guid?>("CreatorId") |
|
|
|
.IsRequired() |
|
|
|
.HasColumnType("uuid") |
|
|
|
.HasColumnName("creator_id"); |
|
|
|
|
|
|
|
b.Property<Guid?>("GroupPackageId") |
|
|
|
.HasColumnType("uuid") |
|
|
|
.HasColumnName("group_package_id"); |
|
|
|
|
|
|
|
b.Property<char>("IsCharge") |
|
|
|
.ValueGeneratedOnAdd() |
|
|
|
.HasMaxLength(1) |
|
|
|
.HasColumnType("character(1)") |
|
|
|
.HasColumnName("is_charge") |
|
|
|
.HasDefaultValueSql("'N'") |
|
|
|
.HasComment("是否已收费"); |
|
|
|
|
|
|
|
b.Property<DateTime?>("LastModificationTime") |
|
|
|
.IsRequired() |
|
|
|
.HasColumnType("timestamp without time zone") |
|
|
|
.HasColumnName("last_modification_time"); |
|
|
|
|
|
|
|
b.Property<Guid?>("LastModifierId") |
|
|
|
.IsRequired() |
|
|
|
.HasColumnType("uuid") |
|
|
|
.HasColumnName("last_modifier_id"); |
|
|
|
|
|
|
|
b.Property<Guid?>("LisRequestId") |
|
|
|
.HasColumnType("uuid") |
|
|
|
.HasColumnName("lis_request_id") |
|
|
|
.HasComment("LIS申请ID"); |
|
|
|
|
|
|
|
b.Property<Guid>("PatientRegisterId") |
|
|
|
.HasColumnType("uuid") |
|
|
|
.HasColumnName("patient_register_id") |
|
|
|
.HasComment("登记流水号"); |
|
|
|
|
|
|
|
b.Property<char>("PayTypeFlag") |
|
|
|
.ValueGeneratedOnAdd() |
|
|
|
.HasMaxLength(1) |
|
|
|
.HasColumnType("character(1)") |
|
|
|
.HasColumnName("pay_type_flag") |
|
|
|
.HasDefaultValueSql("0") |
|
|
|
.HasComment("支付方式,比如是自费、免费、单位支付"); |
|
|
|
|
|
|
|
b.Property<Guid>("RegisterCheckId") |
|
|
|
.HasColumnType("uuid") |
|
|
|
.HasColumnName("register_check_id"); |
|
|
|
|
|
|
|
b.Property<decimal>("StandardPrice") |
|
|
|
.HasPrecision(10, 2) |
|
|
|
.HasColumnType("numeric(10,2)") |
|
|
|
.HasColumnName("standard_price") |
|
|
|
.HasComment("标准价格"); |
|
|
|
|
|
|
|
b.HasKey("Id"); |
|
|
|
|
|
|
|
b.HasIndex("AsbitemId"); |
|
|
|
|
|
|
|
b.HasIndex("RegisterCheckId"); |
|
|
|
|
|
|
|
b.HasIndex(new[] { "PatientRegisterId", "AsbitemId" }, "ix_register_asbitem") |
|
|
|
.IsUnique(); |
|
|
|
|
|
|
|
b.ToTable("register_check_asbitem"); |
|
|
|
|
|
|
|
b.HasComment("检查组合项目记录"); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Shentun.Peis.Models.RegisterCheckCriticalValue", b => |
|
|
|
{ |
|
|
|
b.Property<Guid>("Id") |
|
|
|
@ -9666,11 +9678,11 @@ namespace Shentun.Peis.Migrations |
|
|
|
.HasColumnName("sys_parm_id") |
|
|
|
.HasComment("参数ID"); |
|
|
|
|
|
|
|
b.Property<Guid>("OrganizationUnitId") |
|
|
|
b.Property<Guid>("MedicalCenterId") |
|
|
|
.HasColumnType("uuid") |
|
|
|
.HasColumnName("organization_unit_id") |
|
|
|
.HasColumnName("medical_center_id") |
|
|
|
.IsFixedLength() |
|
|
|
.HasComment("单位ID"); |
|
|
|
.HasComment("体检中心ID"); |
|
|
|
|
|
|
|
b.Property<string>("ConcurrencyStamp") |
|
|
|
.IsConcurrencyToken() |
|
|
|
@ -9709,7 +9721,7 @@ namespace Shentun.Peis.Migrations |
|
|
|
.HasColumnName("remark") |
|
|
|
.HasComment("备注"); |
|
|
|
|
|
|
|
b.HasKey("SysParmId", "OrganizationUnitId") |
|
|
|
b.HasKey("SysParmId", "MedicalCenterId") |
|
|
|
.HasName("pk_sys_parm_value"); |
|
|
|
|
|
|
|
b.ToTable("sys_parm_value"); |
|
|
|
@ -12453,24 +12465,26 @@ namespace Shentun.Peis.Migrations |
|
|
|
b.Navigation("Item"); |
|
|
|
}); |
|
|
|
|
|
|
|
modelBuilder.Entity("Shentun.Peis.Models.RegisterAsbitem", b => |
|
|
|
modelBuilder.Entity("Shentun.Peis.Models.RegisterCheckAsbitem", b => |
|
|
|
{ |
|
|
|
b.HasOne("Shentun.Peis.Models.Asbitem", "Asbitem") |
|
|
|
.WithMany("RegisterAsbitems") |
|
|
|
.WithMany("RegisterCheckAsbitems") |
|
|
|
.HasForeignKey("AsbitemId") |
|
|
|
.IsRequired() |
|
|
|
.HasConstraintName("fk_register_reference_asbitem"); |
|
|
|
|
|
|
|
b.HasOne("Shentun.Peis.Models.PatientRegister", "PatientRegister") |
|
|
|
.WithMany("RegisterAsbitems") |
|
|
|
.WithMany("RegisterCheckAsbitems") |
|
|
|
.HasForeignKey("PatientRegisterId") |
|
|
|
.OnDelete(DeleteBehavior.Cascade) |
|
|
|
.IsRequired() |
|
|
|
.HasConstraintName("fk_register_reference_patient_"); |
|
|
|
|
|
|
|
b.HasOne("Shentun.Peis.Models.RegisterCheck", "RegisterCheck") |
|
|
|
.WithMany("RegisterAsbitems") |
|
|
|
.WithMany("RegisterCheckAsbitems") |
|
|
|
.HasForeignKey("RegisterCheckId") |
|
|
|
.OnDelete(DeleteBehavior.Cascade) |
|
|
|
.IsRequired() |
|
|
|
.HasConstraintName("fk_registerasbitem_registercheck"); |
|
|
|
|
|
|
|
b.Navigation("Asbitem"); |
|
|
|
@ -13024,7 +13038,7 @@ namespace Shentun.Peis.Migrations |
|
|
|
|
|
|
|
b.Navigation("MedicalPackageDetails"); |
|
|
|
|
|
|
|
b.Navigation("RegisterAsbitems"); |
|
|
|
b.Navigation("RegisterCheckAsbitems"); |
|
|
|
|
|
|
|
b.Navigation("SampleGroupDetail"); |
|
|
|
}); |
|
|
|
@ -13251,7 +13265,7 @@ namespace Shentun.Peis.Migrations |
|
|
|
|
|
|
|
b.Navigation("QueueRegisters"); |
|
|
|
|
|
|
|
b.Navigation("RegisterAsbitems"); |
|
|
|
b.Navigation("RegisterCheckAsbitems"); |
|
|
|
|
|
|
|
b.Navigation("SumDiagnoses"); |
|
|
|
|
|
|
|
@ -13285,7 +13299,7 @@ namespace Shentun.Peis.Migrations |
|
|
|
|
|
|
|
modelBuilder.Entity("Shentun.Peis.Models.RegisterCheck", b => |
|
|
|
{ |
|
|
|
b.Navigation("RegisterAsbitems"); |
|
|
|
b.Navigation("RegisterCheckAsbitems"); |
|
|
|
|
|
|
|
b.Navigation("RegisterCheckItems"); |
|
|
|
|
|
|
|
|