diff --git a/IRaCIS.Core.Application/Service/Doctor/DTO/DoctorModel.cs b/IRaCIS.Core.Application/Service/Doctor/DTO/DoctorModel.cs index bab804b6..bae63ea9 100644 --- a/IRaCIS.Core.Application/Service/Doctor/DTO/DoctorModel.cs +++ b/IRaCIS.Core.Application/Service/Doctor/DTO/DoctorModel.cs @@ -208,6 +208,9 @@ namespace IRaCIS.Application.Contracts public string BlindNameCN { get; set; } = string.Empty; public Guid? SpecialityId { get; set; } = Guid.Empty; + + public string SpecialityCN { get; set; } = string.Empty; + public string Speciality { get; set; } = string.Empty; public string SpecialityOther { get; set; } = string.Empty; public string SpecialityOtherCN { get; set; } = string.Empty; diff --git a/IRaCIS.Core.Application/Service/Doctor/_MapConfig.cs b/IRaCIS.Core.Application/Service/Doctor/_MapConfig.cs index 506885ae..ab87ae8e 100644 --- a/IRaCIS.Core.Application/Service/Doctor/_MapConfig.cs +++ b/IRaCIS.Core.Application/Service/Doctor/_MapConfig.cs @@ -139,6 +139,8 @@ namespace IRaCIS.Core.Application.Service CreateMap().IncludeMembers(t => t.Doctor, t => t.Doctor.Hospital) .ForMember(o => o.DictionaryList, t => t.MapFrom(u => u.Doctor.DoctorDicRelationList.Where(t => t.KeyName == StaticData.ReadingType || t.KeyName == StaticData.Subspeciality).Select(t => t.Dictionary).OrderBy(t => t.ShowOrder))) + .ForMember(d => d.Speciality, u => u.MapFrom(s => s.Doctor.Speciality.Value)) + .ForMember(d => d.SpecialityCN, u => u.MapFrom(s => s.Doctor.Speciality.ValueCN)) .ForMember(d => d.Id, u => u.MapFrom(s => s.Doctor.Id)); CreateMap(); CreateMap();