ReadPatientProcess.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using Newtonsoft.Json.Linq;
  2. using PTMedicalInsurance.Helper;
  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. using System.Windows.Forms;
  10. namespace PTMedicalInsurance.Business
  11. {
  12. class ReadPatientProcess : AbstractProcess
  13. {
  14. public override CallResult Process(JObject input)
  15. {
  16. string patInfo = "";
  17. string errMsg = "";
  18. PatientService patientService = new PatientService();
  19. // 显示病人基本信息
  20. // 返回 baseinfo、insuinfo、selectedIdInfo、selectedInsuInfo
  21. int ret = patientService.readPatientInfo(out patInfo);
  22. if (ret != 0)
  23. {
  24. return Exception(ret,"获取基本信息",patInfo);
  25. }
  26. if ("RegisterOP".Equals(Global.operationType))
  27. {
  28. // 门诊挂号(医疗类别/统筹类别)
  29. Global.pat.medType = "12";
  30. }
  31. if (hBus.showOutPatRegisterForm(patInfo, out outParam) != 0)
  32. {
  33. return Exception(-1, "显示登记面板", outParam);
  34. }
  35. //用于没有返回病人信息时增加
  36. JObject joInput = JObject.Parse(outParam);
  37. JObject joPatInfo = JObject.Parse(patInfo);
  38. joInput["patInfo"] = joPatInfo;
  39. outParam = joInput.ToString();
  40. return Success();
  41. }
  42. }
  43. }