|
@ -49,6 +49,7 @@ import com.yihu.jw.rm.hospital.BaseHospitalRequestMapping;
|
|
|
import com.yihu.jw.util.common.IdCardUtil;
|
|
|
import com.yihu.jw.util.common.QrcodeUtil;
|
|
|
import com.yihu.jw.util.date.DateUtil;
|
|
|
import com.yihu.jw.utils.StringUtil;
|
|
|
import com.yihu.mysql.query.BaseJpaService;
|
|
|
import com.yihu.utils.security.MD5;
|
|
|
import com.ylzinfo.ehc.EhcHandler;
|
|
@ -1159,7 +1160,31 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
* @return
|
|
|
*/
|
|
|
public JSONArray getInspectionDictionary(String pyKey,String winNo)throws Exception{
|
|
|
return entranceService.MS25002(pyKey,winNo,demoFlag);
|
|
|
JSONArray rs = entranceService.MS25002(pyKey,winNo,demoFlag);
|
|
|
if(rs!=null&&rs.size()>0){
|
|
|
|
|
|
//设置科室翻译名称字典,减少循环层级降低循环次数
|
|
|
List<DictHospitalDeptDO> depts =dictHospitalDeptDao.findByOrgCode("350211A1002");
|
|
|
Map<String,String> deptDictMap = new HashedMap();
|
|
|
for(DictHospitalDeptDO dp:depts){
|
|
|
deptDictMap.put(dp.getCode(),dp.getName());
|
|
|
}
|
|
|
|
|
|
//翻译执行科室
|
|
|
for(int i=0;i<rs.size();i++){
|
|
|
JSONObject dict = (JSONObject)rs.get(i);
|
|
|
String dept = dict.getString("exec_unit");
|
|
|
if(StringUtils.isNotBlank(dept)){
|
|
|
String deptName = deptDictMap.get(dept);
|
|
|
if(StringUtils.isNotBlank(deptName)){
|
|
|
dict.put("exec_unit_name",deptName);
|
|
|
}else{
|
|
|
dict.put("exec_unit_name","");
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
return rs;
|
|
|
}
|
|
|
|
|
|
/**
|
|
@ -1363,7 +1388,11 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
|
|
|
json.put("cardNo",outpatientDO.getCardNo());
|
|
|
json.put("doctor",doctorMappingDO.getMappingCode());
|
|
|
json.put("dept",outpatientDO.getDept());
|
|
|
json.put("dept",inspectionDO.getDept());
|
|
|
|
|
|
json.put("frequency",inspectionDO.getFrequency()); //组号
|
|
|
json.put("quantity",inspectionDO.getQuantity()); //数量
|
|
|
|
|
|
json.put("winNo",outpatientDO.getWinNo());
|
|
|
json.put("chargeFlag",2); //项目类别-必输 1-药品 2检验检查
|
|
|
/**
|