GetPatientInfo.cs 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381
  1. using PTMIBase.Entity;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.Data;
  7. using System.Data.Linq.Mapping;
  8. using System.Linq;
  9. using System.Text;
  10. using System.Threading.Tasks;
  11. namespace DongGuanWI.Entity.Outpatient
  12. {
  13. class GetPatientInfoInput: EntityBase
  14. {
  15. /// <summary>
  16. /// 交易号
  17. /// 类型:string, 允许为空:是
  18. /// 备注:标识每笔交易的唯一编号。
  19. /// </summary>
  20. [Column(Name = "function_id", Storage = null, DbType = "VarChar(20)", CanBeNull = false)]
  21. [StringLength(20)]
  22. [DisplayName("交易号")]
  23. [DefaultValue("bizh110001")] // 标记默认值
  24. public string function_id { get; set; }
  25. /// <summary>
  26. /// 参保人所属行政区划代码
  27. /// 类型:string, 允许为空:否
  28. /// 备注:采用GB/T 2260,对异地就医,必须送入此参数;对参保人本地就医,不需送入。
  29. /// </summary>
  30. [Column(Name = "aab301", Storage = null, DbType = "VarChar(6)", CanBeNull = true)]
  31. [Required]
  32. [StringLength(6)]
  33. [DisplayName("参保人所属行政区划代码")]
  34. public string aab301 { get; set; }
  35. /// <summary>
  36. /// 入参类型
  37. /// 类型:string, 允许为空:是
  38. /// 备注:aac001电脑号;aac002社会保障号码;bka100社保卡号。
  39. /// </summary>
  40. [Column(Name = "bka895", Storage = null, DbType = "VarChar(70)", CanBeNull = false)]
  41. [StringLength(70)]
  42. [DisplayName("入参类型")]
  43. public string bka895 { get; set; }
  44. /// <summary>
  45. /// 入参值
  46. /// 类型:string, 允许为空:是
  47. /// 备注:与入参类型对应的值。
  48. /// </summary>
  49. [Column(Name = "bka896", Storage = null, DbType = "VarChar(70)", CanBeNull = false)]
  50. [StringLength(70)]
  51. [DisplayName("入参值")]
  52. public string bka896 { get; set; }
  53. /// <summary>
  54. /// 医疗机构编码
  55. /// 类型:string, 允许为空:是
  56. /// 备注:标识医疗机构的唯一编号。
  57. /// </summary>
  58. [Column(Name = "akb020", Storage = null, DbType = "VarChar(20)", CanBeNull = false)]
  59. [StringLength(20)]
  60. [DisplayName("医疗机构编码")]
  61. public string akb020 { get; set; }
  62. /// <summary>
  63. /// 医疗待遇类型
  64. /// 类型:string, 允许为空:是
  65. /// 备注:见码表。
  66. /// </summary>
  67. [Column(Name = "bka006", Storage = null, DbType = "VarChar(6)", CanBeNull = false)]
  68. [StringLength(6)]
  69. [DisplayName("医疗待遇类型")]
  70. public string bka006 { get; set; }
  71. /// <summary>
  72. /// 就诊时间
  73. /// 类型:string, 允许为空:否
  74. /// 备注:格式:yyyyMMdd。
  75. /// </summary>
  76. [Column(Name = "bka017", Storage = null, DbType = "VarChar(10)", CanBeNull = true)]
  77. [Required]
  78. [StringLength(10)]
  79. [RegularExpression(@"^\d{8}$")]
  80. [DisplayName("就诊时间")]
  81. public string bka017 { get; set; }
  82. }
  83. class GetPatientInfoOutput : EntityBase
  84. {
  85. public List<PersonInfo> personInfo;
  86. public List<FreezeInfo> freezeInfo;
  87. public List<SPInfo> spInfo;
  88. public List<InjuryOrBirthInfo> injuryOrBirthInfo;
  89. }
  90. /// <summary>
  91. /// 个人信息实体类
  92. /// </summary>
  93. public class PersonInfo
  94. {
  95. /// <summary>
  96. /// 个人电脑号
  97. /// 类型:string, 长度:20
  98. /// </summary>
  99. [Column(Name = "aac001", Storage = null, DbType = "VarChar(20)", CanBeNull = true)]
  100. [StringLength(20)]
  101. [DisplayName("个人电脑号")]
  102. public string aac001 { get; set; }
  103. /// <summary>
  104. /// 姓名
  105. /// 类型:string, 长度:20
  106. /// </summary>
  107. [Column(Name = "aac003", Storage = null, DbType = "VarChar(20)", CanBeNull = true)]
  108. [StringLength(20)]
  109. [DisplayName("姓名")]
  110. public string aac003 { get; set; }
  111. /// <summary>
  112. /// 性别
  113. /// 类型:string, 长度:1
  114. /// 备注:"2"——"女";"1"——"男"
  115. /// </summary>
  116. [Column(Name = "aac004", Storage = null, DbType = "VarChar(1)", CanBeNull = true)]
  117. [StringLength(1)]
  118. [DisplayName("性别")]
  119. public string aac004 { get; set; }
  120. /// <summary>
  121. /// 人员类别
  122. /// 类型:string, 长度:10
  123. /// </summary>
  124. [Column(Name = "bka004", Storage = null, DbType = "VarChar(10)", CanBeNull = true)]
  125. [StringLength(10)]
  126. [DisplayName("人员类别")]
  127. public string bka004 { get; set; }
  128. /// <summary>
  129. /// 用工形式
  130. /// 类型:string, 长度:10
  131. /// 备注:见码表
  132. /// </summary>
  133. [Column(Name = "aac013", Storage = null, DbType = "VarChar(10)", CanBeNull = true)]
  134. [StringLength(10)]
  135. [DisplayName("用工形式")]
  136. public string aac013 { get; set; }
  137. /// <summary>
  138. /// 行政职务级别
  139. /// 类型:string, 长度:3
  140. /// </summary>
  141. [Column(Name = "bka005", Storage = null, DbType = "VarChar(3)", CanBeNull = true)]
  142. [StringLength(3)]
  143. [DisplayName("行政职务级别")]
  144. public string bka005 { get; set; }
  145. /// <summary>
  146. /// 社会保障号码
  147. /// 类型:string, 长度:25
  148. /// </summary>
  149. [Column(Name = "aac002", Storage = null, DbType = "VarChar(25)", CanBeNull = true)]
  150. [StringLength(25)]
  151. [DisplayName("社会保障号码")]
  152. public string aac002 { get; set; }
  153. /// <summary>
  154. /// 联系电话
  155. /// 类型:string, 长度:25
  156. /// </summary>
  157. [Column(Name = "aae005", Storage = null, DbType = "VarChar(25)", CanBeNull = true)]
  158. [StringLength(25)]
  159. [DisplayName("联系电话")]
  160. public string aae005 { get; set; }
  161. /// <summary>
  162. /// 出生日期
  163. /// 类型:string, 长度:10
  164. /// 备注:格式:yyyyMMdd
  165. /// </summary>
  166. [Column(Name = "aac006", Storage = null, DbType = "VarChar(10)", CanBeNull = true)]
  167. [StringLength(10)]
  168. [RegularExpression(@"^\d{8}$")]
  169. [DisplayName("出生日期")]
  170. public string aac006 { get; set; }
  171. /// <summary>
  172. /// 地区编码
  173. /// 类型:string, 长度:10
  174. /// </summary>
  175. [Column(Name = "baa027", Storage = null, DbType = "VarChar(10)", CanBeNull = true)]
  176. [StringLength(10)]
  177. [DisplayName("地区编码")]
  178. public string baa027 { get; set; }
  179. /// <summary>
  180. /// 单位编码
  181. /// 类型:string, 长度:20
  182. /// </summary>
  183. [Column(Name = "aab001", Storage = null, DbType = "VarChar(20)", CanBeNull = true)]
  184. [StringLength(20)]
  185. [DisplayName("单位编码")]
  186. public string aab001 { get; set; }
  187. /// <summary>
  188. /// 单位名称
  189. /// 类型:string, 长度:50
  190. /// </summary>
  191. [Column(Name = "bka008", Storage = null, DbType = "VarChar(50)", CanBeNull = true)]
  192. [StringLength(50)]
  193. [DisplayName("单位名称")]
  194. public string bka008 { get; set; }
  195. /// <summary>
  196. /// 险种类型
  197. /// 类型:string, 长度:10
  198. /// </summary>
  199. [Column(Name = "aae140", Storage = null, DbType = "VarChar(10)", CanBeNull = true)]
  200. [StringLength(10)]
  201. [DisplayName("险种类型")]
  202. public string aae140 { get; set; }
  203. }
  204. /// <summary>
  205. /// 基金状态信息实体类
  206. /// </summary>
  207. public class FreezeInfo
  208. {
  209. /// <summary>
  210. /// 基金款项代码
  211. /// 类型:string, 长度:3
  212. /// </summary>
  213. [Column(Name = "aaa157", Storage = null, DbType = "VarChar(3)", CanBeNull = true)]
  214. [StringLength(3)]
  215. [DisplayName("基金款项代码")]
  216. public string aaa157 { get; set; }
  217. /// <summary>
  218. /// 基金名称
  219. /// 类型:string, 长度:30
  220. /// </summary>
  221. [Column(Name = "aad006", Storage = null, DbType = "VarChar(30)", CanBeNull = true)]
  222. [StringLength(30)]
  223. [DisplayName("基金名称")]
  224. public string aad006 { get; set; }
  225. /// <summary>
  226. /// 基金状态标志
  227. /// 类型:string, 长度:1
  228. /// 备注:"0"——"正常"; "1"——"冻结"; "2"——"暂停参保"; "3"——"中止参保"; "9" —— "未参保"
  229. /// </summary>
  230. [Column(Name = "aac031", Storage = null, DbType = "VarChar(1)", CanBeNull = true)]
  231. [StringLength(1)]
  232. [DisplayName("基金状态标志")]
  233. public string aac031 { get; set; }
  234. }
  235. /// <summary>
  236. /// 待遇申请信息 - 特殊处理信息
  237. /// </summary>
  238. public class SPInfo
  239. {
  240. /// <summary>
  241. /// 待遇类型
  242. /// 类型:string, 长度:6
  243. /// 备注:见码表
  244. /// </summary>
  245. [Column(Name = "bka006", Storage = null, DbType = "VarChar(6)", CanBeNull = true)]
  246. [StringLength(6)]
  247. [DisplayName("待遇类型")]
  248. public string bka006 { get; set; }
  249. /// <summary>
  250. /// 待遇类型名称
  251. /// 类型:string, 长度:50
  252. /// </summary>
  253. [Column(Name = "bka345", Storage = null, DbType = "VarChar(50)", CanBeNull = true)]
  254. [StringLength(50)]
  255. [DisplayName("待遇类型名称")]
  256. public string bka345 { get; set; }
  257. /// <summary>
  258. /// 业务类型
  259. /// 类型:string, 长度:2
  260. /// 备注:见码表
  261. /// </summary>
  262. [Column(Name = "aka130", Storage = null, DbType = "VarChar(2)", CanBeNull = true)]
  263. [StringLength(2)]
  264. [DisplayName("业务类型")]
  265. public string aka130 { get; set; }
  266. /// <summary>
  267. /// 疾病编码
  268. /// 类型:string, 长度:20
  269. /// </summary>
  270. [Column(Name = "bka026", Storage = null, DbType = "VarChar(20)", CanBeNull = true)]
  271. [StringLength(20)]
  272. [DisplayName("疾病编码")]
  273. public string bka026 { get; set; }
  274. /// <summary>
  275. /// 疾病名称
  276. /// 类型:string, 长度:60
  277. /// </summary>
  278. [Column(Name = "aka121", Storage = null, DbType = "VarChar(60)", CanBeNull = true)]
  279. [StringLength(60)]
  280. [DisplayName("疾病名称")]
  281. public string aka121 { get; set; }
  282. /// <summary>
  283. /// 申请生效时间
  284. /// 类型:string, 长度:10
  285. /// 备注:格式:yyyyMMdd
  286. /// </summary>
  287. [Column(Name = "aae030", Storage = null, DbType = "VarChar(10)", CanBeNull = true)]
  288. [StringLength(10)]
  289. [RegularExpression(@"^\d{8}$")]
  290. [DisplayName("申请生效时间")]
  291. public string aae030 { get; set; }
  292. /// <summary>
  293. /// 申请到期时间
  294. /// 类型:string, 长度:10
  295. /// 备注:格式:yyyyMMdd
  296. /// </summary>
  297. [Column(Name = "aae031", Storage = null, DbType = "VarChar(10)", CanBeNull = true)]
  298. [StringLength(10)]
  299. [RegularExpression(@"^\d{8}$")]
  300. [DisplayName("申请到期时间")]
  301. public string aae031 { get; set; }
  302. }
  303. /// <summary>
  304. /// 工伤申请信息
  305. /// </summary>
  306. public class InjuryOrBirthInfo
  307. {
  308. /// <summary>
  309. /// 工伤凭证号
  310. /// 类型:string, 长度:20
  311. /// </summary>
  312. [Column(Name = "bka042", Storage = null, DbType = "VarChar(20)", CanBeNull = true)]
  313. [StringLength(20)]
  314. [DisplayName("工伤凭证号")]
  315. public string bka042 { get; set; }
  316. /// <summary>
  317. /// 申请生效时间
  318. /// 类型:string, 长度:10
  319. /// 备注:格式:yyyyMMdd
  320. /// </summary>
  321. [Column(Name = "aae030", Storage = null, DbType = "VarChar(10)", CanBeNull = true)]
  322. [StringLength(10)]
  323. [RegularExpression(@"^\d{8}$")]
  324. [DisplayName("申请生效时间")]
  325. public string aae030 { get; set; }
  326. /// <summary>
  327. /// 申请到期时间
  328. /// 类型:string, 长度:10
  329. /// 备注:格式:yyyyMMdd
  330. /// </summary>
  331. [Column(Name = "aae031", Storage = null, DbType = "VarChar(10)", CanBeNull = true)]
  332. [StringLength(10)]
  333. [RegularExpression(@"^\d{8}$")]
  334. [DisplayName("申请到期时间")]
  335. public string aae031 { get; set; }
  336. /// <summary>
  337. /// 工伤认定书编号
  338. /// 类型:string, 长度:1000
  339. /// </summary>
  340. [Column(Name = "Alc011", Storage = null, DbType = "VarChar(1000)", CanBeNull = true)]
  341. [StringLength(1000)]
  342. [DisplayName("工伤认定书编号")]
  343. public string Alc011 { get; set; }
  344. }
  345. }