//--------------------------------------------------------------------
//     此代码由T4模板自动生成  byzhouhang 20210918
//	   生成时间 2021-11-22 11:27:53 
//     对此文件的更改可能会导致不正确的行为，并且如果重新生成代码，这些更改将会丢失。
//--------------------------------------------------------------------
namespace IRaCIS.Core.Application.Contracts
{

    public class SubjectClinicalDataDto
    {
        public string SubjectCode { get; set; } = String.Empty;

        //public string SubjectName { get; set; }

        public string TrialSiteCode { get; set; } = String.Empty;

        public Guid SubjectVisitId { get; set; }

        public decimal VisitNum { get; set; }

        public string VisitName { get; set; } = String.Empty;

        public Guid SubjectId { get; set; }


        public List<PreviousHistoryView> PreviousHistoryList { get; set; } = new List<PreviousHistoryView>();

        public List<PreviousOtherView> PreviousOtherList { get; set; } = new List<PreviousOtherView>();

        public List<PreviousSurgeryView> PreviousSurgeryList { get; set; } = new List<PreviousSurgeryView>();

        public List<PreviousPDFView> PreviousPDFList { get; set; } = new List<PreviousPDFView>();
    }


    public class SubjectClinicalDataQuery
    {

        //public Guid TrialId { get; set; }

        //public Guid SubjectId { get; set; }

        //public Guid SubjectId { get; set; }


        //public bool? IsSubjectLevel { get; set; }


        public Guid SubjectVisitId { get; set; }
    }




    /// <summary> PreviousHistoryView  列表视图模型 </summary>
    public class PreviousHistoryView
    {
        public Guid Id { get; set; }
        public DateTime CreateTime { get; set; }
        public string CreateUser { get; set; } = String.Empty;
        public DateTime? StartTime { get; set; }
        public DateTime? EndTime { get; set; }
        public int? IsPD { get; set; }
        public Guid? SubjectVisitId { get; set; }
        public bool IsSubjectLevel { get; set; }
        public string Path { get; set; } = String.Empty;
        public string FileName { get; set; } = String.Empty;
        public string Position { get; set; } = String.Empty;

        public Guid CreateUserId { get; set; }

        public Guid ClinicalDataTrialSetId { get; set; }

        public string FullFilePath => Path;


    }

    ///<summary>PreviousHistoryQuery  列表查询参数模型</summary>
    public class PreviousHistoryQuery
    {
        public bool? IsSubjectLevel { get; set; }

        public string Position { get; set; } = String.Empty;

    }

    public class PreviousHistoryAddOrEdit
    {


        public Guid? Id { get; set; }

        public DateTime? StartTime { get; set; }
        public DateTime? EndTime { get; set; }
        public int? IsPD { get; set; }
        public Guid SubjectVisitId { get; set; }
        public bool IsSubjectLevel { get; set; } = true;
        public string Path { get; set; } = String.Empty;
        public string FileName { get; set; } = String.Empty;
        public string Position { get; set; } = String.Empty;

        public Guid ClinicalDataTrialSetId { get; set; }
        //public Guid SubjectId { get; set; }
    }


}


