Browse Source

青藏公司

bjmzak
DESKTOP-G961P6V\Zhh 1 year ago
parent
commit
df957859f8
  1. 3
      ThirdPlugIns/Shentun.Peis.PlugIns.Gem/PatientRegisters/Qztl/ImportPatientRegisterPlugInsQztl.cs
  2. 5
      src/Shentun.Peis.Application.Contracts/PatientRegisters/CreatePatientRegisterDto.cs
  3. 1
      src/Shentun.Peis.Application/PatientRegisters/PatientRegisterAppService.cs
  4. 2
      src/Shentun.Peis.Domain/PatientRegisters/CreatePatientRegisterArg.cs
  5. 4
      src/Shentun.Peis.Domain/Patients/PatientManager.cs

3
ThirdPlugIns/Shentun.Peis.PlugIns.Gem/PatientRegisters/Qztl/ImportPatientRegisterPlugInsQztl.cs

@ -305,7 +305,8 @@ namespace Shentun.Peis.PlugIns.Extensions.PatientRegisters.Qztl
QztlIsCw = patient.ifCw == 1 ? 'Y' : 'N',
QztlIsMain = patient.ifMain == 1 ? 'Y' : 'N',
QztlIsCy = patient.ifCy == 1 ? 'Y' : 'N',
IsQztlImport = 'Y'
IsQztlImport = 'Y',
IsAllowIdNoSexError = 'Y'
};

5
src/Shentun.Peis.Application.Contracts/PatientRegisters/CreatePatientRegisterDto.cs

@ -126,6 +126,11 @@ namespace Shentun.Peis.PatientRegisters
/// </summary>
public char IsMaxMedicalTimes { get; set; } = 'Y';
/// <summary>
/// 允许身份证号中的性别和填写的性别不一致
/// </summary>
public char IsAllowIdNoSexError { get; set; } = 'N';
#region 添加时不需要

1
src/Shentun.Peis.Application/PatientRegisters/PatientRegisterAppService.cs

@ -918,6 +918,7 @@ namespace Shentun.Peis.PatientRegisters
updatePatientEntity.DisplayName = input.PatientName;
//创建人员信息
Patient patient = null;
_patientManager.IsAllowIdNoSexError = input.IsAllowIdNoSexError;
if (createPatientRegisterArg.PatientId == Guid.Empty)
{
patient = await _patientManager.CreateAsync(updatePatientEntity);

2
src/Shentun.Peis.Domain/PatientRegisters/CreatePatientRegisterArg.cs

@ -120,5 +120,7 @@ namespace Shentun.Peis.PatientRegisters
/// </summary>
public Guid CustomerOrgRegisterId { get; set; }
}
}

4
src/Shentun.Peis.Domain/Patients/PatientManager.cs

@ -28,6 +28,7 @@ namespace Shentun.Peis.Patients
private readonly IRepository<PrimarykeyBuilder> _primarykeyBuilderRepository;
private readonly IRepository<Nation> _nationRepository;
private readonly SysParmValueManager _sysParmValueManager;
public char IsAllowIdNoSexError { get; set; } = 'N';
public PatientManager(
IRepository<Patient, Guid> repository,
IRepository<SysParmValue> sysParmValueRepository,
@ -370,8 +371,9 @@ namespace Shentun.Peis.Patients
}
else
{
if (sexByIdNo[0] != entity.SexId)
if (sexByIdNo[0] != entity.SexId && IsAllowIdNoSexError == 'N')
{
throw new UserFriendlyException("身份证号解析出的性别与填入的性别不一致");
}
}

Loading…
Cancel
Save