Widget:Corticosteroids: Difference between revisions

From IDWiki
(Created page with "<script type="text/javascript"> function calc_corticosteroids(from) { let steroid_conv = {betamethasone: 0.75, cortisone: 25, dexamethasone: 0.75, hydrocortisone: 20, methylprednisolone: 4, prednisolone: 5, prednisone: 5, triamcinolone: 4} for (let to in steroids) { if (to == from) next; document.steroids[to].value = document.steroids[from].value * steroid_conv[to] / steroid_conv[from] } } </script> <form name="steroids"> {| class="wikitable" !Corticostero...")
 
No edit summary
Line 1: Line 1:
<html><body>

<script type="text/javascript">
<script type="text/javascript">
function calc_corticosteroids(from) {
function calc_corticosteroids(from) {
let steroid_conv = {betamethasone: 0.75, cortisone: 25, dexamethasone: 0.75, hydrocortisone: 20, methylprednisolone: 4, prednisolone: 5, prednisone: 5, triamcinolone: 4}
let steroid_conv = {betamethasone: 0.75, cortisone: 25, dexamethasone: 0.75, hydrocortisone: 20, methylprednisolone: 4, prednisolone: 5, prednisone: 5, triamcinolone: 4};
for (let to in steroids) {
for (let to in steroid_conv) {
if (to == from) next;
if (to == from) continue;
document.steroids[to].value = document.steroids[from].value * steroid_conv[to] / steroid_conv[from]
document.steroids[to].value = document.steroids[from].value * steroid_conv[to] / steroid_conv[from];
}
}
}
}
</script>
</script>


<form name="steroids">
<form name="steroids" style="font-size:80%;float:right;padding:5px;border:1px solid grey;">
{| class="wikitable"
<table class="wikitable">
<tbody>
!Corticosteroid
<tr><th>Corticosteroid (Route)</th><th>Equivalent Dose (mg)</th></tr>
!Route
<tr><td>betamethasone (IV)</td><td><input autocomplete="off" value="0.75" onkeyup="calc_corticosteroids(this.name)" name="betamethasone" style="width:80px;display:inline-block" /></td></tr>
!Equivalent Dose (mg)
<tr><td>cortisone (PO)</td><td><input autocomplete="off" value="25" onkeyup="calc_corticosteroids(this.name)" name="cortisone" style="width:80px;display:inline-block" /></td></tr>
!Duration of Action
<tr><td>dexamethasone (PO/IV)</td><td><input autocomplete="off" value="0.75" onkeyup="calc_corticosteroids(this.name)" name="dexamethasone" style="width:80px;display:inline-block" /></td></tr>
|-
<tr><td>hydrocortisone (PO/IV)</td><td><input autocomplete="off" value="20" onkeyup="calc_corticosteroids(this.name)" name="hydrocortisone" style="width:80px;display:inline-block" /></td></tr>
|[[betamethasone]]
<tr><td>methylprednisolone (PO/IV)</td><td><input autocomplete="off" value="4" onkeyup="calc_corticosteroids(this.name)" name="methylprednisolone" style="width:80px;display:inline-block" /></td></tr>
|IV
|0.75 <input autocomplete="off" value="0.75" onkeyup="calc_corticosteroids('betamethasone')" name="betamethasone" style="width:80px;display:inline-block" />
<tr><td>prednisolone (PO)</td><td><input autocomplete="off" value="5" onkeyup="calc_corticosteroids(this.name)" name="prednisolone" style="width:80px;display:inline-block" /></td></tr>
<tr><td>prednisone (PO)</td><td><input autocomplete="off" value="5" onkeyup="calc_corticosteroids(this.name)" name="prednisone" style="width:80px;display:inline-block" /></td></tr>
|long (36-72 hours)
<tr><td>triamcinolone (IV)</td><td><input autocomplete="off" value="4" onkeyup="calc_corticosteroids(this.name)" name="triamcinolone" style="width:80px;display:inline-block" /></td></tr>
|-
</tbody>
|[[cortisone]]
</table>
|PO

|25 <input autocomplete="off" value="25" onkeyup="calc_corticosteroids('cortisone')" name="cortisone" style="width:80px;display:inline-block" />

|short (8-12 hours)
</body></html>
|-
|[[dexamethasone]]
|PO/IV
|0.75 <input autocomplete="off" value="0.75" onkeyup="calc_corticosteroids('dexamethasone')" name="dexamethasone" style="width:80px;display:inline-block" />
|long (36-72 hours)
|-
|[[hydrocortisone]]
|PO/IV
|20 <input autocomplete="off" value="20" onkeyup="calc_corticosteroids('hydrocortisone')" name="hydrocortisone" style="width:80px;display:inline-block" />
|short (8-12 hours)
|-
|[[methylprednisolone]]
|PO/IV
|4 <input autocomplete="off" value="4" onkeyup="calc_corticosteroids('methylprednisolone')" name="methylprednisolone" style="width:80px;display:inline-block" />
|medium (8-12 hours)
|-
|[[prednisolone]]
|PO
|5 <input autocomplete="off" value="5" onkeyup="calc_corticosteroids('prednisolone')" name="prednisolone" style="width:80px;display:inline-block" />
|medium (12-36 hours)
|-
|[[prednisone]]
|PO
|5 <input autocomplete="off" value="5" onkeyup="calc_corticosteroids('prednisone')" name="prednisone" style="width:80px;display:inline-block" />
|medium (12-36 hours)
|-
|[[triamcinolone]]
|IV
|4 <input autocomplete="off" value="4" onkeyup="calc_corticosteroids('triamcinolone')" name="triamcinolone" style="width:80px;display:inline-block" />
|medium (12-36 hours)
|}
</form>
[[Category:Medications]]
[[Category:Endocrinology]]

Revision as of 11:26, 21 December 2022

<html><body>

<script type="text/javascript"> function calc_corticosteroids(from) {

 let steroid_conv = {betamethasone: 0.75, cortisone: 25, dexamethasone: 0.75, hydrocortisone: 20, methylprednisolone: 4, prednisolone: 5, prednisone: 5, triamcinolone: 4};
 for (let to in steroid_conv) {
   if (to == from) continue;
   document.steroids[to].value = document.steroids[from].value * steroid_conv[to] / steroid_conv[from];
 }

} </script>

<form name="steroids" style="font-size:80%;float:right;padding:5px;border:1px solid grey;">

<tbody>

</tbody>

Corticosteroid (Route)Equivalent Dose (mg)
betamethasone (IV)<input autocomplete="off" value="0.75" onkeyup="calc_corticosteroids(this.name)" name="betamethasone" style="width:80px;display:inline-block" />
cortisone (PO)<input autocomplete="off" value="25" onkeyup="calc_corticosteroids(this.name)" name="cortisone" style="width:80px;display:inline-block" />
dexamethasone (PO/IV)<input autocomplete="off" value="0.75" onkeyup="calc_corticosteroids(this.name)" name="dexamethasone" style="width:80px;display:inline-block" />
hydrocortisone (PO/IV)<input autocomplete="off" value="20" onkeyup="calc_corticosteroids(this.name)" name="hydrocortisone" style="width:80px;display:inline-block" />
methylprednisolone (PO/IV)<input autocomplete="off" value="4" onkeyup="calc_corticosteroids(this.name)" name="methylprednisolone" style="width:80px;display:inline-block" />
prednisolone (PO)<input autocomplete="off" value="5" onkeyup="calc_corticosteroids(this.name)" name="prednisolone" style="width:80px;display:inline-block" />
prednisone (PO)<input autocomplete="off" value="5" onkeyup="calc_corticosteroids(this.name)" name="prednisone" style="width:80px;display:inline-block" />
triamcinolone (IV)<input autocomplete="off" value="4" onkeyup="calc_corticosteroids(this.name)" name="triamcinolone" style="width:80px;display:inline-block" />


</body></html>