-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathnutrition_calc.html
831 lines (755 loc) · 35.9 KB
/
nutrition_calc.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
<!-- <%@ language="javascript"%> -->
<!DOCTYPE html>
<html lang="en-150">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/cosmo/bootstrap.min.css" media="all"> <!--bootswatch-->
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> <!--google icons-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <!--font awesome 20px-sm-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-153581997-4"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-153581997-4');
</script>
<script>
$(document).ready(function(){
$('#myTab li:eq(1) a').tab('show');
});
function totalNutricion() {
// CALORIES
var w = parseFloat(document.getElementById("weight").value);
var h = parseFloat(document.getElementById("height").value);
var age = parseFloat(document.getElementById("age").value);
var gen = document.getElementById("gender").value;
var stress = parseFloat(document.getElementById("stress").value);
if (gen == "Mujer" ) {
totCal = ((655 + (9.6 * w) + (1.8 * h) - (4.7 * age)) * stress).toFixed(); //rounded value
totCal2 = totCal;
} else {
totCal = ((66.5 + (13.7 * w) + (5 * h) - (6.8 * age)) * stress).toFixed(); //rounded value
totCal2 = totCal;
}
var totCalKg = (totCal / w).toFixed(); //rounded value
var totCalKg2 = totCalKg;
/*
var caloriasKg = 30;
var totCal = w * caloriasKg;
*/
document.getElementById("totCal").innerHTML = totCal;
document.getElementById("totCal2").innerHTML = totCal2;
document.getElementById("totCalKg").innerHTML = totCalKg;
document.getElementById("totCalKg2").innerHTML = totCalKg2;
// PROTEINS
var gramprot = parseFloat(document.getElementById("gramprot").value);
if (gramprot < 0.5 || gramprot > 3.5 ) {
totProt = "- -";
errorProt = "Error: el rango debe estar entre 0.5 y 3.5";
totNitro = "- -";
} else {
totProt = (w * gramprot).toFixed(); //rounded value
totProtF = w * gramprot;
errorProt = "";
totNitro = (totProtF * 0.16).toFixed(1); //rounded value
}
var caloriasProt = 4;
if (totProt == "- -" ) {
totCalProt = "- -";
propCalProt = "- -";
} else {
totCalProt = (totProtF * caloriasProt).toFixed(); //rounded value
totCalProtF = totProtF * caloriasProt;
propCalProt = (totCalProtF / totCal * 100).toFixed(); //rounded value
}
var mlProt = parseFloat(document.getElementById("mlprot").value);
var mlProtTotal = (totProtF / (mlProt / 100)).toFixed(); //rounded value
var mlProtTotalF = totProtF / (mlProt / 100);
document.getElementById("totProt").innerHTML = totProt;
document.getElementById("errorProt").innerHTML = errorProt;
document.getElementById("totNitro").innerHTML = totNitro;
document.getElementById("mlProtTotal").innerHTML = mlProtTotal;
document.getElementById("totCalProt").innerHTML = totCalProt;
document.getElementById("propCalProt").innerHTML = propCalProt;
// GLUCOSE
var propglucose = parseFloat(document.getElementById("propglucose").value);
var totCalGlu = (totCal-totCalProt) * propglucose / 100;
var propCalGlu = (totCalGlu / totCal * 100).toFixed(); //rounded value
var caloriasGlu = 3.4;
var totGlu = (totCalGlu / caloriasGlu).toFixed(); //rounded value
var mlGlu = parseFloat(document.getElementById("mlglu").value);
var mlGluTotal = (totGlu / (mlGlu / 100)).toFixed(); //rounded value
var mlGluTotalF = totGlu / (mlGlu / 100);
document.getElementById("totCalGlu").innerHTML = totCalGlu;
document.getElementById("propCalGlu").innerHTML = propCalGlu;
document.getElementById("totGlu").innerHTML = totGlu;
document.getElementById("mlGluTotal").innerHTML = mlGluTotal;
// LIPIDS
var proplipids = 100 - propglucose;
var totCalLip = (totCal-totCalProt) * proplipids / 100;
var propCalLip = (totCalLip / totCal * 100).toFixed(); //rounded value
var caloriasLip = 9;
var totLip = (totCalLip / caloriasLip).toFixed(); //rounded value
var mlLip = parseFloat(document.getElementById("mllip").value);
var mlLipTotal = (totLip / (mlLip / 100)).toFixed(); //rounded value
var mlLipTotalF = totLip / (mlLip / 100);
var mlLipKg = (mlLipTotalF / w).toFixed(); //rounded value
document.getElementById("totCalLip").innerHTML = totCalLip;
document.getElementById("propCalLip").innerHTML = propCalLip;
document.getElementById("totLip").innerHTML = totLip;
document.getElementById("mlLipTotal").innerHTML = mlLipTotal;
document.getElementById("mlLipKg").innerHTML = mlLipKg;
// SUPPEMENTS
var mlVitlipid = 10.0;
var mlVitsolub = 0.0;
var mlOligoel = 10.0;
var mlSuplem = mlVitlipid + mlVitsolub + mlOligoel;
document.getElementById("mlSuplem").innerHTML = mlSuplem;
// IONS
var mlclk = parseFloat(document.getElementById("mlclk").value);
var mlpmk = parseFloat(document.getElementById("mlpmk").value);
var mlmgso4 = parseFloat(document.getElementById("mlmgso4").value);
var nacl = parseFloat(document.getElementById("nacl").value);
var mlIones = mlclk + mlpmk + mlmgso4 + nacl;
document.getElementById("mlIones").innerHTML = mlIones;
// ML TOTAL
var mlTotal = (mlProtTotalF + mlGluTotalF + mlLipTotalF + mlSuplem + mlIones).toFixed(); //rounded value
document.getElementById("mlTotal").innerHTML = mlTotal;
// FORMULAS STANDARD
var standardCalMl = parseFloat(document.getElementById("formulaStandard").value);
var mlTotalStandard = (totCal / standardCalMl).toFixed();
document.getElementById("mlTotalStandard").innerHTML = mlTotalStandard;
}
function roundedNutricion() {
// CALORIES
var w = parseFloat(document.getElementById("weight").value);
var h = parseFloat(document.getElementById("height").value);
var age = parseFloat(document.getElementById("age").value);
var gen = document.getElementById("gender").value;
var stress = parseFloat(document.getElementById("stress").value);
if (gen == "Mujer" ) {
totCalRound = (((655 + (9.6 * w) + (1.8 * h) - (4.7 * age)) * stress)/100).toFixed(); //rounded value
totCal = (parseFloat(totCalRound)*100).toFixed();
totCal2 = totCal;
} else {
totCalRound = (((66.5 + (13.7 * w) + (5 * h) - (6.8 * age)) * stress)/100).toFixed(); //rounded value
totCal = (parseFloat(totCalRound)*100).toFixed();
totCal2 = totCal;
}
var totCalKg = (totCal / w).toFixed(); //rounded value
var totCalKg2 = totCalKg;
/*
var caloriasKg = 30;
var totCal = w * caloriasKg;
*/
document.getElementById("totCal").innerHTML = totCal;
document.getElementById("totCal2").innerHTML = totCal2;
document.getElementById("totCalKg").innerHTML = totCalKg;
document.getElementById("totCalKg2").innerHTML = totCalKg2;
// PROTEINS
var gramprot = parseFloat(document.getElementById("gramprot").value);
if (gramprot < 0.5 || gramprot > 3.5 ) {
totProt = "- -";
errorProt = "Error: el rango debe estar entre 0.5 y 3.5";
totNitro = "- -";
} else {
totProt = (w * gramprot).toFixed(); //rounded value
totProtF = w * gramprot;
errorProt = "";
totNitro = (totProtF * 0.16).toFixed(1); //rounded value
}
var caloriasProt = 4;
if (totProt == "- -" ) {
totCalProt = "- -";
propCalProt = "- -";
} else {
totCalProt = (totProtF * caloriasProt).toFixed(); //rounded value
totCalProtF = totProtF * caloriasProt;
propCalProt = (totCalProtF / totCal * 100).toFixed(); //rounded value
}
var mlProt = parseFloat(document.getElementById("mlprot").value);
var mlProtTotalRound = ((totProtF / (mlProt / 100))/100).toFixed(); //rounded value
var mlProtTotal = (mlProtTotalRound*100).toFixed(); //rounded value **********************************
var mlProtTotalF = parseFloat(mlProtTotalRound)*100;
document.getElementById("totProt").innerHTML = totProt;
document.getElementById("errorProt").innerHTML = errorProt;
document.getElementById("totNitro").innerHTML = totNitro;
document.getElementById("mlProtTotal").innerHTML = mlProtTotal;
document.getElementById("totCalProt").innerHTML = totCalProt;
document.getElementById("propCalProt").innerHTML = propCalProt;
// GLUCOSE
var propglucose = parseFloat(document.getElementById("propglucose").value);
var totCalGlu = (totCal-totCalProt) * propglucose / 100;
var propCalGlu = (totCalGlu / totCal * 100).toFixed(); //rounded value
var caloriasGlu = 3.4;
var totGlu = (totCalGlu / caloriasGlu).toFixed(); //rounded value
var mlGlu = parseFloat(document.getElementById("mlglu").value);
var mlGluTotalRound = ((totGlu / (mlGlu / 100))/100).toFixed(); //rounded value
var mlGluTotal = (mlGluTotalRound*100).toFixed(); //rounded value;
var mlGluTotalF = parseFloat(mlGluTotalRound)*100;
document.getElementById("totCalGlu").innerHTML = totCalGlu;
document.getElementById("propCalGlu").innerHTML = propCalGlu;
document.getElementById("totGlu").innerHTML = totGlu;
document.getElementById("mlGluTotal").innerHTML = mlGluTotal;
// LIPIDS
var proplipids = 100 - propglucose;
var totCalLip = (totCal-totCalProt) * proplipids / 100;
var propCalLip = (totCalLip / totCal * 100).toFixed(); //rounded value
var caloriasLip = 9;
var totLip = (totCalLip / caloriasLip).toFixed(); //rounded value
var mlLip = parseFloat(document.getElementById("mllip").value);
var mlLipTotalRound = ((totLip / (mlLip / 100))/100).toFixed(); //rounded value
var mlLipTotal = (mlLipTotalRound*100).toFixed(); //rounded value;
var mlLipTotalF = parseFloat(mlLipTotalRound)*100;
var mlLipKg = (mlLipTotalF / w).toFixed(); //rounded value
document.getElementById("totCalLip").innerHTML = totCalLip;
document.getElementById("propCalLip").innerHTML = propCalLip;
document.getElementById("totLip").innerHTML = totLip;
document.getElementById("mlLipTotal").innerHTML = mlLipTotal;
document.getElementById("mlLipKg").innerHTML = mlLipKg;
// SUPPEMENTS
var mlVitlipid = 10.0;
var mlVitsolub = 0.0;
var mlOligoel = 10.0;
var mlSuplem = mlVitlipid + mlVitsolub + mlOligoel;
document.getElementById("mlSuplem").innerHTML = mlSuplem;
// IONS
var mlclk = parseFloat(document.getElementById("mlclk").value);
var mlpmk = parseFloat(document.getElementById("mlpmk").value);
var mlmgso4 = parseFloat(document.getElementById("mlmgso4").value);
var nacl = parseFloat(document.getElementById("nacl").value);
var mlIones = mlclk + mlpmk + mlmgso4 + nacl;
document.getElementById("mlIones").innerHTML = mlIones;
// ML TOTAL
var mlTotal = (mlProtTotalF + mlGluTotalF + mlLipTotalF + mlSuplem + mlIones).toFixed(); //rounded value
document.getElementById("mlTotal").innerHTML = mlTotal;
// FORMULAS STANDARD
var standardCalMl = parseFloat(document.getElementById("formulaStandard").value);
var mlTotalStandardRound = ((totCal / standardCalMl)/100).toFixed();
var mlTotalStandard = parseFloat(mlTotalStandardRound)*100;
document.getElementById("mlTotalStandard").innerHTML = mlTotalStandard;
}
</script>
<style>
.input-lg {
font-size: 30px;
}
.input {
font-size: 20px;
}
.font-sm {
font-size: 0.7em;
}
.alert-gray{
background-color: #1d4249;
color: #ffffff;
border-color: #1d4249;
}
.alert-blue1{
background-color: #6995b0;
color: #ffffff;
border-color: #6995b0;
}
.alert-protein{
background-color: #cc7a00;
color: #ffffff;
border-color: #cc7a00;
}
.alert-protein > .form-group > .form-control {
background-color: #fff5e6;
color: #995c00;
border-color: #cc7a00;
}
.alert-glucose{
background-color: #79b530;
color: #ffffff;
border-color: #79b530;
}
.alert-glucose > .form-group > .form-control {
background-color: #e7f4d7;
color: #43651b;
border-color: #79b530;
}
.alert-lipids{
background-color: #e6bb00;
color: #ffffff;
border-color: #e6bb00;
}
.alert-lipids > .form-group > .form-control {
background-color: #fff6cc;
color: #997d00;
border-color: #e6bb00;
}
.alert-vitamin{
background-color: #388293; /*#2e6976*/
color: #ffffff;
border-color: #388293;
}
.alert-vitamin > .form-group > .form-control {
background-color: #daedf1;
color: #1c424a;
border-color: #388293;
}
.alert-ions{
background-color: #70adbc;
color: #ffffff;
border-color: #70adbc;
}
.alert-ions > .form-group > .form-control {
background-color: #dcebef;
color: #315d68;
border-color: #70adbc;
}
.alert-ions-inline{ /* overrides css overriding in ions button well*/
background-color: #dcebef;
color: #315d68;
border-color: #70adbc;
}
.alert-danger{
background-color: #b62f2f; /*#c73859; #e03e55*/
color: #ffffff;
border-color: #b62f2f;
}
.nav-tabs > li > a{
color: #84a5ae;
}
.btn-danger:hover {
background-color: #b62f2f;
}
@media print {
.noPrint {
display:none;
}
}
</style>
<title>Calculadora nutrición</title>
</head>
<body>
<div id="intro" class="container-fluid">
<div class="row">
<div class="col-sm-12 col-md-12 text-center">
<h1> Parenteral Nutrition <span class="fa fa-calculator"></a></span></h1>
<h4> For Adults in Intensive Care Units </h4>
<div class="row">
<div class="col-sm-5 col-md-5 col-xs-4 text-center">
</div> <!--EOF column-->
<div class="col-sm-1 col-md-1 col-xs-2 text-center">
<h4><a id="nutritionLink" href="./nutricion_calc.html" target="blank"><img class="img-responsive button" src="./pics/gray-spain.png" alt="spanish" onclick="changeLangEs()"></a></h4>
</div> <!--EOF column-->
<div class="col-sm-1 col-md-1 col-xs-2 text-center">
<h4><a id="nutritionLink" href="./nutrition_calc.html" target="blank"><img class="img-responsive button" src="./pics/gray-uk.png" alt="english" onclick="changeLangEn()"></a></h4>
</div> <!--EOF column-->
<div class="col-sm-5 col-md-5 col-xs-4 text-center">
</div> <!--EOF column-->
</div> <!--EOF row-->
<hr>
</div> <!--EOF column-->
</div> <!--EOF row-->
</div> <!--EOF container-->
<div id="peso" class="container-fluid">
<div class="row">
<div class="col-sm-12 col-md-12 text-center">
<div class="button well" onclick="totalNutricion()">
<div class="form-group form-inline">
<label class="control-label" for="edad"><h3> Age </h3></label>
<input class="form-control input" type="number" id="age" name="edad" value="50" min="15" max="100" step="1" placeholder="Edad">
<label class="control-label" for="peso"><h3> Weight (kg) </h3></label>
<input class="form-control input" type="number" id="weight" name="peso" value="70" min="0" max="600" step="0.5" placeholder="Peso">
<label class="control-label" for="altura"><h3> Height (cm) </h3></label>
<input class="form-control input" type="number" id="height" name="altura" value="165" min="50" max="280" step="5" placeholder="Altura">
</div> <!--EOF form-group-->
<div class="form-group form-inline">
<label class="control-label" for="sexo"><h3> Sex </h3></label>
<select class="form-control input" id="gender" name="sexo">
<option value="Mujer">Female</option>
<option value="Hombre" selected="selected">Male</option>
</select>
<label class="control-label" for="estresor"><h3> Stress </h3></label>
<select class="form-control input" id="stress" name="estresor">
<option value="1.2" selected="selected">Elective surgery (1.2)</option>
<option value="1.2">Long bone fx (1.2)</option>
<option value="1.3">COPD (1.3)</option>
<option value="1.3">Malnourish (1.3)</option>
<option value="1.3">Cancer (1.3)</option>
<option value="1.4">Cranial Trauma (1.4)</option>
<option value="1.6">Invasive VM (1.6)</option>
<option value="1.6">Major surgery (1.6)</option>
<option value="1.6">Politrauma (1.6)</option>
<option value="1.6">Sepsis (1.6)</option>
<option value="1.5">Burnt 0-20% (1.5)</option>
<option value="1.8">Burnt 20-40% (1.8)</option>
<option value="2.0">Burnt 40-100% (2)</option>
</select>
</div> <!--EOF form-group-->
</div> <!--EOF well sm-->
</div> <!--EOF column-->
</div> <!--EOF row-->
</div> <!--EOF container-->
<div class="container-fluid">
<div class="row">
<div class="col-sm-12 col-md-12">
<ul class="nav nav-tabs">
<li class="active">
<a href="#personal" data-toggle="tab" data-value="PERSONAL">Personalized Nutrition</a>
</li>
<li>
<a href="#standard" data-toggle="tab" data-value="STANDARD">Standard Nutrition Formulas</a>
</li>
</ul>
<!---- TABBABLE TABS ---->
<div class="tab-content"> <!---- Tabbable tabpane - tab-content---->
<div class="tab-pane active" data-value="PERSONAL" id="personal"> <!-- tabbable tabpane-->
<div class="row">
<div class="col-sm-12 col-md-12 form-group">
<div class="row"> <!--fields -->
<div class="col-sm-12 col-md-12">
<h3> </h3>
<div id="cabecera" class="container-fluid">
<div class="row">
<div class="col-sm-4 col-md-4 text-center">
<div class="button well well-sm alert-gray" onclick="totalNutricion()">
<h2> Nutrients <span class="fa fa-pie-chart"</span></h2>
</div> <!--EOF well sm-->
</div> <!--EOF column-->
<div class="col-sm-4 col-md-4 text-center">
<div class="button well well-sm alert-gray" onclick="totalNutricion()">
<h2> Total Amount (ml) = <span id="mlTotal"> </span></h2>
</div> <!--EOF well sm-->
</div> <!--EOF column-->
<div class="col-sm-4 col-md-4 text-center">
<div class="well well-sm alert-danger" onclick="totalNutricion()">
<h2> Calories = <span id="totCal"> </span> (<span id="totCalKg"> </span> /kg)</h2>
</div> <!--EOF well sm-->
</div> <!--EOF column-->
</div> <!--EOF row-->
<hr>
</div> <!--EOF container-->
<div id="proteinas" class="container-fluid">
<div class="row">
<div class="col-sm-4 col-md-4 text-center">
<div class="row">
<div class="col-sm-12 col-md-12 text-center">
<div class="button well well-sm alert-protein" onclick="totalNutricion()">
<h2> Proteins = <span id="totProt"> </span> g (<span id="totNitro"> </span> g N) </h2>
<div class="form-group form-inline">
<label class="control-label" for="proteinas"><h3> Grams/kg </h3></label>
<input class="form-control input" type="number" id="gramprot" name="proteinas" value="1.2" min="0.5" max="3.5" step="0.1">
<h3 id="errorProt" style="color:#1d4249; font-size:20px; font-weight: bold"></h3>
</div> <!--EOF form-group-->
<ul>1 g/kg: normal patient.</ul>
<ul>1.5 g/kg: septic patient.</ul>
<ul>1.5-2 g/kg: politraumatized /hemofiltration.</ul>
</div> <!--EOF well sm-->
</div> <!--EOF column-->
</div> <!--EOF row-->
</div> <!--EOF column-->
<div class="col-sm-4 col-md-4 text-center">
<div class="row">
<div class="col-sm-12 col-md-12 text-center">
<div class="button well well-sm alert-protein" onclick="totalNutricion()">
<h3> Proteins volume (ml) = <span id="mlProtTotal"> </span></h3>
<div class="form-group form-inline">
<label class="control-label" for="proteinasml"><h3> Concentration (%) </h3></label>
<input class="form-control input" type="number" id="mlprot" name="proteinasml" value="15" min="1" max="90" step="1">
<div id="errorProt" style="color:#000000; font-size:20px"></div>
</div> <!--EOF form-group-->
<ul>15%: normal patient.</ul>
<ul>10%: hepatic or renal protection.</ul>
</div> <!--EOF well sm-->
</div> <!--EOF column-->
</div> <!--EOF row-->
</div> <!--EOF column-->
<div class="col-sm-4 col-md-4 text-center">
<div class="button well well-sm alert-danger" onclick="totalNutricion()">
<h3> Calories (proteins) = <span id="totCalProt"> </span></h3>
<h3><span id="propCalProt"> </span>% of total</h3>
</div> <!--EOF well sm-->
</div> <!--EOF column-->
</div> <!--EOF row-->
</div> <!--EOF container-->
<div id="glucosa" class="container-fluid">
<div class="row">
<div class="col-sm-4 col-md-4 text-center">
<div class="row">
<div class="col-sm-12 col-md-12 text-center">
<div class="button well well-sm alert-glucose" onclick="totalNutricion()">
<h2> Glucose = <span id="totGlu"> </span> g</h2>
<div class="form-group form-inline">
<label class="control-label" for="glucosaprop"><h3> % kcal (Glucose/Lipids): </h3></label>
<select class="form-control input" id="propglucose" name="glucosaprop">
<option value="50">50/50</option>
<option value="55">55/45</option>
<option value="60" selected="selected">60/40</option>
<option value="65">65/35</option>
<option value="70">70/30</option>
<option value="75">75/25</option>
</select>
<div id="errorProt" style="color:#000000; font-size:20px"></div>
</div> <!--EOF form-group-->
</div> <!--EOF well sm-->
</div> <!--EOF column-->
</div> <!--EOF row-->
</div> <!--EOF column-->
<div class="col-sm-4 col-md-4 text-center">
<div class="row">
<div class="col-sm-12 col-md-12 text-center">
<div class="button well well-sm alert-glucose" onclick="totalNutricion()">
<h3> Glucose volume (ml) = <span id="mlGluTotal"> </span></h3>
<div class="form-group form-inline">
<label class="control-label" for="glucosaml"><h3> Concentration (%) </h3></label>
<input class="form-control input" type="number" id="mlglu" name="glucosaml" value="50" min="5" max="100" step="1">
<div id="errorGlu" style="color:#000000; font-size:20px"></div>
</div> <!--EOF form-group-->
</div> <!--EOF well sm-->
</div> <!--EOF column-->
</div> <!--EOF row-->
</div> <!--EOF column-->
<div class="col-sm-4 col-md-4 text-center">
<div class="button well well-sm alert-danger" onclick="totalNutricion()">
<h3> Calories (glucose) = <span id="totCalGlu"> </span></h3>
<h3><span id="propCalGlu"> </span>% of total</h3>
</div> <!--EOF well sm-->
</div> <!--EOF column-->
</div> <!--EOF row-->
</div> <!--EOF container-->
<div id="lipidos" class="container-fluid">
<div class="row">
<div class="col-sm-4 col-md-4 text-center">
<div class="row">
<div class="col-sm-12 col-md-12 text-center">
<div class="button well well-sm alert-lipids" onclick="totalNutricion()">
<h2> Lipids = <span id="totLip"> </span> g</h2>
<ul></ul>
</div> <!--EOF well sm-->
</div> <!--EOF column-->
</div> <!--EOF row-->
</div> <!--EOF column-->
<div class="col-sm-4 col-md-4 text-center">
<div class="row">
<div class="col-sm-12 col-md-12 text-center">
<div class="button well well-sm alert-lipids" onclick="totalNutricion()">
<h3> Lipids volume (ml) = <span id="mlLipTotal"> </span></h3>
<h3> ml/kg = <span id="mlLipKg"> </span></h3>
<div class="form-group form-inline">
<label class="control-label" for="lipidosml"><h3> Concentration (%) </h3></label>
<input class="form-control input" type="number" id="mllip" name="lipidosml" value="20" min="5" max="100" step="1">
<div id="errorLip" style="color:#000000; font-size:20px"></div>
</div> <!--EOF form-group-->
</div> <!--EOF well sm-->
</div> <!--EOF column-->
</div> <!--EOF row-->
</div> <!--EOF column-->
<div class="col-sm-4 col-md-4 text-center">
<div class="button well well-sm alert-danger" onclick="totalNutricion()">
<h3> Calories (lipids) = <span id="totCalLip"> </span></h3>
<h3><span id="propCalLip"> </span>% of total</h3>
</div> <!--EOF well sm-->
</div> <!--EOF column-->
</div> <!--EOF row-->
</div> <!--EOF container-->
<div id="vitaminas" class="container-fluid">
<div class="row">
<div class="col-sm-4 col-md-4 text-center">
<div class="row">
<div class="col-sm-12 col-md-12 text-center">
<div class="button well well-sm alert-vitamin" onclick="totalNutricion()">
<h2> Vitamins, Trace-elements</h2>
</div> <!--EOF well sm-->
</div> <!--EOF column-->
</div> <!--EOF row-->
</div> <!--EOF column-->
<div class="col-sm-8 col-md-8 text-center">
<div class="row">
<div class="col-sm-12 col-md-12 text-center">
<div class="button well well-sm alert-vitamin" onclick="totalNutricion()">
<h3> Supplements volume (ml) = <span id="mlSuplem"> </span></h3>
<p><span style="font-size:20px"> Fat-soluble Vitamins (Vitalipid®...) </span> 10 ml/vial</p>
<p><span style="font-size:20px"> Hidrosoluble Vitamins (Soluvit®...) </span> Liofilized, dissolved in total ml (~0 ml added)</p>
<p><span style="font-size:20px"> Trace-elements </span> 10 ml/vial</p>
</div> <!--EOF well sm-->
</div> <!--EOF column-->
</div> <!--EOF row-->
</div> <!--EOF column-->
</div> <!--EOF row-->
</div> <!--EOF container-->
<div id="iones" class="container-fluid">
<div class="row">
<div class="col-sm-4 col-md-4 text-center">
<div class="row">
<div class="col-sm-12 col-md-12 text-center">
<div class="button well well-sm alert-ions" onclick="totalNutricion()">
<h2> Ions</h2>
<h4> Adjust to needs and pathology</h4>
</div> <!--EOF well sm-->
</div> <!--EOF column-->
</div> <!--EOF row-->
</div> <!--EOF column-->
<div class="col-sm-8 col-md-8 text-center">
<div class="row">
<div class="col-sm-12 col-md-12 text-center">
<div class="button well well-sm alert-ions" onclick="totalNutricion()">
<h3> Ions volume (ml) = <span id="mlIones"> </span></h3>
<div class="row">
<div class="col-sm-6 col-md-6 text-center">
<div class="form-group form-inline">
<label class="control-label" for="clorpotasico"><h4> K+ Chloride (ml) </h4></label>
<input class="form-control input-sm alert-ions-inline" type="number" id="mlclk" name="clorpotasico" value="30" min="5" max="100" step="5">
</div> <!--EOF form-group-->
<div class="form-group form-inline">
<label class="control-label" for="fosfatopotasico"><h4> Monopotasssium Phosphate (ml) </h4></label>
<input class="form-control input-sm alert-ions-inline" type="number" id="mlpmk" name="fosfatopotasico" value="30" min="5" max="100" step="5">
</div> <!--EOF form-group-->
</div> <!--EOF column-->
<div class="col-sm-6 col-md-6 text-center">
<div class="form-group form-inline">
<label class="control-label" for="sulfmagnesico"><h4> Mg++ Sulphate (ml) </h4></label>
<input class="form-control input-sm alert-ions-inline" type="number" id="mlmgso4" name="sulfmagnesico" value="10" min="5" max="30" step="5">
</div> <!--EOF form-group-->
<div class="form-group form-inline">
<label class="control-label" for="clorsodico"><h4> Sodium Chloride ~70mEq/day (ml) </h4></label>
<input class="form-control input-sm alert-ions-inline" type="number" id="nacl" name="clorsodico" value="20" min="5" max="20" step="5">
</div> <!--EOF form-group-->
</div> <!--EOF column-->
</div> <!--EOF row-->
</div> <!--EOF well sm-->
</div> <!--EOF column-->
</div> <!--EOF row-->
</div> <!--EOF column-->
</div> <!--EOF row-->
<hr>
</div> <!--EOF container-->
</div> <!--EOF column-->
</div> <!--EOF row-->
</div> <!--EOF column-->
</div> <!--EOF row-->
</div> <!-- EOF tabbable tabpane-->
<div class="tab-pane" data-value="STANDARD" id="standard"> <!-- tabbable tabpane-->
<div class="row">
<div class="col-sm-12 col-md-12 form-group">
<div class="row"> <!--fields -->
<div class="col-sm-12 col-md-12">
<h3> </h3>
<div id="cabecera" class="container-fluid">
<div class="row">
<div class="col-sm-4 col-md-4 text-center">
<div class="button well well-sm alert-gray" onclick="totalNutricion()">
<h2> Standard Formulas <span class="fa fa-cubes"</span></h2>
<select class="form-control input" id="formulaStandard" name="formulasNutri">
<option value="1.135" selected="selected">Olimel N7 E (1.135 kcal/ml) with electrolites</option>
<option value="1.0">Oliclinomel N8-800 (1 kcal/ml) no electrolites</option>
<option value="1.07">Olimel N9 E (1.07 kcal/ml) with electrolites</option>
<option value="0.7">Periolimel N4 E (0.7 kcal/ml) with electrolites</option>
</select>
</div> <!--EOF well sm-->
</div> <!--EOF column-->
<div class="col-sm-4 col-md-4 text-center">
<div class="button well well-sm alert-gray" onclick="totalNutricion()">
<h2> Cantidad de fórmula (ml) = <span id="mlTotalStandard"> </span></h2>
</div> <!--EOF well sm-->
</div> <!--EOF column-->
<div class="col-sm-4 col-md-4 text-center">
<div class="well well-sm alert-danger" onclick="totalNutricion()">
<h2> Calories = <span id="totCal2"> </span> (<span id="totCalKg2"> </span> /kg)</h2>
</div> <!--EOF well sm-->
</div> <!--EOF column-->
</div> <!--EOF row-->
<hr>
</div> <!--EOF container-->
</div> <!--EOF column-->
</div> <!--EOF row-->
</div> <!--EOF column-->
</div> <!--EOF row-->
</div> <!-- EOF tabbable tabpane-->
</div> <!--EOF Tabbable tabpane - tab-content-->
</div> <!-- EOF tabs 12wide column-->
</div> <!-- EOF main tabpane row-->
</div> <!--EOF container-->
<div id="rounding" class="container-fluid">
<div class="row">
<div class="col-sm-4 col-md-4">
</div> <!--EOF column-->
<div class="col-sm-4 col-md-4 text-center">
<div class="button well btn-danger alert-gray" onclick="roundedNutricion()">
<h2> Round Macronutrient Volume <span class="fa fa-exclamation-triangle"</span></h2>
</div> <!--EOF well sm-->
</div> <!--EOF column-->
<div class="col-sm-4 col-md-4">
</div> <!--EOF column-->
</div> <!--EOF row-->
</div> <!--EOF container-->
<div id="refs" class="container-fluid">
<div class="row">
<div class="col-sm-12 col-md-12">
<span class="text-center"><h2> References</h2></span>
<div class="row">
<div class="col-sm-12 col-md-12 text-center">
<div class="well well-sm">
<ul>McClave S, Taylor BE, Martindale RG et al</ul>
<ul>Guidelines for the Provision and Assessment of Nutrition Support Therapy in the Adult Critically Ill Patient - SCCM, ASPEN</ul>
<ul>JPEN J Parenter Enteral Nutr. 2016 Feb; 40(2):159-211</ul>
</div> <!--EOF well-sm-->
</div> <!--EOF column-->
</div> <!--EOF row-->
<div class="row">
<div class="col-sm-4 col-md-4 text-center">
<div class="well well-sm well-sm">
<ul>Grodner, M, Roth SL, Walkingshaw B et al</ul>
<ul>Nutritional Foundations and Clinical Applications</ul>
<ul>Elsevier, 2011, p.341-356</ul>
</div> <!--EOF well-sm-->
</div> <!--EOF column-->
<div class="col-sm-4 col-md-4 text-center">
<div class="well well-sm well-sm">
<ul>Walker RN, Heuberger RA</ul>
<ul>Predictive equations for energy needs for the critically ill</ul>
<ul>Respir Care. 2009 Apr; 54(4):509-21</ul>
</div> <!--EOF well-sm-->
</div> <!--EOF column-->
<div class="col-sm-4 col-md-4 text-center">
<div class="well well-sm well-sm">
<ul>Weissman C</ul>
<ul>Nutrition in the intensive care unit</ul>
<ul>Crit Care. 1999; 3(5):R67-75</ul>
</div> <!--EOF well-sm-->
</div> <!--EOF column-->
</div> <!--EOF row-->
</div> <!--EOF column-->
</div> <!--EOF row-->
</div> <!--EOF container-->
<div id="contact" class="container-fluid noPrint">
<div class="row">
<div class="col-sm-12 col-md-12 text-center">
<h2> Author</h2>
<div class="well well-sm well-sm">
<p><a href="mailto:[email protected]" style="color:#404040"><span class="fa fa-user-md"></span> Aurora Baluja González</a>, Agustín Cariñena Amigo</p>
<p><span class="fa fa-hospital-o"></span> Servicio de Anestesiología y Reanimación. Hospital Clínico Universitario</p>
<p><span class="glyphicon glyphicon-map-marker"></span> Santiago de Compostela, España</p>
</div> <!--EOF well-sm-->
<p><h3><a href="https://github.com/aurora-mareviv/anescalc" target="blank" style="color:#404040"><span class="fa fa-github"></a> </span>
<a href="https://talesofr.wordpress.com" target="blank" style="color:#404040"><span class="fa fa-rss"></a></span>
<a href="https://twitter.com/maureviv" target="blank" style="color:#404040"><span class="fa fa-twitter"></a></span>
</h3>
</p>
</div> <!--EOF column-->
</div> <!--EOF row-->
</div> <!--EOF container-->
<div id="license" class="container-fluid">
<div class="row">
<div class="col-sm-12 col-md-12">
<h3> </h3>
<hr>
<p style="color:#bfbfbf"><span class="fa fa-linux" style="color:#bfbfbf"></span>
Licencia - <a href="https://github.com/aurora-mareviv" target="blank" style="color:#bfbfbf">Código</a>: GNU-GPL v3.
<a href="http://getbootstrap.com/" target="blank" style="color:#bfbfbf">Bootstrap CSS</a>,
<a href="https://bootswatch.com/" target="blank" style="color:#bfbfbf">Bootswatch</a>: MIT.
</p>
</div> <!--EOF column-->
</div> <!--EOF row-->
</div> <!--EOF container-->
</body>
</html>