eight
2024-10-12 6a7f481d975f94984602b15c90904090f30b9b67
jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/queue/QueueService.java
@@ -2,6 +2,7 @@
import javax.validation.Valid;
import java.util.List;
import java.util.Map;
import cn.lihu.jh.framework.common.exception.ErrorCode;
import cn.lihu.jh.framework.common.pojo.CommonResult;
@@ -10,6 +11,7 @@
import cn.lihu.jh.module.ecg.controller.admin.room.vo.RoomRespVO;
import cn.lihu.jh.module.ecg.dal.dataobject.queue.QueueDO;
import cn.lihu.jh.framework.common.pojo.PageResult;
import cn.lihu.jh.module.ecg.dal.dataobject.room.RoomDO;
/**
 * 排队 Service 接口
@@ -18,7 +20,7 @@
 */
public interface QueueService {
    void setQueueReadyMax(Integer max);
    void initCheckType();
    void startBiz();
    void closeBiz();
@@ -48,8 +50,11 @@
    /**
     *
     */
    void startHurryUp();
    void startHurryUpOneBed(Long roomId, String bedNo);
    void startHurryUpOneCheckType(Integer checkType);
    void startBedReload();
    void startResetRoom(Boolean needCloseBed);
    MonitorInfoVO getMonitorInfo();
    ErrorCode startBedOpen(Long roomId, String roomName, String bedNo);
@@ -60,15 +65,6 @@
    ErrorCode startBedDoctorOff(Long roomId, String bedNo, Long docId, String docName);
    ErrorCode startNextPatient(Long roomId, String bedNo);
    ErrorCode bedOpen(Long roomId, String roomName, String bedNo);
    ErrorCode bedClose(Long roomId, String bedNo);
    ErrorCode bedDoctorPause(Long roomId, String bedNo, Long docId, String docName);
    ErrorCode bedDoctorResume(Long roomId, String bedNo, Long docId, String docName);
    ErrorCode bedDoctorOn(Long roomId, String bedNo, Long docId, String docName);
    ErrorCode bedDoctorOff(Long roomId, String bedNo, Long docId, String docName);
    ErrorCode nextPatient(Long roomId, String bedNo);
    ErrorCode bedReload();
    CommonResult<RoomRespVO> getRoom(Long roomId, String bedNo, Long docId);
    /**
@@ -93,16 +89,20 @@
     */
    void queue(QueueSaveReqVO queueSaveReqVO);
    /**
     * 把医生候诊的队列塞满
     */
    void hurryup();
    /**
     * 医生叫下一位患者
     * 常规检查 医生叫下一位患者
     */
    void finishNextPatient(Long roomId, String bedNo);
    /**
     * 领用 医生叫下一位患者
     */
    void finishReceiveNextPatient(Long roomId, String bedNo);
    /**
     * 装机 医生叫下一位患者
     */
    void finishInstallNextPatient(Long roomId, String bedNo);
    /**
     * 医生看完患者
@@ -117,5 +117,5 @@
    Integer patientJump(String patId, Byte jumped );
    void monitorInfo();
    RoomDO getDocRoomInfo(Long docId);
}