医生站-代码层级初始化
This commit is contained in:
@@ -105,6 +105,7 @@ public class MybatisPlusConfig {
|
|||||||
"adm_supplier",
|
"adm_supplier",
|
||||||
"cli_condition",
|
"cli_condition",
|
||||||
"cli_condition_definition",
|
"cli_condition_definition",
|
||||||
|
"cli_diagnosis_belong_binding",
|
||||||
"cli_procedure",
|
"cli_procedure",
|
||||||
"cli_procedure_performer",
|
"cli_procedure_performer",
|
||||||
"doc_emr",
|
"doc_emr",
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
package com.openhis.web.doctorstation.appservice;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 医生站-医嘱/处方 应用Service
|
||||||
|
*/
|
||||||
|
public interface IDoctorStationAdviceAppService {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
package com.openhis.web.doctorstation.appservice;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 医生站-诊断 应用Service
|
||||||
|
*/
|
||||||
|
public interface IDoctorStationDiagnosisAppService {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
package com.openhis.web.doctorstation.appservice.impl;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import com.openhis.web.doctorstation.appservice.IDoctorStationAdviceAppService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 医生站-医嘱/处方 应用实现类
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class DoctorStationAdviceAppServiceImpl implements IDoctorStationAdviceAppService {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
package com.openhis.web.doctorstation.appservice.impl;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import com.openhis.web.doctorstation.appservice.IDoctorStationDiagnosisAppService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 医生站-诊断 应用实现类
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class DoctorStationDiagnosisAppServiceImpl implements IDoctorStationDiagnosisAppService {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -10,7 +10,7 @@ import lombok.AllArgsConstructor;
|
|||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 医生站-医嘱 controller
|
* 医生站-医嘱/处方 controller
|
||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/doctor-station/advice")
|
@RequestMapping("/doctor-station/advice")
|
||||||
|
|||||||
@@ -3,9 +3,18 @@
|
|||||||
*/
|
*/
|
||||||
package com.openhis.web.doctorstation.controller;
|
package com.openhis.web.doctorstation.controller;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
import java.util.stream.Stream;
|
||||||
|
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.core.common.core.domain.R;
|
||||||
|
import com.openhis.common.enums.BindingType;
|
||||||
|
import com.openhis.web.doctorstation.dto.DiagnosisBelongBindingInitDto;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
@@ -18,4 +27,25 @@ import lombok.extern.slf4j.Slf4j;
|
|||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
public class DoctorStationDiagnosisController {
|
public class DoctorStationDiagnosisController {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 诊断归属绑定基础数据
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@GetMapping(value = "/init")
|
||||||
|
public R<?> init() {
|
||||||
|
DiagnosisBelongBindingInitDto diagnosisBelongBindingInitDto = new DiagnosisBelongBindingInitDto();
|
||||||
|
// 诊断绑定类型 - 用于维护诊断归属绑定关系
|
||||||
|
List<DiagnosisBelongBindingInitDto.DiagnosisBelongBindingOption> diagnosisBelongBindingOption =
|
||||||
|
Stream.of(BindingType.values())
|
||||||
|
.map(status -> new DiagnosisBelongBindingInitDto.DiagnosisBelongBindingOption(status.getValue(),
|
||||||
|
status.getInfo()))
|
||||||
|
.collect(Collectors.toList());
|
||||||
|
diagnosisBelongBindingInitDto.setDiagnosisBelongBindingOptions(diagnosisBelongBindingOption);
|
||||||
|
return R.ok(diagnosisBelongBindingInitDto);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,34 @@
|
|||||||
|
package com.openhis.web.doctorstation.dto;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 诊断归属绑定 dto
|
||||||
|
*
|
||||||
|
* @author system
|
||||||
|
* @date 2025-02-20
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
|
public class DiagnosisBelongBindingDto {
|
||||||
|
|
||||||
|
/** ID */
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 用户ID或科室/机构ID */
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long objectId;
|
||||||
|
|
||||||
|
/** 诊断定义ID */
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long definitionId;
|
||||||
|
|
||||||
|
/** 绑定类型 */
|
||||||
|
private Integer bindingEnum;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
package com.openhis.web.doctorstation.dto;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 诊断归属绑定 init基础数据
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
|
public class DiagnosisBelongBindingInitDto {
|
||||||
|
|
||||||
|
private List<DiagnosisBelongBindingOption> diagnosisBelongBindingOptions;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 诊断绑定类型 - 用于维护诊断归属绑定关系
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public static class DiagnosisBelongBindingOption {
|
||||||
|
private Integer value;
|
||||||
|
private String label;
|
||||||
|
|
||||||
|
public DiagnosisBelongBindingOption(Integer value, String label) {
|
||||||
|
this.value = value;
|
||||||
|
this.label = label;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -15,17 +15,17 @@ import lombok.experimental.Accessors;
|
|||||||
@Accessors(chain = true)
|
@Accessors(chain = true)
|
||||||
public class DoctorStationInitDto {
|
public class DoctorStationInitDto {
|
||||||
|
|
||||||
private List<patientEncounterStatusOption> patientEncounterStatusOptions;
|
private List<PatientEncounterStatusOption> patientEncounterStatusOptions;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 患者就诊状态
|
* 患者就诊状态
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public static class patientEncounterStatusOption {
|
public static class PatientEncounterStatusOption {
|
||||||
private Integer value;
|
private Integer value;
|
||||||
private String label;
|
private String label;
|
||||||
|
|
||||||
public patientEncounterStatusOption(Integer value, String label) {
|
public PatientEncounterStatusOption(Integer value, String label) {
|
||||||
this.value = value;
|
this.value = value;
|
||||||
this.label = label;
|
this.label = label;
|
||||||
}
|
}
|
||||||
@@ -35,14 +35,14 @@ public class DoctorStationInitDto {
|
|||||||
* 设置默认值
|
* 设置默认值
|
||||||
*/
|
*/
|
||||||
public DoctorStationInitDto() {
|
public DoctorStationInitDto() {
|
||||||
List<patientEncounterStatusOption> options = new ArrayList<>();
|
List<PatientEncounterStatusOption> options = new ArrayList<>();
|
||||||
options.add(
|
options.add(
|
||||||
new patientEncounterStatusOption(EncounterStatus.PLANNED.getValue(), EncounterStatus.PLANNED.getInfo()));
|
new PatientEncounterStatusOption(EncounterStatus.PLANNED.getValue(), EncounterStatus.PLANNED.getInfo()));
|
||||||
options.add(new patientEncounterStatusOption(EncounterStatus.IN_PROGRESS.getValue(),
|
options.add(new PatientEncounterStatusOption(EncounterStatus.IN_PROGRESS.getValue(),
|
||||||
EncounterStatus.IN_PROGRESS.getInfo()));
|
EncounterStatus.IN_PROGRESS.getInfo()));
|
||||||
options.add(
|
options.add(
|
||||||
new patientEncounterStatusOption(EncounterStatus.ON_HOLD.getValue(), EncounterStatus.ON_HOLD.getInfo()));
|
new PatientEncounterStatusOption(EncounterStatus.ON_HOLD.getValue(), EncounterStatus.ON_HOLD.getInfo()));
|
||||||
options.add(new patientEncounterStatusOption(EncounterStatus.DISCHARGED.getValue(),
|
options.add(new PatientEncounterStatusOption(EncounterStatus.DISCHARGED.getValue(),
|
||||||
EncounterStatus.DISCHARGED.getInfo()));
|
EncounterStatus.DISCHARGED.getInfo()));
|
||||||
this.patientEncounterStatusOptions = options;
|
this.patientEncounterStatusOptions = options;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
package com.openhis.web.doctorstation.mapper;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 医生站-医嘱/处方 应用Mapper
|
||||||
|
*/
|
||||||
|
@Repository
|
||||||
|
public interface DoctorStationAdviceAppMapper {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
package com.openhis.web.doctorstation.mapper;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 医生站-诊断 应用Mapper
|
||||||
|
*/
|
||||||
|
@Repository
|
||||||
|
public interface DoctorStationDiagnosisAppMapper {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
<?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.web.doctorstation.mapper.DoctorStationAdviceAppMapper">
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
<?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.web.doctorstation.mapper.DoctorStationDiagnosisAppMapper">
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
package com.openhis.common.enums;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.EnumValue;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Getter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 诊断绑定类型
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@AllArgsConstructor
|
||||||
|
public enum BindingType implements HisEnumInterface {
|
||||||
|
|
||||||
|
PERSONAL(1, "personal", "个人"),
|
||||||
|
|
||||||
|
DEFINITION(2, "definition", "科室");
|
||||||
|
|
||||||
|
@EnumValue
|
||||||
|
private final Integer value;
|
||||||
|
private final String code;
|
||||||
|
private final String info;
|
||||||
|
}
|
||||||
@@ -6,7 +6,7 @@ import lombok.Getter;
|
|||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
public enum ConditionDefinitionSource {
|
public enum ConditionDefinitionSource implements HisEnumInterface {
|
||||||
DISEASE_AND_DIAGNOSIS(1, "01", "疾病与诊断"),
|
DISEASE_AND_DIAGNOSIS(1, "01", "疾病与诊断"),
|
||||||
CHRONIC_DISEASE_DIAGNOSIS_CATALOG(2, "02", "特慢病诊断目录"),
|
CHRONIC_DISEASE_DIAGNOSIS_CATALOG(2, "02", "特慢病诊断目录"),
|
||||||
DIAGNOSIS_BY_DISEASE_CATALOG(3, "03", "按病种目录付费诊断"),
|
DIAGNOSIS_BY_DISEASE_CATALOG(3, "03", "按病种目录付费诊断"),
|
||||||
|
|||||||
@@ -6,8 +6,6 @@ import com.baomidou.mybatisplus.annotation.TableName;
|
|||||||
import com.core.common.core.domain.HisBaseEntity;
|
import com.core.common.core.domain.HisBaseEntity;
|
||||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
import com.openhis.common.enums.ConditionDefinitionSource;
|
|
||||||
import com.openhis.common.enums.PublicationStatus;
|
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
@@ -31,7 +29,7 @@ public class ConditionDefinition extends HisBaseEntity {
|
|||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
/** 所属分类 */
|
/** 所属分类 */
|
||||||
private ConditionDefinitionSource sourceEnum;
|
private Integer sourceEnum;
|
||||||
|
|
||||||
/** 编码 */
|
/** 编码 */
|
||||||
private String conditionCode;
|
private String conditionCode;
|
||||||
|
|||||||
@@ -0,0 +1,40 @@
|
|||||||
|
package com.openhis.clinical.domain;
|
||||||
|
|
||||||
|
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 com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 诊断归属绑定Entity实体
|
||||||
|
*
|
||||||
|
* @author system
|
||||||
|
* @date 2025-02-20
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("diagnosis_belong_binding")
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@EqualsAndHashCode(callSuper = false)
|
||||||
|
public class DiagnosisBelongBinding extends HisBaseEntity {
|
||||||
|
|
||||||
|
/** ID */
|
||||||
|
@TableId(type = IdType.ASSIGN_ID)
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 用户ID或科室/机构ID */
|
||||||
|
private Long objectId;
|
||||||
|
|
||||||
|
/** 诊断定义ID */
|
||||||
|
private Long definitionId;
|
||||||
|
|
||||||
|
/** 绑定类型 */
|
||||||
|
private Integer bindingEnum;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -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.DiagnosisBelongBinding;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 诊断归属绑定Mapper接口
|
||||||
|
*
|
||||||
|
* @author system
|
||||||
|
* @date 2025-02-20
|
||||||
|
*/
|
||||||
|
@Repository
|
||||||
|
public interface DiagnosisBelongBindingMapper extends BaseMapper<DiagnosisBelongBinding> {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
package com.openhis.clinical.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.openhis.clinical.domain.DiagnosisBelongBinding;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 诊断归属绑定Service接口
|
||||||
|
*
|
||||||
|
* @author system
|
||||||
|
* @date 2025-02-20
|
||||||
|
*/
|
||||||
|
public interface IDiagnosisBelongBindingService extends IService<DiagnosisBelongBinding> {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
package com.openhis.clinical.service.impl;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.openhis.clinical.domain.DiagnosisBelongBinding;
|
||||||
|
import com.openhis.clinical.mapper.DiagnosisBelongBindingMapper;
|
||||||
|
import com.openhis.clinical.service.IDiagnosisBelongBindingService;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 诊断归属绑定Service业务层处理
|
||||||
|
*
|
||||||
|
* @author system
|
||||||
|
* @date 2025-02-20
|
||||||
|
*/
|
||||||
|
@Slf4j
|
||||||
|
@Service
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class DiagnosisBelongBindingServiceImpl extends ServiceImpl<DiagnosisBelongBindingMapper, DiagnosisBelongBinding>
|
||||||
|
implements IDiagnosisBelongBindingService {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -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.DiagnosisBelongBindingMapper">
|
||||||
|
|
||||||
|
</mapper>
|
||||||
Reference in New Issue
Block a user