|
@ -21,9 +21,9 @@ import com.yihu.wlyy.service.BaseService;
|
|
import com.yihu.wlyy.service.app.message.MessageService;
|
|
import com.yihu.wlyy.service.app.message.MessageService;
|
|
import com.yihu.wlyy.service.system.Icd10DictServcie;
|
|
import com.yihu.wlyy.service.system.Icd10DictServcie;
|
|
import com.yihu.wlyy.service.third.jw.JwPrescriptionService;
|
|
import com.yihu.wlyy.service.third.jw.JwPrescriptionService;
|
|
|
|
import com.yihu.wlyy.service.third.jw.ZyDictService;
|
|
import com.yihu.wlyy.util.DateUtil;
|
|
import com.yihu.wlyy.util.DateUtil;
|
|
import com.yihu.wlyy.util.HttpClientUtil;
|
|
import com.yihu.wlyy.util.HttpClientUtil;
|
|
import com.yihu.wlyy.util.HttpUtil;
|
|
|
|
import com.yihu.wlyy.util.ImUtill;
|
|
import com.yihu.wlyy.util.ImUtill;
|
|
import org.apache.commons.collections.map.HashedMap;
|
|
import org.apache.commons.collections.map.HashedMap;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
@ -115,6 +115,8 @@ public class PrescriptionInfoService extends BaseService {
|
|
private HttpClientUtil httpClientUtil;
|
|
private HttpClientUtil httpClientUtil;
|
|
@Autowired
|
|
@Autowired
|
|
private MessageService messageService;
|
|
private MessageService messageService;
|
|
|
|
@Autowired
|
|
|
|
private ZyDictService zyDictService;
|
|
|
|
|
|
private static final Logger logger = LoggerFactory.getLogger(PrescriptionInfoService.class);
|
|
private static final Logger logger = LoggerFactory.getLogger(PrescriptionInfoService.class);
|
|
|
|
|
|
@ -889,6 +891,14 @@ public class PrescriptionInfoService extends BaseService {
|
|
public com.alibaba.fastjson.JSONObject getContinuedPrescriptionAsDoctor(String code) {
|
|
public com.alibaba.fastjson.JSONObject getContinuedPrescriptionAsDoctor(String code) {
|
|
Prescription prescription = prescriptionDao.findByCode(code);
|
|
Prescription prescription = prescriptionDao.findByCode(code);
|
|
List<PrescriptionInfo> prescriptionInfos = prescriptionInfoDao.findByPrescriptionCode(code);
|
|
List<PrescriptionInfo> prescriptionInfos = prescriptionInfoDao.findByPrescriptionCode(code);
|
|
|
|
//获取药品可拆标志
|
|
|
|
prescriptionInfos.forEach(info->{
|
|
|
|
List<Map<String,Object>> list = zyDictService.findDispDictByCode(prescription.getDoctor(),info.getDrugCode());
|
|
|
|
if(list!=null&&list.size()>0){
|
|
|
|
info.setDispPackUntuckFlag(Integer.valueOf(list.get(0).get("dispPackUntuckFlag").toString()));
|
|
|
|
info.setDispQuantityUntuckFlag(Integer.valueOf(list.get(0).get("dispQuantityUntuckFlag").toString()));
|
|
|
|
}
|
|
|
|
});
|
|
PrescriptionReviewed reviewed = prescriptionReviewedDao.findByPrescriptionCode(code);
|
|
PrescriptionReviewed reviewed = prescriptionReviewedDao.findByPrescriptionCode(code);
|
|
List<PrescriptionAdjust> prescriptionAdjusts = prescriptionAdjustDao.findByPrescriptionCodeOrderByIdDesc(code);
|
|
List<PrescriptionAdjust> prescriptionAdjusts = prescriptionAdjustDao.findByPrescriptionCodeOrderByIdDesc(code);
|
|
com.alibaba.fastjson.JSONObject rs = new com.alibaba.fastjson.JSONObject();
|
|
com.alibaba.fastjson.JSONObject rs = new com.alibaba.fastjson.JSONObject();
|
|
@ -1781,7 +1791,7 @@ public class PrescriptionInfoService extends BaseService {
|
|
*/
|
|
*/
|
|
public com.alibaba.fastjson.JSONArray getPrescriptionTemp(String doctor) throws Exception {
|
|
public com.alibaba.fastjson.JSONArray getPrescriptionTemp(String doctor) throws Exception {
|
|
String rp = jwPrescriptionService.getRecipeTemplate(doctor);
|
|
String rp = jwPrescriptionService.getRecipeTemplate(doctor);
|
|
com.alibaba.fastjson.JSONArray rs = presModeAdapter.modeTopresInfo(rp);
|
|
|
|
|
|
com.alibaba.fastjson.JSONArray rs = presModeAdapter.modeTopresInfo(rp,doctor);
|
|
return rs;
|
|
return rs;
|
|
}
|
|
}
|
|
|
|
|