修改一版
This commit is contained in:
@@ -143,9 +143,13 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
|
||||
public bool IsHaveClinicalData { get; set; }
|
||||
|
||||
public string MedicalNo { get; set; }
|
||||
|
||||
public int? Age { get; set; }
|
||||
public string Sex { get; set; } = string.Empty;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -130,19 +130,20 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
|
||||
var subvisit = await _repository.GetQueryable<SubjectVisit>().FirstOrDefaultAsync(x => x.Id == subjectVisitId);
|
||||
|
||||
List<DataInspection> datas = new List<DataInspection>();
|
||||
datas.Add(new DataInspection()
|
||||
{
|
||||
// 修改访视状态
|
||||
//List<DataInspection> datas = new List<DataInspection>();
|
||||
//datas.Add(new DataInspection()
|
||||
//{
|
||||
|
||||
SiteId = subvisit.SiteId,
|
||||
SubjectId = subvisit.SubjectId,
|
||||
TrialId = subvisit.TrialId,
|
||||
SubjectVisitId = subvisit.Id,
|
||||
Identification = "Edit|Visit|Status|Visit-Image Upload|Add Image",
|
||||
JsonDetail = subvisit.ToJcJson()
|
||||
});
|
||||
// SiteId = subvisit.SiteId,
|
||||
// SubjectId = subvisit.SubjectId,
|
||||
// TrialId = subvisit.TrialId,
|
||||
// SubjectVisitId = subvisit.Id,
|
||||
// Identification = "Edit|Visit|Status|Visit-Image Upload|Add Image",
|
||||
// JsonDetail = subvisit.ToJcJson()
|
||||
//});
|
||||
|
||||
await _inspectionService.AddListInspectionRecordAsync(datas);
|
||||
//await _inspectionService.AddListInspectionRecordAsync(datas);
|
||||
|
||||
return ResponseOutput.Ok();
|
||||
}
|
||||
@@ -193,6 +194,7 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
JsonDetail = subvisit.ToJcJson()
|
||||
});
|
||||
|
||||
|
||||
await _inspectionService.AddListInspectionRecordAsync(datas);
|
||||
}
|
||||
|
||||
|
||||
@@ -127,11 +127,12 @@ namespace IRaCIS.Core.Application.Service
|
||||
// .ForMember(d => d.SubejctIsEnrollmentConfirm, u => u.MapFrom(t => t.Subject.IsEnrollmentConfirm))
|
||||
// .ForMember(d => d.SubejctFistGiveMedicineTime, u => u.MapFrom(t => t.Subject.FistGiveMedicineTime))
|
||||
.ForMember(d => d.TrialSiteCode, u => u.MapFrom(s => s.TrialSite.TrialSiteCode))
|
||||
.ForMember(d => d.QCProcessEnum, u => u.MapFrom(s => s.Trial.QCProcessEnum))
|
||||
.ForMember(d => d.SubjectId, u => u.MapFrom(t => t.Subject.Id))
|
||||
.ForMember(d => d.Sex, u=> u.MapFrom(s => s.Subject.Sex))
|
||||
.ForMember(d => d.Age, u => u.MapFrom(t => t.Subject.Age))
|
||||
.ForMember(d => d.IsHaveClinicalData, u => u.MapFrom(t=> t.IsBaseLine? t.PreviousHistoryList.Any() || t.PreviousOtherList.Any() || t.PreviousPDFList.Any() || t.PreviousSurgeryList.Any() :false))
|
||||
.ForMember(d => d.QCProcessEnum, u => u.MapFrom(s => s.Trial.QCProcessEnum))
|
||||
.ForMember(d => d.SubjectId, u => u.MapFrom(t => t.Subject.Id))
|
||||
.ForMember(d => d.MedicalNo, u => u.MapFrom(s => s.Subject.MedicalNo))
|
||||
.ForMember(d => d.Sex, u=> u.MapFrom(s => s.Subject.Sex))
|
||||
.ForMember(d => d.Age, u => u.MapFrom(t => t.Subject.Age))
|
||||
.ForMember(d => d.IsHaveClinicalData, u => u.MapFrom(t=> t.IsBaseLine? t.PreviousHistoryList.Any() || t.PreviousOtherList.Any() || t.PreviousPDFList.Any() || t.PreviousSurgeryList.Any() :false))
|
||||
|
||||
//.ForMember(d => d.VisitName, u => u.MapFrom(t =>t.InPlan? t.VisitStage.VisitName : t.VisitName))
|
||||
//.ForMember(d => d.VisitNum, u => u.MapFrom(t => t.InPlan ? t.VisitStage.VisitNum : t.VisitNum))
|
||||
|
||||
Reference in New Issue
Block a user