BS_PreInProcessAnalysis_Tables.cls 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083
  1. /// 事前事中分析-请求主表
  2. /// 记录每次3101/3102交易的顶层信息
  3. Class User.BSPreInProcessAnalysis Extends (%Persistent, %XML.Adaptor, src.util.DynamicObject.Adapter) [ ClassType = persistent, Inheritance = right, Not ProcedureBlock, SqlRowIdName = ID, SqlTableName = BS_PreInProcessAnalysis ]
  4. {
  5. /// 交易代码 3101/3102
  6. Property TradeCode As %String(MAXLEN = 10) [ Required ];
  7. /// 交易名称
  8. Property TradeName As %String(MAXLEN = 50);
  9. /// 触发场景
  10. Property TriggerScene As %String(MAXLEN = 10);
  11. /// 报文ID
  12. Property MsgID As %String(MAXLEN = 50);
  13. /// 参保地行政区划
  14. Property InsuplcAdmdvs As %String(MAXLEN = 10);
  15. /// 定点机构编码
  16. Property FixmedinsCode As %String(MAXLEN = 30);
  17. /// 定点机构名称
  18. Property FixmedinsName As %String(MAXLEN = 200);
  19. /// 操作员编码
  20. Property OpterCode As %String(MAXLEN = 30);
  21. /// 操作员姓名
  22. Property OpterName As %String(MAXLEN = 50);
  23. /// 交易日期
  24. Property InfDate As %Date;
  25. /// 交易时间
  26. Property InfTime As %Time;
  27. /// 任务ID(唯一标识一次分析)
  28. Property TaskID As %String(MAXLEN = 50) [ Required ];
  29. /// 创建日期
  30. Property CreateDate As %Date [ InitialExpression = {$zdateh($horolog, 5)} ];
  31. /// 创建时间
  32. Property CreateTime As %Time [ InitialExpression = {$piece($horolog, ",", 2)} ];
  33. /// 删除标记 0:正常 1:已删除
  34. Property Deleted As %Integer [ Required, InitialExpression = 0 ];
  35. /// 删除日期
  36. Property DeleteDate As %Date;
  37. /// 删除时间
  38. Property DeleteTime As %Time;
  39. Index TaskIDIndex On TaskID As Exact;
  40. Index TradeCodeIndex On TradeCode As Exact;
  41. Index InfDateIndex On InfDate As Exact;
  42. Index FixmedinsCodeIndex On FixmedinsCode As Exact;
  43. Index DeletedIndex On Deleted As Exact;
  44. Storage Default
  45. {
  46. <Data name="BSPreInProcessAnalysisDefaultData">
  47. <Value name="1">
  48. <Value>%%CLASSNAME</Value>
  49. </Value>
  50. <Value name="2">
  51. <Value>TradeCode</Value>
  52. </Value>
  53. <Value name="3">
  54. <Value>TradeName</Value>
  55. </Value>
  56. <Value name="4">
  57. <Value>TriggerScene</Value>
  58. </Value>
  59. <Value name="5">
  60. <Value>MsgID</Value>
  61. </Value>
  62. <Value name="6">
  63. <Value>InsuplcAdmdvs</Value>
  64. </Value>
  65. <Value name="7">
  66. <Value>FixmedinsCode</Value>
  67. </Value>
  68. <Value name="8">
  69. <Value>FixmedinsName</Value>
  70. </Value>
  71. <Value name="9">
  72. <Value>OpterCode</Value>
  73. </Value>
  74. <Value name="10">
  75. <Value>OpterName</Value>
  76. </Value>
  77. <Value name="11">
  78. <Value>InfDate</Value>
  79. </Value>
  80. <Value name="12">
  81. <Value>InfTime</Value>
  82. </Value>
  83. <Value name="13">
  84. <Value>TaskID</Value>
  85. </Value>
  86. <Value name="14">
  87. <Value>CreateDate</Value>
  88. </Value>
  89. <Value name="15">
  90. <Value>CreateTime</Value>
  91. </Value>
  92. <Value name="16">
  93. <Value>Deleted</Value>
  94. </Value>
  95. <Value name="17">
  96. <Value>DeleteDate</Value>
  97. </Value>
  98. <Value name="18">
  99. <Value>DeleteTime</Value>
  100. </Value>
  101. </Data>
  102. <DataLocation>^BSPreInProcessAnalysisD</DataLocation>
  103. <DefaultData>BSPreInProcessAnalysisDefaultData</DefaultData>
  104. <IdLocation>^BSPreInProcessAnalysisD</IdLocation>
  105. <IndexLocation>^BSPreInProcessAnalysisI</IndexLocation>
  106. <StreamLocation>^BSPreInProcessAnalysisS</StreamLocation>
  107. <Type>%Storage.Persistent</Type>
  108. }
  109. }
  110. /// 事前事中分析-参保人信息表
  111. Class User.BSPreInProcessPatient Extends (%Persistent, %XML.Adaptor, src.util.DynamicObject.Adapter) [ ClassType = persistent, Inheritance = right, Not ProcedureBlock, SqlRowIdName = ID, SqlTableName = BS_PreInProcessPatient ]
  112. {
  113. /// 关联分析主表
  114. Property AnalysisDr As User.BSPreInProcessAnalysis [ Required ];
  115. /// 参保人标识
  116. Property PatnID As %String(MAXLEN = 30) [ Required ];
  117. /// 姓名
  118. Property PatnName As %String(MAXLEN = 50);
  119. /// 性别
  120. Property Gend As %String(MAXLEN = 3);
  121. /// 出生日期
  122. Property Brdy As %Date;
  123. /// 统筹区编码
  124. Property Poolarea As %String(MAXLEN = 10);
  125. /// 当前就诊标识
  126. Property CurrMdtrtID As %String(MAXLEN = 30);
  127. /// 删除标记
  128. Property Deleted As %Integer [ Required, InitialExpression = 0 ];
  129. Index AnalysisDrIndex On AnalysisDr As Exact;
  130. Index PatnIDIndex On PatnID As Exact;
  131. Index DeletedIndex On Deleted As Exact;
  132. Storage Default
  133. {
  134. <Data name="BSPreInProcessPatientDefaultData">
  135. <Value name="1">
  136. <Value>%%CLASSNAME</Value>
  137. </Value>
  138. <Value name="2">
  139. <Value>AnalysisDr</Value>
  140. </Value>
  141. <Value name="3">
  142. <Value>PatnID</Value>
  143. </Value>
  144. <Value name="4">
  145. <Value>PatnName</Value>
  146. </Value>
  147. <Value name="5">
  148. <Value>Gend</Value>
  149. </Value>
  150. <Value name="6">
  151. <Value>Brdy</Value>
  152. </Value>
  153. <Value name="7">
  154. <Value>Poolarea</Value>
  155. </Value>
  156. <Value name="8">
  157. <Value>CurrMdtrtID</Value>
  158. </Value>
  159. <Value name="9">
  160. <Value>Deleted</Value>
  161. </Value>
  162. </Data>
  163. <DataLocation>^BSPreInProcessPatientD</DataLocation>
  164. <DefaultData>BSPreInProcessPatientDefaultData</DefaultData>
  165. <IdLocation>^BSPreInProcessPatientD</IdLocation>
  166. <IndexLocation>^BSPreInProcessPatientI</IndexLocation>
  167. <StreamLocation>^BSPreInProcessPatientS</StreamLocation>
  168. <Type>%Storage.Persistent</Type>
  169. }
  170. }
  171. /// 事前事中分析-就诊信息表
  172. Class User.BSPreInProcessEncounter Extends (%Persistent, %XML.Adaptor, src.util.DynamicObject.Adapter) [ ClassType = persistent, Inheritance = right, Not ProcedureBlock, SqlRowIdName = ID, SqlTableName = BS_PreInProcessEncounter ]
  173. {
  174. /// 关联参保人表
  175. Property PatientDr As User.BSPreInProcessPatient [ Required ];
  176. /// 就诊标识
  177. Property MdtrtID As %String(MAXLEN = 30) [ Required ];
  178. /// 医疗机构标识
  179. Property MedinsID As %String(MAXLEN = 30);
  180. /// 医疗机构名称
  181. Property MedinsName As %String(MAXLEN = 200);
  182. /// 病区标识
  183. Property WardareaCodg As %String(MAXLEN = 30);
  184. /// 病房号
  185. Property Wardno As %String(MAXLEN = 10);
  186. /// 病床号
  187. Property Bedno As %String(MAXLEN = 30);
  188. /// 入院日期
  189. Property AdmDate As %Date;
  190. /// 入院时间
  191. Property AdmTime As %Time;
  192. /// 出院日期
  193. Property DscgDate As %Date;
  194. /// 出院时间
  195. Property DscgTime As %Time;
  196. /// 主诊断编码
  197. Property DscgMainDiseCodg As %String(MAXLEN = 30);
  198. /// 主诊断名称
  199. Property DscgMainDiseName As %String(MAXLEN = 200);
  200. /// 医师标识
  201. Property DrCodg As %String(MAXLEN = 30);
  202. /// 入院科室名称
  203. Property AdmDeptName As %String(MAXLEN = 50);
  204. /// 出院科室名称
  205. Property DscgDeptName As %String(MAXLEN = 50);
  206. /// 就诊类型
  207. Property MedMdtrtType As %String(MAXLEN = 3);
  208. /// 医疗类别
  209. Property MedType As %String(MAXLEN = 6);
  210. /// 生育状态
  211. Property MatnStas As %String(MAXLEN = 3);
  212. /// 总费用
  213. Property MedfeeSumamt As %Numeric;
  214. /// 自费金额
  215. Property OwnpayAmt As %Numeric;
  216. /// 自付金额
  217. Property SelfpayAmt As %Numeric;
  218. /// 个人账户支付金额
  219. Property AcctPayamt As %Numeric;
  220. /// 救助金支付金额
  221. Property MaAmt As %Numeric;
  222. /// 统筹金支付金额
  223. Property HifpPayamt As %Numeric;
  224. /// 结算总次数
  225. Property SetlTotlnum As %Integer;
  226. /// 险种
  227. Property Insutype As %String(MAXLEN = 3);
  228. /// 报销标志
  229. Property ReimFlag As %String(MAXLEN = 3);
  230. /// 异地结算标志
  231. Property OutSetlFlag As %String(MAXLEN = 3);
  232. /// 删除标记
  233. Property Deleted As %Integer [ Required, InitialExpression = 0 ];
  234. Index PatientDrIndex On PatientDr As Exact;
  235. Index MdtrtIDIndex On MdtrtID As Exact;
  236. Index DeletedIndex On Deleted As Exact;
  237. Storage Default
  238. {
  239. <Data name="BSPreInProcessEncounterDefaultData">
  240. <Value name="1">
  241. <Value>%%CLASSNAME</Value>
  242. </Value>
  243. <Value name="2">
  244. <Value>PatientDr</Value>
  245. </Value>
  246. <Value name="3">
  247. <Value>MdtrtID</Value>
  248. </Value>
  249. <Value name="4">
  250. <Value>MedinsID</Value>
  251. </Value>
  252. <Value name="5">
  253. <Value>MedinsName</Value>
  254. </Value>
  255. <Value name="6">
  256. <Value>WardareaCodg</Value>
  257. </Value>
  258. <Value name="7">
  259. <Value>Wardno</Value>
  260. </Value>
  261. <Value name="8">
  262. <Value>Bedno</Value>
  263. </Value>
  264. <Value name="9">
  265. <Value>AdmDate</Value>
  266. </Value>
  267. <Value name="10">
  268. <Value>AdmTime</Value>
  269. </Value>
  270. <Value name="11">
  271. <Value>DscgDate</Value>
  272. </Value>
  273. <Value name="12">
  274. <Value>DscgTime</Value>
  275. </Value>
  276. <Value name="13">
  277. <Value>DscgMainDiseCodg</Value>
  278. </Value>
  279. <Value name="14">
  280. <Value>DscgMainDiseName</Value>
  281. </Value>
  282. <Value name="15">
  283. <Value>DrCodg</Value>
  284. </Value>
  285. <Value name="16">
  286. <Value>AdmDeptName</Value>
  287. </Value>
  288. <Value name="17">
  289. <Value>DscgDeptName</Value>
  290. </Value>
  291. <Value name="18">
  292. <Value>MedMdtrtType</Value>
  293. </Value>
  294. <Value name="19">
  295. <Value>MedType</Value>
  296. </Value>
  297. <Value name="20">
  298. <Value>MatnStas</Value>
  299. </Value>
  300. <Value name="21">
  301. <Value>MedfeeSumamt</Value>
  302. </Value>
  303. <Value name="22">
  304. <Value>OwnpayAmt</Value>
  305. </Value>
  306. <Value name="23">
  307. <Value>SelfpayAmt</Value>
  308. </Value>
  309. <Value name="24">
  310. <Value>AcctPayamt</Value>
  311. </Value>
  312. <Value name="25">
  313. <Value>MaAmt</Value>
  314. </Value>
  315. <Value name="26">
  316. <Value>HifpPayamt</Value>
  317. </Value>
  318. <Value name="27">
  319. <Value>SetlTotlnum</Value>
  320. </Value>
  321. <Value name="28">
  322. <Value>Insutype</Value>
  323. </Value>
  324. <Value name="29">
  325. <Value>ReimFlag</Value>
  326. </Value>
  327. <Value name="30">
  328. <Value>OutSetlFlag</Value>
  329. </Value>
  330. <Value name="31">
  331. <Value>Deleted</Value>
  332. </Value>
  333. </Data>
  334. <DataLocation>^BSPreInProcessEncounterD</DataLocation>
  335. <DefaultData>BSPreInProcessEncounterDefaultData</DefaultData>
  336. <IdLocation>^BSPreInProcessEncounterD</IdLocation>
  337. <IndexLocation>^BSPreInProcessEncounterI</IndexLocation>
  338. <StreamLocation>^BSPreInProcessEncounterS</StreamLocation>
  339. <Type>%Storage.Persistent</Type>
  340. }
  341. }
  342. /// 事前事中分析-诊断信息表
  343. Class User.BSPreInProcessDiagnose Extends (%Persistent, %XML.Adaptor, src.util.DynamicObject.Adapter) [ ClassType = persistent, Inheritance = right, Not ProcedureBlock, SqlRowIdName = ID, SqlTableName = BS_PreInProcessDiagnose ]
  344. {
  345. /// 关联就诊表
  346. Property EncounterDr As User.BSPreInProcessEncounter [ Required ];
  347. /// 诊断标识
  348. Property DiseID As %String(MAXLEN = 30) [ Required ];
  349. /// 出入诊断类别
  350. Property InoutDiseType As %String(MAXLEN = 6);
  351. /// 主诊断标志
  352. Property MaindiseFlag As %String(MAXLEN = 3);
  353. /// 诊断排序号
  354. Property DiasSrtNo As %Integer;
  355. /// 诊断编码
  356. Property DiseCodg As %String(MAXLEN = 20);
  357. /// 诊断名称
  358. Property DiseName As %String(MAXLEN = 200);
  359. /// 诊断日期
  360. Property DiseDate As %Date;
  361. /// 诊断时间
  362. Property DiseTime As %Time;
  363. /// 删除标记
  364. Property Deleted As %Integer [ Required, InitialExpression = 0 ];
  365. Index EncounterDrIndex On EncounterDr As Exact;
  366. Index DiseIDIndex On DiseID As Exact;
  367. Index DeletedIndex On Deleted As Exact;
  368. Storage Default
  369. {
  370. <Data name="BSPreInProcessDiagnoseDefaultData">
  371. <Value name="1">
  372. <Value>%%CLASSNAME</Value>
  373. </Value>
  374. <Value name="2">
  375. <Value>EncounterDr</Value>
  376. </Value>
  377. <Value name="3">
  378. <Value>DiseID</Value>
  379. </Value>
  380. <Value name="4">
  381. <Value>InoutDiseType</Value>
  382. </Value>
  383. <Value name="5">
  384. <Value>MaindiseFlag</Value>
  385. </Value>
  386. <Value name="6">
  387. <Value>DiasSrtNo</Value>
  388. </Value>
  389. <Value name="7">
  390. <Value>DiseCodg</Value>
  391. </Value>
  392. <Value name="8">
  393. <Value>DiseName</Value>
  394. </Value>
  395. <Value name="9">
  396. <Value>DiseDate</Value>
  397. </Value>
  398. <Value name="10">
  399. <Value>DiseTime</Value>
  400. </Value>
  401. <Value name="11">
  402. <Value>Deleted</Value>
  403. </Value>
  404. </Data>
  405. <DataLocation>^BSPreInProcessDiagnoseD</DataLocation>
  406. <DefaultData>BSPreInProcessDiagnoseDefaultData</DefaultData>
  407. <IdLocation>^BSPreInProcessDiagnoseD</IdLocation>
  408. <IndexLocation>^BSPreInProcessDiagnoseI</IndexLocation>
  409. <StreamLocation>^BSPreInProcessDiagnoseS</StreamLocation>
  410. <Type>%Storage.Persistent</Type>
  411. }
  412. }
  413. /// 事前事中分析-处方/医嘱信息表
  414. Class User.BSPreInProcessOrder Extends (%Persistent, %XML.Adaptor, src.util.DynamicObject.Adapter) [ ClassType = persistent, Inheritance = right, Not ProcedureBlock, SqlRowIdName = ID, SqlTableName = BS_PreInProcessOrder ]
  415. {
  416. /// 关联就诊表
  417. Property EncounterDr As User.BSPreInProcessEncounter [ Required ];
  418. /// 处方标识
  419. Property RxID As %String(MAXLEN = 30) [ Required ];
  420. /// 处方号
  421. Property Rxno As %String(MAXLEN = 30);
  422. /// 组编号
  423. Property Grpno As %String(MAXLEN = 50);
  424. /// 长期医嘱标志
  425. Property LongDrordFlag As %String(MAXLEN = 3);
  426. /// 目录类别
  427. Property HilistType As %String(MAXLEN = 3);
  428. /// 收费类别
  429. Property ChrgType As %String(MAXLEN = 6);
  430. /// 医嘱行为
  431. Property DrordBhvr As %String(MAXLEN = 3);
  432. /// 医保目录代码
  433. Property HilistCode As %String(MAXLEN = 50);
  434. /// 医保目录名称
  435. Property HilistName As %String(MAXLEN = 50);
  436. /// 医保目录等级
  437. Property HilistLv As %String(MAXLEN = 3);
  438. /// 医保目录价格
  439. Property HilistPric As %Numeric;
  440. /// 医院目录代码
  441. Property HosplistCode As %String(MAXLEN = 50);
  442. /// 医院目录名称
  443. Property HosplistName As %String(MAXLEN = 50);
  444. /// 数量
  445. Property Cnt As %Numeric;
  446. /// 单价
  447. Property Pric As %Numeric;
  448. /// 总费用
  449. Property Sumamt As %Numeric;
  450. /// 自费金额
  451. Property OwnpayAmt As %Numeric;
  452. /// 自付金额
  453. Property SelfpayAmt As %Numeric;
  454. /// 规格
  455. Property Spec As %String(MAXLEN = 100);
  456. /// 数量单位
  457. Property SpecUnt As %String(MAXLEN = 100);
  458. /// 下达科室名称
  459. Property DrordDeptName As %String(MAXLEN = 100);
  460. /// 医嘱开始日期
  461. Property DrordBegnDate As %Date;
  462. /// 医嘱开始时间
  463. Property DrordBegnTime As %Time;
  464. /// 开方医生姓名
  465. Property DrordDrName As %String(MAXLEN = 100);
  466. /// 医生职称
  467. Property DrordDrProfttl As %String(MAXLEN = 3);
  468. /// 是否当前处方
  469. Property CurrDrordFlag As %String(MAXLEN = 3);
  470. /// 删除标记
  471. Property Deleted As %Integer [ Required, InitialExpression = 0 ];
  472. Index EncounterDrIndex On EncounterDr As Exact;
  473. Index RxIDIndex On RxID As Exact;
  474. Index DeletedIndex On Deleted As Exact;
  475. Storage Default
  476. {
  477. <Data name="BSPreInProcessOrderDefaultData">
  478. <Value name="1">
  479. <Value>%%CLASSNAME</Value>
  480. </Value>
  481. <Value name="2">
  482. <Value>EncounterDr</Value>
  483. </Value>
  484. <Value name="3">
  485. <Value>RxID</Value>
  486. </Value>
  487. <Value name="4">
  488. <Value>Rxno</Value>
  489. </Value>
  490. <Value name="5">
  491. <Value>Grpno</Value>
  492. </Value>
  493. <Value name="6">
  494. <Value>LongDrordFlag</Value>
  495. </Value>
  496. <Value name="7">
  497. <Value>HilistType</Value>
  498. </Value>
  499. <Value name="8">
  500. <Value>ChrgType</Value>
  501. </Value>
  502. <Value name="9">
  503. <Value>DrordBhvr</Value>
  504. </Value>
  505. <Value name="10">
  506. <Value>HilistCode</Value>
  507. </Value>
  508. <Value name="11">
  509. <Value>HilistName</Value>
  510. </Value>
  511. <Value name="12">
  512. <Value>HilistLv</Value>
  513. </Value>
  514. <Value name="13">
  515. <Value>HilistPric</Value>
  516. </Value>
  517. <Value name="14">
  518. <Value>HosplistCode</Value>
  519. </Value>
  520. <Value name="15">
  521. <Value>HosplistName</Value>
  522. </Value>
  523. <Value name="16">
  524. <Value>Cnt</Value>
  525. </Value>
  526. <Value name="17">
  527. <Value>Pric</Value>
  528. </Value>
  529. <Value name="18">
  530. <Value>Sumamt</Value>
  531. </Value>
  532. <Value name="19">
  533. <Value>OwnpayAmt</Value>
  534. </Value>
  535. <Value name="20">
  536. <Value>SelfpayAmt</Value>
  537. </Value>
  538. <Value name="21">
  539. <Value>Spec</Value>
  540. </Value>
  541. <Value name="22">
  542. <Value>SpecUnt</Value>
  543. </Value>
  544. <Value name="23">
  545. <Value>DrordDeptName</Value>
  546. </Value>
  547. <Value name="24">
  548. <Value>DrordBegnDate</Value>
  549. </Value>
  550. <Value name="25">
  551. <Value>DrordBegnTime</Value>
  552. </Value>
  553. <Value name="26">
  554. <Value>DrordDrName</Value>
  555. </Value>
  556. <Value name="27">
  557. <Value>DrordDrProfttl</Value>
  558. </Value>
  559. <Value name="28">
  560. <Value>CurrDrordFlag</Value>
  561. </Value>
  562. <Value name="29">
  563. <Value>Deleted</Value>
  564. </Value>
  565. </Data>
  566. <DataLocation>^BSPreInProcessOrderD</DataLocation>
  567. <DefaultData>BSPreInProcessOrderDefaultData</DefaultData>
  568. <IdLocation>^BSPreInProcessOrderD</IdLocation>
  569. <IndexLocation>^BSPreInProcessOrderI</IndexLocation>
  570. <StreamLocation>^BSPreInProcessOrderS</StreamLocation>
  571. <Type>%Storage.Persistent</Type>
  572. }
  573. }
  574. /// 事前事中分析-手术信息表
  575. Class User.BSPreInProcessOperation Extends (%Persistent, %XML.Adaptor, src.util.DynamicObject.Adapter) [ ClassType = persistent, Inheritance = right, Not ProcedureBlock, SqlRowIdName = ID, SqlTableName = BS_PreInProcessOperation ]
  576. {
  577. /// 关联就诊表
  578. Property EncounterDr As User.BSPreInProcessEncounter [ Required ];
  579. /// 手术操作ID
  580. Property SetlListOprnID As %String(MAXLEN = 30) [ Required ];
  581. /// 手术操作代码
  582. Property OprnCode As %String(MAXLEN = 30);
  583. /// 手术操作名称
  584. Property OprnName As %String(MAXLEN = 500);
  585. /// 主手术操作标志
  586. Property MainOprnFlag As %String(MAXLEN = 3);
  587. /// 手术操作日期
  588. Property OprnDate As %Date;
  589. /// 手术操作时间
  590. Property OprnTime As %Time;
  591. /// 麻醉方式
  592. Property AnstWay As %String(MAXLEN = 6);
  593. /// 术者医师姓名
  594. Property OperDrName As %String(MAXLEN = 50);
  595. /// 麻醉医师姓名
  596. Property AnstDrName As %String(MAXLEN = 50);
  597. /// 删除标记
  598. Property Deleted As %Integer [ Required, InitialExpression = 0 ];
  599. Index EncounterDrIndex On EncounterDr As Exact;
  600. Index SetlListOprnIDIndex On SetlListOprnID As Exact;
  601. Index DeletedIndex On Deleted As Exact;
  602. Storage Default
  603. {
  604. <Data name="BSPreInProcessOperationDefaultData">
  605. <Value name="1">
  606. <Value>%%CLASSNAME</Value>
  607. </Value>
  608. <Value name="2">
  609. <Value>EncounterDr</Value>
  610. </Value>
  611. <Value name="3">
  612. <Value>SetlListOprnID</Value>
  613. </Value>
  614. <Value name="4">
  615. <Value>OprnCode</Value>
  616. </Value>
  617. <Value name="5">
  618. <Value>OprnName</Value>
  619. </Value>
  620. <Value name="6">
  621. <Value>MainOprnFlag</Value>
  622. </Value>
  623. <Value name="7">
  624. <Value>OprnDate</Value>
  625. </Value>
  626. <Value name="8">
  627. <Value>OprnTime</Value>
  628. </Value>
  629. <Value name="9">
  630. <Value>AnstWay</Value>
  631. </Value>
  632. <Value name="10">
  633. <Value>OperDrName</Value>
  634. </Value>
  635. <Value name="11">
  636. <Value>AnstDrName</Value>
  637. </Value>
  638. <Value name="12">
  639. <Value>Deleted</Value>
  640. </Value>
  641. </Data>
  642. <DataLocation>^BSPreInProcessOperationD</DataLocation>
  643. <DefaultData>BSPreInProcessOperationDefaultData</DefaultData>
  644. <IdLocation>^BSPreInProcessOperationD</IdLocation>
  645. <IndexLocation>^BSPreInProcessOperationI</IndexLocation>
  646. <StreamLocation>^BSPreInProcessOperationS</StreamLocation>
  647. <Type>%Storage.Persistent</Type>
  648. }
  649. }
  650. /// 事前事中分析-违规结果表
  651. Class User.BSPreInProcessViolation Extends (%Persistent, %XML.Adaptor, src.util.DynamicObject.Adapter) [ ClassType = persistent, Inheritance = right, Not ProcedureBlock, SqlRowIdName = ID, SqlTableName = BS_PreInProcessViolation ]
  652. {
  653. /// 关联分析主表
  654. Property AnalysisDr As User.BSPreInProcessAnalysis [ Required ];
  655. /// 违规标识
  656. Property JrID As %String(MAXLEN = 50) [ Required ];
  657. /// 规则ID
  658. Property RuleID As %String(MAXLEN = 50);
  659. /// 规则名称
  660. Property RuleName As %String(MAXLEN = 200);
  661. /// 违规内容
  662. Property VolaCont As %String(MAXLEN = 500);
  663. /// 违规金额
  664. Property VolaAmt As %Numeric;
  665. /// 违规金额计算状态
  666. Property VolaAmtStas As %String(MAXLEN = 3);
  667. /// 严重程度
  668. Property SevDeg As %String(MAXLEN = 3);
  669. /// 违规依据
  670. Property VolaEvid As %String(MAXLEN = 500);
  671. /// 违规行为分类
  672. Property VolaBhvrType As %String(MAXLEN = 3);
  673. /// 参保人ID
  674. Property PatnID As %String(MAXLEN = 50);
  675. /// 就诊ID
  676. Property MdtrtID As %String(MAXLEN = 30);
  677. /// 任务ID
  678. Property TaskID As %String(MAXLEN = 50);
  679. /// 创建日期
  680. Property CreateDate As %Date [ InitialExpression = {$zdateh($horolog, 5)} ];
  681. /// 创建时间
  682. Property CreateTime As %Time [ InitialExpression = {$piece($horolog, ",", 2)} ];
  683. /// 删除标记
  684. Property Deleted As %Integer [ Required, InitialExpression = 0 ];
  685. Index AnalysisDrIndex On AnalysisDr As Exact;
  686. Index JrIDIndex On JrID As Exact;
  687. Index RuleIDIndex On RuleID As Exact;
  688. Index TaskIDIndex On TaskID As Exact;
  689. Index DeletedIndex On Deleted As Exact;
  690. Storage Default
  691. {
  692. <Data name="BSPreInProcessViolationDefaultData">
  693. <Value name="1">
  694. <Value>%%CLASSNAME</Value>
  695. </Value>
  696. <Value name="2">
  697. <Value>AnalysisDr</Value>
  698. </Value>
  699. <Value name="3">
  700. <Value>JrID</Value>
  701. </Value>
  702. <Value name="4">
  703. <Value>RuleID</Value>
  704. </Value>
  705. <Value name="5">
  706. <Value>RuleName</Value>
  707. </Value>
  708. <Value name="6">
  709. <Value>VolaCont</Value>
  710. </Value>
  711. <Value name="7">
  712. <Value>VolaAmt</Value>
  713. </Value>
  714. <Value name="8">
  715. <Value>VolaAmtStas</Value>
  716. </Value>
  717. <Value name="9">
  718. <Value>SevDeg</Value>
  719. </Value>
  720. <Value name="10">
  721. <Value>VolaEvid</Value>
  722. </Value>
  723. <Value name="11">
  724. <Value>VolaBhvrType</Value>
  725. </Value>
  726. <Value name="12">
  727. <Value>PatnID</Value>
  728. </Value>
  729. <Value name="13">
  730. <Value>MdtrtID</Value>
  731. </Value>
  732. <Value name="14">
  733. <Value>TaskID</Value>
  734. </Value>
  735. <Value name="15">
  736. <Value>CreateDate</Value>
  737. </Value>
  738. <Value name="16">
  739. <Value>CreateTime</Value>
  740. </Value>
  741. <Value name="17">
  742. <Value>Deleted</Value>
  743. </Value>
  744. </Data>
  745. <DataLocation>^BSPreInProcessViolationD</DataLocation>
  746. <DefaultData>BSPreInProcessViolationDefaultData</DefaultData>
  747. <IdLocation>^BSPreInProcessViolationD</IdLocation>
  748. <IndexLocation>^BSPreInProcessViolationI</IndexLocation>
  749. <StreamLocation>^BSPreInProcessViolationS</StreamLocation>
  750. <Type>%Storage.Persistent</Type>
  751. }
  752. }
  753. /// 事前事中分析-违规明细表
  754. Class User.BSPreInProcessViolationDetail Extends (%Persistent, %XML.Adaptor, src.util.DynamicObject.Adapter) [ ClassType = persistent, Inheritance = right, Not ProcedureBlock, SqlRowIdName = ID, SqlTableName = BS_PreInProcessViolationDetail ]
  755. {
  756. /// 关联违规结果表
  757. Property ViolationDr As User.BSPreInProcessViolation [ Required ];
  758. /// 违规明细标识
  759. Property JrdID As %String(MAXLEN = 50) [ Required ];
  760. /// 参保人标识
  761. Property PatnID As %String(MAXLEN = 50);
  762. /// 就诊标识
  763. Property MdtrtID As %String(MAXLEN = 30);
  764. /// 处方标识
  765. Property RxID As %String(MAXLEN = 50);
  766. /// 违规明细类型
  767. Property VolaItemType As %String(MAXLEN = 3);
  768. /// 违规金额
  769. Property VolaAmt As %Numeric;
  770. /// 删除标记
  771. Property Deleted As %Integer [ Required, InitialExpression = 0 ];
  772. Index ViolationDrIndex On ViolationDr As Exact;
  773. Index JrdIDIndex On JrdID As Exact;
  774. Index DeletedIndex On Deleted As Exact;
  775. Storage Default
  776. {
  777. <Data name="BSPreInProcessViolationDetailDefaultData">
  778. <Value name="1">
  779. <Value>%%CLASSNAME</Value>
  780. </Value>
  781. <Value name="2">
  782. <Value>ViolationDr</Value>
  783. </Value>
  784. <Value name="3">
  785. <Value>JrdID</Value>
  786. </Value>
  787. <Value name="4">
  788. <Value>PatnID</Value>
  789. </Value>
  790. <Value name="5">
  791. <Value>MdtrtID</Value>
  792. </Value>
  793. <Value name="6">
  794. <Value>RxID</Value>
  795. </Value>
  796. <Value name="7">
  797. <Value>VolaItemType</Value>
  798. </Value>
  799. <Value name="8">
  800. <Value>VolaAmt</Value>
  801. </Value>
  802. <Value name="9">
  803. <Value>Deleted</Value>
  804. </Value>
  805. </Data>
  806. <DataLocation>^BSPreInProcessViolationDetailD</DataLocation>
  807. <DefaultData>BSPreInProcessViolationDetailDefaultData</DefaultData>
  808. <IdLocation>^BSPreInProcessViolationDetailD</IdLocation>
  809. <IndexLocation>^BSPreInProcessViolationDetailI</IndexLocation>
  810. <StreamLocation>^BSPreInProcessViolationDetailS</StreamLocation>
  811. <Type>%Storage.Persistent</Type>
  812. }
  813. }
  814. /// 事前事中分析-反馈记录表
  815. Class User.BSPreInProcessFeedback Extends (%Persistent, %XML.Adaptor, src.util.DynamicObject.Adapter) [ ClassType = persistent, Inheritance = right, Not ProcedureBlock, SqlRowIdName = ID, SqlTableName = BS_PreInProcessFeedback ]
  816. {
  817. /// 关联分析主表
  818. Property AnalysisDr As User.BSPreInProcessAnalysis;
  819. /// 反馈类型 1=事前 2=事中
  820. Property WarnType As %String(MAXLEN = 6) [ Required ];
  821. /// 违规标识(关联违规结果)
  822. Property WarnRsltID As %String(MAXLEN = 40);
  823. /// 处理方式 1=继续执行 2=返回修改
  824. Property DspoWay As %String(MAXLEN = 3);
  825. /// 处理原因
  826. Property DspoWayRea As %String(MAXLEN = 500);
  827. /// 操作员编码
  828. Property OpterCode As %String(MAXLEN = 30);
  829. /// 操作员姓名
  830. Property OpterName As %String(MAXLEN = 50);
  831. /// 反馈日期
  832. Property FeedbackDate As %Date [ InitialExpression = {$zdateh($horolog, 5)} ];
  833. /// 反馈时间
  834. Property FeedbackTime As %Time [ InitialExpression = {$piece($horolog, ",", 2)} ];
  835. /// 删除标记
  836. Property Deleted As %Integer [ Required, InitialExpression = 0 ];
  837. Index AnalysisDrIndex On AnalysisDr As Exact;
  838. Index WarnRsltIDIndex On WarnRsltID As Exact;
  839. Index WarnTypeIndex On WarnType As Exact;
  840. Index FeedbackDateIndex On FeedbackDate As Exact;
  841. Index DeletedIndex On Deleted As Exact;
  842. Storage Default
  843. {
  844. <Data name="BSPreInProcessFeedbackDefaultData">
  845. <Value name="1">
  846. <Value>%%CLASSNAME</Value>
  847. </Value>
  848. <Value name="2">
  849. <Value>AnalysisDr</Value>
  850. </Value>
  851. <Value name="3">
  852. <Value>WarnType</Value>
  853. </Value>
  854. <Value name="4">
  855. <Value>WarnRsltID</Value>
  856. </Value>
  857. <Value name="5">
  858. <Value>DspoWay</Value>
  859. </Value>
  860. <Value name="6">
  861. <Value>DspoWayRea</Value>
  862. </Value>
  863. <Value name="7">
  864. <Value>OpterCode</Value>
  865. </Value>
  866. <Value name="8">
  867. <Value>OpterName</Value>
  868. </Value>
  869. <Value name="9">
  870. <Value>FeedbackDate</Value>
  871. </Value>
  872. <Value name="10">
  873. <Value>FeedbackTime</Value>
  874. </Value>
  875. <Value name="11">
  876. <Value>Deleted</Value>
  877. </Value>
  878. </Data>
  879. <DataLocation>^BSPreInProcessFeedbackD</DataLocation>
  880. <DefaultData>BSPreInProcessFeedbackDefaultData</DefaultData>
  881. <IdLocation>^BSPreInProcessFeedbackD</IdLocation>
  882. <IndexLocation>^BSPreInProcessFeedbackI</IndexLocation>
  883. <StreamLocation>^BSPreInProcessFeedbackS</StreamLocation>
  884. <Type>%Storage.Persistent</Type>
  885. }
  886. }