<?php
namespace App\Entity\Fielpet\View;
use App\Entity\Fielpet\View\Siniestroview;
use App\Entity\Fielpet\View\Veterinario;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* VetFormView
*
* @ORM\Table(name="vetform_view")
* @ORM\Entity
* @ORM\Entity(repositoryClass="App\Repository\Fielpet\View\VetformviewRepository")
*/
class VetFormView
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="SEQUENCE")
* @ORM\SequenceGenerator(sequenceName="VetForm_id_seq", allocationSize=1, initialValue=1)
*/
private $id;
/**
* @var string|null
*
* @ORM\Column(name="diagnostico", type="string", length=255, nullable=true)
*/
private $diagnostico;
/**
* @var string|null
*
* @ORM\Column(name="fecha_diagnostico", type="string", length=255, nullable=true)
*/
private $fechaDiagnostico;
/**
* @var bool|null
*
* @ORM\Column(name="enfermedad_base", type="boolean", nullable=true)
*/
private $enfermedadBase;
/**
* @var string|null
*
* @ORM\Column(name="enfermedad_motivo", type="string", length=255, nullable=true)
*/
private $enfermedadMotivo;
/**
* @var bool|null
*
* @ORM\Column(name="congenito", type="boolean", nullable=true)
*/
private $congenito;
/**
* @var bool|null
*
* @ORM\Column(name="tratamiento_por_vida", type="boolean", nullable=true)
*/
private $tratamientoPorVida;
/**
* @var string|null
*
* @ORM\Column(name="estado", type="string", length=255, nullable=true)
*/
private $estado;
/**
* @var \DateTime|null
*
* @ORM\Column(name="fecha_atencion_segun_cliente", type="custom_datetimetz", nullable=true)
*/
private $fechaatencionSegunCliente;
/**
* @var \DateTime
*
* @ORM\Column(name="created_at", type="custom_datetimetz", nullable=false)
*/
private $createdAt;
/**
* @var \DateTime
*
* @ORM\Column(name="updated_at", type="custom_datetimetz", nullable=false)
*/
private $updatedAt;
// /**
// * @var string|null
// *
// * @ORM\Column(name="motivo_consulta", type="string", length=255, nullable=true)
// */
// private $motivoConsulta;
/**
* @var SiniestroView
*
* @ORM\ManyToOne(targetEntity="SiniestroView")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="siniestro_id", referencedColumnName="id")
* })
*/
private $siniestroId;
/**
* @var VeterinarioView
*
* @ORM\ManyToOne(targetEntity="VeterinarioView")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="veterinario_id", referencedColumnName="id")
* })
*/
private $veterinarioId;
/**
* @ORM\OneToMany(targetEntity="ConsultaView", mappedBy="vetformId", cascade={"persist"})
**/
private $consultas;
/**
* @ORM\OneToMany(targetEntity="EstudioMascotaView", mappedBy="vetformId", cascade={"persist"})
**/
private $estudios;
/**
* @ORM\OneToMany(targetEntity="SintomaMascotaView", mappedBy="vetformId", cascade={"persist"})
**/
private $sintomas;
/**
* @ORM\OneToMany(targetEntity="CirugiaMascotaView", mappedBy="vetformId", cascade={"persist"})
**/
private $cirugias;
/**
* @ORM\OneToMany(targetEntity="InternacionMascotaView", mappedBy="vetformId", cascade={"persist"})
**/
private $internaciones;
/**
* @ORM\OneToMany(targetEntity="VetformMedicamentosView", mappedBy="vetformId", cascade={"persist"})
**/
private $medicamentos;
/**
* @ORM\OneToMany(targetEntity="RecomendacionMascotaView", mappedBy="vetformId", cascade={"persist"})
**/
private $recomendaciones;
/**
* @ORM\OneToMany(targetEntity="FarmacologiaMascotaView", mappedBy="vetformId", cascade={"persist"})
**/
private $farmacologia;
/**
* @ORM\OneToMany(targetEntity="FarmacologiamascotacustomView", mappedBy="vetformid", cascade={"persist"})
**/
private $farmacologiaCustom;
/**
* @ORM\OneToMany(targetEntity="PracticaMascotaView", mappedBy="vetFormId")
* @ORM\OrderBy({"createdAt" = "DESC"})
*/
private $practicas;
private $medicamentosCustom;
public function __construct()
{
$this->consultas = new \Doctrine\Common\Collections\ArrayCollection();
$this->estudios = new \Doctrine\Common\Collections\ArrayCollection();
$this->sintomas = new \Doctrine\Common\Collections\ArrayCollection();
$this->cirugias = new \Doctrine\Common\Collections\ArrayCollection();
$this->internaciones = new \Doctrine\Common\Collections\ArrayCollection();
$this->medicamentos = new \Doctrine\Common\Collections\ArrayCollection();
$this->recomendaciones = new \Doctrine\Common\Collections\ArrayCollection();
$this->farmacologia = new \Doctrine\Common\Collections\ArrayCollection();
$this->farmacologiaCustom = new \Doctrine\Common\Collections\ArrayCollection();
$this->practicas = new ArrayCollection();
$this->medicamentosCustom = new \Doctrine\Common\Collections\ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getDiagnostico(): ?string
{
return $this->diagnostico;
}
public function setDiagnostico(?string $diagnostico): static
{
$this->diagnostico = $diagnostico;
return $this;
}
public function getFechaDiagnostico(): ?string
{
return $this->fechaDiagnostico;
}
public function setFechaDiagnostico(?string $fechaDiagnostico): static
{
$this->fechaDiagnostico = $fechaDiagnostico;
return $this;
}
public function isEnfermedadBase(): ?bool
{
return $this->enfermedadBase;
}
public function setEnfermedadBase(?bool $enfermedadBase): static
{
$this->enfermedadBase = $enfermedadBase;
return $this;
}
public function getEnfermedadMotivo(): ?string
{
return $this->enfermedadMotivo;
}
public function setEnfermedadMotivo(?string $enfermedadMotivo): static
{
$this->enfermedadMotivo = $enfermedadMotivo;
return $this;
}
public function isCongenito(): ?bool
{
return $this->congenito;
}
public function setCongenito(?bool $congenito): static
{
$this->congenito = $congenito;
return $this;
}
public function isTratamientoPorVida(): ?bool
{
return $this->tratamientoPorVida;
}
public function setTratamientoPorVida(?bool $tratamientoPorVida): static
{
$this->tratamientoPorVida = $tratamientoPorVida;
return $this;
}
public function getEstado(): ?string
{
return $this->estado;
}
public function setEstado(?string $estado): static
{
$this->estado = $estado;
return $this;
}
public function getFechaatencionSegunCliente()
{
return $this->fechaatencionSegunCliente;
}
public function setFechaatencionSegunCliente($fechaatencionSegunCliente): static
{
$this->fechaatencionSegunCliente = $fechaatencionSegunCliente;
return $this;
}
public function getCreatedAt()
{
return $this->createdAt;
}
public function setCreatedAt($createdAt): static
{
$this->createdAt = $createdAt;
return $this;
}
public function getUpdatedAt()
{
return $this->updatedAt;
}
public function setUpdatedAt($updatedAt): static
{
$this->updatedAt = $updatedAt;
return $this;
}
// public function getMotivoConsulta(): ?string
// {
// return $this->motivoConsulta;
// }
// public function setMotivoConsulta(?string $motivoConsulta): static
// {
// $this->motivoConsulta = $motivoConsulta;
// return $this;
// }
public function getSiniestroid(): ?SiniestroView
{
return $this->siniestroId;
}
public function setSiniestroId(?Siniestroview $siniestroId): static
{
$this->siniestroId = $siniestroId;
return $this;
}
public function getVeterinarioId(): ?VeterinarioView
{
return $this->veterinarioId;
}
public function setVeterinarioId(?VeterinarioView $veterinarioId): static
{
$this->veterinarioId = $veterinarioId;
return $this;
}
public function getConsultas(): Collection
{
return $this->consultas;
}
public function setConsultas(Collection $consultas): void
{
$this->consultas = $consultas;
}
public function addConsulta(ConsultaView $consulta): static
{
if (!$this->consultas->contains($consulta)) {
$this->consultas->add($consulta);
$consulta->setVetformId($this);
}
return $this;
}
public function removeConsulta(ConsultaView $consulta): static
{
if ($this->consultas->removeElement($consulta)) {
// set the owning side to null (unless already changed)
if ($consulta->getVetformId() === $this) {
$consulta->setVetformId(null);
}
}
return $this;
}
/**
* @return Collection<int, EstudioMascotaView>
*/
public function getEstudios(): Collection
{
return $this->estudios;
}
public function addEstudio(EstudioMascotaView $estudio): static
{
if (!$this->estudios->contains($estudio)) {
$this->estudios->add($estudio);
$estudio->setVetformId($this);
}
return $this;
}
public function removeEstudio(EstudioMascotaView $estudio): static
{
if ($this->estudios->removeElement($estudio)) {
// set the owning side to null (unless already changed)
if ($estudio->getVetformId() === $this) {
$estudio->setVetformId(null);
}
}
return $this;
}
/**
* @return Collection
*/
public function getSintomas(): Collection
{
return $this->sintomas;
}
/**
* @param ArrayCollection $sintomas
*/
public function setSintomas(Collection $sintomas): void
{
$this->sintomas = $sintomas;
}
/**
* @return Collection
*/
public function getCirugias(): Collection
{
return $this->cirugias;
}
/**
* @param Collection $cirugias
*/
public function setCirugias(Collection $cirugias): void
{
$this->cirugias = $cirugias;
}
/**
* @return Collection
*/
public function getInternaciones(): Collection
{
return $this->internaciones;
}
/**
* @param ArrayCollection $internaciones
*/
public function setInternaciones(Collection $internaciones): void
{
$this->internaciones = $internaciones;
}
/**
* @return ArrayCollection
*/
public function getMedicamentos(): Collection
{
return $this->medicamentos;
}
/**
* @param ArrayCollection $medicamentos
*/
public function setMedicamentos(Collection $medicamentos): void
{
$this->medicamentos = $medicamentos;
}
/**
* @return ArrayCollection
*/
public function getRecomendaciones(): Collection
{
return $this->recomendaciones;
}
/**
* @param ArrayCollection $recomendaciones
*/
public function setRecomendaciones(Collection $recomendaciones): void
{
$this->recomendaciones = $recomendaciones;
}
public function getFarmacologia(): Collection
{
return $this->farmacologia;
}
public function getFarmacologiaCustom(): Collection
{
return $this->farmacologiaCustom;
}
/**
* @return Collection
*/
public function getPracticas(): Collection
{
return $this->practicas;
}
/**
* @param ArrayCollection $practicas
*/
public function setPracticas(Collection $practicas): void
{
$this->practicas = $practicas;
}
public function getMedicamentosCustom(): \Doctrine\Common\Collections\Collection
{
if ($this->medicamentosCustom === null) {
$this->medicamentosCustom = new \Doctrine\Common\Collections\ArrayCollection();
}
return $this->medicamentosCustom;
}
public function setMedicamentosCustom(\Doctrine\Common\Collections\Collection $medicamentosCustom): void
{
$this->medicamentosCustom = $medicamentosCustom;
}
}