| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- using Newtonsoft.Json.Linq;
- using PTMedicalInsurance.Helper;
- using PTMedicalInsurance.Variables;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace PTMedicalInsurance.Business
- {
- class ReadPatientProcess : AbstractProcess
- {
- public override CallResult Process(JObject input)
- {
- string patInfo = "";
- string errMsg = "";
- PatientService patientService = new PatientService();
- // 显示病人基本信息
- // 返回 baseinfo、insuinfo、selectedIdInfo、selectedInsuInfo
- int ret = patientService.readPatientInfo(out patInfo);
- if (ret != 0)
- {
- return Exception(ret,"获取基本信息",patInfo);
- }
- if ("RegisterOP".Equals(Global.operationType))
- {
- // 门诊挂号(医疗类别/统筹类别)
- Global.pat.medType = "12";
- }
- //Global.writeLog("医疗类别:" + Global.pat.medType);
- // 返回:data、mdtrtinfo、diseinfo、settlement
- ////事前分析
- if (Global.curEvt.ext.isOpenAnalysis)
- {
- if (hBus.PreAnalysis("2", "", out errMsg) != 0) //事前事中:门诊挂号1 门诊收费登记2 住院登记3 住院收费登记4 住院执行医嘱5 门诊结算6 门诊预结算7 住院结算8 住院预结算9 购药划卡10
- {
- //rtnResult = JsonHelper.setExceptionJson(-1, "事前分析", errMsg).ToString();
- //return rtnResult;
- DialogResult dr = MessageBox.Show("【3101】医保明细审核事前分析服务医保中心返回结果:" + errMsg + "!是否继续?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
- if (dr != DialogResult.OK)
- {
- return Exception(-1, "获取基本信息", JsonHelper.setExceptionJson(-1, "【3102】医保明细审核事前分析服务调用失败:", errMsg).ToString()); ;
- }
- }
- }
- if (hBus.showOutPatRegisterForm(patInfo, out outParam) != 0)
- {
- return Exception(-1, "显示登记面板", outParam);
- }
- //用于没有返回病人信息时增加
- JObject joInput = JObject.Parse(outParam);
- JObject joPatInfo = JObject.Parse(patInfo);
- joInput["patInfo"] = joPatInfo;
- outParam = joInput.ToString();
- return Success();
- }
- }
- }
|