條件:過(guò)濾樹里面所需要的數(shù)據(jù),并且空的目錄也不要顯示赴恨,這里@kpi_type-{指標(biāo):1疹娶,目錄:0}。
@kpi_souce :{"統(tǒng)計(jì)指標(biāo)":1 或 -10 (默認(rèn)-10)伦连,“考評(píng)指標(biāo)”:2雨饺,“計(jì)算指標(biāo)”:3挣饥;},
(注意:有目錄指標(biāo)沛膳,即有子節(jié)點(diǎn)扔枫,但是kpi_type為1)
目的:找出樹里面所有的統(tǒng)計(jì)指標(biāo),樹為無(wú)限極沒(méi)限制锹安。并且不顯示空的目錄
var testJson={ kpi_id: 100000000, kpi_name: '日常統(tǒng)計(jì)學(xué)評(píng)價(jià)', par_kpi_id: -2, kpi_type: 0, kpi_source: '-10', children: [{ kpi_id: 101000000, kpi_name: '醫(yī)院運(yùn)行基本監(jiān)測(cè)指標(biāo)', par_kpi_id: 100000000, kpi_type: 0, kpi_source: '-10', children: [{ kpi_id: 101010000, kpi_name: '資源配置', par_kpi_id: 101000000, kpi_type: 0, kpi_source: '-10', children: [{ kpi_id: 101010100, kpi_name: '實(shí)際開放床位', par_kpi_id: 101010000, kpi_type: 1, kpi_source: '2', children: []}, { kpi_id: 101010200, kpi_name: '重癥醫(yī)學(xué)科床位數(shù)', par_kpi_id: 101010000, kpi_type: 1, kpi_source: '3', children: []}, { kpi_id: 101010300, kpi_name: '急診留觀床位數(shù)', par_kpi_id: 101010000, kpi_type: 1, kpi_source: '3', children: []}, { kpi_id: 101010400, kpi_name: '應(yīng)急用床位', par_kpi_id: 101010000, kpi_type: 1, kpi_source: '3', children: []}, { kpi_id: 101010500, kpi_name: '全院職工總數(shù)', par_kpi_id: 101010000, kpi_type: 1, kpi_source: '3', children: []}, { kpi_id: 101010600, kpi_name: '衛(wèi)生技術(shù)人員數(shù)', par_kpi_id: 101010000, kpi_type: 1, kpi_source: '3', children: [{ kpi_id: 101010601, kpi_name: '醫(yī)師數(shù)', par_kpi_id: 101010600, kpi_type: 1, kpi_source: '3', children: []}, { kpi_id: 101010602, kpi_name: '護(hù)理人員數(shù)', par_kpi_id: 101010600, disp_order: 11, kpi_type: 1, kpi_source: '3', children: []}, { kpi_id: 101010603, kpi_name: '醫(yī)技人員數(shù)', par_kpi_id: 101010600, kpi_type: 1, kpi_source: '3', children: []},]}, { kpi_id: 101010700, kpi_name: '醫(yī)院醫(yī)用建筑面積', par_kpi_id: 101010000, kpi_type: 1, kpi_source: '3', children: []},]}, { kpi_id: 101020000, kpi_name: '工作負(fù)荷', par_kpi_id: 101000000, disp_order: 14, kpi_type: 0, kpi_source: '-10', children: [{ kpi_id: 101020100, kpi_name: '門急診', par_kpi_id: 101020000, disp_order: 15, kpi_type: 0, kpi_source: '-10', children: [{ kpi_id: 101020101, kpi_name: '年門診人次', par_kpi_id: 101020100, disp_order: 16, kpi_type: 1, kpi_source: '3', children: []}, { kpi_id: 101020102, kpi_name: '年健康體檢人次', par_kpi_id: 101020100, disp_order: 17, kpi_type: 1, kpi_source: '3', children: []}, { kpi_id: 101020103, kpi_name: '年急診人次', par_kpi_id: 101020100, kpi_type: 1, kpi_source: '3', children: []}, { kpi_id: 101020104, kpi_name: '年急診留觀人次', par_kpi_id: 101020100, kpi_type: 1, kpi_source: '3', children: []},]}, { kpi_id: 101020200, kpi_name: '住院', par_kpi_id: 101020000, kpi_type: 0, kpi_source: '-10', children: [{ kpi_id: 101020201, kpi_name: '年住院患者入院例數(shù)', par_kpi_id: 101020200, kpi_type: 1, kpi_source: '3', children: []}, { kpi_id: 101020202, kpi_name: '年出院例數(shù)', par_kpi_id: 101020200, kpi_type: 1, kpi_source: '3', children: []}, { kpi_id: 101020203, kpi_name: '出院患者實(shí)際占用總床日數(shù)', par_kpi_id: 101020200, kpi_type: 1, kpi_source: '3', children: []},]}, { kpi_id: 101020300, kpi_name: '手術(shù)工作量', par_kpi_id: 101020000, kpi_type: 0, kpi_source: '-10', children: [{ kpi_id: 101020301, kpi_name: '年住院手術(shù)例數(shù)', par_kpi_id: 101020300, kpi_type: 1, kpi_source: '3', children: []}, { kpi_id: 101020302, kpi_name: '年門診手術(shù)例數(shù)', par_kpi_id: 101020300, kpi_type: 1, kpi_source: '3', children: []},]},]}, { kpi_id: 101030000, kpi_name: '醫(yī)療質(zhì)量', par_kpi_id: 101000000, kpi_type: 0, kpi_source: '-10', children: [{ kpi_id: 101030300, kpi_name: '住院患者死亡例數(shù)', par_kpi_id: 101030000, disp_order: 54, kpi_type: 1, kpi_source: '3', children: []}, { kpi_id: 101030400, kpi_name: '住院患者自動(dòng)出院例數(shù)', par_kpi_id: 101030000, kpi_type: 1, kpi_source: '3', children: []}, { kpi_id: 101030500, kpi_name: '住院手術(shù)例數(shù)', par_kpi_id: 101030000, kpi_type: 1, kpi_source: '3', children: [{ kpi_id: 101030501, kpi_name: '住院手術(shù)死亡例數(shù)', par_kpi_id: 101030500, kpi_type: 1, kpi_source: '3', children: []},]}, { kpi_id: 101030600, kpi_name: '住院危重?fù)尵壤龜?shù)', par_kpi_id: 101030000, kpi_type: 1, kpi_source: '1', children: [{ kpi_id: 101030601, kpi_name: '住院危重?fù)尵人劳隼龜?shù)', par_kpi_id: 101030600, kpi_type: 1, kpi_source: '1', children: []},]}, { kpi_id: 101030700, kpi_name: '急診科危重患者搶救例數(shù)', par_kpi_id: 101030000, kpi_type: 1, kpi_source: '3', children: [{ kpi_id: 101030701, kpi_name: '急診科危重患者搶救死亡例數(shù)', par_kpi_id: 101030700, kpi_type: 1, kpi_source: '3', children: []},]}, { kpi_id: 101030100, kpi_name: '手術(shù)冰凍與石蠟診斷', par_kpi_id: 101030000, kpi_type: 0, kpi_source: '-10', children: [{ kpi_id: 101030101, kpi_name: '手術(shù)冰凍與石蠟診斷人數(shù)', par_kpi_id: 101030100, kpi_type: 1, kpi_source: '3', children: []}, { kpi_id: 101030102, kpi_name: '手術(shù)冰凍與石蠟診斷符合例數(shù)', par_kpi_id: 101030100, kpi_type: 1, kpi_source: '3', children: []}, { kpi_id: 101030103, kpi_name: '手術(shù)冰凍與石蠟診斷符合率', par_kpi_id: 101030100, kpi_type: 1, kpi_source: '2', children: []},]}, { kpi_id: 101030200, kpi_name: '惡性腫瘤患者手術(shù)前后病理診斷', par_kpi_id: 101030000, kpi_type: 0, kpi_source: '-10', children: [{ kpi_id: 101030201, kpi_name: '惡性腫瘤患者手術(shù)前后病理診斷人數(shù)', par_kpi_id: 101030200, kpi_type: 1, kpi_source: '3', children: []}, { kpi_id: 101030202, par_kpi_id: 101030200, kpi_type: 1, kpi_source: '3', children: []}, { kpi_id: 101030203, kpi_name: '惡性腫瘤患者手術(shù)前后病理診斷符合率', par_kpi_id: 101030200, kpi_type: 1, kpi_source: '3', children: []},]}, { kpi_id: 101030800, kpi_name: '新生兒患者住院死亡率', par_kpi_id: 101030000, kpi_type: 0, kpi_source: '-10', children: [{ kpi_id: 101030801, kpi_name: '新生兒患者住院例數(shù)', par_kpi_id: 101030800, disp_order: 101030801, kpi_type: 1, kpi_source: '3', children: [{ kpi_id: 101030802, kpi_name: '新生兒患者住院死亡例數(shù)', par_kpi_id: 101030801, kpi_type: 1, kpi_source: '3', children: []},]},]},]}, { kpi_id: 101040000, kpi_name: '工作效率', par_kpi_id: 101000000, kpi_type: 0, kpi_source: '-10', children: [{ kpi_id: 101040100, kpi_name: '出院患者平均住院日', par_kpi_id: 101040000, kpi_type: 1, kpi_source: '3', children: []}, { kpi_id: 101040200, kpi_name: '平均每張床工作日', par_kpi_id: 101040000, kpi_type: 1, kpi_source: '3', children: []}, { kpi_id: 101040300, kpi_name: '床位使用率(%)', par_kpi_id: 101040000, kpi_type: 1, kpi_source: '2', children: []}, { kpi_id: 101040400, kpi_name: '床位周轉(zhuǎn)次數(shù)', par_kpi_id: 101040000, kpi_type: 1, kpi_source: '3', children: []},]}, { kpi_id: 101050000, kpi_name: '患者負(fù)擔(dān)', par_kpi_id: 101000000, kpi_type: 0, kpi_source: '-10', children: [{ kpi_id: 101050100, kpi_name: '每門診人次費(fèi)用', par_kpi_id: 101050000, kpi_type: 1, kpi_source: '3', children: [{ kpi_id: 101050101, kpi_name: '每門診人次藥費(fèi)', par_kpi_id: 101050100, kpi_type: 1, kpi_source: '3', children: []},]}, { kpi_id: 101050200, kpi_name: '每住院人次費(fèi)用', par_kpi_id: 101050000, disp_order: 91, kpi_type: 1, kpi_source: '3', children: [{ kpi_id: 101050201, kpi_name: '每住院人次藥費(fèi)', par_kpi_id: 101050200, disp_order: 92, kpi_type: 1, kpi_source: '3', children: []},]},]}, { kpi_id: 101060000, kpi_name: '資產(chǎn)運(yùn)營(yíng)', par_kpi_id: 101000000, disp_order: 93, kpi_type: 0, kpi_source: '-10', children: [{ kpi_id: 101060100, kpi_name: '流動(dòng)比率(%)', par_kpi_id: 101060000, disp_order: 94, kpi_type: 1, kpi_source: '3',children: []}, { kpi_id: 101060200, kpi_name: '速動(dòng)比率(%)', par_kpi_id: 101060000, disp_order: 95, kpi_type: 1, kpi_source: '3', children: []}, { kpi_id: 101060300, kpi_name: '醫(yī)療收入/百元固定資產(chǎn)', par_kpi_id: 101060000, disp_order: 96, kpi_type: 1, kpi_source: '3', children: []}, { kpi_id: 101060400, kpi_name: '業(yè)務(wù)支出/百元業(yè)務(wù)收入', par_kpi_id: 101060000, disp_order: 97, kpi_type: 1, kpi_source: '3', children: []}, { kpi_id: 101060500, kpi_name: '資產(chǎn)負(fù)債率(%)', par_kpi_id: 101060000, disp_order: 98, kpi_type: 1, kpi_source: '3', children: []}, { kpi_id: 101060600, kpi_name: '固定資產(chǎn)總值(萬(wàn)元)', par_kpi_id: 101060000, disp_order: 99, kpi_type: 1, kpi_source: '3', children: []}, { kpi_id: 101060700, kpi_name: '醫(yī)療收入(萬(wàn)元)', par_kpi_id: 101060000, disp_order: 100, kpi_type: 1, kpi_source: '3', children: []}, { kpi_id: 101060800, kpi_name: '醫(yī)療收入中藥品收入比率(%)', par_kpi_id: 101060000, disp_order: 101, kpi_type: 1, kpi_source: '3', children: []}, { kpi_id: 101060900, kpi_name: '醫(yī)療收入中醫(yī)用材料收入比率(%)', par_kpi_id: 101060000, disp_order: 102, kpi_type: 1, kpi_source: '3', children: []},]}, { kpi_id: 101070000, kpi_name: '科研成果', par_kpi_id: 101000000, disp_order: 103, kpi_type: 0, kpi_source: '-10', children: [{ kpi_id: 101070100, kpi_name: '國(guó)內(nèi)論文數(shù)ISSN', par_kpi_id: 101070000, disp_order: 104, kpi_type: 1, kpi_source: '3', children: []}, { kpi_id: 101070200, kpi_name: '國(guó)內(nèi)論文數(shù)及被引用數(shù)次(以中國(guó)科技核心期刊發(fā)布信息為準(zhǔn))', par_kpi_id: 101070000, disp_order: 105, kpi_type: 1, kpi_source: '3', children: []}, { kpi_id: 101070300, kpi_name: 'SCI收錄論文數(shù)', par_kpi_id: 101070000, disp_order: 106, kpi_type: 1, kpi_source: '3', children: [{ kpi_id: 101070301, kpi_name: 'SCI論文數(shù)/每百?gòu)堥_放床位', par_kpi_id: 101070300, disp_order: 101070301, kpi_type: 1, kpi_source: '3', children: []},]}, { kpi_id: 101070400, kpi_name: '承擔(dān)與完成國(guó)家級(jí)科研課題數(shù)', par_kpi_id: 101070000, kpi_type: 1, kpi_source: '3', children: [{ kpi_id: 101070401, kpi_name: '國(guó)家級(jí)科研課題數(shù)/每百?gòu)堥_放床位', par_kpi_id: 101070400, kpi_type: 1, kpi_source: '3', children: []},]}, { kpi_id: 101070500, kpi_name: '承擔(dān)與完成省級(jí)科研課題數(shù)', par_kpi_id: 101070000, disp_order: 108, kpi_type: 1, kpi_source: '3', children: [{ kpi_id: 101070501, kpi_name: '省級(jí)科研基金額度/每百?gòu)堥_放床位', par_kpi_id: 101070500, kpi_type: 1, kpi_source: '3', children: []},]}, { kpi_id: 101070600, kpi_name: '承擔(dān)國(guó)家級(jí)科研基金額度(萬(wàn)元)', par_kpi_id: 101070000, kpi_type: 1, kpi_source: '3', children: [{ kpi_id: 101070601, kpi_name: '國(guó)家級(jí)科研基金額度/每百?gòu)堥_放床位', par_kpi_id: 101070600, kpi_type: 1, kpi_source: '3', children: []},]}, { kpi_id: 101070700, kpi_name: '承擔(dān)省級(jí)科研基金額度(萬(wàn)元)', par_kpi_id: 101070000, kpi_type: 1, kpi_source: '-10', children: [{ kpi_id: 101070701, kpi_name: '省級(jí)科研基金額度/每百?gòu)堥_放床位', par_kpi_id: 101070700, kpi_type: 1, kpi_source: '3', children: []},]},]},]}, { kpi_id: 114, kpi_name: '醫(yī)療質(zhì)量與安全監(jiān)測(cè)指標(biāo)', par_kpi_id: 100000000, disp_order: 114, kpi_type: 0, kpi_source: '-10', children: [{ kpi_id: 115, kpi_name: '住院重點(diǎn)疾病', par_kpi_id: 114, kpi_type: 0, kpi_source: '-10', children: [{ kpi_id: 116, kpi_name: '住院重點(diǎn)疾病總例數(shù)', par_kpi_id: 115, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 117, kpi_name: '住院重點(diǎn)疾病死亡例數(shù)', par_kpi_id: 115, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 118, kpi_name: '住院重點(diǎn)疾病二周內(nèi)再住院例數(shù)', par_kpi_id: 115, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 119, kpi_name: '住院重點(diǎn)疾病一月內(nèi)再住院例數(shù)', par_kpi_id: 115, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 123, kpi_name: '住院重點(diǎn)疾病平均住院日', par_kpi_id: 115, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 124, kpi_name: '住院重點(diǎn)疾病平均住院費(fèi)用', par_kpi_id: 115, kpi_type: 1, kpi_source: '-10', children: []},]}, { kpi_id: 141, kpi_name: '住院重點(diǎn)手術(shù)', par_kpi_id: 114, kpi_type: 0, kpi_source: '-10', children: [{ kpi_id: 142, kpi_name: '住院重點(diǎn)手術(shù)總例數(shù)', par_kpi_id: 141, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 143, kpi_name: '住院重點(diǎn)手術(shù)死亡例數(shù)', par_kpi_id: 141, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 148, kpi_name: '住院重點(diǎn)手術(shù)再手術(shù)例數(shù)', par_kpi_id: 141, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 151, kpi_name: '住院重點(diǎn)手術(shù)平均住院日', par_kpi_id: 141, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 152, kpi_name: '住院重點(diǎn)手術(shù)平均住院費(fèi)用', par_kpi_id: 141, kpi_type: 1, kpi_source: '-10', children: []},]}, { kpi_id: 153, kpi_name: '麻醉', par_kpi_id: 114, kpi_type: 0, kpi_source: '-10', children: [{ kpi_id: 154, kpi_name: '麻醉總例數(shù)', par_kpi_id: 153, kpi_type: 1, kpi_source: '-10', children: [{ kpi_id: 155, kpi_name: '全身麻醉例數(shù)', par_kpi_id: 154, kpi_type: 1, kpi_source: '-10', children: [{ kpi_id: 156, kpi_name: '全身麻醉體外循環(huán)例數(shù)', par_kpi_id: 155, kpi_type: 1, kpi_source: '-10', children: []},]}, { kpi_id: 157, kpi_name: '脊髓麻醉例數(shù)', par_kpi_id: 154, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 158, kpi_name: '其他類麻醉例數(shù)', par_kpi_id: 154, kpi_type: 1, kpi_source: '-10', children: []},]}, { kpi_id: 159, kpi_name: '由麻醉醫(yī)師實(shí)施鎮(zhèn)痛治療例數(shù)', par_kpi_id: 153, kpi_type: 1, kpi_source: '-10', children: [{ kpi_id: 160, kpi_name: '門診患者鎮(zhèn)痛治療例數(shù)', par_kpi_id: 159, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 161, kpi_name: '住院患者鎮(zhèn)痛治療例數(shù)', par_kpi_id: 159, kpi_type: 1, kpi_source: '-10', children: [{ kpi_id: 162, kpi_name: '住院患者鎮(zhèn)痛治療手術(shù)后陣痛例數(shù)', par_kpi_id: 161, kpi_type: 1, kpi_source: '-10', children: []},]},]}, { kpi_id: 163, kpi_name: '由麻醉醫(yī)師實(shí)施心肺復(fù)蘇治療例數(shù)', par_kpi_id: 153, kpi_type: 1, kpi_source: '-10', children: [{ kpi_id: 164, kpi_name: '心肺復(fù)蘇治療復(fù)蘇成功例數(shù)', par_kpi_id: 163, kpi_type: 1, kpi_source: '-10', children: []},]}, { kpi_id: 165, kpi_name: '麻醉復(fù)蘇(Steward 蘇醒評(píng)分)管理例數(shù)', par_kpi_id: 153, kpi_type: 1, kpi_source: '-10', children: [{ kpi_id: 166, kpi_name: '進(jìn)入麻醉復(fù)蘇室例數(shù)', par_kpi_id: 165, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 167, kpi_name: '麻醉復(fù)蘇離室時(shí) Steward 評(píng)分≥4 分例數(shù)', par_kpi_id: 165, kpi_type: 1, kpi_source: '-10', children: []},]}, { kpi_id: 168, kpi_name: '麻醉非預(yù)期的相關(guān)事件例數(shù)', par_kpi_id: 153, kpi_type: 1, kpi_source: '-10', children: [{ kpi_id: 169, kpi_name: '麻醉中發(fā)生未預(yù)期的意識(shí)障礙例數(shù)', par_kpi_id: 168, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 170, kpi_name: '麻醉中出現(xiàn)氧飽和度重度降低例數(shù)', par_kpi_id: 168, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 171, kpi_name: '全身麻醉結(jié)束時(shí)使用催醒藥物例數(shù)', par_kpi_id: 168, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 172, kpi_name: '麻醉中因誤咽誤吸引發(fā)呼吸道梗阻例數(shù)', par_kpi_id: 168, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 173, kpi_name: '麻醉意外死亡例數(shù)', par_kpi_id: 168, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 174, kpi_name: '其他麻醉非預(yù)期的相關(guān)事件例數(shù)', par_kpi_id: 168, kpi_type: 1, kpi_source: '-10', children: []},]}, { kpi_id: 175, kpi_name: '麻醉分級(jí)(ASA病情分級(jí))管理例數(shù)', par_kpi_id: 153, kpi_type: 1, kpi_source: '-10', children: [{ kpi_id: 176, kpi_name: 'ASA-Ⅰ級(jí)例數(shù)', par_kpi_id: 175, kpi_type: 1, kpi_source: '-10', children: [{ kpi_id: 177, kpi_name: 'ASA-Ⅰ級(jí)術(shù)后死亡例數(shù)', par_kpi_id: 176, kpi_type: 1, kpi_source: '-10', children: []},]}, { kpi_id: 178, kpi_name: 'ASA-Ⅱ級(jí)例數(shù)', par_kpi_id: 175, kpi_type: 1, kpi_source: '-10', children: [{ kpi_id: 179, kpi_name: 'ASA-Ⅱ級(jí)術(shù)后死亡例數(shù)', par_kpi_id: 178, kpi_type: 1, kpi_source: '-10', children: []},]}, { kpi_id: 180, kpi_name: 'ASA-Ⅲ級(jí)例數(shù)', par_kpi_id: 175, kpi_type: 1, kpi_source: '-10', children: [{ kpi_id: 181, kpi_name: 'ASA-Ⅲ級(jí)術(shù)后死亡例數(shù)', par_kpi_id: 180, kpi_type: 1, kpi_source: '-10', children: []},]}, { kpi_id: 182, kpi_name: 'ASA-Ⅳ級(jí)例數(shù)', par_kpi_id: 175, kpi_type: 1, kpi_source: '-10', children: [{ kpi_id: 183, kpi_name: 'ASA-Ⅳ級(jí)術(shù)后死亡例數(shù)', par_kpi_id: 182, kpi_type: 1, kpi_source: '-10', children: []},]}, { kpi_id: 184, kpi_name: 'ASA-Ⅴ級(jí)例數(shù)', par_kpi_id: 175, kpi_type: 1, kpi_source: '-10', children: [{ kpi_id: 185, kpi_name: 'ASA-Ⅴ級(jí)術(shù)后死亡例數(shù)', par_kpi_id: 184, kpi_type: 1, kpi_source: '-10', children: []},]},]},]}, { kpi_id: 187, kpi_name: '住院患者壓瘡', par_kpi_id: 114, kpi_type: 0, kpi_source: '-10', children: [{ kpi_id: 188, kpi_name: '患者入院前已有壓瘡率', par_kpi_id: 187, kpi_type: 1, kpi_source: '-10', children: [{ kpi_id: 189, kpi_name: '患者入院前已有一級(jí)壓瘡率', par_kpi_id: 188, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 190, kpi_name: '患者入院前已有二級(jí)壓瘡率', par_kpi_id: 188, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 191, kpi_name: '患者入院前已有三級(jí)壓瘡率', par_kpi_id: 188, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 192, kpi_name: '患者入院前已有四級(jí)壓瘡率', par_kpi_id: 188, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 193, kpi_name: '自家庭入住時(shí)有壓瘡的患者率', par_kpi_id: 188, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 194, kpi_name: '自養(yǎng)老院入住時(shí)有壓瘡的患者率', par_kpi_id: 188, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 195, kpi_name: '自其他醫(yī)院轉(zhuǎn)入時(shí)有壓瘡的患者率', par_kpi_id: 188, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 196, kpi_name: '自其他來(lái)源入住時(shí)有壓瘡的病人率', par_kpi_id: 188, kpi_type: 1, kpi_source: '-10', children: []},]}, { kpi_id: 303, kpi_name: '住院期間發(fā)生壓瘡例次', par_kpi_id: 187, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 197, kpi_name: '住院期間發(fā)生壓瘡率', par_kpi_id: 187, kpi_type: 1, kpi_source: '-10', children: [{ kpi_id: 198, kpi_name: '住院期間發(fā)生一級(jí)壓瘡率', par_kpi_id: 197, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 199, kpi_name: '住院期間發(fā)生二級(jí)壓瘡率', par_kpi_id: 197, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 200, kpi_name: '住院期間發(fā)生三級(jí)壓瘡率', par_kpi_id: 197, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 201, kpi_name: '住院期間發(fā)生四級(jí)壓瘡率', par_kpi_id: 197, kpi_type: 1, kpi_source: '-10', children: []},]}, { kpi_id: 202, kpi_name: '住院期間壓瘡發(fā)生率', par_kpi_id: 187, kpi_type: 1, kpi_source: '-10', children: [{ kpi_id: 203, kpi_name: '骶尾椎骨處壓瘡發(fā)生率', par_kpi_id: 202, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 204, kpi_name: '坐骨處壓瘡發(fā)生率', par_kpi_id: 202, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 205, kpi_name: '股骨粗隆處壓瘡發(fā)生率', par_kpi_id: 202, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 206, kpi_name: '跟骨處壓瘡發(fā)生率', par_kpi_id: 202, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 207, kpi_name: '足踝處壓瘡發(fā)生率', par_kpi_id: 202, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 208, kpi_name: '肩胛骨處壓瘡發(fā)生率', par_kpi_id: 202, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 209, kpi_name: '枕骨處壓瘡發(fā)生率', par_kpi_id: 202, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 210, kpi_name: '其他部位壓瘡發(fā)生率', par_kpi_id: 202, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 211, kpi_name: '多處壓瘡發(fā)生率', par_kpi_id: 202, kpi_type: 1, kpi_source: '-10', children: []},]}, { kpi_id: 304, kpi_name: '住院期間發(fā)生一級(jí)壓瘡人次', par_kpi_id: 187, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 305, kpi_name: '住院期間發(fā)生二級(jí)壓瘡人次', par_kpi_id: 187, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 306, kpi_name: '住院期間發(fā)生三級(jí)壓瘡人次', par_kpi_id: 187, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 307, kpi_name: '住院期間發(fā)生四級(jí)壓瘡人次', par_kpi_id: 187, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 308, kpi_name: '住院期間壓瘡發(fā)生率', par_kpi_id: 187, kpi_type: 1, kpi_source: '-10', children: []},]}, { kpi_id: 212, kpi_name: '醫(yī)院內(nèi)跌倒/墜床', par_kpi_id: 114, kpi_type: 0, kpi_source: '-10', children: [{ kpi_id: 213, kpi_name: '醫(yī)院內(nèi)住院患者的跌倒與原因', par_kpi_id: 212, kpi_type: 1, kpi_source: '-10', children: [{ kpi_id: 214, kpi_name: '醫(yī)院內(nèi)因患者健康狀況而造成跌倒比率', par_kpi_id: 213, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 215, kpi_name: '醫(yī)院內(nèi)因治療短荐、藥物和(或)麻醉反應(yīng)而造成跌倒比率', par_kpi_id: 213, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 216, kpi_name: '醫(yī)院內(nèi)因環(huán)境中危險(xiǎn)因子而造成跌倒比率', par_kpi_id: 213, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 217, kpi_name: '醫(yī)院內(nèi)因其他因素而造成跌倒比率', par_kpi_id: 213, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 309, kpi_name: '患者跌倒例數(shù)', par_kpi_id: 213, kpi_type: 1, kpi_source: '-10', children: []},]}, { kpi_id: 218, kpi_name: '醫(yī)院內(nèi)跌倒造成傷害程度', par_kpi_id: 212, kpi_type: 1, kpi_source: '-10', children: [{ kpi_id: 219, kpi_name: '醫(yī)院內(nèi)跌倒傷害嚴(yán)重度1級(jí)比率', par_kpi_id: 218, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 220, kpi_name: '醫(yī)院內(nèi)跌倒傷害嚴(yán)重度2級(jí)比率', par_kpi_id: 218, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 221, kpi_name: '醫(yī)院內(nèi)跌倒傷害嚴(yán)重度3級(jí)比率', par_kpi_id: 218, kpi_type: 1, kpi_source: '-10', children: []},]}, { kpi_id: 222, kpi_name: '醫(yī)院內(nèi)再次發(fā)生跌倒比率', par_kpi_id: 212, kpi_type: 1, kpi_source: '-10', children: []},]}, { kpi_id: 223, kpi_name: '擇期手術(shù)后并發(fā)癥', par_kpi_id: 114, kpi_type: 0, kpi_source: '-10', last_change_time: '2017/08/10 06:06:02', children: [{ kpi_id: 224, kpi_name: '擇期手術(shù)后并發(fā)癥發(fā)生率', par_kpi_id: 223, kpi_type: 1, kpi_source: '1', children: [{ kpi_id: 235, kpi_name: '手術(shù)并發(fā)癥(嚴(yán)重但可治療)導(dǎo)致的死亡', par_kpi_id: 224, kpi_type: 1, kpi_source: '1', children: []}, {kpi_id: 236, kpi_name: '手術(shù)后傷口裂開', par_kpi_id: 224, kpi_type: 1, kpi_source: '1', children: []}, { kpi_id: 237, kpi_name: '手術(shù)后肺栓塞或深靜脈血栓', par_kpi_id: 224, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 238, kpi_name: '手術(shù)后出血或血腫', par_kpi_id: 224, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 239, kpi_name: '手術(shù)后髖關(guān)節(jié)骨折', par_kpi_id: 224, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 240, kpi_name: '手術(shù)后生理與代謝紊亂', par_kpi_id: 224, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 241, kpi_name: '手術(shù)后呼吸衰竭', par_kpi_id: 224, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 242, kpi_name: '手術(shù)后敗血癥', par_kpi_id: 224, kpi_type: 1, kpi_source: '-10', children: []},]}, { kpi_id: 247, kpi_name: '因用藥錯(cuò)誤導(dǎo)致患者死亡發(fā)生率', par_kpi_id: 223, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 248, kpi_name: '輸血反應(yīng)發(fā)生率', par_kpi_id: 223, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 249, kpi_name: '輸液反應(yīng)發(fā)生率', par_kpi_id: 223, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 250, kpi_name: '手術(shù)過(guò)程中異物遺留發(fā)生率', par_kpi_id: 223, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 251, kpi_name: '醫(yī)源性氣胸發(fā)生率', par_kpi_id: 223, kpi_type: 1, kpi_source: '-10', children: []}]}]}, { kpi_id: 255, kpi_name: '單病種質(zhì)量指標(biāo)', par_kpi_id: 100000000, kpi_type: 0, kpi_source: '-10', children: [{ kpi_id: 254, kpi_name: '效率指標(biāo)', par_kpi_id: 255, kpi_type: 0, kpi_source: '-10', children: [{ kpi_id: 253, kpi_name: '病案中總例數(shù)', par_kpi_id: 254, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 256, kpi_name: 'KW總例數(shù)', par_kpi_id: 254, kpi_type: 1, kpi_source: '-10', children: []},]},]}, { kpi_id: 263, kpi_name: '重癥醫(yī)學(xué)(ICU)質(zhì)量監(jiān)測(cè)指標(biāo)', par_kpi_id: 100000000, kpi_type: 0, kpi_source: '-10', children: [{ kpi_id: 264, kpi_name: '非預(yù)期的24/48小時(shí)重返重癥醫(yī)學(xué)科率', par_kpi_id: 263, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 265, kpi_name: '呼吸機(jī)相關(guān)肺炎(VAP)的預(yù)防率', par_kpi_id: 263, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 266, kpi_name: '呼吸機(jī)相關(guān)肺炎(VAP)發(fā)病率', par_kpi_id: 263, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 267, kpi_name: '中心靜脈置管相關(guān)血流感染發(fā)生率', par_kpi_id: 263, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 268, kpi_name: '留置導(dǎo)尿管相關(guān)泌尿系感染發(fā)病率', par_kpi_id: 263, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 269, kpi_name: '重癥患者死亡率', par_kpi_id: 263, kpi_type: 1, kpi_source: '-10', children: [{ kpi_id: 270, kpi_name: 'APACHEⅡ評(píng)15分以上的患者死亡率', par_kpi_id: 269, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 271, kpi_name: 'APACHEⅡ評(píng)15分以下的患者死亡率', par_kpi_id: 269, kpi_type: 1, kpi_source: '-10', children: []},]}, { kpi_id: 272, kpi_name: '重癥患者壓瘡發(fā)生率', par_kpi_id: 263, kpi_type: 1, kpi_source: '-10', children: [{ kpi_id: 273, kpi_name: 'APACHEⅡ評(píng)15分以上的患者壓瘡發(fā)生率', par_kpi_id: 272, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 274, kpi_name: 'APACHEⅡ評(píng)15分以下的患者壓瘡發(fā)生率', par_kpi_id: 272, kpi_type: 1, kpi_source: '-10', children: []},]}, { kpi_id: 275, kpi_name: '人工氣道脫出例數(shù)', par_kpi_id: 263, kpi_type: 1, kpi_source: '-10', children: []},]}, { kpi_id: 288, kpi_name: '合理用藥監(jiān)測(cè)指標(biāo)', par_kpi_id: 100000000, kpi_type: 0, kpi_source: '-10', children: [{ kpi_id: 289, kpi_name: '抗生素處方數(shù)/每百?gòu)堥T診處方(%)', par_kpi_id: 288, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 290, kpi_name: '注射劑處方數(shù)/每百?gòu)堥T診處方(%)', par_kpi_id: 288, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 291, kpi_name: '藥費(fèi)收入占醫(yī)療總收入比重(%)', par_kpi_id: 288, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 292, kpi_name: '抗菌藥物占西藥出庫(kù)總金額比重(%)', par_kpi_id: 288, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 293, kpi_name: '常用抗菌藥物種類與可提供藥敏試驗(yàn)種類比例(%)', par_kpi_id: 288, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 8002, kpi_name: '抗菌藥物占西藥出庫(kù)總金額比重(門診部)(%)', par_kpi_id: 288, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 8003, kpi_name: '抗菌藥物占西藥出庫(kù)總金額比重(住院部)(%)', par_kpi_id: 288, kpi_type: 1, kpi_source: '-10', children: []},]}, { kpi_id: 298, kpi_name: '醫(yī)院感染控制質(zhì)量監(jiān)測(cè)指標(biāo)', par_kpi_id: 100000000, kpi_type: 0, kpi_source: '-10', children: [{ kpi_id: 299, kpi_name: '呼吸機(jī)相關(guān)肺炎發(fā)病率', par_kpi_id: 298, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 300, kpi_name: '留置導(dǎo)尿管相關(guān)泌尿系感染發(fā)病率', par_kpi_id: 298, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 301, kpi_name: '血管導(dǎo)管相關(guān)血流感染率', par_kpi_id: 298, kpi_type: 1, kpi_source: '-10', children: []}, { kpi_id: 302, kpi_name: '不同感染風(fēng)險(xiǎn)指數(shù)手術(shù)部位感染發(fā)病率', par_kpi_id: 298, kpi_type: 1, kpi_source: '-10', children: []},]}, { kpi_id: 200000100, kpi_name: '高水平醫(yī)院指標(biāo)監(jiān)測(cè)', par_kpi_id: 100000000, kpi_type: 0, kpi_source: 'null', children: [{ kpi_id: 200000201, kpi_name: '住院死亡類指標(biāo)', par_kpi_id: 200000100, kpi_type: 0, kpi_source: 'null', children: [{ kpi_id: 200000200, kpi_name: '住院總死亡患者人數(shù)', par_kpi_id: 200000201, kpi_type: 1, kpi_source: '1', children: []}, {kpi_id: 200000204, kpi_name: '同期出院患者總?cè)舜?, par_kpi_id: 200000201, kpi_type: 1, kpi_source: '1', children: []}, { kpi_id: 200000205, kpi_name: '新生兒患者住院死亡人數(shù)', par_kpi_id: 200000201, kpi_type: 1, kpi_source: '1', children: []}, { kpi_id: 200000206, kpi_name: '同期新生兒患者出院人次', par_kpi_id: 200000201, kpi_type: 1, kpi_source: '1', children: []}, { kpi_id: 200000207, kpi_name: '手術(shù)患者住院死亡人數(shù)', par_kpi_id: 200000201, kpi_type: 1, kpi_source: '1', children: []}, { kpi_id: 200000208, kpi_name: '同期手術(shù)患者出院人次', par_kpi_id: 200000201, kpi_type: 1, kpi_source: '1', children: []}, { kpi_id: 200000209, kpi_name: '手術(shù)患者圍手術(shù)期住院死亡人數(shù)', par_kpi_id: 200000201, kpi_type: 1, kpi_source: '1', children: []},]}, { kpi_id: 200000202, kpi_name: '住院重返類指標(biāo)', par_kpi_id: 200000100, kpi_type: 0, kpi_source: 'null', children: [{ kpi_id: 200000210, kpi_name: '出院當(dāng)天再住院患者人次', par_kpi_id: 200000202, kpi_type: 1, kpi_source: '1', children: []}, { kpi_id: 200000211, kpi_name: '同期出院患者總?cè)舜?除死亡患者外)', par_kpi_id: 200000202, kpi_type: 1, kpi_source: '1', children: []}, { kpi_id: 200000212, kpi_name: '出院2-31天內(nèi)再住院患者人次', par_kpi_id: 200000202, kpi_type: 1, kpi_source: '1', children: []}, { kpi_id: 200000213, kpi_name: '重返手術(shù)室再次手術(shù)例數(shù)', par_kpi_id: 200000202, kpi_type: 1, kpi_source: '1', children: []}, { kpi_id: 200000214, kpi_name: '同期出院患者手術(shù)例數(shù)', par_kpi_id: 200000202, kpi_type: 1, kpi_source: '1', children: []}, { kpi_id: 200000215, kpi_name: '轉(zhuǎn)出ICU后重返ICU患者人次', par_kpi_id: 200000202, kpi_type: 1, kpi_source: '1', children: []}, { kpi_id: 200000216, kpi_name: '同期轉(zhuǎn)出ICU患者人次(除ICU中死亡情況)', par_kpi_id: 200000202, kpi_type: 1, kpi_source: '1', children: []},]}, { kpi_id: 200000217, kpi_name: '手術(shù)并發(fā)癥類指標(biāo)', par_kpi_id: 200000100, kpi_type: 0, kpi_source: 'null', children: [{ kpi_id: 200000218, kpi_name: '手術(shù)患者并發(fā)癥發(fā)生例數(shù)', par_kpi_id: 200000217, kpi_type: 1, kpi_source: '1', children: []}, { kpi_id: 200000219, kpi_name: '手術(shù)患者手術(shù)后肺栓塞發(fā)生例數(shù)', par_kpi_id: 200000217, kpi_type: 1, kpi_source: '1', children: []}, { kpi_id: 200000220, kpi_name: '手術(shù)患者手術(shù)后深靜脈血栓發(fā)生例數(shù)', par_kpi_id: 200000217, kpi_type: 1, kpi_source: '1', children: []}, { kpi_id: 200000221, kpi_name: '手術(shù)患者手術(shù)后敗血癥發(fā)生例數(shù)', par_kpi_id: 200000217, kpi_type: 1, kpi_source: '1', children: []}, { kpi_id: 200000240, kpi_name: '手術(shù)患者手術(shù)后傷口裂開發(fā)生例數(shù)', par_kpi_id: 200000217, kpi_type: 1, kpi_source: '1', children: []},]}, { kpi_id: 200000222, kpi_name: '患者安全類指標(biāo)', par_kpi_id: 200000100, kpi_type: 0, kpi_source: 'null', children: [{ kpi_id: 200000223, kpi_name: '發(fā)生壓瘡的出院患者人次', par_kpi_id: 200000222, kpi_type: 1, kpi_source: '1', children: []}, { kpi_id: 200000224, kpi_name: '同期出院患者人次', par_kpi_id: 200000222, kpi_type: 1, kpi_source: '1', children: []}, { kpi_id: 200000225, kpi_name: '發(fā)生產(chǎn)傷的新生兒出院患者人次', par_kpi_id: 200000222, kpi_type: 1, kpi_source: '1', children: []}, { kpi_id: 200000226, kpi_name: '同期活產(chǎn)兒人數(shù)', par_kpi_id: 200000222, kpi_type: 1, kpi_source: '1', children: []}, { kpi_id: 200000227, kpi_name: '發(fā)生產(chǎn)傷的陰道分娩出院產(chǎn)婦人數(shù)', par_kpi_id: 200000222, kpi_type: 1, kpi_source: '1', children: []}, { kpi_id: 200000228, kpi_name: '同期陰道分娩出院產(chǎn)婦人數(shù)', par_kpi_id: 200000222, kpi_type: 1, kpi_source: '1', children: []},]}, { kpi_id: 200000229, kpi_name: '重點(diǎn)病種質(zhì)量類指標(biāo)', par_kpi_id: 200000100, kpi_type: 0, kpi_source: 'null', children: [{ kpi_id: 200000231, kpi_name: '同期重點(diǎn)病種患者出院人次', par_kpi_id: 200000229, kpi_type: 1, kpi_source: '1', children: []}, { kpi_id: 200000232, kpi_name: '重點(diǎn)病種患者住院死亡人數(shù)', par_kpi_id: 200000229, kpi_type: 1, kpi_source: '1', children: []}, { kpi_id: 200000233, kpi_name: '同期重點(diǎn)病種患者出院人次(除死亡患者外)', par_kpi_id: 200000229, kpi_type: 1, kpi_source: '1', children: []}, { kpi_id: 200000234, kpi_name: '重點(diǎn)病種出院當(dāng)天內(nèi)再住院人次', par_kpi_id: 200000229, kpi_type: 1, kpi_source: '1', children: []}, { kpi_id: 200000235, kpi_name: '重點(diǎn)病種出院2-31天內(nèi)再住院人次', par_kpi_id: 200000229, kpi_type: 1, kpi_source: '1', children: []},]}, { kpi_id: 200000230, kpi_name: '重點(diǎn)手術(shù)質(zhì)量類指標(biāo)', par_kpi_id: 200000100, kpi_type: 0, kpi_source: 'null', children: [{ kpi_id: 200000236, kpi_name: '同期接受重點(diǎn)手術(shù)后出院患者人次', par_kpi_id: 200000230, kpi_type: 1, kpi_source: '1', children: []}, { kpi_id: 200000237, kpi_name: '重點(diǎn)手術(shù)后死亡的住院患者人數(shù)', par_kpi_id: 200000230, kpi_type: 1, kpi_source: '1', children: []}, { kpi_id: 200000238, kpi_name: '重點(diǎn)手術(shù)例數(shù)', par_kpi_id: 200000230, kpi_type: 1, kpi_source: '1', children: []}, { kpi_id: 200000239, kpi_name: '重點(diǎn)手術(shù)后重返手術(shù)室再次手術(shù)例數(shù)', par_kpi_id: 200000230, kpi_type: 1, kpi_source: '1', children: []},]},]},] }
mapJson1(json.children);
function mapJson1(arr) {
// 正遍歷
arr.map(function (val, index) {
if (val.kpi_type == 1 && (val.kpi_source == 2 || val.kpi_source == 3)) {
arr[index] = null;
} else {
if (val.children.length) {
mapJson1(val.children);
}
}
})
// 反遍歷tree ,過(guò)濾出空的節(jié)點(diǎn)和空的目錄
for (var i = 0; i < arr.length;) {
var obj = arr[i];
if (obj) {
if (obj.kpi_type == 0 && !obj.children.length) {
arr.splice(i, 1);
} else {
i++;
}
} else {
arr.splice(i, 1);
}
}
}
console.log(testJson.children[0].children);