新增过敏与不耐受
This commit is contained in:
@@ -0,0 +1,25 @@
|
|||||||
|
package com.openhis.common.enums;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.EnumValue;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Getter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 过敏与不耐受中临床状况
|
||||||
|
*
|
||||||
|
* @author liuhr
|
||||||
|
* @date 2025/3/6
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@AllArgsConstructor
|
||||||
|
public enum ClinicalStatus implements HisEnumInterface {
|
||||||
|
ACTIVE(1, "active", "阳性"),
|
||||||
|
INACTIVE(2, "inactive", "阴性"),
|
||||||
|
RESOLVED(3, "resolved", "已解决");
|
||||||
|
|
||||||
|
@EnumValue
|
||||||
|
private final Integer value;
|
||||||
|
private final String code;
|
||||||
|
private final String info;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
package com.openhis.common.enums;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.EnumValue;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Getter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 过敏与不耐受中验证状态
|
||||||
|
*
|
||||||
|
* @author liuhr
|
||||||
|
* @date 2025/3/6
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@AllArgsConstructor
|
||||||
|
public enum VerificationStatus implements HisEnumInterface {
|
||||||
|
UNCONFIRMED(1, "unconfirmed", "未确认"),
|
||||||
|
CONFIRMED(2, "confirmed", "已确认"),
|
||||||
|
REFUTED(3, "refuted", "已反驳"),
|
||||||
|
ENTERED_IN_ERROR(4, "entered-in-error", "输入错误");
|
||||||
|
|
||||||
|
@EnumValue
|
||||||
|
private final Integer value;
|
||||||
|
private final String code;
|
||||||
|
private final String info;
|
||||||
|
}
|
||||||
@@ -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;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -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> {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -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> {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -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 {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -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>
|
||||||
Reference in New Issue
Block a user