58 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C#
		
	
	
			
		
		
	
	
			58 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C#
		
	
	
using System.Linq;
 | 
						|
 | 
						|
namespace IRaCIS.Core.Domain.Models;
 | 
						|
 | 
						|
[Comment("项目中心 - 影像推送记录")]
 | 
						|
[Table("SCPImageUpload")]
 | 
						|
public class SCPImageUpload : BaseAddAuditEntity
 | 
						|
{
 | 
						|
    #region 导航属性
 | 
						|
    [JsonIgnore]
 | 
						|
    public Trial Trial { get; set; }
 | 
						|
 | 
						|
    [JsonIgnore]
 | 
						|
    public TrialSite TrialSite { get; set; }
 | 
						|
    #endregion
 | 
						|
    public string CallingAE { get; set; } = string.Empty;
 | 
						|
    public string CalledAE { get; set; } = string.Empty;
 | 
						|
    public string CallingAEIP { get; set; } = string.Empty;
 | 
						|
    public DateTime StartTime { get; set; }
 | 
						|
    public DateTime EndTime { get; set; }
 | 
						|
    public int FileCount { get; set; }
 | 
						|
    public long FileSize { get; set; }
 | 
						|
    public int StudyCount { get; set; }
 | 
						|
    public Guid TrialId { get; set; }
 | 
						|
    public Guid TrialSiteId { get; set; }
 | 
						|
 | 
						|
    [MaxLength]
 | 
						|
    public string UploadJsonStr { get; set; }
 | 
						|
}
 | 
						|
 | 
						|
public class SCPImageLog
 | 
						|
{
 | 
						|
    ////当前传输 检查患者名字,一个检查可能患者名字不同  记录去重的,然后,拼接
 | 
						|
    //public string PatientNames => string.Join(",", UploadList.SelectMany(t => t.PatientNameList).ToList());
 | 
						|
 | 
						|
    /// <summary>
 | 
						|
    /// 归档到数据库的检查Id
 | 
						|
    /// </summary>
 | 
						|
    public List<Guid> SCPStudyIdList => UploadList.Select(t => t.SCPStudyId).ToList();
 | 
						|
 | 
						|
 | 
						|
    public List<ImageUploadInfo> UploadList { get; set; } = new List<ImageUploadInfo>();
 | 
						|
 | 
						|
}
 | 
						|
 | 
						|
public class ImageUploadInfo
 | 
						|
{
 | 
						|
    public List<string> PatientNameList { get; set; } = new List<string>();
 | 
						|
 | 
						|
    public Guid SCPStudyId { get; set; }
 | 
						|
 | 
						|
    public string StudyInstanceUid { get; set; }
 | 
						|
 | 
						|
 | 
						|
    public int FailedImageCount { get; set; }
 | 
						|
 | 
						|
    public int SuccessImageCount { get; set; }
 | 
						|
} |