wxd 1 year ago
parent
commit
43c6a40eda
  1. 5
      src/Shentun.Peis.Application/RegisterChecks/RegisterCheckAppService.cs
  2. 44
      src/Shentun.Peis.Application/TransToWebPeis/TransToWebPeisAppService.cs
  3. 3
      src/Shentun.Peis.Domain.Shared/Enums/ThirdInterfaceTypeFlag.cs
  4. 3
      src/Shentun.Peis.Domain/ThirdInterfaces/ThirdInterfaceManager.cs

5
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);
//修改医生和检查日期

44
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 )
{
}
}
}

3
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";
}
}

3
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},是无效值");
}

Loading…
Cancel
Save