src/Entity/Fielpet/View/VetFormView.php line 19

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Fielpet\View;
  3. use App\Entity\Fielpet\View\Siniestroview;
  4. use App\Entity\Fielpet\View\Veterinario;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. use Doctrine\ORM\Mapping as ORM;
  8. /**
  9. * VetFormView
  10. *
  11. * @ORM\Table(name="vetform_view")
  12. * @ORM\Entity
  13. * @ORM\Entity(repositoryClass="App\Repository\Fielpet\View\VetformviewRepository")
  14. */
  15. class VetFormView
  16. {
  17. /**
  18. * @var int
  19. *
  20. * @ORM\Column(name="id", type="integer", nullable=false)
  21. * @ORM\Id
  22. * @ORM\GeneratedValue(strategy="SEQUENCE")
  23. * @ORM\SequenceGenerator(sequenceName="VetForm_id_seq", allocationSize=1, initialValue=1)
  24. */
  25. private $id;
  26. /**
  27. * @var string|null
  28. *
  29. * @ORM\Column(name="diagnostico", type="string", length=255, nullable=true)
  30. */
  31. private $diagnostico;
  32. /**
  33. * @var string|null
  34. *
  35. * @ORM\Column(name="fecha_diagnostico", type="string", length=255, nullable=true)
  36. */
  37. private $fechaDiagnostico;
  38. /**
  39. * @var bool|null
  40. *
  41. * @ORM\Column(name="enfermedad_base", type="boolean", nullable=true)
  42. */
  43. private $enfermedadBase;
  44. /**
  45. * @var string|null
  46. *
  47. * @ORM\Column(name="enfermedad_motivo", type="string", length=255, nullable=true)
  48. */
  49. private $enfermedadMotivo;
  50. /**
  51. * @var bool|null
  52. *
  53. * @ORM\Column(name="congenito", type="boolean", nullable=true)
  54. */
  55. private $congenito;
  56. /**
  57. * @var bool|null
  58. *
  59. * @ORM\Column(name="tratamiento_por_vida", type="boolean", nullable=true)
  60. */
  61. private $tratamientoPorVida;
  62. /**
  63. * @var string|null
  64. *
  65. * @ORM\Column(name="estado", type="string", length=255, nullable=true)
  66. */
  67. private $estado;
  68. /**
  69. * @var \DateTime|null
  70. *
  71. * @ORM\Column(name="fecha_atencion_segun_cliente", type="custom_datetimetz", nullable=true)
  72. */
  73. private $fechaatencionSegunCliente;
  74. /**
  75. * @var \DateTime
  76. *
  77. * @ORM\Column(name="created_at", type="custom_datetimetz", nullable=false)
  78. */
  79. private $createdAt;
  80. /**
  81. * @var \DateTime
  82. *
  83. * @ORM\Column(name="updated_at", type="custom_datetimetz", nullable=false)
  84. */
  85. private $updatedAt;
  86. // /**
  87. // * @var string|null
  88. // *
  89. // * @ORM\Column(name="motivo_consulta", type="string", length=255, nullable=true)
  90. // */
  91. // private $motivoConsulta;
  92. /**
  93. * @var SiniestroView
  94. *
  95. * @ORM\ManyToOne(targetEntity="SiniestroView")
  96. * @ORM\JoinColumns({
  97. * @ORM\JoinColumn(name="siniestro_id", referencedColumnName="id")
  98. * })
  99. */
  100. private $siniestroId;
  101. /**
  102. * @var VeterinarioView
  103. *
  104. * @ORM\ManyToOne(targetEntity="VeterinarioView")
  105. * @ORM\JoinColumns({
  106. * @ORM\JoinColumn(name="veterinario_id", referencedColumnName="id")
  107. * })
  108. */
  109. private $veterinarioId;
  110. /**
  111. * @ORM\OneToMany(targetEntity="ConsultaView", mappedBy="vetformId", cascade={"persist"})
  112. **/
  113. private $consultas;
  114. /**
  115. * @ORM\OneToMany(targetEntity="EstudioMascotaView", mappedBy="vetformId", cascade={"persist"})
  116. **/
  117. private $estudios;
  118. /**
  119. * @ORM\OneToMany(targetEntity="SintomaMascotaView", mappedBy="vetformId", cascade={"persist"})
  120. **/
  121. private $sintomas;
  122. /**
  123. * @ORM\OneToMany(targetEntity="CirugiaMascotaView", mappedBy="vetformId", cascade={"persist"})
  124. **/
  125. private $cirugias;
  126. /**
  127. * @ORM\OneToMany(targetEntity="InternacionMascotaView", mappedBy="vetformId", cascade={"persist"})
  128. **/
  129. private $internaciones;
  130. /**
  131. * @ORM\OneToMany(targetEntity="VetformMedicamentosView", mappedBy="vetformId", cascade={"persist"})
  132. **/
  133. private $medicamentos;
  134. /**
  135. * @ORM\OneToMany(targetEntity="RecomendacionMascotaView", mappedBy="vetformId", cascade={"persist"})
  136. **/
  137. private $recomendaciones;
  138. /**
  139. * @ORM\OneToMany(targetEntity="FarmacologiaMascotaView", mappedBy="vetformId", cascade={"persist"})
  140. **/
  141. private $farmacologia;
  142. /**
  143. * @ORM\OneToMany(targetEntity="FarmacologiamascotacustomView", mappedBy="vetformid", cascade={"persist"})
  144. **/
  145. private $farmacologiaCustom;
  146. /**
  147. * @ORM\OneToMany(targetEntity="PracticaMascotaView", mappedBy="vetFormId")
  148. * @ORM\OrderBy({"createdAt" = "DESC"})
  149. */
  150. private $practicas;
  151. private $medicamentosCustom;
  152. public function __construct()
  153. {
  154. $this->consultas = new \Doctrine\Common\Collections\ArrayCollection();
  155. $this->estudios = new \Doctrine\Common\Collections\ArrayCollection();
  156. $this->sintomas = new \Doctrine\Common\Collections\ArrayCollection();
  157. $this->cirugias = new \Doctrine\Common\Collections\ArrayCollection();
  158. $this->internaciones = new \Doctrine\Common\Collections\ArrayCollection();
  159. $this->medicamentos = new \Doctrine\Common\Collections\ArrayCollection();
  160. $this->recomendaciones = new \Doctrine\Common\Collections\ArrayCollection();
  161. $this->farmacologia = new \Doctrine\Common\Collections\ArrayCollection();
  162. $this->farmacologiaCustom = new \Doctrine\Common\Collections\ArrayCollection();
  163. $this->practicas = new ArrayCollection();
  164. $this->medicamentosCustom = new \Doctrine\Common\Collections\ArrayCollection();
  165. }
  166. public function getId(): ?int
  167. {
  168. return $this->id;
  169. }
  170. public function getDiagnostico(): ?string
  171. {
  172. return $this->diagnostico;
  173. }
  174. public function setDiagnostico(?string $diagnostico): static
  175. {
  176. $this->diagnostico = $diagnostico;
  177. return $this;
  178. }
  179. public function getFechaDiagnostico(): ?string
  180. {
  181. return $this->fechaDiagnostico;
  182. }
  183. public function setFechaDiagnostico(?string $fechaDiagnostico): static
  184. {
  185. $this->fechaDiagnostico = $fechaDiagnostico;
  186. return $this;
  187. }
  188. public function isEnfermedadBase(): ?bool
  189. {
  190. return $this->enfermedadBase;
  191. }
  192. public function setEnfermedadBase(?bool $enfermedadBase): static
  193. {
  194. $this->enfermedadBase = $enfermedadBase;
  195. return $this;
  196. }
  197. public function getEnfermedadMotivo(): ?string
  198. {
  199. return $this->enfermedadMotivo;
  200. }
  201. public function setEnfermedadMotivo(?string $enfermedadMotivo): static
  202. {
  203. $this->enfermedadMotivo = $enfermedadMotivo;
  204. return $this;
  205. }
  206. public function isCongenito(): ?bool
  207. {
  208. return $this->congenito;
  209. }
  210. public function setCongenito(?bool $congenito): static
  211. {
  212. $this->congenito = $congenito;
  213. return $this;
  214. }
  215. public function isTratamientoPorVida(): ?bool
  216. {
  217. return $this->tratamientoPorVida;
  218. }
  219. public function setTratamientoPorVida(?bool $tratamientoPorVida): static
  220. {
  221. $this->tratamientoPorVida = $tratamientoPorVida;
  222. return $this;
  223. }
  224. public function getEstado(): ?string
  225. {
  226. return $this->estado;
  227. }
  228. public function setEstado(?string $estado): static
  229. {
  230. $this->estado = $estado;
  231. return $this;
  232. }
  233. public function getFechaatencionSegunCliente()
  234. {
  235. return $this->fechaatencionSegunCliente;
  236. }
  237. public function setFechaatencionSegunCliente($fechaatencionSegunCliente): static
  238. {
  239. $this->fechaatencionSegunCliente = $fechaatencionSegunCliente;
  240. return $this;
  241. }
  242. public function getCreatedAt()
  243. {
  244. return $this->createdAt;
  245. }
  246. public function setCreatedAt($createdAt): static
  247. {
  248. $this->createdAt = $createdAt;
  249. return $this;
  250. }
  251. public function getUpdatedAt()
  252. {
  253. return $this->updatedAt;
  254. }
  255. public function setUpdatedAt($updatedAt): static
  256. {
  257. $this->updatedAt = $updatedAt;
  258. return $this;
  259. }
  260. // public function getMotivoConsulta(): ?string
  261. // {
  262. // return $this->motivoConsulta;
  263. // }
  264. // public function setMotivoConsulta(?string $motivoConsulta): static
  265. // {
  266. // $this->motivoConsulta = $motivoConsulta;
  267. // return $this;
  268. // }
  269. public function getSiniestroid(): ?SiniestroView
  270. {
  271. return $this->siniestroId;
  272. }
  273. public function setSiniestroId(?Siniestroview $siniestroId): static
  274. {
  275. $this->siniestroId = $siniestroId;
  276. return $this;
  277. }
  278. public function getVeterinarioId(): ?VeterinarioView
  279. {
  280. return $this->veterinarioId;
  281. }
  282. public function setVeterinarioId(?VeterinarioView $veterinarioId): static
  283. {
  284. $this->veterinarioId = $veterinarioId;
  285. return $this;
  286. }
  287. public function getConsultas(): Collection
  288. {
  289. return $this->consultas;
  290. }
  291. public function setConsultas(Collection $consultas): void
  292. {
  293. $this->consultas = $consultas;
  294. }
  295. public function addConsulta(ConsultaView $consulta): static
  296. {
  297. if (!$this->consultas->contains($consulta)) {
  298. $this->consultas->add($consulta);
  299. $consulta->setVetformId($this);
  300. }
  301. return $this;
  302. }
  303. public function removeConsulta(ConsultaView $consulta): static
  304. {
  305. if ($this->consultas->removeElement($consulta)) {
  306. // set the owning side to null (unless already changed)
  307. if ($consulta->getVetformId() === $this) {
  308. $consulta->setVetformId(null);
  309. }
  310. }
  311. return $this;
  312. }
  313. /**
  314. * @return Collection<int, EstudioMascotaView>
  315. */
  316. public function getEstudios(): Collection
  317. {
  318. return $this->estudios;
  319. }
  320. public function addEstudio(EstudioMascotaView $estudio): static
  321. {
  322. if (!$this->estudios->contains($estudio)) {
  323. $this->estudios->add($estudio);
  324. $estudio->setVetformId($this);
  325. }
  326. return $this;
  327. }
  328. public function removeEstudio(EstudioMascotaView $estudio): static
  329. {
  330. if ($this->estudios->removeElement($estudio)) {
  331. // set the owning side to null (unless already changed)
  332. if ($estudio->getVetformId() === $this) {
  333. $estudio->setVetformId(null);
  334. }
  335. }
  336. return $this;
  337. }
  338. /**
  339. * @return Collection
  340. */
  341. public function getSintomas(): Collection
  342. {
  343. return $this->sintomas;
  344. }
  345. /**
  346. * @param ArrayCollection $sintomas
  347. */
  348. public function setSintomas(Collection $sintomas): void
  349. {
  350. $this->sintomas = $sintomas;
  351. }
  352. /**
  353. * @return Collection
  354. */
  355. public function getCirugias(): Collection
  356. {
  357. return $this->cirugias;
  358. }
  359. /**
  360. * @param Collection $cirugias
  361. */
  362. public function setCirugias(Collection $cirugias): void
  363. {
  364. $this->cirugias = $cirugias;
  365. }
  366. /**
  367. * @return Collection
  368. */
  369. public function getInternaciones(): Collection
  370. {
  371. return $this->internaciones;
  372. }
  373. /**
  374. * @param ArrayCollection $internaciones
  375. */
  376. public function setInternaciones(Collection $internaciones): void
  377. {
  378. $this->internaciones = $internaciones;
  379. }
  380. /**
  381. * @return ArrayCollection
  382. */
  383. public function getMedicamentos(): Collection
  384. {
  385. return $this->medicamentos;
  386. }
  387. /**
  388. * @param ArrayCollection $medicamentos
  389. */
  390. public function setMedicamentos(Collection $medicamentos): void
  391. {
  392. $this->medicamentos = $medicamentos;
  393. }
  394. /**
  395. * @return ArrayCollection
  396. */
  397. public function getRecomendaciones(): Collection
  398. {
  399. return $this->recomendaciones;
  400. }
  401. /**
  402. * @param ArrayCollection $recomendaciones
  403. */
  404. public function setRecomendaciones(Collection $recomendaciones): void
  405. {
  406. $this->recomendaciones = $recomendaciones;
  407. }
  408. public function getFarmacologia(): Collection
  409. {
  410. return $this->farmacologia;
  411. }
  412. public function getFarmacologiaCustom(): Collection
  413. {
  414. return $this->farmacologiaCustom;
  415. }
  416. /**
  417. * @return Collection
  418. */
  419. public function getPracticas(): Collection
  420. {
  421. return $this->practicas;
  422. }
  423. /**
  424. * @param ArrayCollection $practicas
  425. */
  426. public function setPracticas(Collection $practicas): void
  427. {
  428. $this->practicas = $practicas;
  429. }
  430. public function getMedicamentosCustom(): \Doctrine\Common\Collections\Collection
  431. {
  432. if ($this->medicamentosCustom === null) {
  433. $this->medicamentosCustom = new \Doctrine\Common\Collections\ArrayCollection();
  434. }
  435. return $this->medicamentosCustom;
  436. }
  437. public function setMedicamentosCustom(\Doctrine\Common\Collections\Collection $medicamentosCustom): void
  438. {
  439. $this->medicamentosCustom = $medicamentosCustom;
  440. }
  441. }