123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- package thyyxxk.webserver.controller.casefrontsheet;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.*;
- import thyyxxk.webserver.entity.ResultVo;
- import thyyxxk.webserver.entity.casefrontsheet.*;
- import thyyxxk.webserver.entity.dictionary.PureCodeName;
- import thyyxxk.webserver.service.casefrontsheet.CaseFrontSheetService;
- import thyyxxk.webserver.utils.TokenUtil;
- import java.util.List;
- import java.util.Map;
- /**
- * @author dj
- */
- @RestController
- @RequestMapping("/caseFrontSheet")
- public class CaseFrontSheetController {
- private final CaseFrontSheetService service;
- @Autowired
- public CaseFrontSheetController(CaseFrontSheetService service) {
- this.service = service;
- }
- @GetMapping("/getAllDictionary")
- public ResultVo<Map<String, List<PureCodeName>>> getAllDictionary() {
- return service.getAllDictionary();
- }
- @GetMapping("/resetDictionary")
- public ResultVo<String> resetDictionary() {
- return service.resetDictionary();
- }
- @GetMapping("/getUserWards")
- public ResultVo<List<PureCodeName>> getUserWards() {
- return service.getUserWards();
- }
- @GetMapping("/getAllWards")
- public ResultVo<List<PureCodeName>> getWards() {
- return service.getAllWards();
- }
- @GetMapping("/getPatientOverview")
- public ResultVo<List<SheetOverview>> getPatientOverview(String ward) {
- return service.getPatientOverview(ward);
- }
- @PostMapping("/outPatients")
- public ResultVo<List<SheetOverview>> getOutPatients(@RequestBody GetOutSheet param) {
- return service.getOutPatient(param);
- }
- @PostMapping("/basOutPatients")
- public ResultVo<GetBasOverviewRet> getOutPatientsForBas(@RequestBody GetOutSheet param) {
- return service.getOutPatientForBas(param);
- }
- @PostMapping("/getSheetInfo")
- public ResultVo<CaseFrontsheetMain> getPatientInfo(@RequestBody SheetOverview overview) {
- return service.getPatientInfo(overview);
- }
- @GetMapping("/getYbDiags")
- public ResultVo<List<YiBaoDisdiag>> getYbDiags(@RequestParam("bah") String bah,
- @RequestParam("times") Integer times) {
- return service.getYbDiags(bah, times);
- }
- @PostMapping("/saveYbDiags")
- public ResultVo<String> saveYbDiags(@RequestBody SaveYbDiagParam param) {
- return service.saveYbDiags(param);
- }
- @PostMapping("/unArchiveBa")
- public ResultVo<String> unArchiveBa(@RequestBody OpCaseFrontsheet param) {
- param.setStaffId(TokenUtil.getTokenUserId());
- return service.unArchiveSheet(param);
- }
- @PostMapping("/printVerify")
- public ResultVo<Map<String, List<PureCodeName>>> infoVerification(@RequestBody OpCaseFrontsheet param) {
- param.setStaffId(TokenUtil.getTokenUserId());
- return service.infoVerification(param);
- }
- @PostMapping("/saveVerify")
- public ResultVo<List<PureCodeName>> saveVerify(@RequestBody OpCaseFrontsheet param) {
- param.setStaffId(TokenUtil.getTokenUserId());
- return service.saveVerify(param);
- }
- @PostMapping("/signApply")
- public ResultVo<List<PureCodeName>> signApply(@RequestBody CaseFrontsheetMain sheet) {
- return service.signApply(sheet);
- }
- @PostMapping("/lendOut")
- public ResultVo<String> lendOut(@RequestBody OpCaseFrontsheet param) {
- param.setStaffId(TokenUtil.getTokenUserId());
- return service.lendOut(param);
- }
- @PostMapping("/lendBack")
- public ResultVo<String> lendBack(@RequestBody OpCaseFrontsheet param) {
- param.setStaffId(TokenUtil.getTokenUserId());
- return service.lendBack(param);
- }
- @PostMapping("/advanceSearch")
- public ResultVo<List<SheetOverview>> advanceSearch(@RequestBody AdvanceSearchParam param) {
- return service.advanceSearch(param);
- }
- @GetMapping("/fetchSsfz")
- public ResultVo<String> fetchSsfz(@RequestParam("code") String code,
- @RequestParam("bah") String bah,
- @RequestParam("times") Integer times) {
- return service.fetchSsfz(code, bah, times);
- }
- @PostMapping("/analyzeDismissCount")
- public ResultVo<List<DismissCount>> analyzeDismissCount(@RequestBody GetDisCount param) {
- return service.analyzeDismissCount(param);
- }
- @GetMapping("/increaseDiagWeight")
- public void increaseDiagWeight(@RequestParam("code") String code) {
- service.increaseDiagWeight(code);
- }
- }
|