This commit is contained in:
he
2023-02-20 13:53:17 +08:00
parent 6192c2e144
commit a81bb9e3b9
10 changed files with 59 additions and 14 deletions
@@ -538,6 +538,15 @@ namespace IRaCIS.Application.Services
}
Dictionary<ClinicalLevel, int> keys = new Dictionary<ClinicalLevel, int>() {
{ClinicalLevel.Subject,0 },
{ClinicalLevel.ImageRead,1 },
{ClinicalLevel.OncologyRead,2 },
{ClinicalLevel.SubjectVisit,3 },
};
result.OrderBy(x => keys[x.ClinicalDataLevel]).ToList();
return (result, new
{
SubjectCode = await _subjectRepository.Where(x => x.Id == inDto.SubjectId).Select(x => x.Code).FirstOrDefaultAsync(),