| | |
| | | import cn.lihu.jh.framework.common.pojo.PageResult; |
| | | |
| | | import javax.validation.Valid; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 排队 Service 接口 |
| | |
| | | * @author 芋道源码 |
| | | */ |
| | | public interface QueueService { |
| | | |
| | | final static Integer MAX_QUEUE_NUM = 3; |
| | | |
| | | void startBiz(); |
| | | void closeBiz(); |
| | | |
| | | /** |
| | | * 创建排队 |
| | |
| | | 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 编号 |
| | |
| | | */ |
| | | 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 ); |
| | | } |