添加项目文件。

This commit is contained in:
DK
2022-03-28 15:27:40 +08:00
parent b620fcb0cf
commit dc78fd1a09
898 changed files with 173053 additions and 0 deletions
@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
namespace IRaCIS.Core.Application.Contracts.Dicom.DTO
{
public sealed class DicomArchiveResult
{
public int ReceivedFileCount { get; set; }
public ICollection<string> ErrorFiles { get; set; }
public ICollection<DicomStudyBasicDTO> ArchivedDicomStudies { get; set; }
public Guid ReuploadNewStudyId { get; set; } = Guid.Empty;
public DicomArchiveResult()
{
ReceivedFileCount = 0;
ErrorFiles = new List<string>();
ArchivedDicomStudies = new List<DicomStudyBasicDTO>();
}
}
}
@@ -0,0 +1,58 @@
namespace IRaCIS.Core.Application.Contracts
{
public class DicomInstanceDTO
{
public Guid Id { get; set;}
public Guid StudyId { get; set; }
public Guid SeriesId { get; set; }
public string StudyInstanceUid { get; set; } = string.Empty;
public string SeriesInstanceUid { get; set; } = string.Empty;
public string SopInstanceUid { get; set; } = string.Empty;
public int InstanceNumber { get; set; }
public DateTime InstanceTime { get; set; }
public bool CPIStatus { get; set; }
public int ImageRows { get; set; }
public int ImageColumns { get; set; }
public int SliceLocation { get; set; }
public Guid TrialId { get; set; }
public Guid SiteId { get; set; }
public Guid SubjectId { get; set; }
public Guid SubjectVisitId { get; set; }
//public Guid CreateUserId { get; set; }
//public DateTime CreateTime { get; set; }
//public Guid UpdateUserId { get; set; }
//public DateTime UpdateTime { get; set; }
}
public class DicomTrialSiteSubjectInfo
{
public string TrialSiteCode { get; set; } = string.Empty;
public string SiteCode { get; set; } = string.Empty;
public string SiteName { get; set; } = string.Empty;
public string SubjectCode { get; set; } = string.Empty;
public int? SubjectAge { get; set; }
public string SubjectSex { get; set; } = string.Empty;
public string TrialCode { get; set; } = string.Empty;
public string ResearchProgramNo { get; set; } = string.Empty;
public string TrialIndication { get; set; } = string.Empty;
public decimal VisitNum { get; set; }
public string SVUPDES { get; set; } = string.Empty;
public string VisitName { get; set; } = string.Empty;
public string Sponsor { get; set; } = string.Empty;
public Guid TrialId { get; set; }
public Guid SiteId { get; set; }
public Guid SubjectId { get; set; }
public Guid SubjectVisitId { get; set; }
//public string SubjectName => LastName + " / " + FirstName;
//public string FirstName { get; set; } = string.Empty;
//public string LastName { get; set; } = string.Empty;
//public bool IsDoubleReview { get; set; }
}
}
@@ -0,0 +1,34 @@
namespace IRaCIS.Core.Application.Contracts.Dicom.DTO
{
public class DicomSeriesDTO
{
public Guid Id { get; set; }
public Guid StudyId { get; set; }
public string StudyInstanceUid { get; set; } = String.Empty;
public string SeriesInstanceUid { get; set; } = String.Empty;
public int SeriesNumber { get; set; }
public DateTime SeriesTime { get; set; }
public string Modality { get; set; } = String.Empty;
public string Description { get; set; }=String.Empty;
public int InstanceCount { get; set; }
public string SliceThickness { get; set; } = String.Empty;
public Guid TrialId { get; set; }
public Guid SiteId { get; set; }
public Guid SubjectId { get; set; }
public Guid SubjectVisitId { get; set; }
public Guid CreateUserId { get; set; }
public DateTime CreateTime { get; set; }
public Guid UpdateUserId { get; set; }
public DateTime UpdateTime { get; set; }
public List<Guid> InstanceList { get; set; } = new List<Guid>();
}
public class DicomSeriesWithLabelDTO : DicomSeriesDTO
{
public bool HasLabel { get; set; } = false;
public bool KeySeries { get; set; } = false;
}
}
@@ -0,0 +1,91 @@
namespace IRaCIS.Core.Application.Contracts
{
public class DicomStudyBasicDTO
{
public Guid Id { get; set; }
public Guid TrialId { get; set; }
public Guid SiteId { 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 SiteId { 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; }
}
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 SiteId { 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;
}
}
@@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace IRaCIS.Core.Application.Contracts.Dicom.DTO
{
public class ImageLabelDTO
{
public Guid Id { get; set; } = Guid.Empty;
public string TpCode { get; set; } = string.Empty;
public Guid StudyId { get; set; } = Guid.Empty;
public Guid SeriesId { get; set; } = Guid.Empty;
public Guid InstanceId { get; set; } = Guid.Empty;
public string LabelValue { get; set; } = string.Empty;
}
public class ImageLabelInfo
{
public Guid StudyId { get; set; } = Guid.Empty;
public Guid SeriesId { get; set; } = Guid.Empty;
public Guid InstanceId { get; set; } = Guid.Empty;
public string LabelValue { get; set; } = string.Empty;
}
public class ImageLabelCommand
{
public string TpCode { get; set; } = string.Empty;
public List<ImageLabelInfo> ImageLabelList { get; set; } = new List<ImageLabelInfo>();
}
}
@@ -0,0 +1,23 @@
using System;
namespace IRaCIS.Core.Application.Contracts.Dicom.DTO
{
public class ImageShareCommand
{
public Guid TrialId { get; set; }
public Guid SiteId { get; set; }
public Guid SubjectId { get; set; }
public Guid? StudyId { get; set; }
public DateTime? ExpireTime { get; set; }
public string Password { get; set; } = string.Empty;
}
public class ResourceInfo
{
public Guid StudyId { get; set; }
public string Token { get; set; } = string.Empty;
}
}
@@ -0,0 +1,30 @@
namespace IRaCIS.Core.Application.Contracts.Dicom.DTO
{
public class StudyDTFDTO
{
public Guid Id { get; set; }
public Guid StudyId { get; set; }
public string FileName { get; set; } = string.Empty;
public string Path { get; set; } = string.Empty;
public Guid CreateUserId { get; set; }
public string UserName { get; set; } = string.Empty;
public string FirstName { get; set; } = string.Empty;
public string LastName { get; set; } = string.Empty;
public DateTime CreateTime { get; set; }
}
public class StudyDTFAddOrUpdateCommand
{
public Guid? Id { get; set; }
public Guid StudyId { get; set; }
public string FileName { get; set; } = string.Empty;
public string Path { get; set; } = string.Empty;
}
}
@@ -0,0 +1,46 @@
namespace IRaCIS.Core.Application.Contracts.Dicom.DTO
{
public class StudyReviewerDTO
{
public Guid Id { get; set; }
public Guid StudyId { get; set; }
public Guid ReviewerId { get; set; }
}
public class StudyDistributeInfo
{
public Guid StudyId { get; set; }
public int Status { get; set; }
//public int ReviewerCount { get; set; }
}
public class StudyReviewerCommand
{
public List<StudyDistributeInfo> StudyList { get; set; } = new List<StudyDistributeInfo>();
//public List<Guid> StudyIdList { get; set; }
public Guid ReviewerId { get; set; }
//public int WorkloadType { get; set; }
public Guid TrialId { get; set; }
//public bool IsDoubleReview { get; set; }
}
public class StudyReviewerEditCommand
{
public Guid TrialId { get; set; }
public Guid StudyId { get; set; }
public bool IsDoubleReview { get; set; }
public Guid? ReviewerId1 { get; set; }
public Guid? ReviewerId2 { get; set; }
public Guid? ReviewerIdForAD { get; set; }
}
public class ReviewerDistributionDTO
{
public Guid ReviewerId { get; set; }
public string FirstName { get; set; } = string.Empty;
public string LastName { get; set; } = string.Empty;
public string ReviewerCode { get; set; } = string.Empty;
}
}
@@ -0,0 +1,27 @@
using System;
namespace IRaCIS.Core.Application.Contracts.Dicom.DTO
{
public class StudyStatusDetailDTO
{
public Guid Id { get; set; }
public Guid StudyId { get; set; }
public int Status { get; set; }
public string OptUserName { get; set; }=string.Empty;
public DateTime OptTime { get; set; }
public string Note { get; set; } = string.Empty;
}
public class StudyStatusDetailCommand
{
public Guid StudyId { get; set; }
public int Status { get; set; }
public DateTime? DeadlineTime { get; set; }
public string Note { get; set; } = string.Empty;
//QA不通过的时候传递参数
public string QAComment { get; set; } = string.Empty;
}
}
@@ -0,0 +1,61 @@
//--------------------------------------------------------------------
// 此代码由T4模板自动生成 byzhouhang 20210918
// 生成时间 2022-03-03 15:28:20
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
//--------------------------------------------------------------------
using System;
using System.Collections.Generic;
namespace IRaCIS.Core.Application.ViewModel
{
/// <summary> SystemAnonymizationView 列表视图模型 </summary>
public class SystemAnonymizationView: SystemAnonymizationAddOrEdit
{
public Guid CreateUserId { get; set; }
public DateTime UpdateTime { get; set; }
public Guid UpdateUserId { get; set; }
public DateTime CreateTime { get; set; }
}
///<summary>SystemAnonymizationQuery 列表查询参数模型</summary>
public class SystemAnonymizationQuery:PageInput
{
public string Group { get; set; } = string.Empty;
public bool? IsAdd { get; set; }
public string Element { get; set; } = string.Empty;
public string TagDescription { get; set; } = string.Empty;
public string ValueRepresentation { get; set; } = string.Empty;
}
///<summary> SystemAnonymizationAddOrEdit 列表查询参数模型</summary>
public class SystemAnonymizationAddOrEdit
{
public Guid? Id { get; set; }
public string Group { get; set; } = String.Empty;
public string Element { get; set; } = String.Empty;
public string TagDescription { get; set; } = String.Empty;
public string TagDescriptionCN { get; set; } = String.Empty;
public string ReplaceValue { get; set; } = String.Empty;
public string ValueRepresentation { get; set; } = String.Empty;
public bool IsAdd { get; set; }
public bool IsEnable { get; set; }
public bool IsFixed { get; set; }
}
}
@@ -0,0 +1,109 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IRaCIS.Core.Application.Contracts
{
public class UnionStudyBaseModel
{
public Guid TrialId { get; set; }
public Guid SiteId { get; set; }
public Guid SubjectId { get; set; }
public Guid SubjectVisitId { get; set; }
public string SubjectCode { get; set; }
public string VisitName { get; set; } = string.Empty;
public decimal VisitNum { get; set; }
public string TrialSiteCode { get; set; } = string.Empty;
public string TrialSiteAliasName { get; set; } = string.Empty;
public string Uploader { get; set; } = string.Empty;
public DateTime UploadTime { get; set; }
public string StudyCode => IsDicom ? DicomStudyCode : "NST" + NoneDicomCode.ToString("D5");
[JsonIgnore]
public string DicomStudyCode { get; set; } = string.Empty;
[JsonIgnore]
public int NoneDicomCode { get; set; }
public bool IsDicom { get; set; }
}
public class UnionStudyMonitorModel : UnionStudyBaseModel
{
public Guid StudyId { get; set; }
public DateTime UploadStartTime { get; set; }
public DateTime UploadFinishedTime { get; set; }
public decimal FileSize { get; set; }
public string IP { get; set; }
public bool IsDicomReUpload { get; set; }
public bool IsDicom { get; set; }
public int FileCount { get; set; }
}
public class UnionStudyViewModel:UnionStudyBaseModel
{
public Guid Id { get; set; }
public int? Count { get; set; }
public string Modalities { get; set; } = string.Empty;
public string Bodypart { get; set; } = string.Empty;
public DateTime? StudyTime { get; set; }
}
public class StudyQuery:PageInput
{
[NotDefault]
public Guid TrialId { get; set; }
public Guid? SubjectId { get; set; }
public Guid? SiteId { get; set; }
public Guid? SubjectVisitId { get; set; }
public string SubjectInfo { get; set; } = String.Empty;
public string VisitPlanInfo { get; set; } = String.Empty;
}
}