OPRegService.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using Newtonsoft.Json.Linq;
  2. using PTMedicalInsurance.Business.SelfServiceMachine.OutPatient;
  3. using PTMedicalInsurance.Variables;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace PTMedicalInsurance.Business.SelfServiceMachine
  10. {
  11. class OPRegService
  12. {
  13. public OPRegService()
  14. {
  15. Global.pat.admType = 1;
  16. Global.pat.medType = "12";
  17. Global.businessType = "01101";
  18. //后台需要标志表明是否自助机,以及结算机器编号
  19. }
  20. /// <summary>
  21. /// 收费业务
  22. /// </summary>
  23. public string Charge(string operationType, JObject joInput)
  24. {
  25. Global.operationType = operationType;
  26. //joInput 包括( data、mdtrtinfo、diseinfo、settlement)
  27. ProcessManager pManager = new ProcessManager()
  28. ////重定向
  29. //.Add(new RedirectProcess())
  30. //患者信息
  31. .Add(new ReadPatientInSSMProcess())
  32. // 挂号[2201A]
  33. .Add(new OPRegProcess())
  34. // 就诊信息上传[2203]
  35. .Add(new OPAdmUploadProcess())
  36. // 费用上传[2204]
  37. .Add(new OPFeeUploadProcess())
  38. // 门诊预结算[2206]
  39. .Add(new OPPreSettlementInSSMProcess())
  40. // 正式结算[2207]
  41. .Add(new OPSettlementProcess());
  42. // 执行
  43. return pManager.Run(joInput);
  44. }
  45. }
  46. }