Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
932 lines (931 sloc) 45.9 KB
<!DOCTYPE html>
<html><head>
<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<style>
html, body {
padding: 5px;
}
input, p{
display: inline-block;
vertical-align: middle;
margin: 10px 0;
}
#divDisplay{
background-color: #e4f1fe
}
#divThisIs{
background-color: #89c4f4
}
#divThisTime{
background-color: #6bb9f0
}
#divOPD{
background-color: #59abe3
}
#divER{
background-color: #2c82c9
}
#divPE{
background-color: #f1e7fe
}
#divABG{
background-color: #f1a9a0
}
#divLab {
background-color: #e08283
}
#divEKG {
background-color: #fff9de
}
#divCXR {
background-color: #fde3a7
}
#divImp{
background-color: #fcb941
}
#divAfter{
background-color: #c8f7c5
}
#divDone{
background-color: #87d37c
}
#divCond{
background-color: #00b16a
}
#divHowever{
background-color: #d5b8ff
}
#divAnti{
background-color: #be90d4
}
#divRM{
background-color: #a96dad
}
#divTR{
background-color: #9b59b6
}
#divDC{
background-color: #913d88
}
#divExtubate{
background-color: #bfbfbf
}
#divDeath{
background-color: #67809f
}
#divClear{
background-color: #6c7a89
}
</style></head>
<body>
<div id="divDisplay">
<h1>Medical Notes Generator</h1>
<h3>make physicians' lives easier...</h3>
<form name="MNgenerator">
<textarea rows="20" cols="90" name="display" id="display"></textarea>
</form>
</div><p>
<div class="panel-group" id="accordion">
<!--This is a ...-->
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion"
href="#collapseOne">
This is a ...
</a>
</h4>
</div>
<div id="collapseOne" class="panel-collapse collapse in">
<div class="panel-body" id="divThisIs">
<button onclick="ThisIs()" id="ThisIs">This is</button><p>a</p><input type="text" id="age" placeholder="e.g. 35y/o"><select id="gender" onchange="sex()"><option value=" man ">man</option><option value=" woman ">woman</option></select><p>with</p><select id="underlying" onchange="UnderlyingBox()"><option value="no known underlying disease. ">no known underlying disease.</option><option value="history of:">history of:</option></select>
</div>
</div>
</div>
<!--This time, ...-->
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion"
href="#collapseTwo">
This time...
</a>
</h4>
</div>
<div id="collapseTwo" class="panel-collapse collapse">
<div class="panel-body" id="divThisTime">
<button onclick="ThisTime()" id="ThisTime">This time, </button><input type="text" size="50" id="S/S" placeholder="e.g. severe headache"><p>was noted</p><select id="sinceFor"><option value="since ">since</option><option value="for ">for</option></select><input type="text" size="20" id="duration1"><p>.</p>
</div>
</div>
</div>
<!--OPD-->
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion"
href="#collapseThree">
Therefore, he/she visited ...'s OPD...
</a>
</h4>
</div>
<div id="collapseThree" class="panel-collapse collapse">
<div class="panel-body" id="divOPD">
<button onclick="OPD()" id="OPD">Therefore, </button><select id="heShe3"><option value="he ">he</option><option value="she ">she</option></select><p>visited Dr.</p><input type="text" id="DrName" size="10"><p>'s OPD on</p><input type="text" id="Date2" placeholder="e.g. 2019/02"><p>.</p>
</div>
</div>
</div>
<!--ER-->
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion"
href="#collapseFour">
Therefore, he/she was sent to ER...
</a>
</h4>
</div>
<div id="collapseFour" class="panel-collapse collapse">
<div class="panel-body" id="divER">
<button onclick="ER()" id="ER">Therefore, </button><select id="heShe1"><option value="he ">he</option><option value="she ">she</option></select><select id="sentVisit"><option value="was sent to our ER on ">was sent to our ER on</option><option value="visited our ER on ">visited our ER on</option></select><input type="text" id="Date1" placeholder="e.g. 2019/02/09 13:30"><p>. Upon arrival, </p><select id="hisHer1"><option value="his ">his</option><option value="her ">her</option></select><p>vital signs showed</p><input type="text" size="40" id="vitalsInp" placeholder="e.g. tachycardia and hypotension"><p> (T/P/R: </p><input type="text" size="10" id="TPR" placeholder="36.5/110/18"><p>, BP:</p><input type="text" size="6" id="BP" placeholder="100/60"><p>, Sat:</p><input type="text" size="15" id="Sat" placeholder="99%(RA)"><p>).</p>
</div>
</div>
</div>
<!--Physical examinations showed...-->
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion"
href="#collapseFive">
PE showed...
</a>
</h4>
</div>
<div id="collapseFive" class="panel-collapse collapse">
<div class="panel-body" id="divPE">
<button onclick="PE()" id="PE">Physical examinations showed </button><input type="text" id="PEresult" size="60" placeholder="e.g. diffuse wheezing"><p>.</p>
</div>
</div>
</div>
<!--ABG showed...-->
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion"
href="#collapseSix">
ABG/VBG showed...
</a>
</h4>
</div>
<div id="collapseSix" class="panel-collapse collapse">
<div class="panel-body" id="divABG">
<button onclick="ABG()" id="ABG">Gas: </button><select id="ABGVBG"><option value="ABG ">ABG</option><option value="VBG ">VBG</option></select>showed<input type="text" id="GasResult" size="50" placeholder="e.g. profound metabolic acidosis with respiratory compensation">(pH/pCO2/pO2/HCO3/BE: <input type="text" id="GasData" size="18" placeholder="7.40/40/95/24/0">)<p>.</p><button onclick="GasInt()" id="GasInt">AutoInterpret</button>
</div>
</div>
</div>
<!--Lab data showed...-->
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion"
href="#collapseSeven">
Lab data showed...
</a>
</h4>
</div>
<div id="collapseSeven" class="panel-collapse collapse">
<div class="panel-body" id="divLab">
<input type="button" name="Lab data were all within normal limits." value="Lab data were all within normal limits." onclick="MNgenerator.display.value += 'Lab data were all within normal limits. '">
<button onclick="Lab()" id="lab">Lab data showed </button>
<input type="text" id="LabResult" size="100" placeholder="e.g. leukocytosis and left shift.">
<table>
<tr>
<td><input type="button" name="anemia" value="anemia" onclick="LabResult.value += 'anemia'"></td>
<td><input type="button" name="thrombocytopenia" value="thrombocytopenia" onclick="LabResult.value += 'thrombocytopenia'"></td>
<td><input type="button" name="leukopenia" value="leukopenia" onclick="LabResult.value += 'leukopenia'"></td>
<td><input type="button" name="neutropenia" value="neutropenia" onclick="LabResult.value += 'neutropenia'"></td>
<td><input type="button" name="pancytopenia" value="pancytopenia" onclick="LabResult.value += 'pancytopenia'"></td>
</tr>
<tr>
<td><input type="button" name="leukocytosis" value="leukocytosis" onclick="LabResult.value += 'leukocytosis'"></td>
<td><input type="button" name="leukocytosis with left shift" value="leukocytosis with left shift" onclick="LabResult.value += 'leukocytosis with left shift'"></td>
<td><input type="button" name="AKI" value="AKI" onclick="LabResult.value += 'AKI'"></td>
<td><input type="button" name="obstructive jaundice" value="obstructive jaundice" onclick="LabResult.value += 'obstructive jaundice'"></td>
<td><input type="button" name="elevated LFT" value="elevated LFT" onclick="LabResult.value += 'elevated LFT'"></td>
</tr>
<tr>
<td><input type="button" name="elevated lactate" value="elevated lactate" onclick="LabResult.value += 'elevated lactate'"></td>
<td><input type="button" name="elevated CRP" value="elevated CRP" onclick="LabResult.value += 'elevated CRP'"></td>
<td><input type="button" name=", " value=", " onclick="LabResult.value += ', '"></td>
<td><input type="button" name=", and " value=", and" onclick="LabResult.value += ', and '"></td>
<td><input type="button" name=". " value=". " onclick="LabResult.value += '. '"></td>
</tr>
</table>
</div>
</div>
</div>
<!--EKG showed...-->
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion"
href="#collapseEight">
EKG showed...
</a>
</h4>
</div>
<div id="collapseEight" class="panel-collapse collapse">
<div class="panel-body" id="divEKG">
<button onclick="EKGRoutine()" id="EKGRoutine">Generate Routine EKG report on</button><input type="text" size="15" id="DateEKG" placeholder="e.g. 2019/02/08"><br>
<button onclick="EKG()" id="EKG">EKG showed </button>
<input type="text" id="EKGResult" size="50" placeholder="e.g. ST-elevation over II, III, aVF."><br>
<input type="button" name="SR" value="SR" onclick="EKGResult.value += 'sinus rhythm'">
<input type="button" name="NSR" value="NSR" onclick="EKGResult.value += 'normal sinus rhythm'">
<input type="button" name="ST" value="sinus tachy" onclick="EKGResult.value += 'sinus tachycardia'">
<input type="button" name="AfRVR" value="AfRVR" onclick="EKGResult.value += 'AfRVR'">
<input type="button" name="AF" value="AF" onclick="EKGResult.value += 'atrial flutter'">
<input type="button" name="1AVB" value="1AVB" onclick="EKGResult.value += '1st degree AV block'">
<input type="button" name="2-I AVB" value="2-I AVB" onclick="EKGResult.value += 'Mobitz type I 2nd degree AV block'">
<input type="button" name="2-II AVB" value="2-II AVB" onclick="EKGResult.value += 'Mobitz type II 2nd degree AV block'">
<input type="button" name="H-AVB" value="H-AVB" onclick="EKGResult.value += 'high-grade AV block'">
<input type="button" name="3AVB" value="3AVB" onclick="EKGResult.value += '3rd degree AV block'">
<input type="button" name="SB" value="SB" onclick="EKGResult.value += 'sinus bradycardia'">
<input type="button" name="JB" value="JB" onclick="EKGResult.value += 'junctional bradycardia'">
<input type="button" name="JT" value="JT" onclick="EKGResult.value += 'junctional tachycardia'">
<input type="button" name="VT(+)" value="VT(+)" onclick="EKGResult.value += 'VT with pulses'">
<input type="button" name="VT(-)" value="VT(-)" onclick="EKGResult.value += 'pulseless VT'">
<input type="button" name="VF" value="VF" onclick="EKGResult.value += 'ventricular fibrillation'">
<input type="button" name="PEA" value="PEA" onclick="EKGResult.value += 'PEA'">
<input type="button" name="hyperacute T" value="hyperacute T" onclick="EKGResult.value += 'hyperacute T waves over'">
<input type="button" name="biphasic T" value="biphasic T" onclick="EKGResult.value += 'biphasic T waves over'">
<input type="button" name="tented T" value="tented T" onclick="EKGResult.value += 'tented T'">
<input type="button" name="U" value="U" onclick="EKGResult.value += ' with U wave'">
<input type="button" name="LQT" value="LQT" onclick="EKGResult.value += 'prolonged QT interval'">
<input type="button" name="STE" value="STE" onclick="EKGResult.value += 'ST elevation over'">
<input type="button" name="STD" value="STD" onclick="EKGResult.value += 'ST depression over'">
<input type="button" name="NS-STT changes" value="NS-STT changes" onclick="EKGResult.value += ' with non-specific ST-T changes'">
<input type="button" name="no STT changes" value="no STT changes" onclick="EKGResult.value += 'no ST-T changes'">
<input type="button" name="reciprocal" value="reciprocal" onclick="EKGResult.value += ' with reciprocal changes'">
<input type="button" name="LAD" value="LAD" onclick="EKGResult.value += ' with left axis deviation'">
<input type="button" name="RAD" value="RAD" onclick="EKGResult.value += ' with right axis deviation'">
<input type="button" name="LAE" value="LAE" onclick="EKGResult.value += ' with left atrial enlargement'">
<input type="button" name="RAE" value="RAE"
onclick="EKGResult.value += ' with right atrial enlargement'">
<input type="button" name="LVH" value="LVH" onclick="EKGResult.value += ' with left ventricular hypertrophy'">
<input type="button" name="RVH" value="RVH" onclick="EKGResult.value += ' with right ventricular hypertrophy'">
<input type="button" name="BVH" value="BVH" onclick="EKGResult.value += ' with bi-ventricular hypertrophy'">
<input type="button" name="low volt" value="low volt" onclick="EKGResult.value += ' with diffuse low voltage'">
<input type="button" name="APC" value="APC" onclick="EKGResult.value += ' with APC'">
<input type="button" name="VPC" value="VPC" onclick="EKGResult.value += ' with VPC'">
<input type="button" name="pericarditis pattern" value="pericarditis pattern" onclick="EKGResult.value += 'diffuse PR depression and ST elevation'">
<input type="button" name=", " value=", " onclick="EKGResult.value += ', '">
<input type="button" name=". " value=". " onclick="EKGResult.value += '. '">
</div>
</div>
</div>
<!--Image showed...-->
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion"
href="#collapseNine">
Image showed...
</a>
</h4>
</div>
<div id="collapseNine" class="panel-collapse collapse">
<div class="panel-body" id="divCXR">
<button onclick="CXRRoutine()" id="CXRRoutine">Generate Routine CXR report on</button><input type="text" size="15" id="DateCXR" placeholder="e.g. 2019/02/08"><br>
<select id="ImgMod">
<option value="CXR ">CXR</option>
<option value="KUB ">KUB</option>
<option value="Brain CT ">Brain CT</option>
<option value="Whole body CT ">Whole body CT</option>
<option value="Chest CT ">Chest CT</option>
<option value="CT A+P ">CT A+P</option>
<option value="CT C+A+P ">CT C+A+P</option>
<option value="MRI ">MRI</option>
<option value="Brain MRI ">Brain MRI</option>
<option value="Heart echo ">Heart echo</option>
<option value="Abdominal echo ">Abdominal echo</option>
<option value="GYN echo ">GYN echo</option>
<option value="Chest echo ">Chest echo</option>
<option value="Breast echo ">Breast echo</option>
<option value="FAST scan ">FAST scan</option>
<option value="Mammography ">Mammography</option>
<option value="Whole body bone scan ">Whole body bone scan</option>
<option value=" "> </option>
</select>
<input type="text" id="otherMod" size="25" placeholder="Other(left blank if not needed)"><p>on</p><input type="text" id="ImgDate" size="15" placeholder="e.g. 2019/02/19"><button onclick="Img()" id="Img">showed</button>
<input type="text" id="ImgResult" size="60" placeholder="e.g. bilateral increased infiltration.">
<input type="button" name="PNA" value="pneumonia" onclick="ImgResult.value += 'pneumonia patch'">
<input type="button" name="tumor" value="tumor" onclick="ImgResult.value += 'a tumor'">
<input type="button" name="no ICH" value="no ICH" onclick="ImgResult.value += 'no ICH/SAH/SDH/EDH'">
<input type="button" name="no free air" value="no free air" onclick="ImgResult.value += 'no free air'">
<input type="button" name="cardiomegaly" value="cardiomegaly" onclick="ImgResult.value += 'cardiomegaly'">
<input type="button" name="bilateral increased infiltration" value="bil. inc. infiltration" onclick="ImgResult.value += 'bilateral increased infiltration'">
<input type="button" name="on" value="on" onclick="ImgResult.value += (' on ' + PNALoc.value)">
<select id="PNALoc"><option value="LUL">LUL</option><option value="LLL">LLL</option><option value="RUL">RUL</option><option value="RML">RML</option><option value="RLL">RLL</option></select>
<input type="button" name=", " value=", " onclick="ImgResult.value += ', '">
<input type="button" name=", and " value=", and " onclick="ImgResult.value += ', and '">
<input type="button" name=". " value=". " onclick="ImgResult.value += '. '">
</div>
</div>
</div>
<!--Under the impression of...-->
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion"
href="#collapseTen">
Under the impression of...
</a>
</h4>
</div>
<div id="collapseTen" class="panel-collapse collapse">
<div class="panel-body" id="divImp">
<button onclick="Imp()" id="Imp">Under the impression of </button><input type="text" size="30" id="impression"><p>, </p><select id="heShe2"><option value="he ">he</option><option value="she ">she</option></select><p>was admitted to</p><input type="text" size="10" id="unit"><p>on</p><input type="text" size="15" id="dateAdmit" placeholder="e.g. 2019/02/09"><select id="manage"><option value="for further management. ">for further management.</option><option value="for further evaluations and management. ">for further evaluations and management.</option><option value="for surgical management. ">for surgical management.</option><option value="for scheduled chemotherapy. ">for scheduled chemotherapy.</option><option value="for scheduled target therapy. ">for scheduled target therapy.</option><option value="for Rituximab. ">for Rituximab.</option></select>
</div>
</div>
</div>
<!--After admission,...-->
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion"
href="#collapseEleven">
After admission/transferral,...
</a>
</h4>
</div>
<div id="collapseEleven" class="panel-collapse collapse">
<div class="panel-body" id="divAfter">
<button onclick="After()" id="After">After</button><select id="AdminTR"><option value="admission, ">admission, </option><option value="transferral, ">transferral, </option></select><select id="ThereWereNo">
<option value="we monitored the patient's vital signs closely. ">we monitored the patient's vital signs closely.</option>
<option value="there were no contraindications to surgery. ">there were no contraindications to surgery. </option>
<option value="there were no contraindications to chemotherapy. ">there were no contraindications to chemotherapy. </option>
<option value="there were no contraindications to target therapy. ">there were no contraindications to target therapy. </option>
<option value="there were no contraindications to Rituximab. ">there were no contraindications to target Rituximab. </option></select>
</div>
</div>
</div>
<!--what was Done-->
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion"
href="#collapseTwelve">
...was done on ...
</a>
</h4>
</div>
<div id="collapseTwelve" class="panel-collapse collapse">
<div class="panel-body" id="divDone">
<input type="text" id="WWD" size="40" placeholder = "e.g. LUL lobectomy"><button onclick="Done()" id="Done">was done on</button><input type="text" id="DateDone" size="20" placeholder="e.g. 2019/02/20"><select id="tolerate"><option value=". ">. </option><option value=", and he tolerated the procedure well. ">, and he tolerated the procedure well.</option><option value=", and she tolerated the procedure well. ">, and she tolerated the procedure well.</option></select>
</div>
</div>
</div>
<!--His/Her condition was ... since then-->
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion"
href="#collapse13">
His/Her condition was ... since then
</a>
</h4>
</div>
<div id="collapse13" class="panel-collapse collapse">
<div class="panel-body" id="divCond">
<select id="HisHer1"><option value="His ">His</option><option value="Her ">Her</option></select><button onclick="Cond()" id="Cond">conditions</button><select id="CondChange"><option value="have been stable since then. ">have been stable since then.</option><option value="have been stationary since then. ">have been stationary since then.</option><option value="have been improving since then. ">have been improving since then.</option><option value="have been deteriorating since then. ">have been deteriorating since then.</option></select>
</div>
</div>
</div>
<!--However, ...-->
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion"
href="#collapse14">
However,...
</a>
</h4>
</div>
<div id="collapse14" class="panel-collapse collapse">
<div class="panel-body" id="divHowever">
<button onclick="However()" id="However">However, </button><input type="text" size="30" id="WHPN" placeholder="e.g. fever up to 38.3C"><p>was noted on</p><input type="text" size="30" id="DateHPN" placeholder="e.g. 2019/02/20"><p>.</p><br><input type="text" id="whatWasDone" size="80" placeholder = "e.g. Septic workup was done, and antibiotics was shifted from Unasyn to Tazocin."><br>
<input type="button" name="Septic workup was done" value="Septic workup was done" onclick="whatWasDone.value += 'Septic workup was done'"><input type="button" name=", and antibiotics was shifted from *** to ***." value=", and antibiotics was shifted from *** to ***." onclick="whatWasDone.value += ', and antibiotics was shifted from *** to ***. '"><br>
<input type="button" name="Delirium workup was done" value="Delirium workup was done" onclick="whatWasDone.value += 'Delirium workup was done'"><input type="button" name=", and Haldol/Seroquel was given." value=", and Haldol/Seroquel was given." onclick="whatWasDone.value += ', and Haldol/Seroquel was given. '"><br>
<input type="button" name="Emergent CT was done, which showed " value="Emergent CT was done, which showed " onclick="whatWasDone.value += 'Emergent CT was done, which showed '"><input type="button" name="Mannitol was given. " value="Mannitol was given. " onclick="whatWasDone.value += 'Mannitol was given. '"><input type="button" name="HTS was given. " value="HTS was given. " onclick="whatWasDone.value += 'Hypertonic saline was given. '"><br>
<input type="button" name="BiPAP was initiated." value="BiPAP was initiated." onclick="whatWasDone.value += 'BiPAP was initiated. '"><input type="button" name="The patient was intubated." value="The patient was intubated." onclick="whatWasDone.value += 'The patient was intubated. '">
</div>
</div>
</div>
<!--Antibiotics-->
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion"
href="#collapse15">
Antibiotics...
</a>
</h4>
</div>
<div id="collapse15" class="panel-collapse collapse">
<div class="panel-body" id="divAnti">
<input type="button" name="AntiSent" value="Add Sentence" onclick="MNgenerator.display.value += Anti.value"><br><textarea cols="80" rows="3" id="Anti"></textarea><br>
<input type="button" name="Septic workup was done" value="Septic workup was done" onclick="Anti.value += 'Septic workup was done'">
<input type="button" name="BCx" value="BCx" onclick="Anti.value += 'Blood culture on '">
<input type="button" name="UCx" value="UCx" onclick="Anti.value += 'Urine culture on '">
<input type="button" name="SCx" value="SCx" onclick="Anti.value += 'Sputum culture on '">
<input type="button" name="CSFCx" value="CSFCx" onclick="Anti.value += 'CSF culture on '">
<input type="button" name="AscitesCx" value="AscitesCx" onclick="Anti.value += 'Ascites culture on '">
<input type="button" name="PECx" value="PECx" onclick="Anti.value += 'Pleural effusion culture on '">
<input type="button" name="PusCx" value="PusCx" onclick="Anti.value += 'Wound pus culture on '">
<input type="button" name="SurgCx" value="SurgCx" onclick="Anti.value += 'The culture of surgical specimens on '">
<input type="button" name="Cx" value="Cx" onclick="Anti.value += 'Culture of *** on '"><br>
<input type="button" name="grew" value="grew" onclick="Anti.value += ' grew '">
<input type="button" name="NG" value="no growth" onclick="Anti.value += ' was negative. '">
<input type="button" name="WT" value="WT" onclick="Anti.value += ' wild-type '">
<input type="button" name="AmpC" value="AmpC" onclick="Anti.value += ' AmpC-'">
<input type="button" name="ESBL" value="ESBL" onclick="Anti.value += ' ESBL-'">
<input type="button" name="CR" value="CR" onclick="Anti.value += ' CR-'">
<input type="button" name="E. coli" value="E. coli" onclick="Anti.value += 'E. coli'">
<input type="button" name="K.p." value="K.p." onclick="Anti.value += 'K. pneumoniae'">
<input type="button" name="PsA" value="PsA" onclick="Anti.value += 'Pseudomonas aeruginosa'">
<input type="button" name="AB" value="AB" onclick="Anti.value += 'Acinetobacter baumannii'">
<input type="button" name="MSSA" value="MSSA" onclick="Anti.value += 'MSSA'">
<input type="button" name="MRSA" value="MRSA" onclick="Anti.value += 'MRSA'"><br>
<input type="button" name=". " value=". " onclick="Anti.value += '. '">
<input type="button" name=", and " value=", and " onclick="Anti.value += ', and '">
<input type="button" name="antibiotics was shifted from " value="antibiotics was shifted from" onclick="Anti.value += 'antibiotics was shifted from '">
<input type="button" name="to" value="to" onclick="Anti.value += ' to '">
<input type="button" name="antibiotics was downgraded from " value="antibiotics was downgraded from" onclick="Anti.value += 'antibiotics was downgraded from '">
<input type="button" name="was given " value="was given. " onclick="Anti.value += ' was given '">
<input type="button" name="was discontinued " value="was DC. " onclick="Anti.value += ' was discontinued '"><br>
<input type="button" name="after completing a *-day course. " value="after completing a *-day course. " onclick="Anti.value += 'after completing a *-day course. '">
<input type="button" name="due to lack of culture evidence. " value="due to lack of culture evidence. " onclick="Anti.value += 'due to lack of culture evidence. '">
<input type="button" name="empirically. " value="empirically. " onclick="Anti.value += 'empirically. '">
<input type="button" name="prophylactically. " value="prophylactically. " onclick="Anti.value += 'prophylactically. '">
<br>
<input type="button" name="according to the culture result and sensitivity testing. " value="according to the culture result and sensitivity testing. " onclick="Anti.value += 'according to the culture result and sensitivity testing. '">
<input type="button" name="for better *** coverage. " value="for better *** coverage. " onclick="Anti.value += 'for better *** coverage. '">
<br>
<input type="button" name="Penicillin G" value="Penicillin G" onclick="Anti.value += 'Penicillin G'">
<input type="button" name="oxacillin" value="oxacillin" onclick="Anti.value += 'oxacillin'">
<input type="button" name="Ampicillin" value="Ampi" onclick="Anti.value += 'ampicillin'">
<input type="button" name="Unasyn" value="Unasyn" onclick="Anti.value += 'Unasyn'">
<input type="button" name="Augmentin" value="Augmentin" onclick="Anti.value += 'Augmentin'">
<input type="button" name="Tazocin" value="Tazocin" onclick="Anti.value += 'Tazocin'">
<input type="button" name="Cefa" value="Cefa" onclick="Anti.value += 'Cefa'">
<input type="button" name="Furoxime" value="Furoxime" onclick="Anti.value += 'Furoxime'">
<input type="button" name="Cetazone" value="Cetazone" onclick="Anti.value += 'Cetazone'">
<input type="button" name="Cexitin" value="Cexitin" onclick="Anti.value += 'Cexitin'"><br>
<input type="button" name="Rocephin" value="Rocephin" onclick="Anti.value += 'Rocephin'">
<input type="button" name="Claforan" value="Claforan" onclick="Anti.value += 'Claforan'">
<input type="button" name="Fortum" value="Fortum" onclick="Anti.value += 'Fortum'">
<input type="button" name="cefixime" value="cefixime" onclick="Anti.value += 'cefixime'">
<input type="button" name="Flumarin" value="Flumarin" onclick="Anti.value += 'Flumarin'">
<input type="button" name="Brosym" value="Brosym" onclick="Anti.value += 'Brosym'">
<input type="button" name="Maxipime" value="Maxipime" onclick="Anti.value += 'Maxipime'">
<input type="button" name="Invanz" value="Invanz" onclick="Anti.value += 'Invanz'">
<input type="button" name="Tienam" value="Tienam" onclick="Anti.value += 'Tienam'">
<input type="button" name="Mepem" value="Mepem" onclick="Anti.value += 'Mepem'"><br>
<input type="button" name="Finibax" value="Finibax" onclick="Anti.value += 'Finibax'">
<input type="button" name="Genta" value="Genta" onclick="Anti.value += 'gentamicin'">
<input type="button" name="Amikacin" value="Amikacin" onclick="Anti.value += 'amikacin'">
<input type="button" name="Ciproxin" value="Ciproxin" onclick="Anti.value += 'Ciproxin'">
<input type="button" name="Crevit" value="Crevit" onclick="Anti.value += 'Crevit'">
<input type="button" name="Avelox" value="Avelox" onclick="Anti.value += 'Avelox'">
<input type="button" name="Zithromax" value="Zithromax" onclick="Anti.value += 'Zithromax'">
<input type="button" name="doxycycline" value="doxycycline" onclick="Anti.value += 'doxycycline'">
<input type="button" name="Tygacil" value="Tygacil" onclick="Anti.value += 'Tygacil'"><br>
<input type="button" name="Vancomycin" value="Vanco" onclick="Anti.value += 'Vancomycin'">
<input type="button" name="Targocid" value="Targocid" onclick="Anti.value += 'Targocid'">
<input type="button" name="Zyvox" value="Zyvox" onclick="Anti.value += 'Zyvox'">
<input type="button" name="Cubicin" value="Cubicin" onclick="Anti.value += 'Cubicin'">
<input type="button" name="Colistin" value="Colistin" onclick="Anti.value += 'Colistin'">
<input type="button" name="Clindamycin" value="Clinda" onclick="Anti.value += 'Clindamycin'">
<input type="button" name="Flagyl" value="Flagyl" onclick="Anti.value += 'Flagyl'">
<input type="button" name="Baktar" value="Baktar" onclick="Anti.value += 'Baktar'">
<input type="button" name="Diflucan" value="Diflucan" onclick="Anti.value += 'Diflucan'">
<input type="button" name="Vfend" value="Vfend" onclick="Anti.value += 'Vfend'">
<input type="button" name="Eraxis" value="Eraxis" onclick="Anti.value += 'Eraxis'">
</div>
</div>
</div>
<!--Removal-->
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion"
href="#collapse16">
... was removed ...
</a>
</h4>
</div>
<div id="collapse16" class="panel-collapse collapse">
<div class="panel-body" id="divHowever">
<select id="Drain">
<option value="CWV">CWV</option>
<option value="Chest tube">Chest tube</option>
<option value="CVC">CVC</option>
<option value="Rubber drain">Rubber drain</option>
<option value="EVD">EVD</option>
<option value="ICP monitor">ICP monitor</option>
<option value="Pigtail">Pigtail</option>
<option value=""> </option>
</select>
<input type="text" id="otherDrain" size="25" placeholder="Other(left blank if not needed)"><button onclick="RM()" id="RM">was removed on</button><input type="text" id="RMDate" size="15" placeholder="e.g. 2019/02/19"><br>
<input type="button" name="fuCXR" value="Follow up CXR showed no evidence of pneumothorax." onclick="display.value += 'Follow up CXR showed no evidence of pneumothorax. '">
<input type="button" name="fuXR" value="Follow up x-ray showed normal position of screws." onclick="display.value += 'Follow up x-ray showed normal position of screws. '">
</div>
</div>
</div>
<!--Transfer-->
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion"
href="#collapse17">
Under ... condition, he/she was transferred to...
</a>
</h4>
</div>
<div id="collapse17" class="panel-collapse collapse">
<div class="panel-body" id="divTR">
<button onclick="TR()" id="TR">Under</button><select id="TRCond">
<option value=" stable condition, ">stable condition,</option>
<option value=" unstable condition, ">unstable condition,</option>
<option value=" critical condition, ">critical condition,</option>
<option value=" stationary condition, ">stationary condition,</option>
</select>
<select id="heShe4">
<option value="he ">he</option>
<option value="she ">she</option>
</select>
<p>was transferred to</p><input type="text" size="20" id="TRUnit" placeholder="e.g. SICU"><p>on</p><input type="text" size="20" id="TRDate" placeholder="e.g. 2019/01/30"><p>for further management.</p>
</div>
</div>
</div>
<!--Discharge-->
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion"
href="#collapse18">
Discharge...
</a>
</h4>
</div>
<div id="collapse18" class="panel-collapse collapse">
<div class="panel-body" id="divDC">
<button onclick="DC()" id="DC">Under stable condition, </button><select id="heShe5"><option value="he ">he</option><option value="she ">she</option>
</select><p>was discharged on</p><input type="text" size="15" id="DCDate" placeholder="e.g. 2019/01/30"><p>, and OPD follow up was arranged.</p>
</div>
</div>
</div>
<!--Extubation Note-->
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion"
href="#collapse19">
Extubation Note
</a>
</h4>
</div>
<div id="collapse19" class="panel-collapse collapse">
<div class="panel-body" id="divExtubate">
<button onclick="ExtubationRoutine()" id="ExtubationRoutine">Generate Extubation Note on</button><input type="text" size="20" id="DateEXT" placeholder="e.g. 2019/02/08 13:30"><p>. Consciousness level: E</p><select id="E"><option value="4">4</option><option value="3">3</option><option value="2">2</option><option value="1">1</option></select><p>M</p><select id="M"><option value="6">6</option><option value="5">5</option><option value="4">4</option><option value="3">3</option><option value="2">2</option><option value="1">1</option></select><p>VT.</p>
</div>
</div>
</div>
<!--Death Note-->
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion"
href="#collapse20">
Death Note(DNR)
</a>
</h4>
</div>
<div id="collapse20" class="panel-collapse collapse">
<div class="panel-body" id="divDeath">
<button onclick="DeathDNRRoutine()" id="DeathDNRRoutine">Generate Death Note (DNR) on</button><input type="text" size="20" id="DateDeathDNR" placeholder="e.g. 2019/02/08 13:30"><br>
</div>
</div>
</div>
</div>
<!--clear button-->
<div id="divClear">
<input type="button" id="clear" name="clear" value="CLEAR" onclick="MNgenerator.display.value = ''">
</div>
<script>
count = 0
var display = document.getElementById("display")
function sex(){
for (i = 1; i < 6; i++){
if (document.getElementById("gender").value == " man "){
document.getElementById("heShe"+i).value = "he "}
else {document.getElementById("heShe"+i).value = "she "}
}
for (j = 1; j < 2; j++){
if (document.getElementById("gender").value == " man "){
document.getElementById("hisHer"+j).value = "his "}
else {document.getElementById("hisHer"+j).value = "her "}
}
}
function UnderlyingBox(){
var divThisIs = document.getElementById("divThisIs")
if (document.getElementById("underlying").value == "history of:"){
var tbx = document.createElement("textarea");
tbx.id = "HxBox"
tbx.rows="5"
tbx.cols="30"
divThisIs.appendChild(tbx);
}
if (document.getElementById("underlying").value == "no known underlying disease. "){
var tbx = document.getElementById("HxBox");
div1.removeChild(tbx);
}
}
function ThisIs(){
var par1 = "This is a "
var age = document.getElementById("age").value
var gender = document.getElementById("gender").value
var par2 = "with "
var par3 = document.getElementById("underlying").value
var par = (par1+age+gender+par2+par3+"\n")
display.value += par
if (document.getElementById("underlying").value == "history of:"){
var par4 = document.getElementById("HxBox").value
display.value += (par4 + "\n")
}
}
function Img(){
var par1 = document.getElementById("ImgMod").value
var par2 = document.getElementById("otherMod").value
var par3 = " on "
var par4 = document.getElementById("ImgDate").value
var par5 = " showed "
var par6 = document.getElementById("ImgResult").value
var par7 = par1+par2+par3+par4+par5+par6
display.value+=par7
}
function ThisTime(){
var par1 = "This time, "
var SS = document.getElementById("S/S").value
var par2 = " was noted "
var par3 = document.getElementById("sinceFor").value
var par4 = document.getElementById("duration1").value
var par5 = (par1+SS+par2+par3+par4+". ")
display.value += par5
}
function Imp(){
var par1 = "Under the impression of "
var impression = document.getElementById("impression").value
var par2 = ", "
var par3 = document.getElementById("heShe2").value
var par4 = "was admitted to "
var par5 = document.getElementById("unit").value
var par6 = " on"
var par7 = document.getElementById("dateAdmit").value + " "
var par8 = document.getElementById("manage").value
var par9 = (par1+impression+par2+par3+par4+par5+par6+par7+par8+"\n")
display.value += par9
}
function DefaultDate() {
var date = new Date();
var day = date.getDate();
var month = date.getMonth() + 1;
var year = date.getFullYear();
if (month < 10) month = "0" + month;
if (day < 10) day = "0" + day;
var today = year + "/" + month + "/" + day;
$("#theDate").attr("value", today);
}
function ER(){
var par1 = "Therefore, "
var heShe = document.getElementById("heShe1").value
var sentVisit = document.getElementById("sentVisit").value
par2 = ", "
var par3 = document.getElementById("Date1").value
var par4 = ". Upon arrival, "
var par5 = document.getElementById("hisHer1").value
var par6 = "vital signs showed "
var par7 = document.getElementById("vitalsInp").value
var par8 = "(T/P/R: "
var par9 = document.getElementById("TPR").value
var par10 = ", BP: "
var par11 = document.getElementById("BP").value
var par12 = ", Sat: "
var par13 = document.getElementById("Sat").value
var par14 = "). "
var par15 = (par1+heShe+sentVisit+par3+par4+par5+par6+par7+par8+par9+par10+par11+par12+par13+par14)
display.value += par15
}
function PE(){
var par1 = "Physical examinations showed "
var pe = document.getElementById("PEresult").value
var par2 = ". "
var par3 = (par1+pe+par2)
display.value += par3
}
function ABG(){
var par1 = document.getElementById("ABGVBG").value
var par2 = "showed "
var par3 = document.getElementById("GasResult").value
var par4 = " (pH/pCO2/pO2/HCO3/BE: "
var par5 = document.getElementById("GasData").value
var par6 = "). "
var par7 = (par1+par2+par3+par4+par5+par6)
display.value += par7
}
function GasInt(){
var Data = document.getElementById("GasData").value
var [pH,pCO2,pO2,HCO3,BE] = Data.split("/");
var ABGVBG = document.getElementById("ABGVBG").value
var GasResult = document.getElementById("GasResult")
if (ABGVBG == "ABG "){
if (pH<=7.45 && pH>=7.35 && pCO2<=45 && pCO2>=35 && HCO3<=26 && HCO3>=22 && BE<=2 && BE>=-2){GasResult.value = "normal acid base status"}
else if (pH<=7.40){
if (pCO2>=40){//respiratory acidosis(+)
var dCO2 = (pCO2 - 40)
var dHCO3 = (HCO3 - 24)
var ratio = dHCO3/dCO2
if (ratio <= 0.05){GasResult.value = "mixed respiratory and metabolic acidosis"}
else if (ratio <= 0.15){GasResult.value = "acute respiratory acidosis"}
else if (ratio <= 0.25){GasResult.value = "acute on chronic respiratory acidosis"}
else if (ratio <= 0.40){GasResult.value = "chronic respiratory acidosis"}
else {GasResult.value = "mixed respiratory acidosis and metabolic alkalosis"}
}
else{ //metabolic acidosis(+)
var dHCO3 = (24 - HCO3)
var dCO2 = (40 - pCO2)
var ratio = dCO2/dHCO3
if (ratio <= 0.7){GasResult.value = "metabolic acidosis without expected compensation"}
else if (ratio <= 1.5){GasResult.value = "metabolic acidosis with respiratory compensation"}
else {GasResult.value = "mixed metabolic acidosis and respiratory alkalosis"}
}
}
else { //pH>7.40
if (pCO2<40){//respiratory alkalosis(+)
var dCO2 = (40 - pCO2)
var dHCO3 = (24 - HCO3)
var ratio = dHCO3/dCO2
if (ratio <= 0.1){GasResult.value = "mixed respiratory and metabolic alkalosis"}
else if (ratio <= 0.3){GasResult.value = "acute respiratory alkalosis"}
else if (ratio <= 0.4){GasResult.value = "acute on chronic respiratory alkalosis"}
else {GasResult.value = "chronic respiratory alkalosis"}
}
else{//metabolic alkalosis(+)
var dCO2 = (pCO2 - 40)
var dHCO3 = (HCO3 - 24)
var ratio = dCO2/dHCO3
if (ratio < 0.35){GasResult.value = "metabolic alkalosis without expected respiratory compensation"}
else if (ratio < 1){GasResult.value = "metabolic alkalosis with respiratory compensation"}
else {GasResult.value = "mixed metabolic alkalosis and respiratory acidosis"}
}
}
if (pO2<=75){GasResult.value += " + hypoxemia"}
}
else{//VBG
if (pH<=7.40 && pH>=7.30 && HCO3<=24 && HCO3>=20 && BE<=2 && BE>=-2 ){GasResult.value = "normal VBG"}
else if (pH<=7.30){
if (BE<=-2){GasResult.value = "metabolic acidosis"}
else if(BE<=2){GasResult.value = "respiratory acidosis"}
else{GasResult.value = "mixed respiratory acidosis and metabolic alkalosis"}
}
else if (pH>7.40){
if (BE>=2){GasResult.value = "metabolic alkalosis"}
else if(BE>=-2){GasResult.value = "respiratory alkalosis"}
else {GasResult.value = "mixed respiratory alkalosis and metabolic acidosis"}
}
else{GasResult.value = "inconclusive"}
}
}
function OPD(){
var par1 = "Therefore, "
var par2 = document.getElementById("heShe3").value
var par3 = "visited Dr."
var par4 = document.getElementById("DrName").value
var par5 = "'s OPD on "
var par6 = document.getElementById("Date2").value
var par7 = ". "
var par8 = (par1+par2+par3+par4+par5+par6+par7)
display.value += par8
}
function Lab(){
var par1 = "Lab data showed "
var par2 = document.getElementById("LabResult").value
var par3 = par1+par2
display.value += par3
}
function EKG(){
var par1 = "EKG showed "
var par2 = document.getElementById("EKGResult").value
var par3 = par1+par2
display.value += par3
}
function EKGRoutine(){
var par1 = "EKG "
var par2 = document.getElementById("DateEKG").value
var par3 = "\n"
var par4 = "Normal sinus rhythm. Normal EKG.\n"
var par5 = par1+par2+par3+par4
display.value += par5
}
function CXRRoutine(){
var par1 = "CXR "
var par2 = document.getElementById("DateCXR").value
var par3 = "\n"
var par4 = "Patent airway. No evident bone lesions. Normal heart size with sharp heart borders. Normal lung volume. Bilateral sharp CP angles. No definite lung lesions. Formal report pending.\n"
var par5 = par1+par2+par3+par4
display.value += par5
}
function DeathDNRRoutine(){
var par1 = "I was called due to pulselessness. DNR status was confirmed.\n\nUpon arrival, the patient was not responsive, had no heart beat nor spontaneous breathing. Bilateral pupils showed no light reflex. EKG showed asystole. The patient expired on "
var par2 = document.getElementById("DateDeathDNR").value
var par3 = ". "
var par4 = par1+par2+par3
display.value += par4
}
function ExtubationRoutine(){
var par1 = "The patient’s consciousness level was E"
var par2 = document.getElementById("E").value
var par3 = "M"
var par4 = document.getElementById("M").value
var par5 = "VT. Weaning parameters were acceptable. The patient was extubated smoothly on "
var par6 = document.getElementById("DateEXT").value
var par7 = ".\n\nAfter extubation, no stridor nor wheezing were noted. The patient’s saturation level was 100%."
var par8 = par1+par2+par3+par4+par5+par6+par7
display.value += par8
}
function After(){
var par1 = "After "
var par2 = document.getElementById("AdminTR").value
var par3 = document.getElementById("ThereWereNo").value
var par4 = par1+par2+par3
display.value += par4
}
function Done(){
var par1 = document.getElementById("WWD").value
var par2 = " was done on "
var par3 = document.getElementById("DateDone").value
var par4 = document.getElementById("tolerate").value
var par5 = par1+par2+par3+par4
display.value += par5
}
function Cond(){
var par1 = document.getElementById("HisHer1").value
var par2 = "conditions "
var par3 = document.getElementById("CondChange").value
var par4 = par1+par2+par3
display.value+=par4
}
function However(){
var par1 = "However, "
var par2 = document.getElementById("WHPN").value
var par3 = " was noted on "
var par4 = document.getElementById("DateHPN").value
var par5 = ". "
var par6 = document.getElementById("whatWasDone").value
var par7 = par1+par2+par3+par4+par5+par6
display.value += par7
}
function RM(){
var par1 = document.getElementById("Drain").value
var par2 = document.getElementById("otherDrain").value
var par3 = " was removed on "
var par4 = document.getElementById("RMDate").value
var par5 = ". "
var par6 = par1+par2+par3+par4+par5
display.value+= par6
}
function TR(){
var par1 = "Under"
var par2 = document.getElementById("TRCond").value
var par3 = document.getElementById("heShe4").value
var par4 = "was transferred to "
var par5 = document.getElementById("TRUnit").value
var par6 = " on "
var par7 = document.getElementById("TRDate").value
var par8 = " for further management. "
var par9 = par1+par2+par3+par4+par5+par6+par7+par8
display.value += par9
}
function DC(){
var par1 = "Under stable condition, "
var par2 = document.getElementById("heShe5").value
var par3 = "was discharged on "
var par4 = document.getElementById("DCDate").value
var par5 = ", and OPD follow up was arranged. "
var par6 = par1+par2+par3+par4+par5
display.value += par6
}
</script>
</body>
</html>