Vasoactive and VDE Score Calculator
Info
Created On: October 3, 2023
Created By:
Tags
AI
Model: chatgpt-plugin
Time: 0 seconds
Prompt Tokens: 0
Completion Tokens: 0
Total Token Cost: 0
Get This App On Your Website
Copy Code
1. Copy the code above with the iframe and link.
2. Paste the code into your website.
3. Resize the iframe to fit your website.
Javascript, HTML, CSS Code
Copy
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript"> window.addEventListener('error', function(event) { var message = JSON.parse(JSON.stringify(event.message)); var source = event.filename; var lineno = event.lineno; var colno = event.colno; var error = event.error; window.parent.postMessage({ type: 'iframeError', details: { message: message, source: source, lineno: lineno, colno: colno, error: error ? error.stack : '' } }, '*'); }); window.addEventListener('unhandledrejection', function(event) { window.parent.postMessage({ type: 'iframePromiseRejection', details: { reason: event.reason } }, '*'); }); </script>
<title>Vasoactive and VDE Score Calculator</title>
<meta name='description' content='A calculator to compute the vasoactive and VDE scores based on drug doses.'>
<meta name='keywords' content='vasoactive, VDE, score, calculator, medical'>
<style>
body {
font-family: 'Sans-serif';
font-size: 18px;
}
</style>
<script>
function calculateVasoactiveScore() {
const norepinephrine = (parseFloat(document.getElementById('norepinephrine').value) || 0) * 100;
const epinephrine = (parseFloat(document.getElementById('epinephrine').value) || 0) * 100;
const dopamine = (parseFloat(document.getElementById('dopamine').value) || 0) * 1;
const vasopressin = (parseFloat(document.getElementById('vasopressin').value) || 0) / 0.04 * 5;
const dobutamine = (parseFloat(document.getElementById('dobutamine').value) || 0) * 1;
const milrinone = (parseFloat(document.getElementById('milrinone').value) || 0) * 10;
const phenylephrine = (parseFloat(document.getElementById('phenylephrine').value) || 0) * 10;
const totalScore = norepinephrine + epinephrine + dopamine + vasopressin + dobutamine + milrinone + phenylephrine;
document.getElementById('result').innerHTML = 'Vasoactive Score: ' + totalScore.toFixed(1);
if (totalScore >= 20) {
document.getElementById('recommendations').innerHTML = 'Recommendations: When the vasoactive inotropic score is 20 coming off bypass, MCS should be considered, including:<br>1. IABP, or<br>2. Surgically placed microaxial flow pump (Impella 5.5), or<br>3. VA ECMO, peripheral, if not immediately, then, central initially and convert to peripheral when the patient stabilizes.';
} else {
document.getElementById('recommendations').innerHTML = '';
}
}
</script>
<link rel="canonical" href="https://calculator.tools/prompt/7437/">
<meta charset="utf-8">
</head>
<body>
<h1>Vasoactive Score Calculator</h1>
<form>
<label for='norepinephrine'>Norepinephrine (0.1 mcg/kg/min = 10): </label>
<input type='number' id='norepinephrine'><br>
<label for='epinephrine'>Epinephrine (0.1 mcg/kg/min = 10): </label>
<input type='number' id='epinephrine'><br>
<label for='dopamine'>Dopamine (0.1 mcg/kg/min = 1): </label>
<input type='number' id='dopamine'><br>
<label for='vasopressin'>Vasopressin (0.04 U/min = 5): </label>
<input type='number' id='vasopressin'><br>
<label for='dobutamine'>Dobutamine (0.1 mcg/kg/min = 1): </label>
<input type='number' id='dobutamine'><br>
<label for='milrinone'>Milrinone (0.1 mcg/kg/min = 10): </label>
<input type='number' id='milrinone'><br>
<label for='phenylephrine'>Phenylephrine (0.1 mcg/kg/min = 10): </label>
<input type='number' id='phenylephrine'><br>
<input type='button' value='Calculate' onclick='calculateVasoactiveScore()'>
</form>
<p id='result'></p>
<p id='recommendations'></p>
<script type="text/javascript"> var localStoragePrefix = "ct-{{ cachebreaker }}"; var lastSave = 0; function saveLocal(data) { if (Date.now() - lastSave < 1000) { return; } let cookie = localStoragePrefix + "=" + JSON.stringify(data) + "; path=" + window.location.pathname + "'; SameSite=Strict"; cookie += "; expires=" + new Date(Date.now() + 1000 * 60 * 60 * 24 * 365 * 1000).toUTCString(); document.cookie = cookie; lastSave = Date.now(); } function loadLocal() { var cookiePrefix = localStoragePrefix + "="; var cookieStart = document.cookie.indexOf(cookiePrefix); if (cookieStart > -1) { let cookieEnd = document.cookie.indexOf(";", cookieStart); if (cookieEnd == -1) { cookieEnd = document.cookie.length; } var cookieData = document.cookie.substring(cookieStart + cookiePrefix.length, cookieEnd); return JSON.parse(cookieData); } } </script>
<script type="text/javascript"> window.addEventListener('load', function() { var observer = new MutationObserver(function() { window.parent.postMessage({height: document.documentElement.scrollHeight || document.body.scrollHeight},"*"); }); observer.observe(document.body, {attributes: true, childList: true, subtree: true}); window.parent.postMessage({height: document.documentElement.scrollHeight || document.body.scrollHeight},"*"); }); </script>
</body>
</html>