添加项目文件。
This commit is contained in:
@@ -0,0 +1,75 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace IRaCIS.Core.Application.Contracts;
|
||||
|
||||
public class SignDTO
|
||||
{
|
||||
public string UserName { get; set; } = String.Empty;
|
||||
|
||||
public string PassWord { get; set; } = String.Empty;
|
||||
|
||||
public string SignText { get; set; } = String.Empty;
|
||||
|
||||
|
||||
|
||||
[NotDefault]
|
||||
public Guid TrialId { get; set; }
|
||||
|
||||
[NotDefault]
|
||||
public Guid SignCodeId { get; set; }
|
||||
|
||||
[NotDefault]
|
||||
public string SignCode { get; set; } = String.Empty;
|
||||
|
||||
public Guid? SubjectVisitId { get; set; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
public class DataInspectionAddDTO
|
||||
{
|
||||
|
||||
public Guid TrialId { get; set; }
|
||||
public Guid SiteId { get; set; }
|
||||
public Guid SubjectId { get; set; }
|
||||
public Guid SubjectVisitId { get; set; }
|
||||
public int ModuleEnum { get; set; }
|
||||
public int OptEnum { get; set; }
|
||||
|
||||
|
||||
|
||||
public string BlindName { get; set; } = string.Empty;
|
||||
public string Reason { get; set; } = string.Empty;
|
||||
public bool IsSign { get; set; }
|
||||
public string JsonDetail { get; set; } = string.Empty;
|
||||
|
||||
|
||||
|
||||
|
||||
////需要单独处理
|
||||
//public string IP { get; set; }
|
||||
|
||||
//public Guid? SignId { get; set; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
public interface IInspectionDTO
|
||||
{
|
||||
public DataInspectionAddDTO AuditInfo { get; set; }
|
||||
}
|
||||
|
||||
public interface ISignDTO
|
||||
{
|
||||
public SignDTO SignInfo { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class TrialDocumentConfirmDTO : IInspectionDTO, ISignDTO
|
||||
{
|
||||
public UserConfirmCommand OptCommand { get; set; }
|
||||
|
||||
public DataInspectionAddDTO AuditInfo { get; set; }
|
||||
|
||||
public SignDTO SignInfo { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using IRaCIS.Core.Domain.Share;
|
||||
|
||||
namespace IRaCIS.Core.Application.Contracts
|
||||
{
|
||||
|
||||
public class QANoticeDTO
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public Guid TrialId { get; set; }
|
||||
|
||||
public Guid StudyId { get; set; }
|
||||
|
||||
public string StudyStatusStr { get; set; } = string.Empty;
|
||||
|
||||
public string Message { get; set; } = string.Empty;
|
||||
|
||||
public DateTime SendTime { get; set; }
|
||||
|
||||
public DateTime? DealTime { get; set; }
|
||||
|
||||
|
||||
public string FromUser { get; set; } = string.Empty;
|
||||
|
||||
public string FromUserType { get; set; } = string.Empty;
|
||||
|
||||
public NoticeType NoticeTypeEnum { get; set; }
|
||||
|
||||
public bool NeedDeal { get; set; }
|
||||
|
||||
public bool IsMessageReceiver { get; set; } = false;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,261 @@
|
||||
using IRaCIS.Core.Domain.Share;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Text;
|
||||
|
||||
namespace IRaCIS.Core.Application.Contracts
|
||||
{
|
||||
|
||||
public class BasicTrialConfig
|
||||
{
|
||||
public Guid TrialId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 受试者编号具体规则
|
||||
/// </summary>
|
||||
public string SubjectCodeRule { get; set; } = string.Empty;
|
||||
|
||||
public bool IsSubjectSecondCodeView { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否 验证拍片日期
|
||||
/// </summary>
|
||||
public bool IsVerifyVisitImageDate { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// 是否 提醒受试者编号规则
|
||||
/// </summary>
|
||||
public bool IsNoticeSubjectCodeRule { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// 是否 有基准时间(首次给药时间)
|
||||
/// </summary>
|
||||
public bool IsHaveFirstGiveMedicineDate { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// 是否有 受试者年龄
|
||||
/// </summary>
|
||||
public bool IsHaveSubjectAge { get; set; } = false;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 出组后计划外访视名称
|
||||
/// </summary>
|
||||
public string OutEnrollmentVisitName { get; set; } = "EOT";
|
||||
|
||||
/// <summary>
|
||||
/// 临床信息传输 1:系统录入2:系统录入+PDF 0:无
|
||||
/// </summary>
|
||||
public int ClinicalInformationTransmissionEnum { get; set; } = 1;
|
||||
|
||||
public bool IsSubjectSexView { get; set; } = false;
|
||||
|
||||
|
||||
public int ChangeDefalutDays { get; set; } = 5;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 跨项目复制
|
||||
/// </summary>
|
||||
public bool IsImageReplicationAcrossTrial { get; set; } = false;
|
||||
|
||||
|
||||
public string BodyPartTypes { get; set; } = string.Empty;
|
||||
|
||||
|
||||
public string Modalitys { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
public class TrialProcessConfig
|
||||
{
|
||||
|
||||
public List<Guid> CriterionIds { get; set; } = new List<Guid>();
|
||||
|
||||
public Guid TrialId { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// QC流程 0 不审,1 单审,2双审
|
||||
/// </summary>
|
||||
public TrialQCProcess QCProcessEnum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 影像一致性核查
|
||||
/// </summary>
|
||||
public bool IsImageConsistencyVerification { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// 1 Mint、2 PACS
|
||||
/// </summary>
|
||||
|
||||
public int ImagePlatform { get; set; } = 1;
|
||||
|
||||
//阅片方式
|
||||
public int ReadingMode { get; set; }
|
||||
|
||||
//阅片类型
|
||||
public int ReadingType { get; set; }
|
||||
|
||||
|
||||
public bool IsGlobalReading { get; set; } = true;
|
||||
|
||||
public bool? IsArbitrationReading { get; set; }
|
||||
|
||||
public bool? IsClinicalReading { get; set; }
|
||||
|
||||
|
||||
public int ArbitrationRule { get; set; }
|
||||
|
||||
public int? DigitPlaces { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class TrialUrgentConfig
|
||||
{
|
||||
public Guid TrialId { get; set; }
|
||||
|
||||
public bool IsSubjectExpeditedView { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// 是否有 入组评估确认
|
||||
/// </summary>
|
||||
public bool IsEnrollementQualificationConfirm { get; set; } = false;
|
||||
|
||||
public bool IsUrgent { get; set; }
|
||||
|
||||
public bool IsPDProgressView { get; set; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
public class TrialStateChangeDTO
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public Guid TrialId { get; set; }
|
||||
|
||||
|
||||
public string OriginState { get; set; } = String.Empty;
|
||||
|
||||
|
||||
public string NowState { get; set; } = String.Empty;
|
||||
|
||||
|
||||
public string Reason { get; set; } = String.Empty;
|
||||
|
||||
|
||||
public DateTime CreateTime { get; set; }
|
||||
|
||||
|
||||
public Guid CreateUserId { get; set; }
|
||||
|
||||
public string UserName { get; set; } = String.Empty;
|
||||
|
||||
public string UserRealName { get; set; } = String.Empty;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
public class SignConfirmDTO
|
||||
{
|
||||
[NotDefault]
|
||||
public Guid TrialId { get; set; }
|
||||
|
||||
[NotDefault]
|
||||
public Guid SignId { get; set; }
|
||||
|
||||
|
||||
[NotDefault]
|
||||
public string SignCode { get; set; }
|
||||
}
|
||||
|
||||
public class TrialConfigDTO: BasicTrialConfig
|
||||
{
|
||||
|
||||
public List<Guid> CriterionIds { get; set; } = new List<Guid>();
|
||||
|
||||
public bool IsTrialProcessConfirmed { get; set; }
|
||||
|
||||
public bool IsTrialBasicLogicConfirmed { get; set; }
|
||||
|
||||
public bool IsTrialUrgentConfirmed { get; set; }
|
||||
|
||||
|
||||
public int DigitPlaces { get; set; }
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// QC流程 0 不审,1 单审,2双审
|
||||
/// </summary>
|
||||
public TrialQCProcess QCProcessEnum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 影像一致性核查
|
||||
/// </summary>
|
||||
public bool IsImageConsistencyVerification { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// 1 Mint、2 PACS
|
||||
/// </summary>
|
||||
|
||||
public int ImagePlatform { get; set; } = 1;
|
||||
|
||||
//阅片方式
|
||||
public int ReadingMode { get; set; }
|
||||
|
||||
//阅片类型
|
||||
public int ReadingType { get; set; }
|
||||
|
||||
|
||||
public bool IsGlobalReading { get; set; } = true;
|
||||
|
||||
public bool? IsArbitrationReading { get; set; }
|
||||
|
||||
public bool? IsClinicalReading { get; set; }
|
||||
|
||||
|
||||
public int ArbitrationRule { get; set; }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public bool IsSubjectExpeditedView { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// 是否有 入组评估确认
|
||||
/// </summary>
|
||||
public bool IsEnrollementQualificationConfirm { get; set; } = false;
|
||||
|
||||
public bool IsUrgent { get; set; }
|
||||
|
||||
public bool IsPDProgressView { get; set; }
|
||||
|
||||
|
||||
|
||||
//public bool IsTrialStart { get; set; } = false;
|
||||
|
||||
public bool IsQCQuestionConfirmed { get; set; }
|
||||
|
||||
public string TrialStatusStr { get; set; }
|
||||
|
||||
|
||||
|
||||
|
||||
//public string DocumentConfirmSignText { get; set; } = string.Empty;
|
||||
//public string ImageQCSignText { get; set; } = string.Empty;
|
||||
//public string PreliminaryAuditReuploadText { get; set; } = string.Empty;
|
||||
//public string ReviewAuditReuploadText { get; set; } = string.Empty;
|
||||
//public string CheckBackText { get; set; } = string.Empty;
|
||||
//public string CheckCloseText { get; set; } = string.Empty;
|
||||
//public string ChallengeTypes { get; set; } = string.Empty;
|
||||
//public bool IsImageExport { get; set; } = false;
|
||||
//public bool IsCRAAuditClinicalInformation { get; set; } = false;
|
||||
//public string TrialSiteSurveyUserRoles { get; set; } = string.Empty;
|
||||
//public string TrialSiteSurveyEquipmentType { get; set; } = string.Empty;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,149 @@
|
||||
//--------------------------------------------------------------------
|
||||
// 此代码由T4模板自动生成 byzhouhang 20210918
|
||||
// 生成时间 2022-03-04 13:33:45
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
|
||||
//--------------------------------------------------------------------
|
||||
using IRaCIS.Core.Domain.Share;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using IRaCIS.Core.Application.Contracts.DTO;
|
||||
|
||||
namespace IRaCIS.Core.Application.ViewModel
|
||||
{
|
||||
/// <summary> TrialExternalUserView 列表视图模型 </summary>
|
||||
public class TrialExternalUserView: TrialExternalUserAddOrEdit
|
||||
{
|
||||
|
||||
public DateTime CreateTime { get; set; }
|
||||
public Guid CreateUserId { get; set; }
|
||||
public DateTime UpdateTime { get; set; }
|
||||
public Guid UpdateUserId { get; set; }
|
||||
|
||||
public bool IsSystemUser { get; set; }
|
||||
|
||||
|
||||
public Guid SystemUserId { get; set; }
|
||||
|
||||
public TrialExternalUserStateEnum InviteState { get; set; }
|
||||
|
||||
|
||||
public DateTime? ExpireTime { get; set; }
|
||||
|
||||
public bool? IsJoin { get; set; }
|
||||
|
||||
public DateTime? ConfirmTime { get; set; }
|
||||
|
||||
public string RejectReason { get; set; }
|
||||
}
|
||||
|
||||
///<summary>TrialExternalUserQuery 列表查询参数模型</summary>
|
||||
public class TrialExternalUserQuery
|
||||
{
|
||||
public Guid TrialId { get; set; }
|
||||
|
||||
public string Phone { get; set; } = string.Empty;
|
||||
public string Email { get; set; } = string.Empty;
|
||||
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
|
||||
}
|
||||
|
||||
///<summary> TrialExternalUserAddOrEdit 列表查询参数模型</summary>
|
||||
public class TrialExternalUserAddOrEdit: VerifyUserAdd
|
||||
{
|
||||
public Guid? Id { get; set; }
|
||||
|
||||
[NotDefault]
|
||||
public Guid TrialId { get; set; }
|
||||
|
||||
public string OrganizationName { get; set; } = String.Empty;
|
||||
|
||||
|
||||
|
||||
}
|
||||
public class TrialExternalUserConfirm
|
||||
{
|
||||
|
||||
|
||||
[NotDefault]
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public bool? IsJoin { get; set; }
|
||||
|
||||
public DateTime? ConfirmTime { get; set; }
|
||||
|
||||
public string RejectReason { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class TrialSiteUserSurveyUserConfirm: TrialExternalUserConfirm
|
||||
{
|
||||
//[NotDefault]
|
||||
//public Guid TrialId { get; set; }
|
||||
|
||||
//[NotDefault]
|
||||
//public Guid SiteId { get; set; }
|
||||
}
|
||||
|
||||
|
||||
public class TrialInfoWithPreparationInfo: TrialExternalUserConfirm
|
||||
{
|
||||
|
||||
public string ExperimentName { get; set; } = string.Empty;
|
||||
|
||||
public string TrialCode { get; set; } = string.Empty;
|
||||
|
||||
public string Indication { get; set; } = string.Empty;
|
||||
|
||||
public string ResearchProgramNo { get; set; } = string.Empty;
|
||||
|
||||
public Guid UserId { get; set; }
|
||||
|
||||
public Guid TrialId { get; set; }
|
||||
}
|
||||
|
||||
public class TrialExternalUserSendEmail
|
||||
{
|
||||
[NotDefault]
|
||||
public Guid TrialId { get; set; }
|
||||
|
||||
public string BaseUrl { get; set; } = string.Empty;
|
||||
|
||||
public string RouteUrl { get; set; } = string.Empty;
|
||||
|
||||
public List<UserEmail> SendUsers { get; set; } = new List<UserEmail>();
|
||||
}
|
||||
|
||||
public class UserEmail
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public string Email { get; set; } = string.Empty;
|
||||
|
||||
public bool IsSystemUser { get; set; }
|
||||
|
||||
[NotDefault]
|
||||
public Guid SystemUserId { get; set; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
public class VerifyUserAdd
|
||||
{
|
||||
[NotDefault]
|
||||
public Guid UserTypeId { get; set; }
|
||||
|
||||
public string Email { get; set; } = string.Empty;
|
||||
|
||||
|
||||
public string Phone { get; set; } = string.Empty;
|
||||
|
||||
public string FirstName { get; set; } = string.Empty;
|
||||
public string LastName { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using IRaCIS.Core.Infrastructure.Extention;
|
||||
|
||||
namespace IRaCIS.Application.Contracts
|
||||
{
|
||||
public class TrialResearchCenterDTO
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public Guid TrialId { get; set; }
|
||||
public Guid SiteId { get; set; }
|
||||
public string MainCenter { get; set; } = string.Empty;
|
||||
public DateTime OptTime { get; set; }
|
||||
public int State { get; set; }
|
||||
}
|
||||
|
||||
public class TrialResearchCenterDetailDTO : TrialResearchCenterDTO
|
||||
{
|
||||
public string TrialCode { get; set; } = string.Empty;
|
||||
public string TrialName { get; set; } = string.Empty;
|
||||
public string ResearchCenterName { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
public class TrialCenterQueryDTO : PageInput
|
||||
{
|
||||
public Guid TrialId { get; set; }
|
||||
public Guid CenterId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
using System;
|
||||
using IRaCIS.Core.Infrastructure.Extention;
|
||||
using IRaCIS.Core.Domain.Share;
|
||||
|
||||
namespace IRaCIS.Core.Application.Contracts.DTO
|
||||
{
|
||||
|
||||
|
||||
public class SiteCrcQueryDTO : PageInput
|
||||
{
|
||||
public Guid TrialId { get; set; } = Guid.Empty;
|
||||
public string UserRealName { get; set; } = String.Empty;
|
||||
public string SiteName { get; set; } = String.Empty;
|
||||
public string TrialSiteAliasName { get; set; } = String.Empty;
|
||||
|
||||
}
|
||||
|
||||
public class TrialSiteCommand
|
||||
{
|
||||
public Guid TrialId { get; set; }
|
||||
public Guid SiteId { get; set; }
|
||||
|
||||
public string SiteName { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class AssginSiteCRCCommand
|
||||
{
|
||||
public Guid TrialId { get; set; }
|
||||
public Guid SiteId { get; set; }
|
||||
public Guid UserId { get; set; }
|
||||
|
||||
public string UserRealName { get; set; } = String.Empty;
|
||||
|
||||
}
|
||||
|
||||
public class AssginSiteCRCListDTO:AssginSiteCRCCommand
|
||||
{
|
||||
public Guid UserTypeId { get; set; }
|
||||
public string UserType { get; set; } = String.Empty;
|
||||
public UserTypeEnum UserTypeEnum { get; set; }
|
||||
public string OrganizationName { get; set; } = String.Empty;
|
||||
//public string UserRealName { get; set; }
|
||||
public string UserName { get; set; } = String.Empty;
|
||||
public DateTime UpdateTime { get; set; } = DateTime.Now;
|
||||
|
||||
public bool IsSelect { get; set; }
|
||||
}
|
||||
|
||||
|
||||
public class TrialSiteQuery : PageInput
|
||||
{
|
||||
public Guid TrialId { get; set; }
|
||||
|
||||
public string SiteName { get; set; } = String.Empty;
|
||||
|
||||
}
|
||||
|
||||
public class TrialSiteScreeningDTO
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public string SiteName { get; set; } = String.Empty;
|
||||
public string SiteCode { get; set; } = String.Empty;
|
||||
public string City { get; set; } = String.Empty;
|
||||
public string Country { get; set; } = String.Empty;
|
||||
public Guid HospitalId { get; set; } = Guid.Empty;
|
||||
|
||||
|
||||
public string HospitalName { get; set; } = String.Empty;
|
||||
|
||||
public bool IsSelect { get; set; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
//--------------------------------------------------------------------
|
||||
// 此代码由T4模板自动生成 byzhouhang 20210918
|
||||
// 生成时间 2022-03-24 13:22:20
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
|
||||
//--------------------------------------------------------------------
|
||||
using System;
|
||||
using IRaCIS.Core.Domain.Share;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace IRaCIS.Core.Application.ViewModel
|
||||
{
|
||||
/// <summary> TrialUserPreparation View 列表视图模型 </summary>
|
||||
public class TrialUserPreparationView
|
||||
{
|
||||
public Guid UserId { get; set; }
|
||||
public Guid TrialId { get; set; }
|
||||
public DateTime UpdateTime { get; set; }
|
||||
public DateTime CreateTime { get; set; }
|
||||
public Guid CreateUserId { get; set; }
|
||||
public Guid UpdateUserId { get; set; }
|
||||
public DateTime ExpireTime { get; set; }
|
||||
|
||||
|
||||
|
||||
public string UserName { get; set; }
|
||||
|
||||
public string UserRealName { get; set; }
|
||||
|
||||
public string UserTypeShortName { get; set; }
|
||||
|
||||
}
|
||||
|
||||
///<summary>TrialUserPreparation Query 列表查询参数模型</summary>
|
||||
public class TrialUserPreparationQuery
|
||||
{
|
||||
public Guid? UserTypeId { get; set; }
|
||||
}
|
||||
|
||||
///<summary> TrialUserPreparation AddOrEdit 列表查询参数模型</summary>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public class JoinCommand
|
||||
{
|
||||
public UserJoinTrialCommand TrialUserInfo { get; set; }
|
||||
|
||||
//public TrialUserPreparationEdit JoinInfo { get; set; }
|
||||
}
|
||||
|
||||
|
||||
public class UserJoinTrialCommand
|
||||
{
|
||||
[NotDefault]
|
||||
public Guid TrialId { get; set; }
|
||||
|
||||
[NotDefault]
|
||||
public Guid UserId { get; set; }
|
||||
|
||||
public Guid? SiteId { get; set; }
|
||||
|
||||
public bool IsExternal { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,213 @@
|
||||
using IRaCIS.Core.Infrastructure.Extention;
|
||||
using IRaCIS.Core.Domain.Share;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace IRaCIS.Application.Contracts
|
||||
{
|
||||
|
||||
|
||||
public class TrialBaseModel
|
||||
{
|
||||
public int? PlanSiteCount { get; set; }
|
||||
public int? PlanVisitCount { get; set; }
|
||||
public int TrialType { get; set; }
|
||||
public Guid? Id { get; set; }
|
||||
public string TrialCode { get; set; } = string.Empty;
|
||||
public string Indication { get; set; } = string.Empty;
|
||||
|
||||
//public Guid? ReviewTypeId { get; set; } = Guid.Empty;
|
||||
|
||||
//public Guid? CriterionId { get; set; } = Guid.Empty;
|
||||
public Guid? CROId { get; set; } = Guid.Empty;
|
||||
public Guid? SponsorId { get; set; } = Guid.Empty;
|
||||
public Guid? ReviewModeId { get; set; } = Guid.Empty;
|
||||
public string Note { get; set; } = string.Empty;
|
||||
public string TurnaroundTime { get; set; } = string.Empty;
|
||||
public int ExpectedPatients { get; set; }
|
||||
public decimal TimePointsPerPatient { get; set; }
|
||||
public int? GRRReviewers { get; set; }
|
||||
public int TotalReviewers { get; set; }
|
||||
public int? Expedited { get; set; }
|
||||
public int? AttendedReviewerType { get; set; }
|
||||
|
||||
//研究方案号
|
||||
public string ResearchProgramNo { get; set; } = string.Empty;
|
||||
|
||||
//实验名称
|
||||
public string ExperimentName { get; set; } = string.Empty;
|
||||
|
||||
//主研单位
|
||||
public string MainResearchUnit { get; set; } = string.Empty;
|
||||
|
||||
// 负责人PI
|
||||
public string HeadPI { get; set; } = string.Empty;
|
||||
|
||||
public Guid DeclarationTypeId { get; set; }
|
||||
|
||||
public Guid IndicationTypeId { get; set; }
|
||||
public Guid PhaseId { get; set; }
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
public class QuestionTypeDto
|
||||
{
|
||||
public Guid DictionaryId { get; set; }
|
||||
|
||||
public string Value { get; set; } = string.Empty;
|
||||
|
||||
public string ValueCN { get; set; } = string.Empty;
|
||||
|
||||
public bool IsSelect { get; set; }
|
||||
}
|
||||
|
||||
public class TrialSelectDTO
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public string ExperimentName { get; set; } = string.Empty;
|
||||
|
||||
public string TrialCode { get; set; } = string.Empty;
|
||||
|
||||
public string Indication { get; set; } = string.Empty;
|
||||
|
||||
public string ResearchProgramNo { get; set; } = string.Empty;
|
||||
|
||||
}
|
||||
|
||||
public class TrialModalitySelectDto
|
||||
{
|
||||
public Guid ModalityId { get; set; }
|
||||
public string Modality { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
public class TrialDetailDTO : TrialBaseModel
|
||||
{
|
||||
|
||||
[JsonIgnore]
|
||||
public List<DicView> DictionaryList { get; set; } = new List<DicView>();
|
||||
|
||||
public List<string> ModalityList => DictionaryList.Where(t => t.ParentCode == StaticData.Modality).OrderBy(t => t.ShowOrder).Select(t => t.Value).ToList();
|
||||
public List<Guid> ModalityIds => DictionaryList.Where(t => t.ParentCode == StaticData.Modality).OrderBy(t => t.ShowOrder).Select(t => t.Id).ToList();
|
||||
|
||||
public List<string> CriterionList => DictionaryList.Where(t => t.ParentCode == StaticData.ReadingStandard).OrderBy(t => t.ShowOrder).Select(t => t.Value).ToList();
|
||||
public List<Guid> CriterionIds => DictionaryList.Where(t => t.ParentCode == StaticData.ReadingStandard).OrderBy(t => t.ShowOrder).Select(t => t.Id).ToList();
|
||||
|
||||
public List<Guid> ReviewTypeIds => DictionaryList.Where(t => t.ParentCode == StaticData.ReviewType).OrderBy(t => t.ShowOrder).Select(t => t.Id).ToList();
|
||||
|
||||
public List<string> ReviewTypeList => DictionaryList.Where(t => t.ParentCode == StaticData.ReviewType).OrderBy(t => t.ShowOrder).Select(t => t.Value).ToList();
|
||||
|
||||
//public string ReviewType { get; set; } = string.Empty;
|
||||
|
||||
|
||||
|
||||
//统计字段
|
||||
public string Phase { get; set; } = string.Empty;
|
||||
|
||||
public string DeclarationType { get; set; } = string.Empty;
|
||||
|
||||
public string IndicationType { get; set; } = string.Empty;
|
||||
|
||||
|
||||
public bool IsLocked { get; set; }
|
||||
public int EnrollStatus { get; set; }
|
||||
|
||||
public int? SubjectCount { get; set; }
|
||||
|
||||
public int? StudyCount { get; set; } = 0;
|
||||
public int? SiteCount { get; set; } = 0;
|
||||
|
||||
public string ReviewMode { get; set; } = string.Empty;
|
||||
|
||||
|
||||
|
||||
|
||||
public string CRO { get; set; } = string.Empty;
|
||||
public string Sponsor { get; set; } = string.Empty;
|
||||
public int TrialEnrollStatus { get; set; }
|
||||
public string TrialStatusStr { get; set; } = string.Empty;
|
||||
|
||||
public DateTime? CreateTime { get; set; }
|
||||
public bool IsDeleted { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class TrialAndTrialStateVieModel
|
||||
{
|
||||
public TrialDetailDTO TrialView { get; set; } = new TrialDetailDTO();
|
||||
|
||||
public int TrialMaxState { get; set; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
public class TrialCommand : TrialBaseModel
|
||||
{
|
||||
|
||||
public List<Guid> ModalityIds { get; set; } = new List<Guid>();
|
||||
|
||||
public List<Guid> CriterionIds { get; set; } = new List<Guid>();
|
||||
|
||||
public List<Guid> ReviewTypeIds { get; set; } = new List<Guid>();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
public class TrialQueryDTO : PageInput
|
||||
{
|
||||
public Guid? DeclarationTypeId { get; set; }
|
||||
|
||||
public Guid? IndicationTypeId { get; set; }
|
||||
public Guid? SponsorId { get; set; }
|
||||
public Guid? CROId { get; set; }
|
||||
|
||||
|
||||
|
||||
public string ResearchProgramNo { get; set; } = String.Empty;
|
||||
|
||||
public string ExperimentName { get; set; } = String.Empty;
|
||||
public List<Guid> ModalityIds { get; set; }=new List<Guid>();
|
||||
public List<Guid> CriterionIds { get; set; } = new List<Guid>();
|
||||
|
||||
public List<Guid> ReviewTypeIds { get; set; } = new List<Guid>();
|
||||
//public Guid? ReviewTypeId { get; set; }
|
||||
|
||||
public string Code { get; set; } = String.Empty;
|
||||
|
||||
public string Indication { get; set; } = String.Empty;
|
||||
public Guid? PhaseId { get; set; }
|
||||
public string TrialStatusStr { get; set; } = String.Empty;
|
||||
|
||||
public DateTime? BeginDate { get; set; }
|
||||
public DateTime? EndDate { get; set; }
|
||||
public int? Expedited { get; set; }
|
||||
public int? AttendedReviewerType { get; set; }
|
||||
}
|
||||
|
||||
public class ReviewerTrialQueryDTO : PageInput
|
||||
{
|
||||
public string Code { get; set; } = string.Empty;
|
||||
public string Indication { get; set; } = string.Empty;
|
||||
public int? EnrollStatus { get; set; }
|
||||
public int? Expedited { get; set; }
|
||||
}
|
||||
|
||||
|
||||
public class TrialByStatusQueryDTO : PageInput
|
||||
{
|
||||
public Guid DoctorId { get; set; }
|
||||
public int Status { get; set; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,230 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using IRaCIS.Core.Infrastructure.Extention;
|
||||
using IRaCIS.Core.Domain.Share;
|
||||
|
||||
namespace IRaCIS.Application.Contracts
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
public class UserTrialDTO : UserTrialCommand
|
||||
{
|
||||
|
||||
public bool IsDeleted { get; set; }
|
||||
|
||||
public DateTime? RemoveTime { get; set; }
|
||||
public Guid? SiteId { get; set; }
|
||||
public string Phone { get; set; } = String.Empty;
|
||||
public DateTime? UpdateTime { get; set; }
|
||||
public string UserType { get; set; } = String.Empty;
|
||||
public string UserRealName { get; set; } = String.Empty;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
public class TrialMaintenanceDTO : UserTrialCommand
|
||||
{
|
||||
public bool IsDeleted { get; set; }
|
||||
public DateTime? RemoveTime { get; set; }
|
||||
|
||||
public DateTime? JoinTime { get; set; }
|
||||
|
||||
|
||||
|
||||
public DateTime UpdateTime { get; set; } = DateTime.Now;
|
||||
|
||||
public Guid UserTypeId { get; set; }
|
||||
public string UserType { get; set; } = String.Empty;
|
||||
|
||||
public UserTypeEnum UserTypeEnum { get; set; }
|
||||
|
||||
|
||||
public string OrganizationName { get; set; } = String.Empty;
|
||||
|
||||
public string UserRealName { get; set; } = String.Empty;
|
||||
public string UserName { get; set; } = String.Empty;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public class SiteCRCCommand : UserTrialCommand
|
||||
{
|
||||
public Guid SiteId { get; set; }
|
||||
|
||||
public Guid UserTypeId { get; set; }
|
||||
public string UserType { get; set; } = String.Empty;
|
||||
public string UserRealName { get; set; } = String.Empty;
|
||||
|
||||
|
||||
public UserTypeEnum UserTypeEnum { get; set; }
|
||||
|
||||
|
||||
public string OrganizationName { get; set; } = String.Empty;
|
||||
|
||||
public string UserName { get; set; } = String.Empty;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public class UserTrialCommand
|
||||
{
|
||||
public Guid? Id { get; set; }
|
||||
public Guid UserId { get; set; }
|
||||
public Guid TrialId { get; set; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public class SiteStatDTO : SiteStatSimpleDTO
|
||||
{
|
||||
|
||||
|
||||
//public int PlanVisitCount { get; set; }
|
||||
|
||||
//public int? StudyCount { get; set; }
|
||||
|
||||
public int? VisitCount { get; set; }
|
||||
public int? SubjectCount { get; set; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
public class SiteStatSimpleDTO
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public Guid SiteId { get; set; }
|
||||
|
||||
public int? UserCount { get; set; }
|
||||
|
||||
public string TrialSiteCode { get; set; } = String.Empty;
|
||||
public string TrialSiteAliasName { get; set; } = String.Empty;
|
||||
public DateTime UpdateTime { get; set; }
|
||||
|
||||
public string Site { get; set; } = String.Empty;
|
||||
|
||||
public string SiteCode { get; set; } = String.Empty;
|
||||
|
||||
|
||||
public string Hospital { get; set; } = String.Empty;
|
||||
public string City { get; set; } = String.Empty;
|
||||
public string Country { get; set; } = String.Empty;
|
||||
|
||||
public string DirectorName { get; set; } = String.Empty;
|
||||
public string DirectorPhone { get; set; } = String.Empty;
|
||||
public string ContactName { get; set; } = String.Empty;
|
||||
public string ContactPhone { get; set; } = String.Empty;
|
||||
|
||||
public string Address { get; set; } = String.Empty;
|
||||
|
||||
|
||||
public List<string> UserNameList { get; set; } = new List<string>();
|
||||
}
|
||||
|
||||
|
||||
|
||||
public class UserSelectionModel
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public string RealName { get; set; } = string.Empty;
|
||||
|
||||
public string UserName { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
|
||||
public class TrialMaintenanceQuery : PageInput
|
||||
{
|
||||
public Guid TrialId { get; set; } = Guid.Empty;
|
||||
public string UserRealName { get; set; } = string.Empty;
|
||||
public string UserType { get; set; } = string.Empty;
|
||||
|
||||
public string UserName { get; set; } = string.Empty;
|
||||
|
||||
public string OrganizationName { get; set; } = String.Empty;
|
||||
|
||||
//public DateTime? RemoveTime { get; set; }
|
||||
|
||||
//public DateTime? JoinTime { get; set; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
public class SiteCRCQuery : TrialMaintenanceQuery
|
||||
{
|
||||
|
||||
public Guid SiteId { get; set; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
public class TrialUserQuery : PageInput
|
||||
{
|
||||
public Guid TrialId { get; set; }
|
||||
public string UserName { get; set; } = string.Empty;
|
||||
|
||||
public string UserRealName { get; set; } = string.Empty;
|
||||
|
||||
public UserTypeEnum? UserTypeEnum { get; set; }
|
||||
}
|
||||
|
||||
public class TrialUserScreeningDTO : TrialUserAddCommand
|
||||
{
|
||||
|
||||
public int Sex { get; set; } // 1-男 2-女
|
||||
|
||||
public string Phone { get; set; } = string.Empty;
|
||||
public string EMail { get; set; } = string.Empty;
|
||||
|
||||
public string DepartmentName { get; set; } = String.Empty;
|
||||
public string PositionName { get; set; } = String.Empty;
|
||||
|
||||
public string UserName { get; set; } = String.Empty;
|
||||
|
||||
public bool IsSelect { get; set; }
|
||||
|
||||
|
||||
|
||||
public Guid UserTypeId { get; set; }
|
||||
public string UserType { get; set; } = string.Empty;
|
||||
public UserTypeEnum UserTypeEnum { get; set; }
|
||||
|
||||
public string OrganizationName { get; set; } = string.Empty;
|
||||
public string UserRealName { get; set; } = string.Empty;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
public class TrialUserAddCommand
|
||||
{
|
||||
public Guid UserId { get; set; }
|
||||
|
||||
public Guid TrialId { get; set; }
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
public class UpdateTrialUserCommand
|
||||
{
|
||||
[NotDefault]
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public Guid TrialId { get; set; }
|
||||
|
||||
public bool IsDeleted { get; set; }
|
||||
|
||||
public DateTime? RemoveTime { get; set; }
|
||||
|
||||
public DateTime? JoinTime { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user