D_Update.sql 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444
  1. --5.3.0版本医院未全部升级因此以下代码网站外部sql脚本重复,暂时保留,后续可删除网站目录的sql脚本内重复代码
  2. --20210326卫健委变化
  3. --住院24小时内出院 PACG 住院时间应大于24小时取消(存在日间手术)
  4. if exists(select * from D_ReportStaticsQuota where id=8 and ReportClassArr<>'1,2,3,4,5,6,7,8,10,11,12,13,14,15,16,17,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,40,41,46,47,48,49,50,52' )
  5. update D_ReportStaticsQuota set ReportClassArr='1,2,3,4,5,6,7,8,10,11,12,13,14,15,16,17,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,40,41,46,47,48,49,50,52'
  6. where id=8 and ReportClassArr<>'1,2,3,4,5,6,7,8,10,11,12,13,14,15,16,17,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,40,41,46,47,48,49,50,52'
  7. --更新自动对接卫健委
  8. if exists(select * from Q_Options where Name='NcisAutoOpenList' and Value<>'' and Value is not null)
  9. update D_Disease_Category set IsNcisAutoOpen=1
  10. where IsNcisChange=1 and
  11. CHARINDEX(','+ cast(DCID as nvarchar(max)) +',',(select top 1 ','+ Value from Q_Options where Name='NcisAutoOpenList')) > 0
  12. --将程序中卫健委变化标志取消
  13. if exists(select * from D_Disease_Category where IsNcisChange=1)
  14. update D_Disease_Category set IsNcisChange=null
  15. where IsNcisChange=1
  16. --更新公告
  17. if exists(select * from Report_InterAnnounce where IsTop=1 and CHARINDEX('因国家单病种平台填报内容发生变化',Title) > 0)
  18. update Report_InterAnnounce set IsTop=0
  19. where IsTop=1 and CHARINDEX('因国家单病种平台填报内容发生变化',Title) > 0
  20. if exists(select * from Q_Options where Name='NcisAutoOpenList' and Value<>'' and Value is not null)
  21. update Q_Options set Value=''
  22. where Name='NcisAutoOpenList' and Value<>'' and Value is not null
  23. --病种重复病除外设置 VTE-BC
  24. if exists(select * from D_RepeatReportSetting where ReportClass=36 and RepeatReportClass=17 and Icd9Code is null)
  25. update D_RepeatReportSetting set Icd9Code='85.2、85.3、85.4'
  26. where ReportClass=36 and RepeatReportClass=17 and Icd9Code is null
  27. --pip 无需上报内容
  28. if exists(select * from D_Disease_Category where SystemDescription like '%18岁以下的病例%' and DCID = 9)
  29. update D_Disease_Category set SystemDescription='
  30. <div class="content">
  31. <p>系统特别说明:</p>
  32. <p>1.同一疾病30日内重复入院,无需上报</p>
  33. <p>2.本次住院天数大于90天,无法上报。</p>
  34. </div>'
  35. where SystemDescription like '%18岁以下的病例%' and DCID = 9
  36. --无需上报条件 18岁以下的病例
  37. if exists(select * from D_ReportStaticsQuota where id=1 and ReportClassArr<>'1,2,3,4,5,6,7,10,11,12,13,14,15,16,17,19,20,21,22,23,24,25,26,27,28,29,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,50,51,' )
  38. update D_ReportStaticsQuota set ReportClassArr='1,2,3,4,5,6,7,10,11,12,13,14,15,16,17,19,20,21,22,23,24,25,26,27,28,29,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,50,51,'
  39. where id=1 and ReportClassArr<>'1,2,3,4,5,6,7,10,11,12,13,14,15,16,17,19,20,21,22,23,24,25,26,27,28,29,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,50,51,'
  40. --漏报设置更新科室改为关闭状态
  41. if exists(select * from D_Disease_Category where HisDeptEnabled=1 )
  42. update D_Disease_Category set HisDeptEnabled=0
  43. where HisDeptEnabled=1
  44. --cacc 去除编码 O99.5
  45. if exists(select * from Report_Leak where ReportClass = 47 and DieaseICD like 'O99.5%' and DealReport=0 )
  46. update Report_Leak set DealReport=2
  47. where ReportClass = 47 and DieaseICD like 'O99.5%' and DealReport=0
  48. --tia 去除编码G45.004
  49. if exists(select * from Report_Leak where ReportClass = 13 and DieaseICD like 'G45.004%' and DealReport=0 )
  50. update Report_Leak set DealReport=2
  51. where ReportClass=13 and DieaseICD like 'G45.004%' and DealReport=0
  52. --根据处理记录更新漏报管理状态
  53. update Report_Leak set NoMustReportReason=
  54. (NoMustReportReason+' '+
  55. (select top(1) ChangeNote from Report_LeakLog where Report_Leak.ID=Report_LeakLog.LeakId order by ChangeDate desc)
  56. ),DealReport=2
  57. where id in (
  58. select ID from (SELECT (select top(1) ChangeNote from Report_LeakLog where Report_Leak.ID=Report_LeakLog.LeakId order by ChangeDate desc) as note
  59. ,(select top(1) Status from Report_LeakLog where Report_Leak.ID=Report_LeakLog.LeakId order by ChangeDate desc) as Status
  60. ,*
  61. FROM Report_Leak ) a
  62. where DealReport=0 and Status =2
  63. )
  64. --pip、dvt重复将pip未报数据标记为无需上报
  65. if exists(select * from Report_Leak where ( OpertationICD like '65.2%'or OpertationICD like '65.3%%' or OpertationICD like'65.4%'
  66. or OpertationICD like'65.5%' or OpertationICD like'65.6%' or OpertationICD like'00.7%' or OpertationICD like'81.51%'
  67. or OpertationICD like'81.52%' or OpertationICD like'81.53%' or OpertationICD like'00.80%' or OpertationICD like'00.81%'
  68. or OpertationICD like'00.82%' or OpertationICD like'00.83%' or OpertationICD like'81.54%' or OpertationICD like'81.55%' or OpertationICD like'36.1')
  69. and ReportClass=9 and DealReport=0 )
  70. update Report_Leak set DealReport=2,NoMustReportReason ='PIP与DVT重复的病种'
  71. where ( OpertationICD like '65.2%'or OpertationICD like '65.3%%' or OpertationICD like'65.4%'
  72. or OpertationICD like'65.5%' or OpertationICD like'65.6%' or OpertationICD like'00.7%' or OpertationICD like'81.51%'
  73. or OpertationICD like'81.52%' or OpertationICD like'81.53%' or OpertationICD like'00.80%' or OpertationICD like'00.81%'
  74. or OpertationICD like'00.82%' or OpertationICD like'00.83%' or OpertationICD like'81.54%' or OpertationICD like'81.55%' or OpertationICD like'36.1')
  75. --原“数据统计”权限,改为“指标统计”
  76. update Q_Quanxian set QuanxianName='指标统计' where QuanxianName='数据统计' and id=24
  77. --数据预警将接口自动对接改为 对接失败
  78. if exists(select * from Q_DiseaseGrade where DiseaseGradeID=5 and DiseaseGradeName='接口自动对接')
  79. update Q_DiseaseGrade set DiseaseGradeName='对接失败'
  80. where DiseaseGradeID=5 and DiseaseGradeName='接口自动对接'
  81. --asd vsd 上报说明
  82. --asd
  83. if not exists(select * from D_Disease_Category where DiseaseContent like '%18岁人群%' and DCID = 30)
  84. update D_Disease_Category set DiseaseContent=
  85. '<div class="content">
  86. <p style="background: white; margin: 0 0 10px 0;"><span>上报内容:</span></p>
  87. <div class="column">
  88. <p><span ><span style="font-size: 12pt;">&nbsp; &nbsp; &nbsp;主要手术 ICD-9-CM-3 编码:35.51、35.52、35.61、35.71 的手术出院患者。</span>&nbsp;</span></p>
  89. </div>
  90. <div class="page" title="Page 13">&nbsp;</div>
  91. <p style="background: white; margin: 0 0 10px 0;"><span>无需上报内容:</span></p>
  92. <p style="text-indent: 28px; background: white;"><span>1.参与临床药物与器械试验的病例,</span></p>
  93. <p style="text-indent: 28px; background: white;"><span>2.外院转入手术失敗病例</span></p>
  94. <p style="text-indent: 28px; background: white;"><span>3.本次住院超过90天</span></p>
  95. <p style="text-indent: 28px; background: white;"><span>4.年龄<2岁,年龄>18岁人群</span></p>
  96. <p style="text-indent: 28px; background: white; margin: 0 0 10px 0;">&nbsp;</p>
  97. <p style="background: white; margin: 0 0 10px 0;"><span>数据验证:</span></p>
  98. <p style="background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; widows: 2; -webkit-text-stroke-width: 0px; word-spacing: 0px; margin: 0 0 10px 0;"><span style="box-sizing: border-box;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>1. *</span><span>是必填项目,其他项未填则按未做统计,★为本病种的核心(重点)质量监控指标。</span></p>
  99. <p style="background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; widows: 2; -webkit-text-stroke-width: 0px; word-spacing: 0px; margin: 0 0 10px 0;"><span style="box-sizing: border-box;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>2. </span><span>强制验证项若超过正常值,系统给予提示,不允许填写。</span></p>
  100. <p style="background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; widows: 2; -webkit-text-stroke-width: 0px; word-spacing: 0px; margin: 0 0 10px 0;"><span style="box-sizing: border-box;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>3. </span><span>其他项若超出正常值范围,系统给予提示,但允许填写实际数据。</span></p>
  101. <p>&nbsp;</p></div>'
  102. where DCID = 30
  103. --vsd
  104. if not exists(select * from D_Disease_Category where DiseaseContent like '%18岁人群%' and DCID = 31)
  105. update D_Disease_Category set DiseaseContent=
  106. '<div class="content">
  107. <p style="background: white; margin: 0 0 10px 0;"><span>上报内容:</span></p>
  108. <div class="column">
  109. <p><span ><span style="font-size: 12pt;">&nbsp; &nbsp; &nbsp;主要手术 ICD-9-CM-3 编码:35.53、35.55、35.62、35.72 的手术出院患者。 </span>&nbsp;</span></p>
  110. </div>
  111. <div class="page" title="Page 13">&nbsp;</div>
  112. <p style="background: white; margin: 0 0 10px 0;"><span>无需上报内容:</span></p>
  113. <p style="text-indent: 28px; background: white;"><span>1.参与临床药物与器械试验的病例,</span></p>
  114. <p style="text-indent: 28px; background: white;"><span>2.外院转入手术失敗病例</span></p>
  115. <p style="text-indent: 28px; background: white;"><span>3.本次住院超过90天</span></p>
  116. <p style="text-indent: 28px; background: white;"><span>4.年龄<2岁,年龄>18岁人群</span></p>
  117. <p style="text-indent: 28px; background: white; margin: 0 0 10px 0;">&nbsp;</p>
  118. <p style="background: white; margin: 0 0 10px 0;"><span>数据验证:</span></p>
  119. <p style="background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; widows: 2; -webkit-text-stroke-width: 0px; word-spacing: 0px; margin: 0 0 10px 0;"><span style="box-sizing: border-box;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>1. *</span><span>是必填项目,其他项未填则按未做统计,★为本病种的核心(重点)质量监控指标。</span></p>
  120. <p style="background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; widows: 2; -webkit-text-stroke-width: 0px; word-spacing: 0px; margin: 0 0 10px 0;"><span style="box-sizing: border-box;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>2. </span><span>强制验证项若超过正常值,系统给予提示,不允许填写。</span></p>
  121. <p style="background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; widows: 2; -webkit-text-stroke-width: 0px; word-spacing: 0px; margin: 0 0 10px 0;"><span style="box-sizing: border-box;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>3. </span><span>其他项若超出正常值范围,系统给予提示,但允许填写实际数据。</span></p>
  122. <p>&nbsp;</p></div>'
  123. where DCID = 31
  124. --无需上报条件 年龄大于等于18岁以及小于2岁的新生儿
  125. if exists(select * from D_ReportStaticsQuota where id=2 and ReportClassArr<>'8,30,31,47,' )
  126. update D_ReportStaticsQuota set ReportClassArr='8,30,31,47,'
  127. where id=2 and ReportClassArr<>'8,30,31,47,'
  128. --修改口腔种植术的说明文字
  129. if exists(select * from D_Disease_Category where DiseaseContent like '%18岁以上%' and DCID = 51)
  130. update D_Disease_Category set DiseaseContent=
  131. '<div><p style="margin-top:0;margin-right:0;margin-bottom:10px;margin-left:0;background:white"><span style="font-family:微软雅黑,sans-serif;color:black">OIT</span><span style="font-family:微软雅黑,sans-serif;color:black">口腔种植术</span></p><p style="margin-top:0;margin-right:0;margin-bottom:10px;margin-left:0;background:white"><span style="font-family:微软雅黑,sans-serif;color:black"><br></span></p><p style="margin-top:0;margin-right:0;margin-bottom:10px;margin-left:0;text-indent:28px;background:white"><span style="font-family:微软雅黑,sans-serif;color:black">主要手术 ICD-9-CM-3 编码:23.5,23.6 的门诊患者或 者 76.09,76.91,76.92,22.79 的手术出院患者。 </span></p><p style="text-indent:28px;background:white"></p><p style="margin-top:0;margin-right:0;margin-bottom:10px;margin-left:0;background:white">
  132. <p><br></p><span style="font-family:微软雅黑,sans-serif;color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 无需上报内容:</span></p>
  133. <p style="text-indent:28px;background:white"><span style="font-family:微软雅黑,sans-serif;color:black">1.由外院住院诊疗后转入本院的病例</span> </p>
  134. <p style="text-indent:28px;background:white"><span style="font-family:微软雅黑,sans-serif;color:black">2.18岁以下的病例</span> </p>
  135. <p style="text-indent:28px;background:white"><span style="font-family:微软雅黑,sans-serif;color:black">3.同一疾病30日内重复入院的病例</span> </p>
  136. <p style="text-indent:28px;background:white"><span style="font-family:微软雅黑,sans-serif;color:black">4.本次住院超过90天的病例</span> </p>
  137. <p><br></p<p style="text-indent:28px;background:white"><span style="font-family: 微软雅黑, sans-serif;">数据验证:</span><br></p><p style="margin-top:0;margin-right:0;margin-bottom:10px;margin-left:0;background:white;box-sizing: border-box;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;widows: 2;-webkit-text-stroke-width: 0px;word-spacing:0px"><span style="box-sizing: border-box"><span style="font-family:微软雅黑,sans-serif;color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>1. *</span><span style="font-family:微软雅黑,sans-serif;color:black">是必填项目,其他项未填则按未做统计,★为本病种的核心(重点)质量监控指标。</span></p><p style="margin-top:0;margin-right:0;margin-bottom:10px;margin-left:0;background:white;box-sizing: border-box;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;widows: 2;-webkit-text-stroke-width: 0px;word-spacing:0px"><span style="box-sizing: border-box"><span style="font-family:微软雅黑,sans-serif;color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>2. </span><span style="font-family:微软雅黑,sans-serif;color:black">强制验证项若超过正常值,系统给予提示,不允许填写。</span></p><p><br></p></div>'
  138. where DCID = 51
  139. --修改vte抽取规则
  140. if exists(select * from D_Disease_Category where LeakExtractRule<>0 and DCID =36)
  141. update D_Disease_Category set LeakExtractRule=0
  142. where LeakExtractRule<>0 and DCID =36
  143. --设定 [DataBaseAutoBak] AutoDbBakAtMinute默认值0
  144. if exists(select * from [DataBaseAutoBak] where AutoDbBakAtMinute is null )
  145. update [DataBaseAutoBak] set AutoDbBakAtMinute=0
  146. where AutoDbBakAtMinute is null
  147. --无需上报条件 同一疾病30日内重复入院
  148. if exists(select * from D_ReportStaticsQuota where id=12 and ReportClassArr<>'1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,' )
  149. update D_ReportStaticsQuota set ReportClassArr='1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,'
  150. where id=12 and ReportClassArr<>'1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,'
  151. --对接卫健委code旧数据赋值
  152. if exists(select * from D_MedicalRecord where Ncis_JoinErrorMessage like '%该项为必填项,请进行填写%' and Ncis_IsJoinError=1)
  153. update D_MedicalRecord set Ncis_JoinCode=1000
  154. where Ncis_JoinErrorMessage like '%该项为必填项,请进行填写%' and Ncis_IsJoinError=1
  155. --在1.1版本数据中对应添加2.0数据统计需要字段
  156. --离院方式
  157. if exists(select * from D_MedicalRecord where JSON_VALUE(DataInfo,'$."CM-4-3"') is null and DataVersion='1.1' )
  158. update D_MedicalRecord set DataInfo=
  159. JSON_MODIFY(DataInfo, '$."CM-4-3"',
  160. case when DataVersion='1.1' and ReportClass=1 then JSON_VALUE(DataInfo,'$."STEMI-9-1-2-1"') --STEMI
  161. when DataVersion='1.1' and ReportClass=2 then JSON_VALUE(DataInfo,'$."HF-9-1-2-1"') --HF
  162. when DataVersion='1.1' and ReportClass=3 then JSON_VALUE(DataInfo,'$."Cap-Adult-10-2-1"') --Cap-Adult
  163. when DataVersion='1.1' and ReportClass=4 then JSON_VALUE(DataInfo,'$."Hip-10-2"') --Hip
  164. when DataVersion='1.1' and ReportClass=5 then JSON_VALUE(DataInfo,'$."Knee-10-2"') --Knee
  165. when DataVersion='1.1' and ReportClass=6 then JSON_VALUE(DataInfo,'$."STK-11-2-1"') --STK
  166. when DataVersion='1.1' and ReportClass=7 then JSON_VALUE(DataInfo,'$."CABG-10-2"') --CABG
  167. when DataVersion='1.1' and ReportClass=8 then JSON_VALUE(DataInfo,'$."Cap-9-2-1"') --Cap
  168. when DataVersion='1.1' and ReportClass=9 then JSON_VALUE(DataInfo,'$."PIP-5-2"') --PIP
  169. when DataVersion='1.1' and ReportClass=10 then JSON_VALUE(DataInfo,'$."CS-10-2"') --CS
  170. when DataVersion='1.1' and ReportClass=11 then JSON_VALUE(DataInfo,'$."AECOPD-9-2-1"') --AECOPD
  171. when DataVersion='1.1' and ReportClass=12 then JSON_VALUE(DataInfo,'$."DVT-5-2"') --DVT
  172. when DataVersion='1.1' and ReportClass=13 then JSON_VALUE(DataInfo,'$."TIA-8-2-1"') --TIA
  173. when DataVersion='1.1' and ReportClass=14 then JSON_VALUE(DataInfo,'$."HBIPS-13-2-1"') --HBIPS
  174. when DataVersion='1.1' and ReportClass=15 then JSON_VALUE(DataInfo,'$."TC-9-2-1"') --TC
  175. when DataVersion='1.1' and ReportClass=16 then JSON_VALUE(DataInfo,'$."LC-14-2-1"') --LC
  176. when DataVersion='1.1' and ReportClass=17 then JSON_VALUE(DataInfo,'$."BC-13-2-1"') --BC
  177. end
  178. )where DataVersion='1.1'
  179. --入院日期时间
  180. if exists(select * from D_MedicalRecord where JSON_VALUE(DataInfo,'$."CM-0-2-4-1"') is null and DataVersion='1.1' )
  181. update D_MedicalRecord set DataInfo=
  182. JSON_MODIFY(DataInfo, '$."CM-0-2-4-1"',
  183. case when DataVersion='1.1' and ReportClass=1 then JSON_VALUE(DataInfo,'$."STEMI-0-2-4"') --STEMI
  184. when DataVersion='1.1' and ReportClass=2 then JSON_VALUE(DataInfo,'$."HF-0-2-4"') --HF
  185. when DataVersion='1.1' and ReportClass=3 then JSON_VALUE(DataInfo,'$."Cap-Adult-0-2-4"') --Cap-Adult
  186. when DataVersion='1.1' and ReportClass=4 then JSON_VALUE(DataInfo,'$."Hip-0-2-2-1"') --Hip
  187. when DataVersion='1.1' and ReportClass=5 then JSON_VALUE(DataInfo,'$."Knee-0-2-2"') --Knee
  188. when DataVersion='1.1' and ReportClass=6 then JSON_VALUE(DataInfo,'$."STK-0-2-4"') --STK
  189. when DataVersion='1.1' and ReportClass=7 then JSON_VALUE(DataInfo,'$."CABG-0-2-2"') --CABG
  190. when DataVersion='1.1' and ReportClass=8 then JSON_VALUE(DataInfo,'$."Cap-0-2-4"') --Cap
  191. when DataVersion='1.1' and ReportClass=9 then JSON_VALUE(DataInfo,'$."PIP-0-2-2-1"') --PIP
  192. when DataVersion='1.1' and ReportClass=10 then JSON_VALUE(DataInfo,'$."CS-0-2-4"') --CS
  193. when DataVersion='1.1' and ReportClass=11 then JSON_VALUE(DataInfo,'$."AECOPD-0-2-4"') --AECOPD
  194. when DataVersion='1.1' and ReportClass=12 then JSON_VALUE(DataInfo,'$."DVT-0-2-2-1"') --DVT
  195. when DataVersion='1.1' and ReportClass=13 then JSON_VALUE(DataInfo,'$."TIA-0-2-4"') --TIA
  196. when DataVersion='1.1' and ReportClass=14 then JSON_VALUE(DataInfo,'$."HBIPS-0-3-1"') --HBIPS
  197. when DataVersion='1.1' and ReportClass=15 then JSON_VALUE(DataInfo,'$."TC-0-2-4"') --TC
  198. when DataVersion='1.1' and ReportClass=16 then JSON_VALUE(DataInfo,'$."LC-0-2-4"') --LC
  199. when DataVersion='1.1' and ReportClass=17 then JSON_VALUE(DataInfo,'$."BC-0-2-4-1"') --BC
  200. end
  201. )where DataVersion='1.1'
  202. --出院日期时间
  203. if exists(select * from D_MedicalRecord where JSON_VALUE(DataInfo,'$."CM-0-2-4-2"') is null and DataVersion='1.1' )
  204. update D_MedicalRecord set DataInfo=
  205. JSON_MODIFY(DataInfo, '$."CM-0-2-4-2"',
  206. case when DataVersion='1.1' and ReportClass=1 then JSON_VALUE(DataInfo,'$."STEMI-0-2-5"') --STEMI
  207. when DataVersion='1.1' and ReportClass=2 then JSON_VALUE(DataInfo,'$."HF-0-2-5"') --HF
  208. when DataVersion='1.1' and ReportClass=3 then JSON_VALUE(DataInfo,'$."Cap-Adult-0-2-5"') --Cap-Adult
  209. when DataVersion='1.1' and ReportClass=4 then JSON_VALUE(DataInfo,'$."Hip-0-2-3"') --Hip
  210. when DataVersion='1.1' and ReportClass=5 then JSON_VALUE(DataInfo,'$."Knee-0-2-3"') --Knee
  211. when DataVersion='1.1' and ReportClass=6 then JSON_VALUE(DataInfo,'$."STK-0-2-5"') --STK
  212. when DataVersion='1.1' and ReportClass=7 then JSON_VALUE(DataInfo,'$."CABG-0-2-3"') --CABG
  213. when DataVersion='1.1' and ReportClass=8 then JSON_VALUE(DataInfo,'$."Cap-0-2-5"') --Cap
  214. when DataVersion='1.1' and ReportClass=9 then JSON_VALUE(DataInfo,'$."PIP-0-2-3"') --PIP
  215. when DataVersion='1.1' and ReportClass=10 then JSON_VALUE(DataInfo,'$."CS-0-2-5"') --CS
  216. when DataVersion='1.1' and ReportClass=11 then JSON_VALUE(DataInfo,'$."AECOPD-0-2-5"') --AECOPD
  217. when DataVersion='1.1' and ReportClass=12 then JSON_VALUE(DataInfo,'$."DVT-0-2-3"') --DVT
  218. when DataVersion='1.1' and ReportClass=13 then JSON_VALUE(DataInfo,'$."TIA-0-2-5"') --TIA
  219. when DataVersion='1.1' and ReportClass=14 then JSON_VALUE(DataInfo,'$."HBIPS-0-3-2"') --HBIPS
  220. when DataVersion='1.1' and ReportClass=15 then JSON_VALUE(DataInfo,'$."TC-0-2-5"') --TC
  221. when DataVersion='1.1' and ReportClass=16 then JSON_VALUE(DataInfo,'$."LC-0-2-5"') --LC
  222. when DataVersion='1.1' and ReportClass=17 then JSON_VALUE(DataInfo,'$."BC-0-2-4-2"') --BC
  223. end
  224. ) where DataVersion='1.1'
  225. --住院总费用
  226. if exists(select * from D_MedicalRecord where JSON_VALUE(DataInfo,'$."CM-6-1"') is null and DataVersion='1.1' )
  227. update D_MedicalRecord set DataInfo=
  228. JSON_MODIFY(DataInfo, '$."CM-6-1"',
  229. case when DataVersion='1.1' and ReportClass=1 then JSON_VALUE(DataInfo,'$."STEMI-9-1-3-1"') --STEMI
  230. when DataVersion='1.1' and ReportClass=2 then JSON_VALUE(DataInfo,'$."HF-9-1-3-1"') --HF
  231. when DataVersion='1.1' and ReportClass=3 then JSON_VALUE(DataInfo,'$."Cap-Adult-10-3-1"') --Cap-Adult
  232. when DataVersion='1.1' and ReportClass=4 then JSON_VALUE(DataInfo,'$."Hip-10-4-1"') --Hip
  233. when DataVersion='1.1' and ReportClass=5 then JSON_VALUE(DataInfo,'$."Knee-10-4-1"') --Knee
  234. when DataVersion='1.1' and ReportClass=6 then JSON_VALUE(DataInfo,'$."STK-11-3-1"') --STK
  235. when DataVersion='1.1' and ReportClass=7 then JSON_VALUE(DataInfo,'$."CABG-10-4-1"') --CABG
  236. when DataVersion='1.1' and ReportClass=8 then JSON_VALUE(DataInfo,'$."Cap-9-3-1"') --Cap
  237. when DataVersion='1.1' and ReportClass=9 then JSON_VALUE(DataInfo,'$."PIP-5-4-1"') --PIP
  238. when DataVersion='1.1' and ReportClass=10 then JSON_VALUE(DataInfo,'$."CS-10-4-1"') --CS
  239. when DataVersion='1.1' and ReportClass=11 then JSON_VALUE(DataInfo,'$."AECOPD-9-3-1"') --AECOPD
  240. when DataVersion='1.1' and ReportClass=12 then JSON_VALUE(DataInfo,'$."DVT-5-4-1"') --DVT
  241. when DataVersion='1.1' and ReportClass=13 then JSON_VALUE(DataInfo,'$."TIA-8-3-1"') --TIA
  242. when DataVersion='1.1' and ReportClass=14 then JSON_VALUE(DataInfo,'$."HBIPS-13-3-1"') --HBIPS
  243. when DataVersion='1.1' and ReportClass=15 then JSON_VALUE(DataInfo,'$."TC-9-3-1"') --TC
  244. when DataVersion='1.1' and ReportClass=16 then JSON_VALUE(DataInfo,'$."LC-14-3-1"') --LC
  245. when DataVersion='1.1' and ReportClass=17 then JSON_VALUE(DataInfo,'$."BC-13-3-1"') --BC
  246. end
  247. ) where DataVersion='1.1'
  248. --手术治疗费
  249. if exists(select * from D_MedicalRecord where JSON_VALUE(DataInfo,'$."CM-6-13"') is null and DataVersion='1.1' )
  250. update D_MedicalRecord set DataInfo=
  251. JSON_MODIFY(DataInfo, '$."CM-6-13"',
  252. case when DataVersion='1.1' and ReportClass=1 then JSON_VALUE(DataInfo,'$."STEMI-9-1-3-5"') --STEMI
  253. when DataVersion='1.1' and ReportClass=2 then JSON_VALUE(DataInfo,'$."HF-9-1-3-5"') --HF
  254. when DataVersion='1.1' and ReportClass=3 then JSON_VALUE(DataInfo,'$."Cap-Adult-10-3-5"') --Cap-Adult
  255. when DataVersion='1.1' and ReportClass=4 then JSON_VALUE(DataInfo,'$."Hip-10-4-5"') --Hip
  256. when DataVersion='1.1' and ReportClass=5 then JSON_VALUE(DataInfo,'$."Knee-10-4-5"') --Knee
  257. when DataVersion='1.1' and ReportClass=6 then JSON_VALUE(DataInfo,'$."STK-11-3-5"') --STK
  258. when DataVersion='1.1' and ReportClass=7 then JSON_VALUE(DataInfo,'$."CABG-10-4-5"') --CABG
  259. when DataVersion='1.1' and ReportClass=8 then JSON_VALUE(DataInfo,'$."Cap-9-3-5"') --Cap
  260. when DataVersion='1.1' and ReportClass=9 then JSON_VALUE(DataInfo,'$."PIP-5-4-5"') --PIP
  261. when DataVersion='1.1' and ReportClass=10 then JSON_VALUE(DataInfo,'$."CS-10-4-5"') --CS
  262. when DataVersion='1.1' and ReportClass=11 then JSON_VALUE(DataInfo,'$."AECOPD-9-3-5"') --AECOPD
  263. when DataVersion='1.1' and ReportClass=12 then JSON_VALUE(DataInfo,'$."DVT-5-4-5"') --DVT
  264. when DataVersion='1.1' and ReportClass=13 then JSON_VALUE(DataInfo,'$."TIA-8-3-5"') --TIA
  265. when DataVersion='1.1' and ReportClass=14 then JSON_VALUE(DataInfo,'$."HBIPS-13-3-5"') --HBIPS
  266. when DataVersion='1.1' and ReportClass=15 then JSON_VALUE(DataInfo,'$."TC-9-3-5"') --TC
  267. when DataVersion='1.1' and ReportClass=16 then JSON_VALUE(DataInfo,'$."LC-14-3-5"') --LC
  268. when DataVersion='1.1' and ReportClass=17 then JSON_VALUE(DataInfo,'$."BC-13-3-5"') --BC
  269. end
  270. ) where DataVersion='1.1'
  271. --西药费
  272. if exists(select * from D_MedicalRecord where JSON_VALUE(DataInfo,'$."CM-6-18"') is null and DataVersion='1.1' )
  273. update D_MedicalRecord set DataInfo=
  274. JSON_MODIFY(DataInfo, '$."CM-6-18"',
  275. case when DataVersion='1.1' and ReportClass=1 then JSON_VALUE(DataInfo,'$."STEMI-9-1-3-2"') --STEMI
  276. when DataVersion='1.1' and ReportClass=2 then JSON_VALUE(DataInfo,'$."HF-9-1-3-2"') --HF
  277. when DataVersion='1.1' and ReportClass=3 then JSON_VALUE(DataInfo,'$."Cap-Adult-10-3-2"') --Cap-Adult
  278. when DataVersion='1.1' and ReportClass=4 then JSON_VALUE(DataInfo,'$."Hip-10-4-2"') --Hip
  279. when DataVersion='1.1' and ReportClass=5 then JSON_VALUE(DataInfo,'$."Knee-10-4-2"') --Knee
  280. when DataVersion='1.1' and ReportClass=6 then JSON_VALUE(DataInfo,'$."STK-11-3-2"') --STK
  281. when DataVersion='1.1' and ReportClass=7 then JSON_VALUE(DataInfo,'$."CABG-10-4-2"') --CABG
  282. when DataVersion='1.1' and ReportClass=8 then JSON_VALUE(DataInfo,'$."Cap-9-3-2"') --Cap
  283. when DataVersion='1.1' and ReportClass=9 then JSON_VALUE(DataInfo,'$."PIP-5-4-2"') --PIP
  284. when DataVersion='1.1' and ReportClass=10 then JSON_VALUE(DataInfo,'$."CS-10-4-2"') --CS
  285. when DataVersion='1.1' and ReportClass=11 then JSON_VALUE(DataInfo,'$."AECOPD-9-3-2"') --AECOPD
  286. when DataVersion='1.1' and ReportClass=12 then JSON_VALUE(DataInfo,'$."DVT-5-4-2"') --DVT
  287. when DataVersion='1.1' and ReportClass=13 then JSON_VALUE(DataInfo,'$."TIA-8-3-2"') --TIA
  288. when DataVersion='1.1' and ReportClass=14 then JSON_VALUE(DataInfo,'$."HBIPS-13-3-2"') --HBIPS
  289. when DataVersion='1.1' and ReportClass=15 then JSON_VALUE(DataInfo,'$."TC-9-3-2"') --TC
  290. when DataVersion='1.1' and ReportClass=16 then JSON_VALUE(DataInfo,'$."LC-14-3-2"') --LC
  291. when DataVersion='1.1' and ReportClass=17 then JSON_VALUE(DataInfo,'$."BC-13-3-2"') --BC
  292. end
  293. ) where DataVersion='1.1'
  294. --中成药费
  295. if exists(select * from D_MedicalRecord where JSON_VALUE(DataInfo,'$."CM-6-20"') is null and DataVersion='1.1' )
  296. update D_MedicalRecord set DataInfo=
  297. JSON_MODIFY(DataInfo, '$."CM-6-20"',
  298. case when DataVersion='1.1' and ReportClass=1 then JSON_VALUE(DataInfo,'$."STEMI-9-1-3-3"') --STEMI
  299. when DataVersion='1.1' and ReportClass=2 then JSON_VALUE(DataInfo,'$."HF-9-1-3-3"') --HF
  300. when DataVersion='1.1' and ReportClass=3 then JSON_VALUE(DataInfo,'$."Cap-Adult-10-3-3"') --Cap-Adult
  301. when DataVersion='1.1' and ReportClass=4 then JSON_VALUE(DataInfo,'$."Hip-10-4-3"') --Hip
  302. when DataVersion='1.1' and ReportClass=5 then JSON_VALUE(DataInfo,'$."Knee-10-4-3"') --Knee
  303. when DataVersion='1.1' and ReportClass=6 then JSON_VALUE(DataInfo,'$."STK-11-3-3"') --STK
  304. when DataVersion='1.1' and ReportClass=7 then JSON_VALUE(DataInfo,'$."CABG-10-4-3"') --CABG
  305. when DataVersion='1.1' and ReportClass=8 then JSON_VALUE(DataInfo,'$."Cap-9-3-3"') --Cap
  306. when DataVersion='1.1' and ReportClass=9 then JSON_VALUE(DataInfo,'$."PIP-5-4-3"') --PIP
  307. when DataVersion='1.1' and ReportClass=10 then JSON_VALUE(DataInfo,'$."CS-10-4-3"') --CS
  308. when DataVersion='1.1' and ReportClass=11 then JSON_VALUE(DataInfo,'$."AECOPD-9-3-3"') --AECOPD
  309. when DataVersion='1.1' and ReportClass=12 then JSON_VALUE(DataInfo,'$."DVT-5-4-3"') --DVT
  310. when DataVersion='1.1' and ReportClass=13 then JSON_VALUE(DataInfo,'$."TIA-8-3-3"') --TIA
  311. when DataVersion='1.1' and ReportClass=14 then JSON_VALUE(DataInfo,'$."HBIPS-13-3-3"') --HBIPS
  312. when DataVersion='1.1' and ReportClass=15 then JSON_VALUE(DataInfo,'$."TC-9-3-3"') --TC
  313. when DataVersion='1.1' and ReportClass=16 then JSON_VALUE(DataInfo,'$."LC-14-3-3"') --LC
  314. when DataVersion='1.1' and ReportClass=17 then JSON_VALUE(DataInfo,'$."BC-13-3-3"') --BC
  315. end
  316. ) where DataVersion='1.1'
  317. --评价
  318. if exists(select * from D_MedicalRecord where JSON_VALUE(DataInfo,'$."CM-5-1"') is null and DataVersion='1.1' )
  319. update D_MedicalRecord set DataInfo=JSON_MODIFY(DataInfo, '$."CM-5-1"', 'y') where DataVersion='1.1'
  320. if exists(select * from D_MedicalRecord where JSON_VALUE(DataInfo,'$."CM-5-2-1"') is null and DataVersion='1.1' )
  321. update D_MedicalRecord set DataInfo=JSON_MODIFY(DataInfo, '$."CM-5-2-1"', 'a') where DataVersion='1.1'
  322. if exists(select * from D_MedicalRecord where JSON_VALUE(DataInfo,'$."CM-5-2-2"') is null and DataVersion='1.1' )
  323. update D_MedicalRecord set DataInfo=JSON_MODIFY(DataInfo, '$."CM-5-2-2"', 'a') where DataVersion='1.1'
  324. if exists(select * from D_MedicalRecord where JSON_VALUE(DataInfo,'$."CM-5-2-3"') is null and DataVersion='1.1' )
  325. update D_MedicalRecord set DataInfo=JSON_MODIFY(DataInfo, '$."CM-5-2-3"', 'a') where DataVersion='1.1'
  326. if exists(select * from D_MedicalRecord where JSON_VALUE(DataInfo,'$."CM-5-2-4"') is null and DataVersion='1.1' )
  327. update D_MedicalRecord set DataInfo=JSON_MODIFY(DataInfo, '$."CM-5-2-4"', 'a') where DataVersion='1.1'
  328. if exists(select * from D_MedicalRecord where JSON_VALUE(DataInfo,'$."CM-5-2-5"') is null and DataVersion='1.1' )
  329. update D_MedicalRecord set DataInfo=JSON_MODIFY(DataInfo, '$."CM-5-2-5"', 'a') where DataVersion='1.1'
  330. if exists(select * from D_MedicalRecord where JSON_VALUE(DataInfo,'$."CM-5-2-6"') is null and DataVersion='1.1' )
  331. update D_MedicalRecord set DataInfo=JSON_MODIFY(DataInfo, '$."CM-5-2-6"', 'a') where DataVersion='1.1'
  332. if exists(select * from D_MedicalRecord where JSON_VALUE(DataInfo,'$."CM-5-2-7"') is null and DataVersion='1.1' )
  333. update D_MedicalRecord set DataInfo=JSON_MODIFY(DataInfo, '$."CM-5-2-7"', 'a') where DataVersion='1.1'
  334. if exists(select * from D_MedicalRecord where JSON_VALUE(DataInfo,'$."CM-5-2-8"') is null and DataVersion='1.1' )
  335. update D_MedicalRecord set DataInfo=JSON_MODIFY(DataInfo, '$."CM-5-2-8"', 'a') where DataVersion='1.1'
  336. if exists(select * from D_MedicalRecord where JSON_VALUE(DataInfo,'$."CM-5-2-9"') is null and DataVersion='1.1' )
  337. update D_MedicalRecord set DataInfo=JSON_MODIFY(DataInfo, '$."CM-5-2-9"', 'a') where DataVersion='1.1'
  338. if exists(select * from D_MedicalRecord where JSON_VALUE(DataInfo,'$."CM-5-2-10"') is null and DataVersion='1.1' )
  339. update D_MedicalRecord set DataInfo=JSON_MODIFY(DataInfo, '$."CM-5-2-10"', 'a') where DataVersion='1.1'
  340. if exists(select * from D_MedicalRecord where JSON_VALUE(DataInfo,'$."CM-5-2-11"') is null and DataVersion='1.1' )
  341. update D_MedicalRecord set DataInfo=JSON_MODIFY(DataInfo, '$."CM-5-2-11"', 'a') where DataVersion='1.1'
  342. --手术并发症
  343. if exists(select * from D_MedicalRecord where JSON_VALUE(DataInfo,'$."CM-2-1"') is null and DataVersion='1.1' and ReportClass in (4,5,7,9,12,15,16,17) )
  344. update D_MedicalRecord set DataInfo=
  345. JSON_MODIFY(DataInfo, '$."CM-2-1"',
  346. case
  347. when DataVersion='1.1' and ReportClass=4 then JSON_VALUE(DataInfo,'$."Hip-7-1"') --Hip
  348. when DataVersion='1.1' and ReportClass=5 then JSON_VALUE(DataInfo,'$."Knee-7-1"') --Knee
  349. when DataVersion='1.1' and ReportClass=7 then JSON_VALUE(DataInfo,'$."CABG-6-2-1"') --CABG
  350. when DataVersion='1.1' and ReportClass=9 then JSON_VALUE(DataInfo,'$."PIP-3-1"') --PIP
  351. when DataVersion='1.1' and ReportClass=12 then JSON_VALUE(DataInfo,'$."DVT-3-1"') --DVT
  352. when DataVersion='1.1' and ReportClass=15 then JSON_VALUE(DataInfo,'$."TC-3-1"') --TC
  353. when DataVersion='1.1' and ReportClass=16 then JSON_VALUE(DataInfo,'$."LC-6-1"') --LC
  354. when DataVersion='1.1' and ReportClass=17 then JSON_VALUE(DataInfo,'$."BC-7-1"') --BC
  355. end
  356. ) where DataVersion='1.1' and ReportClass in (4,5,7,9,12,15,16,17)
  357. --sep 去除编码 B73.7、R65.2、R65.3、R65.9
  358. if exists(select * from Report_Leak where ReportClass = 35 and
  359. (DieaseICD like '%B73.7%' or DieaseICD like '%R65.2%' or DieaseICD like '%R65.3%' or DieaseICD like '%R65.9%'
  360. or ICD10_oth like '%B73.7%' or ICD10_oth like '%R65.2%' or ICD10_oth like '%R65.3%' or ICD10_oth like '%R65.9%'
  361. )
  362. and DieaseICD not like '%A0%' and DieaseICD not like '%A2%' and DieaseICD not like '%A3%' and DieaseICD not like '%A4%'
  363. and DieaseICD not like '%A5%' and DieaseICD not like '%B3%'
  364. and ICD10_oth not like '%A0%' and ICD10_oth not like '%A2%' and ICD10_oth not like '%A3%' and ICD10_oth not like '%A4%'
  365. and ICD10_oth not like '%A5%' and ICD10_oth not like '%B3%'
  366. and DealReport=0 )
  367. update Report_Leak set DealReport=2,NoMustReportReason='B73.7、R65.2、R65.3、R65.9 无需上报'
  368. where ReportClass = 35 and (DieaseICD like '%B73.7%' or DieaseICD like '%R65.2%' or DieaseICD like '%R65.3%' or DieaseICD like '%R65.9%'
  369. or ICD10_oth like '%B73.7%' or ICD10_oth like '%R65.2%' or ICD10_oth like '%R65.3%' or ICD10_oth like '%R65.9%'
  370. )
  371. and DieaseICD not like '%A0%' and DieaseICD not like '%A2%' and DieaseICD not like '%A3%' and DieaseICD not like '%A4%'
  372. and DieaseICD not like '%A5%' and DieaseICD not like '%B3%'
  373. and ICD10_oth not like '%A0%' and ICD10_oth not like '%A2%' and ICD10_oth not like '%A3%' and ICD10_oth not like '%A4%'
  374. and ICD10_oth not like '%A5%' and ICD10_oth not like '%B3%'
  375. and DealReport=0
  376. --sep上报说明
  377. if exists(select * from D_Disease_Category where DiseaseContent like '%R65.2%' and DCID = 35)
  378. update D_Disease_Category set DiseaseContent=
  379. '<div class="content"><p class="p" style="font-family: Calibri; font-size: 12pt; margin-top: 4pt; margin-bottom: 4pt; line-height: 20.8px;"><span style="line-height: 18.2px; font-size: 10.5pt; background: #ffffff;"><span style="font-family: Helvetica Neue;">上报内容</span></span></p>
  380. <p class="p" style="font-family: Calibri; font-size: 12pt; margin-top: 4pt; margin-bottom: 4pt; line-height: 20.8px;"><span style="line-height: 18.2px; font-size: 10.5pt; background: #ffffff;"><span style="font-family: Helvetica Neue;"> </span></span></p>
  381. <div class="page" title="Page 65">
  382. <div class="layoutArea">
  383. <div class="column">
  384. <p><span style="font-size: 12pt; font-family: FangSong;">主要诊断/其他诊断 ICD-10 编码:A02.1,A22.7,A32.7, A40.1 至 A40.9, A41.0 至 A41.9,A42.7,A54.8,B37.7的出院患者。&nbsp;</span></p>
  385. <p>&nbsp;</p>
  386. <span style="font-size: 12pt;"> </span></div>
  387. <span style="font-size: 12pt;"> </span></div>
  388. <span style="font-size: 12pt;"> </span></div>
  389. <p class="p" style="font-family: Calibri; font-size: 12pt; margin-top: 4pt; margin-bottom: 4pt; line-height: 20.8px;"><span style="line-height: 18.2px; font-size: 10.5pt; background: #ffffff;"><span style="font-family: Helvetica Neue;">无需上报内容</span></span></p>
  390. <p class="p" style="font-family: Calibri; font-size: 12pt; margin-top: 4pt; margin-bottom: 4pt; line-height: 20.8px;">&nbsp;</p>
  391. <p class="p" style="font-family: Calibri; font-size: 12pt; margin-top: 4pt; margin-bottom: 4pt; line-height: 20.8px;"><span style="font-family: -apple-system; line-height: 19.0667px; color: #333333; font-size: 11pt;">1、参与临床药物与器械试验的病例</span></p>
  392. <p class="p" style="font-family: Calibri; font-size: 12pt; margin-top: 4pt; margin-bottom: 4pt; line-height: 20.8px;"><span style="font-family: -apple-system; line-height: 19.0667px; color: #333333; font-size: 11pt;">2、到达医院前,已经被确认采取安慰治疗或姑息治疗者</span></p>
  393. <p class="p" style="font-family: Calibri; font-size: 12pt; margin-top: 4pt; margin-bottom: 4pt; line-height: 20.8px;"><span style="font-family: -apple-system; line-height: 19.0667px; color: #333333; font-size: 11pt;">3、18岁以下的病例</span></p>
  394. <p class="p" style="font-family: Calibri; font-size: 12pt; margin-top: 4pt; margin-bottom: 4pt; line-height: 20.8px;"><span style="font-family: -apple-system; line-height: 19.0667px; color: #333333; font-size: 11pt;">4、本次住院天数大于90天</span></p>
  395. <p class="p" style="font-family: Calibri; font-size: 12pt; margin-top: 4pt; margin-bottom: 4pt; line-height: 20.8px;"><span style="font-family: -apple-system; line-height: 19.0667px; color: #333333; font-size: 11pt;">5、由外院感染性休克诊疗后转入本院的病例</span></p>
  396. <p class="p" style="font-family: Calibri; font-size: 12pt; margin-top: 4pt; margin-bottom: 4pt; line-height: 20.8px;"><span style="font-family: -apple-system; line-height: 19.0667px; color: #333333; font-size: 11pt;">6、在医师病程记录,有在严重脓毒症出现后3小时内出现被确认采取安慰治疗或姑息治疗的医嘱</span></p>
  397. <p class="p" style="font-family: Calibri; font-size: 12pt; margin-top: 4pt; margin-bottom: 4pt; line-height: 20.8px;"><span style="font-family: -apple-system; line-height: 19.0667px; color: #333333; font-size: 11pt;">7、在医师病程记录,在感染性休克出现后6小时内出现被确认采取安慰治疗或姑息治疗的医嘱</span></p>
  398. <p class="MsoNormal" style="margin: 0pt 0pt 0.0001pt; text-align: justify; font-family: Calibri; font-size: 10.5pt;"><span style="font-size: 10.5pt;">&nbsp;</span></p></div>'
  399. where DCID = 35
  400. --HBV上报说明
  401. if exists(select * from D_Disease_Category where DiseaseContent not like '%任意一项诊断%' and DCID = 50)
  402. update D_Disease_Category set DiseaseContent='
  403. <div class="content"><p>上报内容:</p>
  404. <div class="page">
  405. <p><span>出院诊断中任意一项诊断(包含主要诊断和其他诊断)编码为:O98.4,Z22.5 + O80 至 O84+Z37; 且伴1阴道分娩操作 ICD-9-CM-3 编码 72.0 至 72.9,73.0, 73.1,73.21,73.4 至 73.6,73.9;或伴2剖宫产手术 ICD 9-CM-3 编码:74.0,74.1,74.2,74.4,74.99 的出院患者。 </span></p>
  406. </div>
  407. <p>&nbsp;</p>
  408. <p>无需上报内容:</p>
  409. <p>1.由外院住院诊疗后转入本院的病例</p>
  410. <p>2.参与临床药物与器械试验的病例</p>
  411. <p><span style="white-space: pre;">3</span>.18岁以下的病例</p>
  412. <p><span style="white-space: pre;">4.</span>同一疾病30日内重复入院</p>
  413. <p><span style="white-space: pre;">5.</span>本次住院超过90天!</p>
  414. <p>6.病历记录孕期<28周或不明的</p>
  415. <p>&nbsp;</p>
  416. <p>数据验证:</p>
  417. <p><span style="white-space: pre;"> </span>1. *是必填项目,其他项未填则按未做统计,★为本病种的核心(重点)质量监控指标。</p>
  418. <p><span style="white-space: pre;"> </span>2. 强制验证项若超过正常值,系统给予提示,不允许填写。</p></div>'
  419. where DiseaseContent not like '%任意一项诊断%' and DCID = 50
  420. --暂时保留 结束--