public function getInfoData($json = true)
{
$res = array('id' => $this->id, 'patient_name' => $this->patient->getFullName(), 'current_queue_name' => $this->current_queue->name, 'current_queue_id' => $this->current_queue->id, 'patient_id' => $this->patient->id);
if ($json) {
return \CJSON::encode($res);
}
return $res;
}