患者信息表新增公众号openid字段信息

This commit is contained in:
纪寒 2024-03-26 14:18:34 +08:00
parent 35d9a6199c
commit 0db3aeb14c
2 changed files with 672 additions and 575 deletions

View File

@ -5,14 +5,14 @@ import com.xinelu.common.annotation.Excel;
import com.xinelu.common.core.domain.BaseEntity; import com.xinelu.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import java.time.LocalDateTime;
import java.util.Date;
/** /**
* 患者信息对象 patient_info * 患者信息对象 patient_info
* *
@ -26,46 +26,64 @@ import lombok.NoArgsConstructor;
@ApiModel(value = "患者信息对象", description = "patient_info") @ApiModel(value = "患者信息对象", description = "patient_info")
public class PatientInfo extends BaseEntity { public class PatientInfo extends BaseEntity {
private static final long serialVersionUID=1L; private static final long serialVersionUID = 1L;
/** 主键id */ /**
* 主键id
*/
private Long id; private Long id;
/** 患者姓名 */ /**
* 患者姓名
*/
@ApiModelProperty(value = "患者姓名") @ApiModelProperty(value = "患者姓名")
@Excel(name = "患者姓名") @Excel(name = "患者姓名")
private String patientName; private String patientName;
/** 患者电话 */ /**
* 患者电话
*/
@ApiModelProperty(value = "患者电话") @ApiModelProperty(value = "患者电话")
@Excel(name = "患者电话") @Excel(name = "患者电话")
private String patientPhone; private String patientPhone;
/** 家属电话 */ /**
* 家属电话
*/
@ApiModelProperty(value = "家属电话") @ApiModelProperty(value = "家属电话")
private String familyMemberPhone; private String familyMemberPhone;
/** 出生日期格式yyyy-MM-dd */ /**
* 出生日期格式yyyy-MM-dd
*/
@ApiModelProperty(value = "出生日期格式yyyy-MM-dd") @ApiModelProperty(value = "出生日期格式yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd")
private Date birthDate; private Date birthDate;
/** 身份证号 */ /**
* 身份证号
*/
@ApiModelProperty(value = "身份证号") @ApiModelProperty(value = "身份证号")
private String cardNo; private String cardNo;
/** 性别MALEFEMALE */ /**
* 性别MALEFEMALE
*/
@ApiModelProperty(value = "性别MALEFEMALE") @ApiModelProperty(value = "性别MALEFEMALE")
@Excel(name = "性别MALEFEMALE") @Excel(name = "性别MALEFEMALE")
private String sex; private String sex;
/** 住址 */ /**
* 住址
*/
@ApiModelProperty(value = "住址") @ApiModelProperty(value = "住址")
@Excel(name = "住址") @Excel(name = "住址")
private String address; private String address;
/** 患者类型预住院患者PRE_HOSPITALIZED_PATIENT在院患者IN_HOSPITAL_PATIENT门诊患者OUTPATIENT出院患者DISCHARGED_PATIENT /**
签约患者CONTRACTED_PATIENT */ * 患者类型预住院患者PRE_HOSPITALIZED_PATIENT在院患者IN_HOSPITAL_PATIENT门诊患者OUTPATIENT出院患者DISCHARGED_PATIENT
* 签约患者CONTRACTED_PATIENT
*/
@ApiModelProperty(value = "患者类型预住院患者PRE_HOSPITALIZED_PATIENT在院患者IN_HOSPITAL_PATIENT门诊患者OUTPATIENT出院患者DISCHARGED_PATIENT签约患者CONTRACTED_PATIENT") @ApiModelProperty(value = "患者类型预住院患者PRE_HOSPITALIZED_PATIENT在院患者IN_HOSPITAL_PATIENT门诊患者OUTPATIENT出院患者DISCHARGED_PATIENT签约患者CONTRACTED_PATIENT")
private String patientType; private String patientType;
@ -84,141 +102,209 @@ public class PatientInfo extends BaseEntity {
@ApiModelProperty(value = "服务状态意向签约INTENTIONAL_SIGNING服务中SERVICE_CENTER服务结束SERVICE_END") @ApiModelProperty(value = "服务状态意向签约INTENTIONAL_SIGNING服务中SERVICE_CENTER服务结束SERVICE_END")
private String serviceStatus; private String serviceStatus;
/** 签约时间格式yyyy-MM-dd HH:mm:ss */ /**
* 签约时间格式yyyy-MM-dd HH:mm:ss
*/
@ApiModelProperty(value = "签约时间格式yyyy-MM-dd HH:mm:ss") @ApiModelProperty(value = "签约时间格式yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "签约时间格式yyyy-MM-dd HH:mm:ss", width = 30, dateFormat = "yyyy-MM-dd") @Excel(name = "签约时间格式yyyy-MM-dd HH:mm:ss", width = 30, dateFormat = "yyyy-MM-dd")
private LocalDateTime signTime; private LocalDateTime signTime;
/** 开证医生(预住院患者) */ /**
* 开证医生预住院患者
*/
@ApiModelProperty(value = "开证医生") @ApiModelProperty(value = "开证医生")
@Excel(name = "开证医生", readConverterExp = "预住院患者") @Excel(name = "开证医生", readConverterExp = "预住院患者")
private String certificateIssuingDoctor; private String certificateIssuingDoctor;
/** 就诊方式门诊OUTPATIENT_SERVICE住院BE_IN_HOSPITAL */ /**
* 就诊方式门诊OUTPATIENT_SERVICE住院BE_IN_HOSPITAL
*/
@ApiModelProperty(value = "就诊方式门诊OUTPATIENT_SERVICE住院BE_IN_HOSPITAL") @ApiModelProperty(value = "就诊方式门诊OUTPATIENT_SERVICE住院BE_IN_HOSPITAL")
@Excel(name = "就诊方式门诊OUTPATIENT_SERVICE住院BE_IN_HOSPITAL") @Excel(name = "就诊方式门诊OUTPATIENT_SERVICE住院BE_IN_HOSPITAL")
private String visitMethod; private String visitMethod;
/** 主要诊断 */ /**
* 主要诊断
*/
@ApiModelProperty(value = "主要诊断") @ApiModelProperty(value = "主要诊断")
private String mainDiagnosis; private String mainDiagnosis;
/** 主治医生 */ /**
* 主治医生
*/
@ApiModelProperty(value = "主治医生") @ApiModelProperty(value = "主治医生")
@Excel(name = "主治医生") @Excel(name = "主治医生")
private String attendingPhysician; private String attendingPhysician;
/** 所属医院id */ /**
* 所属医院id
*/
@ApiModelProperty(value = "所属医院id") @ApiModelProperty(value = "所属医院id")
private Long hospitalAgencyId; private Long hospitalAgencyId;
/** 所属医院名称 */ /**
* 所属医院名称
*/
@ApiModelProperty(value = "所属医院名称") @ApiModelProperty(value = "所属医院名称")
@Excel(name = "所属医院名称") @Excel(name = "所属医院名称")
private String hospitalAgencyName; private String hospitalAgencyName;
/** 所属院区id */ /**
* 所属院区id
*/
@ApiModelProperty(value = "所属院区id") @ApiModelProperty(value = "所属院区id")
private Long campusAgencyId; private Long campusAgencyId;
/** 所属院区名称 */ /**
* 所属院区名称
*/
@ApiModelProperty(value = "所属院区名称") @ApiModelProperty(value = "所属院区名称")
@Excel(name = "所属院区名称") @Excel(name = "所属院区名称")
private String campusAgencyName; private String campusAgencyName;
/** 所属科室id */ /**
* 所属科室id
*/
@ApiModelProperty(value = "所属科室id") @ApiModelProperty(value = "所属科室id")
private Long departmentId; private Long departmentId;
/** 所属科室名称 */ /**
* 所属科室名称
*/
@ApiModelProperty(value = "所属科室名称") @ApiModelProperty(value = "所属科室名称")
@Excel(name = "所属科室名称") @Excel(name = "所属科室名称")
private String departmentName; private String departmentName;
/** 所属病区id */ /**
* 所属病区id
*/
@ApiModelProperty(value = "所属病区id") @ApiModelProperty(value = "所属病区id")
private Long wardId; private Long wardId;
/** 所属病区名称 */ /**
* 所属病区名称
*/
@ApiModelProperty(value = "所属病区名称") @ApiModelProperty(value = "所属病区名称")
@Excel(name = "所属病区名称") @Excel(name = "所属病区名称")
private String wardName; private String wardName;
/** 住院号 */ /**
* 住院号
*/
@ApiModelProperty(value = "住院号") @ApiModelProperty(value = "住院号")
@Excel(name = "住院号") @Excel(name = "住院号")
private String admissionNumber; private String admissionNumber;
/** 责任护士 */ /**
* 责任护士
*/
@ApiModelProperty(value = "责任护士") @ApiModelProperty(value = "责任护士")
private String responsibleNurse; private String responsibleNurse;
/** 就诊流水号 */ /**
* 就诊流水号
*/
@ApiModelProperty(value = "就诊流水号") @ApiModelProperty(value = "就诊流水号")
private String visitSerialNumber; private String visitSerialNumber;
/** 手术名称 */ /**
* 手术名称
*/
@ApiModelProperty(value = "手术名称") @ApiModelProperty(value = "手术名称")
private String surgicalName; private String surgicalName;
/** 入院时间时间格式yyyy-MM-dd */ /**
* 入院时间时间格式yyyy-MM-dd
*/
@ApiModelProperty(value = "入院时间") @ApiModelProperty(value = "入院时间")
private Date admissionDate; private Date admissionDate;
/** 出院时间出院患者时间格式yyyy-MM-dd */ /**
* 出院时间出院患者时间格式yyyy-MM-dd
*/
@ApiModelProperty(value = "出院时间(出院患者)") @ApiModelProperty(value = "出院时间(出院患者)")
private Date dischargeDate; private Date dischargeDate;
/** 病历内容 */ /**
* 病历内容
*/
@ApiModelProperty(value = "病历内容") @ApiModelProperty(value = "病历内容")
private String medicalRecordContent; private String medicalRecordContent;
/** 预约治疗组(取值以及枚举未知?) */ /**
* 预约治疗组取值以及枚举未知
*/
@ApiModelProperty(value = "预约治疗组(取值以及枚举未知?)") @ApiModelProperty(value = "预约治疗组(取值以及枚举未知?)")
private String appointmentTreatmentGroup; private String appointmentTreatmentGroup;
/** 登记号(预住院患者) */ /**
* 登记号预住院患者
*/
@ApiModelProperty(value = "登记号(预住院患者)") @ApiModelProperty(value = "登记号(预住院患者)")
private String registrationNo; private String registrationNo;
/** 登记日期预住院患者时间格式yyyy-MM-dd */ /**
* 登记日期预住院患者时间格式yyyy-MM-dd
*/
@ApiModelProperty(value = "登记日期预住院患者时间格式yyyy-MM-dd") @ApiModelProperty(value = "登记日期预住院患者时间格式yyyy-MM-dd")
private Date registrationDate; private Date registrationDate;
/** 预约时间预住院患者时间格式yyyy-MM-dd */ /**
* 预约时间预住院患者时间格式yyyy-MM-dd
*/
@ApiModelProperty(value = "预约时间预住院患者时间格式yyyy-MM-dd") @ApiModelProperty(value = "预约时间预住院患者时间格式yyyy-MM-dd")
private Date appointmentDate; private Date appointmentDate;
/** 门诊号(门诊患者) */ /**
* 门诊号门诊患者
*/
@ApiModelProperty(value = "门诊号") @ApiModelProperty(value = "门诊号")
@Excel(name = "门诊号", readConverterExp = "门=诊患者") @Excel(name = "门诊号", readConverterExp = "门=诊患者")
private String outpatientNumber; private String outpatientNumber;
/** 就诊时间门诊患者时间格式yyyy-MM-dd */ /**
* 就诊时间门诊患者时间格式yyyy-MM-dd
*/
@ApiModelProperty(value = "就诊时间") @ApiModelProperty(value = "就诊时间")
@Excel(name = "就诊时间", readConverterExp = "门=诊患者") @Excel(name = "就诊时间", readConverterExp = "门=诊患者")
private Date visitTime; private Date visitTime;
/** 出院方式(出院患者) */ /**
* 出院方式出院患者
*/
@ApiModelProperty(value = "出院方式") @ApiModelProperty(value = "出院方式")
@Excel(name = "出院方式", readConverterExp = "出=院患者") @Excel(name = "出院方式", readConverterExp = "出=院患者")
private String dischargeMethod; private String dischargeMethod;
/** 微信openid微信小程序唯一标识 */ /**
@ApiModelProperty(value = "微信openid微信小程序唯一标识") * 微信小程序openid微信小程序唯一标识
*/
@ApiModelProperty(value = "微信小程序openid微信小程序唯一标识")
private String openId; private String openId;
/** 微信unionid微信小程序和微信公众号统一标识 */ /**
* 微信unionid微信小程序和微信公众号统一标识
*/
@ApiModelProperty(value = "微信unionid微信小程序和微信公众号统一标识 ") @ApiModelProperty(value = "微信unionid微信小程序和微信公众号统一标识 ")
private String unionId; private String unionId;
/** 患者来源微信小程序WE_CHAT_APPLET微信公众号WE_CHAT_OFFICIAL_ACCOUNT管理端MANAGE_END */ /**
* 微信公众号openid微信众号唯一标识
*/
@ApiModelProperty(value = "微信公众号openid微信众号唯一标识 ")
private String officialAccountOpenId;
/**
* 患者来源微信小程序WE_CHAT_APPLET微信公众号WE_CHAT_OFFICIAL_ACCOUNT管理端MANAGE_END
*/
@ApiModelProperty(value = "患者来源微信小程序WE_CHAT_APPLET微信公众号WE_CHAT_OFFICIAL_ACCOUNT管理端MANAGE_END") @ApiModelProperty(value = "患者来源微信小程序WE_CHAT_APPLET微信公众号WE_CHAT_OFFICIAL_ACCOUNT管理端MANAGE_END")
@Excel(name = "患者来源微信小程序WE_CHAT_APPLET微信公众号WE_CHAT_OFFICIAL_ACCOUNT管理端MANAGE_END") @Excel(name = "患者来源微信小程序WE_CHAT_APPLET微信公众号WE_CHAT_OFFICIAL_ACCOUNT管理端MANAGE_END")
private String patientSource; private String patientSource;
/** 删除标识0未删除1已删除 */ /**
* 删除标识0未删除1已删除
*/
private Integer delFlag; private Integer delFlag;
} }

View File

@ -4,53 +4,54 @@
<mapper namespace="com.xinelu.manage.mapper.patientinfo.PatientInfoMapper"> <mapper namespace="com.xinelu.manage.mapper.patientinfo.PatientInfoMapper">
<resultMap type="com.xinelu.manage.domain.patientinfo.PatientInfo" id="PatientInfoResult"> <resultMap type="com.xinelu.manage.domain.patientinfo.PatientInfo" id="PatientInfoResult">
<result property="id" column="id" /> <result property="id" column="id"/>
<result property="patientName" column="patient_name" /> <result property="patientName" column="patient_name"/>
<result property="patientPhone" column="patient_phone" /> <result property="patientPhone" column="patient_phone"/>
<result property="familyMemberPhone" column="family_member_phone" /> <result property="familyMemberPhone" column="family_member_phone"/>
<result property="birthDate" column="birth_date" /> <result property="birthDate" column="birth_date"/>
<result property="cardNo" column="card_no" /> <result property="cardNo" column="card_no"/>
<result property="sex" column="sex" /> <result property="sex" column="sex"/>
<result property="address" column="address" /> <result property="address" column="address"/>
<result property="patientType" column="patient_type" /> <result property="patientType" column="patient_type"/>
<result property="signStatus" column="sign_status" /> <result property="signStatus" column="sign_status"/>
<result property="signPatientRecordId" column="sign_patient_record_id" /> <result property="signPatientRecordId" column="sign_patient_record_id"/>
<result property="serviceStatus" column="service_status" /> <result property="serviceStatus" column="service_status"/>
<result property="signTime" column="sign_time" /> <result property="signTime" column="sign_time"/>
<result property="certificateIssuingDoctor" column="certificate_issuing_doctor" /> <result property="certificateIssuingDoctor" column="certificate_issuing_doctor"/>
<result property="visitMethod" column="visit_method" /> <result property="visitMethod" column="visit_method"/>
<result property="mainDiagnosis" column="main_diagnosis" /> <result property="mainDiagnosis" column="main_diagnosis"/>
<result property="attendingPhysician" column="attending_physician" /> <result property="attendingPhysician" column="attending_physician"/>
<result property="hospitalAgencyId" column="hospital_agency_id" /> <result property="hospitalAgencyId" column="hospital_agency_id"/>
<result property="hospitalAgencyName" column="hospital_agency_name" /> <result property="hospitalAgencyName" column="hospital_agency_name"/>
<result property="campusAgencyId" column="campus_agency_id" /> <result property="campusAgencyId" column="campus_agency_id"/>
<result property="campusAgencyName" column="campus_agency_name" /> <result property="campusAgencyName" column="campus_agency_name"/>
<result property="departmentId" column="department_id" /> <result property="departmentId" column="department_id"/>
<result property="departmentName" column="department_name" /> <result property="departmentName" column="department_name"/>
<result property="wardId" column="ward_id" /> <result property="wardId" column="ward_id"/>
<result property="wardName" column="ward_name" /> <result property="wardName" column="ward_name"/>
<result property="admissionNumber" column="admission_number" /> <result property="admissionNumber" column="admission_number"/>
<result property="responsibleNurse" column="responsible_nurse" /> <result property="responsibleNurse" column="responsible_nurse"/>
<result property="visitSerialNumber" column="visit_serial_number" /> <result property="visitSerialNumber" column="visit_serial_number"/>
<result property="surgicalName" column="surgical_name" /> <result property="surgicalName" column="surgical_name"/>
<result property="admissionDate" column="admission_date" /> <result property="admissionDate" column="admission_date"/>
<result property="dischargeDate" column="discharge_date" /> <result property="dischargeDate" column="discharge_date"/>
<result property="medicalRecordContent" column="medical_record_content" /> <result property="medicalRecordContent" column="medical_record_content"/>
<result property="appointmentTreatmentGroup" column="appointment_treatment_group" /> <result property="appointmentTreatmentGroup" column="appointment_treatment_group"/>
<result property="registrationNo" column="registration_no" /> <result property="registrationNo" column="registration_no"/>
<result property="registrationDate" column="registration_date" /> <result property="registrationDate" column="registration_date"/>
<result property="appointmentDate" column="appointment_date" /> <result property="appointmentDate" column="appointment_date"/>
<result property="outpatientNumber" column="outpatient_number" /> <result property="outpatientNumber" column="outpatient_number"/>
<result property="visitTime" column="visit_time" /> <result property="visitTime" column="visit_time"/>
<result property="dischargeMethod" column="discharge_method" /> <result property="dischargeMethod" column="discharge_method"/>
<result property="openId" column="open_id" /> <result property="openId" column="open_id"/>
<result property="unionId" column="union_id" /> <result property="unionId" column="union_id"/>
<result property="patientSource" column="patient_source" /> <result property="officialAccountOpenId" column="official_account_openid"/>
<result property="delFlag" column="del_flag" /> <result property="patientSource" column="patient_source"/>
<result property="createBy" column="create_by" /> <result property="delFlag" column="del_flag"/>
<result property="createTime" column="create_time" /> <result property="createBy" column="create_by"/>
<result property="updateBy" column="update_by" /> <result property="createTime" column="create_time"/>
<result property="updateTime" column="update_time" /> <result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time"/>
</resultMap> </resultMap>
<sql id="selectPatientInfoVo"> <sql id="selectPatientInfoVo">
@ -70,12 +71,13 @@
admission_number, responsible_nurse, visit_serial_number, surgical_name, admission_number, responsible_nurse, visit_serial_number, surgical_name,
admission_date, discharge_date, medical_record_content, appointment_treatment_group, admission_date, discharge_date, medical_record_content, appointment_treatment_group,
registration_no, registration_date, appointment_date, outpatient_number, visit_time, discharge_method, registration_no, registration_date, appointment_date, outpatient_number, visit_time, discharge_method,
open_id, union_id, patient_source, del_flag, create_by, create_time, update_by, update_time open_id, union_id, official_account_openid, patient_source, del_flag, create_by, create_time, update_by, update_time
from patient_info from patient_info
</sql> </sql>
<select id="selectPatientInfoList" parameterType="com.xinelu.manage.dto.patientinfo.PatientInfoDto" resultMap="PatientInfoResult"> <select id="selectPatientInfoList" parameterType="com.xinelu.manage.dto.patientinfo.PatientInfoDto"
<include refid="selectPatientInfoVo" /> resultMap="PatientInfoResult">
<include refid="selectPatientInfoVo"/>
<where> <where>
del_flag = 0 del_flag = 0
<if test="patientName != null and patientName != ''"> <if test="patientName != null and patientName != ''">
@ -162,11 +164,12 @@
</select> </select>
<select id="selectPatientInfoById" parameterType="Long" resultMap="PatientInfoResult"> <select id="selectPatientInfoById" parameterType="Long" resultMap="PatientInfoResult">
<include refid="selectPatientInfoVo" /> <include refid="selectPatientInfoVo"/>
where id = #{id} where id = #{id}
</select> </select>
<insert id="insertPatientInfo" parameterType="com.xinelu.manage.domain.patientinfo.PatientInfo" useGeneratedKeys="true" keyProperty="id"> <insert id="insertPatientInfo" parameterType="com.xinelu.manage.domain.patientinfo.PatientInfo"
useGeneratedKeys="true" keyProperty="id">
insert into patient_info insert into patient_info
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="patientName != null"> <if test="patientName != null">
@ -256,6 +259,8 @@
</if> </if>
<if test="unionId != null">union_id, <if test="unionId != null">union_id,
</if> </if>
<if test="officialAccountOpenId != null">official_account_openid,
</if>
<if test="patientSource != null">patient_source, <if test="patientSource != null">patient_source,
</if> </if>
<if test="delFlag != null">del_flag, <if test="delFlag != null">del_flag,
@ -350,6 +355,8 @@
</if> </if>
<if test="unionId != null">#{unionId}, <if test="unionId != null">#{unionId},
</if> </if>
<if test="officialAccountOpenId != null">#{officialAccountOpenId},
</if>
<if test="patientSource != null">#{patientSource}, <if test="patientSource != null">#{patientSource},
</if> </if>
<if test="delFlag != null">#{delFlag}, <if test="delFlag != null">#{delFlag},
@ -486,6 +493,9 @@
<if test="unionId != null">union_id = <if test="unionId != null">union_id =
#{unionId}, #{unionId},
</if> </if>
<if test="officialAccountOpenId != null">official_account_openid =
#{officialAccountOpenId},
</if>
<if test="patientSource != null">patient_source = <if test="patientSource != null">patient_source =
#{patientSource}, #{patientSource},
</if> </if>
@ -531,6 +541,7 @@
user_id, user_id,
unionid, unionid,
openid, openid,
official_account_openid,
phone, phone,
address, address,
urgent_contact_name, urgent_contact_name,