[
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U00-U49 对新发生的不明原因疾病的或紧急情况的临时安排",
"partnum":"22",
"children":[
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U04 严重急性呼吸道综合征[SARS]",
"partnum":"22",
"children":[
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U04.9 未特指的严重急性呼吸道综合征",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U04.9",
"icdPid":"119f028c-7938-11e9-9611-8cec4bd010f3",
"icdName":"未特指的严重急性呼吸道综合征",
"icdId":"119f0307-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
}
],
"isParent":"false",
"level":2,
"icdCode":"U04",
"icdPid":"69b8458e-8034-11e9-b519-8cec4bd010f3",
"icdName":"严重急性呼吸道综合征[SARS]",
"icdId":"119f028c-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":3
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U06 紧急使用U06",
"partnum":"22",
"children":[
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U06.0 紧急使用U06.0",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U06.0",
"icdPid":"119f0404-7938-11e9-9611-8cec4bd010f3",
"icdName":"紧急使用U06.0",
"icdId":"119f047b-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U06.1 紧急使用U06.1",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U06.1",
"icdPid":"119f0404-7938-11e9-9611-8cec4bd010f3",
"icdName":"紧急使用U06.1",
"icdId":"119f04f6-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U06.2 紧急使用U06.2",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U06.2",
"icdPid":"119f0404-7938-11e9-9611-8cec4bd010f3",
"icdName":"紧急使用U06.2",
"icdId":"119f056d-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U06.3 紧急使用U06.3",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U06.3",
"icdPid":"119f0404-7938-11e9-9611-8cec4bd010f3",
"icdName":"紧急使用U06.3",
"icdId":"119f05ec-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U06.4 紧急使用U06.4",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U06.4",
"icdPid":"119f0404-7938-11e9-9611-8cec4bd010f3",
"icdName":"紧急使用U06.4",
"icdId":"119f0671-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U06.5 紧急使用U06.5",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U06.5",
"icdPid":"119f0404-7938-11e9-9611-8cec4bd010f3",
"icdName":"紧急使用U06.5",
"icdId":"119f06e5-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U06.6 紧急使用U06.6",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U06.6",
"icdPid":"119f0404-7938-11e9-9611-8cec4bd010f3",
"icdName":"紧急使用U06.6",
"icdId":"119f075c-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U06.7 紧急使用U06.7",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U06.7",
"icdPid":"119f0404-7938-11e9-9611-8cec4bd010f3",
"icdName":"紧急使用U06.7",
"icdId":"119f07db-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U06.8 紧急使用U06.8",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U06.8",
"icdPid":"119f0404-7938-11e9-9611-8cec4bd010f3",
"icdName":"紧急使用U06.8",
"icdId":"119f0852-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U06.9 紧急使用U06.9",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U06.9",
"icdPid":"119f0404-7938-11e9-9611-8cec4bd010f3",
"icdName":"紧急使用U06.9",
"icdId":"119f08cd-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
}
],
"isParent":"false",
"level":2,
"icdCode":"U06",
"icdPid":"69b8458e-8034-11e9-b519-8cec4bd010f3",
"icdName":"紧急使用U06",
"icdId":"119f0404-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":3
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U07 紧急使用U07",
"partnum":"22",
"children":[
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U07.0 紧急使用U07.0",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U07.0",
"icdPid":"119f09bf-7938-11e9-9611-8cec4bd010f3",
"icdName":"紧急使用U07.0",
"icdId":"119f0a3a-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U07.1 紧急使用U07.1",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U07.1",
"icdPid":"119f09bf-7938-11e9-9611-8cec4bd010f3",
"icdName":"紧急使用U07.1",
"icdId":"119f0ab2-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U07.2 紧急使用U07.2",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U07.2",
"icdPid":"119f09bf-7938-11e9-9611-8cec4bd010f3",
"icdName":"紧急使用U07.2",
"icdId":"119f0b2d-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U07.3 紧急使用U07.3",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U07.3",
"icdPid":"119f09bf-7938-11e9-9611-8cec4bd010f3",
"icdName":"紧急使用U07.3",
"icdId":"119f0ba7-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U07.4 紧急使用U07.4",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U07.4",
"icdPid":"119f09bf-7938-11e9-9611-8cec4bd010f3",
"icdName":"紧急使用U07.4",
"icdId":"119f0c22-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U07.5 紧急使用U07.5",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U07.5",
"icdPid":"119f09bf-7938-11e9-9611-8cec4bd010f3",
"icdName":"紧急使用U07.5",
"icdId":"119f0c9a-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U07.6 紧急使用U07.6",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U07.6",
"icdPid":"119f09bf-7938-11e9-9611-8cec4bd010f3",
"icdName":"紧急使用U07.6",
"icdId":"119f0d15-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U07.7 紧急使用U07.7",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U07.7",
"icdPid":"119f09bf-7938-11e9-9611-8cec4bd010f3",
"icdName":"紧急使用U07.7",
"icdId":"119f0d90-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U07.8 紧急使用U07.8",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U07.8",
"icdPid":"119f09bf-7938-11e9-9611-8cec4bd010f3",
"icdName":"紧急使用U07.8",
"icdId":"119f0e0a-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U07.9 紧急使用U07.9",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U07.9",
"icdPid":"119f09bf-7938-11e9-9611-8cec4bd010f3",
"icdName":"紧急使用U07.9",
"icdId":"119f0e96-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
}
],
"isParent":"false",
"level":2,
"icdCode":"U07",
"icdPid":"69b8458e-8034-11e9-b519-8cec4bd010f3",
"icdName":"紧急使用U07",
"icdId":"119f09bf-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":3
}
],
"isParent":"true",
"level":1,
"icdCode":"U00-U49",
"icdPid":"f514142c-795f-11e9-9611-8cec4bd010f3",
"icdName":"对新发生的不明原因疾病的或紧急情况的临时安排",
"icdId":"69b8458e-8034-11e9-b519-8cec4bd010f3",
"open":"false",
"codelength":0
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U82-U85 对微生物和抗肿瘤药物产生的抗药性",
"partnum":"22",
"children":[
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U82 对β-内酰胺类抗生素耐药",
"partnum":"22",
"children":[
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U82.0 对青霉素耐药",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U82.0",
"icdPid":"119f0f18-7938-11e9-9611-8cec4bd010f3",
"icdName":"对青霉素耐药",
"icdId":"119f0f93-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U82.1 对甲氧苯青霉素耐药",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U82.1",
"icdPid":"119f0f18-7938-11e9-9611-8cec4bd010f3",
"icdName":"对甲氧苯青霉素耐药",
"icdId":"119f1178-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U82.2 对β-内酰胺(ESBL)类耐药",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U82.2",
"icdPid":"119f0f18-7938-11e9-9611-8cec4bd010f3",
"icdName":"对β-内酰胺(ESBL)类耐药",
"icdId":"119f144b-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U82.8 对其他β-内酰胺类抗生素耐药",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U82.8",
"icdPid":"119f0f18-7938-11e9-9611-8cec4bd010f3",
"icdName":"对其他β-内酰胺类抗生素耐药",
"icdId":"119f163e-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U82.9 对β-内酰胺类抗生素耐药,未特指",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U82.9",
"icdPid":"119f0f18-7938-11e9-9611-8cec4bd010f3",
"icdName":"对β-内酰胺类抗生素耐药,未特指",
"icdId":"119f18a7-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
}
],
"isParent":"false",
"level":2,
"icdCode":"U82",
"icdPid":"69b852ad-8034-11e9-b519-8cec4bd010f3",
"icdName":"对β-内酰胺类抗生素耐药",
"icdId":"119f0f18-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":3
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U83 对其他抗生素耐药",
"partnum":"22",
"children":[
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U83.0 对万古霉素耐药",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U83.0",
"icdPid":"119f19a4-7938-11e9-9611-8cec4bd010f3",
"icdName":"对万古霉素耐药",
"icdId":"119f1a1c-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U83.1 对其他与万古霉素有关的抗生素耐药",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U83.1",
"icdPid":"119f19a4-7938-11e9-9611-8cec4bd010f3",
"icdName":"对其他与万古霉素有关的抗生素耐药",
"icdId":"119f1b85-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U83.2 对喹诺酮耐药",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U83.2",
"icdPid":"119f19a4-7938-11e9-9611-8cec4bd010f3",
"icdName":"对喹诺酮耐药",
"icdId":"119f1c74-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U83.7 对多种抗生素耐药",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U83.7",
"icdPid":"119f19a4-7938-11e9-9611-8cec4bd010f3",
"icdName":"对多种抗生素耐药",
"icdId":"119f1d6d-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U83.8 对其他单一指定抗生素耐药",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U83.8",
"icdPid":"119f19a4-7938-11e9-9611-8cec4bd010f3",
"icdName":"对其他单一指定抗生素耐药",
"icdId":"119f1e63-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U83.9 对未特指的抗生素耐药",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U83.9",
"icdPid":"119f19a4-7938-11e9-9611-8cec4bd010f3",
"icdName":"对未特指的抗生素耐药",
"icdId":"119f1fef-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
}
],
"isParent":"false",
"level":2,
"icdCode":"U83",
"icdPid":"69b852ad-8034-11e9-b519-8cec4bd010f3",
"icdName":"对其他抗生素耐药",
"icdId":"119f19a4-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":3
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U84 对其他抗菌药耐药",
"partnum":"22",
"children":[
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U84.0 对抗寄生虫药物耐药",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U84.0",
"icdPid":"119f20ec-7938-11e9-9611-8cec4bd010f3",
"icdName":"对抗寄生虫药物耐药",
"icdId":"119f216a-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U84.1 对抗真菌药物耐药",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U84.1",
"icdPid":"119f20ec-7938-11e9-9611-8cec4bd010f3",
"icdName":"对抗真菌药物耐药",
"icdId":"119f2259-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U84.2 对抗病毒药物耐药",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U84.2",
"icdPid":"119f20ec-7938-11e9-9611-8cec4bd010f3",
"icdName":"对抗病毒药物耐药",
"icdId":"119f237f-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U84.3 抗结核病药物耐药",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U84.3",
"icdPid":"119f20ec-7938-11e9-9611-8cec4bd010f3",
"icdName":"抗结核病药物耐药",
"icdId":"119f2471-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U84.7 对多种抗菌药物耐药",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U84.7",
"icdPid":"119f20ec-7938-11e9-9611-8cec4bd010f3",
"icdName":"对多种抗菌药物耐药",
"icdId":"119f25ec-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U84.8 对其他特指抗菌药耐药",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U84.8",
"icdPid":"119f20ec-7938-11e9-9611-8cec4bd010f3",
"icdName":"对其他特指抗菌药耐药",
"icdId":"119f2704-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U84.9 对未特指的抗菌药物耐药",
"partnum":"22",
"isParent":"true",
"level":3,
"icdCode":"U84.9",
"icdPid":"119f20ec-7938-11e9-9611-8cec4bd010f3",
"icdName":"对未特指的抗菌药物耐药",
"icdId":"119f2801-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":5
}
],
"isParent":"false",
"level":2,
"icdCode":"U84",
"icdPid":"69b852ad-8034-11e9-b519-8cec4bd010f3",
"icdName":"对其他抗菌药耐药",
"icdId":"119f20ec-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":3
},
{
"isclinical":-1,
"isusing":1,
"mid":"",
"remark":"",
"className":"U85 对抗肿瘤药物耐药",
"partnum":"22",
"isParent":"false",
"level":2,
"icdCode":"U85",
"icdPid":"69b852ad-8034-11e9-b519-8cec4bd010f3",
"icdName":"对抗肿瘤药物耐药",
"icdId":"119f297f-7938-11e9-9611-8cec4bd010f3",
"open":"false",
"codelength":3
}
],
"isParent":"true",
"level":1,
"icdCode":"U82-U85",
"icdPid":"f514142c-795f-11e9-9611-8cec4bd010f3",
"icdName":"对微生物和抗肿瘤药物产生的抗药性",
"icdId":"69b852ad-8034-11e9-b519-8cec4bd010f3",
"open":"false",
"codelength":0
}
]
如图,获取最内层的children节点下的值。
public static List<Map<String, Object>> getLastChildren(List<Map<String, Object>> list,String key) {
List<Map<String, Object>> lastChildrenList = new ArrayList<Map<String,Object>>();
for(int i=0;i<list.size();i++) {
Map<String,Object> map = list.get(i);
/*判断是否存在key*/
boolean containsKey = map.containsKey(key);
/*如果存在则继续遍历*/
if(containsKey && map.get(key)!= null) {
List<Map<String, Object>> childrenList = (List<Map<String, Object>>) map.get(key);
getLastChildren(childrenList,key);
}else {/*如果不存在则获取到key值 返回数据*/
lastChildrenList.add(map);
}
}
return lastChildrenList;
}
写方法递归实现
不用说了直接贴代码
public class TestMain {
public static void main(String[] args) {
List<Map> maps = JSONArray.parseArray(data, Map.class);
List<Map<String, Object>> lastChildrenList = new ArrayList<>();
getLast(maps,lastChildrenList,"children");
System.out.println(lastChildrenList);
}
public static void getLast( List<Map> orgDatas, List<Map<String, Object>> resultChildrenList,String key){
if (orgDatas == null){
return;
}
for (Map orgData : orgDatas) {
if (orgData.containsKey(key)){
getLast(JSONArray.parseArray(orgData.get(key).toString(),Map.class),resultChildrenList,key);
}else {
resultChildrenList.add(orgData);
}
}
}
static String data = "[{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U00-U49 对新发生的不明原因疾病的或紧急情况的临时安排\",\"partnum\":\"22\",\"children\":[{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U04 严重急性呼吸道综合征[SARS]\",\"partnum\":\"22\",\"children\":[{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U04.9 未特指的严重急性呼吸道综合征\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U04.9\",\"icdPid\":\"119f028c-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"未特指的严重急性呼吸道综合征\",\"icdId\":\"119f0307-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5}],\"isParent\":\"false\",\"level\":2,\"icdCode\":\"U04\",\"icdPid\":\"69b8458e-8034-11e9-b519-8cec4bd010f3\",\"icdName\":\"严重急性呼吸道综合征[SARS]\",\"icdId\":\"119f028c-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":3},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U06 紧急使用U06\",\"partnum\":\"22\",\"children\":[{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U06.0 紧急使用U06.0\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U06.0\",\"icdPid\":\"119f0404-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"紧急使用U06.0\",\"icdId\":\"119f047b-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U06.1 紧急使用U06.1\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U06.1\",\"icdPid\":\"119f0404-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"紧急使用U06.1\",\"icdId\":\"119f04f6-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U06.2 紧急使用U06.2\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U06.2\",\"icdPid\":\"119f0404-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"紧急使用U06.2\",\"icdId\":\"119f056d-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U06.3 紧急使用U06.3\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U06.3\",\"icdPid\":\"119f0404-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"紧急使用U06.3\",\"icdId\":\"119f05ec-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U06.4 紧急使用U06.4\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U06.4\",\"icdPid\":\"119f0404-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"紧急使用U06.4\",\"icdId\":\"119f0671-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U06.5 紧急使用U06.5\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U06.5\",\"icdPid\":\"119f0404-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"紧急使用U06.5\",\"icdId\":\"119f06e5-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U06.6 紧急使用U06.6\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U06.6\",\"icdPid\":\"119f0404-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"紧急使用U06.6\",\"icdId\":\"119f075c-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U06.7 紧急使用U06.7\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U06.7\",\"icdPid\":\"119f0404-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"紧急使用U06.7\",\"icdId\":\"119f07db-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U06.8 紧急使用U06.8\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U06.8\",\"icdPid\":\"119f0404-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"紧急使用U06.8\",\"icdId\":\"119f0852-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U06.9 紧急使用U06.9\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U06.9\",\"icdPid\":\"119f0404-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"紧急使用U06.9\",\"icdId\":\"119f08cd-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5}],\"isParent\":\"false\",\"level\":2,\"icdCode\":\"U06\",\"icdPid\":\"69b8458e-8034-11e9-b519-8cec4bd010f3\",\"icdName\":\"紧急使用U06\",\"icdId\":\"119f0404-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":3},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U07 紧急使用U07\",\"partnum\":\"22\",\"children\":[{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U07.0 紧急使用U07.0\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U07.0\",\"icdPid\":\"119f09bf-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"紧急使用U07.0\",\"icdId\":\"119f0a3a-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U07.1 紧急使用U07.1\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U07.1\",\"icdPid\":\"119f09bf-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"紧急使用U07.1\",\"icdId\":\"119f0ab2-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U07.2 紧急使用U07.2\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U07.2\",\"icdPid\":\"119f09bf-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"紧急使用U07.2\",\"icdId\":\"119f0b2d-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U07.3 紧急使用U07.3\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U07.3\",\"icdPid\":\"119f09bf-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"紧急使用U07.3\",\"icdId\":\"119f0ba7-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U07.4 紧急使用U07.4\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U07.4\",\"icdPid\":\"119f09bf-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"紧急使用U07.4\",\"icdId\":\"119f0c22-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U07.5 紧急使用U07.5\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U07.5\",\"icdPid\":\"119f09bf-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"紧急使用U07.5\",\"icdId\":\"119f0c9a-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U07.6 紧急使用U07.6\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U07.6\",\"icdPid\":\"119f09bf-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"紧急使用U07.6\",\"icdId\":\"119f0d15-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U07.7 紧急使用U07.7\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U07.7\",\"icdPid\":\"119f09bf-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"紧急使用U07.7\",\"icdId\":\"119f0d90-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U07.8 紧急使用U07.8\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U07.8\",\"icdPid\":\"119f09bf-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"紧急使用U07.8\",\"icdId\":\"119f0e0a-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U07.9 紧急使用U07.9\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U07.9\",\"icdPid\":\"119f09bf-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"紧急使用U07.9\",\"icdId\":\"119f0e96-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5}],\"isParent\":\"false\",\"level\":2,\"icdCode\":\"U07\",\"icdPid\":\"69b8458e-8034-11e9-b519-8cec4bd010f3\",\"icdName\":\"紧急使用U07\",\"icdId\":\"119f09bf-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":3}],\"isParent\":\"true\",\"level\":1,\"icdCode\":\"U00-U49\",\"icdPid\":\"f514142c-795f-11e9-9611-8cec4bd010f3\",\"icdName\":\"对新发生的不明原因疾病的或紧急情况的临时安排\",\"icdId\":\"69b8458e-8034-11e9-b519-8cec4bd010f3\",\"open\":\"false\",\"codelength\":0},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U82-U85 对微生物和抗肿瘤药物产生的抗药性\",\"partnum\":\"22\",\"children\":[{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U82 对β-内酰胺类抗生素耐药\",\"partnum\":\"22\",\"children\":[{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U82.0 对青霉素耐药\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U82.0\",\"icdPid\":\"119f0f18-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"对青霉素耐药\",\"icdId\":\"119f0f93-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U82.1 对甲氧苯青霉素耐药\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U82.1\",\"icdPid\":\"119f0f18-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"对甲氧苯青霉素耐药\",\"icdId\":\"119f1178-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U82.2 对β-内酰胺(ESBL)类耐药\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U82.2\",\"icdPid\":\"119f0f18-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"对β-内酰胺(ESBL)类耐药\",\"icdId\":\"119f144b-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U82.8 对其他β-内酰胺类抗生素耐药\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U82.8\",\"icdPid\":\"119f0f18-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"对其他β-内酰胺类抗生素耐药\",\"icdId\":\"119f163e-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U82.9 对β-内酰胺类抗生素耐药,未特指\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U82.9\",\"icdPid\":\"119f0f18-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"对β-内酰胺类抗生素耐药,未特指\",\"icdId\":\"119f18a7-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5}],\"isParent\":\"false\",\"level\":2,\"icdCode\":\"U82\",\"icdPid\":\"69b852ad-8034-11e9-b519-8cec4bd010f3\",\"icdName\":\"对β-内酰胺类抗生素耐药\",\"icdId\":\"119f0f18-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":3},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U83 对其他抗生素耐药\",\"partnum\":\"22\",\"children\":[{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U83.0 对万古霉素耐药\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U83.0\",\"icdPid\":\"119f19a4-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"对万古霉素耐药\",\"icdId\":\"119f1a1c-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U83.1 对其他与万古霉素有关的抗生素耐药\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U83.1\",\"icdPid\":\"119f19a4-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"对其他与万古霉素有关的抗生素耐药\",\"icdId\":\"119f1b85-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U83.2 对喹诺酮耐药\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U83.2\",\"icdPid\":\"119f19a4-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"对喹诺酮耐药\",\"icdId\":\"119f1c74-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U83.7 对多种抗生素耐药\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U83.7\",\"icdPid\":\"119f19a4-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"对多种抗生素耐药\",\"icdId\":\"119f1d6d-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U83.8 对其他单一指定抗生素耐药\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U83.8\",\"icdPid\":\"119f19a4-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"对其他单一指定抗生素耐药\",\"icdId\":\"119f1e63-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U83.9 对未特指的抗生素耐药\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U83.9\",\"icdPid\":\"119f19a4-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"对未特指的抗生素耐药\",\"icdId\":\"119f1fef-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5}],\"isParent\":\"false\",\"level\":2,\"icdCode\":\"U83\",\"icdPid\":\"69b852ad-8034-11e9-b519-8cec4bd010f3\",\"icdName\":\"对其他抗生素耐药\",\"icdId\":\"119f19a4-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":3},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U84 对其他抗菌药耐药\",\"partnum\":\"22\",\"children\":[{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U84.0 对抗寄生虫药物耐药\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U84.0\",\"icdPid\":\"119f20ec-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"对抗寄生虫药物耐药\",\"icdId\":\"119f216a-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U84.1 对抗真菌药物耐药\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U84.1\",\"icdPid\":\"119f20ec-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"对抗真菌药物耐药\",\"icdId\":\"119f2259-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U84.2 对抗病毒药物耐药\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U84.2\",\"icdPid\":\"119f20ec-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"对抗病毒药物耐药\",\"icdId\":\"119f237f-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U84.3 抗结核病药物耐药\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U84.3\",\"icdPid\":\"119f20ec-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"抗结核病药物耐药\",\"icdId\":\"119f2471-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U84.7 对多种抗菌药物耐药\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U84.7\",\"icdPid\":\"119f20ec-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"对多种抗菌药物耐药\",\"icdId\":\"119f25ec-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U84.8 对其他特指抗菌药耐药\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U84.8\",\"icdPid\":\"119f20ec-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"对其他特指抗菌药耐药\",\"icdId\":\"119f2704-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U84.9 对未特指的抗菌药物耐药\",\"partnum\":\"22\",\"isParent\":\"true\",\"level\":3,\"icdCode\":\"U84.9\",\"icdPid\":\"119f20ec-7938-11e9-9611-8cec4bd010f3\",\"icdName\":\"对未特指的抗菌药物耐药\",\"icdId\":\"119f2801-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":5}],\"isParent\":\"false\",\"level\":2,\"icdCode\":\"U84\",\"icdPid\":\"69b852ad-8034-11e9-b519-8cec4bd010f3\",\"icdName\":\"对其他抗菌药耐药\",\"icdId\":\"119f20ec-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":3},{\"isclinical\":-1,\"isusing\":1,\"mid\":\"\",\"remark\":\"\",\"className\":\"U85 对抗肿瘤药物耐药\",\"partnum\":\"22\",\"isParent\":\"false\",\"level\":2,\"icdCode\":\"U85\",\"icdPid\":\"69b852ad-8034-11e9-b519-8cec4bd010f3\",\"icdName\":\"对抗肿瘤药物耐药\",\"icdId\":\"119f297f-7938-11e9-9611-8cec4bd010f3\",\"open\":\"false\",\"codelength\":3}],\"isParent\":\"true\",\"level\":1,\"icdCode\":\"U82-U85\",\"icdPid\":\"f514142c-795f-11e9-9611-8cec4bd010f3\",\"icdName\":\"对微生物和抗肿瘤药物产生的抗药性\",\"icdId\":\"69b852ad-8034-11e9-b519-8cec4bd010f3\",\"open\":\"false\",\"codelength\":0}]";
}
可以根据json数据结构先写个对应的java对象实体类,然后通过将Json字符串反序列化为Java对象 ,这样可以方便获取对应的字段值,
json序列化和反序列化可参考:https://www.cnblogs.com/UniqueColor/p/8358377.html
生成xml用sax去解析
当然是3层for循环了,很简单的难道是我没get到你的点?
jsonobj示例:
for (int i = 0; i < ja1.length(); i++) {
JSONObject jo1 = (JSONObject) ja1.get(i);
JSONArray ja2 = jo1.getJSONArray("children");
if (ja2 == null) {
System.out.println("第" + i + "个index为null");
continue;
}
for (int j = 0; j < ja2.length(); j++) {
JSONObject jo2 = (JSONObject) ja1.get(j);
JSONArray ja3 = jo2.getJSONArray("children");
if (ja3 == null) {
System.out.println("第" + i + "," + j + "个index为null");
continue;
}
for (int k = 0; k < ja3.length(); k++) {
System.out.println("这是最内层的数据:" + i + "," + j + "," + k + ":" + ((JSONObject) ja3.get(k)).getString("className"));
}
}
}
java对象示例:
for (Test t1 : list1) {
if (t1.children == null) {
System.out.println("有一个为null");
continue;
}
for (Test t2 : t1.children) {
if (t2.children == null) {
System.out.println("有一个为null");
continue;
}
for (Test t3 : t2.children) {
System.out.println("这是最内层的数据:" + t3.className);
}
}
}