src/Entity/Estudio.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\EstudioRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use DateTime;
  8. /**
  9.  * @ORM\Entity(repositoryClass=EstudioRepository::class)
  10.  * @ORM\HasLifecycleCallbacks
  11.  */
  12. class Estudio
  13. {
  14.     /**
  15.      * @ORM\Id
  16.      * @ORM\GeneratedValue
  17.      * @ORM\Column(type="integer")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity=HistoriaClinica::class, inversedBy="estudios")
  22.      * @ORM\JoinColumn(nullable=false)
  23.      */
  24.     private $historia;
  25.     /**
  26.      * @ORM\Column(type="text", nullable=true)
  27.      */
  28.     private $hallazgos;
  29.     /**
  30.      * @ORM\Column(type="text", nullable=true)
  31.      */
  32.     private $conclusion;
  33.     /**
  34.      * @ORM\OneToMany(targetEntity=ImagenesEstudio::class, mappedBy="estudio")
  35.      */
  36.     private $imagenesEstudios;
  37.     /**
  38.      * @ORM\Column(type="string", length=50)
  39.      */
  40.     private $ip_crea;
  41.     /**
  42.      * @ORM\Column(type="string", length=50)
  43.      */
  44.     private $ip_modifica;
  45.     /**
  46.      * @ORM\Column(type="integer")
  47.      */
  48.     private $user_crea;
  49.     /**
  50.      * @ORM\Column(type="integer")
  51.      */
  52.     private $user_modifica;
  53.     /**
  54.      * @ORM\Column(type="datetime")
  55.      */
  56.     private $created_at;
  57.     /**
  58.      * @ORM\Column(type="datetime")
  59.      */
  60.     private $updated_at;
  61.     /**
  62.      * @ORM\Column(type="boolean")
  63.      */
  64.     private $estado;
  65.     /**
  66.      * @ORM\ManyToOne(targetEntity=Procedimientos::class, inversedBy="estudios")
  67.      */
  68.     private $procedimiento;
  69.     /**
  70.      * @ORM\OneToMany(targetEntity=Epicrisis::class, mappedBy="estudio")
  71.      */
  72.     private $epicrises;
  73.     
  74.     /**
  75.      * @ORM\Column(type="string", length=255, nullable=true)
  76.      */
  77.     private $archivo;
  78.     
  79.     /**
  80.      * @ORM\Column(type="string", length=255, nullable=true)
  81.      */
  82.     private $procedimiento_realizado;
  83.     /**
  84.      * @ORM\Column(type="boolean", nullable=true)
  85.      */
  86.     private $cirugia;
  87.     /**
  88.      * @ORM\Column(type="string", length=255, nullable=true)
  89.      */
  90.     private $solicitante;
  91.     /**
  92.      * @ORM\ManyToOne(targetEntity=User::class)
  93.      */
  94.     private $cirujano;
  95.     /**
  96.      * @ORM\ManyToOne(targetEntity=User::class)
  97.      */
  98.     private $anestesiologo;
  99.     /**
  100.      * @ORM\ManyToOne(targetEntity=User::class)
  101.      */
  102.     private $ayudante;
  103.     /**
  104.      * @ORM\Column(type="string", length=255, nullable=true)
  105.      */
  106.     private $anestesia;
  107.     /**
  108.      * @ORM\Column(type="date", nullable=true)
  109.      */
  110.     private $fecha_programada;
  111.     /**
  112.      * @ORM\Column(type="date", nullable=true)
  113.      */
  114.     private $fecha_operacion;
  115.     /**
  116.      * @ORM\Column(type="string", length=50, nullable=true)
  117.      */
  118.     private $inicio;
  119.     /**
  120.      * @ORM\Column(type="string", length=50, nullable=true)
  121.      */
  122.     private $fin;
  123.     /**
  124.      * @ORM\Column(type="string", length=50, nullable=true)
  125.      */
  126.     private $duracion;
  127.     /**
  128.      * @ORM\Column(type="string", length=255, nullable=true)
  129.      */
  130.     private $estado_terminar;
  131.     
  132.     /**
  133.      * @ORM\Column(type="string", length=255, nullable=true)
  134.      */
  135.     private $referido;
  136.     
  137.     /**
  138.      * @ORM\Column(type="string", length=50, nullable=true)
  139.      */
  140.     private $hora_reporte;
  141.     
  142.     /**
  143.      * @ORM\Column(type="string", length=255, nullable=true)
  144.      */
  145.     private $inicios;
  146.     
  147.     /**
  148.      * @ORM\Column(type="string", length=255, nullable=true)
  149.      */
  150.     private $fines;
  151.     
  152.     /**
  153.      * @ORM\Column(type="string", length=255, nullable=true)
  154.      */
  155.     private $litros;
  156.     
  157.     /**
  158.      * @ORM\Column(type="string", length=255, nullable=true)
  159.      */
  160.     private $minutos;
  161.     
  162.     /**
  163.      * @ORM\Column(type="string", length=255, nullable=true)
  164.      */
  165.     private $horas;
  166.     
  167.     /**
  168.      * @ORM\Column(type="string", length=255, nullable=true)
  169.      */
  170.     private $unitario;
  171.     
  172.     /**
  173.      * @ORM\Column(type="string", length=255, nullable=true)
  174.      */
  175.     private $inicioss;
  176.     
  177.     /**
  178.      * @ORM\Column(type="string", length=255, nullable=true)
  179.      */
  180.     private $finess;
  181.     
  182.     /**
  183.      * @ORM\Column(type="string", length=255, nullable=true)
  184.      */
  185.     private $litross;
  186.     
  187.     /**
  188.      * @ORM\Column(type="string", length=255, nullable=true)
  189.      */
  190.     private $minutoss;
  191.     
  192.     /**
  193.      * @ORM\Column(type="string", length=255, nullable=true)
  194.      */
  195.     private $horass;
  196.     
  197.     /**
  198.      * @ORM\Column(type="string", length=255, nullable=true)
  199.      */
  200.     private $archivo_pdf;
  201.     public function __construct()
  202.     {
  203.         $this->imagenesEstudios = new ArrayCollection();
  204.         $this->epicrises = new ArrayCollection();
  205.     }
  206.     public function getId(): ?int
  207.     {
  208.         return $this->id;
  209.     }
  210.     public function getHistoria(): ?HistoriaClinica
  211.     {
  212.         return $this->historia;
  213.     }
  214.     public function setHistoria(?HistoriaClinica $historia): self
  215.     {
  216.         $this->historia $historia;
  217.         return $this;
  218.     }
  219.     public function getHallazgos(): ?string
  220.     {
  221.         return $this->hallazgos;
  222.     }
  223.     public function setHallazgos(?string $hallazgos): self
  224.     {
  225.         $this->hallazgos $hallazgos;
  226.         return $this;
  227.     }
  228.     public function getConclusion(): ?string
  229.     {
  230.         return $this->conclusion;
  231.     }
  232.     public function setConclusion(?string $conclusion): self
  233.     {
  234.         $this->conclusion $conclusion;
  235.         return $this;
  236.     }
  237.     /**
  238.      * @return Collection|ImagenesEstudio[]
  239.      */
  240.     public function getImagenesEstudios(): Collection
  241.     {
  242.         return $this->imagenesEstudios;
  243.     }
  244.     public function addImagenesEstudio(ImagenesEstudio $imagenesEstudio): self
  245.     {
  246.         if (!$this->imagenesEstudios->contains($imagenesEstudio)) {
  247.             $this->imagenesEstudios[] = $imagenesEstudio;
  248.             $imagenesEstudio->setEstudio($this);
  249.         }
  250.         return $this;
  251.     }
  252.     public function removeImagenesEstudio(ImagenesEstudio $imagenesEstudio): self
  253.     {
  254.         if ($this->imagenesEstudios->removeElement($imagenesEstudio)) {
  255.             // set the owning side to null (unless already changed)
  256.             if ($imagenesEstudio->getEstudio() === $this) {
  257.                 $imagenesEstudio->setEstudio(null);
  258.             }
  259.         }
  260.         return $this;
  261.     }
  262.     public function getIpCrea(): ?string
  263.     {
  264.         return $this->ip_crea;
  265.     }
  266.     public function setIpCrea(string $ip_crea): self
  267.     {
  268.         $this->ip_crea $ip_crea;
  269.         return $this;
  270.     }
  271.     public function getIpModifica(): ?string
  272.     {
  273.         return $this->ip_modifica;
  274.     }
  275.     public function setIpModifica(string $ip_modifica): self
  276.     {
  277.         $this->ip_modifica $ip_modifica;
  278.         return $this;
  279.     }
  280.     public function getUserCrea(): ?int
  281.     {
  282.         return $this->user_crea;
  283.     }
  284.     public function setUserCrea(int $user_crea): self
  285.     {
  286.         $this->user_crea $user_crea;
  287.         return $this;
  288.     }
  289.     public function getUserModifica(): ?int
  290.     {
  291.         return $this->user_modifica;
  292.     }
  293.     public function setUserModifica(int $user_modifica): self
  294.     {
  295.         $this->user_modifica $user_modifica;
  296.         return $this;
  297.     }
  298.     public function getCreatedAt(): ?\DateTimeInterface
  299.     {
  300.         return $this->created_at;
  301.     }
  302.     public function setCreatedAt(\DateTimeInterface $created_at): self
  303.     {
  304.         $this->created_at $created_at;
  305.         return $this;
  306.     }
  307.     public function getUpdatedAt(): ?\DateTimeInterface
  308.     {
  309.         return $this->updated_at;
  310.     }
  311.     public function setUpdatedAt(\DateTimeInterface $updated_at): self
  312.     {
  313.         $this->updated_at $updated_at;
  314.         return $this;
  315.     }
  316.     /**
  317.      * @ORM\PrePersist
  318.      * @ORM\PreUpdate
  319.      */
  320.     public function updatedTimestamps(): void
  321.     {
  322.         $dateTimeNow = new DateTime('now');
  323.         $this->setUpdatedAt($dateTimeNow);
  324.         if ($this->getCreatedAt() === null) {
  325.             $this->setCreatedAt($dateTimeNow);
  326.         }
  327.     }
  328.     public function getEstado(): ?bool
  329.     {
  330.         return $this->estado;
  331.     }
  332.     public function setEstado(bool $estado): self
  333.     {
  334.         $this->estado $estado;
  335.         return $this;
  336.     }
  337.     public function getProcedimiento(): ?Procedimientos
  338.     {
  339.         return $this->procedimiento;
  340.     }
  341.     public function setProcedimiento(?Procedimientos $procedimiento): self
  342.     {
  343.         $this->procedimiento $procedimiento;
  344.         return $this;
  345.     }
  346.     /**
  347.      * @return Collection|Epicrisis[]
  348.      */
  349.     public function getEpicrises(): Collection
  350.     {
  351.         return $this->epicrises;
  352.     }
  353.     public function addEpicrisis(Epicrisis $epicrisis): self
  354.     {
  355.         if (!$this->epicrises->contains($epicrisis)) {
  356.             $this->epicrises[] = $epicrisis;
  357.             $epicrisis->setEstudio($this);
  358.         }
  359.         return $this;
  360.     }
  361.     public function removeEpicrisis(Epicrisis $epicrisis): self
  362.     {
  363.         if ($this->epicrises->removeElement($epicrisis)) {
  364.             // set the owning side to null (unless already changed)
  365.             if ($epicrisis->getEstudio() === $this) {
  366.                 $epicrisis->setEstudio(null);
  367.             }
  368.         }
  369.         return $this;
  370.     }
  371.     
  372.     public function getArchivo(): ?string
  373.     {
  374.         return $this->archivo;
  375.     }
  376.     public function setArchivo(?string $archivo): self
  377.     {
  378.         $this->archivo $archivo;
  379.         return $this;
  380.     }
  381.     
  382.     public function getProcedimientoRealizado(): ?string
  383.     {
  384.         return $this->procedimiento_realizado;
  385.     }
  386.     public function setProcedimientoRealizado(?string $procedimiento_realizado): self
  387.     {
  388.         $this->procedimiento_realizado $procedimiento_realizado;
  389.         return $this;
  390.     }
  391.     public function getCirugia(): ?bool
  392.     {
  393.         return $this->cirugia;
  394.     }
  395.     public function setCirugia(?bool $cirugia): self
  396.     {
  397.         $this->cirugia $cirugia;
  398.         return $this;
  399.     }
  400.     public function getSolicitante(): ?string
  401.     {
  402.         return $this->solicitante;
  403.     }
  404.     public function setSolicitante(?string $solicitante): self
  405.     {
  406.         $this->solicitante $solicitante;
  407.         return $this;
  408.     }
  409.     public function getCirujano(): ?User
  410.     {
  411.         return $this->cirujano;
  412.     }
  413.     public function setCirujano(?User $cirujano): self
  414.     {
  415.         $this->cirujano $cirujano;
  416.         return $this;
  417.     }
  418.     public function getAnestesiologo(): ?User
  419.     {
  420.         return $this->anestesiologo;
  421.     }
  422.     public function setAnestesiologo(?User $anestesiologo): self
  423.     {
  424.         $this->anestesiologo $anestesiologo;
  425.         return $this;
  426.     }
  427.     public function getAyudante(): ?User
  428.     {
  429.         return $this->ayudante;
  430.     }
  431.     public function setAyudante(?User $ayudante): self
  432.     {
  433.         $this->ayudante $ayudante;
  434.         return $this;
  435.     }
  436.     public function getAnestesia(): ?string
  437.     {
  438.         return $this->anestesia;
  439.     }
  440.     public function setAnestesia(?string $anestesia): self
  441.     {
  442.         $this->anestesia $anestesia;
  443.         return $this;
  444.     }
  445.     public function getFechaProgramada(): ?\DateTimeInterface
  446.     {
  447.         return $this->fecha_programada;
  448.     }
  449.     public function setFechaProgramada(?\DateTimeInterface $fecha_programada): self
  450.     {
  451.         $this->fecha_programada $fecha_programada;
  452.         return $this;
  453.     }
  454.     public function getFechaOperacion(): ?\DateTimeInterface
  455.     {
  456.         return $this->fecha_operacion;
  457.     }
  458.     public function setFechaOperacion(?\DateTimeInterface $fecha_operacion): self
  459.     {
  460.         $this->fecha_operacion $fecha_operacion;
  461.         return $this;
  462.     }
  463.     public function getInicio(): ?string
  464.     {
  465.         return $this->inicio;
  466.     }
  467.     public function setInicio(?string $inicio): self
  468.     {
  469.         $this->inicio $inicio;
  470.         return $this;
  471.     }
  472.     public function getFin(): ?string
  473.     {
  474.         return $this->fin;
  475.     }
  476.     public function setFin(?string $fin): self
  477.     {
  478.         $this->fin $fin;
  479.         return $this;
  480.     }
  481.     public function getDuracion(): ?string
  482.     {
  483.         return $this->duracion;
  484.     }
  485.     public function setDuracion(?string $duracion): self
  486.     {
  487.         $this->duracion $duracion;
  488.         return $this;
  489.     }
  490.     public function getEstadoTerminar(): ?string
  491.     {
  492.         return $this->estado_terminar;
  493.     }
  494.     public function setEstadoTerminar(?string $estado_terminar): self
  495.     {
  496.         $this->estado_terminar $estado_terminar;
  497.         return $this;
  498.     }
  499.     
  500.     public function getReferido(): ?string
  501.     {
  502.         return $this->referido;
  503.     }
  504.     public function setReferido(?string $referido): self
  505.     {
  506.         $this->referido $referido;
  507.         return $this;
  508.     }
  509.     
  510.      public function getHoraReporte(): ?string
  511.     {
  512.         return $this->hora_reporte;
  513.     }
  514.     public function setHoraReporte(?string $hora_reporte): self
  515.     {
  516.         $this->hora_reporte $hora_reporte;
  517.         return $this;
  518.     }
  519.     
  520.     public function getInicios(): ?string
  521.     {
  522.         return $this->inicios;
  523.     }
  524.     public function setInicios(?string $inicios): self
  525.     {
  526.         $this->inicios $inicios;
  527.         return $this;
  528.     }
  529.     
  530.     public function getFines(): ?string
  531.     {
  532.         return $this->fines;
  533.     }
  534.     public function setFines(?string $fines): self
  535.     {
  536.         $this->fines $fines;
  537.         return $this;
  538.     }
  539.     
  540.     public function getLitros(): ?string
  541.     {
  542.         return $this->litros;
  543.     }
  544.     public function setLitros(?string $litros): self
  545.     {
  546.         $this->litros $litros;
  547.         return $this;
  548.     }
  549.     
  550.     public function getMinutos(): ?string
  551.     {
  552.         return $this->minutos;
  553.     }
  554.     public function setMinutos(?string $minutos): self
  555.     {
  556.         $this->minutos $minutos;
  557.         return $this;
  558.     }
  559.     
  560.     public function getUnitario(): ?string
  561.     {
  562.         return $this->unitario;
  563.     }
  564.     public function setUnitario(?string $unitario): self
  565.     {
  566.         $this->unitario $unitario;
  567.         return $this;
  568.     }
  569.     
  570.     public function getHoras(): ?string
  571.     {
  572.         return $this->horas;
  573.     }
  574.     public function setHoras(?string $horas): self
  575.     {
  576.         $this->horas $horas;
  577.         return $this;
  578.     }
  579.     
  580.     public function getInicioss(): ?string
  581.     {
  582.         return $this->inicioss;
  583.     }
  584.     public function setInicioss(?string $inicioss): self
  585.     {
  586.         $this->inicioss $inicioss;
  587.         return $this;
  588.     }
  589.     
  590.     public function getFiness(): ?string
  591.     {
  592.         return $this->finess;
  593.     }
  594.     public function setFiness(?string $finess): self
  595.     {
  596.         $this->finess $finess;
  597.         return $this;
  598.     }
  599.     
  600.     public function getLitross(): ?string
  601.     {
  602.         return $this->litross;
  603.     }
  604.     public function setLitross(?string $litross): self
  605.     {
  606.         $this->litross $litross;
  607.         return $this;
  608.     }
  609.     
  610.     public function getMinutoss(): ?string
  611.     {
  612.         return $this->minutoss;
  613.     }
  614.     public function setMinutoss(?string $minutoss): self
  615.     {
  616.         $this->minutoss $minutoss;
  617.         return $this;
  618.     }
  619.     
  620.     public function getHorass(): ?string
  621.     {
  622.         return $this->horass;
  623.     }
  624.     public function setHorass(?string $horass): self
  625.     {
  626.         $this->horass $horass;
  627.         return $this;
  628.     }
  629.     
  630.     public function getArchivoPdf(): ?string
  631.     {
  632.         return $this->archivo_pdf;
  633.     }
  634.     public function setArchivoPdf(?string $archivo_pdf): self
  635.     {
  636.         $this->archivo_pdf $archivo_pdf;
  637.         return $this;
  638.     }
  639. }