主程序
This commit is contained in:
parent
a2d94ed107
commit
678779da9c
@ -12,6 +12,10 @@ public class LisinterfaceNameConstants {
|
|||||||
//获取门诊病人信息列表
|
//获取门诊病人信息列表
|
||||||
public static final String DAYMESSAGE_GETOUTPATLIST = "222";
|
public static final String DAYMESSAGE_GETOUTPATLIST = "222";
|
||||||
public static final String DAYMESSAGE_GETPATIENT = "204";
|
public static final String DAYMESSAGE_GETPATIENT = "204";
|
||||||
|
//获取电子病历
|
||||||
|
public static final String DAYMESSAGE_EMR = "996";
|
||||||
|
//获取病人360视图
|
||||||
|
public static final String DAYMESSAGE_ALLPAT = "997";
|
||||||
/**
|
/**
|
||||||
* 准备发送报告-5
|
* 准备发送报告-5
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -31,6 +31,10 @@ public class LisWorkBase {
|
|||||||
String getIP(){
|
String getIP(){
|
||||||
return IpUtils.getIpAddr();
|
return IpUtils.getIpAddr();
|
||||||
}
|
}
|
||||||
|
/**获取当前登录的医疗机构**/
|
||||||
|
String getYLJG(){
|
||||||
|
return loginConfigParamUtil.getLoginConfigParam().getLoginYLJG();
|
||||||
|
}
|
||||||
/**获取当前会话循环次数**/
|
/**获取当前会话循环次数**/
|
||||||
int getProblemId() {
|
int getProblemId() {
|
||||||
return JsonParamUtils.getParameterToInt("problemId", 0);
|
return JsonParamUtils.getParameterToInt("problemId", 0);
|
||||||
|
|||||||
@ -1,5 +1,10 @@
|
|||||||
package com.czlis.interfaceCommon.utils;
|
package com.czlis.interfaceCommon.utils;
|
||||||
|
|
||||||
|
import com.czlis.common.core.domain.Result;
|
||||||
|
import com.czlis.common.utils.SecurityUtils;
|
||||||
|
import com.czlis.common.utils.ip.IpUtils;
|
||||||
|
import com.czlis.interfaceCommon.constants.LisinterfaceNameConstants;
|
||||||
|
import com.czlis.interfaceCommon.pojo.inter.DayMessage;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
@ -7,4 +12,19 @@ import org.springframework.stereotype.Component;
|
|||||||
@Slf4j
|
@Slf4j
|
||||||
public class LisWorkUtils extends LisWorkconfirm{
|
public class LisWorkUtils extends LisWorkconfirm{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通用调用医院定制接口
|
||||||
|
* @param msgid
|
||||||
|
* @param content
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public Result setDayMessage(String msgid,String content){
|
||||||
|
DayMessage dayMessage = new DayMessage();
|
||||||
|
dayMessage.setIp(getIP());
|
||||||
|
dayMessage.setYljg(getYLJG());
|
||||||
|
dayMessage.setUserid(getusername());
|
||||||
|
dayMessage.setMsgid(msgid);
|
||||||
|
dayMessage.setMsg(content);
|
||||||
|
return lisInterfaceUtil.invokeLisInterface(LisinterfaceNameConstants.DAYMESSAGE, dayMessage);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -124,4 +124,19 @@ public class LisWorkController extends BaseController {
|
|||||||
public Result printReport(LabPat labPat) {
|
public Result printReport(LabPat labPat) {
|
||||||
return lisWorkService.printReport(labPat);
|
return lisWorkService.printReport(labPat);
|
||||||
}
|
}
|
||||||
|
@ApiOperation("查看电子病历")
|
||||||
|
@GetMapping("/emrquery")
|
||||||
|
public Result emrquery(Date jyrq, String yq, String ybh) {
|
||||||
|
return lisWorkService.emrquery(jyrq,yq,ybh);
|
||||||
|
}
|
||||||
|
@ApiOperation("查看患者360视图")
|
||||||
|
@GetMapping("/allpatquery")
|
||||||
|
public Result allpatquery(Date jyrq, String yq, String ybh) {
|
||||||
|
return lisWorkService.allpatquery(jyrq,yq,ybh);
|
||||||
|
}
|
||||||
|
@ApiOperation("双工流水线")
|
||||||
|
@GetMapping("/datalink")
|
||||||
|
public Result datalink(Date jyrq, String yq, String ybh) {
|
||||||
|
return lisWorkService.datalink(jyrq,yq,ybh);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -23,4 +23,7 @@ public interface LisWorkService {
|
|||||||
Result setinputmdl(Date jyrq, String yq, String ybh,String mbmc);
|
Result setinputmdl(Date jyrq, String yq, String ybh,String mbmc);
|
||||||
Result printReport(LabPat labPat);
|
Result printReport(LabPat labPat);
|
||||||
Result getresultchangelog(Date jyrq, String yq, String ybh,String xmdh);
|
Result getresultchangelog(Date jyrq, String yq, String ybh,String xmdh);
|
||||||
|
Result allpatquery(Date jyrq, String yq, String ybh);
|
||||||
|
Result emrquery(Date jyrq, String yq, String ybh);
|
||||||
|
Result datalink(Date jyrq, String yq, String ybh);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,9 +10,12 @@ import com.czlis.common.utils.DateUtils;
|
|||||||
import com.czlis.common.utils.MessageUtils;
|
import com.czlis.common.utils.MessageUtils;
|
||||||
import com.czlis.common.utils.SecurityUtils;
|
import com.czlis.common.utils.SecurityUtils;
|
||||||
import com.czlis.common.utils.StringUtils;
|
import com.czlis.common.utils.StringUtils;
|
||||||
|
import com.czlis.common.utils.ip.IpUtils;
|
||||||
import com.czlis.interfaceCommon.constants.ComLogConstants;
|
import com.czlis.interfaceCommon.constants.ComLogConstants;
|
||||||
import com.czlis.interfaceCommon.constants.LabReqmainConstants;
|
import com.czlis.interfaceCommon.constants.LabReqmainConstants;
|
||||||
|
import com.czlis.interfaceCommon.constants.LisinterfaceNameConstants;
|
||||||
import com.czlis.interfaceCommon.pojo.entity.LastLabPatParam;
|
import com.czlis.interfaceCommon.pojo.entity.LastLabPatParam;
|
||||||
|
import com.czlis.interfaceCommon.pojo.inter.DayMessage;
|
||||||
import com.czlis.interfaceCommon.utils.*;
|
import com.czlis.interfaceCommon.utils.*;
|
||||||
import com.czlis.liswork.mapper.LisWorkMapper;
|
import com.czlis.liswork.mapper.LisWorkMapper;
|
||||||
|
|
||||||
@ -28,6 +31,8 @@ import java.util.stream.Collectors;
|
|||||||
@Service
|
@Service
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class LisWorkServiceImpl implements LisWorkService {
|
public class LisWorkServiceImpl implements LisWorkService {
|
||||||
|
@Autowired
|
||||||
|
LisInterfaceUtil lisInterfaceUtil;
|
||||||
@Autowired
|
@Autowired
|
||||||
LisWorkMapper lisWorkMapper;
|
LisWorkMapper lisWorkMapper;
|
||||||
@Autowired
|
@Autowired
|
||||||
@ -40,12 +45,12 @@ public class LisWorkServiceImpl implements LisWorkService {
|
|||||||
LisWorkUtils lisWorkUtils;
|
LisWorkUtils lisWorkUtils;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Result getXmInfo(String yq) {
|
public Result getXmInfo(String yq) {
|
||||||
List<XmInfo> xmInfoList = commonUtil.getXmInfoList(yq);
|
List<XmInfo> xmInfoList = commonUtil.getXmInfoList(yq);
|
||||||
return new Result("0", "获取成功!", xmInfoList);
|
return new Result("0", "获取成功!", xmInfoList);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Result getXmVal(String yq, String xmdh) {
|
public Result getXmVal(String yq, String xmdh) {
|
||||||
List<XmVal> xmInfoList = commonUtil.getXmVal(yq, xmdh);
|
List<XmVal> xmInfoList = commonUtil.getXmVal(yq, xmdh);
|
||||||
@ -102,6 +107,7 @@ public class LisWorkServiceImpl implements LisWorkService {
|
|||||||
return new Result("0", "获取分组仪器列表成功!", labInstr);
|
return new Result("0", "获取分组仪器列表成功!", labInstr);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Result getInstrdConfig(String yq) {
|
public Result getInstrdConfig(String yq) {
|
||||||
// List<ComOpt> comOptlist = lisWorkMapper.getInstrdConfig(yq);
|
// List<ComOpt> comOptlist = lisWorkMapper.getInstrdConfig(yq);
|
||||||
@ -314,6 +320,7 @@ public class LisWorkServiceImpl implements LisWorkService {
|
|||||||
ResultConfig.add(9, labInputcol9);
|
ResultConfig.add(9, labInputcol9);
|
||||||
return ResultConfig;
|
return ResultConfig;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Result getresultinfo(Date jyrq, String yq, String ybh) {
|
public Result getresultinfo(Date jyrq, String yq, String ybh) {
|
||||||
List<LabResult> labResultList = commonUtil.getLabResultList(jyrq, yq, ybh);
|
List<LabResult> labResultList = commonUtil.getLabResultList(jyrq, yq, ybh);
|
||||||
@ -381,12 +388,14 @@ public class LisWorkServiceImpl implements LisWorkService {
|
|||||||
}
|
}
|
||||||
return new Result("0", "成功!", labResultList);
|
return new Result("0", "成功!", labResultList);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Result setinputmdl(Date jyrq, String yq, String ybh, String mbmc) {
|
public Result setinputmdl(Date jyrq, String yq, String ybh, String mbmc) {
|
||||||
List<LabResult> labResultList = new ArrayList<>();
|
List<LabResult> labResultList = new ArrayList<>();
|
||||||
labResultList = lisWorkUtils.batchinput(jyrq, yq, ybh, labResultList, mbmc, false);
|
labResultList = lisWorkUtils.batchinput(jyrq, yq, ybh, labResultList, mbmc, false);
|
||||||
return new Result("0", "成功!", labResultList);
|
return new Result("0", "成功!", labResultList);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Result getresultchangelog(Date jyrq, String yq, String ybh, String xmdh) {
|
public Result getresultchangelog(Date jyrq, String yq, String ybh, String xmdh) {
|
||||||
Map<String, String> map = new HashMap<>();
|
Map<String, String> map = new HashMap<>();
|
||||||
@ -421,8 +430,10 @@ public class LisWorkServiceImpl implements LisWorkService {
|
|||||||
|
|
||||||
return new Result("0", "成功!", map);
|
return new Result("0", "成功!", map);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取上一次结果
|
* 获取上一次结果
|
||||||
|
*
|
||||||
* @param labPat 病人信息
|
* @param labPat 病人信息
|
||||||
* @param labResultall 结果
|
* @param labResultall 结果
|
||||||
* @return 上一次结果
|
* @return 上一次结果
|
||||||
@ -483,8 +494,9 @@ public class LisWorkServiceImpl implements LisWorkService {
|
|||||||
if (compother != null && !compother.isEmpty()) {
|
if (compother != null && !compother.isEmpty()) {
|
||||||
String instrlist = commonUtil.getComOptValue(yq, "COMPOTHERINSTRLIST");
|
String instrlist = commonUtil.getComOptValue(yq, "COMPOTHERINSTRLIST");
|
||||||
//'CAL800','XS500I','33','40'
|
//'CAL800','XS500I','33','40'
|
||||||
if("".equals(instrlist)||instrlist==null){lastLabPatParam.setYq(yq);}
|
if ("".equals(instrlist) || instrlist == null) {
|
||||||
else {
|
lastLabPatParam.setYq(yq);
|
||||||
|
} else {
|
||||||
instrlist = "(" + instrlist + ",'" + yq + "')";
|
instrlist = "(" + instrlist + ",'" + yq + "')";
|
||||||
lastLabPatParam.setInstrlist(instrlist);
|
lastLabPatParam.setInstrlist(instrlist);
|
||||||
}
|
}
|
||||||
@ -518,11 +530,13 @@ public class LisWorkServiceImpl implements LisWorkService {
|
|||||||
return commonUtil.getsamplelist(jyrq, yq);//new Result("0", "获取样本数据成功!", labPatListday);
|
return commonUtil.getsamplelist(jyrq, yq);//new Result("0", "获取样本数据成功!", labPatListday);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Result getLabPat(Date jyrq, String yq, String ybh) {
|
public Result getLabPat(Date jyrq, String yq, String ybh) {
|
||||||
List<LabPat> labPat = lisWorkMapper.getLabPat(jyrq, yq, ybh);
|
List<LabPat> labPat = lisWorkMapper.getLabPat(jyrq, yq, ybh);
|
||||||
return new Result("0", "获取该样本数据成功!", labPat);
|
return new Result("0", "获取该样本数据成功!", labPat);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Result sampleMedInfo(Date jyrq, String yq, String ybh) {
|
public Result sampleMedInfo(Date jyrq, String yq, String ybh) {
|
||||||
LabResult labResult = new LabResult();
|
LabResult labResult = new LabResult();
|
||||||
@ -568,4 +582,26 @@ public class LisWorkServiceImpl implements LisWorkService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Result emrquery(Date jyrq, String yq, String ybh) {
|
||||||
|
LabPat labPat=commonUtil.getLabPatOne(jyrq, yq, ybh);
|
||||||
|
if(labPat==null)return new Result("-1", "当前样本信息为空!");
|
||||||
|
String brdh=labPat.getBrdh();
|
||||||
|
String sqh=labPat.getSqh();
|
||||||
|
String val = brdh + "|" + sqh + "|" ;
|
||||||
|
return lisWorkUtils.setDayMessage(LisinterfaceNameConstants.DAYMESSAGE_EMR,val);
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public Result allpatquery(Date jyrq, String yq, String ybh) {
|
||||||
|
LabPat labPat=commonUtil.getLabPatOne(jyrq, yq, ybh);
|
||||||
|
if(labPat==null)return new Result("-1", "当前样本信息为空!");
|
||||||
|
String brdh=labPat.getBrdh();
|
||||||
|
String sqh=labPat.getSqh();
|
||||||
|
String val = brdh + "|" + sqh + "|" ;
|
||||||
|
return lisWorkUtils.setDayMessage(LisinterfaceNameConstants.DAYMESSAGE_ALLPAT,val);
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public Result datalink(Date jyrq, String yq, String ybh) {
|
||||||
|
return new Result("0", "获取成功!");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user