eight
2024-08-27 9b18e467d407c66ecc3c46a197aca45dcc3f8056
jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/service/queue/queueService.java
@@ -5,6 +5,7 @@
import cn.lihu.jh.framework.common.pojo.PageResult;
import javax.validation.Valid;
import java.util.List;
/**
 * 排队 Service 接口
@@ -12,6 +13,11 @@
 * @author 芋道源码
 */
public interface QueueService {
    final static Integer MAX_QUEUE_NUM = 3;
    void startBiz();
    void closeBiz();
    /**
     * 创建排队
@@ -36,6 +42,21 @@
    void deletequeue(Integer id);
    /**
     *
     */
    Integer startBedOpen(Long roomId, String bedNo);
    Integer startBedClose(Long roomId, String bedNo);
    Integer startBedDoctorPause(Long roomId, String bedNo, Long docId, String docName);
    Integer startBedDoctorOn(Long roomId, String bedNo, Long docId, String docName);
    Integer startBedDoctorOff(Long roomId, String bedNo, Long docId, String docName);
    Integer bedOpen(Long roomId, String bedNo);
    Integer bedClose(Long roomId, String bedNo);
    Integer bedDoctorPause(Long roomId, String bedNo, Long docId, String docName);
    Integer bedDoctorOn(Long roomId, String bedNo, Long docId, String docName);
    Integer bedDoctorOff(Long roomId, String bedNo, Long docId, String docName);
    /**
     * 获得排队
     *
     * @param id 编号
@@ -51,4 +72,32 @@
     */
    PageResult<QueueDO> getqueuePage(QueuePageReqVO pageReqVO);
}
    /**
     * 患者排队
     * @param queueSaveReqVO
     */
    void queue(QueueSaveReqVO queueSaveReqVO);
    /**
     * 把医生候诊的队列塞满
     */
    void hurryup();
    /**
     * 医生叫下一位患者
     */
    void finishNextPatient(Long roomId, String bedNo);
    /**
     * 医生看完患者
     */
    void passNextPatient(Long roomId, String bedNo);
    List<QueueDO> getDoctorQueueByStatus(Long roomId, String bedNo, List<Byte> statusList);
    PatientStatisticVO getPatientStatistic(Long roomId, String bedNo);
    Integer recallPatient(Long roomId, String bedNo, String patId);
    Integer patientJump(String patId, Byte jumped );
}