BS_PreInProcess_ViolationLog.cls 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. /// 事前事中分析-违规记录宽表
  2. /// 用于导出和查询违规数据(覆盖3101/3102/3103交易)
  3. Class User.BSPreInProcessViolLog Extends (%Persistent, %XML.Adaptor, src.util.DynamicObject.Adapter) [ ClassType = persistent, Inheritance = right, Not ProcedureBlock, SqlRowIdName = ID, SqlTableName = BS_PreInProcess_ViolationLog ]
  4. {
  5. /// 任务标识(关联一次分析请求,非唯一)
  6. Property TaskID As %String(MAXLEN = 50);
  7. /// 交易代码 3101/3102
  8. Property TradeCode As %String(MAXLEN = 10);
  9. /// 触发场景
  10. Property TriggerScene As %String(MAXLEN = 10);
  11. /// 报文ID
  12. Property MsgID As %String(MAXLEN = 50);
  13. /// 反馈类型 1=事前 2=事中
  14. Property WarnType As %String(MAXLEN = 6);
  15. /// 违规标识(业务唯一键,对应3101/3102的jr_id和3103的warn_rslt_id)
  16. Property JrID As %String(MAXLEN = 50) [ Required ];
  17. /// 规则ID
  18. Property RuleID As %String(MAXLEN = 50);
  19. /// 规则名称
  20. Property RuleName As %String(MAXLEN = 200);
  21. /// 违规内容
  22. Property VolaCont As %String(MAXLEN = 500);
  23. /// 违规金额
  24. Property VolaAmt As %Numeric;
  25. /// 严重程度(限制类型)
  26. Property SevDeg As %String(MAXLEN = 3);
  27. /// 违规行为分类
  28. Property VolaBhvrType As %String(MAXLEN = 3);
  29. /// 参保人标识
  30. Property PatnID As %String(MAXLEN = 50);
  31. /// 参保人姓名
  32. Property PatnName As %String(MAXLEN = 50);
  33. /// 性别
  34. Property Gend As %String(MAXLEN = 3);
  35. /// 出生日期
  36. Property Brdy As %Date;
  37. /// 就诊标识
  38. Property MdtrtID As %String(MAXLEN = 30);
  39. /// 科室名称
  40. Property DeptName As %String(MAXLEN = 50);
  41. /// 医疗类别编码
  42. Property MedType As %String(MAXLEN = 6);
  43. /// 业务分类名称(门诊/住院)
  44. Property MedTypeName As %String(MAXLEN = 20);
  45. /// 项目编码
  46. Property ItemCode As %String(MAXLEN = 50);
  47. /// 项目名称
  48. Property ItemName As %String(MAXLEN = 200);
  49. /// 数量
  50. Property Cnt As %Numeric;
  51. /// 单价
  52. Property Pric As %Numeric;
  53. /// 总费用
  54. Property Sumamt As %Numeric;
  55. /// 操作员编码
  56. Property OpterCode As %String(MAXLEN = 30);
  57. /// 操作员姓名
  58. Property OpterName As %String(MAXLEN = 50);
  59. /// 交易日期
  60. Property InfDate As %Date;
  61. /// 交易时间
  62. Property InfTime As %Time;
  63. /// 处理方式 1=继续执行 2=返回修改
  64. Property DspoWay As %String(MAXLEN = 3);
  65. /// 处理原因
  66. Property DspoWayRea As %String(MAXLEN = 500);
  67. /// 反馈日期
  68. Property FeedbackDate As %Date;
  69. /// 反馈时间
  70. Property FeedbackTime As %Time;
  71. /// 创建日期
  72. Property CreateDate As %Date [ InitialExpression = {$zdateh($horolog, 5)} ];
  73. /// 创建时间
  74. Property CreateTime As %Time [ InitialExpression = {$piece($horolog, ",", 2)} ];
  75. /// 删除标记 0:正常 1:已删除
  76. Property Deleted As %Integer [ Required, InitialExpression = 0 ];
  77. /// 医保接口Dr
  78. Property InterfaceDr As HBMedInsuInterface [ SqlColumnNumber = 4, SqlFieldName = Interface_Dr ];
  79. Index TaskIDIndex On TaskID As Exact;
  80. Index MsgIDIndex On MsgID As Exact;
  81. Index JrIDIndex On JrID As Exact [ Unique ];
  82. Index PatnIDIndex On PatnID As Exact;
  83. Index InfDateIndex On InfDate As Exact;
  84. Index RuleIDIndex On RuleID As Exact;
  85. Index WarnTypeIndex On WarnType As Exact;
  86. Index SevDegIndex On SevDeg As Exact;
  87. Index DspoWayIndex On DspoWay As Exact;
  88. Index DeptNameIndex On DeptName As Exact;
  89. Index DeletedIndex On Deleted As Exact;
  90. Index InterfaceDrIndex On InterfaceDr As Exact;
  91. Storage Default
  92. {
  93. <Data name="BSPreInProcessViolLogDefaultData">
  94. <Value name="1">
  95. <Value>%%CLASSNAME</Value>
  96. </Value>
  97. <Value name="2">
  98. <Value>TaskID</Value>
  99. </Value>
  100. <Value name="3">
  101. <Value>TradeCode</Value>
  102. </Value>
  103. <Value name="4">
  104. <Value>TriggerScene</Value>
  105. </Value>
  106. <Value name="5">
  107. <Value>MsgID</Value>
  108. </Value>
  109. <Value name="6">
  110. <Value>WarnType</Value>
  111. </Value>
  112. <Value name="7">
  113. <Value>JrID</Value>
  114. </Value>
  115. <Value name="8">
  116. <Value>RuleID</Value>
  117. </Value>
  118. <Value name="9">
  119. <Value>RuleName</Value>
  120. </Value>
  121. <Value name="10">
  122. <Value>VolaCont</Value>
  123. </Value>
  124. <Value name="11">
  125. <Value>VolaAmt</Value>
  126. </Value>
  127. <Value name="12">
  128. <Value>SevDeg</Value>
  129. </Value>
  130. <Value name="13">
  131. <Value>VolaBhvrType</Value>
  132. </Value>
  133. <Value name="14">
  134. <Value>PatnID</Value>
  135. </Value>
  136. <Value name="15">
  137. <Value>PatnName</Value>
  138. </Value>
  139. <Value name="16">
  140. <Value>Gend</Value>
  141. </Value>
  142. <Value name="17">
  143. <Value>Brdy</Value>
  144. </Value>
  145. <Value name="18">
  146. <Value>MdtrtID</Value>
  147. </Value>
  148. <Value name="19">
  149. <Value>DeptName</Value>
  150. </Value>
  151. <Value name="20">
  152. <Value>MedType</Value>
  153. </Value>
  154. <Value name="21">
  155. <Value>MedTypeName</Value>
  156. </Value>
  157. <Value name="22">
  158. <Value>ItemCode</Value>
  159. </Value>
  160. <Value name="23">
  161. <Value>ItemName</Value>
  162. </Value>
  163. <Value name="24">
  164. <Value>Cnt</Value>
  165. </Value>
  166. <Value name="25">
  167. <Value>Pric</Value>
  168. </Value>
  169. <Value name="26">
  170. <Value>Sumamt</Value>
  171. </Value>
  172. <Value name="27">
  173. <Value>OpterCode</Value>
  174. </Value>
  175. <Value name="28">
  176. <Value>OpterName</Value>
  177. </Value>
  178. <Value name="29">
  179. <Value>InfDate</Value>
  180. </Value>
  181. <Value name="30">
  182. <Value>InfTime</Value>
  183. </Value>
  184. <Value name="31">
  185. <Value>DspoWay</Value>
  186. </Value>
  187. <Value name="32">
  188. <Value>DspoWayRea</Value>
  189. </Value>
  190. <Value name="33">
  191. <Value>FeedbackDate</Value>
  192. </Value>
  193. <Value name="34">
  194. <Value>FeedbackTime</Value>
  195. </Value>
  196. <Value name="35">
  197. <Value>CreateDate</Value>
  198. </Value>
  199. <Value name="36">
  200. <Value>CreateTime</Value>
  201. </Value>
  202. <Value name="37">
  203. <Value>Deleted</Value>
  204. </Value>
  205. <Value name="38">
  206. <Value>InterfaceDr</Value>
  207. </Value>
  208. </Data>
  209. <DataLocation>^BSPreInProcessViolLogD</DataLocation>
  210. <DefaultData>BSPreInProcessViolLogDefaultData</DefaultData>
  211. <IdLocation>^BSPreInProcessViolLogD</IdLocation>
  212. <IndexLocation>^BSPreInProcessViolLogI</IndexLocation>
  213. <StreamLocation>^BSPreInProcessViolLogS</StreamLocation>
  214. <Type>%Storage.Persistent</Type>
  215. }
  216. }