<?php

$canvasData = [];
if ($patient->canvas_data) {
    $canvasData = json_decode($patient->canvas_data, true);
    if (isset($canvasData["vitals"])) {
        $canvasData = $canvasData["vitals"];
    }
}
$contentData = $canvasData;
