{"id":987916,"date":"2023-04-21T11:46:40","date_gmt":"2023-04-21T09:46:40","guid":{"rendered":"https:\/\/specialistidelcuore.it\/?page_id=987916"},"modified":"2025-08-06T17:00:19","modified_gmt":"2025-08-06T15:00:19","slug":"questionario","status":"publish","type":"page","link":"https:\/\/specialistidelcuore.it\/en\/questionnaire\/","title":{"rendered":"Calculate your cardiovascular risk"},"content":{"rendered":"<div data-elementor-type=\"wp-page\" data-elementor-id=\"987916\" class=\"elementor elementor-987916\" data-elementor-post-type=\"page\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-a77df99 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"a77df99\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b7c89c5\" data-id=\"b7c89c5\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-d586637 elementor-section-full_width elementor-section-height-default elementor-section-height-default\" data-id=\"d586637\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-781a7e5\" data-id=\"781a7e5\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-a3d6038 elementor-widget elementor-widget-heading\" data-id=\"a3d6038\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.23.0 - 15-07-2024 *\/\n.elementor-heading-title{padding:0;margin:0;line-height:1}.elementor-widget-heading .elementor-heading-title[class*=elementor-size-]>a{color:inherit;font-size:inherit;line-height:inherit}.elementor-widget-heading .elementor-heading-title.elementor-size-small{font-size:15px}.elementor-widget-heading .elementor-heading-title.elementor-size-medium{font-size:19px}.elementor-widget-heading .elementor-heading-title.elementor-size-large{font-size:29px}.elementor-widget-heading .elementor-heading-title.elementor-size-xl{font-size:39px}.elementor-widget-heading .elementor-heading-title.elementor-size-xxl{font-size:59px}<\/style><h3 class=\"elementor-heading-title elementor-size-default\">Let's start with BMI.<\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e803494 elementor-widget elementor-widget-text-editor\" data-id=\"e803494\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.23.0 - 15-07-2024 *\/\n.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:#69727d;color:#fff}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap{color:#69727d;border:3px solid;background-color:transparent}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap{margin-top:8px}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap-letter{width:1em;height:1em}.elementor-widget-text-editor .elementor-drop-cap{float:left;text-align:center;line-height:1;font-size:50px}.elementor-widget-text-editor .elementor-drop-cap-letter{display:inline-block}<\/style>\t\t\t\t<p>The Body Mass Index (\"Body-Mass Index\" or BMI) helps test whether a person's weight is healthy for his or her height. If a person weighs less or more than the recommended weight for his or her height, he or she may have health problems in the future. Although BMI is not the only factor to consider when working on one's health and fitness, it is a good starting point. To find out what your BMI is, enter your information below.<\/p><p>Underweight - BMI less than 18.5<br \/>Normal weight - BMI between 18.5 and 24<br \/>Overweight - BMI between 25 and 29.9<br \/>Obese - BMI greater than 30<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-c223187\" data-id=\"c223187\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-4e0623d elementor-widget elementor-widget-image\" data-id=\"4e0623d\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.23.0 - 15-07-2024 *\/\n.elementor-widget-image{text-align:center}.elementor-widget-image a{display:inline-block}.elementor-widget-image a img[src$=\".svg\"]{width:48px}.elementor-widget-image img{vertical-align:middle;display:inline-block}<\/style>\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/specialistidelcuore.it\/wp-content\/uploads\/2023\/05\/BMI-1024x1024.jpg\" class=\"attachment-large size-large wp-image-989926\" alt=\"\" srcset=\"https:\/\/specialistidelcuore.it\/wp-content\/uploads\/2023\/05\/BMI-1024x1024.jpg 1024w, https:\/\/specialistidelcuore.it\/wp-content\/uploads\/2023\/05\/BMI-300x300.jpg 300w, https:\/\/specialistidelcuore.it\/wp-content\/uploads\/2023\/05\/BMI-150x150.jpg 150w, https:\/\/specialistidelcuore.it\/wp-content\/uploads\/2023\/05\/BMI-768x768.jpg 768w, https:\/\/specialistidelcuore.it\/wp-content\/uploads\/2023\/05\/BMI-1536x1536.jpg 1536w, https:\/\/specialistidelcuore.it\/wp-content\/uploads\/2023\/05\/BMI-12x12.jpg 12w, https:\/\/specialistidelcuore.it\/wp-content\/uploads\/2023\/05\/BMI-630x630.jpg 630w, https:\/\/specialistidelcuore.it\/wp-content\/uploads\/2023\/05\/BMI-1260x1260.jpg 1260w, https:\/\/specialistidelcuore.it\/wp-content\/uploads\/2023\/05\/BMI-315x315.jpg 315w, https:\/\/specialistidelcuore.it\/wp-content\/uploads\/2023\/05\/BMI.jpg 2000w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-5c167f8 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"5c167f8\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-d9a4285\" data-id=\"d9a4285\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-20d1b81 elementor-widget elementor-widget-html\" data-id=\"20d1b81\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<head>\n    <script src=\"https:\/\/cdn.jsdelivr.net\/npm\/jquery\/dist\/jquery.min.js\"><\/script>\n    <script src=\"https:\/\/cdn.jsdelivr.net\/npm\/echarts\/dist\/echarts.min.js\"><\/script>\n\n    <meta charset=\"UTF-8\">\n    <title>BMI Calculator<\/title>\n    <style>\n        .container {\n            display: flex;\n            justify-content: space-between;\n        }\n\n        .column1,\n        .column2 {\n            width: 45%;\n        }\n\n        body {\n            font-family: 'Merriweather', serif;\n            ;\n        }\n\n        h1 {\n            text-align: left;\n            margin-top: 50px;\n            font-size: 33px;\n            font-weight: 500px;\n            color: #012970;\n            font-family: 'Merriweather', serif;\n            ;\n\n        }\n\n        label {\n            display: block;\n            margin-top: 20px;\n            font-size: 18px;\n        }\n\n        input[type=\"number\"] {\n            width: 100%;\n            padding: 10px;\n            font-size: 16px;\n            border-radius: 5px;\n            border: 1px solid #ccc;\n            margin-top: 10px;\n        }\n\n        button {\n            width: 100%;\n            padding: 10px;\n            font-size: 18px;\n            background-color: #0d6efd;\n            color: white;\n            border: none;\n            border-radius: 5px;\n            margin-top: 20px;\n            cursor: pointer;\n        }\n\n        button:hover {\n            background-color: #0b5ed7;\n\n        }\n    <\/style>\n<\/head>\n\n<body>\n    <div class=\"container\">\n        <div class=\"column1\">\n            <div class=\"form-container\">\n                <form action=\"\">\n                    <label for=\"weight\"><b>*Weight (kg):<\/b><\/label>\n                    <input type=\"number\" id=\"weight\" name=\"weight\" value=\"0\" min=\"40\" max=\"220\" required>\n                    <label for=\"height\"><b>*Height (cm):<\/b><\/label>\n                    <input type=\"number\" id=\"height\" name=\"height\" value=\"100\" min=\"100\" max=\"220\" required>\n                    <label for=\"age\"><b>Age:<\/b><\/label>\n                    <input type=\"number\" id=\"age\" name=\"age\" value=\"30\" required>\n                    <label for=\"gender\"><b>Genre:<\/b><\/label>\n                    <select id=\"gender\" name=\"gender\" required>\n\n                        <option value=\"male\">Man<\/option>\n                        <option value=\"female\">Woman<\/option>\n                        <option value=\"female\">I prefer not to state<\/option>\n                    <\/select>\n                    <button type=\"submit\" id=\"calculate\">Calculate<\/button>\n                <input type=\"hidden\" name=\"trp-form-language\" value=\"en\"\/><\/form>\n            <\/div>\n        <\/div>\n\n        <div class=\"column2\">\n            <div id=\"results\" style=\"visibility: visible\">\n                <div class=\"card-body\">\n                    <h2 style=\"text-align: center; margin-bottom: 0px; ; padding: 0px\">BMI Index<\/p>\n                    <div class=\"container-chart\">\n                        <div id=\"chart\" style=\"height:280px;width:100%\" ;><\/div>\n                        <div><small>\n                                <h5 style=\"text-align: center; margin-bottom: 0px; padding: 0px\">\n                                    Underweight: Bmi 16 to 18.5 <br>\n                                    Normal weight: BMI 18.5-24.9<br>\n                                    Overweight: BMI 24.9-29.9<br>\n                                    Obesity I grade: BMI 30- 34.9<br>\n                                    Grade II obesity: 35-39.9<\/p>\n                            <\/small>\n                        <\/div>\n                    <\/div>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n<\/body>\n\n<form method=\"post\" action=\"https:\/\/hms.specialistidelcuore.it\/patients\/registrazione\" data-trp-original-action=\"https:\/\/hms.specialistidelcuore.it\/patients\/registrazione\">\n    <input type=\"hidden\" name=\"_csrfToken\" value=\"<?= $this->request->getAttribute('csrfToken'); ?>\">\n    <div id=\"bmi\" style=\"display:none\"><\/div>\n    <div id=\"weight_div\" style=\"display:none\"><\/div>\n    <input type=\"hidden\" name=\"bmi\" class=\"form-control\" id=\"bmi_input\">\n    <input type=\"hidden\" name=\"weight\" class=\"form-control\" id=\"weight_input\">\n    <div class=\"col-12 d-grid gap-2 mt-3\">\n        <button type=\"submit\" class=\"btn btn-primary\" id=\"regis_button\" style=\"display: none\">Register here to learn about your cardiovascular risk<\/button>\n    <\/div>\n<input type=\"hidden\" name=\"trp-form-language\" value=\"en\"\/><\/form>\n<script>\n    $(document).ready(function() {\n        \/\/ Calculate and display the chart when the page is loaded\n        calculateBMI();\n\n        $('#calculate').click(function(e) {\n            e.preventDefault(); \/\/ Prevent the form from submitting\n\n            \/\/ Calculate and display the chart when the \"Calculate\" button is clicked\n            calculateBMI();\n            const weight = $('#weight').val();\n\n            if (weight < 1) {\n                alert(\"Il peso deve essere almeno 1 kg\");\n                return; \/\/ Exit the function without proceeding\n            } else {\n\n                $('#regis_button').show(400);\n            }\n        });\n\n        function calculateBMI() {\n            \/\/ Retrieve the weight and height values from the input fields\n            const weight = $('#weight').val();\n\n\n            const height = $('#height').val() \/ 100;\n\n            \/\/ Calculate the BMI value\n            const bmi = (weight \/ (Math.pow(height, 2))).toFixed(2);\n\n            \/\/ Display the BMI value\n            $('#bmi').html(bmi);\n            $('#weight_div').html(weight);\n            $('#bmi_input').val(bmi);\n            $('#weight_input').val(weight);\n\n\n\n            \/\/ Update the chart based on the BMI value\n            updateChart(bmi);\n        }\n\n        function updateChart(bmi) {\n            var chartDom = document.getElementById('chart');\n            var myChart = echarts.init(chartDom);\n            var option = {\n                title: {\n                    subtext: ' ',\n                    x: 'center',\n                    y: '73%',\n\n                    textStyle: {\n                        fontWeight: 'bold',\n                        fontSize: 40\n\n                    },\n                    subtextStyle: {\n                        fontWeight: 'bold',\n                        fontSize: 12,\n                    }\n                },\n                series: [{\n                    type: 'gauge',\n                    startAngle: 180,\n                    endAngle: 0,\n                    center: ['50%', '70%'],\n                    radius: '80%',\n                    min: 10,\n                    max: 40,\n                    splitNumber: 6,\n                    axisLine: {\n                        lineStyle: {\n                            width: 30,\n                            color: [\n                                [0.2, '#e46161'], \/\/red\n                                [0.28, '#FDDD60'], \/\/yellow\n                                [0.5, '#4ada80'], \/\/green\n                                [0.65, '#FDDD60'], \/\/yellow\n                                [0.83, '#FFA07A'], \/\/orange\n                                [1, '#FF6E76'] \/\/red \n                            ]\n                        }\n                    },\n                    axisLabel: {\n                        show: false,\n                    },\n                    splitLine: {\n                        length: 5,\n                        lineStyle: {\n                            width: 2,\n                            color: '#999'\n                        }\n                    },\n                    axisTick: {\n                        length: 5,\n                        lineStyle: {\n                            color: 'auto'\n                        }\n                    },\n                    pointer: {\n                        width: 6\n                    },\n                    detail: {\n                        show: true,\n                        fontSize: 40,\n                        offsetCenter: ['0%', '-120%'],\n                        fontWeight: 'bold',\n                    },\n                    data: [{\n                        value: bmi\n                    }]\n                }]\n            };\n            \/\/ aggiornamento del sottotesto in base al valore del BMI\n            if (bmi < 16) {\n                option.title.subtext = 'Sottopeso Grave\\n  (<16)';\n            } else if (bmi <= 18.5) {\n                option.title.subtext = 'Sottopeso\\n  (< 18.5)';\n            } else if (bmi <= 25) {\n                option.title.subtext = 'Normopeso\\n  (18.5 - 25)';\n            } else if (bmi > 25 && bmi < 29.9) {\n                option.title.subtext = 'Sovrappeso\\n  (25 - 30)';\n            } else if (bmi > 30 && bmi < 35) {\n                option.title.subtext = 'Obesit\u00e0 Lieve\\n  (30,1 - 34,9)';\n            } else {\n                option.title.subtext = 'Obesit\u00e0 Severa\\n  (>35)';\n            }\n\n            option.series[0].data[0].value = bmi;\n            myChart.setOption(option);\n        }\n    });\n<\/script>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>Cominciamo dal BMI. L\u2019Indice di Massa Corporea (\u201cBody-Mass Index\u201d o BMI) aiuta a verificare se il peso di una persona \u00e8 sano per la sua altezza. Se una persona pesa meno o pi\u00f9 del peso raccomandato per la sua altezza, potrebbe avere problemi di salute in futuro. Sebbene il BMI non sia l\u2019unico fattore da&#8230;<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"_links":{"self":[{"href":"https:\/\/specialistidelcuore.it\/en\/wp-json\/wp\/v2\/pages\/987916"}],"collection":[{"href":"https:\/\/specialistidelcuore.it\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/specialistidelcuore.it\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/specialistidelcuore.it\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/specialistidelcuore.it\/en\/wp-json\/wp\/v2\/comments?post=987916"}],"version-history":[{"count":453,"href":"https:\/\/specialistidelcuore.it\/en\/wp-json\/wp\/v2\/pages\/987916\/revisions"}],"predecessor-version":[{"id":992006,"href":"https:\/\/specialistidelcuore.it\/en\/wp-json\/wp\/v2\/pages\/987916\/revisions\/992006"}],"wp:attachment":[{"href":"https:\/\/specialistidelcuore.it\/en\/wp-json\/wp\/v2\/media?parent=987916"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}