<?php

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