-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
142 lines (138 loc) · 4.72 KB
/
Copy pathindex.html
File metadata and controls
142 lines (138 loc) · 4.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>ePAWP Calculator - Estimate Pulmonary Artery Wedge Pressure</title>
<meta name="description" content="Calculate estimated pulmonary artery wedge pressure (ePAWP) using this simple online calculator.">
<meta name="keywords" content="ePAWP, pulmonary artery wedge pressure, calculator, cardiology, noninvasive, echocardiography">
<meta name="robots" content="index, follow">
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
box-sizing: border-box;
}
.container {
max-width: 600px;
margin: 50px auto;
padding: 20px;
border: 1px solid #ccc;
border-radius: 5px;
background-color: #f9f9f9;
}
.citation {
margin-top: 20px;
padding: 10px;
background-color: #f0f0f0;
border: 1px solid #ccc;
border-radius: 5px;
}
.citation a {
color: #007bff;
text-decoration: none;
}
label {
font-weight: bold;
}
input[type="number"] {
width: 100%;
padding: 8px;
margin: 5px 0;
border: 1px solid #ccc;
border-radius: 3px;
box-sizing: border-box;
}
button {
width: 100%;
padding: 10px;
margin-top: 10px;
border: none;
border-radius: 3px;
background-color: #007bff;
color: #fff;
font-size: 16px;
cursor: pointer;
}
button:hover {
background-color: #0056b3;
}
#result {
margin-top: 20px;
font-size: 18px;
font-weight: bold;
}
.abnormal {
color: #530808;
background-color: #f2dede;
border: 1px solid #ebccd1;
padding: 5px;
border-radius: 5px;
}
@media only screen and (max-width: 600px) {
input[type="number"] {
padding: 8px;
font-size: 14px;
}
button {
padding: 12px;
font-size: 14px;
}
.abnormal {
padding: 8px;
}
#result {
display: flex;
flex-direction: column;
align-items: center;
}
} </style>
</head>
<body>
<div class="container">
<h2>Estimation of Pulmonary Artery Wedge Pressure (ePAWP)</h2>
<label for="LAVi">Left Atrial Volume Index (LAVi) (ml/m²):</label>
<input type="number" id="LAVi" step="0.01" required>
<label for="MVE">Mitral Valve E Velocity (cm/s):</label>
<input type="number" id="MVE" step="0.01" required>
<label for="PVS">Pulmonary Vein S Velocity (cm/s):</label>
<input type="number" id="PVS" step="0.01" required>
<label for="toggle">Exclude Pulmonary Vein S Velocity?:</label>
<input type="checkbox" id="toggle" >
<button onclick="calculate()">Calculate ePAWP</button>
<div id="result"></div>
<div>
<p class="citation">Citation: Thomas Lindow, Aristomenis Manouras, Per Lindqvist, Daniel Manna, Björn Wieslander, Rebecca Kozor, Geoff Strange, David Playford, Martin Ugander, Echocardiographic estimation of pulmonary artery wedge pressure: invasive derivation, validation, and prognostic association beyond diastolic dysfunction grading, European Heart Journal - Cardiovascular Imaging, Volume 25, Issue 4, April 2024, Pages 498–509, <a href="https://doi.org/10.1093/ehjci/jead301" target="_blank">https://doi.org/10.1093/ehjci/jead301</a></p>
</div>
</div>
<script>
function calculate() {
var LAVi = parseFloat(document.getElementById('LAVi').value);
var MVE = parseFloat(document.getElementById('MVE').value);
var PVS = parseFloat(document.getElementById('PVS').value);
var excludePVS = document.getElementById('toggle').checked;
if (excludePVS) {
// Use alternate equation without PVS
ePAWP = (0.230 * LAVi) + (0.102 * MVE) - 2.7; //0.230 × LAVi + 0.102 × mitral E − 2.7
} else {
// Use original equation with PVS
ePAWP = (0.179 * LAVi) + (2.672 * (MVE / PVS)) + 2.7;
}
ePAWP = Math.round(ePAWP); //we should use integers for pressure
var resultElement = document.getElementById('result');
if (ePAWP > 15) {
resultElement.innerHTML = "ePAWP: <span class='abnormal'>" + ePAWP + " mmHg</span>";
} else {
resultElement.innerText = "ePAWP: " + ePAWP + " mmHg";
}
}
document.getElementById('toggle').addEventListener('change', function() {
if (document.getElementById('LAVi').value && document.getElementById('MVE').value && document.getElementById('PVS').value) {
calculate();
}
});
</script>
<footer>
</footer>
</body>
</html>