136 lines
4.1 KiB
C#
136 lines
4.1 KiB
C#
namespace IRaCIS.Core.Application.Contracts
|
||
{
|
||
public class DicomStudyBasicDTO
|
||
{
|
||
public Guid Id { get; set; }
|
||
public Guid TrialId { get; set; }
|
||
public Guid TrialSiteId { get; set; }
|
||
|
||
public Guid SubjectId { get; set; }
|
||
public Guid SubjectVisitId { get; set; }
|
||
|
||
public string StudyCode { get; set; } = string.Empty;
|
||
|
||
public DateTime? StudyTime { get; set; }
|
||
}
|
||
|
||
public class DicomStudyDTO
|
||
{
|
||
public Guid Id { get; set; }
|
||
public Guid TrialId { get; set; }
|
||
public Guid TrialSiteId { get; set; }
|
||
|
||
public Guid SubjectId { get; set; }
|
||
public Guid SubjectVisitId { get; set; }
|
||
|
||
public string StudyCode { get; set; } = string.Empty;
|
||
|
||
public int Status { get; set; } = 1;
|
||
|
||
public string StudyInstanceUid { get; set; } = string.Empty;
|
||
public DateTime? StudyTime { get; set; }
|
||
public string Modalities { get; set; } = string.Empty;
|
||
|
||
public string Description { get; set; } = string.Empty;
|
||
public int SeriesCount { get; set; } = 0;
|
||
public int InstanceCount { get; set; } = 0;
|
||
|
||
public bool SoftDelete { get; set; } = false;
|
||
|
||
//public string InstitutionName { get; set; } = string.Empty;
|
||
public string PatientId { get; set; } = string.Empty;
|
||
public string PatientName { get; set; } = string.Empty;
|
||
public string PatientAge { get; set; } = string.Empty;
|
||
public string PatientSex { get; set; } = string.Empty;
|
||
|
||
public Guid UpdateUserId { get; set; }
|
||
public DateTime UpdateTime { get; set; }
|
||
public Guid CreateUserId { get; set; }
|
||
public DateTime CreateTime { get; set; }
|
||
|
||
#region 核验
|
||
|
||
/// <summary>
|
||
/// 体重
|
||
/// </summary>
|
||
public string PatientWeight { get; set; }
|
||
|
||
/// <summary>
|
||
/// 总剂量
|
||
/// </summary>
|
||
public string RadionuclideTotalDose { get; set; } = null!;
|
||
|
||
/// <summary>
|
||
/// 半衰期
|
||
/// </summary>
|
||
public string RadionuclideHalfLife { get; set; } = null!;
|
||
|
||
/// <summary>
|
||
/// 注射时间
|
||
/// </summary>
|
||
public string RadiopharmaceuticalStartTime { get; set; } = null!;
|
||
|
||
/// <summary>
|
||
/// 成像 / 采集时间
|
||
/// </summary>
|
||
public string AcquisitionTime { get; set; } = null!;
|
||
|
||
|
||
#endregion
|
||
|
||
/// <summary>
|
||
/// 是否存在空字符串字段(PatientSex、PatientWeight、RadionuclideTotalDose、RadionuclideHalfLife、RadiopharmaceuticalStartTime、AcquisitionTime 任意一个为空/空字符串)
|
||
/// </summary>
|
||
public bool IsHasEmptyPatientInfo =>
|
||
string.IsNullOrWhiteSpace(PatientSex) ||
|
||
string.IsNullOrWhiteSpace(PatientWeight) ||
|
||
string.IsNullOrWhiteSpace(RadionuclideTotalDose) ||
|
||
string.IsNullOrWhiteSpace(RadionuclideHalfLife) ||
|
||
string.IsNullOrWhiteSpace(RadiopharmaceuticalStartTime) ||
|
||
string.IsNullOrWhiteSpace(AcquisitionTime);
|
||
|
||
|
||
|
||
}
|
||
|
||
public class RelationVisitDTO
|
||
{
|
||
public string VisitName { get; set; } = string.Empty;
|
||
public string TpCode { get; set; } = string.Empty;
|
||
public Guid StudyId { get; set; }
|
||
}
|
||
|
||
public class RelationStudyDTO
|
||
{
|
||
public string VisitName { get; set; } = string.Empty;
|
||
public string StudyCode { get; set; } = string.Empty;
|
||
public Guid StudyId { get; set; }
|
||
public int SeriesCount { get; set; }
|
||
public string Modalities { get; set; } = string.Empty;
|
||
public string Description { get; set; } = string.Empty;
|
||
}
|
||
|
||
|
||
public class UploadViewInitDto
|
||
{
|
||
public Guid SubjectVisitId { get; set; }
|
||
|
||
public Guid SubjectId { get; set; }
|
||
|
||
public Guid TrialId { get; set; }
|
||
public Guid TrialSiteId { get; set; }
|
||
//public string SubjectName { get; set; }
|
||
|
||
public string SubjectCode { get; set; } = string.Empty;
|
||
|
||
public string TrialSiteCode { get; set; } = string.Empty;
|
||
|
||
public decimal VisitNum { get; set; }
|
||
|
||
public string VisitName { get; set; } = string.Empty;
|
||
|
||
|
||
|
||
}
|
||
}
|