WikiDécision+

Outil d'aide à la décision

Outils pour utilisateurs

Outils du site


go_far_calculator

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Dernière révision Les deux révisions suivantes
go_far_calculator [2017/02/28 18:46]
ariane
go_far_calculator [2017/02/28 19:13]
ariane
Ligne 23: Ligne 23:
   else if (valeur == '​choix4'​) {score = score + 6; pronostic(score);​}   else if (valeur == '​choix4'​) {score = score + 6; pronostic(score);​}
   else if (valeur == '​choix5'​) {score = score + 11; pronostic(score);​}   else if (valeur == '​choix5'​) {score = score + 11; pronostic(score);​}
 +  ​
   var listeChoix = document.getElementsByName('​options[]'​); ​   var listeChoix = document.getElementsByName('​options[]'​); ​
   ​   ​
   for (var i=0, liste = listeChoix.length;​ i < liste; i++) {   for (var i=0, liste = listeChoix.length;​ i < liste; i++) {
    if (listeChoix[i].checked) {    if (listeChoix[i].checked) {
-     if (listeChoix[i].value=='​1'​) +     if (listeChoix[i].value=='​1'​) {score = score -15; pronostic(score);​} 
-      ​{score = score -15; +     else if (listeChoix[i].value=='​2'​) {score = score + 10; pronostic(score);​} 
-       pronostic(score);​} +     else if (listeChoix[i].value=='​3'​) {score = score + 8; pronostic(score);​} 
-     else if (listeChoix[i].value=='​2'​) +     else if (listeChoix[i].value=='​4'​) {score = score + 7; pronostic(score);​} 
-      ​{score = score + 10; +     else if (listeChoix[i].value=='​5'​) {score = score + 7; pronostic(score);​} 
-       pronostic(score);​} +     else if (listeChoix[i].value=='​6'​) {score = score + 7; pronostic(score);​} 
-     else if (listeChoix[i].value=='​3'​) +     else if (listeChoix[i].value=='​7'​) {score = score + 6; pronostic(score);​} 
-      ​{score = score + 8; +     else if (listeChoix[i].value=='​8'​) {score = score + 6; pronostic(score);​} 
-       pronostic(score);​} +     else if (listeChoix[i].value=='​9'​) {score = score + 5; pronostic(score);​} 
-     else if (listeChoix[i].value=='​4'​) +     else if (listeChoix[i].value=='​10'​) {score = score + 4; pronostic(score);​} 
-      ​{score = score + 7; +     else if (listeChoix[i].value=='​11'​) {score = score + 4; pronostic(score);​} 
-       pronostic(score);​} +     else if (listeChoix[i].value=='​12'​) {score = score + 1; pronostic(score);​}
-     else if (listeChoix[i].value=='​5'​) +
-      ​{score = score + 7; +
-       pronostic(score);​} +
-     else if (listeChoix[i].value=='​6'​) +
-      ​{score = score + 7; +
-       pronostic(score);​} +
-     else if (listeChoix[i].value=='​7'​) +
-      ​{score = score + 6; +
-       pronostic(score);​} +
-     else if (listeChoix[i].value=='​8'​) +
-      ​{score = score + 6; +
-       pronostic(score);​} +
-     else if (listeChoix[i].value=='​9'​) +
-      ​{score = score + 5; +
-       pronostic(score);​} +
-     else if (listeChoix[i].value=='​10'​) +
-      ​{score = score + 4; +
-       pronostic(score);​} +
-     else if (listeChoix[i].value=='​11'​) +
-      ​{score = score + 4; +
-       pronostic(score);​} +
-     else if (listeChoix[i].value=='​12'​) +
-      ​{score = score + 1; +
-       pronostic(score);​}+
     }      } 
   }   }
   pronostic(score);​   pronostic(score);​
- 
 } }
  
 function pronostic(score) function pronostic(score)
  
-  if (score == 0){+  if (score == 0) {
    ​document.getElementById('​messageScore'​).innerHTML="";​    ​document.getElementById('​messageScore'​).innerHTML="";​
-   ​document.getElementById('​messagePronostic'​).innerHTML="<​a href='/​data/​media/​prediction0_english.jpg'​ target='​_blank'><​img src='/​data/​media/​prediction0_english.jpg'​ style='​top:​ -221px!important;'​ class='​graph'></​a>";​ +   ​document.getElementById('​messagePronostic'​).innerHTML="<​a href='/​data/​media/​prediction0_english.jpg'​ target='​_blank'><​img src='/​data/​media/​prediction0_english.jpg'​ style='​top:​ -221px!important;'​ class='​graph'></​a>";​ 
-       +   }  
-   else if (score >= -15 && score<= -6){ +   else if (score >= -15 && score<= -6) { 
-   ​document.getElementById('​messageScore'​).innerHTML="<​b>​GO-FAR score: "+ score; +     ​document.getElementById('​messageScore'​).innerHTML="<​b>​GO-FAR score: "+ score; 
-   ​document.getElementById('​messagePronostic'​).innerHTML="<​b>​ Probability of survival to discharge with good neurologic status following CPR for in-hospital arrest (CPC 1) above average: 27.8% <a href='/​data/​media/​prediction4_english.jpg'​ target='​_blank'><​img src='/​data/​media/​prediction4_english.jpg'​ class='​graph'​ alt='​Probability of survival to discharge with good neurologic status following CPR for in-hospital arrest (CPC 1) above average: 27.8%'></​a>";​ +     ​document.getElementById('​messagePronostic'​).innerHTML="<​b>​ Probability of survival to discharge with good neurologic status following CPR for in-hospital arrest (CPC 1) above average: 27.8% <a href='/​data/​media/​prediction4_english.jpg'​ target='​_blank'><​img src='/​data/​media/​prediction4_english.jpg'​ class='​graph'​ alt='​Probability of survival to discharge with good neurologic status following CPR for in-hospital arrest (CPC 1) above average: 27.8%'></​a>";​ 
-    +    
-   else if (score >= -5 && score <= 13){ +   else if (score >= -5 && score <= 13) {
-   ​document.getElementById('​messageScore'​).innerHTML="<​b>​GO-FAR score: "+ score; +
-   ​document.getElementById('​messagePronostic'​).innerHTML="<​b>​Probability of survival to discharge with good neurologic status following CPR for in-hospital arrest (CPC 1):Average 9.2% <a href='/​data/​media/​prediction3_english.jpg'​ target='​_blank'><​img src='/​data/​media/​prediction3_english.jpg'​ class='​graph'​ alt='​robability of survival to discharge with good neurologic status following CPR for in-hospital arrest (CPC 1):Average 9.2%'></​a>";​}  +
-    +
-   else if (score >= 14 && score <= 23){  ​+
    ​document.getElementById('​messageScore'​).innerHTML="<​b>​GO-FAR score: "+ score;    ​document.getElementById('​messageScore'​).innerHTML="<​b>​GO-FAR score: "+ score;
-   ​document.getElementById('​messagePronostic'​).innerHTML="<​b>​Probability of survival to discharge with good neurologic status following CPR for in-hospital arrest (CPC 1):Low 9.2% <a href='/​data/​media/​prediction2_english.jpg'​ target='​_blank'><​img src='/​data/​media/​prediction2_english.jpg'​ class='​graph'​ alt='​Probability of survival to discharge with good neurologic status following CPR for in-hospital arrest (CPC 1):Low 9.2%'></​a>";​} +   document.getElementById('​messagePronostic'​).innerHTML="<​b>​Probability of survival to discharge with good neurologic status following CPR for in-hospital arrest (CPC 1):Average 9.2% <a href='/​data/​media/​prediction3_english.jpg'​ target='​_blank'><​img src='/​data/​media/​prediction3_english.jpg'​ class='​graph'​ alt='​robability of survival to discharge with good neurologic status following CPR for in-hospital arrest (CPC 1):Average 9.2%'></​a>";​ 
-     +   }  
-   else if (score >= 23){ +   else if (score >= 14 && score <= 23) {   
-   ​document.getElementById('​messageScore'​).innerHTML="<​b>​ GO-FAR score: "+ score; +     ​document.getElementById('​messageScore'​).innerHTML="<​b>​GO-FAR score: "+ score; 
-   ​document.getElementById('​messagePronostic'​).innerHTML="<​b>​ Probability of survival to discharge with good neurologic status following CPR for in-hospital arrest (CPC 1): Very low &lt;1% <a href='/​data/​media/​prediction1_english.jpg'​ target='​_blank'><​img src='/​data/​media/​prediction1_english.jpg'​ class='​graph'​ alt='​Trobability of survival to discharge with good neurologic status following CPR for in-hospital arrest (CPC 1): Very low &​lt;​1%'></​a>";​} ​+     document.getElementById('​messagePronostic'​).innerHTML="<​b>​Probability of survival to discharge with good neurologic status following CPR for in-hospital arrest (CPC 1):Low 9.2% <a href='/​data/​media/​prediction2_english.jpg'​ target='​_blank'><​img src='/​data/​media/​prediction2_english.jpg'​ class='​graph'​ alt='​Probability of survival to discharge with good neurologic status following CPR for in-hospital arrest (CPC 1):Low 9.2%'></​a>";​ 
 +   } 
 +   else if (score >= 23) { 
 +     ​document.getElementById('​messageScore'​).innerHTML="<​b>​ GO-FAR score: "+ score; 
 +     ​document.getElementById('​messagePronostic'​).innerHTML="<​b>​ Probability of survival to discharge with good neurologic status following CPR for in-hospital arrest (CPC 1): Very low &lt;1% <a href='/​data/​media/​prediction1_english.jpg'​ target='​_blank'><​img src='/​data/​media/​prediction1_english.jpg'​ class='​graph'​ alt='​Trobability of survival to discharge with good neurologic status following CPR for in-hospital arrest (CPC 1): Very low &​lt;​1%'></​a>";​ 
 +   
 } }
 </​script>​ </​script>​
/home/wikidecision/public_html/data/pages/go_far_calculator.txt · Dernière modification: 2017/03/23 20:29 par ariane