package thyyxxk.webserver.controller.medicalinsurance; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; import thyyxxk.webserver.config.auth.PassToken; import thyyxxk.webserver.entity.ResultVo; import thyyxxk.webserver.entity.medicalinsurance.inpatient.InHspPsnInfo; import thyyxxk.webserver.entity.medicalinsurance.outpatient.SpcChrDiseAcct; import thyyxxk.webserver.entity.medicalinsurance.query.*; import thyyxxk.webserver.entity.medicalinsurance.setlinfo.SiSetlinfo; import thyyxxk.webserver.entity.yibao.ZyActpatient; import thyyxxk.webserver.service.medicalinsurance.SiQueryService; import thyyxxk.webserver.utils.ResultVoUtil; import java.util.List; import java.util.Map; /** * @description: 医保查询入口 * @author: DingJie * @create: 2021-06-23 16:39:13 **/ @RestController @RequestMapping("/siQuery") public class SiQueryController { private final SiQueryService service; @Autowired public SiQueryController(SiQueryService service) { this.service = service; } @PostMapping("/getSiPatInfo") public ResultVo getSiPatInfo(@RequestBody QryPsnBsInfo qryPsnBsInfo) { return service.getSiPatInfo(qryPsnBsInfo); } @PostMapping("/obtainBasicPersonInfo") public ResultVo obtainBasicPersonInfo(@RequestBody QryPsnBsInfo qryPsnBsInfo) { return service.obtainBasicPersonInfo(qryPsnBsInfo); } @GetMapping("/obtainMedicalInstitutionInfo") public ResultVo> obtainMedicalInstitutionInfo(@RequestParam("type") String type, @RequestParam("fuzzyName") String fuzzyName) { return service.obtainMedicalInstitutionInfo(type, fuzzyName); } @PostMapping("/queryVisitInfo") public ResultVo> queryVisitInfo(@RequestBody BscQryPrm q) { return service.queryVisitInfo(q); } @PostMapping("/queryDiagnosisInfo") public ResultVo> queryDiagnosisInfo(@RequestBody BscQryPrm q) { return service.queryDiagnosisInfo(q); } @PostMapping("/querySettlementInfo") public ResultVo querySettlementInfo(@RequestBody BscQryPrm q) { return service.querySettlementInfo(q); } @PostMapping("/queryFeeDetails") public ResultVo> queryFeeDetails(@RequestBody QryFeeDetl q) { return service.queryFeeDetails(q); } @PostMapping("/checkPersonTreatment") public ResultVo> checkPersonTreatment(@RequestBody BscQryPrm q) { return service.checkPersonTreatment(q); } @PostMapping("/queryInHospitalPatientsInfo") public ResultVo> queryInHospitalPatientsInfo(@RequestBody BscQryPrm q) { return service.queryInHospitalPatientsInfo(q); } @PostMapping("/queryPersonnelCumulativeInfo") public ResultVo> queryPersonnelCumulativeInfo(@RequestBody BscQryPrm q) { return service.queryPersonnelCumulativeInfo(q); } @PostMapping("/queryPersonnelTransferHospitalInfo") public ResultVo> queryPersonnelTransferHospitalInfo(@RequestBody BscQryPrm q) { return service.queryPersonnelTransferHospitalInfo(q); } @PostMapping("/querySpecialChronicDiseasesMedicalRecord") public ResultVo> querySpecialChronicDiseasesMedicalRecord(@RequestBody BscQryPrm q) { return service.querySpecialChronicDiseasesMedicalRecord(q); } @PostMapping("/querySpecialChronicDiseasesAccreditation") public ResultVo> querySpecialChronicDiseasesAccreditation(@RequestBody BscQryPrm q) { return service.querySpecialChronicDiseasesAccreditation(q); } @GetMapping("/queryMzMatnDises") public ResultVo> queryMzMatnDises() { return service.queryMzMatnDises(); } @PostMapping("/queryPersonnelAssignmentInfo") public ResultVo> queryPersonnelAssignmentInfo(@RequestBody BscQryPrm q) { return service.queryPersonnelAssignmentInfo(q); } @PostMapping("/querySiSetlIndex") public ResultVo> querySiSetlIndex(@RequestBody @Validated QrySetlListPrm q) { return service.querySiSetlIndex(q); } @PassToken @PostMapping("/querySiSetlList") public ResultVo querySiSetlList(@RequestBody @Validated SetlIndex index) { return service.querySiSetlList(index); } @GetMapping("/queryInsuplcAdmdvsByMdtrtId") public ResultVo queryInsuplcAdmdvsByMdtrtId(@RequestParam("mdtrtId") String mdtrtId) { return service.queryInsuplcAdmdvsByMdtrtId(mdtrtId); } @GetMapping("/fetchSiTimesList") public ResultVo> fetchSiTimesList(@RequestParam("patNo") String patNo) { return service.fetchSiTimesList(patNo); } @PostMapping("/selectSetlinfoStatistics") public ResultVo> selectSetlinfoStatistics(@RequestBody @Validated SetlCondition condition) { return service.selectSetlinfoStatistics(condition); } @PostMapping("/selectSetldetailStatistics") public ResultVo> selectSetldetailStatistics(@RequestBody @Validated SetlCondition condition) { return service.selectSetldetailStatistics(condition); } @GetMapping("/checkRegisterDate") public ResultVo checkRegisterDate(@RequestParam("patNo") String patNo, @RequestParam("times") Integer times) { return service.checkRegisterDate(patNo, times); } @GetMapping("/weiJieSuanZaiYuanHuanZhe") public ResultVo> weiJieSuanZaiYuanHuanZhe(@RequestParam("patNo") String patNo, @RequestParam("startTime") String startTime, @RequestParam("endTime") String endTime, @RequestParam("name") String name, @RequestParam("certno") String certno) { return service.weiJieSuanZaiYuanHuanZhe(patNo, startTime, endTime, name, certno); } }