|
@ -1644,7 +1644,7 @@ public class YkyyEntranceService {
|
|
|
List<WlyyInspectionDO> inspectionDOS = wlyyInspectionDao.findByPrescriptionId(code,1);
|
|
|
synPrecriptionHis(prescriptionVO,code);
|
|
|
//同步检查检验
|
|
|
/* synInspect(inspectionDOS);*/
|
|
|
synInspect(inspectionDOS);
|
|
|
}
|
|
|
|
|
|
return wlyyPrescriptionDOs.toString();
|
|
@ -1653,6 +1653,7 @@ public class YkyyEntranceService {
|
|
|
|
|
|
//同步检查检验
|
|
|
public void synInspect(List<WlyyInspectionDO> inspectionDOS) throws Exception {
|
|
|
System.out.println("进入同步");
|
|
|
List<YkEmrJcsqDO> ykEmrJcsqDOS = new ArrayList<>();
|
|
|
String doctor = null;
|
|
|
String patient = null;
|
|
@ -2279,8 +2280,8 @@ public class YkyyEntranceService {
|
|
|
}
|
|
|
//根据组套项目id查询组套明细
|
|
|
public JSONArray findZtmxByid(String ztId) throws Exception{
|
|
|
String sql = "select t.ztid as \"ztid\",t.xmdm as \"xmdm\"," +
|
|
|
"t.xmmc as \"xmmc\",t.mrsl as \"mrsl\",t.zxks as \"zxks\"" +
|
|
|
String sql = "select t.ztid as \"ztid\",t.xmdm as \"code\"," +
|
|
|
"t.xmmc as \"name\",t.mrsl as \"quantity\",t.zxks as \"dept\"" +
|
|
|
"from portal_his.emr_ztmx@ykzxtest t where 1=1";
|
|
|
if (StringUtils.isNotEmpty(ztId)){
|
|
|
sql += " and t.ztid = '"+ztId+"'";
|
|
@ -2303,9 +2304,9 @@ public class YkyyEntranceService {
|
|
|
}
|
|
|
//查询诊疗项目视图
|
|
|
public JSONArray findZlxm(String itemName) throws Exception{
|
|
|
String sql = "select t.item_code as \"itemCode\",t.item_name as \"itemName\"," +
|
|
|
"t.price as \"price\",t.total_unit as \"totalUnit\"," +
|
|
|
"t.zxks as \"zxks\" from VEMR_ORDER_ITEM t where 1=1";
|
|
|
String sql = "select t.item_code as \"code\",t.item_name as \"name\"," +
|
|
|
"t.price as \"chargeAmount\",t.total_unit as \"totalUnit\"," +
|
|
|
"t.zxks as \"dept\" from VEMR_ORDER_ITEM t where 1=1";
|
|
|
if (StringUtils.isNotEmpty(itemName)){
|
|
|
sql+=" and t.ITEM_NAME like '%"+itemName+"%'";
|
|
|
}
|
|
@ -2326,7 +2327,7 @@ public class YkyyEntranceService {
|
|
|
}
|
|
|
//查询诊疗项目明细视图
|
|
|
public JSONArray findZlxmMx(String zlxmId) throws Exception{
|
|
|
String sql = "select t.zlxmid as \"zlxmid\",t.fyxh as \"fyxh\",t.fysl \"fysl\"" +
|
|
|
String sql = "select t.zlxmid as \"code\",t.fyxh as \"fyxh\",t.fysl \"quantity\"" +
|
|
|
" from VEMR_ORDER_ITEM_MX t where 1=1";
|
|
|
if (StringUtils.isNotEmpty(zlxmId)){
|
|
|
sql+=" and t.zlxmid = '"+zlxmId+"'";
|