";if(k==1){if(elems_subtitle){html=""+code+" "+name+"
";}else{html += ""+code+" "+((name.length>17)? name.substr(0,16)+"...":name)+""+annotation+dl_url_html+"
";}}html += "";var title_tooltip=label+' 【'+reces_cnt+'項目】';title_tooltip=' title="'+title_tooltip+'"';if(label.substr(0,1)=="x"){ label_title += "(以下に該当しない症例)";}if(elems_subtitle){html += "- "+label_title+""+annotation+dl_url_html+""+"
";}for(var l=0;l= elems_hidden_threshold)?" style='display:none;'":"";var rece_code=rece.substr(0,rece.indexOf(":"));var rece_label=rece.substr(rece.indexOf(":")+1,rece.length-rece.indexOf(":")-1);if(rece_label.indexOf("|") >= 0){rece_label=""+rece_label.substr(0,rece_label.indexOf("|"))+" "+rece_label.substr(rece_label.indexOf("|")+1,rece_label.length-rece_label.indexOf("|")-1);}var rece_tooltip=rece.replace("|"," ");html += "- - "+rece_label+"
";}if(reces_cnt>elems_hidden_threshold){html += "";}html += "
";}if(code) elem_id=type+'_item_'+code;html += pdf_html;break;case 'compli':var arr=(text.split(':'));var code=arr[0];var name=arr[1];var icds=values[1].split(",");var icds_cnt=icds.length;var annotation="(全"+icds_cnt+"項目)";var html=""+code+" "+name+""+annotation+"
";var footer_tooltip_shrinked="▽ クリックして該当する標準病名を表示する...";var footer_tooltip_expanded="△ クリックして標準病名を非表示にする";var onclick_toggle=" onclick=\"var ch=this.children;var len=ch.length-1;var disp='none';for(var i=0;i";var hidden_style="display:none;";for(var k=0;k0){var byomei_str=icd_name.substring(icd_name.indexOf("[")+1,icd_name.indexOf("]"));byomeis=byomei_str.split("|");icd_name=icd_name.substring(0,icd_name.indexOf("["));}var icd_label=""+icd_code+" "+icd_name;var title=icd_code+":"+icd_name;if(byomeis.length>0){ title=title+" ("+byomeis.length+"個の標準病名)";}html += ""+"- "+icd_label+"";for(var j=0;j"+_label+"";}}html += "";if(code) elem_id=type+'_item_'+code;break;case 'gigi':var arr=(text.split(':'));if(arr.length>1){var question_id=arr[0];var question=arr[1];var answer=arr[2];var html="【"+question_id+"】 "+question+"
(答) "+answer;if(code) elem_id=type+'_item_'+code;}else{var html=text;}html += pdf_html;break;default:var arr=(text.split(':'));if(arr.length>1){var code=arr[0];var name=arr[1];var html=""+code+" "+name;if(code) elem_id=type+'_item_'+code;}else{var html=text;}html += pdf_html;break;}if(key.indexOf("[")>-1&&key.substr(-1,1)=="]"){var dpc=document.getElementById('dpc').value;var more_keys=key.substr(key.indexOf("[")+1,key.length-key.indexOf("[")-2).split(",");var cols_class=((type=='adv')? " three_cols":"");html += "";for (var j=0;j";if(dpc==key_dpc){html += ""+key_dpc+"";}else{html += ""+key_dpc+"";}if((j < more_keys.length-1)&&(j % 3 < 2)){ html += " | ";}html += "";}html += "
";}else if(key=='-'&&type=='adv'){html += "";html += "- ";html += "【※ 全ての診断群分類が対象】";html += "
";html += "
";}element.innerHTML=html;if(elem_id) element.id=elem_id;parent.appendChild(element);}}document.getElementById('noticeContainer').style.display='none';}contentsChanged();}
function clearRelated(info_type){if(info_type=== undefined||info_type=='note'){for (var i=0;i0){elem.innerHTML=''+String(count)+'';}else if(count < 0){elem.innerHTML=''+String(-1*count)+'';}else{elem.innerHTML='';}}};
function showCandidates(innerHtml,domid){var result=document.getElementById('candidates');result.innerHTML=innerHtml;result.setAttribute('target_domid',domid);result.setAttribute('search_main',((result.children[0].id=='candidates_tab')? true:false));setCandidatesDimension();result.style.visibility='visible';};
function setCandidatesDimension(){var elem=document.getElementById('candidates');var domid=elem.getAttribute('target_domid');if(domid=='') return;var rect=document.getElementById(domid).getBoundingClientRect();elem.style.left=Math.round(getWinXOffset()+rect.left)+'px';elem.style.top=Math.round(getWinYOffset()+rect.bottom)+'px';elem.style.background='white';elem.style.width=Math.max(330,(rect.width||(rect.right-rect.left)))+'px';};
function hideCandidates(){var elem=document.getElementById('candidates');if(elem){elem.style.visibility='hidden';for (var i=0;i < elem.childNodes.length;i++){if(elem.childNodes[i].style){elem.childNodes[i].style.visibility='hidden';};};};};
function isCandidatesVisible(){var elem=document.getElementById('candidates');return (elem.style.visibility=='visible');};
function isSearchMainGoing(){if(isCandidatesVisible()){var elem=document.getElementById('candidates');if(elem.getAttribute('search_main')==true){return true;}}return false;};
function getHtmlPdfLink(pdf,title,page_no,icon_name){if(page_no !== undefined&&page_no>0){var pdf=pdf+'?page='+page_no;}if(title=== undefined||title=='')title='情報の出典を見る';if(icon_name=== undefined||icon_name=='')icon_name='icon_doc.png';return "";};
function updatePdfLinkTimestamp(elem){var url=elem.href;url=url.replace(/&t=[0-9]+/,("&t="+(new Date()).getTime()));elem.href=url;};