|
@ -1,17 +1,26 @@
|
|
|
package com.yihu.wlyy.web.doctor.prescription;
|
|
|
|
|
|
import com.yihu.wlyy.adapter.PresModeAdapter;
|
|
|
import com.yihu.wlyy.aop.ObserverRequired;
|
|
|
import com.yihu.wlyy.entity.patient.prescription.*;
|
|
|
import com.yihu.wlyy.service.app.prescription.*;
|
|
|
import com.yihu.wlyy.entity.patient.prescription.Prescription;
|
|
|
import com.yihu.wlyy.entity.patient.prescription.PrescriptionExpressage;
|
|
|
import com.yihu.wlyy.entity.patient.prescription.PrescriptionInfo;
|
|
|
import com.yihu.wlyy.entity.patient.prescription.PrescriptionPay;
|
|
|
import com.yihu.wlyy.service.app.prescription.PrescriptionExpressageService;
|
|
|
import com.yihu.wlyy.service.app.prescription.PrescriptionInfoService;
|
|
|
import com.yihu.wlyy.service.app.prescription.PrescriptionPayService;
|
|
|
import com.yihu.wlyy.service.app.prescription.PrescriptionService;
|
|
|
import com.yihu.wlyy.service.third.jw.JwPrescriptionService;
|
|
|
import com.yihu.wlyy.service.third.jw.JwSignService;
|
|
|
import com.yihu.wlyy.web.BaseController;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
import org.json.JSONObject;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
@ -21,7 +30,7 @@ import java.util.List;
|
|
|
@RestController
|
|
|
@RequestMapping(value = "/doctor/prescriptionInfo")
|
|
|
@Api(description = "医生端-长处方接口")
|
|
|
public class PrescriptionInfoController extends BaseController {
|
|
|
public class PrescriptionInfoController extends BaseController{
|
|
|
|
|
|
@Autowired
|
|
|
private PrescriptionInfoService prescriptionInfoService;
|
|
@ -34,14 +43,14 @@ public class PrescriptionInfoController extends BaseController {
|
|
|
@Autowired
|
|
|
private JwPrescriptionService jwPrescriptionService;
|
|
|
@Autowired
|
|
|
private PrescriptionExpressageLogService prescriptionExpressageLogService;
|
|
|
private PresModeAdapter adapter;
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/getPrescriptionFilter", method = RequestMethod.GET)
|
|
|
@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, "查询失败!");
|
|
@ -50,17 +59,17 @@ public class PrescriptionInfoController extends BaseController {
|
|
|
|
|
|
@RequestMapping(value = "/getDoctorPrescription", method = RequestMethod.GET)
|
|
|
@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,
|
|
|
@RequestParam(required = false) @ApiParam(name = "patient", value = "患者Code") String patient,
|
|
|
@RequestParam(required = false) @ApiParam(name = "page", value = "起始页") Integer page,
|
|
|
@RequestParam(required = false) @ApiParam(name = "size", value = "每页条数") Integer size) {
|
|
|
public String getDoctorPrescription(@RequestParam(required = false)@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="patient",value="患者Code")String patient,
|
|
|
@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, patient, page, size));
|
|
|
return write(200, "查询成功!", "data",prescriptionInfoService.getDoctorPrescription(teamCode,state,diseases,startDate,endDate,nameKeyword,patient,page,size));
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败!");
|
|
@ -69,10 +78,10 @@ public class PrescriptionInfoController extends BaseController {
|
|
|
|
|
|
@RequestMapping(value = "/getContinuedPrescriptionAsDoctor", method = RequestMethod.GET)
|
|
|
@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, "查询失败!");
|
|
@ -81,11 +90,11 @@ public class PrescriptionInfoController extends BaseController {
|
|
|
|
|
|
@RequestMapping(value = "/reviewPrescription", method = RequestMethod.POST)
|
|
|
@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, "查询失败!");
|
|
@ -95,12 +104,12 @@ public class PrescriptionInfoController extends BaseController {
|
|
|
@RequestMapping(value = "/updatePresInfo", method = RequestMethod.POST)
|
|
|
@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 = false) @ApiParam(value = "疾病JSON", name = "diagnosis") String diagnosis,
|
|
|
@RequestParam(required = false) @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 = false)@ApiParam(value = "疾病JSON", name = "diagnosis") String diagnosis,
|
|
|
@RequestParam(required = false)@ApiParam(value = "调整原因", name = "reason") String reason ){
|
|
|
try {
|
|
|
return write(200, "操作成功!", "data", prescriptionInfoService.updatePresInfo(code, infos, diagnosis, reason));
|
|
|
return write(200, "操作成功!", "data",prescriptionInfoService.updatePresInfo(code,infos,diagnosis,reason));
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败!");
|
|
@ -109,9 +118,9 @@ public class PrescriptionInfoController extends BaseController {
|
|
|
|
|
|
@RequestMapping(value = "/getInfoTitle", method = RequestMethod.POST)
|
|
|
@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, "查询失败!");
|
|
@ -120,9 +129,9 @@ public class PrescriptionInfoController extends BaseController {
|
|
|
|
|
|
@RequestMapping(value = "/getInfoListByParentCode", method = RequestMethod.POST)
|
|
|
@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, "查询失败!");
|
|
@ -150,24 +159,14 @@ public class PrescriptionInfoController extends BaseController {
|
|
|
PrescriptionPay prescriptionPay = prescriptionPayService.findByPrescriptionCode(prescriptionCode);
|
|
|
//获取配送信息
|
|
|
PrescriptionExpressage prescriptionExpressage = prescriptionExpressageService.findByPrescriptionCode(prescriptionCode);
|
|
|
//获取配送流程
|
|
|
List<PrescriptionExpressageLog> prescriptionExpressageLogs = prescriptionExpressageLogService.findByPrescriptionCode(prescriptionCode);
|
|
|
jo.put("prescriptionExpressage", prescriptionExpressage);
|
|
|
if (prescriptionInfos != null && prescriptionInfos.size() > 0) {
|
|
|
jo.put("prescriptionInfos", prescriptionInfos);
|
|
|
}
|
|
|
if (prescriptionPay != null) {
|
|
|
jo.put("prescriptionPay", prescriptionPay);
|
|
|
}
|
|
|
if (prescriptionExpressageLogs != null && prescriptionExpressageLogs.size() > 0) {
|
|
|
jo.put("prescriptionExpressageLogs", prescriptionExpressageLogs);
|
|
|
}
|
|
|
|
|
|
jo.put("prescriptionInfos", prescriptionInfos);
|
|
|
jo.put("prescriptionPay", prescriptionPay);
|
|
|
jo.put("prescriptionHospital", prescription.getHospitalName());//出药机构
|
|
|
jo.put("dispensaryDispensaryType", prescription.getType());//处方配送方式
|
|
|
jo.put("dispensaryDispensaryTypeName", prescription.getTypeName());//处方配送方式
|
|
|
jo.put("prescriptionStatus", prescription.getStatus());//处方状态
|
|
|
jo.put("prescriptionStatusName", prescription.getStatusName(prescription.getStatus(), ""));//处方状态名称
|
|
|
jo.put("prescriptionStatusName", prescription.getStatusName(prescription.getStatus(),""));//处方状态名称
|
|
|
|
|
|
return write(200, "查询成功", "data", jo);
|
|
|
} catch (Exception e) {
|
|
@ -178,9 +177,9 @@ public class PrescriptionInfoController extends BaseController {
|
|
|
|
|
|
@RequestMapping(value = "/getDrugTimes", method = RequestMethod.GET)
|
|
|
@ApiOperation(value = "药品品使用频次字典")
|
|
|
public String getDrugTimes() {
|
|
|
public String getDrugTimes(){
|
|
|
try {
|
|
|
return write(200, "操作成功!", "data", prescriptionInfoService.getDrugTimes());
|
|
|
return write(200, "操作成功!", "data",prescriptionInfoService.getDrugTimes());
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败!");
|
|
@ -189,17 +188,17 @@ public class PrescriptionInfoController extends BaseController {
|
|
|
|
|
|
@RequestMapping(value = "/getHDoctorPrescriptionExpressage", method = RequestMethod.GET)
|
|
|
@ApiOperation(value = "获取健康管理师续方订单列表")
|
|
|
public String getHDoctorPrescriptionExpressage(@RequestParam(required = false) @ApiParam(value = "团队Code", name = "teamCode") String teamCode,
|
|
|
@RequestParam(required = false) @ApiParam(value = "1:需跟踪;2:已接收", name = "type") String type,
|
|
|
@RequestParam(required = false) @ApiParam(value = "患者姓名关键字", name = "nameKey") String nameKey,
|
|
|
@RequestParam(required = false) @ApiParam(value = "开始时间", name = "startDate") String startDate,
|
|
|
@RequestParam(required = false) @ApiParam(value = "结束时间", name = "endDate") String endDate,
|
|
|
@RequestParam(required = false) @ApiParam(value = "服务站", name = "hospital") String hospital,
|
|
|
@RequestParam(required = false) @ApiParam(value = "配送状态", name = "state") String state,
|
|
|
@RequestParam(required = false) @ApiParam(value = "页数", name = "page") Integer page,
|
|
|
@RequestParam(required = false) @ApiParam(value = "每页大小", name = "size") Integer size) {
|
|
|
public String getHDoctorPrescriptionExpressage(@RequestParam(required = false) @ApiParam(value = "团队Code", name = "teamCode")String teamCode,
|
|
|
@RequestParam(required = false) @ApiParam(value = "1:需跟踪;2:已接收", name = "type") String type,
|
|
|
@RequestParam(required = false) @ApiParam(value = "患者姓名关键字", name = "nameKey")String nameKey,
|
|
|
@RequestParam(required = false) @ApiParam(value = "开始时间", name = "startDate")String startDate,
|
|
|
@RequestParam(required = false) @ApiParam(value = "结束时间", name = "endDate")String endDate,
|
|
|
@RequestParam(required = false) @ApiParam(value = "服务站", name = "hospital")String hospital,
|
|
|
@RequestParam(required = false) @ApiParam(value = "配送状态", name = "state")String state,
|
|
|
@RequestParam(required = false) @ApiParam(value = "页数", name = "page")Integer page,
|
|
|
@RequestParam(required = false) @ApiParam(value = "每页大小", name = "size")Integer size){
|
|
|
try {
|
|
|
return write(200, "操作成功!", "data", prescriptionInfoService.getHDoctorPrescriptionExpressage(teamCode, type, getUID(), nameKey, startDate, endDate, hospital, state, page, size));
|
|
|
return write(200, "操作成功!", "data",prescriptionInfoService.getHDoctorPrescriptionExpressage(teamCode,type,getUID(),nameKey,startDate,endDate,hospital,state,page,size));
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败!");
|
|
@ -208,20 +207,19 @@ public class PrescriptionInfoController extends BaseController {
|
|
|
|
|
|
@RequestMapping(value = "/getPrescriptionExpressageFilter", method = RequestMethod.GET)
|
|
|
@ApiOperation(value = "获取健康管理师续方订单列表过滤条件")
|
|
|
public String getPrescriptionExpressageFilter() {
|
|
|
public String getPrescriptionExpressageFilter(){
|
|
|
try {
|
|
|
return write(200, "操作成功!", "data", prescriptionInfoService.getPrescriptionExpressageFilter(getUID()));
|
|
|
return write(200, "操作成功!", "data",prescriptionInfoService.getPrescriptionExpressageFilter(getUID()));
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败!");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/getPrescriptionExpressageAsdoctorFilter", method = RequestMethod.GET)
|
|
|
@ApiOperation(value = "获取全科医生续方订单列表过滤条件")
|
|
|
public String getPrescriptionExpressageAsdoctorFilter() {
|
|
|
public String getPrescriptionExpressageAsdoctorFilter(){
|
|
|
try {
|
|
|
return write(200, "操作成功!", "data", prescriptionInfoService.getPrescriptionExpressageAsdoctorFilter());
|
|
|
return write(200, "操作成功!", "data",prescriptionInfoService.getPrescriptionExpressageAsdoctorFilter());
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败!");
|
|
@ -230,20 +228,20 @@ public class PrescriptionInfoController extends BaseController {
|
|
|
|
|
|
@RequestMapping(value = "/getDoctorPrescriptionExpressage", method = RequestMethod.GET)
|
|
|
@ApiOperation(value = "获取全科医生续方订单列表")
|
|
|
public String getDoctorPrescriptionExpressage(@RequestParam(required = false) @ApiParam(value = "团队Code", name = "teamCode") String teamCode,
|
|
|
@RequestParam(required = false) @ApiParam(value = "居民搜素关键字", name = "nameKey") String nameKey,
|
|
|
@RequestParam(required = false) @ApiParam(value = "开始时间", name = "startDate") String startDate,
|
|
|
@RequestParam(required = false) @ApiParam(value = "结束时间", name = "endDate") String endDate,
|
|
|
@RequestParam(required = false) @ApiParam(value = "机构", name = "hospital") String hospital,
|
|
|
@RequestParam(required = false) @ApiParam(value = "配送状态", name = "state") String state,
|
|
|
@RequestParam(required = false) @ApiParam(value = "配送方式:1 自取 2快递配送 3健管师配送", name = "dispensaryType") String dispensaryType,
|
|
|
@RequestParam(required = false) @ApiParam(value = "传1为未分配健管师", name = "AllocationType") String AllocationType,
|
|
|
@RequestParam(required = false) @ApiParam(value = "起始页", name = "page") Integer page,
|
|
|
@RequestParam(required = false) @ApiParam(value = "每页大小", name = "size") Integer size) {
|
|
|
public String getDoctorPrescriptionExpressage(@RequestParam(required = false) @ApiParam(value = "团队Code", name = "teamCode")String teamCode,
|
|
|
@RequestParam(required = false) @ApiParam(value = "居民搜素关键字", name = "nameKey")String nameKey,
|
|
|
@RequestParam(required = false) @ApiParam(value = "开始时间", name = "startDate")String startDate,
|
|
|
@RequestParam(required = false) @ApiParam(value = "结束时间", name = "endDate")String endDate,
|
|
|
@RequestParam(required = false) @ApiParam(value = "机构", name = "hospital")String hospital,
|
|
|
@RequestParam(required = false) @ApiParam(value = "配送状态", name = "state")String state,
|
|
|
@RequestParam(required = false) @ApiParam(value = "配送方式:1 自取 2快递配送 3健管师配送", name = "dispensaryType")String dispensaryType,
|
|
|
@RequestParam(required = false) @ApiParam(value = "传1为未分配健管师", name = "AllocationType")String AllocationType,
|
|
|
@RequestParam(required = false) @ApiParam(value = "起始页", name = "page")Integer page,
|
|
|
@RequestParam(required = false) @ApiParam(value = "每页大小", name = "size")Integer size){
|
|
|
try {
|
|
|
return write(200, "操作成功!", "data",
|
|
|
prescriptionInfoService.
|
|
|
getDoctorPrescriptionExpressage(teamCode, nameKey, startDate, endDate, hospital, state, dispensaryType, AllocationType, page, size));
|
|
|
getDoctorPrescriptionExpressage(teamCode, nameKey, startDate, endDate, hospital, state, dispensaryType,AllocationType, page, size));
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败!");
|
|
@ -252,7 +250,7 @@ public class PrescriptionInfoController extends BaseController {
|
|
|
|
|
|
@RequestMapping(value = "/getCountExpressage", method = RequestMethod.GET)
|
|
|
@ApiOperation(value = "获取指定团队未分配建管师订单数目")
|
|
|
public String getCountExpressage(@RequestParam(required = true) @ApiParam(value = "团队Code", name = "teamCode") String teamCode) {
|
|
|
public String getCountExpressage(@RequestParam(required = true) @ApiParam(value = "团队Code", name = "teamCode")String teamCode){
|
|
|
try {
|
|
|
return write(200, "操作成功!", "data", prescriptionInfoService.getCountExpressage(teamCode));
|
|
|
} catch (Exception e) {
|
|
@ -263,7 +261,7 @@ public class PrescriptionInfoController extends BaseController {
|
|
|
|
|
|
@RequestMapping(value = "/getHospitalListTitle", method = RequestMethod.GET)
|
|
|
@ApiOperation(value = "获取服务站列表")
|
|
|
public String getHospitalListTitle(@RequestParam(required = true) @ApiParam(value = "团队Code", name = "teamCode") String teamCode) {
|
|
|
public String getHospitalListTitle(@RequestParam(required = true) @ApiParam(value = "团队Code", name = "teamCode")String teamCode){
|
|
|
try {
|
|
|
return write(200, "操作成功!", "data", prescriptionInfoService.getHospitalListTitle(teamCode));
|
|
|
} catch (Exception e) {
|
|
@ -274,7 +272,7 @@ public class PrescriptionInfoController extends BaseController {
|
|
|
|
|
|
@RequestMapping(value = "/getTeamHealthDoctorCount", method = RequestMethod.GET)
|
|
|
@ApiOperation(value = "获取医生同社区底下所有团队建管师数目")
|
|
|
public String getTeamHealthDoctorCount() {
|
|
|
public String getTeamHealthDoctorCount(){
|
|
|
try {
|
|
|
return write(200, "操作成功!", "data", prescriptionInfoService.getTeamHealthDoctorCount(getUID()));
|
|
|
} catch (Exception e) {
|
|
@ -282,27 +280,48 @@ public class PrescriptionInfoController extends BaseController {
|
|
|
return error(-1, "查询失败!");
|
|
|
}
|
|
|
}
|
|
|
//
|
|
|
// @RequestMapping(value = "/getPrescriptionDurgDict", method = RequestMethod.GET)
|
|
|
// @ApiOperation(value = "获取基卫的药品字典")
|
|
|
// public String getPrescriptionDurgDict(
|
|
|
// @RequestParam(required = true,name = "dictName") @ApiParam(value = "字典名称", name = "dictName",required = true) String dictName,
|
|
|
// @RequestParam(required = true,name = "hospital") @ApiParam(value = "医院code", name = "hospital",required = true) String hospital
|
|
|
// ){
|
|
|
// try {
|
|
|
// return write(200, "操作成功!", "data",jwPrescriptionService.getDictForI(dictName,hospital));
|
|
|
// } catch (Exception e) {
|
|
|
// error(e);
|
|
|
// return error(-1, "查询失败!");
|
|
|
// }
|
|
|
// }
|
|
|
|
|
|
@RequestMapping(value = "/getPrescriptionDurgDict", method = RequestMethod.GET)
|
|
|
@ApiOperation(value = "获取基卫的药品字典")
|
|
|
public String getPrescriptionDurgDict(
|
|
|
@RequestParam(required = true,name = "dictName") @ApiParam(value = "字典名称", name = "dictName",required = true) String dictName
|
|
|
){
|
|
|
try {
|
|
|
return write(200, "操作成功!", "data",jwPrescriptionService.getDictForI(dictName));
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败!");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/distributionHealthDoctor", method = RequestMethod.POST)
|
|
|
@ApiOperation(value = "配置建管师")
|
|
|
public String distributionHealthDoctor(@RequestParam(required = true) @ApiParam(value = "续方Code字符串用','分割", name = "codes") String codes,
|
|
|
@RequestParam(required = true) @ApiParam(value = "健康管理师Code", name = "healthDoctor") String healthDoctor) {
|
|
|
@RequestParam(required = true) @ApiParam(value = "健康管理师Code", name = "healthDoctor")String healthDoctor){
|
|
|
try {
|
|
|
return write(200, "操作成功!", "data",prescriptionInfoService.distributionHealthDoctor( codes, healthDoctor));
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败!");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/testAdapter", method = RequestMethod.POST)
|
|
|
@ApiOperation(value = "测试适配器")
|
|
|
public String testAdapter(@RequestParam(required = true) @ApiParam(value = "字符串", name = "json") String json){
|
|
|
try {
|
|
|
return write(200, "操作成功!", "data",adapter.modeTopresInfo(json));
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败!");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/getIcd10Info", method = RequestMethod.GET)
|
|
|
@ApiOperation(value = "获取诊断结果")
|
|
|
public String getIcd10Info(@RequestParam(required = true) @ApiParam(value = "诊断结果关键字", name = "nameKey") String nameKey){
|
|
|
try {
|
|
|
return write(200, "操作成功!", "data", prescriptionInfoService.distributionHealthDoctor(codes, healthDoctor));
|
|
|
return write(200, "操作成功!", "data",prescriptionInfoService.getIcd10Info(nameKey));
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败!");
|