22 changed files with 2336 additions and 94 deletions
@ -0,0 +1,172 @@ |
|||
package com.ccsens.system.domain.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class PmsPatientDiagnosis implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long patientId; |
|||
|
|||
private String visitNo; |
|||
|
|||
private String diagnosisType; |
|||
|
|||
private String isMainDiagnosis; |
|||
|
|||
private String diagnosisCode; |
|||
|
|||
private String diagnosisName; |
|||
|
|||
private String diagnosisDate; |
|||
|
|||
private String remark; |
|||
|
|||
private String createBy; |
|||
|
|||
private Date createTime; |
|||
|
|||
private String updateBy; |
|||
|
|||
private Date updateTime; |
|||
|
|||
private Byte delFlag; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getPatientId() { |
|||
return patientId; |
|||
} |
|||
|
|||
public void setPatientId(Long patientId) { |
|||
this.patientId = patientId; |
|||
} |
|||
|
|||
public String getVisitNo() { |
|||
return visitNo; |
|||
} |
|||
|
|||
public void setVisitNo(String visitNo) { |
|||
this.visitNo = visitNo == null ? null : visitNo.trim(); |
|||
} |
|||
|
|||
public String getDiagnosisType() { |
|||
return diagnosisType; |
|||
} |
|||
|
|||
public void setDiagnosisType(String diagnosisType) { |
|||
this.diagnosisType = diagnosisType == null ? null : diagnosisType.trim(); |
|||
} |
|||
|
|||
public String getIsMainDiagnosis() { |
|||
return isMainDiagnosis; |
|||
} |
|||
|
|||
public void setIsMainDiagnosis(String isMainDiagnosis) { |
|||
this.isMainDiagnosis = isMainDiagnosis == null ? null : isMainDiagnosis.trim(); |
|||
} |
|||
|
|||
public String getDiagnosisCode() { |
|||
return diagnosisCode; |
|||
} |
|||
|
|||
public void setDiagnosisCode(String diagnosisCode) { |
|||
this.diagnosisCode = diagnosisCode == null ? null : diagnosisCode.trim(); |
|||
} |
|||
|
|||
public String getDiagnosisName() { |
|||
return diagnosisName; |
|||
} |
|||
|
|||
public void setDiagnosisName(String diagnosisName) { |
|||
this.diagnosisName = diagnosisName == null ? null : diagnosisName.trim(); |
|||
} |
|||
|
|||
public String getDiagnosisDate() { |
|||
return diagnosisDate; |
|||
} |
|||
|
|||
public void setDiagnosisDate(String diagnosisDate) { |
|||
this.diagnosisDate = diagnosisDate == null ? null : diagnosisDate.trim(); |
|||
} |
|||
|
|||
public String getRemark() { |
|||
return remark; |
|||
} |
|||
|
|||
public void setRemark(String remark) { |
|||
this.remark = remark == null ? null : remark.trim(); |
|||
} |
|||
|
|||
public String getCreateBy() { |
|||
return createBy; |
|||
} |
|||
|
|||
public void setCreateBy(String createBy) { |
|||
this.createBy = createBy == null ? null : createBy.trim(); |
|||
} |
|||
|
|||
public Date getCreateTime() { |
|||
return createTime; |
|||
} |
|||
|
|||
public void setCreateTime(Date createTime) { |
|||
this.createTime = createTime; |
|||
} |
|||
|
|||
public String getUpdateBy() { |
|||
return updateBy; |
|||
} |
|||
|
|||
public void setUpdateBy(String updateBy) { |
|||
this.updateBy = updateBy == null ? null : updateBy.trim(); |
|||
} |
|||
|
|||
public Date getUpdateTime() { |
|||
return updateTime; |
|||
} |
|||
|
|||
public void setUpdateTime(Date updateTime) { |
|||
this.updateTime = updateTime; |
|||
} |
|||
|
|||
public Byte getDelFlag() { |
|||
return delFlag; |
|||
} |
|||
|
|||
public void setDelFlag(Byte delFlag) { |
|||
this.delFlag = delFlag; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", id=").append(id); |
|||
sb.append(", patientId=").append(patientId); |
|||
sb.append(", visitNo=").append(visitNo); |
|||
sb.append(", diagnosisType=").append(diagnosisType); |
|||
sb.append(", isMainDiagnosis=").append(isMainDiagnosis); |
|||
sb.append(", diagnosisCode=").append(diagnosisCode); |
|||
sb.append(", diagnosisName=").append(diagnosisName); |
|||
sb.append(", diagnosisDate=").append(diagnosisDate); |
|||
sb.append(", remark=").append(remark); |
|||
sb.append(", createBy=").append(createBy); |
|||
sb.append(", createTime=").append(createTime); |
|||
sb.append(", updateBy=").append(updateBy); |
|||
sb.append(", updateTime=").append(updateTime); |
|||
sb.append(", delFlag=").append(delFlag); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -0,0 +1,30 @@ |
|||
package com.ccsens.system.persist.mapper; |
|||
|
|||
import com.ccsens.system.domain.po.PmsPatientDiagnosis; |
|||
import com.ccsens.system.domain.po.PmsPatientDiagnosisExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface PmsPatientDiagnosisMapper { |
|||
long countByExample(PmsPatientDiagnosisExample example); |
|||
|
|||
int deleteByExample(PmsPatientDiagnosisExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(PmsPatientDiagnosis record); |
|||
|
|||
int insertSelective(PmsPatientDiagnosis record); |
|||
|
|||
List<PmsPatientDiagnosis> selectByExample(PmsPatientDiagnosisExample example); |
|||
|
|||
PmsPatientDiagnosis selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") PmsPatientDiagnosis record, @Param("example") PmsPatientDiagnosisExample example); |
|||
|
|||
int updateByExample(@Param("record") PmsPatientDiagnosis record, @Param("example") PmsPatientDiagnosisExample example); |
|||
|
|||
int updateByPrimaryKeySelective(PmsPatientDiagnosis record); |
|||
|
|||
int updateByPrimaryKey(PmsPatientDiagnosis record); |
|||
} |
|||
@ -0,0 +1,353 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ccsens.system.persist.mapper.PmsPatientDiagnosisMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.system.domain.po.PmsPatientDiagnosis"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="patient_id" jdbcType="BIGINT" property="patientId" /> |
|||
<result column="visit_no" jdbcType="VARCHAR" property="visitNo" /> |
|||
<result column="diagnosis_type" jdbcType="VARCHAR" property="diagnosisType" /> |
|||
<result column="is_main_diagnosis" jdbcType="VARCHAR" property="isMainDiagnosis" /> |
|||
<result column="diagnosis_code" jdbcType="VARCHAR" property="diagnosisCode" /> |
|||
<result column="diagnosis_name" jdbcType="VARCHAR" property="diagnosisName" /> |
|||
<result column="diagnosis_date" jdbcType="VARCHAR" property="diagnosisDate" /> |
|||
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|||
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> |
|||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> |
|||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|||
<result column="del_flag" jdbcType="TINYINT" property="delFlag" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Update_By_Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Base_Column_List"> |
|||
id, patient_id, visit_no, diagnosis_type, is_main_diagnosis, diagnosis_code, diagnosis_name, |
|||
diagnosis_date, remark, create_by, create_time, update_by, update_time, del_flag |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.system.domain.po.PmsPatientDiagnosisExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from pms_patient_diagnosis |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from pms_patient_diagnosis |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from pms_patient_diagnosis |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.system.domain.po.PmsPatientDiagnosisExample"> |
|||
delete from pms_patient_diagnosis |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.system.domain.po.PmsPatientDiagnosis"> |
|||
insert into pms_patient_diagnosis (id, patient_id, visit_no, |
|||
diagnosis_type, is_main_diagnosis, diagnosis_code, |
|||
diagnosis_name, diagnosis_date, remark, |
|||
create_by, create_time, update_by, |
|||
update_time, del_flag) |
|||
values (#{id,jdbcType=BIGINT}, #{patientId,jdbcType=BIGINT}, #{visitNo,jdbcType=VARCHAR}, |
|||
#{diagnosisType,jdbcType=VARCHAR}, #{isMainDiagnosis,jdbcType=VARCHAR}, #{diagnosisCode,jdbcType=VARCHAR}, |
|||
#{diagnosisName,jdbcType=VARCHAR}, #{diagnosisDate,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, |
|||
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, |
|||
#{updateTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=TINYINT}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.system.domain.po.PmsPatientDiagnosis"> |
|||
insert into pms_patient_diagnosis |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="patientId != null"> |
|||
patient_id, |
|||
</if> |
|||
<if test="visitNo != null"> |
|||
visit_no, |
|||
</if> |
|||
<if test="diagnosisType != null"> |
|||
diagnosis_type, |
|||
</if> |
|||
<if test="isMainDiagnosis != null"> |
|||
is_main_diagnosis, |
|||
</if> |
|||
<if test="diagnosisCode != null"> |
|||
diagnosis_code, |
|||
</if> |
|||
<if test="diagnosisName != null"> |
|||
diagnosis_name, |
|||
</if> |
|||
<if test="diagnosisDate != null"> |
|||
diagnosis_date, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="patientId != null"> |
|||
#{patientId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="visitNo != null"> |
|||
#{visitNo,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="diagnosisType != null"> |
|||
#{diagnosisType,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="isMainDiagnosis != null"> |
|||
#{isMainDiagnosis,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="diagnosisCode != null"> |
|||
#{diagnosisCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="diagnosisName != null"> |
|||
#{diagnosisName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="diagnosisDate != null"> |
|||
#{diagnosisDate,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
#{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
#{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
#{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
#{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
#{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
#{delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.system.domain.po.PmsPatientDiagnosisExample" resultType="java.lang.Long"> |
|||
select count(*) from pms_patient_diagnosis |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update pms_patient_diagnosis |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.patientId != null"> |
|||
patient_id = #{record.patientId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.visitNo != null"> |
|||
visit_no = #{record.visitNo,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.diagnosisType != null"> |
|||
diagnosis_type = #{record.diagnosisType,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.isMainDiagnosis != null"> |
|||
is_main_diagnosis = #{record.isMainDiagnosis,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.diagnosisCode != null"> |
|||
diagnosis_code = #{record.diagnosisCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.diagnosisName != null"> |
|||
diagnosis_name = #{record.diagnosisName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.diagnosisDate != null"> |
|||
diagnosis_date = #{record.diagnosisDate,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.remark != null"> |
|||
remark = #{record.remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createBy != null"> |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createTime != null"> |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateBy != null"> |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.updateTime != null"> |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.delFlag != null"> |
|||
del_flag = #{record.delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update pms_patient_diagnosis |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
patient_id = #{record.patientId,jdbcType=BIGINT}, |
|||
visit_no = #{record.visitNo,jdbcType=VARCHAR}, |
|||
diagnosis_type = #{record.diagnosisType,jdbcType=VARCHAR}, |
|||
is_main_diagnosis = #{record.isMainDiagnosis,jdbcType=VARCHAR}, |
|||
diagnosis_code = #{record.diagnosisCode,jdbcType=VARCHAR}, |
|||
diagnosis_name = #{record.diagnosisName,jdbcType=VARCHAR}, |
|||
diagnosis_date = #{record.diagnosisDate,jdbcType=VARCHAR}, |
|||
remark = #{record.remark,jdbcType=VARCHAR}, |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
del_flag = #{record.delFlag,jdbcType=TINYINT} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.system.domain.po.PmsPatientDiagnosis"> |
|||
update pms_patient_diagnosis |
|||
<set> |
|||
<if test="patientId != null"> |
|||
patient_id = #{patientId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="visitNo != null"> |
|||
visit_no = #{visitNo,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="diagnosisType != null"> |
|||
diagnosis_type = #{diagnosisType,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="isMainDiagnosis != null"> |
|||
is_main_diagnosis = #{isMainDiagnosis,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="diagnosisCode != null"> |
|||
diagnosis_code = #{diagnosisCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="diagnosisName != null"> |
|||
diagnosis_name = #{diagnosisName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="diagnosisDate != null"> |
|||
diagnosis_date = #{diagnosisDate,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark = #{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag = #{delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.ccsens.system.domain.po.PmsPatientDiagnosis"> |
|||
update pms_patient_diagnosis |
|||
set patient_id = #{patientId,jdbcType=BIGINT}, |
|||
visit_no = #{visitNo,jdbcType=VARCHAR}, |
|||
diagnosis_type = #{diagnosisType,jdbcType=VARCHAR}, |
|||
is_main_diagnosis = #{isMainDiagnosis,jdbcType=VARCHAR}, |
|||
diagnosis_code = #{diagnosisCode,jdbcType=VARCHAR}, |
|||
diagnosis_name = #{diagnosisName,jdbcType=VARCHAR}, |
|||
diagnosis_date = #{diagnosisDate,jdbcType=VARCHAR}, |
|||
remark = #{remark,jdbcType=VARCHAR}, |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
del_flag = #{delFlag,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
|||
@ -0,0 +1,35 @@ |
|||
|
|||
-- 诊断信息添加就诊类型字段 |
|||
ALTER TABLE `pms_patient_body` |
|||
ADD COLUMN `visit_type` varchar(64) DEFAULT 0 COMMENT '就诊类型 0门诊 1住院'; |
|||
|
|||
-- 用药信息添加就诊号 |
|||
ALTER TABLE `pms_patient_parent_illness` |
|||
ADD COLUMN `visit_no` varchar(64) DEFAULT '' COMMENT '就诊号'; |
|||
|
|||
-- 用药信息添加就诊号 |
|||
ALTER TABLE `pms_patient_personal` |
|||
ADD COLUMN `visit_no` varchar(64) DEFAULT '' COMMENT '就诊号'; |
|||
|
|||
-- 新增诊断表 |
|||
CREATE TABLE `pms_patient_diagnosis` ( |
|||
`id` bigint(20) NOT NULL, |
|||
`patient_id` bigint(20) DEFAULT 0 COMMENT ' 病人id 普通索引 ', |
|||
|
|||
`visit_no` varchar(64) DEFAULT '' COMMENT '就诊号', |
|||
`diagnosis_type` varchar(255) DEFAULT NULL COMMENT '诊断类型', |
|||
`is_main_diagnosis` varchar(255) DEFAULT NULL COMMENT '是否主要诊断', |
|||
`diagnosis_code` varchar(255) DEFAULT NULL COMMENT '诊断编码', |
|||
`diagnosis_name` varchar(255) DEFAULT NULL COMMENT '诊断名称', |
|||
`diagnosis_date` varchar(255) DEFAULT NULL COMMENT ' 诊断日期', |
|||
|
|||
`remark` varchar(500) DEFAULT '' COMMENT ' 备注 ', |
|||
`create_by` varchar(64) DEFAULT NULL COMMENT '创建者的用户名', |
|||
`create_time` timestamp NOT NULL DEFAULT current_timestamp() COMMENT ' 创建时间 ', |
|||
`update_by` varchar(64) DEFAULT NULL COMMENT '更新者的用户名', |
|||
`update_time` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() COMMENT ' 修改时间 ', |
|||
`del_flag` tinyint(4) DEFAULT 0 COMMENT '记录状态 0-正常 1-删除', |
|||
PRIMARY KEY (`id`) USING BTREE, |
|||
KEY `body_patient_index` (`patient_id`) USING BTREE, |
|||
KEY `visit_no_index` (`visit_no`) USING BTREE |
|||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC COMMENT='病人诊断信息表'; |
|||
Loading…
Reference in new issue