Quellcode durchsuchen

预约PET-CT时,添加指定药品。

lighter vor 4 Jahren
Ursprung
Commit
c5fe531b79

+ 1 - 0
src/main/java/thyyxxk/wxservice_server/constant/Constants.java

@@ -12,6 +12,7 @@ public class Constants {
     public static class Capacity {
         public static final int DEFAULT = 1;
         public static final int TWO = 2;
+        public static final int ELEVEN = 11;
     }
 
     public static class Sex {

+ 17 - 0
src/main/java/thyyxxk/wxservice_server/service/BookableService.java

@@ -142,6 +142,23 @@ public class BookableService {
         }
         Prescription book = new Prescription();
         book.initMzYjReqList(param);
+        // PET-CT
+        if ("002059".equals(param.getCode())) {
+            HashMap<String, String> charge = new HashMap<>(Constants.Capacity.ELEVEN);
+            charge.put("chargeItemCode", "50102");
+            charge.put("serial", "01");
+            charge.put("quantity", "10");
+            charge.put("drugQuan", "10");
+            charge.put("drugUnit", "45");
+            charge.put("frequency", "QD");
+            charge.put("orderDays", "1");
+            charge.put("paySelf", "0");
+            charge.put("supplyCode", "003");
+            charge.put("supplyAmount", "1");
+            charge.put("supplyExec", param.getExecUnit());
+            book.getMzChargeDetailList().add(charge);
+        }
+
         RestTemplate restTemplate = new RestTemplate();
         SaveMzFeeResponse hrgResponse = restTemplate.postForObject(hrgApiUrl + "/savePrescription", book, SaveMzFeeResponse.class);
         log.info("自助开单:{},结果:{}", param, hrgResponse);