医生站-代码层级初始化
This commit is contained in:
@@ -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;
|
||||
|
||||
/**
|
||||
* 医生站-医嘱 controller
|
||||
* 医生站-医嘱/处方 controller
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/doctor-station/advice")
|
||||
|
||||
@@ -3,9 +3,18 @@
|
||||
*/
|
||||
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.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.extern.slf4j.Slf4j;
|
||||
|
||||
@@ -18,4 +27,25 @@ import lombok.extern.slf4j.Slf4j;
|
||||
@AllArgsConstructor
|
||||
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)
|
||||
public class DoctorStationInitDto {
|
||||
|
||||
private List<patientEncounterStatusOption> patientEncounterStatusOptions;
|
||||
private List<PatientEncounterStatusOption> patientEncounterStatusOptions;
|
||||
|
||||
/**
|
||||
* 患者就诊状态
|
||||
*/
|
||||
@Data
|
||||
public static class patientEncounterStatusOption {
|
||||
public static class PatientEncounterStatusOption {
|
||||
private Integer value;
|
||||
private String label;
|
||||
|
||||
public patientEncounterStatusOption(Integer value, String label) {
|
||||
public PatientEncounterStatusOption(Integer value, String label) {
|
||||
this.value = value;
|
||||
this.label = label;
|
||||
}
|
||||
@@ -35,14 +35,14 @@ public class DoctorStationInitDto {
|
||||
* 设置默认值
|
||||
*/
|
||||
public DoctorStationInitDto() {
|
||||
List<patientEncounterStatusOption> options = new ArrayList<>();
|
||||
List<PatientEncounterStatusOption> options = new ArrayList<>();
|
||||
options.add(
|
||||
new patientEncounterStatusOption(EncounterStatus.PLANNED.getValue(), EncounterStatus.PLANNED.getInfo()));
|
||||
options.add(new patientEncounterStatusOption(EncounterStatus.IN_PROGRESS.getValue(),
|
||||
new PatientEncounterStatusOption(EncounterStatus.PLANNED.getValue(), EncounterStatus.PLANNED.getInfo()));
|
||||
options.add(new PatientEncounterStatusOption(EncounterStatus.IN_PROGRESS.getValue(),
|
||||
EncounterStatus.IN_PROGRESS.getInfo()));
|
||||
options.add(
|
||||
new patientEncounterStatusOption(EncounterStatus.ON_HOLD.getValue(), EncounterStatus.ON_HOLD.getInfo()));
|
||||
options.add(new patientEncounterStatusOption(EncounterStatus.DISCHARGED.getValue(),
|
||||
new PatientEncounterStatusOption(EncounterStatus.ON_HOLD.getValue(), EncounterStatus.ON_HOLD.getInfo()));
|
||||
options.add(new PatientEncounterStatusOption(EncounterStatus.DISCHARGED.getValue(),
|
||||
EncounterStatus.DISCHARGED.getInfo()));
|
||||
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>
|
||||
Reference in New Issue
Block a user