医院运营分析科室病种比较(森林图) \* { margin: 0; padding: 0; outline: 0; } body { font-family: "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; line-height: 1.6; } .\_\_page\_content\_\_ { max-width: 667px; margin: 0 auto; padding: 20px; text-size-adjust: 100%; color: rgba(0, 0, 0, 0.9); padding-bottom: 64px; } .title { user-select: text; font-size: 22px; line-height: 1.4; margin-bottom: 14px; font-weight: 500; } .\_\_meta\_\_ { color: rgba(0, 0, 0, 0.3); font-size: 15px; line-height: 20px; hyphens: auto; word-break: break-word; margin-bottom: 50px; } .\_\_meta\_\_ .nick\_name { color: #576B95; } .\_\_meta\_\_ .copyright { color: rgba(0, 0, 0, 0.3); background-color: rgba(0, 0, 0, 0.05); padding: 0 4px; margin: 0 10px 10px 0; } blockquote.source { padding: 10px; margin: 30px 0; border-left: 5px solid #ccc; color: #333; font-style: italic; word-wrap: break-word; } blockquote.source a { cursor: pointer; text-decoration: underline; } .item\_show\_type\_0 > section { margin-top: 0; margin-bottom: 24px; } a { color: #576B95; text-decoration: none; cursor: default; } .text\_content { margin-bottom: 50px; user-select: text; font-size: 17px; white-space: pre-wrap; word-wrap: break-word; line-height: 28px; hyphens: auto; } .picture\_content .picture\_item { margin-bottom: 30px; } .picture\_content .picture\_item .picture\_item\_label { text-align: center; } img { max-width: 100%; } .pay\_subscribe\_notice { margin: 30px 0; padding: 20px; background: #fffbe6; border: 1px solid #ffe58f; border-radius: 8px; } .pay\_subscribe\_badge { display: inline-block; padding: 4px 12px; background: #faad14; color: #fff; border-radius: 4px; font-size: 14px; font-weight: 500; margin-bottom: 12px; } .pay\_subscribe\_desc { font-size: 15px; line-height: 1.8; color: rgba(0, 0, 0, 0.7); margin-bottom: 12px; } .pay\_subscribe\_hint { font-size: 13px; color: rgba(0, 0, 0, 0.4); } .\_\_bottom-bar\_\_ { display: flex; justify-content: space-between; align-items: center; position: fixed; bottom: 0; left: 0; right: 0; height: 64px; padding: 8px 20px; background: white; box-sizing: border-box; border-top: 1px solid rgba(0, 0, 0, 0.2); } .\_\_bottom-bar\_\_ .left { display: flex; align-items: center; font-size: 15px; white-space: nowrap; } .\_\_bottom-bar\_\_ .right { display: flex; } .\_\_bottom-bar\_\_ .sns\_opr\_btn { display: flex; align-items: center; user-select: none; background: transparent; border: 0; color: rgba(0, 0, 0, 0.9); font-size: 14px; } .\_\_bottom-bar\_\_ .sns\_opr\_btn:not(:last-child) { margin-right: 16px; } .\_\_bottom-bar\_\_ .sns\_opr\_btn > img { margin-right: 4px; }
医院运营分析科室病种比较(森林图)
原创 Hi您好 恒健知行 2025-10-15 00:00 安徽
科室运营分析,尤其是对病种进行深入分析时,少不了对不同组病种之间进行比较。一方面有病种维度的相互比较需求,凸出病种之间费用指标的差距;另一方面,需要了解病种在时间维度上的变化趋势。本文拟解决上述问题。
1.样例数据
患者住院记录模拟数据.csv样例数据(点击可下载)是一组患者入组的模拟数据,包括了入院日期、主要诊断、次要诊断、主要手术、其他手术、住院天数、总费用、DIP分组和科室信息。
病案唯一标识
入院日期
主要诊断
其他诊断
主要手术
其他手术
住院天数
总费用
DIP分组
科室
M2025000001
2025/1/30
J20.9
Z29.1,S06.9
5
11425
OE90
呼吸内科
M2025000002
2025/1/28
J20.9
Z29.1,S06.9
7
15439
OE90
呼吸内科
M2025000003
2025/1/28
J20.9
Z29.1,S06.9
7
14359
OE90
呼吸内科
M2025000004
2025/1/28
J20.9
7
14615
OE90
呼吸内科
M2025000005
2025/1/13
J20.9
Z29.1,S06.9
6
14071
OE90
呼吸内科
M2025000006
2025/1/7
J20.9
Z29.1,S06.9
5
10668
OE90
呼吸内科
M2025000007
2025/1/22
J20.9
Z29.1,S06.9
6
15721
OE90
呼吸内科
M2025000008
2025/1/3
J20.9
Z29.1,S06.9
3
9180
OE90
呼吸内科
M2025000009
2025/1/23
J20.9
Z29.1,S06.9
6
14442
OE90
呼吸内科
M2025000010
2025/1/27
J20.9
7
14766
OE90
呼吸内科
M2025000011
2025/1/12
J20.9
Z29.1,S06.9
9
16170
OE90
呼吸内科
M2025000012
2025/1/24
J20.9
Z29.1,S06.9
3
7337
OE90
呼吸内科
M2025000013
2025/1/20
J20.9
Z29.1,S06.9
5
13029
OE90
呼吸内科
M2025000014
2025/1/16
J20.9
Z29.1,S06.9
6
15028
OE90
呼吸内科
M2025000015
2025/1/1
J20.9
Z29.1,S06.9
7
16985
OE90
呼吸内科
2.森林图
森林图是一种统计图,以统计指标(均值、方差)和统计分析方法(方差分析)为基础,用数值运算结果绘制出的图型,常用语流行病统计研究,如Meta分析。因为其可以将上述统计信息全部表示出来,是一种简单直观地展示单一研究和汇总研究的可视化图表。这里借助森林图描绘病组之间的费用差异,展示病种的费用均值(中位数)及置信区间值(四份位数值)。
3.科室内病种组之间的费用比较
借助Deepseek,给出进行病种之间比较的代码。
请使用 R 语言shiny基于附件数据绘制交互式的分组比较森林图。具体要求如下:
Deepseek生成的代码,执行后我们可以得出如下图效果。下面效果图提供了科室和时间(月)的筛选交互效果,可以进行科室内,不同病种之间费用比较。图形比较的是病种费用,采用了均值比较和中位数比较两种方式。相较于病种费用均值比较,在病种病例数较少,且不服务正态分布的情况中位数比较更具有代表性。
4.科室病种组费用动态比较
参考动态条形图的制作方式,我们也可以绘制科室内,病种费用连续月份的变化趋势。
5.小结
森林图是一种信息密度很高的图例,可以同时展示均值或中位数、置信区间或四分位区间、样本量的图例,可以直观比较不同病种组间的费用差异,识别病组之间费用差异是否有统计学差异(置信区间是否重叠)。
此外,森林图中均值+95%CI图形适合正态分布、大样本数据;中位数+IQR图形更适合偏态分布、小样本数据,抗异常值干扰。
图例在管理上,可以帮助医院管理者识别费用异常的病种组,为医保支付标准制定提供依据;其中,动态分析可以进行时间趋势监测,识别费用增长过快的病种组;科室间(多病区情况)对比,则可以分享同一病种在不同病区的费用差异,识别最佳实践科室。
系列文章:
运营分析方法之波士顿矩阵图—Deepseek帮忙还需要其他工具吗?
恒健知行
 阅读 赞  分享 ’%3E %3Cg transform=‘translate(0 -2.349)’%3E %3Cpath d=‘M0 2.349h24v24H0z’/%3E %3Cpath fill=’%23576B95’ d=‘M16.45 7.68c-.954 0-1.94.362-2.77 1.113l-1.676 1.676-1.853-1.838a3.787 3.787 0 0 0-2.63-.971 3.785 3.785 0 0 0-2.596 1.112 3.786 3.786 0 0 0-1.113 2.687c0 .97.368 1.938 1.105 2.679l7.082 6.527 7.226-6.678a3.787 3.787 0 0 0 .962-2.618 3.785 3.785 0 0 0-1.112-2.597A3.687 3.687 0 0 0 16.45 7.68zm3.473.243a4.985 4.985 0 0 1 1.464 3.418 4.98 4.98 0 0 1-1.29 3.47l-.017.02-7.47 6.903a.9.9 0 0 1-1.22 0l-7.305-6.73-.008-.01a4.986 4.986 0 0 1-1.465-3.535c0-1.279.488-2.56 1.465-3.536A4.985 4.985 0 0 1 7.494 6.46c1.24-.029 2.49.4 3.472 1.29l.01.01L12 8.774l.851-.85.01-.01c1.046-.951 2.322-1.434 3.59-1.434 1.273 0 2.52.49 3.472 1.442z’/%3E %3C/g%3E %3C/g%3E %3C/g%3E%3C/svg%3E) 推荐 ’ fill=’%23000’ fill-opacity=’.9’/%3E%3C/svg%3E) 留言