2021-12-26 21:51:10 +08:00
|
|
|
|
---
|
|
|
|
|
title: "激素换算器"
|
|
|
|
|
description: "激素换算器"
|
|
|
|
|
date: 2020-10-26T04:15:05+08:00
|
|
|
|
|
draft: false
|
|
|
|
|
---
|
2022-02-09 15:33:19 +08:00
|
|
|
|
|
2023-04-04 19:46:26 +08:00
|
|
|
|
<div style="position: relative; display: flex; flex-direction: column">
|
2021-12-26 21:51:10 +08:00
|
|
|
|
<style>
|
|
|
|
|
input {
|
|
|
|
|
color: #495057;
|
|
|
|
|
border: 1px solid #ced4da;
|
|
|
|
|
border-radius: 0.25rem;
|
|
|
|
|
/*transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;*/
|
|
|
|
|
padding: 1px;
|
|
|
|
|
height: 1.5em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
select {
|
|
|
|
|
color: #495057;
|
|
|
|
|
border: 1px solid #ced4da;
|
|
|
|
|
border-radius: 0.25rem;
|
|
|
|
|
/*transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;*/
|
|
|
|
|
padding: 1px;
|
|
|
|
|
height: 1.5em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input:focus {
|
|
|
|
|
color: #495057;
|
|
|
|
|
outline: 0;
|
|
|
|
|
border-image: url(/images/shadow-i.png) 30 30 stretch;
|
|
|
|
|
border-image-width: 3px;
|
|
|
|
|
border-image-outset: 0px;
|
|
|
|
|
}
|
2022-02-09 15:33:19 +08:00
|
|
|
|
|
2023-04-04 19:46:26 +08:00
|
|
|
|
table {
|
|
|
|
|
box-shadow: none !important;
|
|
|
|
|
border-collapse: collapse !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
td {
|
|
|
|
|
border: none !important;
|
|
|
|
|
vertical-align: baseline !important;
|
|
|
|
|
}
|
2021-12-26 21:51:10 +08:00
|
|
|
|
</style>
|
2023-04-04 19:46:26 +08:00
|
|
|
|
<table style="margin: auto;">
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
<span>原数据:</span>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<input type="text" id="val1" onkeyup="changed()" style="width: 10ex" />
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<select id="in1" oninput="changed()">
|
|
|
|
|
<option value="1">pg</option>
|
|
|
|
|
<option value="1000">ng</option>
|
|
|
|
|
<option value="1000000">μg</option>
|
|
|
|
|
<option value="mol">pmol</option>
|
|
|
|
|
<option value="mol1000">nmol</option>
|
|
|
|
|
<option value="mIU">mIU</option>
|
|
|
|
|
<option value="uIU">μIU</option>
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<span>/</span>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<select id="in2" oninput="changed()">
|
|
|
|
|
<option value="1">mL</option>
|
|
|
|
|
<option value="100">dL</option>
|
|
|
|
|
<option value="1000">L</option>
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<select id="in3" oninput="changed()" style="display: none;">
|
|
|
|
|
<option value="272.38">雌二醇</option>
|
|
|
|
|
<option value="288.43">睾酮</option>
|
|
|
|
|
<option value="23000">泌乳素</option>
|
|
|
|
|
<option value="314.46">孕酮</option>
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<select id="in4" oninput="changed()" style="display: none;">
|
|
|
|
|
<option value="47170">泌乳素</option>
|
|
|
|
|
<option value="113880">卵泡刺激素</option>
|
|
|
|
|
<option value="46.56">促黄体素</option>
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
<span>转换为:</span>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<input id="result" style="width: 10ex" value="" readonly="true" />
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<select id="out1" oninput="changed()">
|
|
|
|
|
<option value="1">pg</option>
|
|
|
|
|
<option value="1000">ng</option>
|
|
|
|
|
<option value="1000000">μg</option>
|
|
|
|
|
<option value="mol">pmol</option>
|
|
|
|
|
<option value="mol1000">nmol</option>
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<span>/</span>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<select id="out2" oninput="changed()">
|
|
|
|
|
<option value="1">mL</option>
|
|
|
|
|
<option value="100">dL</option>
|
|
|
|
|
<option value="1000">L</option>
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
2021-12-26 21:51:10 +08:00
|
|
|
|
</div>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
function changed() {
|
|
|
|
|
var val = Number(window.document.getElementById("val1").value);
|
|
|
|
|
var in1 = window.document.getElementById("in1").value;
|
|
|
|
|
var in2 = window.document.getElementById("in2").value;
|
|
|
|
|
var in3 = Number(window.document.getElementById("in3").value);
|
2023-04-04 00:27:35 +08:00
|
|
|
|
var in4 = Number(window.document.getElementById("in4").value);
|
2021-12-26 21:51:10 +08:00
|
|
|
|
var out1 = window.document.getElementById("out1").value;
|
|
|
|
|
var out2 = window.document.getElementById("out2").value;
|
2023-04-04 19:46:26 +08:00
|
|
|
|
window.document.getElementById("in3").style.display = "none";
|
|
|
|
|
window.document.getElementById("in4").style.display = "none";
|
2021-12-26 21:51:10 +08:00
|
|
|
|
switch (in1) {
|
|
|
|
|
case "mol":
|
2023-04-04 19:46:26 +08:00
|
|
|
|
window.document.getElementById("in3").style.display = "inline-block";
|
2021-12-26 21:51:10 +08:00
|
|
|
|
val = val * in3;
|
|
|
|
|
break;
|
|
|
|
|
case "mol1000":
|
2023-04-04 19:46:26 +08:00
|
|
|
|
window.document.getElementById("in3").style.display = "inline-block";
|
2021-12-26 21:51:10 +08:00
|
|
|
|
val = val * 1000 * in3;
|
|
|
|
|
break;
|
2023-04-04 00:27:35 +08:00
|
|
|
|
case "mIU":
|
2023-04-04 19:46:26 +08:00
|
|
|
|
window.document.getElementById("in4").style.display = "inline-block";
|
2023-04-04 00:27:35 +08:00
|
|
|
|
val = val * in4;
|
|
|
|
|
break;
|
|
|
|
|
case "uIU":
|
2023-04-04 19:46:26 +08:00
|
|
|
|
window.document.getElementById("in4").style.display = "inline-block";
|
|
|
|
|
val = (val * in4) / 1000;
|
2023-04-04 00:27:35 +08:00
|
|
|
|
break;
|
2021-12-26 21:51:10 +08:00
|
|
|
|
default:
|
|
|
|
|
//window.document.getElementById("in3").style.visibility = "hidden";
|
|
|
|
|
val = val * Number(in1);
|
|
|
|
|
}
|
|
|
|
|
switch (out1) {
|
|
|
|
|
case "mol":
|
2023-04-04 19:46:26 +08:00
|
|
|
|
window.document.getElementById("in3").style.display = "inline-block";
|
2021-12-26 21:51:10 +08:00
|
|
|
|
val = val / in3;
|
|
|
|
|
break;
|
|
|
|
|
case "mol1000":
|
2023-04-04 19:46:26 +08:00
|
|
|
|
window.document.getElementById("in3").style.display = "inline-block";
|
2021-12-26 21:51:10 +08:00
|
|
|
|
val = (val * 0.001) / in3;
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
//window.document.getElementById("in3").style.visibility = "hidden";
|
|
|
|
|
val = val / Number(out1);
|
|
|
|
|
}
|
|
|
|
|
val = (val * out2) / in2;
|
|
|
|
|
if (isNaN(val)) {
|
|
|
|
|
window.document.getElementById("result").value = "数值错误"; //输出
|
|
|
|
|
} else {
|
|
|
|
|
window.document.getElementById("result").value = val; //输出
|
|
|
|
|
}
|
|
|
|
|
return;
|
|
|
|
|
}
|
2022-02-08 08:58:39 +08:00
|
|
|
|
</script>
|
2023-04-03 15:05:39 +08:00
|
|
|
|
|
2023-04-04 00:27:35 +08:00
|
|
|
|
|
2023-04-03 19:03:06 +08:00
|
|
|
|
|
2023-04-04 00:27:35 +08:00
|
|
|
|
|
2023-04-03 19:03:06 +08:00
|
|
|
|
|
2023-04-04 00:27:35 +08:00
|
|
|
|
---
|
2023-04-03 19:03:06 +08:00
|
|
|
|
|
2023-04-04 00:27:35 +08:00
|
|
|
|
注:部分医院可能使用[IU(国际单位)](https://zh.wikipedia.org/zh-hans/%E5%9B%BD%E9%99%85%E5%8D%95%E4%BD%8D)作为衡量激素水平的单位,但由于IU为医学效价单位,其与质量单位的换算取决于药物种类且可能随时间变化,在此仅提供部分参考。详见 [单位科普 - 国际单位(IU)]({{< ref "science-literacy#国际单位iu" >}})
|