Browse Source

工伤门诊

lighter 2 years ago
parent
commit
7b171b82de

+ 2 - 0
src/main/java/thyyxxk/webserver/constants/sidicts/MedType.java

@@ -37,6 +37,8 @@ public enum MedType {
 
     INJURY_HOSPITALIZATION("42", "工伤住院", "hospitalization", "al"),
 
+    OCCUPATIONAL_INJURY_CLINIC("41", "工伤门诊", "clinic", "al1"),
+
     OUTPATIENT_TWO_DISEASES("9901", "门诊两病", "clinic", "am"),
 
     ACCIDENTAL_INJURY_CLINIC("9903", "意外伤害门诊", "clinic", "an"),

+ 56 - 0
src/main/java/thyyxxk/webserver/controller/medicalinsurance/SiInjuryController.java

@@ -1,5 +1,6 @@
 package thyyxxk.webserver.controller.medicalinsurance;
 
+import com.alibaba.fastjson.JSONObject;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Value;
@@ -13,6 +14,8 @@ import thyyxxk.webserver.entity.medicalinsurance.injury.InjuryCareQualification;
 import thyyxxk.webserver.entity.medicalinsurance.injury.InjuryEmployeeInquiry;
 import thyyxxk.webserver.entity.inpatient.dismiss.MedinsSettleFee;
 import thyyxxk.webserver.entity.inpatient.patient.Patient;
+import thyyxxk.webserver.entity.medicalinsurance.query.QryPsnBsInfo;
+import thyyxxk.webserver.entity.medicalinsurance.setlinfo.FundDetail;
 import thyyxxk.webserver.service.externalhttp.SiInjuryFeeUpld;
 import thyyxxk.webserver.service.externalhttp.SiInjurySystem;
 import thyyxxk.webserver.service.inpatient.DismissService;
@@ -51,6 +54,16 @@ public class SiInjuryController {
         return injurySystem.getPersonBaseinfo(siInjurySystmUrl, inquiry);
     }
 
+    @PostMapping("/employeeInfoInquiry2")
+    public ResultVo<List<InjuryCareQualification>> employeeInfoInquiry2(@RequestBody QryPsnBsInfo p) {
+        InjuryEmployeeInquiry inquiry = new InjuryEmployeeInquiry();
+        inquiry.setPatNo(p.getPatNo());
+        inquiry.setTimes(p.getTimes());
+        inquiry.setLedgerSn(p.getLedgerSn());
+        inquiry.setStaffId(TokenUtil.getTokenUserId());
+        return injurySystem.getPersonBaseinfo(siInjurySystmUrl, inquiry);
+    }
+
     @PostMapping("/inpatientRegister")
     public ResultVo<String> admissRegistration(@RequestBody InjuryCareQualification qualification) {
         qualification.setStaffId(TokenUtil.getTokenUserId());
@@ -137,4 +150,47 @@ public class SiInjuryController {
         qualification.setStaffId(TokenUtil.getTokenUserId());
         return injurySystem.cancelCalculate(siInjurySystmUrl, qualification);
     }
+
+    @PostMapping("/outpatientRegister")
+    public ResultVo<String> outpatientRegister(@RequestBody InjuryCareQualification qualification) {
+        qualification.setStaffId(TokenUtil.getTokenUserId());
+        return injurySystem.outpatientRegister(siInjurySystmUrl, qualification);
+    }
+
+    @PostMapping("/outpatientFeeUpload")
+    public ResultVo<String> outpatientFeeUpload(@RequestBody InjuryCareQualification qualification) {
+        qualification.setStaffId(TokenUtil.getTokenUserId());
+        return injurySystem.outpatientFeeUpload(siInjurySystmUrl, qualification);
+    }
+
+    @PostMapping("/outpatientSettlement")
+    public ResultVo<FundDetail> outpatientSettlement(@RequestBody InjuryCareQualification qualification) {
+        qualification.setStaffId(TokenUtil.getTokenUserId());
+        return injurySystem.outpatientSettlement(siInjurySystmUrl, qualification);
+    }
+
+    @PostMapping("/revokeOutpatientFee")
+    public ResultVo<String> revokeOutpatientFee(@RequestBody InjuryCareQualification qualification) {
+        qualification.setStaffId(TokenUtil.getTokenUserId());
+        return injurySystem.revokeOutpatientFee(siInjurySystmUrl, qualification);
+    }
+
+    @PostMapping("/outpatientFeeInquiry")
+    public ResultVo<JSONObject> outpatientFeeInquiry(@RequestBody InjuryCareQualification qualification) {
+        qualification.setStaffId(TokenUtil.getTokenUserId());
+        return injurySystem.outpatientFeeInquiry(siInjurySystmUrl, qualification);
+    }
+
+    @PostMapping("/revokeOutpatientSettlement")
+    public ResultVo<String> revokeOutpatientSettlement(@RequestBody InjuryCareQualification qualification) {
+        qualification.setStaffId(TokenUtil.getTokenUserId());
+        return injurySystem.revokeOutpatientSettlement(siInjurySystmUrl, qualification);
+    }
+
+    @PostMapping("/revokeOutpatientRegistration")
+    public ResultVo<String> revokeOutpatientRegistration(@RequestBody InjuryCareQualification qualification) {
+        qualification.setStaffId(TokenUtil.getTokenUserId());
+        return injurySystem.revokeOutpatientRegistration(siInjurySystmUrl, qualification);
+    }
+
 }

+ 24 - 0
src/main/java/thyyxxk/webserver/service/externalhttp/SiInjurySystem.java

@@ -1,5 +1,6 @@
 package thyyxxk.webserver.service.externalhttp;
 
+import com.alibaba.fastjson.JSONObject;
 import com.dtflys.forest.annotation.JSONBody;
 import com.dtflys.forest.annotation.Post;
 import com.dtflys.forest.annotation.Var;
@@ -8,6 +9,7 @@ import thyyxxk.webserver.entity.inpatient.dismiss.MedinsSettleFee;
 import thyyxxk.webserver.entity.medicalinsurance.injury.InjuryCareQualification;
 import thyyxxk.webserver.entity.medicalinsurance.injury.InjuryEmployeeInquiry;
 import thyyxxk.webserver.entity.medicalinsurance.manage.CatalogueContrast;
+import thyyxxk.webserver.entity.medicalinsurance.setlinfo.FundDetail;
 
 import java.util.List;
 
@@ -38,4 +40,26 @@ public interface SiInjurySystem {
 
     @Post("{url}/revokeInpatientSettlement")
     ResultVo<String> cancelCalculate(@Var("url") String url, @JSONBody InjuryCareQualification body);
+
+    @Post("{url}/outpatientRegister")
+    ResultVo<String> outpatientRegister(@Var("url") String url, @JSONBody InjuryCareQualification body);
+
+    @Post("{url}/outpatientFeeUpload")
+    ResultVo<String> outpatientFeeUpload(@Var("url") String url, @JSONBody InjuryCareQualification body);
+
+    @Post("{url}/outpatientSettlement")
+    ResultVo<FundDetail> outpatientSettlement(@Var("url") String url, @JSONBody InjuryCareQualification body);
+
+    @Post("{url}/revokeOutpatientFee")
+    ResultVo<String> revokeOutpatientFee(@Var("url") String url, @JSONBody InjuryCareQualification body);
+
+    @Post("{url}/outpatientFeeInquiry")
+    ResultVo<JSONObject> outpatientFeeInquiry(@Var("url") String url, @JSONBody InjuryCareQualification body);
+
+    @Post("{url}/revokeOutpatientSettlement")
+    ResultVo<String> revokeOutpatientSettlement(@Var("url") String url, @JSONBody InjuryCareQualification body);
+
+    @Post("{url}/revokeOutpatientRegistration")
+    ResultVo<String> revokeOutpatientRegistration(@Var("url") String url, @JSONBody InjuryCareQualification body);
+
 }