<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
/**
* CardiovascularScore
*
* @ORM\Table(
* name="cardiovascular_score",
* indexes={
* @ORM\Index(name="systolic_blood_presure_id", columns={"systolic_blood_presure_id"}),
* @ORM\Index(name="gender", columns={"gender"}),
* @ORM\Index(name="smoking", columns={"smoking"}),
* @ORM\Index(name="age_category_id", columns={"age_category_id"}),
* @ORM\Index(name="non_hdl_cholesterol", columns={"non_hdl_cholesterol_id"}),
* @ORM\Index(name="cvd_risk_id", columns={"cvd_risk_id"}),
* @ORM\Index(name="score_risk_id", columns={"score_risk_id"}),
* @ORM\Index(name="removed", columns={"removed"})
* }
* )
* @ORM\Entity(repositoryClass="App\Repository\CardiovascularScoreRepository")
*/
class CardiovascularScore
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var int
*
* @ORM\Column(
* name="gender",
* type="smallint",
* options={"default": "1", "comment": "1 - women, 2 - men"}
* )
*/
private $gender;
/**
* @var bool
* @ORM\Column(
* name="smoking",
* type="boolean",
* options={"default": "0", "comment": "1 - true, 0 - false"}
* )
*/
private $smoking;
/**
* @var int
*
* @ORM\Column(name="systolic_blood_presure_id", type="integer")
*/
private $systolicBloodPresureId;
/**
* @var int
*
* @ORM\Column(name="age_category_id", type="integer", options={"unsigned": true})
*/
private $ageCategoryId;
/**
* @var int
*
* @ORM\Column(name="non_hdl_cholesterol_id", type="integer", options={"unsigned": true})
*/
private $nonHdlCholesterolId;
/**
* @var int
*
* @ORM\Column(name="cvd_risk_id", type="integer", options={"unsigned": true})
*/
private $cvdRiskId;
/**
* @var int
*
* @ORM\Column(name="score", type="integer")
* @Groups({"cvd_score:read"})
*/
private $score;
/**
* @var int
*
* @ORM\Column(name="score_risk_id", type="integer", options={"unsigned": true})
*/
private $scoreRiskId;
/**
* @var bool
*
* @ORM\Column(name="removed", type="boolean")
*/
private $removed;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set gender
*
* @param integer $gender
*
* @return CardiovascularScore
*/
public function setGender($gender)
{
$this->gender = $gender;
return $this;
}
/**
* Get gender
*
* @return int
*/
public function getGender()
{
return $this->gender;
}
/**
* Set smoking
*
* @param boolean $smoking
*
* @return CardiovascularScore
*/
public function setSmoking($smoking)
{
$this->smoking = $smoking;
return $this;
}
/**
* Get smoking
*
* @return bool
*/
public function getSmoking()
{
return $this->smoking;
}
/**
* Set systolicBloodPresureId
*
* @param integer $systolicBloodPresureId
*
* @return CardiovascularScore
*/
public function setSystolicBloodPresureId($systolicBloodPresureId)
{
$this->systolicBloodPresureId = $systolicBloodPresureId;
return $this;
}
/**
* Get systolicBloodPresureId
*
* @return int
*/
public function getSystolicBloodPresureId()
{
return $this->systolicBloodPresureId;
}
/**
* Set ageCategoryId
*
* @param integer $ageCategoryId
*
* @return CardiovascularScore
*/
public function setAgeCategoryId($ageCategoryId)
{
$this->ageCategoryId = $ageCategoryId;
return $this;
}
/**
* Get ageCategoryId
*
* @return int
*/
public function getAgeCategoryId()
{
return $this->ageCategoryId;
}
/**
* Set nonHdlCholesterol
*
* @param string $nonHdlCholesterol
*
* @return CardiovascularScore
*/
public function setNonHdlCholesterolId($nonHdlCholesterolId)
{
$this->nonHdlCholesterolId = $nonHdlCholesterolId;
return $this;
}
/**
* Get nonHdlCholesterol
*
* @return string
*/
public function getNonHdlCholesterolId()
{
return $this->nonHdlCholesterolId;
}
/**
* Set cvdRiskId
*
* @param integer $cvdRiskId
*
* @return CardiovascularScore
*/
public function setCvdRiskId($cvdRiskId)
{
$this->cvdRiskId = $cvdRiskId;
return $this;
}
/**
* Get cvdRiskId
*
* @return int
*/
public function getCvdRiskId()
{
return $this->cvdRiskId;
}
/**
* Set score
*
* @param integer $score
*
* @return CardiovascularScore
*/
public function setScore($score)
{
$this->score = $score;
return $this;
}
/**
* Get score
*
* @return int
*/
public function getScore()
{
return $this->score;
}
/**
* Set scoreRiskId
*
* @param integer $scoreRiskId
*
* @return CardiovascularScore
*/
public function setScoreRiskId($scoreRiskId)
{
$this->scoreRiskId = $scoreRiskId;
return $this;
}
/**
* Get scoreRiskId
*
* @return int
*/
public function getScoreRiskId()
{
return $this->scoreRiskId;
}
/**
* @return bool
*/
public function getRemoved(): bool
{
return $this->removed;
}
/**
* @param bool $removed
*/
public function setRemoved(bool $removed): void
{
$this->removed = $removed;
}
}