5 changed files with 223 additions and 3 deletions
-
51src/Shentun.Peis.Application.Contracts/PacsBusiness/ImportPacsDicomServiceDataInputDto.cs
-
61src/Shentun.Peis.Application/PacsBusiness/PacsBusinessAppService.cs
-
78src/Shentun.Peis.Domain/DicomFileDetails/DicomFileDetail.cs
-
30src/Shentun.Peis.EntityFrameworkCore/DbMapping/DicomFileDetails/DicomFileDetailDbMapping.cs
-
6src/Shentun.Peis.EntityFrameworkCore/EntityFrameworkCore/PeisDbContext.cs
@ -0,0 +1,51 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace Shentun.Peis.PacsBusiness |
||||
|
{ |
||||
|
public class ImportPacsDicomServiceDataInputDto |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 条码号
|
||||
|
/// </summary>
|
||||
|
public string CheckRequestNo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 实例ID
|
||||
|
/// </summary>
|
||||
|
public Guid InstanceId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 患者ID
|
||||
|
/// </summary>
|
||||
|
public Guid ParentPatientId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 系列ID
|
||||
|
/// </summary>
|
||||
|
public Guid ParentSeriesId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 研究ID
|
||||
|
/// </summary>
|
||||
|
public Guid ParentStudyId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 路径
|
||||
|
/// </summary>
|
||||
|
public string Path { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 文件名称
|
||||
|
/// </summary>
|
||||
|
public string FileName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 状态
|
||||
|
/// </summary>
|
||||
|
public string Status { get; set; } |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,78 @@ |
|||||
|
using Shentun.Peis.Models; |
||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.ComponentModel.DataAnnotations.Schema; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
using Volo.Abp.Domain.Entities.Auditing; |
||||
|
using Volo.Abp.Domain.Entities; |
||||
|
|
||||
|
namespace Shentun.Peis.Models |
||||
|
{ |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// dicom文件数据 从dicom服务导文件需要
|
||||
|
/// </summary>
|
||||
|
[Table("dicom_file_detail")] |
||||
|
public class DicomFileDetail : AuditedEntity<Guid>, IHasConcurrencyStamp,IDisplayOrder |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// registerCheck表ID
|
||||
|
/// </summary>
|
||||
|
public Guid RegisterCheckId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 实例ID
|
||||
|
/// </summary>
|
||||
|
[Column("instance_id")] |
||||
|
public Guid InstanceId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 患者ID
|
||||
|
/// </summary>
|
||||
|
[Column("parent_patient_id")] |
||||
|
public Guid ParentPatientId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 系列ID
|
||||
|
/// </summary>
|
||||
|
[Column("parent_series_id")] |
||||
|
public Guid ParentSeriesId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 研究ID
|
||||
|
/// </summary>
|
||||
|
[Column("parent_study_id")] |
||||
|
public Guid ParentStudyId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 路径
|
||||
|
/// </summary>
|
||||
|
[Column("path")] |
||||
|
[StringLength(200)] |
||||
|
public string Path { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 文件名称
|
||||
|
/// </summary>
|
||||
|
[Column("file_name")] |
||||
|
[StringLength(100)] |
||||
|
public string FileName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 状态
|
||||
|
/// </summary>
|
||||
|
[Column("status")] |
||||
|
[StringLength(200)] |
||||
|
public string Status { get; set; } |
||||
|
|
||||
|
[Column("display_order")] |
||||
|
public int DisplayOrder { get; set; } |
||||
|
|
||||
|
[Column("concurrency_stamp")] |
||||
|
public string ConcurrencyStamp { get; set; } |
||||
|
|
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,30 @@ |
|||||
|
using Microsoft.EntityFrameworkCore.Metadata.Builders; |
||||
|
using Microsoft.EntityFrameworkCore; |
||||
|
using Shentun.Peis.Models; |
||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
using Shentun.Peis.EntityFrameworkCore; |
||||
|
|
||||
|
namespace Shentun.Peis.DbMapping.DicomFileDetails |
||||
|
{ |
||||
|
|
||||
|
internal class DicomFileDetailDbMapping : IEntityTypeConfiguration<DicomFileDetail> |
||||
|
{ |
||||
|
public void Configure(EntityTypeBuilder<DicomFileDetail> entity) |
||||
|
{ |
||||
|
entity.HasComment("dicom文件数据"); |
||||
|
entity.Property(t => t.RegisterCheckId).HasComment("RegisterCheck表ID").IsRequired(); |
||||
|
entity.Property(t => t.ParentPatientId).HasComment("患者ID").IsRequired(); |
||||
|
entity.Property(t => t.InstanceId).HasComment("实例ID").IsRequired(); |
||||
|
entity.Property(t => t.ParentSeriesId).HasComment("系列ID").IsRequired(); |
||||
|
entity.Property(t => t.ParentStudyId).HasComment("研究ID").IsRequired(); |
||||
|
entity.Property(t => t.Path).HasComment("路径"); |
||||
|
entity.Property(t => t.Status).HasComment("状态"); |
||||
|
entity.Property(t => t.FileName).HasComment("文件名称"); |
||||
|
entity.ConfigureByConvention(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue