From a1ee1c7ded113dd73eb92bb42f0292dde0a20e06 Mon Sep 17 00:00:00 2001 From: "DESKTOP-G961P6V\\Zhh" <839860190@qq.com> Date: Mon, 10 Jun 2024 17:29:21 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E7=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Qztl/ImportPatientRegisterPlugInsQztl.cs | 19 ++++- .../Qztl/PatientRegisterQztl.cs | 82 +++++++++++++++++++ .../WebAppoints/WebAppointWebPeisPlugIns.cs | 2 +- .../AppointPatientRegisterDto.cs | 5 ++ 4 files changed, 106 insertions(+), 2 deletions(-) create mode 100644 ThirdPlugIns/Shentun.Peis.PlugIns.Gem/PatientRegisters/Qztl/PatientRegisterQztl.cs diff --git a/ThirdPlugIns/Shentun.Peis.PlugIns.Gem/PatientRegisters/Qztl/ImportPatientRegisterPlugInsQztl.cs b/ThirdPlugIns/Shentun.Peis.PlugIns.Gem/PatientRegisters/Qztl/ImportPatientRegisterPlugInsQztl.cs index a5dc656..cc1d2de 100644 --- a/ThirdPlugIns/Shentun.Peis.PlugIns.Gem/PatientRegisters/Qztl/ImportPatientRegisterPlugInsQztl.cs +++ b/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>("api/app/PersonnelType/GetAll", ""); } - //public + public async Task> 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(sql, + new { CustomerOrgRegisterId = customerOrgRegisterId,IdNo = idNo })).ToList(); + return patientRegisters; + } + } public async Task CallInterfaceServiceAsync() { string baseAddress = InterfaceWebApiUrl; diff --git a/ThirdPlugIns/Shentun.Peis.PlugIns.Gem/PatientRegisters/Qztl/PatientRegisterQztl.cs b/ThirdPlugIns/Shentun.Peis.PlugIns.Gem/PatientRegisters/Qztl/PatientRegisterQztl.cs new file mode 100644 index 0000000..4a03b8e --- /dev/null +++ b/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; } + /// + /// 档案号 需要配置唯一索引 + /// + public string? PatientNo { get; set; } + /// + /// HIS病人ID + /// + public string? HisPatientId { get; set; } + public Guid MedicalCenterId { get; set; } + /// + /// 姓名 + /// + public string PatientName { get; set; } = null!; + /// + /// 性别 + /// + public char SexId { get; set; } + /// + /// 婚姻状况 + /// + public char MaritalStatusId { get; set; } + /// + /// 出生日期 + /// + public DateTime? BirthDate { get; set; } + /// + /// 年龄 + /// + public short? Age { get; set; } + /// + /// 民族编号 + /// + [Column("nation_id")] + public string? NationId { get; set; } + /// + /// 身份证号 + /// + public string? IdNo { get; set; } + /// + /// email + /// + public string? Email { get; set; } + /// + /// 电话 + /// + public string? Telephone { get; set; } + /// + /// 手机号 + /// + public string? MobileTelephone { get; set; } + /// + /// 地址 + /// + public string? Address { get; set; } + + /// + /// 单位名称 + /// + public string CustomerOrgName { get; set; } + + /// + /// 部门名称 + /// + public string DepartmentName { get; set; } + + public string Planuserid { get; set; } + } +} diff --git a/src/Shentun.ColumnReferencePlugIns/WebAppoints/WebAppointWebPeisPlugIns.cs b/src/Shentun.ColumnReferencePlugIns/WebAppoints/WebAppointWebPeisPlugIns.cs index c67b98b..d30b57c 100644 --- a/src/Shentun.ColumnReferencePlugIns/WebAppoints/WebAppointWebPeisPlugIns.cs +++ b/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; diff --git a/src/Shentun.Peis.Application.Contracts/AppointPatientRegisters/AppointPatientRegisterDto.cs b/src/Shentun.Peis.Application.Contracts/AppointPatientRegisters/AppointPatientRegisterDto.cs index 405fedd..ec00bd2 100644 --- a/src/Shentun.Peis.Application.Contracts/AppointPatientRegisters/AppointPatientRegisterDto.cs +++ b/src/Shentun.Peis.Application.Contracts/AppointPatientRegisters/AppointPatientRegisterDto.cs @@ -28,6 +28,11 @@ namespace Shentun.Peis.AppointPatientRegisters /// 身份证号 /// public string? IdNo { get; set; } + + /// + /// 手机号码 + /// + public string? MobileTelephone { get; set; } /// /// 性别ID ///