医院运营分析之病种费用分组比较(小提琴图) \* { 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-11 05:00 安徽
医保结算单中的诊断、手术操作信息对应了医保版的DIP分组及其分值。根据DIP技术规范2.0版,按照“主要疾病诊断+主要手术操作+相关手术操作”入组核心病种,或者进入“综合病种”,取得相应的分值。医院真实案例存在,超高或超低费用的案例,这种情况会按照标准分值进行相应的折扣处理。
对于医院来说,病例入组至关重要,病组费用分析尤其是对超高、超低病例的分析格外重要。DIP分组由不同的患者构成,每个患者的总费用及药品费等子费用也不尽相同。对于医疗机构来说,了解不同病种分组的费用结构也是十分必要,直接关系到部分患者在医保结算时是盈是亏。如何直观的观察DIP分组内的患者情况,筛选出超高、超低费用的患者?利用小提琴图特征,可以解决这个问题。
本文用小提琴图对疾病分组的费用进行可视化分析。
1.小提琴图
小提琴图,与箱线图类似,可以展示一组数据的四分位数、离群特异值。与箱线图略有不同的是,其在展示数据分布上显得更加直观。小提琴图的胖瘦轮廓,可以对应数据点的多少分布。
2.样例数据
样例数据是一组模拟的1万条患者记录数据,包括患者DIP分组、费用、主要诊断、次要诊断、主要手术、次要手术等信息。数据形如:
病案唯一标识
患者基本信息
入院日期
出院日期
主要诊断
其他诊断
主要手术
其他手术
住院天数
总费用
药品费
检查费
治疗费
手术费
护理费
DIP分组
M0000071
周ie,男,58岁
2024/2/9
2024/2/15
C50.9
6
11793
4618
2921
2678
0
1576
AB56
M0000206
杨ia,女,54岁
2023/6/21
2023/6/30
S72.0
I25.1,I10
37.23
9
58166
15455
9554
7722
20414
5021
AB56
M0000316
赵rl,女,42岁
2023/7/10
2023/7/19
C50.9
9
4552
1945
1070
847
0
690
AB56
M0000383
罗ge,女,39岁
2023/7/25
2023/8/1
C50.9
Z88.0
7
8360
4022
1877
1538
0
923
AB56
M0000385
何eg,男,69岁
2023/11/12
2023/11/21
C50.9
9
4396
1794
1208
1003
0
391
AB56
M0000428
王zu,男,40岁
2023/10/5
2023/10/10
C50.9
K29.0,E78.5
5
17632
7567
4025
4100
0
1940
AB56
M0000450
黄an,男,38岁
2024/3/27
2024/4/3
K57.30
F03
78.55
7
61208
19932
10702
8914
16009
5651
AB56
M0000642
刘jp,女,67岁
2023/12/19
2024/1/4
S52.0
N18.9
66.62
16
37705
7674
4998
4073
11181
9779
AB56
M0000649
徐vo,男,44岁
2024/2/7
2024/2/17
T14.9
F17.2
85.23
10
53065
16720
9947
5823
19199
1376
AB56
3.不同DIP组之间的费用比较
借助Deepseek分析数据,由于数据量较大,Deepseek无法读入所有数据。这里借助其生成R语言代码来分析:
基于附件数据,使用R语言做一个交互式统计分析,要求:
结果如下:
上述效果可以进行两两DIP病组费用比较,同时也可以展示病组费用分布情况。上图所示,AB56病组,0~25000费用区间患者更多。对于BC89病组,数据分布相对平滑。
4.DIP组内的病例分析
针对费用分布较为离散DIP组,可以进一步分析其组内病例情况。同样利用小提琴图,从诊断视角,发现数据量较少的超高、超低病例。
基于附件hospital_case_data_10000.xlsx数据,使用R语言做一个交互式统计分析,要求:
结果如下:
针对患者数较少的诊断,如只有一两个患者的诊断组,也可以发掘出来:
系列文章:
运营分析方法之波士顿矩阵图—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) 留言