let json={
"basic": {
"caseId": "#{reportContent.data.caseId}",
"age": "#{reportContent.age}",
"sex": "#{reportContent.data.sex}",
"icdCode": "#{reportContent.data.CM-0-1-3-1}",
"hosDay": "#{reportContent.data.CM-4-1}",
"hosFee": "#{reportContent.data.CM-6-1}",
"phase": "基本信息",
"type": "basic",
"indexLevel": "重点",
"title": "基本信息",
"sort": 0
},
"list": [
{
"nodeCode": "VTE-1",
"molecular": {
"nodeCode": "VTE-1-1",
"colType": "parent",
"title": "VTE-1 患者危险因素与风险评估★ 分子项",
"colAlgorithm": [
{
"nodeCode": "VTE-1-1-f-1",
"formula": "#{VTE-1-1-1}",
"title": "VTE-1 患者危险因素与风险评估★ 分子项",
"type": "all"
}
],
"sonList": [
{
"nodeCode": "VTE-1-1-1",
"colType": "num",
"title": "实施血栓风险因素评估工具选择",
"type": "molecular",
"calcType": "text",
"colFinish": "count{reportContent.data.VTE-1-1-1, reportContent.data.VTE-1-1-1=or[a:b]}",
"colUnFinish": "count{reportContent.data.VTE-1-1-1, reportContent.data.VTE-1-1-1=null}",
"unFinishText": "未选择"
}
]
},
"denominator": {
"nodeCode": "VTE-1-2",
"colType": "parent",
"title": "VTE-1 患者危险因素与风险评估★ 分母项",
"colAlgorithm": [
{
"nodeCode": "VTE-1-2-f-1",
"formula": "#{VTE-1-2-1}",
"title": "VTE-1 患者危险因素与风险评估★ 分母项",
"type": "all"
}
],
"sonList": [
{
"nodeCode": "VTE-1-2-1",
"colType": "num",
"title": "中高危风险患者预防静脉血栓栓塞症的总病例数",
"type": "molecular",
"calcType": "text",
"colFinish": "count{}",
"colUnFinish": "",
"unFinishText": ""
}
]
},
"phase": "入院",
"type": "评估",
"indexLevel": 1.1,
"title": "VTE-1 患者危险因素与风险评估★",
"sort": 1
},
{
"nodeCode": "VTE-2",
"molecular": {
"nodeCode": "VTE-2-1",
"colType": "parent",
"title": "VTE-2 多普勒超声检查情况★ 分子项",
"colAlgorithm": [
{
"nodeCode": "VTE-2-1-f-1",
"formula": "#{VTE-2-1-1}and#{VTE-2-1-2}and#{VTE-2-1-3}and#{VTE-2-1-4}and#{VTE-2-1-5}",
"title": "VTE-2 多普勒超声检查情况★ 分子项",
"type": "all"
}
],
"sonList": [
{
"nodeCode": "VTE-2-1-1",
"colType": "num",
"title": "是否实施下肢静脉血管多普勒超声检查评估",
"type": "molecular",
"calcType": "text",
"colFinish": "count{reportContent.data.VTE-2-1-1, reportContent.data.VTE-2-1-1=y}",
"colUnFinish": "count{reportContent.data.VTE-2-1-1, reportContent.data.VTE-2-1-1=n}",
"unFinishText": "未实施下肢静脉血管多普勒超声检查评估"
},
{
"nodeCode": "VTE-2-1-2",
"colType": "num",
"title": "实施D⁃二聚体检测评估",
"type": "molecular",
"calcType": "text",
"colFinish": "count{reportContent.data.VTE-2-2-1, reportContent.data.VTE-2-2-1=y}",
"colUnFinish": "count{reportContent.data.VTE-2-2-1, reportContent.data.VTE-2-2-1=n}",
"unFinishText": "未实施D⁃二聚体检测评估"
},
{
"nodeCode": "VTE-2-1-3",
"colType": "num",
"title": "是否实施氧合评估",
"type": "molecular",
"calcType": "text",
"colFinish": "count{reportContent.data.VTE-2-2-5, reportContent.data.VTE-2-2-5=y}",
"colUnFinish": "count{reportContent.data.VTE-2-2-5, reportContent.data.VTE-2-2-5=n}",
"unFinishText": "未实施氧合评估"
},
{
"nodeCode": "VTE-2-1-4",
"colType": "num",
"title": "是否实施心脏生物学标志物检测",
"type": "molecular",
"calcType": "text",
"colFinish": "count{reportContent.data.VTE-2-2-7, reportContent.data.VTE-2-2-7=y}",
"colUnFinish": "count{reportContent.data.VTE-2-2-7, reportContent.data.VTE-2-2-7=n}",
"unFinishText": "未实施心脏生物学标志物检测"
},
{
"nodeCode": "VTE-2-1-5",
"colType": "num",
"title": "是否实施凝血功能检测",
"type": "molecular",
"calcType": "text",
"colFinish": "count{reportContent.data.VTE-2-2-9, reportContent.data.VTE-2-2-9=y}",
"colUnFinish": "count{reportContent.data.VTE-2-2-9, reportContent.data.VTE-2-2-9=n}",
"unFinishText": "未实施凝血功能检测"
}
]
},
"denominator": {
"nodeCode": "VTE-2-2",
"colType": "parent",
"title": "VTE-2 多普勒超声检查情况★ 分母项",
"colAlgorithm": [
{
"nodeCode": "VTE-2-2-f-1",
"formula": "#{VTE-2-2-1}",
"title": "VTE-2 多普勒超声检查情况★ 分母项",
"type": "all"
}
],
"sonList": [
{
"nodeCode": "VTE-2-2-1",
"colType": "num",
"title": "中高危风险患者预防静脉血栓栓塞症的总病例数",
"type": "molecular",
"calcType": "text",
"colFinish": "count{}",
"colUnFinish": "",
"unFinishText": ""
}
]
},
"phase": "在院",
"type": "检查",
"indexLevel": 1.1,
"title": "VTE-2 多普勒超声检查情况★ ",
"sort": 2
},
{
"nodeCode": "VTE-3_1",
"molecular": {
"nodeCode": "VTE-3_1-1",
"colType": "parent",
"title": "VTE-3_1 预防相关的患者/家属知情同意 分子项",
"colAlgorithm": [
{
"nodeCode": "VTE-3_1-1-f-1",
"formula": "#{VTE-3_1-1-1}",
"title": "VTE-3_1 预防相关的患者/家属知情同意 分子项",
"type": "all"
}
],
"sonList": [
{
"nodeCode": "VTE-3_1-1-1",
"colType": "num",
"title": "有无履行VTE预防相关的患者/家属知情同意",
"type": "molecular",
"calcType": "text",
"colFinish": "count{reportContent.data.VTE-3-1-1, reportContent.data.VTE-3-1-1=y}",
"colUnFinish": "count{reportContent.data.VTE-3-1-1, reportContent.data.VTE-3-1-1=n}",
"unFinishText": "无履行VTE预防相关的患者/家属知情同意"
}
]
},
"denominator": {
"nodeCode": "VTE-3_1-2",
"colType": "parent",
"title": "VTE-3_1 预防相关的患者/家属知情同意 分母项",
"colAlgorithm": [
{
"nodeCode": "VTE-3_1-2-f-1",
"formula": "#{VTE-3_1-2-1}",
"title": "VTE-3_1 预防相关的患者/家属知情同意 分母项",
"type": "all"
}
],
"sonList": [
{
"nodeCode": "VTE-3_1-2-1",
"colType": "num",
"title": "中高危风险患者预防静脉血栓栓塞症的总病例数",
"type": "molecular",
"calcType": "text",
"colFinish": "count{}",
"colUnFinish": "",
"unFinishText": ""
}
]
},
"phase": "在院",
"type": "宣教",
"indexLevel": 1.1,
"title": "VTE-3_1 预防相关的患者/家属知情同意",
"sort": 3
},
{
"nodeCode": "VTE-3_2",
"molecular": {
"nodeCode": "VTE-3_2-1",
"colType": "parent",
"title": "VTE-3_2 实施出血风险和其他可能影响预防的因素评估 分子项",
"colAlgorithm": [
{
"nodeCode": "VTE-3_2-1-f-1",
"formula": "#{VTE-3_2-1-1}",
"title": "VTE-3_2 实施出血风险和其他可能影响预防的因素评估 分子项",
"type": "all"
}
],
"sonList": [
{
"nodeCode": "VTE-3_2-1-1",
"colType": "num",
"title": "有无实施出血风险和其他可能影响预防的因素评估",
"type": "molecular",
"calcType": "text",
"colFinish": "count{reportContent.data.VTE-3-2-1, reportContent.data.VTE-3-2-1=y}",
"colUnFinish": "count{reportContent.data.VTE-3-2-1, reportContent.data.VTE-3-2-1=n}",
"unFinishText": "未实施出血风险和其他可能影响预防的因素评估"
}
]
},
"denominator": {
"nodeCode": "VTE-3_2-2",
"colType": "parent",
"title": "VTE-3_2 实施出血风险和其他可能影响预防的因素评估 分母项",
"colAlgorithm": [
{
"nodeCode": "VTE-3_2-2-f-1",
"formula": "#{VTE-3_2-2-1}",
"title": "VTE-3_2 实施出血风险和其他可能影响预防的因素评估 分母项",
"type": "all"
}
],
"sonList": [
{
"nodeCode": "VTE-3_2-2-1",
"colType": "num",
"title": "中高危风险患者预防静脉血栓栓塞症的总病例数",
"type": "molecular",
"calcType": "text",
"colFinish": "count{}",
"colUnFinish": "",
"unFinishText": ""
}
]
},
"phase": "在院",
"type": "评估",
"indexLevel": 1.1,
"title": "VTE-3_2 实施出血风险和其他可能影响预防的因素评估",
"sort": 4
},
{
"nodeCode": "VTE-3_3",
"molecular": {
"nodeCode": "VTE-3_3-1",
"colType": "parent",
"title": "VTE-3_3 三级预防深静脉栓塞措施与医嘱执行 ★ 分子项",
"colAlgorithm": [
{
"nodeCode": "VTE-3_3-1-f-1",
"formula": "#{VTE-3_3-1-1}and(#{VTE-3_3-1-2}or#{VTE-3_3-1-3})",
"title": "VTE-3_3 三级预防深静脉栓塞措施与医嘱执行 ★ 分子项",
"type": "all"
},
{
"nodeCode": "VTE-3_3-1-f-2",
"formula": "#{VTE-3_3-1-2}or#{VTE-3_3-1-3}",
"title": "VTE-3_3 三级预防深静脉栓塞措施与医嘱执行 ★ 分子项",
"type": "statistics"
}
],
"sonList": [
{
"nodeCode": "VTE-3_3-1-1",
"colType": "num",
"title": "实施血栓风险因素评估工具选择",
"type": "molecular",
"calcType": "text",
"colFinish": "count{reportContent.data.VTE-1-1-1, reportContent.data.VTE-1-1-1=or[a:b]}",
"colUnFinish": "count{reportContent.data.VTE-1-1-1, reportContent.data.VTE-1-1-1=null}",
"unFinishText": "未选择"
},
{
"nodeCode": "VTE-3_3-1-2",
"colType": "num",
"title": "风险分层",
"type": "molecular",
"calcType": "text",
"colFinish": "count{reportContent.data.VTE-1-1-3, reportContent.data.VTE-1-1-3=or[b:c]}",
"colUnFinish": "count{reportContent.data.VTE-1-1-3, reportContent.data.VTE-1-1-3=a}",
"unFinishText": "风险分层选择 a_低危0-2分"
},
{
"nodeCode": "VTE-3_3-1-3",
"colType": "num",
"title": "风险分层",
"type": "molecular",
"calcType": "text",
"colFinish": "count{reportContent.data.VTE-1-1-5, reportContent.data.VTE-1-1-5=b}",
"colUnFinish": "count{reportContent.data.VTE-1-1-5, reportContent.data.VTE-1-1-5=a}",
"unFinishText": "风险分层选择 a_低危0-2分"
}
]
},
"denominator": {
"nodeCode": "VTE-3_3-2",
"colType": "parent",
"title": "VTE-3_3 三级预防深静脉栓塞措施与医嘱执行 ★ 分母项",
"colAlgorithm": [
{
"nodeCode": "VTE-3_3-2-f-1",
"formula": "#{VTE-3_3-2-1}",
"title": "VTE-3_3 三级预防深静脉栓塞措施与医嘱执行 ★ 分母项",
"type": "all"
}
],
"sonList": [
{
"nodeCode": "VTE-3_3-2-1",
"colType": "num",
"title": "中高危风险患者预防静脉血栓栓塞症的总病例数",
"type": "molecular",
"calcType": "text",
"colFinish": "count{}",
"colUnFinish": "",
"unFinishText": ""
}
]
},
"phase": "在院",
"type": "治疗",
"indexLevel": 1.1,
"title": "VTE-3_3 三级预防深静脉栓塞措施与医嘱执行 ★",
"sort": 5
},
{
"nodeCode": "VTE-3_4",
"molecular": {
"nodeCode": "VTE-3_4-1",
"colType": "parent",
"title": "VTE-3_4 医院内VTE预防结果评估及相关不良事件 分子项",
"colAlgorithm": [
{
"nodeCode": "VTE-3_4-1-f-1",
"formula": "#{VTE-3_4-1-1}",
"title": "VTE-3_4 医院内VTE预防结果评估及相关不良事件 分子项",
"type": "all"
}
],
"sonList": [
{
"nodeCode": "VTE-3_4-1-1",
"colType": "num",
"title": "是否需要三级预防深静脉栓塞",
"type": "molecular",
"calcType": "text",
"colFinish": "count{reportContent.data.VTE-3-3-0, reportContent.data.VTE-3-3-0=y}",
"colUnFinish": "count{reportContent.data.VTE-3-3-0, reportContent.data.VTE-3-3-0=n}",
"unFinishText": "不需要三级预防深静脉栓塞"
}
]
},
"denominator": {
"nodeCode": "VTE-3_4-2",
"colType": "parent",
"title": "VTE-3_4 医院内VTE预防结果评估及相关不良事件 分母项",
"colAlgorithm": [
{
"nodeCode": "VTE-3_4-2-f-1",
"formula": "#{VTE-3_4-2-1}",
"title": "VTE-3_4 医院内VTE预防结果评估及相关不良事件 分母项",
"type": "all"
}
],
"sonList": [
{
"nodeCode": "VTE-3_4-2-1",
"colType": "num",
"title": "中高危风险患者预防静脉血栓栓塞症的总病例数",
"type": "molecular",
"calcType": "text",
"colFinish": "count{}",
"colUnFinish": "",
"unFinishText": ""
}
]
},
"phase": "在院",
"type": "评估",
"indexLevel": 1.1,
"title": "VTE-3_4 医院内VTE预防结果评估及相关不良事件",
"sort": 6
},
{
"nodeCode": "VTE-4_1",
"molecular": {
"nodeCode": "VTE-4_1-1",
"colType": "parent",
"title": "VTE-4_1 医院内VTE的临床识别 分子项",
"colAlgorithm": [
{
"nodeCode": "VTE-4_1-1-f-1",
"formula": "#{VTE-4_1-1-1}",
"title": "VTE-4_1 医院内VTE的临床识别 分子项",
"type": "all"
}
],
"sonList": [
{
"nodeCode": "VTE-4_1-1-1",
"colType": "num",
"title": "是否为临床高度拟诊\"VTE\"的患者",
"type": "molecular",
"calcType": "text",
"colFinish": "count{reportContent.data.VTE-4-1-1, reportContent.data.VTE-4-1-1=or[a:b}}",
"colUnFinish": "count{reportContent.data.VTE-4-1-1, reportContent.data.VTE-4-1-1=c}",
"unFinishText": "非临床高度拟诊\"VTE\"的患者"
}
]
},
"denominator": {
"nodeCode": "VTE-4_1-2",
"colType": "parent",
"title": "VTE-4_1 医院内VTE的临床识别 分母项",
"colAlgorithm": [
{
"nodeCode": "VTE-4_1-2-f-1",
"formula": "#{VTE-4_1-2-1}",
"title": "VTE-4_1 医院内VTE的临床识别 分母项",
"type": "all"
}
],
"sonList": [
{
"nodeCode": "VTE-4_1-2-1",
"colType": "num",
"title": "是否为临床高度拟诊\"VTE\"的患者",
"type": "molecular",
"calcType": "text",
"colFinish": "count{reportContent.data.VTE-4-1-1, reportContent.data.VTE-4-1-1=or[a:b}}",
"colUnFinish": "count{reportContent.data.VTE-4-1-1, reportContent.data.VTE-4-1-1=c}",
"unFinishText": "非临床高度拟诊\"VTE\"的患者"
}
]
},
"phase": "在院",
"type": "评估",
"indexLevel": 1.1,
"title": "VTE-4_1 医院内VTE的临床识别 ",
"sort": 7
},
{
"nodeCode": "VTE-4_2",
"molecular": {
"nodeCode": "VTE-4_2-1",
"colType": "parent",
"title": "VTE-4_2 临床高度可疑为VTE后,采取针对性的紧急处理 分子项",
"colAlgorithm": [
{
"nodeCode": "VTE-4_2-1-f-1",
"formula": "#{VTE-4_2-1-1}and#{VTE-4_2-1-2}and#{VTE-4_2-1-3}",
"title": "VTE-4_2 临床高度可疑为VTE后,采取针对性的紧急处理 分子项",
"type": "all"
}
],
"sonList": [
{
"nodeCode": "VTE-4_2-1-1",
"colType": "num",
"title": "是否为临床高度拟诊\"VTE\"的患者",
"type": "molecular",
"calcType": "text",
"colFinish": "count{reportContent.data.VTE-4-1-1, reportContent.data.VTE-4-1-1=or[a:b]}",
"colUnFinish": "count{reportContent.data.VTE-4-1-1, reportContent.data.VTE-4-1-1=c}",
"unFinishText": "非临床高度拟诊\"VTE\"的患者"
},
{
"nodeCode": "VTE-4_2-1-2",
"colType": "num",
"title": "是否经MDT制定VTE 针对性紧急处理方案",
"type": "molecular",
"calcType": "text",
"colFinish": "count{reportContent.data.VTE-4-2-1, reportContent.data.VTE-4-2-1=y}",
"colUnFinish": "count{reportContent.data.VTE-4-2-1, reportContent.data.VTE-4-2-1=n}",
"unFinishText": "未经MDT制定VTE 针对性紧急处理方案"
},
{
"nodeCode": "VTE-4_2-1-3",
"colType": "num",
"title": "抗凝重叠治疗医嘱的执行起始的时间选择",
"type": "molecular",
"calcType": "num",
"colFinish": "count{reportContent.data.VTE-4-5-1, reportContent.data.VTE-4-5-1>size::0}",
"colUnFinish": "count{reportContent.data.VTE-4-5-1, reportContent.data.VTE-4-5-1<=size::0}",
"unFinishText": "未选择"
}
]
},
"denominator": {
"nodeCode": "VTE-4_2-2",
"colType": "parent",
"title": "VTE-4_2 临床高度可疑为VTE后,采取针对性的紧急处理 分母项",
"colAlgorithm": [
{
"nodeCode": "VTE-4_2-2-f-1",
"formula": "#{VTE-4_2-2-1}and#{VTE-4_2-2-1}",
"title": "VTE-4_2 临床高度可疑为VTE后,采取针对性的紧急处理 分母项",
"type": "all"
}
],
"sonList": [
{
"nodeCode": "VTE-4_2-2-1",
"colType": "num",
"title": "是否为临床高度拟诊\"VTE\"的患者",
"type": "molecular",
"calcType": "text",
"colFinish": "count{reportContent.data.VTE-4-1-1, reportContent.data.VTE-4-1-1=or[a:b]}",
"colUnFinish": "count{reportContent.data.VTE-4-1-1, reportContent.data.VTE-4-1-1=c}",
"unFinishText": "非临床高度拟诊\"VTE\"的患者"
},
{
"nodeCode": "VTE-4_2-2-1",
"colType": "num",
"title": "是否为临床高度拟诊\"VTE\"的患者",
"type": "molecular",
"calcType": "text",
"colFinish": "count{reportContent.data.VTE-4-1-1, reportContent.data.VTE-4-1-1=or[a:b]}",
"colUnFinish": "count{reportContent.data.VTE-4-1-1, reportContent.data.VTE-4-1-1=c}",
"unFinishText": "非临床高度拟诊\"VTE\"的患者"
}
]
},
"phase": "在院",
"type": "治疗",
"indexLevel": 1.1,
"title": "VTE-4_2 临床高度可疑为VTE后,采取针对性的紧急处理",
"sort": 8
},
{
"nodeCode": "VTE-5",
"molecular": {
"nodeCode": "VTE-5-1",
"colType": "parent",
"title": "VTE-5 医嘱离院 分子项",
"colAlgorithm": [
{
"nodeCode": "VTE-5-1-f-1",
"formula": "#{VTE-5-1-1}",
"title": "VTE-5 医嘱离院 分子项",
"type": "all"
}
],
"sonList": [
{
"nodeCode": "VTE-5-1-1",
"colType": "num",
"title": "离院方式选择",
"type": "molecular",
"calcType": "text",
"colFinish": "count{reportContent.data.CM-4-3, reportContent.data.CM-4-3=or[a:b:c]}",
"colUnFinish": "count{reportContent.data.CM-4-3, reportContent.data.CM-4-3=or[d:e:oth]}",
"unFinishText": "非医嘱离院/死亡/其他方式离院"
}
]
},
"denominator": {
"nodeCode": "VTE-5-2",
"colType": "parent",
"title": "VTE-5 医嘱离院 分母项",
"colAlgorithm": [
{
"nodeCode": "VTE-5-2-f-1",
"formula": "#{VTE-5-2-1}",
"title": "VTE-5 医嘱离院 分母项",
"type": "all"
}
],
"sonList": [
{
"nodeCode": "VTE-5-2-1",
"colType": "num",
"title": "中高危风险患者预防静脉血栓栓塞症的总病例数",
"type": "molecular",
"calcType": "text",
"colFinish": "count{}",
"colUnFinish": "",
"unFinishText": ""
}
]
},
"phase": "出院",
"type": "患者信息",
"indexLevel": 1.1,
"title": "VTE-5 医嘱离院",
"sort": 9
}
]
}
let clist=[];
json.list.map(res=>{
let mula=res.molecular.colAlgorithm[0].formula || '';
clist.push(mula);
if(mula.indexOf('or')!=-1 && mula.indexOf('and')!=-1){
console.log(mula)
}
if(mula.indexOf('.')!=-1 ){
console.log('error',mula)
}
})
console.log('^^^^^^^^^');
for(let i =0 ;i<clist.length;i++){
console.log(i,clist[i]);
}
console