|  |  | 
 |  |  |  | 
 |  |  | 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; | 
 |  |  | 
 |  |  |  */ | 
 |  |  | public interface QueueService { | 
 |  |  |  | 
 |  |  |     void setCheckTypeReadyMax(Map<Integer, Integer> max); | 
 |  |  |     void initCheckType(); | 
 |  |  |     void startBiz(); | 
 |  |  |     void closeBiz(); | 
 |  |  |  | 
 |  |  | 
 |  |  |     void deletequeue(Integer id); | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * | 
 |  |  |      * 一个工位 可能支持多个检查类型, | 
 |  |  |      */ | 
 |  |  |     void startHurryUp(); | 
 |  |  |     void startHurryUpOneBed(Long roomId, String bedNo); | 
 |  |  |     void startHurryUpOneCheckType(Integer checkType); | 
 |  |  |  | 
 |  |  |     void startBedReload(); | 
 |  |  |     void startResetRoom(Boolean needCloseBed); | 
 |  |  |     MonitorInfoVO getMonitorInfo(); | 
 |  |  | 
 |  |  |     ErrorCode startBedDoctorOn(Long roomId, String bedNo, Long docId, String docName); | 
 |  |  |     ErrorCode startBedDoctorOff(Long roomId, String bedNo, Long docId, String docName); | 
 |  |  |     ErrorCode startNextPatient(Long roomId, String bedNo); | 
 |  |  |     ErrorCode startNextInstallPatient(Long roomId, String bedNo); | 
 |  |  |  | 
 |  |  |     CommonResult<RoomRespVO> getRoom(Long roomId, String bedNo, Long docId); | 
 |  |  |  | 
 |  |  | 
 |  |  |      */ | 
 |  |  |     void queue(QueueSaveReqVO queueSaveReqVO); | 
 |  |  |  | 
 |  |  |     List<QueueDO> selectBookSeqNumByAppointIdList(List<Long> appointIdList); | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 医生叫下一位患者 | 
 |  |  |      * 常规检查 医生叫下一位患者 | 
 |  |  |      */ | 
 |  |  |     void finishNextPatient(Long roomId, String bedNo); | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 医生看完患者 | 
 |  |  |      * 领用 医生叫下一位患者 | 
 |  |  |      */ | 
 |  |  |     void finishReceiveNextPatient(Long roomId, String bedNo); | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 装机 医生叫下一位患者 | 
 |  |  |      */ | 
 |  |  |     void finishInstallNextPatient(Long roomId, String bedNo); | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 过号排队中患者 | 
 |  |  |      */ | 
 |  |  |     void passWaitingPatient( String patId, Integer bookCheckType ); | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 常规过号、领用过号 | 
 |  |  |      */ | 
 |  |  |     void passNextPatient(Long roomId, String bedNo); | 
 |  |  |  | 
 |  |  |     List<QueueDO> getDoctorQueueByStatus(Long roomId, String bedNo, List<Byte> statusList); | 
 |  |  |     /** | 
 |  |  |      * 装机过号 | 
 |  |  |      */ | 
 |  |  |     void passInstallNextPatient(Long roomId, String bedNo); | 
 |  |  |  | 
 |  |  |     List<QueueDO> getBedQueueByStatus(Long roomId, String bedNo, List<Integer> statusList); | 
 |  |  |  | 
 |  |  |     List<QueueDO> getRoomQueueByStatus(Long roomId, List<Integer> statusList); | 
 |  |  |  | 
 |  |  |     PatientStatisticVO getPatientStatistic(Long roomId, String bedNo); | 
 |  |  |  | 
 |  |  |     Integer recallPatient(Long roomId, String bedNo, String patId); | 
 |  |  |     PatientStatisticVO getBedDevReadyStatistic(Long roomId, String bedNo); | 
 |  |  |  | 
 |  |  |     Integer patientJump(String patId, Byte jumped ); | 
 |  |  |     PatientStatisticVO getBedDevInstallStatistic(Long roomId, String bedNo); | 
 |  |  |  | 
 |  |  |     RoomDO getDocRoomInfo(Long docId); | 
 |  |  |     Integer recallPassWaitingPatient(String patId, Integer checkType); | 
 |  |  |  | 
 |  |  |     Integer recallPatient(Long roomId, String bedNo, String patId, Integer checkType); | 
 |  |  |  | 
 |  |  |     Integer recallInstallPatient(Long roomId, String bedNo, String patId, Integer checkType, Long roomId_operator, String bedNo_operator); | 
 |  |  |  | 
 |  |  |     Integer patientJump(String patId, Integer bookCheckType, Byte jumped ); | 
 |  |  |  | 
 |  |  |     List<RoomDO> getDocRoomInfo(Long docId); | 
 |  |  |  | 
 |  |  |     List<QueueDO> getCheckRelatedPatient(Long roomId, String bedNo); | 
 |  |  |  | 
 |  |  |     List<QueueDO> getInstallRelatedPatient(Long roomId, String bedNo); | 
 |  |  | } |