|
|
@@ -149,7 +149,10 @@ public class PatientMonitorController {
|
|
|
@Log(title = "从his或数据库中拉取数据病人数据")
|
|
|
@ApiOperation(value = "从his或数据库中拉取数据病人数据")
|
|
|
public DeferredResult<R<BusClinicEntity>> syn(@RequestAttribute("tenantId")@ApiParam(hidden = true) String tenantId, @Validated@RequestBody GetPatientInfoVo vo){
|
|
|
- return patientClient.getPatientInfoFromHis(tenantId,vo.getPatientCode(),vo.getTimeout(),false,true);
|
|
|
+ DeferredResult<R<BusClinicEntity>> result = patientClient.getPatientInfoFromHis(tenantId, vo.getPatientCode(), vo.getTimeout(), false, true);
|
|
|
+ result.onError(t-> R.success());
|
|
|
+ result.onTimeout(()->result.setResult(R.success()));
|
|
|
+ return result;
|
|
|
}
|
|
|
|
|
|
@PostMapping("/list/assist/{patientId}")
|