Test_HIR_Net8
parent
582b8b3c07
commit
f1a39e3b9d
Binary file not shown.
|
@ -0,0 +1,108 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||
{
|
||||
|
||||
public class TumorEvaluationInfo
|
||||
{
|
||||
public List<ExportTumorEvaluationInfo> VisitList { get; set; }
|
||||
}
|
||||
|
||||
public class ExportTumorEvaluationInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 所有访视的靶病灶列表
|
||||
/// </summary>
|
||||
public List<ExportVisitData> VisitList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 访视一
|
||||
/// </summary>
|
||||
public ExportVisitData VisitOne { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 访视二
|
||||
/// </summary>
|
||||
public ExportVisitData VisitTwo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 访视三
|
||||
/// </summary>
|
||||
public ExportVisitData VisitThree { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 靶病灶信息
|
||||
/// </summary>
|
||||
public List<TargetInfo> TargetInfoList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 非靶病灶信息
|
||||
/// </summary>
|
||||
public List<NoTargetInfo> NoTargetInfoList { get; set; }
|
||||
}
|
||||
|
||||
public class NoTargetInfo
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public class TargetInfo
|
||||
{
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
||||
public string VisitOneImgNum { get; set; } = string.Empty;
|
||||
|
||||
public string VisitOneLength { get; set; } = string.Empty;
|
||||
|
||||
public string VisitTwoImgNum { get; set; } = string.Empty;
|
||||
|
||||
public string VisitTwoLength { get; set; } = string.Empty;
|
||||
|
||||
public string VisitThreeImgNum { get; set; } = string.Empty;
|
||||
|
||||
public string VisitThreeLength { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
public class ExportVisitData
|
||||
{
|
||||
/// <summary>
|
||||
/// 访视名称
|
||||
/// </summary>
|
||||
public string VisitName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 检查日期
|
||||
/// </summary>
|
||||
public string CheckDate { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 检查信息
|
||||
/// </summary>
|
||||
public List<DicomStudyInfo> CheckInfoList { get; set; } = new List<DicomStudyInfo>();
|
||||
|
||||
/// <summary>
|
||||
/// 检查信息字符串
|
||||
/// </summary>
|
||||
public string CheckInfoStr => string.Join("/", CheckInfoList.Select(x => $"{x.Modalities}、{x.BodyPartExamined}"));
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public class DicomStudyInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 检查类型
|
||||
/// </summary>
|
||||
public string Modalities { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 标记
|
||||
/// </summary>
|
||||
public string BodyPartExamined { get; set; }
|
||||
}
|
||||
}
|
|
@ -301,6 +301,8 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public class DownLoadReadReportInDto
|
||||
{
|
||||
/// <summary>
|
||||
|
@ -309,6 +311,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
|||
public Guid VisitTaskId { get; set; }
|
||||
|
||||
public Guid DownLoadGuid { get; set; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -50,6 +50,56 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
|||
};
|
||||
}
|
||||
|
||||
///// <summary>
|
||||
///// 获取肿瘤评估报告
|
||||
///// </summary>
|
||||
///// <param name="inDto"></param>
|
||||
///// <returns></returns>
|
||||
//public async Task<Stream> DownLoadTumorEvaluationStream(DownLoadReadReportInDto inDto)
|
||||
//{
|
||||
// var downFile = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, $@"wwwroot/ReadReoprtTemplate/downLoad/{inDto.DownLoadGuid}");
|
||||
// Directory.CreateDirectory(downFile);
|
||||
|
||||
// var taskinfo = await _visitTaskRepository.Where(x => x.Id == inDto.VisitTaskId && x.ReadingCategory == ReadingCategory.Visit)
|
||||
// .Include(x => x.TrialReadingCriterion).FirstNotNullAsync();
|
||||
// var visitInfo = await _subjectVisitRepository.Where(x => x.Id == taskinfo.SourceSubjectVisitId).Include(x => x.StudyList).FirstNotNullAsync();
|
||||
// var subjectInfo = await _subjectRepository.Where(x => x.Id == taskinfo.SubjectId).Include(x=>x.Trial).Include(x => x.SubjectPatientList).FirstNotNullAsync();
|
||||
// var subjectPatientList = await _subjectPatientRepository.Where(x => x.SubjectId == subjectInfo.Id).Include(x => x.Patient).ToListAsync();
|
||||
|
||||
// var value = new Dictionary<string, object>()
|
||||
// {
|
||||
// { "ResearchProgramNo" ,subjectInfo.Trial.ResearchProgramNo }, // 试验方案号
|
||||
// { "SubjectName",subjectInfo.ShortName }, //患者姓名
|
||||
// { "SubjectCode",subjectPatientList.Select(x=>x.Patient).OrderByDescending(x=>x.CreateTime).Select(x=>x.PatientIdStr).FirstIsNullReturnEmpty() }, //患者编号
|
||||
|
||||
|
||||
|
||||
// { "SubjectName","" }, //患者姓名
|
||||
// { "SubjectSex", "" }, //患者性别
|
||||
// { "SubjectAge", "" }, //患者年龄
|
||||
// { "SubjectCode", "" }, //患者编号
|
||||
// { "VisitName", "" }, //访视名称
|
||||
// { "LatestScanDate", "" }, //随访日期
|
||||
// { "CriterionName", "" }, //评估标准
|
||||
// { "AssessmentResult", "" }, //评估结果
|
||||
// { "DoctorName", "" }, //医生姓名
|
||||
// { "SignTime", "" }, //签名时间
|
||||
// { "StudyInfo", new List<Dictionary<string, object>>() }, // 检查信息
|
||||
// { "FirstVisit", "" },
|
||||
// { "SecondVisit", "" },
|
||||
// { "ThirdlyVisit", "" },
|
||||
// { "TargetInfo", new List<Dictionary<string, object>>() }, // 靶病灶
|
||||
// { "NoTargetInfo", new List<Dictionary<string, object>>() }, // 非把病灶
|
||||
// { "NewTargetInfo", new List<Dictionary<string, object>>() },// 新病灶
|
||||
// { "TargetImage", "" }, // 靶病灶图片
|
||||
// { "NoTargetImage", "" }, // 非靶病灶图片
|
||||
// { "NewImage", "" }, // 新病灶图片
|
||||
// { "Result", new List<Dictionary<string, object>>() }, // 评估结果
|
||||
// { "Curative", new List<Dictionary<string, object>>() }, // 疗效结果
|
||||
// { "ReportNo", "" } ,
|
||||
// };
|
||||
//}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 下载阅片报告
|
||||
|
|
Loading…
Reference in New Issue