同步超声参数

This commit is contained in:
Flow 2025-06-13 10:31:41 +08:00
parent ce544d635d
commit 0b0a5e84d5

View File

@ -988,9 +988,15 @@ public class InspectPatientController {
@GetMapping("/getUSTj")
@Operation(summary = "获取超声报告")
public CommonResult<Boolean> GetApiPacsInfo(@RequestParam("medicalSn") String medicalSn) {
// 获取患者信息
InspectPatientDO patientDO = patientService.getPatientInfo(medicalSn);
if (patientDO == null) {
return success(false);
}
ConfigDO config = configService.getConfigByKey("url.ustj");
String url = config.getValue();
String response = HttpUtils.get(url + "?" + "examid=" + medicalSn + "&" + "orgSN=" + "1001");
String response = HttpUtils.get(url + "?" + "examid=" + medicalSn + "&" + "orgSN=" + patientDO.getShortid());
if (response != null) {
// 解析 JSON 响应
ObjectMapper objectMapper = new ObjectMapper();