diff --git a/src/Shentun.Peis.Application/RegisterChecks/RegisterCheckAppService.cs b/src/Shentun.Peis.Application/RegisterChecks/RegisterCheckAppService.cs index 925db2f..b519a45 100644 --- a/src/Shentun.Peis.Application/RegisterChecks/RegisterCheckAppService.cs +++ b/src/Shentun.Peis.Application/RegisterChecks/RegisterCheckAppService.cs @@ -286,7 +286,10 @@ namespace Shentun.Peis.RegisterChecks { throw new UserFriendlyException("明细结果不能全部为空"); } - + if(input.Summarys == null || !input.Summarys.Any()) + { + throw new UserFriendlyException("小结不能为空"); + } var registerCheck = await _registerCheckRepository.GetAsync(input.RegisterCheckId); var patientRegister = await _patientRegisterRepository.GetAsync(registerCheck.PatientRegisterId); //修改医生和检查日期 diff --git a/src/Shentun.Peis.Application/TransToWebPeis/TransToWebPeisAppService.cs b/src/Shentun.Peis.Application/TransToWebPeis/TransToWebPeisAppService.cs new file mode 100644 index 0000000..601417e --- /dev/null +++ b/src/Shentun.Peis.Application/TransToWebPeis/TransToWebPeisAppService.cs @@ -0,0 +1,44 @@ +using Microsoft.AspNetCore.Mvc; +using Shentun.Peis.Models; +using Shentun.Peis.PatientRegisters; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Volo.Abp.Application.Services; + +namespace Shentun.Peis.TransToWebPeis +{ + public class TransToWebPeisAppService : ApplicationService + { + public TransToWebPeisAppService() { } + + [HttpGet("api/app/TransToWebPeis/TransBaseData")] + public async Task TransBaseDataAsync() + { + //item_type,item,asbitem,asbitem_detail,medical_package,medical_package_detail + //diagnosis_level,diagnosis + } + + [HttpGet("api/app/TransToWebPeis/TransCustomerOrg")] + public async Task TransCustomerOrgAsync() + { + //customer_org,customer_org_register + } + + [HttpGet("api/app/TransToWebPeis/TransPatientRegister")] + public async Task TransPatientRegisterAsync() + { + //patient,patient_register,register_check,register_check_asbitem + //register_check_item,register_check_picture,register_check_summary,register_check_suggestion + //sum_summary_header,sum_summary_content,sum_suggestion_header,sum_suggestion_content,sum_diagnosis, + } + + [HttpGet("api/app/TransToWebPeis/TransPatientRegisterByPatientRegisterId")] + public async Task TransPatientRegisterByPatientRegisterIdAsync(PatientRegisterIdInputDto input ) + { + + } + } +} diff --git a/src/Shentun.Peis.Domain.Shared/Enums/ThirdInterfaceTypeFlag.cs b/src/Shentun.Peis.Domain.Shared/Enums/ThirdInterfaceTypeFlag.cs index 543badd..4b2f8f0 100644 --- a/src/Shentun.Peis.Domain.Shared/Enums/ThirdInterfaceTypeFlag.cs +++ b/src/Shentun.Peis.Domain.Shared/Enums/ThirdInterfaceTypeFlag.cs @@ -23,5 +23,8 @@ namespace Shentun.Peis.Enums [Description("人员登记信息结果导入")] public const string ImportPatientRegister = "05"; + + [Description("传输数据给WebPeis")] + public const string TranToWebPeis = "06"; } } diff --git a/src/Shentun.Peis.Domain/ThirdInterfaces/ThirdInterfaceManager.cs b/src/Shentun.Peis.Domain/ThirdInterfaces/ThirdInterfaceManager.cs index ccf89d1..24287b8 100644 --- a/src/Shentun.Peis.Domain/ThirdInterfaces/ThirdInterfaceManager.cs +++ b/src/Shentun.Peis.Domain/ThirdInterfaces/ThirdInterfaceManager.cs @@ -122,7 +122,8 @@ namespace Shentun.Peis.ThirdInterfaces && entity.ThirdInterfaceType != ThirdInterfaceTypeFlag.ChargeRequest && entity.ThirdInterfaceType != ThirdInterfaceTypeFlag.ImportLisResult && entity.ThirdInterfaceType != ThirdInterfaceTypeFlag.ImportPacsResult - && entity.ThirdInterfaceType != ThirdInterfaceTypeFlag.ImportPatientRegister) + && entity.ThirdInterfaceType != ThirdInterfaceTypeFlag.ImportPatientRegister + && entity.ThirdInterfaceType != ThirdInterfaceTypeFlag.TranToWebPeis) { throw new ArgumentException($"接口类型参数为:{entity.ThirdInterfaceType},是无效值"); }