-
Notifications
You must be signed in to change notification settings - Fork 0
/
index2.html
1219 lines (1215 loc) · 59 KB
/
index2.html
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="range.css">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta charset="utf-8">
<link rel="apple-touch-icon" sizes="120x120" href="apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
<link rel="manifest" href="manifest.json">
<meta name="theme-color" content="#000000">
<title>PaediCalc</title>
</head>
<body>
<div class="noprint">
<ul>
<li><a class="active" href="#" onClick="showbaselayer()">PaediCalc</a></li>
<li><a href="#"><span id="navBW"></span></a></li>
<li><a href="#"><span id="navAge"></span></a></li>
<li class="right"><a href="#" onClick="setmodal('modalGC')">GC</a></li>
<li class="right"><a href="#" onClick="showvitalslayer()"><img src="iconVitals.png" width="30" height="30" /></a></li>
<li class="right"><a href="#" onClick="showresuslayer()"><img src="iconHeart.png" width="30" height="30" /></a></li>
<li class="right"><a href="#" onClick="showbaselayer()"><img src="iconHome.png" width="30" height="30" /></a></li>
</ul>
</div>
<div class="bottombar noprint" id="searchbar" style="display:none;">
<!--<form action="" onsubmit="searchtext(); return false;">-->
<input id="findstring" type="search" style="width:57%; margin:0px 2px 0px 2px;">
<button onclick="searchreset()" style="float:right; width:19%; margin:0px 2px 0px 2px;">Clear</button>
<button id="findbutton" onclick="searchtext()" style="float:right; width:19%; margin:0px 2px 0px 2px;" type="submit">Find</button>
<!--</form>-->
</div>
<!-- The Modal -->
<div id="myModal" class="modal" style="display:none;">
<div class="modal-content">
<div class="modal-header notcondensed">PaediCalc<span class="close notcondensed" onClick="hidemodal('myModal')">×</span></div>
<div class="modal-body notcondensed" style="font-size:120%">
<p>Choose one of the options below:</p>
<p><span onClick="hidemodal('myModal')"> - Continue as webpage</span></p>
<p><span onClick="window.location.replace('https://build.phonegap.com/apps/2775985/download/android')"> - Download the Android app</span></p>
</div>
</div>
</div>
<!--end modal-->
<div class="bodycontent" id="bodycontent1">
<div class="noprint"><p style="line-height: 1px; padding-bottom:50px; margin: 0px;"> </p></div>
<div id="baselayer">
<div class="contentrow" id="headerarea">
<div class="column1">
<h2>Body-Weight Based Calculator</h2>
<div class="nomobile" style="color:#777; margin: 0px 0px 0px 5px;">Dept of Anaesthesia & Intensive Care<br>Prince of Wales Hospital HK</div></div><!--
--><div class="column2">
<div class="entrybox">
<table id="table1" width=100%;>
<tr><!-- Row 1 -->
<td width=74px><b>Enter BW:</b></td><!-- Col 1 -->
<td><input id="inputBW" type="number" placeholder="" step="0.01" oninput="dosecalc(this.value)" onchange="dosecalc(this.value)" onclick="this.select()" style="vertical-align: middle;"> kg <span id="spacefiller2" style="font-style: italic;"></span></td>
</tr>
<tr><!-- Row 2 -->
<td style="vertical-align:top;"><b style="line-height: 30px;">Enter Age:</b></td><!-- Col 1 -->
<td><input id="inputAge" type="number" placeholder="" step="0.1" oninput="ageupdate()" onchange="ageupdate()" onclick="this.select()">
<select id="ageunit" onchange="ageupdate()">
<option value="years">Years</option>
<option value="months">Months</option>
<option value="days">Days</option>
</select>
<br><span id="spacefiller" style="font-style: italic;"></span>
<span id="predictedBW" style="font-weight:bold;"></span></td><!-- Col 2 -->
</tr>
</table>
<!--
<div class="noprint">
<br>
<label>Or adjust the slider to change body weight: </label>
<input id="sliderbar" type="range" min="0" max="50" step="1" onchange="updateTextInput(this.value);dosecalc(this.value)">
</div>-->
</div><!--end grey box-->
</div><!--endcolumn-->
</div><!--endrow-->
<!--
-->
<div class="contentrow">
<div class="column">
<p class="tableheading">AIRWAY & IVF</p>
<table width="100%">
<tr><!-- Row 1 -->
<td>ETT size:</td><td><span id="ETTsize">__</span></td><!-- Col 1 -->
</tr>
<tr>
<td>ETT depth:</td><td><span id="ETTdepth">__</span></td>
</tr>
<tr><!-- Row 2 -->
<td>LMA size:</td><td><span id="LMAsize" class="field"></span></td><!-- Col 1 -->
</tr>
<tr><!-- Row 3 -->
<td>IVF maintenance<span style="font-size:80%"> (4-2-1):</span></td><td><span id="IVFrate" class="field">__</span>ml/h</td><!-- Col 1 -->
</tr>
<tr>
<td>IVF bolus (20ml/kg):</td><td><span id="IVFbolus" class="field">__</span>ml</td>
</tr>
</table>
<p class="tableheading">INTRAOPERATIVE</p>
<table width="100%">
<tr>
<td width="1%" style="background-color:rgb(255,255,0);"></td>
<td>Propofol (3mg/kg): </td>
<td><span id="propofoldose" class="field">___</span> mg </td>
</tr>
<tr><!-- Row 2 -->
<td width="1%" style="background-color:rgb(255,114,118);"></td>
<td>Atracurium (0.5mg/kg): </td><!-- Col 1 -->
<td><span id="atracuriumdose" class="field">___</span> mg</td><!-- Col 2 -->
</tr>
<tr>
<td width="1%" style="background-color:rgb(133,199,277);"></td>
<td>Fentanyl (1-2mcg/kg): </td>
<td><span id="fentanyldose1" class="field">___</span> to <span id="fentanyldose2" class="field">___</span> mcg </td>
</tr>
<tr>
<td width="1%" style="background-color:rgb(133,199,277);"></td>
<td>Morphine (0.1mg/kg): </td>
<td><span id="morphinedose" class="field">___</span> mg </td>
</tr>
<tr>
<td width="1%" style="background-color:#ffffff;"></td>
<td>Paracetamol <b>IV</b> (<span id="IVpanadolBW" style="font-size:80%;"></span>)</td>
<td><span id="IVpanadol" class="field">___</span> mg slow infusion</td>
</tr>
<tr>
<td width="1%" style="background-color:#ffffff;"></td>
<td>Paracetamol <b>PR</b> (30mg/kg) </td>
<td><span id="PRpanadol" class="field">___</span> mg </td>
</tr>
<tr>
<td width="1%" style="background-color:#ffffff;"></td>
<td>Ondansetron (0.1mg/kg) </td>
<td><span id="ondansetrondose" class="field">___</span> mg </td>
</tr>
<tr>
<td width="1%" style="background-image:url('neostigmine.gif');"></td>
<td>Neostigmine (50mcg/kg)</td>
<td><span id="neostigminedose" class="field">___</span> mg </td>
</tr>
</table>
</div><!-- end column
--><div class="column">
<p class="tableheading">HAEMAT</p>
<table width="100%">
<tr><!-- Row 1 -->
<td>Blood volume (<span id="EBVfactor" class="field">70</span>ml/kg) = <span id="EBV" class="field">__</span>ml</td><!-- Col 1 -->
</tr>
<tr><!-- Row 2 -->
<td>PRBC (4ml/kg) = <span id="PRBC4" class="field">__</span>ml <div style="float:right;">(↑ 1g/dL)</div></td><!-- Col 1 -->
</tr>
<tr><!-- Row 3 -->
<td>PRBC (10ml/kg) = <span id="PRBC10" class="field">__</span>ml <div style="float:right;">(↑ 2.5g/dL)</div></td><!-- Col 1 -->
</tr>
<tr><!-- Row 3 -->
<td>Platelets (10ml/kg) = <span id="platelets" class="field">__</span>ml</td><!-- Col 1 -->
</tr>
<tr><!-- Row 3 -->
<td>FFP (15ml/kg) = <span id="FFP" class="field">__</span>ml</td><!-- Col 1 -->
</tr>
</table>
<p class="tableheading">EMERGENCIES</p>
<table width="100%">
<tr>
<td width="1%" style="background-color:rgb(163,217,99);"></td>
<td>Atropine (20mcg/kg): </td>
<td><span id="atropinedose" class="field">___</span> mg </td>
</tr>
<tr>
<td width="1%" style="background-color:rgb(255,114,118);"></td>
<td>Suxamethonium (1.5mg/kg): </td>
<td><span id="suxdose" class="field">___</span> mg </td>
</tr>
<tr><!-- Row 2 -->
<td width="1%" style="background-color:rgb(222,191,217);"></td>
<td>Adrenaline (10mcg/kg): <br><i style="font-size: 80%"> for cardiac arrest</i></td><!-- Col 1 -->
<td><span id="adrenalinedose" class="field">__</span> mcg i.e. <span id="adrenalineML" class="field">__</span> ml <span style="font-size: 80%"> (1:10,000)</span></td><!-- Col 2 -->
</tr>
<tr>
<td width="1%" style="background-color:rgb(222,191,217);"></td>
<td>Adrenaline (1mcg/kg): <br><i style="font-size: 80%"> for anaphylaxis, initial dose IV</i></td>
<td><span id="adrenalinedose1mcg" class="field">__</span> mcg i.e. <span id="adrenalineML1mcg" class="field">__</span> ml <span style="font-size: 80%"> (1:10,000)</span></td>
</tr>
<tr>
<td width="1%" style="background-color:black;"></td>
<td>Sync.Cardioversion <span style="font-size:80%">(0.5→1→2J/kg):</span></td>
<td><span id="cardiover1" class="field">__</span>→
<span id="cardiover2" class="field">__</span>→
<span id="cardiover3" class="field">__</span>J</td>
</tr>
<tr>
<td width="1%" style="background-color:black;"></td>
<td>Defibrillation (2-4J/kg): </td>
<td><span id="defibdose1" class="field">__</span> to <span id="defibdose2" class="field">__</span>J</td>
</tr>
</table>
</div><!--end column-->
</div><!-- end contentrow-->
<div class="contentrow">
<div class="column">
<p class="tableheading">OTHER DRUGS <button class="showhidebutton" onclick="showhide('otherdrugs');"> SHOW / HIDE CONTENT ↓ </button></p>
<div id="otherdrugs">
<table width="100%" id="otherdrugstable">
<tr>
<td colspan="2" class="subheading notcondensed">Cardiac & Resuscitation</td>
</tr>
<tr class="noborderb"><!-- Row 1 -->
<td>ATP (0.05mg/kg):</td><!-- Col 1 -->
<td><span id="ATP" class="field">__</span> mg</td><!-- Col 2 -->
</tr>
<tr class="noborderu">
<td colspan="2">repeat every 2mins, each increment 0.05mg/kg, up to 0.35 mg/kg (max 20mg)</td>
</tr>
<tr><!-- Row 2 -->
<td>Amiodarone (5mg/kg): </td><!-- Col 1 -->
<td><span id="amiodose" class="field">__</span> mg</td><!-- Col 2 -->
</tr>
<tr><!-- Row 2 -->
<td>Hydrocortisone (2-4mg/kg):</td><!-- Col 1 -->
<td><span id="hydrocortisone1" class="field">__</span> to <span id="hydrocortisone2" class="field">__</span>mg</td><!-- Col 2 -->
</tr>
<tr class="noborderb">
<td>Salbutamol <b>IV</b></td>
<td style="font-size:90%;" rowspan="2">5-10 mcg/kg/min for 1h<br>then 1-2 mcg/kg/min</td>
</tr>
<tr class="noborderu">
<td>10mg diluted up to 50ml NS (200mcg/ml)</td>
</tr>
<tr>
<td>Intralipid 20% (1.5ml/kg): </td>
<td><span id="intralipid" class="field">__</span> ml over 1 min</td>
<tr>
<td>Dantrolene (2.5mg/kg): </td>
<td><span id="dantrolene" class="field">__</span> mg</td>
</tr>
<tr>
<td colspan="2" class="subheading notcondensed">Metabolic & Electrolytes</td>
</tr>
<tr><!-- Row 1 -->
<td>Calcium gluconate 10% <span style="font-size:80%">(0.3ml/kg):</span></td><!-- Col 1 -->
<td><span id="cagluconate" class="field">__</span>ml slow IV</td><!-- Col 2 -->
</tr>
<tr class="noborderb"><!-- Row 2 -->
<td>Magnesium (25-50mg/kg):</td><!-- Col 1 -->
<td><span id="magnesium1" class="field">__</span> to <span id="magnesium2" class="field">__</span>mg<span style="font-size:80%"> over 20mins</span></td><!-- Col 2 -->
</tr>
<tr class="noborderu">
<td colspan="2" >approx. <span id="magnesiumml1" class="field">__</span> to <span id="magnesiumml2" class="field">__</span> ml (0.05-0.1ml/kg) of standard preparation (49.3%≈2mmol/ml)</td>
</tr>
<tr class="noborderb"><!-- Row 2 -->
<td>Dextrose (D10W) (2ml/kg):</td>
<td><span id="D10W" class="field">__</span> ml</td><!-- Col 2 -->
</tr>
<tr class="noborderu">
<td colspan="2">make D10W by diluting 10ml D50W in water make up to 50ml</td>
</tr>
<tr>
<td>DI drip <br><span style="font-size:80%">(0.1unit/kg insulin + D50W 2ml/kg):</span></td><!-- Col 1 -->
<td><span id="DIdripInsulin" class="field">__</span>U insulin + <br><span id="DIdripDextrose" class="field">__</span>ml D50W <span style="font-size:80%">over 20mins</span><span id="DIspacefiller"></span></td><!-- Col 2 -->
</tr>
<tr><!-- Row 2 -->
<td>NaHCO3 8.4% (1ml/kg):</td><!-- Col 1 -->
<td><span id="sodiumbicarb" class="field">__</span>ml slow IV</td><!-- Col 2 -->
</tr>
<tr>
<td colspan="2" class="subheading notcondensed">Reversal agents</td>
</tr>
<tr><!-- Row 2 -->
<td>Naloxone <span style="font-size:80%">(4mcg/kg, repeat as necessary)</span>:</td><!-- Col 1 -->
<td><span id="naloxone" class="field">__</span>mcg <span style="font-size:80%">initial dose, slow IV</span></td><!-- Col 2 -->
</tr>
<tr><!-- Row 2 -->
<td>Flumazenil (10mcg/kg):</td><!-- Col 1 -->
<td><span id="flumazenil" class="field">__</span></td><!-- Col 2 -->
</tr>
<tr>
<td colspan="2" class="subheading notcondensed">Neuro</td>
</tr>
<tr><!-- Row 2 -->
<td>Mannitol 20% <br><span style="font-size:80%">(0.25-0.5g/kg=1.25-2.5ml/kg)</span></td><!-- Col 1 -->
<td><span id="mannitol1" class="field">__</span> to <span id="mannitol2" class="field">__</span>ml <span style="font-size:80%">over 30mins</span></td><!-- Col 2 -->
</tr>
<tr><!-- Row 2 -->
<td>Lorazepam (0.1mg/kg):</td><!-- Col 1 -->
<td><span id="lorazepam" class="field">__</span> mg</td><!-- Col 2 -->
</tr>
<tr>
<td>Midazolam<span style="font-size:80%"> (0.1-0.2mg/kg) </span><b>IV</b> or <b>IM</b>:</td>
<td><span id="midazolam1" class="field">__</span> to <span id="midazolam2" class="field">__</span> mg</td>
</tr>
<tr><!-- Row 2 -->
<td>Phenytoin (20mg/kg):</td><!-- Col 1 -->
<td><span id="phenytoin" class="field">__</span>mg over 20mins</td><!-- Col 2 -->
</tr>
</table>
</div><!--end visibility toggle-->
</div><!-- end column
--><div class="column">
<p class="tableheading"> VASOPRESSOR <button class="showhidebutton" onclick="showhide('vasopressorcontent');"> SHOW / HIDE CONTENT ↓ </button></p>
<div id="vasopressorcontent">
<table width="100%" id="vasotable">
<tr class="vasostyle">
<td><b>Dopamine</b></td>
<td>Preparation: 200mg in 5ml (40mg/ml)</td>
</tr>
<tr>
<td>Dosage: </td>
<td><span id="dopamineDOSE" class="field">__</span> mg <span style="font-size:80%">[BW(kg)x3]</span> dilute up to 50ml NS/D5<br></td>
</tr>
<tr>
<td>Dilution:</td>
<td>Add <span id="dopamineNEAT" class="field">__</span> ml NEAT drug to <span id="dopamineDILUTENT" class="field">__</span> ml NS/D5<span id="spacefillerdopamine"></span></td>
</tr>
<tr>
<td>Infuse at: </td>
<td>1-20 mcg/kg/min = 1-20 ml/h</td>
</tr>
<tr class="vasostyle">
<td><b>Dobutamine</b></td>
<td>Preparation: 250mg in 20ml (12.5mg/ml)</td>
</tr>
<tr>
<td>Dosage: </td>
<td><span id="dobutDOSE" class="field">__</span> mg <span style="font-size:80%">[BW(kg)x3]</span> dilute up to 50ml NS/D5<br></td>
</tr>
<tr>
<td>Dilution:</td>
<td>Add <span id="dobutNEAT" class="field">__</span> ml NEAT drug to <span id="dobutDILUTENT" class="field">__</span> ml NS/D5</td>
</tr>
<tr>
<td>Infuse at: </td>
<td>1-20 mcg/kg/min = 1-20 ml/h</td>
</tr>
<tr class="vasostyle">
<td><b>Adrenaline</b></td>
<td>Preparation: 1:10,000 (0.1mg/ml)</td>
</tr>
<tr>
<td>Dosage: </td>
<td><span id="adrenDOSE" class="field">__</span> dilute up to 50ml NS/D5<br></td>
</tr>
<tr>
<td>Dilution:</td>
<td>Add <span id="adrenNEAT" class="field">__</span> ml NEAT drug to <span id="adrenDILUTENT" class="field">__</span> ml NS/D5</td>
</tr>
<tr>
<td>Infuse at: </td>
<td><span id="adrenInfuseAt">0.1-2 mcg/kg/min = 1-20 ml/h</span></td>
</tr>
<tr class="vasostyle">
<td><b>Noradrenaline</b></td>
<td>Preparation: 4mg in 4ml (1mg/ml)</td>
</tr>
<tr>
<td>Dosage: </td>
<td><span id="noradDOSE" class="field">__</span> dilute up to 50ml NS/D5<br></td>
</tr>
<tr>
<td>Dilution:</td>
<td>Add <span id="noradNEAT" class="field">__</span> ml NEAT drug to <span id="noradDILUTENT" class="field">__</span> ml NS/D5</td>
</tr>
<tr>
<td>Infuse at: </td>
<td><span id="noradInfuseAt">0.1-0.5 mcg/kg/min = 1-5 ml/h</span></td>
</tr>
<tr class="vasostyle">
<td><b>Phenylephrine</b></td>
<td><i>Must be diluted at least 100x before admin</i></td>
</tr>
<tr>
<td>Bolus dose: </td>
<td>1-2mcg/kg i.e. <span id="phenylephrine1" class="field">__</span> to <span id="phenylephrine2" class="field">__</span> mcg
</tr>
</table>
</div><!-- end visibility toggle-->
<p class="tableheading"> MAX DOSE OF LOCAL ANAESTHETIC </p>
<table width="100%" id="latable">
<tr>
<td width="1%" style="background-color:tan;"></td>
<td>Lignocaine <i> with<b>out</b> adrenaline </i>(<i>max</i> 4mg/kg) </td>
<td><span id="lignocainewithoutadrenaline" class="field">___</span> <b>mg</b> </td>
</tr>
<tr>
<td width="1%" style="background-color:tan;"></td>
<td>Lignocaine <i> with adrenaline </i>(<i>max</i> 7mg/kg) </td>
<td><span id="lignocainewithadrenaline" class="field">___</span> <b>mg</b> </td>
</tr>
<tr>
<td width="1%" style="background-color:tan;"></td>
<td>(Levo)bupivacaine (<i>max</i> 2mg/kg) </td>
<td><span id="bupivacainedose" class="field">___</span> <b>mg</b> </td>
</tr>
</table>
</div><!--end column-->
</div><!-- end content row -->
</div><!-- end baselayer-->
<div id="resuslayer">
<div class="contentrow">
<div class="column"><img src="resus1.jpg" style="max-width:100%" /></div><!--
--><div class="column">
<p class="tableheading">SPECIFIC ASPECTS</p>
<table border="1" width="100%">
<tr><!-- Row 1 -->
<td>Pulse check:
<br><i>Child:</i> Carotid or femoral pulse
<br><i>Infants:</i> Brachial pulse
</td>
</tr>
<tr>
<td>Compression-ventilation ratio:
<br>30:2 for <i>1 rescuer</i>
<br>15:2 for <i>2 rescuers</i>
</td>
</tr>
<tr><!-- Row 2 -->
<td>Compression depth:
<br><i>Child:</i> 1/3 AP diameter of chest / 5cm
<br><i>Infants:</i> 1/3 AP diameter of chest / 4cm
</td>
</tr>
<tr><!-- Row 3 -->
<td>Hand placement:
<br><i>Child:</i> 2 hands at lower half of sternum
<br><i>Infants:</i> 2 thumb-encircling hands at centre of chest
</td>
</tr>
<tr>
<td><i>During CPR: </i><b>Push hard and fast (100-120/min), allow full chest recoil, minimize interruptions, avoid hyperventilation, rotate compressor every 2 minutes</b>
</td>
</tr>
<tr>
<td><i>Intraoperative arrest: </i><b>FiO2 to 100%, discontinue anaesthetics, stop surgical stimulus. If patient is already intubated: continue compressions at 100-120/min, give 1 breath every 6 sec</b>
</td>
</tr>
<tr>
<td><i>Reversible causes: </i><b>Hypovolemia, hypoxia, hydrogen ion, hypoglycemia, hypo or hyperK+, hypothermia, tension pneumothorax, cardiac tamponade, pulmonary thromboembolism, coronary thrombosis, toxins</b>
</td>
</table>
</div>
</div>
<div class="column">
<img src="resus2A.jpg" style="max-width:100%" />
</div><!--
--><div class="column">
<img src="resus2B.jpg" style="max-width:100%" />
</div>
</div><!-- end div resuslayer-->
<div id="vitalslayer">
<div class="column">
<img src="vitals1.jpg" width="100%"/>
</div><!--
--><div class="column">
<img src="vitals2.jpg" width="100%"/>
</div>
</div><!--end vitals-layer-->
<!--insert more modals here-->
<div id="modalGC" class="modal" style="display:none;">
<div class="modal-content">
<div class="modal-header notcondensed">WEIGHT ESTIMATION<span class="close notcondensed" onClick="hidemodal('modalGC')">×</span></div>
<div class="modal-body notcondensed" >
<table>
<tr>
<td colspan="2" style="background-color:white; font-size:80%;">
This tool estimates the body weight from a given body height/length or age, based on local growth chart data. Please note that the body weight estimated is the median body weight for a certain body height/length or age, and care must be taken in the body weight estimation in extreme body habitus.
<br>
</td>
<tr>
<td align="right">Height </td>
<td><select id="GCBHinput" style="width:100px">
<option value=0></option>
<option value=55>55</option>
<option value=57>57</option>
<option value=59>59</option>
<option value=61>61</option>
<option value=63>63</option>
<option value=65>65</option>
<option value=67>67</option>
<option value=69>69</option>
<option value=71>71</option>
<option value=73>73</option>
<option value=75>75</option>
<option value=77>77</option>
<option value=79>79</option>
<option value=81>81</option>
<option value=83>83</option>
<option value=85>85</option>
<option value=87>87</option>
<option value=89>89</option>
<option value=91>91</option>
<option value=93>93</option>
<option value=95>95</option>
<option value=97>97</option>
<option value=99>99</option>
<option value=101>101</option>
<option value=103>103</option>
<option value=105>105</option>
<option value=107>107</option>
<option value=109>109</option>
<option value=111>111</option>
<option value=113>113</option>
<option value=115>115</option>
<option value=117>117</option>
<option value=119>119</option>
<option value=121>121</option>
<option value=123>123</option>
<option value=125>125</option>
<option value=127>127</option>
<option value=129>129</option>
<option value=131>131</option>
<option value=133>133</option>
<option value=135>135</option>
<option value=137>137</option>
<option value=139>139</option>
<option value=141>141</option>
<option value=143>143</option>
<option value=145>145</option>
</select></td>
</tr>
<tr>
<td align="right">Age </td>
<td><select id="GCAgeinput" style="width:100px">
<option value=0></option>
<option value=0.25>Neonate</option>
<option value=1>1 month</option>
<option value=2>2 months</option>
<option value=3>3 months</option>
<option value=4>4 months</option>
<option value=5>5 months</option>
<option value=6>6 months</option>
<option value=8>8 months</option>
<option value=10>10 months</option>
<option value=12>12 months</option>
<option value=15>15 months</option>
<option value=18>18 months</option>
<option value=21>21 months</option>
<option value=24>2 years</option>
<option value=30>2.5 years</option>
<option value=36>3 years</option>
<option value=42>3.5 years</option>
<option value=48>4 years</option>
<option value=54>4.5 years</option>
<option value=60>5 years</option>
<option value=66>5.5 years</option>
<option value=72>6 years</option>
<option value=78>6.5 years</option>
<option value=84>7 years</option>
<option value=90>7.5 years</option>
<option value=96>8 years</option>
<option value=102>8.5 years</option>
<option value=108>9 years</option>
<option value=114>9.5 years</option>
<option value=120>10 years</option>
</select></td>
</tr>
<tr>
<td align="right">Gender </td>
<td><select id="GCGender" style="width:100px">
<option value=0>Male</option>
<option value=1>Female</option>
</select></td>
</tr>
<tr>
<td align="right">Weight </td>
<td><input id="GCBWinput" type="number" style="width:70px; background-color:#dddddd;" readonly> kg (estimated)</td>
</tr>
<tr>
<td colspan="2" align="center"><button onclick="calcWFH(GCBHinput.value);" style="width:90%">Estimate weight from height</button></td>
</tr>
<tr>
<td colspan="2" align="center"><button onclick="calcWFA(GCAgeinput.value);" style="width:90%">Estimate weight from age</button></td>
</tr>
<tr>
<td colspan="2" align="center"><button onclick="sendtoOpener();" style="width:90%">Return to app</button></td>
</tr>
</table>
</div>
</div>
</div>
<div id="modalabout" class="modal" style="display:none;">
<div class="modal-content">
<div class="modal-header notcondensed" style="background-image: url('icon.png'); background-repeat: no-repeat; background-position: 5px 5px; background-size: 32px; padding:5px 16px 5px 42px; ">ABOUT<span class="close notcondensed" onClick="hidemodal('modalabout')">×</span></div>
<div class="modal-body notcondensed" >
Paediatric body-weight based calculator
<br><b>Created by Terence Luk, <br>Prince of Wales Hospital HK, <br>Ⓒ 2018, all rights reserved.</b>
<br>I would like to thank Dr. Polly Chan and Mr. Thomas Lo for their support and advice.
<br><br><b>Instructions for use</b>
<br>Age range: 0-10 years
<br>(You can select the unit for age: years, months, or days)
<br>Body weight range: 0-50kg
<br>
<br><b>Changelog</b>
<br>1.3: Initial release (Dec 2017)
<br>2.0: Added growth chart data (Oct 2018)
</div>
</div>
</div>
<div id="modaldisclaimer" class="modal" style="display:none;">
<div class="modal-content">
<div class="modal-header notcondensed">FULL DISCLAIMER NOTICE<span class="close notcondensed" onClick="hidemodal('modaldisclaimer')">×</span></div>
<div class="modal-body notcondensed" style="font-size:85%">
The use of this application ("app") is for reference only; the accuracy of the contents cannot be guaranteed. Administer medications with care and according to clinical need. The author does not accept responsibility or liability for any errors in the information provided or for the misuse or misapplication of material in this app.
<br>As a result of rapid advances in medical knowledge, the contents of this app may not be completely up to date. The information contained also should not be considered to be free of errors, or to include all relevant information, nor should it be used as an exclusive basis for decision making. <b>You agree that the use of the information provided in this app is at your sole discretion and risk. </b>We recommend that you obtain independent verification of the information and drug dosages presented in this app from the most updated medical literature, journal articles, package inserts and text books. The user should evaluate the indications, contraindications, potential benefits and risks before applying the information on any specific patient. Please do not use this app if you do not agree to the terms and conditions of this disclaimer.
</div>
</div>
</div>
<div id="modalref" class="modal" style="display:none;">
<div class="modal-content">
<div class="modal-header notcondensed">REFERENCES<span class="close notcondensed" onClick="hidemodal('modalref')">×</span></div>
<div class="modal-body notcondensed">
<b>Department guidelines</b>
<br>Guidelines for management of perioperative anaphylaxis (Nov 2016)
<br>Quick guide on vasoactive drug infusions in paediatric patients for anaesthetists (Oct 2016)
<br>Management of paediatric cardiac arrest (Sep 2017)
<br><br><b>Books</b>
<br>PWH Paediatric anaesthesia trainee manual [internal use]
<br>Smith's anesthesia for infants and children (9ed), Chapter 54
<br>A practice of anesthesia for infants and children (5ed), pocket reference guide
<br>Drug doses 17th edition (2017) by Frank Shann
</div>
</div>
</div>
<!--end modal insert-->
<p style="font-size: 80%;" class="notcondensed" id="about">
<select id="fontsizechanger" class="noprint" onchange="changefontsize(this.value)">
<option value="120%">Larger font</option>
<option value="80%">Smaller font</option>
<option value="100%" selected>Normal font</option>
</select>
<button id="aboutbutton" type="button" class="endbutton" onclick="setmodal('modalabout')">About</button>
<button id="disclaimerbutton" type="button" class="endbutton" onclick="setmodal('modaldisclaimer')">Full Disclaimer</button>
<button id="referencebutton" type="button" class="endbutton" onclick="setmodal('modalref')">References</button>
<span onclick="showhide('searchbar'); document.getElementById('findstring').focus();" style="float:right; color:#ddd; font-size:32px;">⌕</span>
<br> Ⓒ 2018 Terence Luk - Version 2.0 BETA - All rights reserved.
<br> Disclaimer: The use of the application ("app") is for reference only; the accuracy of the contents cannot be guaranteed. Administer medications with care and according to clinical need. The author does not accept responsibility or liability for any errors in the information provided or for the misuse or misapplication of material in this app.</p>
</div><!--end content part-->
<script>
var app = document.URL.indexOf('http://')=== -1 && document.URL.indexOf('https://') === -1; /* check running within a webbrowser, -1 means http never occurred*/
if (!app) { /*if not app, setmodal for download link */
setmodal('myModal');
var modal = document.getElementById('myModal');
}
function hidemodal(modalname) {
document.getElementById(modalname).style.display = "none";
}
function setmodal(modalname) {
var modal = document.getElementById(modalname);
modal.style.display = "block";
window.onclick = function(event) {
if (event.target == modal) {
modal.style.display = "none";
}
}
}
window.onclick = function(event) {
if (event.target == modal) {
modal.style.display = "none";
}
}
function changefontsize(valSize) {
var y = valSize;
document.getElementById("bodycontent1").style.fontSize=y;
}
function showhide(contentname) {
var x = document.getElementById(contentname);
if (x.style.display==='none') {x.style.display='inline';}
else {x.style.display='none';}
}
function showresuslayer() {
document.getElementById("baselayer").style.display="none";
document.getElementById("resuslayer").style.display="block";
document.getElementById("vitalslayer").style.display="none";
}
function showbaselayer() {
document.getElementById("baselayer").style.display="block";
document.getElementById("resuslayer").style.display="none";
document.getElementById("vitalslayer").style.display="none";
}
function showvitalslayer() {
document.getElementById("baselayer").style.display="none";
document.getElementById("resuslayer").style.display="none";
document.getElementById("vitalslayer").style.display="block";
}
function showvGClayer() {
document.getElementById("baselayer").style.display="none";
document.getElementById("resuslayer").style.display="none";
document.getElementById("vitalslayer").style.display="block";
}
function searchtext(){
if (typeof searchtext.counter == 'undefined') {
searchtext.counter = 0;
searchtext.terms = new Array();
searchtext.terms[0] = document.getElementById("findstring").value;
} else {
searchtext.terms.push(document.getElementById("findstring").value);
}
if (searchtext.counter>=1) {
if (window.find && window.getSelection) {
document.designMode="on";
var sel = window.getSelection();
sel.collapse(document.getElementById("bodycontent1", 0));
while (window.find(searchtext.terms[searchtext.counter-1])) {
document.getElementById("findbutton").blur();
document.execCommand("hiliteColor", false, "transparent");
sel.collapseToEnd();
}
document.designMode = "off";
}
}
if (window.find && window.getSelection) {
document.designMode="on";
var sel = window.getSelection();
sel.collapse(document.getElementById("bodycontent1", 0));
while (window.find(searchtext.terms[searchtext.counter])) {
document.getElementById("findbutton").blur();
document.execCommand("hiliteColor", false, "yellow");
sel.collapseToEnd();
}
document.designMode = "off";
}
++searchtext.counter;
}
function searchreset() {
var termX = document.getElementById("findstring").value;
if (window.find && window.getSelection) {
document.designMode="on";
var sel = window.getSelection();
sel.collapse(document.getElementById("bodycontent1", 0));
while (window.find(termX)) {
document.getElementById("findbutton").blur();
document.execCommand("hiliteColor", false, "transparent");
sel.collapseToEnd();
}
document.designMode = "off";
}
document.getElementById("searchbar").style = "display:none";
document.getElementById("findstring").value = "";
}
function ageupdate() {
valAgeUnit = document.getElementById("ageunit").value;
if (valAgeUnit==="years") {
var valAge=Math.round((document.getElementById("inputAge").value)*10)/10;
//Add exclusion criteria first
if (document.getElementById("inputAge").value.length===0) {
resetAge();
}
else if ((valAge<0)||(valAge>10)) {
resetAge();
}
else { // then calculate ETT size and depth based on AGE, and return navbar AGE prompt
if (valAge<1) {
//get body weight
valbodyweight = document.getElementById("inputBW").value;
document.getElementById("EBVfactor").innerHTML="80";
document.getElementById("EBV").innerHTML=Math.round(valbodyweight*80);
if ((valbodyweight>0.01)&&(valbodyweight<1)) {
if ((valbodyweight>0.01)&&(valbodyweight<0.7)) {
document.getElementById("ETTsize").innerHTML="#2.0-2.5 uncuffed" + "<i style='font-size:80%'>" + " for Neonates<0.7kg" + "</i>";
document.getElementById("ETTdepth").innerHTML="Around 6cm";
}
else if ((valbodyweight>=0.7)&&(valbodyweight<1)) {
document.getElementById("ETTsize").innerHTML="#2.5 uncuffed" + "<i style='font-size:80%'>" + " for Neonates<1kg" + "</i>";
document.getElementById("ETTdepth").innerHTML="6-6.5cm";
}
}
else if ((valbodyweight>=1)&&(valbodyweight<3.5)) {
if ((valbodyweight>=1)&&(valbodyweight<2)) {
document.getElementById("ETTsize").innerHTML="#3.0 uncuffed" + "<i style='font-size:80%'>" + " for Neonates 1-3.5kg" + "</i>";
document.getElementById("ETTdepth").innerHTML="7cm" + "<i style='font-size:80%;'>" + " (7-8-9 rule i.e. 6cm plus BW in kg)" + "</i>";}
else if ((valbodyweight>=2)&&(valbodyweight<3)) {
document.getElementById("ETTsize").innerHTML="#3.0 uncuffed"+ "<i style='font-size:80%'>" + " for Neonates 1-3.5kg" + "</i>";
document.getElementById("ETTdepth").innerHTML="8cm" + "<i style='font-size:80%;'>" + " (7-8-9 rule i.e. 6cm plus BW in kg)" + "</i>";}
else if ((valbodyweight>=3)&&(valbodyweight<3.5)) {
document.getElementById("ETTsize").innerHTML="#3.0-3.5 uncuffed, or" + "<br>" + "#3.0 microcuff" + "<i style='font-size:80%'>" + " for term neonates >=3kg" + "</i>";
document.getElementById("ETTdepth").innerHTML="9cm" + "<i style='font-size:80%;'>" + " (7-8-9 rule i.e. 6cm plus BW in kg)" + "</i>";}
}
else if (valbodyweight>=3.5) {
document.getElementById("ETTsize").innerHTML="#3.5 uncuffed, or" + "<br>" + "#3.0 microcuff" + "<i style='font-size:80%'>" + " for term>=3kg up to <8mo" + "</i>";
document.getElementById("ETTdepth").innerHTML="9-10cm" + "<i style='font-size:80%'>" + " for term neonates" + "</i>";
}
else {
// clear ETT size and depth fields if BW unknown
document.getElementById("ETTsize").innerHTML="__";
document.getElementById("ETTdepth").innerHTML="__";
}
}
else if (valAge<2) {
document.getElementById("ETTsize").innerHTML="#3.5 microcuff" + "<i style='font-size:80%'>" + " for 8mo to <2y" + "</i>";
document.getElementById("ETTdepth").innerHTML="10-11cm" + "<i style='font-size:80%'>" + " for 1-year-old" + "</i>"}
else if (valAge<4) {document.getElementById("ETTsize").innerHTML="#4.0 microcuff";}
else if (valAge<6) {document.getElementById("ETTsize").innerHTML="#4.5 microcuff";}
else if (valAge<8) {document.getElementById("ETTsize").innerHTML="#5.0 microcuff";}
else if (valAge<10) {document.getElementById("ETTsize").innerHTML="#5.5 microcuff";}
else if (valAge==10) {document.getElementById("ETTsize").innerHTML="#6.0 cuffed";}
// calculate ETT depth and predicted BW
if (valAge>=1 && valAge<=10) {
valbodyweight = document.getElementById("inputBW").value;
document.getElementById("EBVfactor").innerHTML="70";
document.getElementById("EBV").innerHTML=Math.round(valbodyweight*70);
document.getElementById("spacefiller").innerHTML="→ predicted BW is ";
document.getElementById("predictedBW").innerHTML=valAge*2+8 + "" + "kg";
if (valAge>=2) {
document.getElementById("ETTdepth").innerHTML=valAge/2+12 + " cm";
}
}
document.getElementById("navAge").innerHTML="Age: " + valAge + "y";
}
}
else if (valAgeUnit==="months") { // THIS SECTION IS FOR AGE-MONTHS
var valAge=Math.round(document.getElementById("inputAge").value);
document.getElementById("spacefiller").innerHTML="";
document.getElementById("predictedBW").innerHTML="";
//Add exclusion criteria first
if (document.getElementById("inputAge").value.length===0) {
resetAge();
}
else if ((valAge<0) || (valAge>120)) {
resetAge();
}
else { // then calculate ETT size and depth based on AGE, and return navbar AGE prompt
if (valAge<=1) { //1 MONTH!!
//get body weight
valbodyweight = document.getElementById("inputBW").value;
document.getElementById("EBVfactor").innerHTML="90";
document.getElementById("EBV").innerHTML=Math.round(valbodyweight*90);
if ((valbodyweight>0.01)&&(valbodyweight<1)) {
if ((valbodyweight>0.01)&&(valbodyweight<0.7)) {
document.getElementById("ETTsize").innerHTML="#2.0-2.5 uncuffed" + "<i style='font-size:80%'>" + " for Neonates<0.7kg" + "</i>";
document.getElementById("ETTdepth").innerHTML="Around 6cm";
}
else if ((valbodyweight>=0.7)&&(valbodyweight<1)) {
document.getElementById("ETTsize").innerHTML="#2.5 uncuffed" + "<i style='font-size:80%'>" + " for Neonates<1kg" + "</i>";
document.getElementById("ETTdepth").innerHTML="6-6.5cm";
}
}
else if ((valbodyweight>=1)&&(valbodyweight<3.5)) {
if ((valbodyweight>=1)&&(valbodyweight<2)) {
document.getElementById("ETTsize").innerHTML="#3.0 uncuffed" + "<i style='font-size:80%'>" + " for Neonates 1-3.5kg" + "</i>";
document.getElementById("ETTdepth").innerHTML="7cm" + "<i style='font-size:80%;'>" + " (7-8-9 rule i.e. 6cm plus BW in kg)" + "</i>";}
else if ((valbodyweight>=2)&&(valbodyweight<3)) {
document.getElementById("ETTsize").innerHTML="#3.0 uncuffed"+ "<i style='font-size:80%'>" + " for Neonates 1-3.5kg" + "</i>";
document.getElementById("ETTdepth").innerHTML="8cm" + "<i style='font-size:80%;'>" + " (7-8-9 rule i.e. 6cm plus BW in kg)" + "</i>";}
else if ((valbodyweight>=3)&&(valbodyweight<3.5)) {
document.getElementById("ETTsize").innerHTML="#3.0-3.5 uncuffed, or" + "<br>" + "#3.0 microcuff" + "<i style='font-size:80%'>" + " for term neonates >=3kg" + "</i>";
document.getElementById("ETTdepth").innerHTML="9cm" + "<i style='font-size:80%;'>" + " (7-8-9 rule i.e. 6cm plus BW in kg)" + "</i>";}
}
else if ((valbodyweight>=3.5)&&(valbodyweight<=5)) {
document.getElementById("ETTsize").innerHTML="#3.5 uncuffed, or" + "<br>" + "#3.0 microcuff" + "<i style='font-size:80%'>" + " for term>=3kg up to <8mo" + "</i>";
document.getElementById("ETTdepth").innerHTML="9-10cm" + "<i style='font-size:80%'>" + " for term neonates" + "</i>";
}
else if (valbodyweight>5) {
document.getElementById("ETTsize").innerHTML="Not a neonate??";
document.getElementById("ETTdepth").innerHTML="Not a neonate??";
}
else {
// clear ETT size and depth fields if BW unknown
document.getElementById("ETTsize").innerHTML="__";
document.getElementById("ETTdepth").innerHTML="__";
}
}
else if (valAge<8) { //8 months!!! microcuff #3.0 for <8mo
document.getElementById("spacefiller").innerHTML="→ predicted BW is ";
document.getElementById("predictedBW").innerHTML=Math.round(valAge/2*10)/10+4 + "" + "kg";
valbodyweight = document.getElementById("inputBW").value;
document.getElementById("EBVfactor").innerHTML="80";
document.getElementById("EBV").innerHTML=Math.round(valbodyweight*80);
document.getElementById("ETTsize").innerHTML="3.5 uncuffed, or" + "<br>" + "3.0 microcuff" + "<i style='font-size:80%'>" + " for term>=3kg up to <8mo" + "</i>";
document.getElementById("ETTdepth").innerHTML="Around 10cm";}
else if (valAge<24) { //i.e. 2 years!!!
valbodyweight = document.getElementById("inputBW").value;
if (valAge<=12) {
document.getElementById("spacefiller").innerHTML="→ predicted BW is ";
document.getElementById("predictedBW").innerHTML=Math.round(valAge/2*10)/10+4 + "" + "kg";
document.getElementById("EBVfactor").innerHTML="80";
document.getElementById("EBV").innerHTML=Math.round(valbodyweight*80);
} else {
document.getElementById("spacefiller").innerHTML="→ predicted BW is ";
document.getElementById("predictedBW").innerHTML=Math.round(valAge/12*10)/10*2+8 + "" + "kg";
document.getElementById("EBVfactor").innerHTML="70";
document.getElementById("EBV").innerHTML=Math.round(valbodyweight*70);
}
document.getElementById("ETTsize").innerHTML="#3.5 microcuff" + "<i style='font-size:80%'>" + " for 8mo to <2y" + "</i>";
document.getElementById("ETTdepth").innerHTML="10-11cm" + "<i style='font-size:80%'>" + " for 1-year-old" + "</i>"
}
else if (valAge<48) {document.getElementById("ETTsize").innerHTML="#4.0 microcuff";}
else if (valAge<72) {document.getElementById("ETTsize").innerHTML="#4.5 microcuff";}
else if (valAge<96) {document.getElementById("ETTsize").innerHTML="#5.0 microcuff";}
else if (valAge<120) {document.getElementById("ETTsize").innerHTML="#5.5 microcuff";}
else if (valAge==120) {document.getElementById("ETTsize").innerHTML="#6.0 cuffed";}
// calculate ETT depth and predicted BW
if (valAge>=24 && valAge<=120) {
document.getElementById("spacefiller").innerHTML="→ predicted BW is ";
document.getElementById("predictedBW").innerHTML=Math.round(valAge/12*10)/10*2+8 + "" + "kg";
document.getElementById("ETTdepth").innerHTML=Math.round(valAge/12)/2+12 + " cm";
valbodyweight = document.getElementById("inputBW").value;
document.getElementById("EBVfactor").innerHTML="70";
document.getElementById("EBV").innerHTML=Math.round(valbodyweight*70);
}
document.getElementById("navAge").innerHTML="Age: " + valAge + "mth";
}
}
else if (valAgeUnit==="days") { //THIS SECTION IS FOR AGE-DAYS
var valAge=Math.round(document.getElementById("inputAge").value);
document.getElementById("spacefiller").innerHTML="";
document.getElementById("predictedBW").innerHTML="";
//Add exclusion criteria first
if (document.getElementById("inputAge").value.length===0) {
resetAge();
}
else if ((valAge<0) || (valAge>100)) {
resetAge();
}
else { // then calculate ETT size and depth based on AGE, and return navbar AGE prompt
if (valAge<=100) { //assume so-called neonate <100days
//get body weight
valbodyweight = document.getElementById("inputBW").value;
if (valAge>31) {
document.getElementById("EBVfactor").innerHTML="80";
document.getElementById("EBV").innerHTML=Math.round(valbodyweight*80);
} else {
document.getElementById("EBVfactor").innerHTML="90";
document.getElementById("EBV").innerHTML=Math.round(valbodyweight*90);
}
if ((valbodyweight>0.01)&&(valbodyweight<1)) {
if ((valbodyweight>0.01)&&(valbodyweight<0.7)) {
document.getElementById("ETTsize").innerHTML="#2.0-2.5 uncuffed" + "<i style='font-size:80%'>" + " for Neonates<0.7kg" + "</i>";
document.getElementById("ETTdepth").innerHTML="Around 6cm";
}
else if ((valbodyweight>=0.7)&&(valbodyweight<1)) {
document.getElementById("ETTsize").innerHTML="#2.5 uncuffed" + "<i style='font-size:80%'>" + " for Neonates<1kg" + "</i>";
document.getElementById("ETTdepth").innerHTML="6-6.5cm";
}
}
else if ((valbodyweight>=1)&&(valbodyweight<3.5)) {
if ((valbodyweight>=1)&&(valbodyweight<2)) {
document.getElementById("ETTsize").innerHTML="#3.0 uncuffed" + "<i style='font-size:80%'>" + " for Neonates 1-3.5kg" + "</i>";
document.getElementById("ETTdepth").innerHTML="7cm" + "<i style='font-size:80%;'>" + " (7-8-9 rule i.e. 6cm plus BW in kg)" + "</i>";}
else if ((valbodyweight>=2)&&(valbodyweight<3)) {
document.getElementById("ETTsize").innerHTML="#3.0 uncuffed"+ "<i style='font-size:80%'>" + " for Neonates 1-3.5kg" + "</i>";
document.getElementById("ETTdepth").innerHTML="8cm" + "<i style='font-size:80%;'>" + " (7-8-9 rule i.e. 6cm plus BW in kg)" + "</i>";}
else if ((valbodyweight>=3)&&(valbodyweight<3.5)) {
document.getElementById("ETTsize").innerHTML="#3.0-3.5 uncuffed, or" + "<br>" + "#3.0 microcuff" + "<i style='font-size:80%'>" + " for term neonates >=3kg" + "</i>";
document.getElementById("ETTdepth").innerHTML="9cm" + "<i style='font-size:80%;'>" + " (7-8-9 rule i.e. 6cm plus BW in kg)" + "</i>";}
}
else if ((valbodyweight>=3.5)&&(valbodyweight<=5)) {
document.getElementById("ETTsize").innerHTML="#3.5 uncuffed, or" + "<br>" + "#3.0 microcuff" + "<i style='font-size:80%'>" + " for term>=3kg up to <8mo" + "</i>";
document.getElementById("ETTdepth").innerHTML="9-10cm" + "<i style='font-size:80%'>" + " for term neonates" + "</i>";
}
else if (valbodyweight>5) {
document.getElementById("ETTsize").innerHTML="Not a neonate??";
document.getElementById("ETTdepth").innerHTML="Not a neonate??";
}
else {
// clear ETT size and depth fields if BW unknown
document.getElementById("ETTsize").innerHTML="__";
document.getElementById("ETTdepth").innerHTML="__";
}
}
document.getElementById("navAge").innerHTML="Age: " + valAge + "d" ;
}
}
}
function resetAge() {
document.getElementById("ETTsize").innerHTML="__";
document.getElementById("ETTdepth").innerHTML="__";
if (valAgeUnit==="years") {
document.getElementById("spacefiller").innerHTML="(enter age range 0-10y)";}
else if (valAgeUnit==="months") {
document.getElementById("spacefiller").innerHTML="(enter age range 0-120months)";
}
else if (valAgeUnit==="days") {
document.getElementById("spacefiller").innerHTML="(not a neonate?)";
}
document.getElementById("predictedBW").innerHTML="";
document.getElementById("navAge").innerHTML="";
}
function dosecalc(valNum) {
if ((valNum.length===0)||(valNum<0)||(valNum>50)) {
document.getElementById("spacefiller2").innerHTML="Please enter correct BW";
document.getElementById("navBW").innerHTML="";
var listfield = document.getElementsByClassName("field");
for (i=0; i<listfield.length; i++) {
listfield[i].innerHTML="__";
}
}
else {
//ADD ageupdate as ETT will be affected by age if baby is small
ageupdate();
document.getElementById("spacefiller2").innerHTML="";
if (valNum<0) {document.getElementById("LMAsize").innerHTML="Please enter correct BW";}
else if (valNum<2.5) {document.getElementById("LMAsize").innerHTML="N/A";}
else if (valNum<5) {document.getElementById("LMAsize").innerHTML="#1";}
else if (valNum<10) {document.getElementById("LMAsize").innerHTML="#1.5";}
else if (valNum<20) {document.getElementById("LMAsize").innerHTML="#2";}