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...") |
mNo edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<script type="text/javascript"> |
<script type="text/javascript"> |
||
function calc_corticosteroids(from) { |
function calc_corticosteroids(from) { |
||
− | + | const steroid_conv = {betamethasone: 0.75, cortisone: 25, dexamethasone: 0.75, hydrocortisone: 20, methylprednisolone: 4, prednisolone: 5, prednisone: 5, triamcinolone: 4}; |
|
− | for (let to in |
+ | for (let to in steroid_conv) { |
− | if (to == from) |
+ | 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;"> |
+ | <table> |
||
− | {| class="wikitable" |
||
+ | <tbody> |
||
− | !Corticosteroid |
||
+ | <tr><th>Corticosteroid</th><th>Equivalent Dose (mg)</th></tr> |
||
− | !Route |
||
⚫ | |||
− | !Equivalent Dose (mg) |
||
⚫ | |||
− | !Duration of Action |
||
⚫ | |||
− | |- |
||
⚫ | |||
− | |[[betamethasone]] |
||
⚫ | |||
− | |IV |
||
− | + | <tr><td>prednisolone (PO)</td><td><input autocomplete="off" value="5" onkeyup="calc_corticosteroids(this.name)" name="prednisolone" style="width:60px;" /></td></tr> |
|
⚫ | |||
− | |long (36-72 hours) |
||
⚫ | |||
− | |- |
||
+ | </tbody> |
||
− | |[[cortisone]] |
||
+ | </table> |
||
− | |PO |
||
⚫ | |||
− | |short (8-12 hours) |
||
− | |- |
||
− | |[[dexamethasone]] |
||
− | |PO/IV |
||
⚫ | |||
− | |long (36-72 hours) |
||
− | |- |
||
− | |[[hydrocortisone]] |
||
− | |PO/IV |
||
⚫ | |||
− | |short (8-12 hours) |
||
− | |- |
||
− | |[[methylprednisolone]] |
||
− | |PO/IV |
||
⚫ | |||
− | |medium (8-12 hours) |
||
− | |- |
||
− | |[[prednisolone]] |
||
− | |PO |
||
⚫ | |||
− | |medium (12-36 hours) |
||
− | |- |
||
− | |[[prednisone]] |
||
− | |PO |
||
⚫ | |||
− | |medium (12-36 hours) |
||
− | |- |
||
− | |[[triamcinolone]] |
||
− | |IV |
||
⚫ | |||
− | |medium (12-36 hours) |
||
− | |} |
||
</form> |
</form> |
||
− | [[Category:Medications]] |
||
− | [[Category:Endocrinology]] |
Latest revision as of 07:32, 21 December 2022
<script type="text/javascript"> function calc_corticosteroids(from) {
const 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 | Equivalent Dose (mg) |
---|---|
betamethasone (IV) | <input autocomplete="off" value="0.75" onkeyup="calc_corticosteroids(this.name)" name="betamethasone" style="width:60px;" /> |
cortisone (PO) | <input autocomplete="off" value="25" onkeyup="calc_corticosteroids(this.name)" name="cortisone" style="width:60px;" /> |
dexamethasone (PO/IV) | <input autocomplete="off" value="0.75" onkeyup="calc_corticosteroids(this.name)" name="dexamethasone" style="width:60px;" /> |
hydrocortisone (PO/IV) | <input autocomplete="off" value="20" onkeyup="calc_corticosteroids(this.name)" name="hydrocortisone" style="width:60px;" /> |
methylprednisolone (PO/IV) | <input autocomplete="off" value="4" onkeyup="calc_corticosteroids(this.name)" name="methylprednisolone" style="width:60px;" /> |
prednisolone (PO) | <input autocomplete="off" value="5" onkeyup="calc_corticosteroids(this.name)" name="prednisolone" style="width:60px;" /> |
prednisone (PO) | <input autocomplete="off" value="5" onkeyup="calc_corticosteroids(this.name)" name="prednisone" style="width:60px" /> |
triamcinolone (IV) | <input autocomplete="off" value="4" onkeyup="calc_corticosteroids(this.name)" name="triamcinolone" style="width:60px;" /> |
</form>