You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

285 lines
7.1 KiB

3 weeks ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Xml.Serialization;
  7. namespace Shentun.Peis.PlugIns.Extensions.ChargeRequests.YinHai.His
  8. {
  9. /// <summary>
  10. /// 请求明细项
  11. /// </summary>
  12. [XmlRoot("detail")]
  13. public class HisFeeCallBodyDataDetailDto
  14. {
  15. [XmlElement("hos_id")]
  16. public string HosId { get; set; }
  17. [XmlElement("visit_id")]
  18. public string VisitId { get; set; }
  19. [XmlElement("datail_no")]
  20. public string DetailNo { get; set; }
  21. /// <summary>
  22. /// 结算id 对应收费申请单号
  23. /// </summary>
  24. [XmlElement("checkout_id")]
  25. public string CheckoutId { get; set; }
  26. [XmlElement("org_code")]
  27. public string OrgCode { get; set; }
  28. [XmlElement("system_source")]
  29. public string SystemSource { get; set; }
  30. [XmlElement("dept_id")]
  31. public string DeptId { get; set; }
  32. [XmlElement("dept_name")]
  33. public string DeptName { get; set; }
  34. [XmlElement("portfolio_no")]
  35. public string PortfolioNo { get; set; }
  36. /// <summary>
  37. /// 明细费用编码
  38. /// </summary>
  39. [XmlElement("fee_detail_no")]
  40. public string FeeDetailNo { get; set; }
  41. /// <summary>
  42. /// 费用编码
  43. /// </summary>
  44. [XmlElement("fee_name")]
  45. public string FeeName { get; set; }
  46. /// <summary>
  47. /// 单价
  48. /// </summary>
  49. [XmlElement("price")]
  50. public string Price { get; set; }
  51. [XmlElement("count")]
  52. public string Count { get; set; }
  53. [XmlElement("stock_id")]
  54. public string StockId { get; set; }
  55. [XmlElement("real_price")]
  56. public string RealPrice { get; set; }
  57. }
  58. /// <summary>
  59. /// 请求明细列表
  60. /// </summary>
  61. [XmlRoot("request_details")]
  62. public class HisFeeCallBodyDataDetailsDto
  63. {
  64. [XmlElement("detail")]
  65. public List<HisFeeCallBodyDataDetailDto> Details { get; set; }
  66. }
  67. /// <summary>
  68. /// 主请求信息
  69. /// </summary>
  70. [XmlRoot("request")]
  71. public class HisFeeCallBodyDataRequestDto
  72. {
  73. /// <summary>
  74. /// 人员条码号
  75. /// </summary>
  76. [XmlElement("visit_id")]
  77. public string VisitId { get; set; }
  78. /// <summary>
  79. /// 收费申请单号
  80. /// </summary>
  81. [XmlElement("checkout_id")]
  82. public string CheckoutId { get; set; }
  83. /// <summary>
  84. /// 固定
  85. /// </summary>
  86. [XmlElement("org_code")]
  87. public string OrgCode { get; set; }
  88. /// <summary>
  89. /// 固定
  90. /// </summary>
  91. [XmlElement("system_source")]
  92. public string SystemSource { get; set; }
  93. [XmlElement("hos_id")]
  94. public string HosId { get; set; }
  95. /// <summary>
  96. /// 固定
  97. /// </summary>
  98. [XmlElement("org_name")]
  99. public string OrgName { get; set; }
  100. /// <summary>
  101. /// 档案号
  102. /// </summary>
  103. [XmlElement("patient_id")]
  104. public string PatientId { get; set; }
  105. /// <summary>
  106. /// 姓名
  107. /// </summary>
  108. [XmlElement("patient_name")]
  109. public string PatientName { get; set; }
  110. /// <summary>
  111. /// 固定 1
  112. /// </summary>
  113. [XmlElement("gender_code")]
  114. public string GenderCode { get; set; }
  115. /// <summary>
  116. /// 出生日期
  117. /// </summary>
  118. [XmlElement("birthday")]
  119. public string Birthday { get; set; }
  120. [XmlElement("id_card")]
  121. public string IdCard { get; set; }
  122. [XmlElement("address")]
  123. public string Address { get; set; }
  124. [XmlElement("phone")]
  125. public string Phone { get; set; }
  126. /// <summary>
  127. /// 0、个人、1、团体、2不计费(渝东医院新加不计费类型)
  128. /// </summary>
  129. [XmlElement("checkup_type")]
  130. public string CheckupType { get; set; }
  131. [XmlElement("team_appointment_no")]
  132. public string TeamAppointmentNo { get; set; }
  133. [XmlElement("team_code")]
  134. public string TeamCode { get; set; }
  135. [XmlElement("team_name")]
  136. public string TeamName { get; set; }
  137. [XmlElement("team_checkup_time")]
  138. public string TeamCheckupTime { get; set; }
  139. [XmlElement("this_register_count")]
  140. public string ThisRegisterCount { get; set; }
  141. [XmlElement("checkup_time")]
  142. public string CheckupTime { get; set; }
  143. [XmlElement("sum_cost")]
  144. public string SumCost { get; set; }
  145. [XmlElement("real_cost")]
  146. public string RealCost { get; set; }
  147. /// <summary>
  148. /// 开单科室代码
  149. /// </summary>
  150. [XmlElement("billing_dept_code")]
  151. public string BillingDeptCode { get; set; }
  152. /// <summary>
  153. /// 开单科室名称
  154. /// </summary>
  155. [XmlElement("billing_dept_name")]
  156. public string BillingDeptName { get; set; }
  157. /// <summary>
  158. /// 开单医生编号 登记人账户
  159. /// </summary>
  160. [XmlElement("billing_doc_code")]
  161. public string BillingDocCode { get; set; }
  162. /// <summary>
  163. /// 开单医生姓名 登记人姓名
  164. /// </summary>
  165. [XmlElement("billing_doc_name")]
  166. public string BillingDocName { get; set; }
  167. }
  168. /// <summary>
  169. /// 数据部分
  170. /// </summary>
  171. [XmlRoot("data")]
  172. public class HisFeeCallBodyDataDto
  173. {
  174. [XmlElement("request")]
  175. public HisFeeCallBodyDataRequestDto Request { get; set; }
  176. [XmlElement("request_details")]
  177. public HisFeeCallBodyDataDetailsDto RequestDetails { get; set; }
  178. }
  179. /// <summary>
  180. /// 请求体
  181. /// </summary>
  182. [XmlRoot("body")]
  183. public class HisFeeCallBodyDto
  184. {
  185. [XmlElement("data")]
  186. public HisFeeCallBodyDataDto Data { get; set; }
  187. }
  188. /// <summary>
  189. /// 请求头信息
  190. /// </summary>
  191. [XmlRoot("head")]
  192. public class HisFeeCallHeadDto
  193. {
  194. [XmlElement("version")]
  195. public string Version { get; set; }
  196. [XmlElement("timestamp")]
  197. public string Timestamp { get; set; }
  198. [XmlElement("sign")]
  199. public string Sign { get; set; }
  200. [XmlElement("request_id")]
  201. public string RequestId { get; set; }
  202. [XmlElement("source_system")]
  203. public string SourceSystem { get; set; }
  204. /// <summary>
  205. /// lis pacs his
  206. /// </summary>
  207. [XmlElement("object_system")]
  208. public string ObjectSystem { get; set; }
  209. [XmlElement("action")]
  210. public string Action { get; set; }
  211. [XmlElement("code")]
  212. public string Code { get; set; }
  213. }
  214. /// <summary>
  215. /// 完整的请求XML根对象
  216. /// </summary>
  217. [XmlRoot("reqxml")]
  218. public class HisFeeCallDto
  219. {
  220. [XmlElement("head")]
  221. public HisFeeCallHeadDto Head { get; set; }
  222. [XmlElement("body")]
  223. public HisFeeCallBodyDto Body { get; set; }
  224. }
  225. }