Browse Source

预约

bjmzak
DESKTOP-G961P6V\Zhh 1 year ago
parent
commit
a1ee1c7ded
  1. 19
      ThirdPlugIns/Shentun.Peis.PlugIns.Gem/PatientRegisters/Qztl/ImportPatientRegisterPlugInsQztl.cs
  2. 82
      ThirdPlugIns/Shentun.Peis.PlugIns.Gem/PatientRegisters/Qztl/PatientRegisterQztl.cs
  3. 2
      src/Shentun.ColumnReferencePlugIns/WebAppoints/WebAppointWebPeisPlugIns.cs
  4. 5
      src/Shentun.Peis.Application.Contracts/AppointPatientRegisters/AppointPatientRegisterDto.cs

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

@ -22,6 +22,7 @@ using Shentun.Peis.CustomerOrgRegisters;
using Shentun.Peis.Enums;
using Shentun.Peis.Patients;
using Shentun.Peis.PlugIns.PatientRegisters;
using Shentun.Peis.PlugIns.ImportPacsResults;
namespace Shentun.Peis.PlugIns.Extensions.PatientRegisters.Qztl
{
@ -372,7 +373,23 @@ namespace Shentun.Peis.PlugIns.Extensions.PatientRegisters.Qztl
_personnelTypes = await CallAppServiceAsync<string, List<PersonnelTypeDto>>("api/app/PersonnelType/GetAll", "");
}
//public
public async Task<List<PatientRegisterQztl>> GetPatientRegisterByCustomerOrgRegisterIdWithIdNo(Guid customerOrgRegisterId ,string idNo)
{
using (DbConnection conn = new NpgsqlConnection(AppConnctionStr))
{
string sql;
sql = @"
SELECT *
from patient_register,patient_register_exter
where patient_register.patient_register_id = patient_register_exter.patient_register_id and
customer_org_register_id =@CustomerOrgRegisterId and
id_no =@IdNo
";
var patientRegisters = (await conn.QueryAsync<PatientRegisterQztl>(sql,
new { CustomerOrgRegisterId = customerOrgRegisterId,IdNo = idNo })).ToList();
return patientRegisters;
}
}
public async Task<QztlPatientRegisterFromInterface?> CallInterfaceServiceAsync()
{
string baseAddress = InterfaceWebApiUrl;

82
ThirdPlugIns/Shentun.Peis.PlugIns.Gem/PatientRegisters/Qztl/PatientRegisterQztl.cs

@ -0,0 +1,82 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Shentun.Peis.PlugIns.Extensions.PatientRegisters.Qztl
{
public class PatientRegisterQztl
{
public Guid PatientId { get; set; }
public Guid PatientRegisterId { get; set; }
public string PatientRegisterNo { get; set; }
/// <summary>
/// 档案号 需要配置唯一索引
/// </summary>
public string? PatientNo { get; set; }
/// <summary>
/// HIS病人ID
/// </summary>
public string? HisPatientId { get; set; }
public Guid MedicalCenterId { get; set; }
/// <summary>
/// 姓名
/// </summary>
public string PatientName { get; set; } = null!;
/// <summary>
/// 性别
/// </summary>
public char SexId { get; set; }
/// <summary>
/// 婚姻状况
/// </summary>
public char MaritalStatusId { get; set; }
/// <summary>
/// 出生日期
/// </summary>
public DateTime? BirthDate { get; set; }
/// <summary>
/// 年龄
/// </summary>
public short? Age { get; set; }
/// <summary>
/// 民族编号
/// </summary>
[Column("nation_id")]
public string? NationId { get; set; }
/// <summary>
/// 身份证号
/// </summary>
public string? IdNo { get; set; }
/// <summary>
/// email
/// </summary>
public string? Email { get; set; }
/// <summary>
/// 电话
/// </summary>
public string? Telephone { get; set; }
/// <summary>
/// 手机号
/// </summary>
public string? MobileTelephone { get; set; }
/// <summary>
/// 地址
/// </summary>
public string? Address { get; set; }
/// <summary>
/// 单位名称
/// </summary>
public string CustomerOrgName { get; set; }
/// <summary>
/// 部门名称
/// </summary>
public string DepartmentName { get; set; }
public string Planuserid { get; set; }
}
}

2
src/Shentun.ColumnReferencePlugIns/WebAppoints/WebAppointWebPeisPlugIns.cs

@ -20,7 +20,7 @@ namespace Shentun.Peis.PlugIns.WebAppoints
private string _webPeisUser;
private string _webPeisPassword;
private string _webPeisBaseAddress;
private string _webPeisToken;
private static string _webPeisToken;
private string _webPeisGetAppointPatientRegisterListByFilterUrl;
private string _webPeisGetAppointRegisterAsbitemListByIdUrl;
private Guid _medicalCenterId;

5
src/Shentun.Peis.Application.Contracts/AppointPatientRegisters/AppointPatientRegisterDto.cs

@ -28,6 +28,11 @@ namespace Shentun.Peis.AppointPatientRegisters
/// 身份证号
/// </summary>
public string? IdNo { get; set; }
/// <summary>
/// 手机号码
/// </summary>
public string? MobileTelephone { get; set; }
/// <summary>
/// 性别ID
/// </summary>

Loading…
Cancel
Save