| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- 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;
- namespace PTMedicalInsurance.Business
- {
- class ReadPatientProcess : AbstractProcess
- {
- public override CallResult Process(JObject input)
- {
- string patInfo = ""; Global.pat.iRes_Chronic = 1;
- PatientService patientService = new PatientService();
- // 显示病人基本信息
- // 返回 baseinfo、insuinfo、selectedIdInfo、selectedInsuInfo
- int ret = patientService.readPatientInfo(out patInfo);
- if (ret != 0)
- {
- return Exception(ret,"获取基本信息",patInfo);
- }
- // 本地-医疗类别默认 门诊统筹
- Global.pat.medType = "110104";
- //异地-医疗类别默认 普通门诊
- if (Global.pat.insuplc_admdvs.Substring(0, 4) != "3212")
- Global.pat.medType = "11";
- //门诊慢特病-医疗类别默认-门诊慢特病
- if (Global.pat.iRes_Chronic == 0)
- Global.pat.medType = "140104";
- //泰兴地区 居民门诊医疗类别传11普通门诊
- if ((Global.inf.hospitalDr == 53) && (Global.pat.insuType.Substring(0, 2) == "39"))
- Global.pat.medType = "11";
- // 返回:data、mdtrtinfo、diseinfo、settlement
- 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();
- }
- }
- }
|