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.

426 lines
13 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.LisRequests.YinHai.Dto
  8. {
  9. /// <summary>
  10. /// 请求明细项
  11. /// </summary>
  12. [XmlRoot("detail")]
  13. public class LisRequestCallBodyDataDetailDto
  14. {
  15. [XmlElement("request_no")]
  16. public string RequestNo { get; set; } = string.Empty;
  17. [XmlElement("patient_type")]
  18. public string PatientType { get; set; } = string.Empty;
  19. /// <summary>
  20. /// 条码号+对照编码
  21. /// </summary>
  22. [XmlElement("item_serial_no")]
  23. public string ItemSerialNo { get; set; } = string.Empty;
  24. [XmlElement("org_code")]
  25. public string OrgCode { get; set; } = string.Empty;
  26. [XmlElement("system_source")]
  27. public string SystemSource { get; set; } = string.Empty;
  28. //[XmlElement("hos_id")]
  29. //public string HosId { get; set; } = string.Empty;
  30. [XmlElement("org_name")]
  31. public string OrgName { get; set; } = string.Empty;
  32. [XmlElement("patient_id")]
  33. public string PatientId { get; set; } = string.Empty;
  34. [XmlElement("visit_id")]
  35. public string VisitId { get; set; } = string.Empty;
  36. [XmlElement("order_id")]
  37. public string OrderId { get; set; } = string.Empty;
  38. [XmlElement("item_id")]
  39. public string ItemId { get; set; } = string.Empty;
  40. [XmlElement("item_code")]
  41. public string ItemCode { get; set; } = string.Empty;
  42. [XmlElement("item_name")]
  43. public string ItemName { get; set; } = string.Empty;
  44. [XmlElement("cost")]
  45. public string Cost { get; set; } = string.Empty;
  46. [XmlElement("sampler_id")]
  47. public string SamplerId { get; set; } = string.Empty;
  48. [XmlElement("sampler")]
  49. public string Sampler { get; set; } = string.Empty;
  50. [XmlElement("sample_date")]
  51. public string SampleDate { get; set; } = string.Empty;
  52. [XmlElement("sender_id")]
  53. public string SenderId { get; set; } = string.Empty;
  54. [XmlElement("sender")]
  55. public string Sender { get; set; } = string.Empty;
  56. [XmlElement("send_date")]
  57. public string SendDate { get; set; } = string.Empty;
  58. [XmlElement("cancel_flag")]
  59. public string CancelFlag { get; set; } = string.Empty;
  60. [XmlElement("exec_flag")]
  61. public string ExecFlag { get; set; } = string.Empty;
  62. [XmlElement("is_emergency")]
  63. public string IsEmergency { get; set; } = string.Empty;
  64. }
  65. /// <summary>
  66. /// 请求明细列表
  67. /// </summary>
  68. [XmlRoot("request_details")]
  69. public class LisRequestCallBodyDataDetailsDto
  70. {
  71. [XmlElement("detail")]
  72. public List<LisRequestCallBodyDataDetailDto> Details { get; set; }
  73. }
  74. /// <summary>
  75. /// 主请求信息
  76. /// </summary>
  77. [XmlRoot("request")]
  78. public class LisRequestCallBodyDataRequestDto
  79. {
  80. [XmlElement("request_no")]
  81. public string RequestNo { get; set; } = string.Empty;
  82. [XmlElement("patient_type")]
  83. public string PatientType { get; set; } = string.Empty;
  84. [XmlElement("org_code")]
  85. public string OrgCode { get; set; } = string.Empty;
  86. [XmlElement("system_source")]
  87. public string SystemSource { get; set; } = string.Empty;
  88. //[XmlElement("hos_id")]
  89. //public string HosId { get; set; } = string.Empty;
  90. [XmlElement("org_name")]
  91. public string OrgName { get; set; } = string.Empty;
  92. [XmlElement("visit_id")]
  93. public string VisitId { get; set; } = string.Empty;
  94. [XmlElement("visit_no")]
  95. public string VisitNo { get; set; } = string.Empty;
  96. [XmlElement("patient_id")]
  97. public string PatientId { get; set; } = string.Empty;
  98. [XmlElement("patient_no")]
  99. public string PatientNo { get; set; } = string.Empty;
  100. [XmlElement("is_baby")]
  101. public string IsBaby { get; set; } = string.Empty;
  102. [XmlElement("patient_name")]
  103. public string PatientName { get; set; } = string.Empty;
  104. [XmlElement("gender_code")]
  105. public string GenderCode { get; set; } = string.Empty;
  106. [XmlElement("age")]
  107. public string Age { get; set; } = string.Empty;
  108. [XmlElement("age_unit")]
  109. public string AgeUnit { get; set; } = string.Empty;
  110. [XmlElement("med_card_no")]
  111. public string MedCardNo { get; set; } = string.Empty;
  112. [XmlElement("id_card")]
  113. public string IdCard { get; set; } = string.Empty;
  114. [XmlElement("health_card_no")]
  115. public string HealthCardNo { get; set; } = string.Empty;
  116. [XmlElement("health_file_no")]
  117. public string HealthFileNo { get; set; } = string.Empty;
  118. [XmlElement("purpose")]
  119. public string Purpose { get; set; } = string.Empty;
  120. [XmlElement("telphone")]
  121. public string Telephone { get; set; } = string.Empty;
  122. [XmlElement("present_address")]
  123. public string PresentAddress { get; set; } = string.Empty;
  124. [XmlElement("nation_code")]
  125. public string NationCode { get; set; } = string.Empty;
  126. [XmlElement("nation_name")]
  127. public string NationName { get; set; } = string.Empty;
  128. [XmlElement("nationality_code")]
  129. public string NationalityCode { get; set; } = string.Empty;
  130. [XmlElement("nationality_name")]
  131. public string NationalityName { get; set; } = string.Empty;
  132. [XmlElement("marriage_code")]
  133. public string MarriageCode { get; set; } = string.Empty;
  134. [XmlElement("present_history")]
  135. public string PresentHistory { get; set; } = string.Empty;
  136. [XmlElement("complanit")]
  137. public string Complanit { get; set; } = string.Empty;
  138. [XmlElement("symptoms_info")]
  139. public string SymptomsInfo { get; set; } = string.Empty;
  140. [XmlElement("diag_code")]
  141. public string DiagCode { get; set; } = string.Empty;
  142. [XmlElement("diag_name")]
  143. public string DiagName { get; set; } = string.Empty;
  144. [XmlElement("request_code")]
  145. public string RequestCode { get; set; } = string.Empty;
  146. [XmlElement("requester")]
  147. public string Requester { get; set; } = string.Empty;
  148. [XmlElement("request_dept_code")]
  149. public string RequestDeptCode { get; set; } = string.Empty;
  150. [XmlElement("request_dept_name")]
  151. public string RequestDeptName { get; set; } = string.Empty;
  152. [XmlElement("request_date")]
  153. public string RequestDate { get; set; } = string.Empty;
  154. [XmlElement("ward_code")]
  155. public string WardCode { get; set; } = string.Empty;
  156. [XmlElement("ward_name")]
  157. public string WardName { get; set; } = string.Empty;
  158. [XmlElement("room_no")]
  159. public string RoomNo { get; set; } = string.Empty;
  160. [XmlElement("bed_no")]
  161. public string BedNo { get; set; } = string.Empty;
  162. [XmlElement("dept_code")]
  163. public string DeptCode { get; set; } = string.Empty;
  164. [XmlElement("dept_name")]
  165. public string DeptName { get; set; } = string.Empty;
  166. /// <summary>
  167. /// 是否紧急 0-不紧急 1-紧急
  168. /// </summary>
  169. [XmlElement("is_emergency")]
  170. public string IsEmergency { get; set; } = string.Empty;
  171. [XmlElement("birthday")]
  172. public string Birthday { get; set; } = string.Empty;
  173. [XmlElement("visit_count")]
  174. public string VisitCount { get; set; } = string.Empty;
  175. [XmlElement("maxitem_id")]
  176. public string MaxItemId { get; set; } = string.Empty;
  177. [XmlElement("maxitem_code")]
  178. public string MaxItemCode { get; set; } = string.Empty;
  179. [XmlElement("maxitem_name")]
  180. public string MaxItemName { get; set; } = string.Empty;
  181. /// <summary>
  182. /// 是否收费 0-未收费 1-收费
  183. /// </summary>
  184. [XmlElement("pay_flag")]
  185. public string PayFlag { get; set; } = string.Empty;
  186. /// <summary>
  187. /// 体检价格
  188. /// </summary>
  189. [XmlElement("sum_cost")]
  190. public string SumCost { get; set; } = string.Empty;
  191. [XmlElement("specimen_type_id")]
  192. public string SpecimenTypeId { get; set; } = string.Empty;
  193. [XmlElement("specimen_no")]
  194. public string SpecimenNo { get; set; } = string.Empty;
  195. [XmlElement("specimen_type")]
  196. public string SpecimenType { get; set; } = string.Empty;
  197. /// <summary>
  198. /// 条码号
  199. /// </summary>
  200. [XmlElement("specimen_bar_no")]
  201. public string SpecimenBarNo { get; set; } = string.Empty;
  202. /// <summary>
  203. /// 标本试管颜色
  204. /// </summary>
  205. [XmlElement("speciment_tube_color")]
  206. public string SpecimentTubeColor { get; set; } = string.Empty;
  207. //[XmlElement("speciment_tube_code")]
  208. //public string SpecimentTubeCode { get; set; } = string.Empty;
  209. [XmlElement("specimen_flag")]
  210. public string SpecimenFlag { get; set; } = string.Empty;
  211. [XmlElement("specimen_pixative_name")]
  212. public string SpecimenPixativeName { get; set; } = string.Empty;
  213. [XmlElement("bar_code_build_date")]
  214. public string BarCodeBuildDate { get; set; } = string.Empty;
  215. [XmlElement("exec_dept_code")]
  216. public string ExecDeptCode { get; set; } = string.Empty;
  217. [XmlElement("exec_dept_name")]
  218. public string ExecDeptName { get; set; } = string.Empty;
  219. [XmlElement("cancel_flag")]
  220. public string CancelFlag { get; set; } = string.Empty;
  221. [XmlElement("exec_flag")]
  222. public string ExecFlag { get; set; } = string.Empty;
  223. [XmlElement("sampler_id")]
  224. public string SamplerId { get; set; } = string.Empty;
  225. [XmlElement("sampler")]
  226. public string Sampler { get; set; } = string.Empty;
  227. [XmlElement("sample_date")]
  228. public string SampleDate { get; set; } = string.Empty;
  229. [XmlElement("sender_id")]
  230. public string SenderId { get; set; } = string.Empty;
  231. [XmlElement("sender")]
  232. public string Sender { get; set; } = string.Empty;
  233. [XmlElement("send_date")]
  234. public string SendDate { get; set; } = string.Empty;
  235. [XmlElement("plan_start_date")]
  236. public string PlanStartDate { get; set; } = string.Empty;
  237. [XmlElement("plan_end_date")]
  238. public string PlanEndDate { get; set; } = string.Empty;
  239. [XmlElement("print_flag")]
  240. public string PrintFlag { get; set; } = string.Empty;
  241. [XmlElement("print_count")]
  242. public string PrintCount { get; set; } = string.Empty;
  243. [XmlElement("gc_flag")]
  244. public string GcFlag { get; set; } = string.Empty;
  245. /// <summary>
  246. /// 0.非预约,1.预约
  247. /// </summary>
  248. [XmlElement("appointment_flag")]
  249. public string AppointmentFlag { get; set; } = string.Empty;
  250. [XmlElement("remark")]
  251. public string Remark { get; set; } = string.Empty;
  252. }
  253. /// <summary>
  254. /// 数据部分
  255. /// </summary>
  256. [XmlRoot("data")]
  257. public class LisRequestCallBodyDataDto
  258. {
  259. [XmlElement("request")]
  260. public LisRequestCallBodyDataRequestDto Request { get; set; }
  261. [XmlElement("request_details")]
  262. public LisRequestCallBodyDataDetailsDto RequestDetails { get; set; }
  263. }
  264. /// <summary>
  265. /// 请求体
  266. /// </summary>
  267. [XmlRoot("body")]
  268. public class LisRequestCallBodyDto
  269. {
  270. [XmlElement("data")]
  271. public LisRequestCallBodyDataDto Data { get; set; }
  272. }
  273. /// <summary>
  274. /// 请求头信息
  275. /// </summary>
  276. [XmlRoot("head")]
  277. public class LisRequestCallHeadDto
  278. {
  279. [XmlElement("version")]
  280. public string Version { get; set; }
  281. [XmlElement("timestamp")]
  282. public string Timestamp { get; set; }
  283. [XmlElement("sign")]
  284. public string Sign { get; set; }
  285. [XmlElement("request_id")]
  286. public string RequestId { get; set; }
  287. [XmlElement("source_system")]
  288. public string SourceSystem { get; set; }
  289. /// <summary>
  290. /// lis pacs his
  291. /// </summary>
  292. [XmlElement("object_system")]
  293. public string ObjectSystem { get; set; }
  294. [XmlElement("action")]
  295. public string Action { get; set; }
  296. [XmlElement("code")]
  297. public string Code { get; set; }
  298. }
  299. /// <summary>
  300. /// 完整的请求XML根对象
  301. /// </summary>
  302. [XmlRoot("reqxml")]
  303. public class LisRequestCallDto
  304. {
  305. [XmlElement("head")]
  306. public LisRequestCallHeadDto Head { get; set; }
  307. [XmlElement("body")]
  308. public LisRequestCallBodyDto Body { get; set; }
  309. }
  310. }