|
@@ -43,6 +43,10 @@ public class InspectionsService {
|
|
|
}
|
|
|
|
|
|
public ResultVo<List<ExamIndexResult>> getExamIndex(CheckExamParam param) {
|
|
|
+ int exist = dao.selectPatIdAndOpenIdMatchCount(param.getPatientId(), param.getKey());
|
|
|
+ if (exist == 0) {
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.NO_DATA_EXIST, "请求失败,调用来源验证失败。");
|
|
|
+ }
|
|
|
healthCardService.reportHisData(param.getPatientId(), "0101082", null ,null);
|
|
|
String firstHead = "<message><PATIENT_TYPE>0</PATIENT_TYPE><PTNT_NO>" + param.getPatientId() + "</PTNT_NO>";
|
|
|
String[] sendHeads = new String[]{firstHead, null, null, null};
|
|
@@ -149,6 +153,10 @@ public class InspectionsService {
|
|
|
if (StringUtil.isBlank(param.getOrderId())) {
|
|
|
return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "报告ID不能为空!");
|
|
|
}
|
|
|
+ int exist = dao.selectPatIdAndOpenIdMatchCount(param.getPatNo(), param.getKey());
|
|
|
+ if (exist == 0) {
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.NO_DATA_EXIST, "请求失败,调用来源验证失败。");
|
|
|
+ }
|
|
|
String send = "<message><ORDR_ID>" + param.getOrderId() + "</ORDR_ID></message>";
|
|
|
String xml = soapInvokeService.invokeRemoteMethod("GetLabReport", send);
|
|
|
Element retEle = getResultElement(xml);
|
|
@@ -194,12 +202,6 @@ public class InspectionsService {
|
|
|
reportItems.add(reportItem);
|
|
|
}
|
|
|
});
|
|
|
- if (detail.getReportHeader().getPTNT_NAME().startsWith("核酸混检")) {
|
|
|
- HshjPatient patient = dao.selectPatientBriefInfo(param.getPatNo());
|
|
|
- detail.getReportHeader().setPTNT_NAME(patient.getName());
|
|
|
- detail.getReportHeader().setPTNT_SEX(patient.getGender());
|
|
|
- detail.getReportHeader().setPTNT_AGE(patient.getAge());
|
|
|
- }
|
|
|
detail.setReportItems(reportItems);
|
|
|
return ResultVoUtil.success(detail);
|
|
|
}
|