新增过敏与不耐受

This commit is contained in:
liuhongrui
2025-03-07 09:30:59 +08:00
parent 562a34abad
commit 278994c46a
7 changed files with 192 additions and 0 deletions

View File

@@ -0,0 +1,85 @@
package com.openhis.clinical.domain;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.core.common.core.domain.HisBaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* 过敏与不耐受Entity实体
*
* @author system
* @date 2025-03-07
*/
@Data
@TableName("cli_allergy_intolerance")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class AllergyIntolerance extends HisBaseEntity {
/** ID */
@TableId(type = IdType.ASSIGN_ID)
private Long id;
/** 服务申请ID */
private Long requestId;
/** 临床状况 */
private Integer clinicalStatusEnum;
/** 验证状态 */
private Integer verificationStatusEnum;
/** 类型 */
private Integer typeEnum;
/** 过敏原类别 */
private String categoryCode;
/** 危险程度 */
private Integer criticalityEnum;
/** 过敏物质编码 */
private String code;
/** 患者ID */
private Long patientId;
/** 反应描述 */
private String description;
/** 严重程度 */
private Integer severityEnum;
/** 过敏发生开始日期 */
private Date onsetDateTime;
/** 记录者 */
private Long practitionerId;
/** 断言者 */
private Long checkPractitionerId;
/** 记录日期 */
private Date recordedDate;
/** 最后反应发生日期 */
private Date lastReactionOccurrence ;
/** 曝光路线 */
private String exposureRoute;
/** 备注 */
private String note;
/** 删除状态 */
private String deleteFlag;
}

View File

@@ -0,0 +1,17 @@
package com.openhis.clinical.mapper;
import org.springframework.stereotype.Repository;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.openhis.clinical.domain.AllergyIntolerance;
/**
* 过敏与不耐受Mapper接口
*
* @author system
* @date 2025-03-07
*/
@Repository
public interface AllergyIntoleranceMapper extends BaseMapper<AllergyIntolerance> {
}

View File

@@ -0,0 +1,14 @@
package com.openhis.clinical.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.openhis.clinical.domain.AllergyIntolerance;
/**
* 过敏与不耐受Service接口
*
* @author system
* @date 2025-03-07
*/
public interface IAllergyIntoleranceService extends IService<AllergyIntolerance> {
}

View File

@@ -0,0 +1,19 @@
package com.openhis.clinical.service.impl;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.openhis.clinical.domain.AllergyIntolerance;
import com.openhis.clinical.mapper.AllergyIntoleranceMapper;
import com.openhis.clinical.service.IAllergyIntoleranceService;
/**
* 过敏与不耐受Service业务层处理
*
* @author system
* @date 2025-03-07
*/
@Service
public class AllergyIntoleranceServiceImpl extends ServiceImpl<AllergyIntoleranceMapper, AllergyIntolerance> implements IAllergyIntoleranceService {
}

View File

@@ -0,0 +1,7 @@
<?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.openhis.clinical.mapper.AllergyIntoleranceMapper">
</mapper>