|
@@ -37,11 +37,13 @@ public class OrderCovidExamService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public ResultVo<String> savePrescription(String patientId) {
|
|
|
+ public ResultVo<String> savePrescription(String patientId, int type) {
|
|
|
+ String urlTail = type == 1 ? "/nucleicAcidApplication?patientId=" : "/hybridTestApplication?patientId=";
|
|
|
RestTemplate restTemplate = new RestTemplate();
|
|
|
- String url = hrgApiUrl + "/nucleicAcidApplication?patientId=" + patientId;
|
|
|
+ String url = hrgApiUrl + urlTail + patientId;
|
|
|
SaveMzFeeResponse hrgResponse = restTemplate.getForObject(url, SaveMzFeeResponse.class);
|
|
|
- log.info("快速下单核酸检测:患者:{},结果:{}", patientId, hrgResponse);
|
|
|
+ String typeName = type == 1 ? "单人单管" : "混检";
|
|
|
+ log.info("【{}】快速下单核酸检测:患者:{},结果:{}", typeName, patientId, hrgResponse);
|
|
|
if (null == hrgResponse) {
|
|
|
return ResultVoUtil.fail(ExceptionEnum.NETWORK_ERROR);
|
|
|
}
|