|
@ -110,14 +110,19 @@ public class HealthCareEndPoint extends EnvelopRestEndpoint {
|
|
|
public ObjEnvelop doctorFaceCheckInData(@ApiParam(name = "doctorId", value = "医生id", required = true)
|
|
|
@RequestParam(value = "doctorId",required = true) String doctorId){
|
|
|
try {
|
|
|
String url = entranceHealthCareUrl + "doctorFaceCheckInData?doctorId="+doctorId;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
if (wechatId.equalsIgnoreCase("xm_xzzx_wx")){
|
|
|
String url = entranceHealthCareUrl + "doctorFaceCheckInData?doctorId="+doctorId;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
}
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
return ObjEnvelop.getSuccess("ok",healthCareService.doctorFaceCheckInData(doctorId));
|
|
|
}
|
|
|
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
return failedObjEnvelopException(e);
|
|
@ -129,13 +134,17 @@ public class HealthCareEndPoint extends EnvelopRestEndpoint {
|
|
|
public ObjEnvelop advanceWarning(@ApiParam(name = "outpatientId", value = "门诊id", required = true)
|
|
|
@RequestParam(value = "outpatientId",required = true) String outpatientId){
|
|
|
try {
|
|
|
String url = entranceHealthCareUrl + "advanceWarning?outpatientId="+outpatientId;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
if (wechatId.equalsIgnoreCase("xm_xzzx_wx")) {
|
|
|
String url = entranceHealthCareUrl + "advanceWarning?outpatientId="+outpatientId;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
}
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
return ObjEnvelop.getSuccess("ok",healthCareService.advanceWarning(outpatientId));
|
|
|
}
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
@ -148,13 +157,17 @@ public class HealthCareEndPoint extends EnvelopRestEndpoint {
|
|
|
public ObjEnvelop doctorPrescriptionUpload(@ApiParam(name = "prescriptionId", value = "处方id", required = true)
|
|
|
@RequestParam(value = "prescriptionId",required = true) String prescriptionId){
|
|
|
try {
|
|
|
String url = entranceHealthCareUrl + "doctorPrescriptionUpload?outpatientId="+prescriptionId;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
if (wechatId.equalsIgnoreCase("xm_xzzx_wx")) {
|
|
|
String url = entranceHealthCareUrl + "doctorPrescriptionUpload?outpatientId="+prescriptionId;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
}
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
return ObjEnvelop.getSuccess("ok",healthCareService.doctorPrescriptionUpload(prescriptionId));
|
|
|
}
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
@ -169,13 +182,17 @@ public class HealthCareEndPoint extends EnvelopRestEndpoint {
|
|
|
@ApiParam(name = "cancelReason",value="取消原因",required = true)
|
|
|
@RequestParam(value = "cancelReason",required = true) String cancelReason){
|
|
|
try {
|
|
|
String url = entranceHealthCareUrl + "doctorPrescriptionUploadCancle?prescriptionId="+prescriptionId+"&cancelReason="+cancelReason;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
if (wechatId.equalsIgnoreCase("xm_xzzx_wx")) {
|
|
|
String url = entranceHealthCareUrl + "doctorPrescriptionUploadCancle?prescriptionId="+prescriptionId+"&cancelReason="+cancelReason;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
}
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
return ObjEnvelop.getSuccess("ok",healthCareService.doctorPrescriptionUploadCancle(prescriptionId,cancelReason));
|
|
|
}
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
@ -188,14 +205,19 @@ public class HealthCareEndPoint extends EnvelopRestEndpoint {
|
|
|
public ObjEnvelop electronicPrescriptionReceiving(@ApiParam(name = "outpatientId", value = "门诊id", required = true)
|
|
|
@RequestParam(value = "outpatientId",required = true) String outpatientId)throws Exception{
|
|
|
try {
|
|
|
String url = entranceHealthCareUrl + "electronicPrescriptionReceiving?outpatientId="+outpatientId;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
if (wechatId.equalsIgnoreCase("xm_xzzx_wx")) {
|
|
|
String url = entranceHealthCareUrl + "electronicPrescriptionReceiving?outpatientId="+outpatientId;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
}
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
return ObjEnvelop.getSuccess("ok",healthCareService.electronicPrescriptionReceiving(outpatientId));
|
|
|
}
|
|
|
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
return failedObjEnvelopException(e);
|
|
@ -207,14 +229,19 @@ public class HealthCareEndPoint extends EnvelopRestEndpoint {
|
|
|
public ObjEnvelop electronicPrescriptionCancle(@ApiParam(name = "outpatientId", value = "门诊id", required = true)
|
|
|
@RequestParam(value = "outpatientId",required = true) String outpatientId)throws Exception{
|
|
|
try {
|
|
|
String url = entranceHealthCareUrl + "electronicPrescriptionCancle?outpatientId="+outpatientId;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
if (wechatId.equalsIgnoreCase("xm_xzzx_wx")) {
|
|
|
String url = entranceHealthCareUrl + "electronicPrescriptionCancle?outpatientId="+outpatientId;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
}
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
return ObjEnvelop.getSuccess("ok",healthCareService.electronicPrescriptionCancle(outpatientId));
|
|
|
}
|
|
|
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
return failedObjEnvelopException(e);
|
|
@ -226,14 +253,19 @@ public class HealthCareEndPoint extends EnvelopRestEndpoint {
|
|
|
public ObjEnvelop pharmacistReviewResults(@ApiParam(name = "outpatientId", value = "门诊id", required = true)
|
|
|
@RequestParam(value = "outpatientId",required = true) String outpatientId)throws Exception{
|
|
|
try {
|
|
|
String url = entranceHealthCareUrl + "pharmacistReviewResults?outpatientId="+outpatientId;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
if (wechatId.equalsIgnoreCase("xm_xzzx_wx")) {
|
|
|
String url = entranceHealthCareUrl + "pharmacistReviewResults?outpatientId="+outpatientId;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
}
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
return ObjEnvelop.getSuccess("ok",healthCareService.pharmacistReviewResults(outpatientId));
|
|
|
}
|
|
|
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
return failedObjEnvelopException(e);
|
|
@ -247,14 +279,19 @@ public class HealthCareEndPoint extends EnvelopRestEndpoint {
|
|
|
@ApiParam(name = "doctorCode",value="医保医生code",required = true)
|
|
|
@RequestParam(value = "doctorCode",required = true) String doctorCode)throws Exception{
|
|
|
try {
|
|
|
String url = entranceHealthCareUrl + "outpatientReminder?outpatientId="+outpatientId+"&doctorCode="+doctorCode;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
if (wechatId.equalsIgnoreCase("xm_xzzx_wx")) {
|
|
|
String url = entranceHealthCareUrl + "outpatientReminder?outpatientId="+outpatientId+"&doctorCode="+doctorCode;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
}
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
return ObjEnvelop.getSuccess("ok",healthCareService.outpatientReminder(outpatientId,doctorCode));
|
|
|
}
|
|
|
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
return failedObjEnvelopException(e);
|
|
@ -269,14 +306,19 @@ public class HealthCareEndPoint extends EnvelopRestEndpoint {
|
|
|
@ApiParam(name = "doctorCode",value="医保医生code",required = true)
|
|
|
@RequestParam(value = "doctorCode",required = true) String doctorCode)throws Exception{
|
|
|
try {
|
|
|
String url = entranceHealthCareUrl + "outpatientEventReminder?outpatientId="+outpatientId+"&doctorCode="+doctorCode;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
if (wechatId.equalsIgnoreCase("xm_xzzx_wx")) {
|
|
|
String url = entranceHealthCareUrl + "outpatientEventReminder?outpatientId="+outpatientId+"&doctorCode="+doctorCode;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
}
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
return ObjEnvelop.getSuccess("ok",healthCareService.outpatientEventReminder(outpatientId,doctorCode));
|
|
|
}
|
|
|
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
return failedObjEnvelopException(e);
|
|
@ -287,14 +329,19 @@ public class HealthCareEndPoint extends EnvelopRestEndpoint {
|
|
|
@ApiOperation(value = "获取医保accessToken", notes = "获取医保accessToken")
|
|
|
public ObjEnvelop getChargeDict()throws Exception{
|
|
|
try {
|
|
|
String url = entranceHealthCareUrl + "getYlzToken";
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
if (wechatId.equalsIgnoreCase("xm_xzzx_wx")) {
|
|
|
String url = entranceHealthCareUrl + "getYlzToken";
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
}
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
return ObjEnvelop.getSuccess("ok",healthCareService.getYlzToken());
|
|
|
}
|
|
|
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
return failedObjEnvelopException(e);
|
|
@ -307,14 +354,19 @@ public class HealthCareEndPoint extends EnvelopRestEndpoint {
|
|
|
public ObjEnvelop authorized(@ApiParam(name = "patient", value = "患者id", required = true)
|
|
|
@RequestParam(value = "patient", required = true)String patient)throws Exception{
|
|
|
try {
|
|
|
String url = entranceHealthCareUrl + "authorized?patient="+patient;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
if (wechatId.equalsIgnoreCase("xm_xzzx_wx")) {
|
|
|
String url = entranceHealthCareUrl + "authorized?patient="+patient;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
}
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
return ObjEnvelop.getSuccess("ok",healthCareService.authorized(patient));
|
|
|
}
|
|
|
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
return failedObjEnvelopException(e);
|
|
@ -326,14 +378,19 @@ public class HealthCareEndPoint extends EnvelopRestEndpoint {
|
|
|
public ObjEnvelop medicareOnline(@ApiParam(name = "patient", value = "患者id", required = true)
|
|
|
@RequestParam(value = "patient", required = true)String patient)throws Exception{
|
|
|
try {
|
|
|
String url = entranceHealthCareUrl + "medicareOnline?patient="+patient;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
if (wechatId.equalsIgnoreCase("xm_xzzx_wx")) {
|
|
|
String url = entranceHealthCareUrl + "medicareOnline?patient="+patient;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
}
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
return ObjEnvelop.getSuccess("ok",healthCareService.medicareOnline(patient));
|
|
|
}
|
|
|
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
return failedObjEnvelopException(e);
|
|
@ -345,13 +402,17 @@ public class HealthCareEndPoint extends EnvelopRestEndpoint {
|
|
|
public ObjEnvelop medicareOnlineBase64(@ApiParam(name = "patient", value = "患者id", required = true)
|
|
|
@RequestParam(value = "patient", required = true)String patient)throws Exception{
|
|
|
try {
|
|
|
String url = entranceHealthCareUrl + "medicareOnlineBase64?patient="+patient;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
if (wechatId.equalsIgnoreCase("xm_xzzx_wx")) {
|
|
|
String url = entranceHealthCareUrl + "medicareOnlineBase64?patient="+patient;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
}
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
return ObjEnvelop.getSuccess("ok",healthCareService.medicareOnlineBase64(patient));
|
|
|
}
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
@ -364,14 +425,19 @@ public class HealthCareEndPoint extends EnvelopRestEndpoint {
|
|
|
public ObjEnvelop register(@ApiParam(name = "outpatientId", value = "门诊id", required = true)
|
|
|
@RequestParam(value = "outpatientId", required = true)String outpatientId)throws Exception{
|
|
|
try {
|
|
|
String url = entranceHealthCareUrl + "register?outpatientId="+outpatientId;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
if (wechatId.equalsIgnoreCase("xm_xzzx_wx")) {
|
|
|
String url = entranceHealthCareUrl + "register?outpatientId="+outpatientId;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
}
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
return ObjEnvelop.getSuccess("ok",healthCareService.register(outpatientId));
|
|
|
}
|
|
|
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
return failedObjEnvelopException(e);
|
|
@ -383,13 +449,17 @@ public class HealthCareEndPoint extends EnvelopRestEndpoint {
|
|
|
public ObjEnvelop registerBack(@ApiParam(name = "outpatientId", value = "门诊id", required = true)
|
|
|
@RequestParam(value = "outpatientId", required = true)String outpatientId)throws Exception{
|
|
|
try {
|
|
|
String url = entranceHealthCareUrl + "registerBack?outpatientId="+outpatientId;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
if (wechatId.equalsIgnoreCase("xm_xzzx_wx")) {
|
|
|
String url = entranceHealthCareUrl + "registerBack?outpatientId="+outpatientId;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
}
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
return ObjEnvelop.getSuccess("ok",healthCareService.registerBack(outpatientId));
|
|
|
}
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
@ -402,14 +472,19 @@ public class HealthCareEndPoint extends EnvelopRestEndpoint {
|
|
|
public ObjEnvelop feeDetailUpload(@ApiParam(name = "outpatientId", value = "门诊id", required = true)
|
|
|
@RequestParam(value = "outpatientId", required = true)String outpatientId)throws Exception{
|
|
|
try {
|
|
|
String url = entranceHealthCareUrl + "feeDetailUpload?outpatientId="+outpatientId;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
if (wechatId.equalsIgnoreCase("xm_xzzx_wx")) {
|
|
|
String url = entranceHealthCareUrl + "feeDetailUpload?outpatientId="+outpatientId;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
}
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
return ObjEnvelop.getSuccess("ok",healthCareService.feeDetailUpload(outpatientId));
|
|
|
}
|
|
|
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
return failedObjEnvelopException(e);
|
|
@ -423,14 +498,19 @@ public class HealthCareEndPoint extends EnvelopRestEndpoint {
|
|
|
@ApiParam(name = "remark", value = "作废原因", required = false)
|
|
|
@RequestParam(value = "remark", required = true)String remark)throws Exception{
|
|
|
try {
|
|
|
String url = entranceHealthCareUrl + "feeDetailRefund?outpatientId="+outpatientId+"&remark="+remark;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
if (wechatId.equalsIgnoreCase("xm_xzzx_wx")) {
|
|
|
String url = entranceHealthCareUrl + "feeDetailRefund?outpatientId="+outpatientId+"&remark="+remark;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
}
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
return ObjEnvelop.getSuccess("ok",healthCareService.feeDetailRefund(outpatientId,remark));
|
|
|
}
|
|
|
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
return failedObjEnvelopException(e);
|
|
@ -442,14 +522,19 @@ public class HealthCareEndPoint extends EnvelopRestEndpoint {
|
|
|
public ObjEnvelop preSettlement(@ApiParam(name = "outpatientId", value = "门诊id", required = true)
|
|
|
@RequestParam(value = "outpatientId", required = false)String outpatientId)throws Exception{
|
|
|
try {
|
|
|
String url = entranceHealthCareUrl + "preSettlement?outpatientId="+outpatientId;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
if (wechatId.equalsIgnoreCase("xm_xzzx_wx")) {
|
|
|
String url = entranceHealthCareUrl + "preSettlement?outpatientId="+outpatientId;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
}
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
return ObjEnvelop.getSuccess("ok",healthCareService.preSettlement(outpatientId));
|
|
|
}
|
|
|
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
return failedObjEnvelopException(e);
|
|
@ -461,14 +546,19 @@ public class HealthCareEndPoint extends EnvelopRestEndpoint {
|
|
|
public ObjEnvelop preSettlementRefund(@ApiParam(name = "outpatientId", value = "门诊id", required = true)
|
|
|
@RequestParam(value = "outpatientId", required = false)String outpatientId)throws Exception{
|
|
|
try {
|
|
|
String url = entranceHealthCareUrl + "preSettlementRefund?outpatientId="+outpatientId;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
if (wechatId.equalsIgnoreCase("xm_xzzx_wx")) {
|
|
|
String url = entranceHealthCareUrl + "preSettlementRefund?outpatientId="+outpatientId;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
}
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
return ObjEnvelop.getSuccess("ok",healthCareService.preSettlementRefund(outpatientId));
|
|
|
}
|
|
|
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
return failedObjEnvelopException(e);
|
|
@ -480,14 +570,19 @@ public class HealthCareEndPoint extends EnvelopRestEndpoint {
|
|
|
public ObjEnvelop getSettlementResultUrl(@ApiParam(name = "outpatientId", value = "门诊id", required = true)
|
|
|
@RequestParam(value = "outpatientId", required = false)String outpatientId)throws Exception{
|
|
|
try {
|
|
|
String url = entranceHealthCareUrl + "getSettlementResultUrl?outpatientId="+outpatientId;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
if (wechatId.equalsIgnoreCase("xm_xzzx_wx")) {
|
|
|
String url = entranceHealthCareUrl + "getSettlementResultUrl?outpatientId="+outpatientId;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
}
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
return ObjEnvelop.getSuccess("ok",healthCareService.getSettlementResultUrl(outpatientId));
|
|
|
}
|
|
|
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
return failedObjEnvelopException(e);
|
|
@ -499,14 +594,19 @@ public class HealthCareEndPoint extends EnvelopRestEndpoint {
|
|
|
public ObjEnvelop getSettlementResult(@ApiParam(name = "code", value = "结果回参", required = true)
|
|
|
@RequestParam(value = "code", required = false)String code)throws Exception{
|
|
|
try {
|
|
|
String url = entranceHealthCareUrl + "getSettlementResult?code="+code;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
if (wechatId.equalsIgnoreCase("xm_xzzx_wx")) {
|
|
|
String url = entranceHealthCareUrl + "getSettlementResult?code="+code;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
}
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
return ObjEnvelop.getSuccess("ok",healthCareService.getSettlementResult(code));
|
|
|
}
|
|
|
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
return failedObjEnvelopException(e);
|
|
@ -518,14 +618,19 @@ public class HealthCareEndPoint extends EnvelopRestEndpoint {
|
|
|
public ObjEnvelop uploadMedicalHistory(@ApiParam(name = "outpatientId", value = "门诊id", required = true)
|
|
|
@RequestParam(value = "outpatientId", required = false)String outpatientId)throws Exception{
|
|
|
try {
|
|
|
String url = entranceHealthCareUrl + "uploadMedicalHistory?outpatientId="+outpatientId;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
if (wechatId.equalsIgnoreCase("xm_xzzx_wx")) {
|
|
|
String url = entranceHealthCareUrl + "uploadMedicalHistory?outpatientId="+outpatientId;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
}
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
return ObjEnvelop.getSuccess("ok",healthCareService.uploadMedicalHistory(outpatientId));
|
|
|
}
|
|
|
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
return failedObjEnvelopException(e);
|
|
@ -539,14 +644,19 @@ public class HealthCareEndPoint extends EnvelopRestEndpoint {
|
|
|
@ApiParam(name = "remark", value = "作废原因", required = false)
|
|
|
@RequestParam(value = "remark", required = false)String remark)throws Exception{
|
|
|
try {
|
|
|
String url = entranceHealthCareUrl + "refundMedicalHistory?outpatientId="+outpatientId+"&remark="+remark;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
if (wechatId.equalsIgnoreCase("xm_xzzx_wx")) {
|
|
|
String url = entranceHealthCareUrl + "refundMedicalHistory?outpatientId="+outpatientId+"&remark="+remark;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
}
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
return ObjEnvelop.getSuccess("ok",healthCareService.refundMedicalHistory(outpatientId,remark));
|
|
|
}
|
|
|
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
return failedObjEnvelopException(e);
|
|
@ -558,14 +668,19 @@ public class HealthCareEndPoint extends EnvelopRestEndpoint {
|
|
|
public ObjEnvelop uploadIcdProcess(@ApiParam(name = "outpatientId", value = "门诊id", required = false)
|
|
|
@RequestParam(value = "outpatientId", required = false)String outpatientId)throws Exception{
|
|
|
try {
|
|
|
String url = entranceHealthCareUrl + "uploadIcdProcess?outpatientId="+outpatientId;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
if (wechatId.equalsIgnoreCase("xm_xzzx_wx")) {
|
|
|
String url = entranceHealthCareUrl + "uploadIcdProcess?outpatientId="+outpatientId;
|
|
|
String infoResponse = httpClientUtil.get(url,"GBK");
|
|
|
JSONObject jsonObject = JSONObject.parseObject(infoResponse);
|
|
|
if(jsonObject.getInteger("status")==200){
|
|
|
return ObjEnvelop.getSuccess("ok",jsonObject.get("obj"));
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
}
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("调用内网接口失败:"+jsonObject.getString("message"));
|
|
|
return ObjEnvelop.getSuccess("ok",healthCareService.uploadIcdProcess(outpatientId));
|
|
|
}
|
|
|
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
return failedObjEnvelopException(e);
|