using Newtonsoft.Json.Linq; using PTMedicalInsurance.Business.SelfServiceMachine.OutPatient; using PTMedicalInsurance.Variables; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PTMedicalInsurance.Business.SelfServiceMachine { class OPRegService { public OPRegService() { Global.pat.admType = 1; Global.pat.medType = "12"; Global.businessType = "01101"; //后台需要标志表明是否自助机,以及结算机器编号 } /// /// 收费业务 /// public string Charge(string operationType, JObject joInput) { Global.operationType = operationType; //joInput 包括( data、mdtrtinfo、diseinfo、settlement) ProcessManager pManager = new ProcessManager() ////重定向 //.Add(new RedirectProcess()) //患者信息 .Add(new ReadPatientInSSMProcess()) // 挂号[2201A] .Add(new OPRegProcess()) // 就诊信息上传[2203] .Add(new OPAdmUploadProcess()) // 费用上传[2204] .Add(new OPFeeUploadProcess()) // 门诊预结算[2206] .Add(new OPPreSettlementInSSMProcess()) // 正式结算[2207] .Add(new OPSettlementProcess()); // 执行 return pManager.Run(joInput); } } }