[cholesterol_gauge]

/** * SHORTCODE: [cholesterol_gauge] * A CircularGauge from 100..400 mg/dL, * with color-coded ranges: * green, 200..239 => yellow, 240..400 => red */ add_shortcode(‘cholesterol_gauge’, function(){ ob_start(); ?>Continue reading

[cholesterol_stage_syncfusion]

/** * SHORTCODE: [cholesterol_stage_syncfusion] * Syncfusion Grid => 3 categories: “Optimal”, 200..239 => “Intermediate”, ≥240 => “High” */ add_shortcode(‘cholesterol_stage_syncfusion’, function(){ ob_start(); ?>Continue reading

[hdl_gauge]

/** * SHORTCODE: [hdl_gauge] * A CircularGauge for HDL => range 20..120 mg/dL * color-coded: * High risk => red, * 40..60 => borderline => yellow, * >60 => optimal => green */ add_shortcode(‘hdl_gauge’, function(){ ob_start(); ?>Continue reading

[hdl_stage_syncfusion]

/** * SHORTCODE: [hdl_stage_syncfusion] * 3 categories for HDL mg/dL: * “High risk”, 40..60 => “Intermediate”, >60 => “Optimal” */ add_shortcode(‘hdl_stage_syncfusion’, function(){ ob_start(); ?>Continue reading

[tg_gauge]

/** * SHORTCODE: [tg_gauge] * A CircularGauge => 50..600 mg/dL * color-coded: * green, * 150..199 => yellow, * >=200 => red */ add_shortcode(‘tg_gauge’, function(){ ob_start(); ?>Continue reading

[tg_stage_syncfusion]

/** * SHORTCODE: [tg_stage_syncfusion] * 3 categories for Trig mg/dL: * “Optimal”, 150..199 => “Intermediate”, >=200 => “High” */ add_shortcode(‘tg_stage_syncfusion’, function(){ ob_start(); ?>Continue reading

[whr_form]

/******************************************************* * 1) [whr_form] + AJAX insert => whr_submit_data *******************************************************/ add_shortcode(‘whr_form’, function() { if (!is_user_logged_in()) { return “ You must be logged in to add data. “; } ob_start(); ?> Waist Unit Hip Unit Submit Your WHR measurement was saved…Continue reading

[whr_table], [whr_gauge], [whr_stage_syncfusion], [whr_interpretation]

/******************************************************* * 2) [whr_table], [whr_gauge], [whr_stage_syncfusion], [whr_interpretation] *******************************************************/ /** * SHORTCODE: [whr_table] * Lists records from wp_crx_whr_data => date, waist, hip, whr * Real-time => addWhrTableRow, custom delete => whr_delete_data */ add_shortcode(‘whr_table’, function(){ if(!is_user_logged_in()){ return “ You must be logged…Continue reading

[hemo_form], [hemo_table]

/********************************************************* * BLOCK 1 * [hemo_form], [hemo_table], plus AJAX inserts/deletes *********************************************************/ /** * SHORTCODE: [hemo_form] * – Collect Systolic, Diastolic, Heart Rate (ints) * – Insert into wp_hemodynamic_data * – Real-time => table */ add_shortcode(‘hemo_form’, function() { if (!is_user_logged_in()) {…Continue reading

[bp_stage_syncfusion], [bp_chart], [bp_interpretation]

/********************************************************* * BLOCK 2 * Additional shortcodes: [bp_stage_syncfusion], [bp_chart], [bp_interpretation] * plus a helper function => bp_get_latest_reading() *********************************************************/ /** * HELPER => bp_get_latest_reading() * Returns { systolic, diastolic } or null if none found */ if(!function_exists(‘bp_get_latest_reading’)){ function bp_get_latest_reading(){ if(!is_user_logged_in()) return…Continue reading