Browse Source

Merge branch 'dev' of rav.triplestart.com:jmudaka/stagfe2

Josh 4 years ago
parent
commit
0402fa9196

+ 231 - 0
app/Console/Commands/Gem.php

@@ -0,0 +1,231 @@
+<?php
+
+namespace App\Console\Commands;
+
+use Illuminate\Console\Command;
+
+class Gem extends Command
+{
+    /**
+     * The name and signature of the console command.
+     *
+     * @var string
+     */
+    protected $signature = 'gem
+                            {path:path-in-gem}
+                            [{--write-to-storage}]';
+
+    /**
+     * The console command description.
+     *
+     * @var string
+     */
+    protected $description = 'Command description';
+
+    public $output = '';
+
+    /**
+     * Create a new command instance.
+     *
+     * @return void
+     */
+    public function __construct()
+    {
+        parent::__construct();
+    }
+
+    /**
+     * Execute the console command.
+     *
+     * @return int
+     */
+    public function handle()
+    {
+        global $argv;
+        $in = json_decode(file_get_contents(base_path("gem/forms/{$argv[2]}/spec.json")));
+        $outPath = base_path("gem/forms/{$argv[2]}/build");
+        $this->output = $this->ln('<div class="gem-nodes">', 1);
+
+        foreach ($in as $node) {
+            $this->output .= $this->gem($node);
+        }
+
+        $this->output .= $this->ln('</div>', 1);
+
+        // write form
+        $template = file_get_contents(base_path("gem/templates/form.blade.php"));
+        $this->output = str_replace('<!-- __GENERATED_MARKUP__ -->', $this->output, $template);
+        file_put_contents(base_path("gem/forms/{$argv[2]}/build/form.blade.php"), $this->output);
+
+        // write processor
+        copy(base_path("gem/templates/processor.php"), base_path("gem/forms/{$argv[2]}/build/processor.php"));
+
+        // write summary
+        copy(base_path("gem/templates/summary.php"), base_path("gem/forms/{$argv[2]}/build/summary.php"));
+
+        // copy output to store/section
+        if(in_array("--write-to-storage", $argv) !== FALSE) {
+            copy(base_path("gem/forms/{$argv[2]}/build/form.blade.php"), base_path("storage/sections/{$argv[2]}/form.blade.php"));
+            copy(base_path("gem/forms/{$argv[2]}/build/processor.php"), base_path("storage/sections/{$argv[2]}/processor.php"));
+            copy(base_path("gem/forms/{$argv[2]}/build/summary.php"), base_path("storage/sections/{$argv[2]}/summary.php"));
+        }
+
+        echo "OK";
+    }
+
+    public function gem($_node, $_parentKey = false, $_level = 0)
+    {
+        $output = '';
+        $key = ($_parentKey ? $_parentKey . '__' : '') . $_node->K;
+
+        // start container
+        $output .= $this->ln('<div ' .
+            'class="my-3 node node-level-' . $_level . '" ' .
+            'data-key="' . $key . '">', $_level + 1);
+
+        // label
+        $output .= $this->ln('<label>' . $this->formatText($_node->Q) . '</label>', $_level + 2);
+
+        // input
+        $fieldLevel = $_level + 1;
+        if (!!@$_node->T) {
+            switch ($_node->T) {
+                case 'YNUM':
+                    // start
+                    $output .= $this->ln('<div class="d-flex align-items-center">', $fieldLevel + 1);
+
+                    // YES
+                    $output .= $this->ln('<label class="d-inline-flex align-items-center my-0 mr-3">', $fieldLevel + 2);
+                    $output .= $this->ln('<input onchange="onGemVChange_{{ $formID }}(this)" name="' . $key . '" type="radio" value="YES" class="mr-1">', $fieldLevel + 3);
+                    $output .= $this->ln('<span>Yes</span>', $fieldLevel + 3);
+                    $output .= $this->ln('</label>', $fieldLevel + 2);
+
+                    // NO
+                    $output .= $this->ln('<label class="d-inline-flex align-items-center my-0 mr-3">', $fieldLevel + 2);
+                    $output .= $this->ln('<input onchange="onGemVChange_{{ $formID }}(this)" name="' . $key . '" type="radio" value="NO" class="mr-1">', $fieldLevel + 3);
+                    $output .= $this->ln('<span>No</span>', $fieldLevel + 3);
+                    $output .= $this->ln('</label>', $fieldLevel + 2);
+
+                    // NO
+                    $output .= $this->ln('<label class="d-inline-flex align-items-center my-0 mr-3">', $fieldLevel + 2);
+                    $output .= $this->ln('<input onchange="onGemVChange_{{ $formID }}(this)" name="' . $key . '" type="radio" value="UNKNOWN" class="mr-1">', $fieldLevel + 3);
+                    $output .= $this->ln('<span>Unknown</span>', $fieldLevel + 3);
+                    $output .= $this->ln('</label>', $fieldLevel + 2);
+
+                    // MEMO
+                    $output .= $this->ln('<input onchange="onGemVChange_{{ $formID }}(this)" name="' . $key . '_memo" type="text" class="form-control form-control-sm" placeholder="Memo">', $fieldLevel + 2);
+
+                    // end
+                    $output .= $this->ln('</div>', $fieldLevel + 1);
+                    break;
+
+                case 'SRV':
+                    // start
+                    $output .= $this->ln('<div class="d-flex align-items-center">', $fieldLevel + 1);
+
+                    // VALUE
+                    $output .= $this->ln('<input onchange="onGemVChange_{{ $formID }}(this)" name="' . $key . '" type="text" class="form-control form-control-sm" placeholder="Answer">', $fieldLevel + 2);
+
+                    // UNKNOWN
+                    $output .= $this->ln('<label class="d-inline-flex align-items-center my-0 ml-3 mr-2">', $fieldLevel + 2);
+                    $output .= $this->ln('<input onchange="onGemVChange_{{ $formID }}(this)" name="' . $key . '" type="checkbox" class="mr-1">', $fieldLevel + 3);
+                    $output .= $this->ln('<span>Unknown</span>', $fieldLevel + 3);
+                    $output .= $this->ln('</label>', $fieldLevel + 2);
+
+                    // MEMO
+                    $output .= $this->ln('<input onchange="onGemVChange_{{ $formID }}(this)" name="' . $key . '_memo" type="text" class="form-control form-control-sm" placeholder="Memo">', $fieldLevel + 2);
+
+                    // end
+                    $output .= $this->ln('</div>', $fieldLevel + 1);
+                    break;
+
+                case 'Text with Memo':
+                    // start
+                    $output .= $this->ln('<div class="d-flex align-items-center">', $fieldLevel + 1);
+
+                    // VALUE
+                    $output .= $this->ln('<input onchange="onGemVChange_{{ $formID }}(this)" name="' . $key . '" type="text" class="form-control form-control-sm mr-2" placeholder="Answer">', $fieldLevel + 2);
+
+                    // MEMO
+                    $output .= $this->ln('<input onchange="onGemVChange_{{ $formID }}(this)" name="' . $key . '_memo" type="text" class="form-control form-control-sm" placeholder="Memo">', $fieldLevel + 2);
+
+                    // end
+                    $output .= $this->ln('</div>', $fieldLevel + 1);
+                    break;
+
+                case 'Multi Checkbox with Other':
+                    // start
+                    $output .= $this->ln('<div class="mt-3">', $fieldLevel + 1);
+
+                    foreach ($_node->Options as $option) {
+                        $output .= $this->ln('<label class="d-flex align-items-center mb-1 mr-2">', $fieldLevel + 2);
+                        $output .= $this->ln('<input onchange="onGemVChange_{{ $formID }}(this)" name="' . $key . '[]" value="' . $option . '" type="checkbox" class="mr-1">', $fieldLevel + 3);
+                        $output .= $this->ln('<span>' . $option . '</span>', $fieldLevel + 3);
+                        $output .= $this->ln('</label>', $fieldLevel + 2);
+                    }
+
+                    // OTHER
+                    $output .= $this->ln('<input onchange="onGemVChange_{{ $formID }}(this)" name="' . $key . '_other" type="text" class="form-control form-control-sm my-3" placeholder="Other">', $fieldLevel + 2);
+
+                    // end
+                    $output .= $this->ln('</div>', $fieldLevel + 1);
+                    break;
+
+                case 'Accept':
+                    // start
+                    $output .= $this->ln('<div class="d-flex align-items-center">', $fieldLevel + 1);
+
+                    // YES
+                    $output .= $this->ln('<label class="d-inline-flex align-items-center my-0 mr-3">', $fieldLevel + 2);
+                    $output .= $this->ln('<input onchange="onGemVChange_{{ $formID }}(this)" name="' . $key . '" type="radio" value="ACCEPT" class="mr-1">', $fieldLevel + 3);
+                    $output .= $this->ln('<span>Accept</span>', $fieldLevel + 3);
+                    $output .= $this->ln('</label>', $fieldLevel + 2);
+
+                    // NO
+                    $output .= $this->ln('<label class="d-inline-flex align-items-center my-0 mr-3">', $fieldLevel + 2);
+                    $output .= $this->ln('<input onchange="onGemVChange_{{ $formID }}(this)" name="' . $key . '" type="radio" value="REJECT" class="mr-1">', $fieldLevel + 3);
+                    $output .= $this->ln('<span>Reject</span>', $fieldLevel + 3);
+                    $output .= $this->ln('</label>', $fieldLevel + 2);
+
+                    // end
+                    $output .= $this->ln('</div>', $fieldLevel + 1);
+                    break;
+
+                default:
+                    dump("Unknown type: {$_node->T}");
+                    break;
+            }
+        }
+
+        // subs
+        if (!!@$_node->S) {
+            $output .= $this->ln('<div class="subs pl-4">', $_level + 2);
+            foreach ($_node->S as $sub) {
+                $output .= $this->gem($sub, $key, $_level + 2);
+            }
+            $output .= $this->ln('</div>', $_level + 2);
+        }
+
+        // close container
+        $output .= $this->ln('</div>', $_level + 1);
+        $output .= $this->nl();
+
+        return $output;
+    }
+
+    public function formatText($_text) {
+        $_text = preg_replace("/\{\{(.+?)\}\}/", '<span field="$1"></span>', $_text);
+        return nl2br($_text);
+    }
+
+    public function ln($_line, $_indent = 1, $_nlAfter = true)
+    {
+        return str_repeat(" ", $_indent * 4) . $_line . ($_nlAfter ? "\n" : '');
+    }
+
+    public function nl()
+    {
+        return "\n";
+    }
+
+}

+ 1014 - 0
gem/forms/new-patient-intake/build/form.blade.php

@@ -0,0 +1,1014 @@
+<?php
+$contentData = false;
+if($section){
+    $contentData = json_decode($section->content_data, true);
+}
+if(!$contentData || !isset($contentData['value'])) {
+    $contentData = [
+        'value'=>''
+    ];
+}
+$formID = rand(0, 100000);
+?>
+<form method="POST" action="/process_form_submit" onsubmit="return submitForm_NoteSection_{{ $formID }}(this);">
+    <?php if($section): ?>
+        <input type="hidden" name="section_uid" value="<?= $section->uid?>">
+    <?php else: ?>
+        <input type="hidden" name="note_uid" value="<?= $note->uid?>">
+        <input type="hidden" name="section_template_uid" value="<?= $sectionTemplate->uid ?>">
+    <?php endif; ?>
+
+    <div class="gem-nodes">
+    <div class="my-3 node node-level-0" data-key="blood_ox">
+        <label>Blood Oxygen</label>
+        <div class="subs pl-4">
+            <div class="my-3 node node-level-2" data-key="blood_ox__ever_used_fingertip_meter">
+                <label>Have you ever used a fingertip blood oxygen saturation meter before?</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__ever_used_fingertip_meter" type="radio" value="YES" class="mr-1">
+                        <span>Yes</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__ever_used_fingertip_meter" type="radio" value="NO" class="mr-1">
+                        <span>No</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__ever_used_fingertip_meter" type="radio" value="UNKNOWN" class="mr-1">
+                        <span>Unknown</span>
+                    </label>
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__ever_used_fingertip_meter_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+                <div class="subs pl-4">
+                    <div class="my-3 node node-level-4" data-key="blood_ox__ever_used_fingertip_meter__has_one">
+                        <label>Do you currently have one at home?</label>
+                        <div class="d-flex align-items-center">
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__ever_used_fingertip_meter__has_one" type="radio" value="YES" class="mr-1">
+                                <span>Yes</span>
+                            </label>
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__ever_used_fingertip_meter__has_one" type="radio" value="NO" class="mr-1">
+                                <span>No</span>
+                            </label>
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__ever_used_fingertip_meter__has_one" type="radio" value="UNKNOWN" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__ever_used_fingertip_meter__has_one_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                    <div class="my-3 node node-level-4" data-key="blood_ox__ever_used_fingertip_meter__confirmed_will_discontinue_current">
+                        <label>If yes, can you please discontinue use of that when you receive the one we send you?</label>
+                        <div class="d-flex align-items-center">
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__ever_used_fingertip_meter__confirmed_will_discontinue_current" type="radio" value="YES" class="mr-1">
+                                <span>Yes</span>
+                            </label>
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__ever_used_fingertip_meter__confirmed_will_discontinue_current" type="radio" value="NO" class="mr-1">
+                                <span>No</span>
+                            </label>
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__ever_used_fingertip_meter__confirmed_will_discontinue_current" type="radio" value="UNKNOWN" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__ever_used_fingertip_meter__confirmed_will_discontinue_current_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="blood_ox__does_pcp_regularly_check">
+                <label>Does your PCP regularly check your resting oxygen saturation?</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__does_pcp_regularly_check" type="radio" value="YES" class="mr-1">
+                        <span>Yes</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__does_pcp_regularly_check" type="radio" value="NO" class="mr-1">
+                        <span>No</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__does_pcp_regularly_check" type="radio" value="UNKNOWN" class="mr-1">
+                        <span>Unknown</span>
+                    </label>
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__does_pcp_regularly_check_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="blood_ox__baseline_resting_spo2_level">
+                <label>Do you know what your baseline resting oxygen saturation usually measures at?</label>
+                <div class="d-flex align-items-center">
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__baseline_resting_spo2_level" type="text" class="form-control form-control-sm" placeholder="Answer">
+                    <label class="d-inline-flex align-items-center my-0 ml-3 mr-2">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__baseline_resting_spo2_level" type="checkbox" class="mr-1">
+                        <span>Unknown</span>
+                    </label>
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__baseline_resting_spo2_level_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="blood_ox__lung_condition_that_may_affect">
+                <label>Do you have any lung condition, such as asthma or COPD, that might affect the reading when you measure your blood oxygen level?</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__lung_condition_that_may_affect" type="radio" value="YES" class="mr-1">
+                        <span>Yes</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__lung_condition_that_may_affect" type="radio" value="NO" class="mr-1">
+                        <span>No</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__lung_condition_that_may_affect" type="radio" value="UNKNOWN" class="mr-1">
+                        <span>Unknown</span>
+                    </label>
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__lung_condition_that_may_affect_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="blood_ox__o2_and_activity">
+                <label>Blood oxygen values depend a lot on your level of physical activity.</label>
+                <div class="subs pl-4">
+                    <div class="my-3 node node-level-4" data-key="blood_ox__o2_and_activity__days_per_week_aerobic_exercise_with_exertion">
+                        <label>How many days per week do you currently perform aerobic exercise to the point that you can feel your lungs working harder and your heart beating faster?</label>
+                        <div class="d-flex align-items-center">
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__o2_and_activity__days_per_week_aerobic_exercise_with_exertion" type="text" class="form-control form-control-sm mr-2" placeholder="Answer">
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__o2_and_activity__days_per_week_aerobic_exercise_with_exertion_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                    <div class="my-3 node node-level-4" data-key="blood_ox__o2_and_activity__minutes_per_week_aerobic_exercise_with_exertion">
+                        <label>How many total minutes per week on average would you say you are in a state of aerobic exercise, where you feel your lungs working harder and your heart beating faster?</label>
+                        <div class="d-flex align-items-center">
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__o2_and_activity__minutes_per_week_aerobic_exercise_with_exertion" type="text" class="form-control form-control-sm mr-2" placeholder="Answer">
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__o2_and_activity__minutes_per_week_aerobic_exercise_with_exertion_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                    <div class="my-3 node node-level-4" data-key="blood_ox__o2_and_activity__ever_had_o2_checked_before_after_exercise">
+                        <label>Have you ever had your oxygen checked before and after exercise?</label>
+                        <div class="d-flex align-items-center">
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__o2_and_activity__ever_had_o2_checked_before_after_exercise" type="radio" value="YES" class="mr-1">
+                                <span>Yes</span>
+                            </label>
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__o2_and_activity__ever_had_o2_checked_before_after_exercise" type="radio" value="NO" class="mr-1">
+                                <span>No</span>
+                            </label>
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__o2_and_activity__ever_had_o2_checked_before_after_exercise" type="radio" value="UNKNOWN" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__o2_and_activity__ever_had_o2_checked_before_after_exercise_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                    <div class="my-3 node node-level-4" data-key="blood_ox__o2_and_activity__baseline_o2_assessment">
+                        <label>Once you receive the oxygen meter, our nurse will need to call you to make sure you take a proper baseline resting measurement, and then another measurement after you walk at a normal speed for 1 minute. When is the best time and number to call usually?</label>
+                        <div class="d-flex align-items-center">
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__o2_and_activity__baseline_o2_assessment" type="text" class="form-control form-control-sm mr-2" placeholder="Answer">
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__o2_and_activity__baseline_o2_assessment_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                        <div class="subs pl-4">
+                            <div class="my-3 node node-level-6" data-key="blood_ox__o2_and_activity__baseline_o2_assessment__best_time_to_call">
+                                <label>Best time to call:</label>
+                                <div class="d-flex align-items-center">
+                                    <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__o2_and_activity__baseline_o2_assessment__best_time_to_call" type="text" class="form-control form-control-sm mr-2" placeholder="Answer">
+                                    <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__o2_and_activity__baseline_o2_assessment__best_time_to_call_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                                </div>
+                            </div>
+
+                            <div class="my-3 node node-level-6" data-key="blood_ox__o2_and_activity__baseline_o2_assessment__best_number_to_call">
+                                <label>Best number to call:</label>
+                                <div class="d-flex align-items-center">
+                                    <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__o2_and_activity__baseline_o2_assessment__best_number_to_call" type="text" class="form-control form-control-sm mr-2" placeholder="Answer">
+                                    <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__o2_and_activity__baseline_o2_assessment__best_number_to_call_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                                </div>
+                            </div>
+
+                        </div>
+                    </div>
+
+                    <div class="my-3 node node-level-4" data-key="blood_ox__o2_and_activity__has_covid_made_you_less_physically_active">
+                        <label>Has the COVID-19 pandemic made you less physically active than you were before?</label>
+                        <div class="d-flex align-items-center">
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__o2_and_activity__has_covid_made_you_less_physically_active" type="radio" value="YES" class="mr-1">
+                                <span>Yes</span>
+                            </label>
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__o2_and_activity__has_covid_made_you_less_physically_active" type="radio" value="NO" class="mr-1">
+                                <span>No</span>
+                            </label>
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__o2_and_activity__has_covid_made_you_less_physically_active" type="radio" value="UNKNOWN" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__o2_and_activity__has_covid_made_you_less_physically_active_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                </div>
+            </div>
+
+        </div>
+    </div>
+
+    <div class="my-3 node node-level-0" data-key="pulse_and_bp">
+        <label>Pulse & BP</label>
+        <div class="subs pl-4">
+            <div class="my-3 node node-level-2" data-key="pulse_and_bp__ever_used_auto_pulse_bp_meter">
+                <label>Have you ever used an automatic pulse and blood pressure meter before?</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_used_auto_pulse_bp_meter" type="radio" value="YES" class="mr-1">
+                        <span>Yes</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_used_auto_pulse_bp_meter" type="radio" value="NO" class="mr-1">
+                        <span>No</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_used_auto_pulse_bp_meter" type="radio" value="UNKNOWN" class="mr-1">
+                        <span>Unknown</span>
+                    </label>
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_used_auto_pulse_bp_meter_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+                <div class="subs pl-4">
+                    <div class="my-3 node node-level-4" data-key="pulse_and_bp__ever_used_auto_pulse_bp_meter__has_one">
+                        <label>Do you currently have one at home?</label>
+                        <div class="d-flex align-items-center">
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_used_auto_pulse_bp_meter__has_one" type="radio" value="YES" class="mr-1">
+                                <span>Yes</span>
+                            </label>
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_used_auto_pulse_bp_meter__has_one" type="radio" value="NO" class="mr-1">
+                                <span>No</span>
+                            </label>
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_used_auto_pulse_bp_meter__has_one" type="radio" value="UNKNOWN" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_used_auto_pulse_bp_meter__has_one_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                    <div class="my-3 node node-level-4" data-key="pulse_and_bp__ever_used_auto_pulse_bp_meter__confirmed_will_discontinue_current">
+                        <label>If yes, can you please discontinue use of that when you receive the one we send you?</label>
+                        <div class="d-flex align-items-center">
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_used_auto_pulse_bp_meter__confirmed_will_discontinue_current" type="radio" value="YES" class="mr-1">
+                                <span>Yes</span>
+                            </label>
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_used_auto_pulse_bp_meter__confirmed_will_discontinue_current" type="radio" value="NO" class="mr-1">
+                                <span>No</span>
+                            </label>
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_used_auto_pulse_bp_meter__confirmed_will_discontinue_current" type="radio" value="UNKNOWN" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_used_auto_pulse_bp_meter__confirmed_will_discontinue_current_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="pulse_and_bp__usual_resting_pulse">
+                <label>What is your usual resting pulse?</label>
+                <div class="d-flex align-items-center">
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__usual_resting_pulse" type="text" class="form-control form-control-sm" placeholder="Answer">
+                    <label class="d-inline-flex align-items-center my-0 ml-3 mr-2">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__usual_resting_pulse" type="checkbox" class="mr-1">
+                        <span>Unknown</span>
+                    </label>
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__usual_resting_pulse_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="pulse_and_bp__usual_resting_bp">
+                <label>What is your usual resting blood pressure?</label>
+                <div class="subs pl-4">
+                    <div class="my-3 node node-level-4" data-key="pulse_and_bp__usual_resting_bp__systolic">
+                        <label>Systolic</label>
+                        <div class="d-flex align-items-center">
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__usual_resting_bp__systolic" type="text" class="form-control form-control-sm" placeholder="Answer">
+                            <label class="d-inline-flex align-items-center my-0 ml-3 mr-2">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__usual_resting_bp__systolic" type="checkbox" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__usual_resting_bp__systolic_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                    <div class="my-3 node node-level-4" data-key="pulse_and_bp__usual_resting_bp__diastolic">
+                        <label>Diastolic</label>
+                        <div class="d-flex align-items-center">
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__usual_resting_bp__diastolic" type="text" class="form-control form-control-sm" placeholder="Answer">
+                            <label class="d-inline-flex align-items-center my-0 ml-3 mr-2">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__usual_resting_bp__diastolic" type="checkbox" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__usual_resting_bp__diastolic_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="pulse_and_bp__ever_dx_with_htn">
+                <label>Have you ever been diagnosed with high blood pressure?</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_dx_with_htn" type="radio" value="YES" class="mr-1">
+                        <span>Yes</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_dx_with_htn" type="radio" value="NO" class="mr-1">
+                        <span>No</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_dx_with_htn" type="radio" value="UNKNOWN" class="mr-1">
+                        <span>Unknown</span>
+                    </label>
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_dx_with_htn_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+                <div class="subs pl-4">
+                    <div class="my-3 node node-level-4" data-key="pulse_and_bp__ever_dx_with_htn__on_bp_medications">
+                        <label>Are you on any BP medication?</label>
+                        <div class="d-flex align-items-center">
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_dx_with_htn__on_bp_medications" type="radio" value="YES" class="mr-1">
+                                <span>Yes</span>
+                            </label>
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_dx_with_htn__on_bp_medications" type="radio" value="NO" class="mr-1">
+                                <span>No</span>
+                            </label>
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_dx_with_htn__on_bp_medications" type="radio" value="UNKNOWN" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_dx_with_htn__on_bp_medications_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                    <div class="my-3 node node-level-4" data-key="pulse_and_bp__ever_dx_with_htn__who_treats">
+                        <label>Who primarily treats your HTN?</label>
+                        <div class="d-flex align-items-center">
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_dx_with_htn__who_treats" type="text" class="form-control form-control-sm" placeholder="Answer">
+                            <label class="d-inline-flex align-items-center my-0 ml-3 mr-2">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_dx_with_htn__who_treats" type="checkbox" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_dx_with_htn__who_treats_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="pulse_and_bp__pcp_or_other_doc_bp_target">
+                <label>Has your primary care physician, or another doctor, ever told you what your target BP should be?</label>
+                <div class="d-flex align-items-center">
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__pcp_or_other_doc_bp_target" type="text" class="form-control form-control-sm" placeholder="Answer">
+                    <label class="d-inline-flex align-items-center my-0 ml-3 mr-2">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__pcp_or_other_doc_bp_target" type="checkbox" class="mr-1">
+                        <span>Unknown</span>
+                    </label>
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__pcp_or_other_doc_bp_target_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+                <div class="subs pl-4">
+                    <div class="my-3 node node-level-4" data-key="pulse_and_bp__pcp_or_other_doc_bp_target__systolic">
+                        <label>Systolic</label>
+                        <div class="d-flex align-items-center">
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__pcp_or_other_doc_bp_target__systolic" type="text" class="form-control form-control-sm" placeholder="Answer">
+                            <label class="d-inline-flex align-items-center my-0 ml-3 mr-2">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__pcp_or_other_doc_bp_target__systolic" type="checkbox" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__pcp_or_other_doc_bp_target__systolic_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                    <div class="my-3 node node-level-4" data-key="pulse_and_bp__pcp_or_other_doc_bp_target__diastolic">
+                        <label>Diastolic</label>
+                        <div class="d-flex align-items-center">
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__pcp_or_other_doc_bp_target__diastolic" type="text" class="form-control form-control-sm" placeholder="Answer">
+                            <label class="d-inline-flex align-items-center my-0 ml-3 mr-2">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__pcp_or_other_doc_bp_target__diastolic" type="checkbox" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__pcp_or_other_doc_bp_target__diastolic_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="pulse_and_bp__pulse_during_exercise">
+                <label>When you exercise, what does your pulse reach?</label>
+                <div class="d-flex align-items-center">
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__pulse_during_exercise" type="text" class="form-control form-control-sm" placeholder="Answer">
+                    <label class="d-inline-flex align-items-center my-0 ml-3 mr-2">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__pulse_during_exercise" type="checkbox" class="mr-1">
+                        <span>Unknown</span>
+                    </label>
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__pulse_during_exercise_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+            </div>
+
+        </div>
+    </div>
+
+    <div class="my-3 node node-level-0" data-key="temp_thermometer">
+        <label>Thermometer / Temp.</label>
+        <div class="subs pl-4">
+            <div class="my-3 node node-level-2" data-key="temp_thermometer__ever_used_itg_before">
+                <label>Have you ever used an infrared temperature gun before?</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="temp_thermometer__ever_used_itg_before" type="radio" value="YES" class="mr-1">
+                        <span>Yes</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="temp_thermometer__ever_used_itg_before" type="radio" value="NO" class="mr-1">
+                        <span>No</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="temp_thermometer__ever_used_itg_before" type="radio" value="UNKNOWN" class="mr-1">
+                        <span>Unknown</span>
+                    </label>
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="temp_thermometer__ever_used_itg_before_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="temp_thermometer__usual_resting_temp">
+                <label>What does your resting temperature usually run at?</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="temp_thermometer__usual_resting_temp" type="radio" value="YES" class="mr-1">
+                        <span>Yes</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="temp_thermometer__usual_resting_temp" type="radio" value="NO" class="mr-1">
+                        <span>No</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="temp_thermometer__usual_resting_temp" type="radio" value="UNKNOWN" class="mr-1">
+                        <span>Unknown</span>
+                    </label>
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="temp_thermometer__usual_resting_temp_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="temp_thermometer__do_you_or_someone_at_home_go_outdoors">
+                <label>Do you or anyone you live with currently go outdoors in public places?</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="temp_thermometer__do_you_or_someone_at_home_go_outdoors" type="radio" value="YES" class="mr-1">
+                        <span>Yes</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="temp_thermometer__do_you_or_someone_at_home_go_outdoors" type="radio" value="NO" class="mr-1">
+                        <span>No</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="temp_thermometer__do_you_or_someone_at_home_go_outdoors" type="radio" value="UNKNOWN" class="mr-1">
+                        <span>Unknown</span>
+                    </label>
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="temp_thermometer__do_you_or_someone_at_home_go_outdoors_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="temp_thermometer__will_you_check_people_temp_before_they_come_near">
+                <label>Can you start to check people's temperature before they come near you?</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="temp_thermometer__will_you_check_people_temp_before_they_come_near" type="radio" value="YES" class="mr-1">
+                        <span>Yes</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="temp_thermometer__will_you_check_people_temp_before_they_come_near" type="radio" value="NO" class="mr-1">
+                        <span>No</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="temp_thermometer__will_you_check_people_temp_before_they_come_near" type="radio" value="UNKNOWN" class="mr-1">
+                        <span>Unknown</span>
+                    </label>
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="temp_thermometer__will_you_check_people_temp_before_they_come_near_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+            </div>
+
+        </div>
+    </div>
+
+    <div class="my-3 node node-level-0" data-key="bmi">
+        <label>BMI</label>
+        <div class="subs pl-4">
+            <div class="my-3 node node-level-2" data-key="bmi__has_one">
+                <label>Do you currently have one at home?</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__has_one" type="radio" value="YES" class="mr-1">
+                        <span>Yes</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__has_one" type="radio" value="NO" class="mr-1">
+                        <span>No</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__has_one" type="radio" value="UNKNOWN" class="mr-1">
+                        <span>Unknown</span>
+                    </label>
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__has_one_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+                <div class="subs pl-4">
+                    <div class="my-3 node node-level-4" data-key="bmi__has_one__confirmed_will_discontinue_current">
+                        <label>If yes, can you please discontinue use of that when you receive the one we send you?</label>
+                        <div class="d-flex align-items-center">
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__has_one__confirmed_will_discontinue_current" type="radio" value="YES" class="mr-1">
+                                <span>Yes</span>
+                            </label>
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__has_one__confirmed_will_discontinue_current" type="radio" value="NO" class="mr-1">
+                                <span>No</span>
+                            </label>
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__has_one__confirmed_will_discontinue_current" type="radio" value="UNKNOWN" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__has_one__confirmed_will_discontinue_current_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="bmi__current">
+                <label>What is your current:</label>
+                <div class="subs pl-4">
+                    <div class="my-3 node node-level-4" data-key="bmi__current__height_in_inches">
+                        <label>Height in inches?</label>
+                        <div class="d-flex align-items-center">
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__current__height_in_inches" type="text" class="form-control form-control-sm" placeholder="Answer">
+                            <label class="d-inline-flex align-items-center my-0 ml-3 mr-2">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__current__height_in_inches" type="checkbox" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__current__height_in_inches_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                    <div class="my-3 node node-level-4" data-key="bmi__current__weight_in_pounds">
+                        <label>Weight in pounds?</label>
+                        <div class="d-flex align-items-center">
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__current__weight_in_pounds" type="text" class="form-control form-control-sm" placeholder="Answer">
+                            <label class="d-inline-flex align-items-center my-0 ml-3 mr-2">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__current__weight_in_pounds" type="checkbox" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__current__weight_in_pounds_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                    <div class="my-3 node node-level-4" data-key="bmi__current__waistline_in_inches">
+                        <label>Waistline in inches?</label>
+                        <div class="d-flex align-items-center">
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__current__waistline_in_inches" type="text" class="form-control form-control-sm" placeholder="Answer">
+                            <label class="d-inline-flex align-items-center my-0 ml-3 mr-2">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__current__waistline_in_inches" type="checkbox" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__current__waistline_in_inches_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                    <div class="my-3 node node-level-4" data-key="bmi__current__body_fat_percent">
+                        <label>Body fat %?</label>
+                        <div class="d-flex align-items-center">
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__current__body_fat_percent" type="text" class="form-control form-control-sm" placeholder="Answer">
+                            <label class="d-inline-flex align-items-center my-0 ml-3 mr-2">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__current__body_fat_percent" type="checkbox" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__current__body_fat_percent_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="bmi__at_20_years_old">
+                <label>When you were 20 years old, what was your:</label>
+                <div class="subs pl-4">
+                    <div class="my-3 node node-level-4" data-key="bmi__at_20_years_old__weight_in_pounds">
+                        <label>Weight in pounds?</label>
+                        <div class="d-flex align-items-center">
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__at_20_years_old__weight_in_pounds" type="text" class="form-control form-control-sm" placeholder="Answer">
+                            <label class="d-inline-flex align-items-center my-0 ml-3 mr-2">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__at_20_years_old__weight_in_pounds" type="checkbox" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__at_20_years_old__weight_in_pounds_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                    <div class="my-3 node node-level-4" data-key="bmi__at_20_years_old__waistline_in_inches">
+                        <label>Waistline in inches?</label>
+                        <div class="d-flex align-items-center">
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__at_20_years_old__waistline_in_inches" type="text" class="form-control form-control-sm" placeholder="Answer">
+                            <label class="d-inline-flex align-items-center my-0 ml-3 mr-2">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__at_20_years_old__waistline_in_inches" type="checkbox" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__at_20_years_old__waistline_in_inches_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                    <div class="my-3 node node-level-4" data-key="bmi__at_20_years_old__height_in_inches">
+                        <label>Height in inches?</label>
+                        <div class="d-flex align-items-center">
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__at_20_years_old__height_in_inches" type="text" class="form-control form-control-sm" placeholder="Answer">
+                            <label class="d-inline-flex align-items-center my-0 ml-3 mr-2">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__at_20_years_old__height_in_inches" type="checkbox" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__at_20_years_old__height_in_inches_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="bmi__weight_goal_today">
+                <label>Personal weight goal today</label>
+                <div class="d-flex align-items-center">
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__weight_goal_today" type="text" class="form-control form-control-sm" placeholder="Answer">
+                    <label class="d-inline-flex align-items-center my-0 ml-3 mr-2">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__weight_goal_today" type="checkbox" class="mr-1">
+                        <span>Unknown</span>
+                    </label>
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__weight_goal_today_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="bmi__barriers_to_exercise">
+                <label>Do you currently have any conditions, such as arthritis or joint pain, that limit your ability to exercise?</label>
+                <div class="d-flex align-items-center">
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__barriers_to_exercise" type="text" class="form-control form-control-sm mr-2" placeholder="Answer">
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__barriers_to_exercise_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+            </div>
+
+        </div>
+    </div>
+
+    <div class="my-3 node node-level-0" data-key="current_focus_areas">
+        <label>As you know, you get three things with this program: 1) dedicated NP, 2) 24/7 access to the hotline, and 3) self-monitoring kit. What conditions or health goals do you have that you would like to see improve by participating in this program?</label>
+        <div class="mt-3">
+            <label class="d-flex align-items-center mb-1 mr-2">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="current_focus_areas[]" value="High Blood Pressure" type="checkbox" class="mr-1">
+                <span>High Blood Pressure</span>
+            </label>
+            <label class="d-flex align-items-center mb-1 mr-2">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="current_focus_areas[]" value="Heart Disease" type="checkbox" class="mr-1">
+                <span>Heart Disease</span>
+            </label>
+            <label class="d-flex align-items-center mb-1 mr-2">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="current_focus_areas[]" value="Diabetes" type="checkbox" class="mr-1">
+                <span>Diabetes</span>
+            </label>
+            <label class="d-flex align-items-center mb-1 mr-2">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="current_focus_areas[]" value="Chronic Lung Disease or COPD" type="checkbox" class="mr-1">
+                <span>Chronic Lung Disease or COPD</span>
+            </label>
+            <label class="d-flex align-items-center mb-1 mr-2">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="current_focus_areas[]" value="High Cholesterol" type="checkbox" class="mr-1">
+                <span>High Cholesterol</span>
+            </label>
+            <label class="d-flex align-items-center mb-1 mr-2">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="current_focus_areas[]" value="Heart Failure" type="checkbox" class="mr-1">
+                <span>Heart Failure</span>
+            </label>
+            <label class="d-flex align-items-center mb-1 mr-2">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="current_focus_areas[]" value="Atherosclerotic Disease ('Clogged Artery')" type="checkbox" class="mr-1">
+                <span>Atherosclerotic Disease ('Clogged Artery')</span>
+            </label>
+            <label class="d-flex align-items-center mb-1 mr-2">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="current_focus_areas[]" value="Cancer" type="checkbox" class="mr-1">
+                <span>Cancer</span>
+            </label>
+            <label class="d-flex align-items-center mb-1 mr-2">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="current_focus_areas[]" value="Stroke" type="checkbox" class="mr-1">
+                <span>Stroke</span>
+            </label>
+            <label class="d-flex align-items-center mb-1 mr-2">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="current_focus_areas[]" value="Alzheimer's" type="checkbox" class="mr-1">
+                <span>Alzheimer's</span>
+            </label>
+            <label class="d-flex align-items-center mb-1 mr-2">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="current_focus_areas[]" value="Diabetes" type="checkbox" class="mr-1">
+                <span>Diabetes</span>
+            </label>
+            <label class="d-flex align-items-center mb-1 mr-2">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="current_focus_areas[]" value="Kidney Disease" type="checkbox" class="mr-1">
+                <span>Kidney Disease</span>
+            </label>
+            <input onchange="onGemVChange_{{ $formID }}(this)" name="current_focus_areas_other" type="text" class="form-control form-control-sm my-3" placeholder="Other">
+        </div>
+    </div>
+
+    <div class="my-3 node node-level-0" data-key="consent">
+        <label>Consent:</label>
+        <div class="subs pl-4">
+            <div class="my-3 node node-level-2" data-key="consent__to_be_treated_and_use_equipment_as_directed">
+                <label>Do you agree to be treated for the above <span field="current_focus_areas"></span> by our board-certified nurse practitioners using self-monitoring equipment as directed for safety purposes - and do you understand that improper use of the equipment may cause false readings and possible harm?</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="consent__to_be_treated_and_use_equipment_as_directed" type="radio" value="ACCEPT" class="mr-1">
+                        <span>Accept</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="consent__to_be_treated_and_use_equipment_as_directed" type="radio" value="REJECT" class="mr-1">
+                        <span>Reject</span>
+                    </label>
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="consent__np_to_do_consult">
+                <label>I have to transfer this call over to the on call NP, who will conduct an initial consultation and sign the equipment order.</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="consent__np_to_do_consult" type="radio" value="ACCEPT" class="mr-1">
+                        <span>Accept</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="consent__np_to_do_consult" type="radio" value="REJECT" class="mr-1">
+                        <span>Reject</span>
+                    </label>
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="consent__np_will_be_poc">
+                <label>She'll be your dedicated point of contact here.</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="consent__np_will_be_poc" type="radio" value="ACCEPT" class="mr-1">
+                        <span>Accept</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="consent__np_will_be_poc" type="radio" value="REJECT" class="mr-1">
+                        <span>Reject</span>
+                    </label>
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="consent__confirm_ox_follow_up">
+                <label>As we discussed earlier, once you receive the oxygen meter, your dedicated NP will follow up again in a few days, it can be simply over the phone or video call if needed, to get a baseline resting and active oxygen reading. Number to call: <span field="blood_ox__o2_and_activity__baseline_o2_assessment__best_number_to_call"></span>, Time to call: <span field="blood_ox__o2_and_activity__baseline_o2_assessment__best_time_to_call"></span>.</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="consent__confirm_ox_follow_up" type="radio" value="ACCEPT" class="mr-1">
+                        <span>Accept</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="consent__confirm_ox_follow_up" type="radio" value="REJECT" class="mr-1">
+                        <span>Reject</span>
+                    </label>
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="consent__monthly_follow_up">
+                <label>After you are set up, your dedicated NP is required to call you monthly to make sure that you are okay and that the equipment is working properly.</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="consent__monthly_follow_up" type="radio" value="ACCEPT" class="mr-1">
+                        <span>Accept</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="consent__monthly_follow_up" type="radio" value="REJECT" class="mr-1">
+                        <span>Reject</span>
+                    </label>
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="consent__package">
+                <label>The equipment will come in two packages. First the temperature gun and oxygen meter. Then when we have confirmation that you successfully received the first package and got your baseline oxygen measurement, we will send out the second package which contains the BP cuff and weight scale.</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="consent__package" type="radio" value="ACCEPT" class="mr-1">
+                        <span>Accept</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="consent__package" type="radio" value="REJECT" class="mr-1">
+                        <span>Reject</span>
+                    </label>
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="consent__video_call">
+                <label>This first call with the NP, to sign the order, has to be a video call.</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="consent__video_call" type="radio" value="ACCEPT" class="mr-1">
+                        <span>Accept</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="consent__video_call" type="radio" value="REJECT" class="mr-1">
+                        <span>Reject</span>
+                    </label>
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="consent__later_phone_call">
+                <label>This is the only time a video call is required - if you need anything in the future it can be over a normal phone call.</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="consent__later_phone_call" type="radio" value="ACCEPT" class="mr-1">
+                        <span>Accept</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="consent__later_phone_call" type="radio" value="REJECT" class="mr-1">
+                        <span>Reject</span>
+                    </label>
+                </div>
+            </div>
+
+        </div>
+    </div>
+
+    <div class="my-3 node node-level-0" data-key="ever_had_a_video_call_with_hcp">
+        <label>Have you ever had a video call with one of your other doctors before?</label>
+        <div class="d-flex align-items-center">
+            <label class="d-inline-flex align-items-center my-0 mr-3">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="ever_had_a_video_call_with_hcp" type="radio" value="YES" class="mr-1">
+                <span>Yes</span>
+            </label>
+            <label class="d-inline-flex align-items-center my-0 mr-3">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="ever_had_a_video_call_with_hcp" type="radio" value="NO" class="mr-1">
+                <span>No</span>
+            </label>
+            <label class="d-inline-flex align-items-center my-0 mr-3">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="ever_had_a_video_call_with_hcp" type="radio" value="UNKNOWN" class="mr-1">
+                <span>Unknown</span>
+            </label>
+            <input onchange="onGemVChange_{{ $formID }}(this)" name="ever_had_a_video_call_with_hcp_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+        </div>
+        <div class="subs pl-4">
+            <div class="my-3 node node-level-2" data-key="ever_had_a_video_call_with_hcp__how_did_you_do_it">
+                <label>How did you do it?</label>
+                <div class="d-flex align-items-center">
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="ever_had_a_video_call_with_hcp__how_did_you_do_it" type="text" class="form-control form-control-sm mr-2" placeholder="Answer">
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="ever_had_a_video_call_with_hcp__how_did_you_do_it_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="ever_had_a_video_call_with_hcp__how_did_you_like_it">
+                <label>How did you like it?</label>
+                <div class="d-flex align-items-center">
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="ever_had_a_video_call_with_hcp__how_did_you_like_it" type="text" class="form-control form-control-sm mr-2" placeholder="Answer">
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="ever_had_a_video_call_with_hcp__how_did_you_like_it_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+            </div>
+
+        </div>
+    </div>
+
+    <div class="my-3 node node-level-0" data-key="mobile_phone">
+        <label>What kind of cell phone do you have?</label>
+        <div class="d-flex align-items-center">
+            <label class="d-inline-flex align-items-center my-0 mr-3">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="mobile_phone" type="radio" value="YES" class="mr-1">
+                <span>Yes</span>
+            </label>
+            <label class="d-inline-flex align-items-center my-0 mr-3">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="mobile_phone" type="radio" value="NO" class="mr-1">
+                <span>No</span>
+            </label>
+            <label class="d-inline-flex align-items-center my-0 mr-3">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="mobile_phone" type="radio" value="UNKNOWN" class="mr-1">
+                <span>Unknown</span>
+            </label>
+            <input onchange="onGemVChange_{{ $formID }}(this)" name="mobile_phone_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+        </div>
+        <div class="subs pl-4">
+            <div class="my-3 node node-level-2" data-key="mobile_phone__type">
+                <label>Type of phone:</label>
+                <div class="d-flex align-items-center">
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="mobile_phone__type" type="text" class="form-control form-control-sm mr-2" placeholder="Answer">
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="mobile_phone__type_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="mobile_phone__ever_done_video_call_with_phone">
+                <label>Have you ever done a video call with your phone before?</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="mobile_phone__ever_done_video_call_with_phone" type="radio" value="YES" class="mr-1">
+                        <span>Yes</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="mobile_phone__ever_done_video_call_with_phone" type="radio" value="NO" class="mr-1">
+                        <span>No</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="mobile_phone__ever_done_video_call_with_phone" type="radio" value="UNKNOWN" class="mr-1">
+                        <span>Unknown</span>
+                    </label>
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="mobile_phone__ever_done_video_call_with_phone_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+            </div>
+
+        </div>
+    </div>
+
+    <div class="my-3 node node-level-0" data-key="video_call_now">
+        <label>Can we do the video call now?</label>
+        <div class="d-flex align-items-center">
+            <label class="d-inline-flex align-items-center my-0 mr-3">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="video_call_now" type="radio" value="YES" class="mr-1">
+                <span>Yes</span>
+            </label>
+            <label class="d-inline-flex align-items-center my-0 mr-3">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="video_call_now" type="radio" value="NO" class="mr-1">
+                <span>No</span>
+            </label>
+            <label class="d-inline-flex align-items-center my-0 mr-3">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="video_call_now" type="radio" value="UNKNOWN" class="mr-1">
+                <span>Unknown</span>
+            </label>
+            <input onchange="onGemVChange_{{ $formID }}(this)" name="video_call_now_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+        </div>
+        <div class="subs pl-4">
+            <div class="my-3 node node-level-2" data-key="video_call_now__get_on_call_np">
+                <label>If yes, I can bring the on-call NP on the line and they'll get you all set up. OK?</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="video_call_now__get_on_call_np" type="radio" value="ACCEPT" class="mr-1">
+                        <span>Accept</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="video_call_now__get_on_call_np" type="radio" value="REJECT" class="mr-1">
+                        <span>Reject</span>
+                    </label>
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="video_call_now__when">
+                <label>If not, when is a good time?</label>
+                <div class="d-flex align-items-center">
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="video_call_now__when" type="text" class="form-control form-control-sm mr-2" placeholder="Answer">
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="video_call_now__when_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+            </div>
+
+        </div>
+    </div>
+
+    </div>
+
+
+    <div class="form-group m-0 d-flex">
+        <button class="btn btn-sm btn-primary mr-2">Submit</button>
+        <button class="btn btn-sm btn-default border" onclick="return cancelForm_NoteSection_{{ $formID }}(this)">Cancel</button>
+    </div>
+</form>
+<script>
+    function submitForm_NoteSection_{{ $formID }}(_form) {
+        showMask();
+        $.post(_form.action, $(_form).serialize(), function(_data) {
+            fastReload();
+        });
+        return false;
+    }
+    function cancelForm_NoteSection_{{ $formID }}(_trigger) {
+        $(_trigger).closest('.note-section').toggleClass('edit');
+        return false;
+    }
+    function onGemVChange_{{ $formID }}(_field) {
+        let name = _field.name, span = $('span[field="' + _field.name + '"]');
+        if(span.length) {
+            span.text(_field.value);
+        }
+        else {
+            name = _field.name.replace('[]', '');
+            span = $('span[field="' + name + '"]');
+            if(span.length) {
+                let value = [];
+                $('[name="' + _field.name + '"]').each(function() {
+                    if(this.checked) value.push(this.value);
+                });
+                span.text(value.join(', '));
+            }
+        }
+    }
+</script>

+ 2 - 0
gem/forms/new-patient-intake/build/processor.php

@@ -0,0 +1,2 @@
+<?php
+$newContentData = $request->all();

+ 1 - 0
gem/forms/new-patient-intake/build/summary.php

@@ -0,0 +1 @@
+<div><?= dump($newContentData['value']) ?></div>

+ 389 - 0
gem/forms/new-patient-intake/spec.json

@@ -0,0 +1,389 @@
+
+[
+    {
+        "Q": "Blood Oxygen",
+        "K": "blood_ox",
+        "S": [
+            {
+                "Q": "Have you ever used a fingertip blood oxygen saturation meter before?",
+                "T": "YNUM",
+                "K": "ever_used_fingertip_meter",
+                "S": [
+                    {
+                        "Q": "Do you currently have one at home?",
+                        "T": "YNUM",
+                        "K": "has_one"
+                    },
+                    {
+                        "Q": "If yes, can you please discontinue use of that when you receive the one we send you?",
+                        "T": "YNUM",
+                        "K": "confirmed_will_discontinue_current"
+                    }
+                ]
+            },
+            {
+                "Q": "Does your PCP regularly check your resting oxygen saturation?",
+                "T": "YNUM",
+                "K": "does_pcp_regularly_check"
+            },
+            {
+                "Q": "Do you know what your baseline resting oxygen saturation usually measures at?",
+                "T": "SRV",
+                "K": "baseline_resting_spo2_level"
+            },
+            {
+                "Q": "Do you have any lung condition, such as asthma or COPD, that might affect the reading when you measure your blood oxygen level?",
+                "T": "YNUM",
+                "K": "lung_condition_that_may_affect"
+            },
+            {
+                "Q": "Blood oxygen values depend a lot on your level of physical activity.",
+                "K": "o2_and_activity",
+                "S": [
+                    {
+                        "Q": "How many days per week do you currently perform aerobic exercise to the point that you can feel your lungs working harder and your heart beating faster?",
+                        "T": "Text with Memo",
+                        "K": "days_per_week_aerobic_exercise_with_exertion"
+                    },
+                    {
+                        "Q": "How many total minutes per week on average would you say you are in a state of aerobic exercise, where you feel your lungs working harder and your heart beating faster?",
+                        "T": "Text with Memo",
+                        "K": "minutes_per_week_aerobic_exercise_with_exertion"
+                    },
+                    {
+                        "Q": "Have you ever had your oxygen checked before and after exercise?",
+                        "T": "YNUM",
+                        "K": "ever_had_o2_checked_before_after_exercise"
+                    },
+                    {
+                        "Q": "Once you receive the oxygen meter, our nurse will need to call you to make sure you take a proper baseline resting measurement, and then another measurement after you walk at a normal speed for 1 minute. When is the best time and number to call usually?",
+                        "T": "Text with Memo",
+                        "K": "baseline_o2_assessment",
+                        "S": [
+                            {
+                                "Q": "Best time to call:",
+                                "T": "Text with Memo",
+                                "K": "best_time_to_call"
+                            },
+                            {
+                                "Q": "Best number to call:",
+                                "T": "Text with Memo",
+                                "K": "best_number_to_call"
+                            }
+                        ]
+                    },
+                    {
+                        "Q": "Has the COVID-19 pandemic made you less physically active than you were before?",
+                        "T": "YNUM",
+                        "K": "has_covid_made_you_less_physically_active"
+                    }
+                ]
+            }
+        ]
+    },
+    {
+        "Q": "Pulse & BP",
+        "K": "pulse_and_bp",
+        "S": [
+            {
+                "Q": "Have you ever used an automatic pulse and blood pressure meter before?",
+                "T": "YNUM",
+                "K": "ever_used_auto_pulse_bp_meter",
+                "S": [
+                    {
+                        "Q": "Do you currently have one at home?",
+                        "T": "YNUM",
+                        "K": "has_one"
+                    },
+                    {
+                        "Q": "If yes, can you please discontinue use of that when you receive the one we send you?",
+                        "T": "YNUM",
+                        "K": "confirmed_will_discontinue_current"
+                    }
+                ]
+            },
+            {
+                "Q": "What is your usual resting pulse?",
+                "T": "SRV",
+                "K": "usual_resting_pulse"
+            },
+            {
+                "Q": "What is your usual resting blood pressure?",
+                "K": "usual_resting_bp",
+                "S": [
+                    {
+                        "Q": "Systolic",
+                        "T": "SRV",
+                        "K": "systolic"
+                    },
+                    {
+                        "Q": "Diastolic",
+                        "T": "SRV",
+                        "K": "diastolic"
+                    }
+                ]
+            },
+            {
+                "Q": "Have you ever been diagnosed with high blood pressure?",
+                "K": "ever_dx_with_htn",
+                "T": "YNUM",
+                "S": [
+                    {
+                        "Q": "Are you on any BP medication?",
+                        "K": "on_bp_medications",
+                        "T": "YNUM"
+                    },
+                    {
+                        "Q": "Who primarily treats your HTN?",
+                        "K": "who_treats",
+                        "T": "SRV"
+                    }
+                ]
+            },
+            {
+                "Q": "Has your primary care physician, or another doctor, ever told you what your target BP should be?",
+                "K": "pcp_or_other_doc_bp_target",
+                "T": "SRV",
+                "S": [
+                    {
+                        "Q": "Systolic",
+                        "T": "SRV",
+                        "K": "systolic"
+                    },
+                    {
+                        "Q": "Diastolic",
+                        "T": "SRV",
+                        "K": "diastolic"
+                    }
+                ]
+            },
+            {
+                "Q": "When you exercise, what does your pulse reach?",
+                "K": "pulse_during_exercise",
+                "T": "SRV"
+            }
+        ]
+    },
+    {
+        "Q": "Thermometer / Temp.",
+        "K": "temp_thermometer",
+        "S": [
+            {
+                "Q": "Have you ever used an infrared temperature gun before?",
+                "K": "ever_used_itg_before",
+                "T": "YNUM"
+            },
+            {
+                "Q": "What does your resting temperature usually run at?",
+                "K": "usual_resting_temp",
+                "T": "YNUM"
+            },
+            {
+                "Skip": true,
+                "Q": "Do you or anyone you live with currently go outdoors in public places?",
+                "K": "do_you_or_someone_at_home_go_outdoors",
+                "T": "YNUM"
+            },
+            {
+                "Skip": true,
+                "Q": "Can you start to check people's temperature before they come near you?",
+                "K": "will_you_check_people_temp_before_they_come_near",
+                "T": "YNUM"
+            }
+        ]
+    },
+    {
+        "Q": "BMI",
+        "K": "bmi",
+        "S": [
+            {
+                "Q": "Do you currently have one at home?",
+                "T": "YNUM",
+                "K": "has_one",
+                "S": [
+                    {
+                        "Q": "If yes, can you please discontinue use of that when you receive the one we send you?",
+                        "T": "YNUM",
+                        "K": "confirmed_will_discontinue_current"
+                    }
+                ]
+            },
+            {
+                "Q": "What is your current:",
+                "K": "current",
+                "S": [
+                    {
+                        "Q": "Height in inches?",
+                        "K": "height_in_inches",
+                        "T": "SRV"
+                    },
+                    {
+                        "Q": "Weight in pounds?",
+                        "K": "weight_in_pounds",
+                        "T": "SRV"
+                    },
+                    {
+                        "Q": "Waistline in inches?",
+                        "K": "waistline_in_inches",
+                        "T": "SRV"
+                    },
+                    {
+                        "Skip": true,
+                        "Q": "Body fat %?",
+                        "K": "body_fat_percent",
+                        "T": "SRV"
+                    }
+                ]
+            },
+            {
+                "Q": "When you were 20 years old, what was your:",
+                "K": "at_20_years_old",
+                "S": [
+                    {
+                        "Q": "Weight in pounds?",
+                        "K": "weight_in_pounds",
+                        "T": "SRV"
+                    },
+                    {
+                        "Q": "Waistline in inches?",
+                        "K": "waistline_in_inches",
+                        "T": "SRV"
+                    },
+                    {
+                        "Q": "Height in inches?",
+                        "K": "height_in_inches",
+                        "T": "SRV"
+                    }
+                ]
+            },
+            {
+                "Q": "Personal weight goal today",
+                "K": "weight_goal_today",
+                "T": "SRV"
+            },
+            {
+                "Q": "Do you currently have any conditions, such as arthritis or joint pain, that limit your ability to exercise?",
+                "K": "barriers_to_exercise",
+                "T": "Text with Memo"
+            }
+        ]
+    },
+
+    {
+        "Q": "As you know, you get three things with this program: 1) dedicated NP, 2) 24/7 access to the hotline, and 3) self-monitoring kit. What conditions or health goals do you have that you would like to see improve by participating in this program?",
+        "K": "current_focus_areas",
+        "T": "Multi Checkbox with Other",
+        "Options": [
+            "High Blood Pressure",
+            "Heart Disease",
+            "Diabetes",
+            "Chronic Lung Disease or COPD",
+            "High Cholesterol",
+            "Heart Failure",
+            "Atherosclerotic Disease ('Clogged Artery')",
+            "Cancer",
+            "Stroke",
+            "Alzheimer's",
+            "Diabetes",
+            "Kidney Disease"
+        ]
+    },
+    {
+        "Q": "Consent:",
+        "K": "consent",
+        "S": [
+            {
+                "Q": "Do you agree to be treated for the above {{current_focus_areas}} by our board-certified nurse practitioners using self-monitoring equipment as directed for safety purposes - and do you understand that improper use of the equipment may cause false readings and possible harm?",
+                "K": "to_be_treated_and_use_equipment_as_directed",
+                "T": "Accept"
+            },
+            {
+                "Q": "I have to transfer this call over to the on call NP, who will conduct an initial consultation and sign the equipment order.",
+                "K": "np_to_do_consult",
+                "T": "Accept"
+            },
+            {
+                "Q": "She'll be your dedicated point of contact here.",
+                "K": "np_will_be_poc",
+                "T": "Accept"
+            },
+            {
+                "Q": "As we discussed earlier, once you receive the oxygen meter, your dedicated NP will follow up again in a few days, it can be simply over the phone or video call if needed, to get a baseline resting and active oxygen reading. Number to call: {{blood_ox__o2_and_activity__baseline_o2_assessment__best_number_to_call}}, Time to call: {{blood_ox__o2_and_activity__baseline_o2_assessment__best_time_to_call}}.",
+                "K": "confirm_ox_follow_up",
+                "T": "Accept"
+            },
+            {
+                "Q": "After you are set up, your dedicated NP is required to call you monthly to make sure that you are okay and that the equipment is working properly.",
+                "K": "monthly_follow_up",
+                "T": "Accept"
+            },
+            {
+                "Q": "The equipment will come in two packages. First the temperature gun and oxygen meter. Then when we have confirmation that you successfully received the first package and got your baseline oxygen measurement, we will send out the second package which contains the BP cuff and weight scale.",
+                "K": "package",
+                "T": "Accept"
+            },
+            {
+                "Q": "This first call with the NP, to sign the order, has to be a video call.",
+                "K": "video_call",
+                "T": "Accept"
+            },
+            {
+                "Q": "This is the only time a video call is required - if you need anything in the future it can be over a normal phone call.",
+                "K": "later_phone_call",
+                "T": "Accept"
+            }
+        ]
+    },
+    {
+        "Q": "Have you ever had a video call with one of your other doctors before?",
+        "K": "ever_had_a_video_call_with_hcp",
+        "T": "YNUM",
+        "S": [
+            {
+                "Q": "How did you do it?",
+                "K": "how_did_you_do_it",
+                "T": "Text with Memo"
+            },
+            {
+                "Skip": true,
+                "Q": "How did you like it?",
+                "K": "how_did_you_like_it",
+                "T": "Text with Memo"
+            }
+        ]
+    },
+    {
+        "Q": "What kind of cell phone do you have?",
+        "K": "mobile_phone",
+        "T": "YNUM",
+        "S": [
+            {
+                "Q": "Type of phone:",
+                "K": "type",
+                "T": "Text with Memo"
+            },
+            {
+                "Q": "Have you ever done a video call with your phone before?",
+                "K": "ever_done_video_call_with_phone",
+                "T": "YNUM"
+            }
+        ]
+    },
+    {
+        "Q": "Can we do the video call now?",
+        "K": "video_call_now",
+        "T": "YNUM",
+        "S": [
+            {
+                "Q": "If yes, I can bring the on-call NP on the line and they'll get you all set up. OK?",
+                "K": "get_on_call_np",
+                "T": "Accept"
+            },
+            {
+                "Q": "If not, when is a good time?",
+                "K": "when",
+                "T": "Text with Memo"
+            }
+        ]
+    }
+]

+ 57 - 0
gem/templates/form.blade.php

@@ -0,0 +1,57 @@
+<?php
+$contentData = false;
+if($section){
+    $contentData = json_decode($section->content_data, true);
+}
+if(!$contentData || !isset($contentData['value'])) {
+    $contentData = [
+        'value'=>''
+    ];
+}
+$formID = rand(0, 100000);
+?>
+<form method="POST" action="/process_form_submit" onsubmit="return submitForm_NoteSection_{{ $formID }}(this);">
+    <?php if($section): ?>
+        <input type="hidden" name="section_uid" value="<?= $section->uid?>">
+    <?php else: ?>
+        <input type="hidden" name="note_uid" value="<?= $note->uid?>">
+        <input type="hidden" name="section_template_uid" value="<?= $sectionTemplate->uid ?>">
+    <?php endif; ?>
+
+<!-- __GENERATED_MARKUP__ -->
+
+    <div class="form-group m-0 d-flex">
+        <button class="btn btn-sm btn-primary mr-2">Submit</button>
+        <button class="btn btn-sm btn-default border" onclick="return cancelForm_NoteSection_{{ $formID }}(this)">Cancel</button>
+    </div>
+</form>
+<script>
+    function submitForm_NoteSection_{{ $formID }}(_form) {
+        showMask();
+        $.post(_form.action, $(_form).serialize(), function(_data) {
+            fastReload();
+        });
+        return false;
+    }
+    function cancelForm_NoteSection_{{ $formID }}(_trigger) {
+        $(_trigger).closest('.note-section').toggleClass('edit');
+        return false;
+    }
+    function onGemVChange_{{ $formID }}(_field) {
+        let name = _field.name, span = $('span[field="' + _field.name + '"]');
+        if(span.length) {
+            span.text(_field.value);
+        }
+        else {
+            name = _field.name.replace('[]', '');
+            span = $('span[field="' + name + '"]');
+            if(span.length) {
+                let value = [];
+                $('[name="' + _field.name + '"]').each(function() {
+                    if(this.checked) value.push(this.value);
+                });
+                span.text(value.join(', '));
+            }
+        }
+    }
+</script>

+ 2 - 0
gem/templates/processor.php

@@ -0,0 +1,2 @@
+<?php
+$newContentData = $request->all();

+ 1 - 0
gem/templates/summary.php

@@ -0,0 +1 @@
+<div><?= dump($newContentData['value']) ?></div>

+ 34 - 0
public/css/style.css

@@ -629,3 +629,37 @@ body .break-spaces {
     top: 100%;
     z-index: 1;
 }
+
+.gem-nodes .node {
+    border: 1px solid #ddd;
+    padding: 0.75rem;
+    border-radius: 5px;
+}
+.gem-nodes>.node {
+    border: 0 !important;
+    padding-left: 0;
+    padding-right: 0;
+}
+.gem-nodes>.node:first-child {
+    margin-top: 0 !important;
+}
+.gem-nodes>.node>label {
+    font-weight: bold;
+    font-size: 14px;
+    margin: 0;
+}
+.gem-nodes .subs .node:last-child {
+    margin-bottom: 0 !important;
+}
+.gem-nodes>.node>.subs {
+    padding-left: 0 !important;
+}
+.gem-nodes>.node>.subs>.node {
+    background: #f2f2f2;
+}
+.gem-nodes>.node>.subs>.node>.subs>.node {
+    background: #fff;
+}
+.gem-nodes .node span[field] {
+    font-weight: bold;
+}

+ 2 - 2
resources/views/app/practice-management/my-text-shortcuts.blade.php

@@ -22,7 +22,7 @@
                                placeholder="Shortcut *">
                     </div>
                     <div class="mb-2">
-                        <textarea type="text" class="form-control form-control-sm" name="shortcut"
+                        <textarea type="text" class="form-control form-control-sm" name="text"
                                                       placeholder="Context *"></textarea>
                     </div>
                     <div class="form-group m-0">
@@ -60,7 +60,7 @@
                                                    placeholder="Shortcut *">
                                         </div>
                                         <div class="mb-2">
-                                            <textarea type="text" class="form-control form-control-sm" name="shortcut"
+                                            <textarea type="text" class="form-control form-control-sm" name="text"
                                                       placeholder="Context *">{{$textShortcut->text}}</textarea>
                                         </div>
                                         <div class="form-group m-0">

+ 1014 - 0
storage/sections/new-patient-intake/form.blade.php

@@ -0,0 +1,1014 @@
+<?php
+$contentData = false;
+if($section){
+    $contentData = json_decode($section->content_data, true);
+}
+if(!$contentData || !isset($contentData['value'])) {
+    $contentData = [
+        'value'=>''
+    ];
+}
+$formID = rand(0, 100000);
+?>
+<form method="POST" action="/process_form_submit" onsubmit="return submitForm_NoteSection_{{ $formID }}(this);">
+    <?php if($section): ?>
+        <input type="hidden" name="section_uid" value="<?= $section->uid?>">
+    <?php else: ?>
+        <input type="hidden" name="note_uid" value="<?= $note->uid?>">
+        <input type="hidden" name="section_template_uid" value="<?= $sectionTemplate->uid ?>">
+    <?php endif; ?>
+
+    <div class="gem-nodes">
+    <div class="my-3 node node-level-0" data-key="blood_ox">
+        <label>Blood Oxygen</label>
+        <div class="subs pl-4">
+            <div class="my-3 node node-level-2" data-key="blood_ox__ever_used_fingertip_meter">
+                <label>Have you ever used a fingertip blood oxygen saturation meter before?</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__ever_used_fingertip_meter" type="radio" value="YES" class="mr-1">
+                        <span>Yes</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__ever_used_fingertip_meter" type="radio" value="NO" class="mr-1">
+                        <span>No</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__ever_used_fingertip_meter" type="radio" value="UNKNOWN" class="mr-1">
+                        <span>Unknown</span>
+                    </label>
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__ever_used_fingertip_meter_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+                <div class="subs pl-4">
+                    <div class="my-3 node node-level-4" data-key="blood_ox__ever_used_fingertip_meter__has_one">
+                        <label>Do you currently have one at home?</label>
+                        <div class="d-flex align-items-center">
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__ever_used_fingertip_meter__has_one" type="radio" value="YES" class="mr-1">
+                                <span>Yes</span>
+                            </label>
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__ever_used_fingertip_meter__has_one" type="radio" value="NO" class="mr-1">
+                                <span>No</span>
+                            </label>
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__ever_used_fingertip_meter__has_one" type="radio" value="UNKNOWN" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__ever_used_fingertip_meter__has_one_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                    <div class="my-3 node node-level-4" data-key="blood_ox__ever_used_fingertip_meter__confirmed_will_discontinue_current">
+                        <label>If yes, can you please discontinue use of that when you receive the one we send you?</label>
+                        <div class="d-flex align-items-center">
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__ever_used_fingertip_meter__confirmed_will_discontinue_current" type="radio" value="YES" class="mr-1">
+                                <span>Yes</span>
+                            </label>
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__ever_used_fingertip_meter__confirmed_will_discontinue_current" type="radio" value="NO" class="mr-1">
+                                <span>No</span>
+                            </label>
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__ever_used_fingertip_meter__confirmed_will_discontinue_current" type="radio" value="UNKNOWN" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__ever_used_fingertip_meter__confirmed_will_discontinue_current_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="blood_ox__does_pcp_regularly_check">
+                <label>Does your PCP regularly check your resting oxygen saturation?</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__does_pcp_regularly_check" type="radio" value="YES" class="mr-1">
+                        <span>Yes</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__does_pcp_regularly_check" type="radio" value="NO" class="mr-1">
+                        <span>No</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__does_pcp_regularly_check" type="radio" value="UNKNOWN" class="mr-1">
+                        <span>Unknown</span>
+                    </label>
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__does_pcp_regularly_check_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="blood_ox__baseline_resting_spo2_level">
+                <label>Do you know what your baseline resting oxygen saturation usually measures at?</label>
+                <div class="d-flex align-items-center">
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__baseline_resting_spo2_level" type="text" class="form-control form-control-sm" placeholder="Answer">
+                    <label class="d-inline-flex align-items-center my-0 ml-3 mr-2">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__baseline_resting_spo2_level" type="checkbox" class="mr-1">
+                        <span>Unknown</span>
+                    </label>
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__baseline_resting_spo2_level_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="blood_ox__lung_condition_that_may_affect">
+                <label>Do you have any lung condition, such as asthma or COPD, that might affect the reading when you measure your blood oxygen level?</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__lung_condition_that_may_affect" type="radio" value="YES" class="mr-1">
+                        <span>Yes</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__lung_condition_that_may_affect" type="radio" value="NO" class="mr-1">
+                        <span>No</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__lung_condition_that_may_affect" type="radio" value="UNKNOWN" class="mr-1">
+                        <span>Unknown</span>
+                    </label>
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__lung_condition_that_may_affect_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="blood_ox__o2_and_activity">
+                <label>Blood oxygen values depend a lot on your level of physical activity.</label>
+                <div class="subs pl-4">
+                    <div class="my-3 node node-level-4" data-key="blood_ox__o2_and_activity__days_per_week_aerobic_exercise_with_exertion">
+                        <label>How many days per week do you currently perform aerobic exercise to the point that you can feel your lungs working harder and your heart beating faster?</label>
+                        <div class="d-flex align-items-center">
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__o2_and_activity__days_per_week_aerobic_exercise_with_exertion" type="text" class="form-control form-control-sm mr-2" placeholder="Answer">
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__o2_and_activity__days_per_week_aerobic_exercise_with_exertion_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                    <div class="my-3 node node-level-4" data-key="blood_ox__o2_and_activity__minutes_per_week_aerobic_exercise_with_exertion">
+                        <label>How many total minutes per week on average would you say you are in a state of aerobic exercise, where you feel your lungs working harder and your heart beating faster?</label>
+                        <div class="d-flex align-items-center">
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__o2_and_activity__minutes_per_week_aerobic_exercise_with_exertion" type="text" class="form-control form-control-sm mr-2" placeholder="Answer">
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__o2_and_activity__minutes_per_week_aerobic_exercise_with_exertion_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                    <div class="my-3 node node-level-4" data-key="blood_ox__o2_and_activity__ever_had_o2_checked_before_after_exercise">
+                        <label>Have you ever had your oxygen checked before and after exercise?</label>
+                        <div class="d-flex align-items-center">
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__o2_and_activity__ever_had_o2_checked_before_after_exercise" type="radio" value="YES" class="mr-1">
+                                <span>Yes</span>
+                            </label>
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__o2_and_activity__ever_had_o2_checked_before_after_exercise" type="radio" value="NO" class="mr-1">
+                                <span>No</span>
+                            </label>
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__o2_and_activity__ever_had_o2_checked_before_after_exercise" type="radio" value="UNKNOWN" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__o2_and_activity__ever_had_o2_checked_before_after_exercise_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                    <div class="my-3 node node-level-4" data-key="blood_ox__o2_and_activity__baseline_o2_assessment">
+                        <label>Once you receive the oxygen meter, our nurse will need to call you to make sure you take a proper baseline resting measurement, and then another measurement after you walk at a normal speed for 1 minute. When is the best time and number to call usually?</label>
+                        <div class="d-flex align-items-center">
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__o2_and_activity__baseline_o2_assessment" type="text" class="form-control form-control-sm mr-2" placeholder="Answer">
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__o2_and_activity__baseline_o2_assessment_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                        <div class="subs pl-4">
+                            <div class="my-3 node node-level-6" data-key="blood_ox__o2_and_activity__baseline_o2_assessment__best_time_to_call">
+                                <label>Best time to call:</label>
+                                <div class="d-flex align-items-center">
+                                    <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__o2_and_activity__baseline_o2_assessment__best_time_to_call" type="text" class="form-control form-control-sm mr-2" placeholder="Answer">
+                                    <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__o2_and_activity__baseline_o2_assessment__best_time_to_call_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                                </div>
+                            </div>
+
+                            <div class="my-3 node node-level-6" data-key="blood_ox__o2_and_activity__baseline_o2_assessment__best_number_to_call">
+                                <label>Best number to call:</label>
+                                <div class="d-flex align-items-center">
+                                    <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__o2_and_activity__baseline_o2_assessment__best_number_to_call" type="text" class="form-control form-control-sm mr-2" placeholder="Answer">
+                                    <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__o2_and_activity__baseline_o2_assessment__best_number_to_call_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                                </div>
+                            </div>
+
+                        </div>
+                    </div>
+
+                    <div class="my-3 node node-level-4" data-key="blood_ox__o2_and_activity__has_covid_made_you_less_physically_active">
+                        <label>Has the COVID-19 pandemic made you less physically active than you were before?</label>
+                        <div class="d-flex align-items-center">
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__o2_and_activity__has_covid_made_you_less_physically_active" type="radio" value="YES" class="mr-1">
+                                <span>Yes</span>
+                            </label>
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__o2_and_activity__has_covid_made_you_less_physically_active" type="radio" value="NO" class="mr-1">
+                                <span>No</span>
+                            </label>
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__o2_and_activity__has_covid_made_you_less_physically_active" type="radio" value="UNKNOWN" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="blood_ox__o2_and_activity__has_covid_made_you_less_physically_active_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                </div>
+            </div>
+
+        </div>
+    </div>
+
+    <div class="my-3 node node-level-0" data-key="pulse_and_bp">
+        <label>Pulse & BP</label>
+        <div class="subs pl-4">
+            <div class="my-3 node node-level-2" data-key="pulse_and_bp__ever_used_auto_pulse_bp_meter">
+                <label>Have you ever used an automatic pulse and blood pressure meter before?</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_used_auto_pulse_bp_meter" type="radio" value="YES" class="mr-1">
+                        <span>Yes</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_used_auto_pulse_bp_meter" type="radio" value="NO" class="mr-1">
+                        <span>No</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_used_auto_pulse_bp_meter" type="radio" value="UNKNOWN" class="mr-1">
+                        <span>Unknown</span>
+                    </label>
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_used_auto_pulse_bp_meter_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+                <div class="subs pl-4">
+                    <div class="my-3 node node-level-4" data-key="pulse_and_bp__ever_used_auto_pulse_bp_meter__has_one">
+                        <label>Do you currently have one at home?</label>
+                        <div class="d-flex align-items-center">
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_used_auto_pulse_bp_meter__has_one" type="radio" value="YES" class="mr-1">
+                                <span>Yes</span>
+                            </label>
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_used_auto_pulse_bp_meter__has_one" type="radio" value="NO" class="mr-1">
+                                <span>No</span>
+                            </label>
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_used_auto_pulse_bp_meter__has_one" type="radio" value="UNKNOWN" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_used_auto_pulse_bp_meter__has_one_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                    <div class="my-3 node node-level-4" data-key="pulse_and_bp__ever_used_auto_pulse_bp_meter__confirmed_will_discontinue_current">
+                        <label>If yes, can you please discontinue use of that when you receive the one we send you?</label>
+                        <div class="d-flex align-items-center">
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_used_auto_pulse_bp_meter__confirmed_will_discontinue_current" type="radio" value="YES" class="mr-1">
+                                <span>Yes</span>
+                            </label>
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_used_auto_pulse_bp_meter__confirmed_will_discontinue_current" type="radio" value="NO" class="mr-1">
+                                <span>No</span>
+                            </label>
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_used_auto_pulse_bp_meter__confirmed_will_discontinue_current" type="radio" value="UNKNOWN" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_used_auto_pulse_bp_meter__confirmed_will_discontinue_current_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="pulse_and_bp__usual_resting_pulse">
+                <label>What is your usual resting pulse?</label>
+                <div class="d-flex align-items-center">
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__usual_resting_pulse" type="text" class="form-control form-control-sm" placeholder="Answer">
+                    <label class="d-inline-flex align-items-center my-0 ml-3 mr-2">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__usual_resting_pulse" type="checkbox" class="mr-1">
+                        <span>Unknown</span>
+                    </label>
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__usual_resting_pulse_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="pulse_and_bp__usual_resting_bp">
+                <label>What is your usual resting blood pressure?</label>
+                <div class="subs pl-4">
+                    <div class="my-3 node node-level-4" data-key="pulse_and_bp__usual_resting_bp__systolic">
+                        <label>Systolic</label>
+                        <div class="d-flex align-items-center">
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__usual_resting_bp__systolic" type="text" class="form-control form-control-sm" placeholder="Answer">
+                            <label class="d-inline-flex align-items-center my-0 ml-3 mr-2">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__usual_resting_bp__systolic" type="checkbox" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__usual_resting_bp__systolic_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                    <div class="my-3 node node-level-4" data-key="pulse_and_bp__usual_resting_bp__diastolic">
+                        <label>Diastolic</label>
+                        <div class="d-flex align-items-center">
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__usual_resting_bp__diastolic" type="text" class="form-control form-control-sm" placeholder="Answer">
+                            <label class="d-inline-flex align-items-center my-0 ml-3 mr-2">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__usual_resting_bp__diastolic" type="checkbox" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__usual_resting_bp__diastolic_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="pulse_and_bp__ever_dx_with_htn">
+                <label>Have you ever been diagnosed with high blood pressure?</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_dx_with_htn" type="radio" value="YES" class="mr-1">
+                        <span>Yes</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_dx_with_htn" type="radio" value="NO" class="mr-1">
+                        <span>No</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_dx_with_htn" type="radio" value="UNKNOWN" class="mr-1">
+                        <span>Unknown</span>
+                    </label>
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_dx_with_htn_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+                <div class="subs pl-4">
+                    <div class="my-3 node node-level-4" data-key="pulse_and_bp__ever_dx_with_htn__on_bp_medications">
+                        <label>Are you on any BP medication?</label>
+                        <div class="d-flex align-items-center">
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_dx_with_htn__on_bp_medications" type="radio" value="YES" class="mr-1">
+                                <span>Yes</span>
+                            </label>
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_dx_with_htn__on_bp_medications" type="radio" value="NO" class="mr-1">
+                                <span>No</span>
+                            </label>
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_dx_with_htn__on_bp_medications" type="radio" value="UNKNOWN" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_dx_with_htn__on_bp_medications_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                    <div class="my-3 node node-level-4" data-key="pulse_and_bp__ever_dx_with_htn__who_treats">
+                        <label>Who primarily treats your HTN?</label>
+                        <div class="d-flex align-items-center">
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_dx_with_htn__who_treats" type="text" class="form-control form-control-sm" placeholder="Answer">
+                            <label class="d-inline-flex align-items-center my-0 ml-3 mr-2">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_dx_with_htn__who_treats" type="checkbox" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__ever_dx_with_htn__who_treats_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="pulse_and_bp__pcp_or_other_doc_bp_target">
+                <label>Has your primary care physician, or another doctor, ever told you what your target BP should be?</label>
+                <div class="d-flex align-items-center">
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__pcp_or_other_doc_bp_target" type="text" class="form-control form-control-sm" placeholder="Answer">
+                    <label class="d-inline-flex align-items-center my-0 ml-3 mr-2">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__pcp_or_other_doc_bp_target" type="checkbox" class="mr-1">
+                        <span>Unknown</span>
+                    </label>
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__pcp_or_other_doc_bp_target_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+                <div class="subs pl-4">
+                    <div class="my-3 node node-level-4" data-key="pulse_and_bp__pcp_or_other_doc_bp_target__systolic">
+                        <label>Systolic</label>
+                        <div class="d-flex align-items-center">
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__pcp_or_other_doc_bp_target__systolic" type="text" class="form-control form-control-sm" placeholder="Answer">
+                            <label class="d-inline-flex align-items-center my-0 ml-3 mr-2">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__pcp_or_other_doc_bp_target__systolic" type="checkbox" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__pcp_or_other_doc_bp_target__systolic_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                    <div class="my-3 node node-level-4" data-key="pulse_and_bp__pcp_or_other_doc_bp_target__diastolic">
+                        <label>Diastolic</label>
+                        <div class="d-flex align-items-center">
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__pcp_or_other_doc_bp_target__diastolic" type="text" class="form-control form-control-sm" placeholder="Answer">
+                            <label class="d-inline-flex align-items-center my-0 ml-3 mr-2">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__pcp_or_other_doc_bp_target__diastolic" type="checkbox" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__pcp_or_other_doc_bp_target__diastolic_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="pulse_and_bp__pulse_during_exercise">
+                <label>When you exercise, what does your pulse reach?</label>
+                <div class="d-flex align-items-center">
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__pulse_during_exercise" type="text" class="form-control form-control-sm" placeholder="Answer">
+                    <label class="d-inline-flex align-items-center my-0 ml-3 mr-2">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__pulse_during_exercise" type="checkbox" class="mr-1">
+                        <span>Unknown</span>
+                    </label>
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="pulse_and_bp__pulse_during_exercise_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+            </div>
+
+        </div>
+    </div>
+
+    <div class="my-3 node node-level-0" data-key="temp_thermometer">
+        <label>Thermometer / Temp.</label>
+        <div class="subs pl-4">
+            <div class="my-3 node node-level-2" data-key="temp_thermometer__ever_used_itg_before">
+                <label>Have you ever used an infrared temperature gun before?</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="temp_thermometer__ever_used_itg_before" type="radio" value="YES" class="mr-1">
+                        <span>Yes</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="temp_thermometer__ever_used_itg_before" type="radio" value="NO" class="mr-1">
+                        <span>No</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="temp_thermometer__ever_used_itg_before" type="radio" value="UNKNOWN" class="mr-1">
+                        <span>Unknown</span>
+                    </label>
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="temp_thermometer__ever_used_itg_before_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="temp_thermometer__usual_resting_temp">
+                <label>What does your resting temperature usually run at?</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="temp_thermometer__usual_resting_temp" type="radio" value="YES" class="mr-1">
+                        <span>Yes</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="temp_thermometer__usual_resting_temp" type="radio" value="NO" class="mr-1">
+                        <span>No</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="temp_thermometer__usual_resting_temp" type="radio" value="UNKNOWN" class="mr-1">
+                        <span>Unknown</span>
+                    </label>
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="temp_thermometer__usual_resting_temp_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="temp_thermometer__do_you_or_someone_at_home_go_outdoors">
+                <label>Do you or anyone you live with currently go outdoors in public places?</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="temp_thermometer__do_you_or_someone_at_home_go_outdoors" type="radio" value="YES" class="mr-1">
+                        <span>Yes</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="temp_thermometer__do_you_or_someone_at_home_go_outdoors" type="radio" value="NO" class="mr-1">
+                        <span>No</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="temp_thermometer__do_you_or_someone_at_home_go_outdoors" type="radio" value="UNKNOWN" class="mr-1">
+                        <span>Unknown</span>
+                    </label>
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="temp_thermometer__do_you_or_someone_at_home_go_outdoors_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="temp_thermometer__will_you_check_people_temp_before_they_come_near">
+                <label>Can you start to check people's temperature before they come near you?</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="temp_thermometer__will_you_check_people_temp_before_they_come_near" type="radio" value="YES" class="mr-1">
+                        <span>Yes</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="temp_thermometer__will_you_check_people_temp_before_they_come_near" type="radio" value="NO" class="mr-1">
+                        <span>No</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="temp_thermometer__will_you_check_people_temp_before_they_come_near" type="radio" value="UNKNOWN" class="mr-1">
+                        <span>Unknown</span>
+                    </label>
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="temp_thermometer__will_you_check_people_temp_before_they_come_near_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+            </div>
+
+        </div>
+    </div>
+
+    <div class="my-3 node node-level-0" data-key="bmi">
+        <label>BMI</label>
+        <div class="subs pl-4">
+            <div class="my-3 node node-level-2" data-key="bmi__has_one">
+                <label>Do you currently have one at home?</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__has_one" type="radio" value="YES" class="mr-1">
+                        <span>Yes</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__has_one" type="radio" value="NO" class="mr-1">
+                        <span>No</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__has_one" type="radio" value="UNKNOWN" class="mr-1">
+                        <span>Unknown</span>
+                    </label>
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__has_one_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+                <div class="subs pl-4">
+                    <div class="my-3 node node-level-4" data-key="bmi__has_one__confirmed_will_discontinue_current">
+                        <label>If yes, can you please discontinue use of that when you receive the one we send you?</label>
+                        <div class="d-flex align-items-center">
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__has_one__confirmed_will_discontinue_current" type="radio" value="YES" class="mr-1">
+                                <span>Yes</span>
+                            </label>
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__has_one__confirmed_will_discontinue_current" type="radio" value="NO" class="mr-1">
+                                <span>No</span>
+                            </label>
+                            <label class="d-inline-flex align-items-center my-0 mr-3">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__has_one__confirmed_will_discontinue_current" type="radio" value="UNKNOWN" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__has_one__confirmed_will_discontinue_current_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="bmi__current">
+                <label>What is your current:</label>
+                <div class="subs pl-4">
+                    <div class="my-3 node node-level-4" data-key="bmi__current__height_in_inches">
+                        <label>Height in inches?</label>
+                        <div class="d-flex align-items-center">
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__current__height_in_inches" type="text" class="form-control form-control-sm" placeholder="Answer">
+                            <label class="d-inline-flex align-items-center my-0 ml-3 mr-2">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__current__height_in_inches" type="checkbox" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__current__height_in_inches_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                    <div class="my-3 node node-level-4" data-key="bmi__current__weight_in_pounds">
+                        <label>Weight in pounds?</label>
+                        <div class="d-flex align-items-center">
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__current__weight_in_pounds" type="text" class="form-control form-control-sm" placeholder="Answer">
+                            <label class="d-inline-flex align-items-center my-0 ml-3 mr-2">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__current__weight_in_pounds" type="checkbox" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__current__weight_in_pounds_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                    <div class="my-3 node node-level-4" data-key="bmi__current__waistline_in_inches">
+                        <label>Waistline in inches?</label>
+                        <div class="d-flex align-items-center">
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__current__waistline_in_inches" type="text" class="form-control form-control-sm" placeholder="Answer">
+                            <label class="d-inline-flex align-items-center my-0 ml-3 mr-2">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__current__waistline_in_inches" type="checkbox" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__current__waistline_in_inches_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                    <div class="my-3 node node-level-4" data-key="bmi__current__body_fat_percent">
+                        <label>Body fat %?</label>
+                        <div class="d-flex align-items-center">
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__current__body_fat_percent" type="text" class="form-control form-control-sm" placeholder="Answer">
+                            <label class="d-inline-flex align-items-center my-0 ml-3 mr-2">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__current__body_fat_percent" type="checkbox" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__current__body_fat_percent_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="bmi__at_20_years_old">
+                <label>When you were 20 years old, what was your:</label>
+                <div class="subs pl-4">
+                    <div class="my-3 node node-level-4" data-key="bmi__at_20_years_old__weight_in_pounds">
+                        <label>Weight in pounds?</label>
+                        <div class="d-flex align-items-center">
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__at_20_years_old__weight_in_pounds" type="text" class="form-control form-control-sm" placeholder="Answer">
+                            <label class="d-inline-flex align-items-center my-0 ml-3 mr-2">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__at_20_years_old__weight_in_pounds" type="checkbox" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__at_20_years_old__weight_in_pounds_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                    <div class="my-3 node node-level-4" data-key="bmi__at_20_years_old__waistline_in_inches">
+                        <label>Waistline in inches?</label>
+                        <div class="d-flex align-items-center">
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__at_20_years_old__waistline_in_inches" type="text" class="form-control form-control-sm" placeholder="Answer">
+                            <label class="d-inline-flex align-items-center my-0 ml-3 mr-2">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__at_20_years_old__waistline_in_inches" type="checkbox" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__at_20_years_old__waistline_in_inches_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                    <div class="my-3 node node-level-4" data-key="bmi__at_20_years_old__height_in_inches">
+                        <label>Height in inches?</label>
+                        <div class="d-flex align-items-center">
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__at_20_years_old__height_in_inches" type="text" class="form-control form-control-sm" placeholder="Answer">
+                            <label class="d-inline-flex align-items-center my-0 ml-3 mr-2">
+                                <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__at_20_years_old__height_in_inches" type="checkbox" class="mr-1">
+                                <span>Unknown</span>
+                            </label>
+                            <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__at_20_years_old__height_in_inches_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                        </div>
+                    </div>
+
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="bmi__weight_goal_today">
+                <label>Personal weight goal today</label>
+                <div class="d-flex align-items-center">
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__weight_goal_today" type="text" class="form-control form-control-sm" placeholder="Answer">
+                    <label class="d-inline-flex align-items-center my-0 ml-3 mr-2">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__weight_goal_today" type="checkbox" class="mr-1">
+                        <span>Unknown</span>
+                    </label>
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__weight_goal_today_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="bmi__barriers_to_exercise">
+                <label>Do you currently have any conditions, such as arthritis or joint pain, that limit your ability to exercise?</label>
+                <div class="d-flex align-items-center">
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__barriers_to_exercise" type="text" class="form-control form-control-sm mr-2" placeholder="Answer">
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="bmi__barriers_to_exercise_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+            </div>
+
+        </div>
+    </div>
+
+    <div class="my-3 node node-level-0" data-key="current_focus_areas">
+        <label>As you know, you get three things with this program: 1) dedicated NP, 2) 24/7 access to the hotline, and 3) self-monitoring kit. What conditions or health goals do you have that you would like to see improve by participating in this program?</label>
+        <div class="mt-3">
+            <label class="d-flex align-items-center mb-1 mr-2">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="current_focus_areas[]" value="High Blood Pressure" type="checkbox" class="mr-1">
+                <span>High Blood Pressure</span>
+            </label>
+            <label class="d-flex align-items-center mb-1 mr-2">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="current_focus_areas[]" value="Heart Disease" type="checkbox" class="mr-1">
+                <span>Heart Disease</span>
+            </label>
+            <label class="d-flex align-items-center mb-1 mr-2">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="current_focus_areas[]" value="Diabetes" type="checkbox" class="mr-1">
+                <span>Diabetes</span>
+            </label>
+            <label class="d-flex align-items-center mb-1 mr-2">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="current_focus_areas[]" value="Chronic Lung Disease or COPD" type="checkbox" class="mr-1">
+                <span>Chronic Lung Disease or COPD</span>
+            </label>
+            <label class="d-flex align-items-center mb-1 mr-2">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="current_focus_areas[]" value="High Cholesterol" type="checkbox" class="mr-1">
+                <span>High Cholesterol</span>
+            </label>
+            <label class="d-flex align-items-center mb-1 mr-2">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="current_focus_areas[]" value="Heart Failure" type="checkbox" class="mr-1">
+                <span>Heart Failure</span>
+            </label>
+            <label class="d-flex align-items-center mb-1 mr-2">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="current_focus_areas[]" value="Atherosclerotic Disease ('Clogged Artery')" type="checkbox" class="mr-1">
+                <span>Atherosclerotic Disease ('Clogged Artery')</span>
+            </label>
+            <label class="d-flex align-items-center mb-1 mr-2">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="current_focus_areas[]" value="Cancer" type="checkbox" class="mr-1">
+                <span>Cancer</span>
+            </label>
+            <label class="d-flex align-items-center mb-1 mr-2">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="current_focus_areas[]" value="Stroke" type="checkbox" class="mr-1">
+                <span>Stroke</span>
+            </label>
+            <label class="d-flex align-items-center mb-1 mr-2">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="current_focus_areas[]" value="Alzheimer's" type="checkbox" class="mr-1">
+                <span>Alzheimer's</span>
+            </label>
+            <label class="d-flex align-items-center mb-1 mr-2">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="current_focus_areas[]" value="Diabetes" type="checkbox" class="mr-1">
+                <span>Diabetes</span>
+            </label>
+            <label class="d-flex align-items-center mb-1 mr-2">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="current_focus_areas[]" value="Kidney Disease" type="checkbox" class="mr-1">
+                <span>Kidney Disease</span>
+            </label>
+            <input onchange="onGemVChange_{{ $formID }}(this)" name="current_focus_areas_other" type="text" class="form-control form-control-sm my-3" placeholder="Other">
+        </div>
+    </div>
+
+    <div class="my-3 node node-level-0" data-key="consent">
+        <label>Consent:</label>
+        <div class="subs pl-4">
+            <div class="my-3 node node-level-2" data-key="consent__to_be_treated_and_use_equipment_as_directed">
+                <label>Do you agree to be treated for the above <span field="current_focus_areas"></span> by our board-certified nurse practitioners using self-monitoring equipment as directed for safety purposes - and do you understand that improper use of the equipment may cause false readings and possible harm?</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="consent__to_be_treated_and_use_equipment_as_directed" type="radio" value="ACCEPT" class="mr-1">
+                        <span>Accept</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="consent__to_be_treated_and_use_equipment_as_directed" type="radio" value="REJECT" class="mr-1">
+                        <span>Reject</span>
+                    </label>
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="consent__np_to_do_consult">
+                <label>I have to transfer this call over to the on call NP, who will conduct an initial consultation and sign the equipment order.</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="consent__np_to_do_consult" type="radio" value="ACCEPT" class="mr-1">
+                        <span>Accept</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="consent__np_to_do_consult" type="radio" value="REJECT" class="mr-1">
+                        <span>Reject</span>
+                    </label>
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="consent__np_will_be_poc">
+                <label>She'll be your dedicated point of contact here.</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="consent__np_will_be_poc" type="radio" value="ACCEPT" class="mr-1">
+                        <span>Accept</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="consent__np_will_be_poc" type="radio" value="REJECT" class="mr-1">
+                        <span>Reject</span>
+                    </label>
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="consent__confirm_ox_follow_up">
+                <label>As we discussed earlier, once you receive the oxygen meter, your dedicated NP will follow up again in a few days, it can be simply over the phone or video call if needed, to get a baseline resting and active oxygen reading. Number to call: <span field="blood_ox__o2_and_activity__baseline_o2_assessment__best_number_to_call"></span>, Time to call: <span field="blood_ox__o2_and_activity__baseline_o2_assessment__best_time_to_call"></span>.</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="consent__confirm_ox_follow_up" type="radio" value="ACCEPT" class="mr-1">
+                        <span>Accept</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="consent__confirm_ox_follow_up" type="radio" value="REJECT" class="mr-1">
+                        <span>Reject</span>
+                    </label>
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="consent__monthly_follow_up">
+                <label>After you are set up, your dedicated NP is required to call you monthly to make sure that you are okay and that the equipment is working properly.</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="consent__monthly_follow_up" type="radio" value="ACCEPT" class="mr-1">
+                        <span>Accept</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="consent__monthly_follow_up" type="radio" value="REJECT" class="mr-1">
+                        <span>Reject</span>
+                    </label>
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="consent__package">
+                <label>The equipment will come in two packages. First the temperature gun and oxygen meter. Then when we have confirmation that you successfully received the first package and got your baseline oxygen measurement, we will send out the second package which contains the BP cuff and weight scale.</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="consent__package" type="radio" value="ACCEPT" class="mr-1">
+                        <span>Accept</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="consent__package" type="radio" value="REJECT" class="mr-1">
+                        <span>Reject</span>
+                    </label>
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="consent__video_call">
+                <label>This first call with the NP, to sign the order, has to be a video call.</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="consent__video_call" type="radio" value="ACCEPT" class="mr-1">
+                        <span>Accept</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="consent__video_call" type="radio" value="REJECT" class="mr-1">
+                        <span>Reject</span>
+                    </label>
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="consent__later_phone_call">
+                <label>This is the only time a video call is required - if you need anything in the future it can be over a normal phone call.</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="consent__later_phone_call" type="radio" value="ACCEPT" class="mr-1">
+                        <span>Accept</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="consent__later_phone_call" type="radio" value="REJECT" class="mr-1">
+                        <span>Reject</span>
+                    </label>
+                </div>
+            </div>
+
+        </div>
+    </div>
+
+    <div class="my-3 node node-level-0" data-key="ever_had_a_video_call_with_hcp">
+        <label>Have you ever had a video call with one of your other doctors before?</label>
+        <div class="d-flex align-items-center">
+            <label class="d-inline-flex align-items-center my-0 mr-3">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="ever_had_a_video_call_with_hcp" type="radio" value="YES" class="mr-1">
+                <span>Yes</span>
+            </label>
+            <label class="d-inline-flex align-items-center my-0 mr-3">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="ever_had_a_video_call_with_hcp" type="radio" value="NO" class="mr-1">
+                <span>No</span>
+            </label>
+            <label class="d-inline-flex align-items-center my-0 mr-3">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="ever_had_a_video_call_with_hcp" type="radio" value="UNKNOWN" class="mr-1">
+                <span>Unknown</span>
+            </label>
+            <input onchange="onGemVChange_{{ $formID }}(this)" name="ever_had_a_video_call_with_hcp_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+        </div>
+        <div class="subs pl-4">
+            <div class="my-3 node node-level-2" data-key="ever_had_a_video_call_with_hcp__how_did_you_do_it">
+                <label>How did you do it?</label>
+                <div class="d-flex align-items-center">
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="ever_had_a_video_call_with_hcp__how_did_you_do_it" type="text" class="form-control form-control-sm mr-2" placeholder="Answer">
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="ever_had_a_video_call_with_hcp__how_did_you_do_it_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="ever_had_a_video_call_with_hcp__how_did_you_like_it">
+                <label>How did you like it?</label>
+                <div class="d-flex align-items-center">
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="ever_had_a_video_call_with_hcp__how_did_you_like_it" type="text" class="form-control form-control-sm mr-2" placeholder="Answer">
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="ever_had_a_video_call_with_hcp__how_did_you_like_it_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+            </div>
+
+        </div>
+    </div>
+
+    <div class="my-3 node node-level-0" data-key="mobile_phone">
+        <label>What kind of cell phone do you have?</label>
+        <div class="d-flex align-items-center">
+            <label class="d-inline-flex align-items-center my-0 mr-3">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="mobile_phone" type="radio" value="YES" class="mr-1">
+                <span>Yes</span>
+            </label>
+            <label class="d-inline-flex align-items-center my-0 mr-3">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="mobile_phone" type="radio" value="NO" class="mr-1">
+                <span>No</span>
+            </label>
+            <label class="d-inline-flex align-items-center my-0 mr-3">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="mobile_phone" type="radio" value="UNKNOWN" class="mr-1">
+                <span>Unknown</span>
+            </label>
+            <input onchange="onGemVChange_{{ $formID }}(this)" name="mobile_phone_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+        </div>
+        <div class="subs pl-4">
+            <div class="my-3 node node-level-2" data-key="mobile_phone__type">
+                <label>Type of phone:</label>
+                <div class="d-flex align-items-center">
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="mobile_phone__type" type="text" class="form-control form-control-sm mr-2" placeholder="Answer">
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="mobile_phone__type_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="mobile_phone__ever_done_video_call_with_phone">
+                <label>Have you ever done a video call with your phone before?</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="mobile_phone__ever_done_video_call_with_phone" type="radio" value="YES" class="mr-1">
+                        <span>Yes</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="mobile_phone__ever_done_video_call_with_phone" type="radio" value="NO" class="mr-1">
+                        <span>No</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="mobile_phone__ever_done_video_call_with_phone" type="radio" value="UNKNOWN" class="mr-1">
+                        <span>Unknown</span>
+                    </label>
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="mobile_phone__ever_done_video_call_with_phone_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+            </div>
+
+        </div>
+    </div>
+
+    <div class="my-3 node node-level-0" data-key="video_call_now">
+        <label>Can we do the video call now?</label>
+        <div class="d-flex align-items-center">
+            <label class="d-inline-flex align-items-center my-0 mr-3">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="video_call_now" type="radio" value="YES" class="mr-1">
+                <span>Yes</span>
+            </label>
+            <label class="d-inline-flex align-items-center my-0 mr-3">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="video_call_now" type="radio" value="NO" class="mr-1">
+                <span>No</span>
+            </label>
+            <label class="d-inline-flex align-items-center my-0 mr-3">
+                <input onchange="onGemVChange_{{ $formID }}(this)" name="video_call_now" type="radio" value="UNKNOWN" class="mr-1">
+                <span>Unknown</span>
+            </label>
+            <input onchange="onGemVChange_{{ $formID }}(this)" name="video_call_now_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+        </div>
+        <div class="subs pl-4">
+            <div class="my-3 node node-level-2" data-key="video_call_now__get_on_call_np">
+                <label>If yes, I can bring the on-call NP on the line and they'll get you all set up. OK?</label>
+                <div class="d-flex align-items-center">
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="video_call_now__get_on_call_np" type="radio" value="ACCEPT" class="mr-1">
+                        <span>Accept</span>
+                    </label>
+                    <label class="d-inline-flex align-items-center my-0 mr-3">
+                        <input onchange="onGemVChange_{{ $formID }}(this)" name="video_call_now__get_on_call_np" type="radio" value="REJECT" class="mr-1">
+                        <span>Reject</span>
+                    </label>
+                </div>
+            </div>
+
+            <div class="my-3 node node-level-2" data-key="video_call_now__when">
+                <label>If not, when is a good time?</label>
+                <div class="d-flex align-items-center">
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="video_call_now__when" type="text" class="form-control form-control-sm mr-2" placeholder="Answer">
+                    <input onchange="onGemVChange_{{ $formID }}(this)" name="video_call_now__when_memo" type="text" class="form-control form-control-sm" placeholder="Memo">
+                </div>
+            </div>
+
+        </div>
+    </div>
+
+    </div>
+
+
+    <div class="form-group m-0 d-flex">
+        <button class="btn btn-sm btn-primary mr-2">Submit</button>
+        <button class="btn btn-sm btn-default border" onclick="return cancelForm_NoteSection_{{ $formID }}(this)">Cancel</button>
+    </div>
+</form>
+<script>
+    function submitForm_NoteSection_{{ $formID }}(_form) {
+        showMask();
+        $.post(_form.action, $(_form).serialize(), function(_data) {
+            fastReload();
+        });
+        return false;
+    }
+    function cancelForm_NoteSection_{{ $formID }}(_trigger) {
+        $(_trigger).closest('.note-section').toggleClass('edit');
+        return false;
+    }
+    function onGemVChange_{{ $formID }}(_field) {
+        let name = _field.name, span = $('span[field="' + _field.name + '"]');
+        if(span.length) {
+            span.text(_field.value);
+        }
+        else {
+            name = _field.name.replace('[]', '');
+            span = $('span[field="' + name + '"]');
+            if(span.length) {
+                let value = [];
+                $('[name="' + _field.name + '"]').each(function() {
+                    if(this.checked) value.push(this.value);
+                });
+                span.text(value.join(', '));
+            }
+        }
+    }
+</script>

+ 2 - 0
storage/sections/new-patient-intake/processor.php

@@ -0,0 +1,2 @@
+<?php
+$newContentData = $request->all();

+ 1 - 0
storage/sections/new-patient-intake/summary.php

@@ -0,0 +1 @@
+<div><?= dump($newContentData['value']) ?></div>