| | |
| | | appointmentDO.setPatWardDesc(appointmentExternal.getPatLocWardDesc()); |
| | | appointmentDO.setPatMobile(appointmentExternal.getPhone()); |
| | | appointmentDO.setPatBedNo(appointmentExternal.getEnBedno()); |
| | | appointmentDO.setBookId(appointmentExternal.getReqIdeApplyno()); |
| | | appointmentDO.setBookCheckType(getCorrespondingCheckType(appointmentExternal.getPlanDefItemList().getPlanDefItem().getPlanDefItemcode())); |
| | | appointmentDO.setBookTime(DateUtils.ofUTC(appointmentExternal.getReqAuthoredOn())); // 开单时间 |
| | | appointmentDO.setBookSrc( getBookSource(appointmentExternal.getAdmTypeCode()) ); |
| | | appointmentDO.setBookSrc( 0 ); |
| | | |
| | | // 光开单的情况,没有预约时间 |
| | | if (null != appointmentExternal.getReqExtBooktime() ) { |
| | |
| | | |
| | | try { |
| | | QueueSaveReqVO queueSaveReqVO = new QueueSaveReqVO(); |
| | | queueSaveReqVO.setApplyNo( appointment.getApplyNo() ); |
| | | queueSaveReqVO.setEpisodeId( appointment.getEpisodeId() ); |
| | | queueSaveReqVO.setAppointId(appointment.getId()); |
| | | queueSaveReqVO.setPatId(appointment.getPatId()); |
| | | queueSaveReqVO.setPatName(appointment.getPatName()); |
| | |
| | | } |
| | | |
| | | return newSeqNo; |
| | | } |
| | | |
| | | private Integer getBookSource(String admTypeCode) { |
| | | if (admTypeCode.equals("AMB")) // 门诊 |
| | | return 1; |
| | | else if (admTypeCode.equals("EMER")) // 急诊 |
| | | return 2; |
| | | else if (admTypeCode.equals("PHY")) // 体检 |
| | | return 3; |
| | | else if (admTypeCode.equals("IMP")) // 住院 |
| | | return 4; |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | private Integer getCorrespondingCheckType(String strPlanDefItemcode) { |