|
@ -25,7 +25,7 @@ import java.util.List;
|
|
|
@RestController
|
|
|
@RequestMapping(value = "/doctor/prescriptionInfo")
|
|
|
@Api("医生端-长处方接口")
|
|
|
public class PrescriptionInfoController extends BaseController {
|
|
|
public class PrescriptionInfoController extends BaseController{
|
|
|
|
|
|
@Autowired
|
|
|
private PrescriptionInfoService prescriptionInfoService;
|
|
@ -63,9 +63,9 @@ public class PrescriptionInfoController extends BaseController {
|
|
|
@RequestMapping(value = "/getPrescriptionFilter", method = RequestMethod.GET)
|
|
|
@ResponseBody
|
|
|
@ApiOperation(value = "获取过滤规则信息列表")
|
|
|
public String getPrescriptionFilter() {
|
|
|
public String getPrescriptionFilter(){
|
|
|
try {
|
|
|
return write(200, "查询成功!", "data", prescriptionInfoService.getPrescriptionFilter());
|
|
|
return write(200, "查询成功!", "data",prescriptionInfoService.getPrescriptionFilter());
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败!");
|
|
@ -75,14 +75,16 @@ public class PrescriptionInfoController extends BaseController {
|
|
|
@RequestMapping(value = "/getDoctorPrescription", method = RequestMethod.GET)
|
|
|
@ResponseBody
|
|
|
@ApiOperation(value = "获取全科医生/建管师续方列表/搜索")
|
|
|
public String getDoctorPrescription(@RequestParam(required = true) @ApiParam(value = "团队code", name = "teamCode") Integer teamCode,
|
|
|
@RequestParam(required = false) @ApiParam(value = "续方状态", name = "state") String state,
|
|
|
@RequestParam(required = false) @ApiParam(value = "所有诊断:1 糖尿病 2高血压", name = "dispensary") String diseases,
|
|
|
@RequestParam(required = false) @ApiParam(name = "startDate", value = "开始时间") String startDate,
|
|
|
@RequestParam(required = false) @ApiParam(name = "endDate", value = "结束时间") String endDate,
|
|
|
@RequestParam(required = false) @ApiParam(name = "nameKeyword", value = "患者姓名模糊匹配") String nameKeyword) {
|
|
|
public String getDoctorPrescription(@RequestParam(required = true)@ApiParam(value = "团队code", name = "teamCode") Integer teamCode,
|
|
|
@RequestParam(required = false)@ApiParam(value = "续方状态", name = "state") String state,
|
|
|
@RequestParam(required = false)@ApiParam(value = "所有诊断:1 糖尿病 2高血压", name = "dispensary") String diseases,
|
|
|
@RequestParam(required = false)@ApiParam(name="startDate",value="开始时间")String startDate,
|
|
|
@RequestParam(required = false)@ApiParam(name="endDate",value="结束时间")String endDate,
|
|
|
@RequestParam(required = false)@ApiParam(name="nameKeyword",value="患者姓名模糊匹配")String nameKeyword,
|
|
|
@RequestParam(required = false)@ApiParam(name="page",value="起始页")Integer page,
|
|
|
@RequestParam(required = false)@ApiParam(name="size",value="每页条数")Integer size){
|
|
|
try {
|
|
|
return write(200, "查询成功!", "data", prescriptionInfoService.getDoctorPrescription(teamCode, state, diseases, startDate, endDate, nameKeyword));
|
|
|
return write(200, "查询成功!", "data",prescriptionInfoService.getDoctorPrescription(teamCode,state,diseases,startDate,endDate,nameKeyword));
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败!");
|
|
@ -92,10 +94,10 @@ public class PrescriptionInfoController extends BaseController {
|
|
|
@RequestMapping(value = "/getContinuedPrescriptionAsDoctor", method = RequestMethod.GET)
|
|
|
@ResponseBody
|
|
|
@ApiOperation(value = "续方详情")
|
|
|
public String getContinuedPrescriptionAsDoctor(@RequestParam(required = true) @ApiParam(value = "续方CODE", name = "code") String code,
|
|
|
@RequestParam(required = true) @ApiParam(value = "团队长标识:1:是;2否", name = "type") String type) {
|
|
|
public String getContinuedPrescriptionAsDoctor(@RequestParam(required = true)@ApiParam(value = "续方CODE", name = "code") String code,
|
|
|
@RequestParam(required = true)@ApiParam(value = "团队长标识:1:是;2否", name = "type") String type){
|
|
|
try {
|
|
|
return write(200, "查询成功!", "data", prescriptionInfoService.getContinuedPrescriptionAsDoctor(code));
|
|
|
return write(200, "查询成功!", "data",prescriptionInfoService.getContinuedPrescriptionAsDoctor(code));
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败!");
|
|
@ -105,11 +107,11 @@ public class PrescriptionInfoController extends BaseController {
|
|
|
@RequestMapping(value = "/reviewPrescription", method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
@ApiOperation(value = "续方审核")
|
|
|
public String reviewPrescription(@RequestParam(required = true) @ApiParam(value = "续方CODE", name = "code") String code,
|
|
|
@RequestParam(required = false) @ApiParam(value = "不同意原因", name = "reason") String reason,
|
|
|
@RequestParam(required = false) @ApiParam(value = "1同意,2不同意", name = "state") String state) {
|
|
|
public String reviewPrescription(@RequestParam(required = true)@ApiParam(value = "续方CODE", name = "code") String code,
|
|
|
@RequestParam(required = false)@ApiParam(value = "不同意原因", name = "reason") String reason,
|
|
|
@RequestParam(required = false)@ApiParam(value = "1同意,2不同意", name = "state") String state){
|
|
|
try {
|
|
|
return write(200, "查询成功!", "data", prescriptionInfoService.reviewPrescription(code, reason, state));
|
|
|
return write(200, "查询成功!", "data",prescriptionInfoService.reviewPrescription(code,reason,state));
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败!");
|
|
@ -120,11 +122,11 @@ public class PrescriptionInfoController extends BaseController {
|
|
|
@ResponseBody
|
|
|
@ApiOperation(value = "调整处方")
|
|
|
@ObserverRequired
|
|
|
public String updatePresInfo(@RequestParam(required = true) @ApiParam(value = "续方CODE", name = "code") String code,
|
|
|
@RequestParam(required = true) @ApiParam(value = "续方药品JSON", name = "infos") String infos,
|
|
|
@RequestParam(required = true) @ApiParam(value = "调整原因", name = "reason") String reason) {
|
|
|
public String updatePresInfo(@RequestParam(required = true)@ApiParam(value = "续方CODE", name = "code") String code,
|
|
|
@RequestParam(required = true)@ApiParam(value = "续方药品JSON", name = "infos") String infos,
|
|
|
@RequestParam(required = true)@ApiParam(value = "调整原因", name = "reason") String reason ){
|
|
|
try {
|
|
|
return write(200, "操作成功!", "data", prescriptionInfoService.updatePresInfo(code, infos, reason));
|
|
|
return write(200, "操作成功!", "data",prescriptionInfoService.updatePresInfo(code,infos,reason));
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败!");
|
|
@ -134,9 +136,9 @@ public class PrescriptionInfoController extends BaseController {
|
|
|
@RequestMapping(value = "/getInfoTitle", method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
@ApiOperation(value = "调整处方-药品分类及种类数目")
|
|
|
public String getInfoTitle() {
|
|
|
public String getInfoTitle(){
|
|
|
try {
|
|
|
return write(200, "操作成功!", "data", "");
|
|
|
return write(200, "操作成功!", "data","");
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败!");
|
|
@ -146,9 +148,9 @@ public class PrescriptionInfoController extends BaseController {
|
|
|
@RequestMapping(value = "/getInfoListByParentCode", method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
@ApiOperation(value = "药品类别获取药品")
|
|
|
private String getInfoListByParentCode(@RequestParam(required = true) @ApiParam(value = "药品类别Code", name = "code") String code) {
|
|
|
private String getInfoListByParentCode(@RequestParam(required = true)@ApiParam(value = "药品类别Code", name = "code") String code){
|
|
|
try {
|
|
|
return write(200, "操作成功!", "data", "");
|
|
|
return write(200, "操作成功!", "data","");
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败!");
|