src/Entity/Orden012.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\Orden012Repository;
  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=Orden012Repository::class)
  10.  * @ORM\HasLifecycleCallbacks
  11.  */
  12. class Orden012
  13. {
  14.     /**
  15.      * @ORM\Id
  16.      * @ORM\GeneratedValue
  17.      * @ORM\Column(type="integer")
  18.      */
  19.     private $id;
  20.     
  21.     /**
  22.      * @ORM\Column(type="boolean")
  23.      */
  24.     private $estado;
  25.     /**
  26.      * @ORM\Column(type="string", length=50)
  27.      */
  28.     private $ip_crea;
  29.     /**
  30.      * @ORM\Column(type="string", length=50)
  31.      */
  32.     private $ip_modifica;
  33.     /**
  34.      * @ORM\Column(type="integer")
  35.      */
  36.     private $user_crea;
  37.     /**
  38.      * @ORM\Column(type="integer")
  39.      */
  40.     private $user_modifica;
  41.     /**
  42.      * @ORM\Column(type="datetime")
  43.      */
  44.     private $created_at;
  45.     /**
  46.      * @ORM\Column(type="datetime")
  47.      */
  48.     private $updated_at;
  49.     /**
  50.      * @ORM\Column(type="string", length=100, nullable=true)
  51.      */
  52.     private $refiere;
  53.     /**
  54.      * @ORM\Column(type="string", length=100, nullable=true)
  55.      */
  56.     private $sala;
  57.     /**
  58.      * @ORM\Column(type="string", length=100, nullable=true)
  59.      */
  60.     private $cama;
  61.     /**
  62.      * @ORM\Column(type="boolean", nullable=true)
  63.      */
  64.     private $urgente;
  65.     /**
  66.      * @ORM\Column(type="boolean", nullable=true)
  67.      */
  68.     private $rutina;
  69.     /**
  70.      * @ORM\Column(type="boolean", nullable=true)
  71.      */
  72.     private $control;
  73.     /**
  74.      * @ORM\Column(type="boolean", nullable=true)
  75.      */
  76.     private $rx;
  77.     /**
  78.      * @ORM\Column(type="boolean", nullable=true)
  79.      */
  80.     private $tomografia;
  81.     /**
  82.      * @ORM\Column(type="boolean", nullable=true)
  83.      */
  84.     private $resonancia;
  85.     /**
  86.      * @ORM\Column(type="boolean", nullable=true)
  87.      */
  88.     private $ecografia;
  89.     /**
  90.      * @ORM\Column(type="boolean", nullable=true)
  91.      */
  92.     private $procedimiento;
  93.     /**
  94.      * @ORM\Column(type="boolean", nullable=true)
  95.      */
  96.     private $otros;
  97.     /**
  98.      * @ORM\Column(type="string", length=100, nullable=true)
  99.      */
  100.     private $otros_texto;
  101.     /**
  102.      * @ORM\Column(type="boolean", nullable=true)
  103.      */
  104.     private $puede_movilizarse;
  105.     /**
  106.      * @ORM\Column(type="boolean", nullable=true)
  107.      */
  108.     private $puede_retirarse_vendas_apositos_o_yesos;
  109.     /**
  110.      * @ORM\Column(type="boolean", nullable=true)
  111.      */
  112.     private $el_medico_estara_presente_en_el_examen;
  113.     /**
  114.      * @ORM\Column(type="boolean", nullable=true)
  115.      */
  116.     private $toma_de_radiografia_en_la_cama;
  117.     /**
  118.      * @ORM\OneToMany(targetEntity=Orden012Detalle::class, mappedBy="orden012")
  119.      */
  120.     private $orden012Detalles;
  121.     /**
  122.      * @ORM\ManyToOne(targetEntity=Paciente::class, inversedBy="orden012s")
  123.      * @ORM\JoinColumn(nullable=false)
  124.      */
  125.     private $paciente;
  126.     /**
  127.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="orden012s")
  128.      * @ORM\JoinColumn(nullable=false)
  129.      */
  130.     private $doctor;
  131.     /**
  132.      * @ORM\Column(type="datetime")
  133.      */
  134.     private $fecha_orden;
  135.     /**
  136.      * @ORM\ManyToOne(targetEntity=HistoriaClinica::class, inversedBy="orden012s")
  137.      * @ORM\JoinColumn(nullable=false)
  138.      */
  139.     private $historia;
  140.     /**
  141.      * @ORM\Column(type="string", length=50, nullable=true)
  142.      */
  143.     private $derivacion;
  144.     /**
  145.      * @ORM\Column(type="string", length=50, nullable=true)
  146.      */
  147.     private $servicio;
  148.     /**
  149.      * @ORM\Column(type="string", length=50, nullable=true)
  150.      */
  151.     private $especialidad;
  152.     /**
  153.      * @ORM\Column(type="text", nullable=true)
  154.      */
  155.     private $evolucion;
  156.     /**
  157.      * @ORM\OneToMany(targetEntity=DiagnosticosOrden012::class, mappedBy="orden012")
  158.      */
  159.     private $diagnosticosOrden012s;
  160.     /**
  161.      * @ORM\Column(type="text", nullable=true)
  162.      */
  163.     private $motivo;
  164.     public function __construct()
  165.     {
  166.         $this->orden012Detalles = new ArrayCollection();
  167.         $this->diagnosticosOrden012s = new ArrayCollection();
  168.     }
  169.     public function getId(): ?int
  170.     {
  171.         return $this->id;
  172.     }
  173.     public function getEstado(): ?bool
  174.     {
  175.         return $this->estado;
  176.     }
  177.     public function setEstado(bool $estado): self
  178.     {
  179.         $this->estado $estado;
  180.         return $this;
  181.     }
  182.     public function getIpCrea(): ?string
  183.     {
  184.         return $this->ip_crea;
  185.     }
  186.     public function setIpCrea(string $ip_crea): self
  187.     {
  188.         $this->ip_crea $ip_crea;
  189.         return $this;
  190.     }
  191.     public function getIpModifica(): ?string
  192.     {
  193.         return $this->ip_modifica;
  194.     }
  195.     public function setIpModifica(string $ip_modifica): self
  196.     {
  197.         $this->ip_modifica $ip_modifica;
  198.         return $this;
  199.     }
  200.     public function getUserCrea(): ?int
  201.     {
  202.         return $this->user_crea;
  203.     }
  204.     public function setUserCrea(int $user_crea): self
  205.     {
  206.         $this->user_crea $user_crea;
  207.         return $this;
  208.     }
  209.     public function getUserModifica(): ?int
  210.     {
  211.         return $this->user_modifica;
  212.     }
  213.     public function setUserModifica(int $user_modifica): self
  214.     {
  215.         $this->user_modifica $user_modifica;
  216.         return $this;
  217.     }
  218.     public function getCreatedAt(): ?\DateTimeInterface
  219.     {
  220.         return $this->created_at;
  221.     }
  222.     public function setCreatedAt(\DateTimeInterface $created_at): self
  223.     {
  224.         $this->created_at $created_at;
  225.         return $this;
  226.     }
  227.     public function getUpdatedAt(): ?\DateTimeInterface
  228.     {
  229.         return $this->updated_at;
  230.     }
  231.     public function setUpdatedAt(\DateTimeInterface $updated_at): self
  232.     {
  233.         $this->updated_at $updated_at;
  234.         return $this;
  235.     }
  236.     /**
  237.      * @ORM\PrePersist
  238.      * @ORM\PreUpdate
  239.      */
  240.     public function updatedTimestamps(): void
  241.     {
  242.         $dateTimeNow = new DateTime('now');
  243.         $this->setUpdatedAt($dateTimeNow);
  244.         if ($this->getCreatedAt() === null) {
  245.             $this->setCreatedAt($dateTimeNow);
  246.         }
  247.     }
  248.     public function getRefiere(): ?string
  249.     {
  250.         return $this->refiere;
  251.     }
  252.     public function setRefiere(?string $refiere): self
  253.     {
  254.         $this->refiere $refiere;
  255.         return $this;
  256.     }
  257.     public function getSala(): ?string
  258.     {
  259.         return $this->sala;
  260.     }
  261.     public function setSala(?string $sala): self
  262.     {
  263.         $this->sala $sala;
  264.         return $this;
  265.     }
  266.     public function getCama(): ?string
  267.     {
  268.         return $this->cama;
  269.     }
  270.     public function setCama(?string $cama): self
  271.     {
  272.         $this->cama $cama;
  273.         return $this;
  274.     }
  275.     public function getUrgente(): ?bool
  276.     {
  277.         return $this->urgente;
  278.     }
  279.     public function setUrgente(?bool $urgente): self
  280.     {
  281.         $this->urgente $urgente;
  282.         return $this;
  283.     }
  284.     public function getRutina(): ?bool
  285.     {
  286.         return $this->rutina;
  287.     }
  288.     public function setRutina(?bool $rutina): self
  289.     {
  290.         $this->rutina $rutina;
  291.         return $this;
  292.     }
  293.     public function getControl(): ?bool
  294.     {
  295.         return $this->control;
  296.     }
  297.     public function setControl(?bool $control): self
  298.     {
  299.         $this->control $control;
  300.         return $this;
  301.     }
  302.     public function getRx(): ?bool
  303.     {
  304.         return $this->rx;
  305.     }
  306.     public function setRx(?bool $rx): self
  307.     {
  308.         $this->rx $rx;
  309.         return $this;
  310.     }
  311.     public function getTomografia(): ?bool
  312.     {
  313.         return $this->tomografia;
  314.     }
  315.     public function setTomografia(?bool $tomografia): self
  316.     {
  317.         $this->tomografia $tomografia;
  318.         return $this;
  319.     }
  320.     public function getResonancia(): ?bool
  321.     {
  322.         return $this->resonancia;
  323.     }
  324.     public function setResonancia(?bool $resonancia): self
  325.     {
  326.         $this->resonancia $resonancia;
  327.         return $this;
  328.     }
  329.     public function getEcografia(): ?bool
  330.     {
  331.         return $this->ecografia;
  332.     }
  333.     public function setEcografia(?bool $ecografia): self
  334.     {
  335.         $this->ecografia $ecografia;
  336.         return $this;
  337.     }
  338.     public function getProcedimiento(): ?bool
  339.     {
  340.         return $this->procedimiento;
  341.     }
  342.     public function setProcedimiento(?bool $procedimiento): self
  343.     {
  344.         $this->procedimiento $procedimiento;
  345.         return $this;
  346.     }
  347.     public function getOtros(): ?bool
  348.     {
  349.         return $this->otros;
  350.     }
  351.     public function setOtros(?bool $otros): self
  352.     {
  353.         $this->otros $otros;
  354.         return $this;
  355.     }
  356.     public function getOtrosTexto(): ?string
  357.     {
  358.         return $this->otros_texto;
  359.     }
  360.     public function setOtrosTexto(?string $otros_texto): self
  361.     {
  362.         $this->otros_texto $otros_texto;
  363.         return $this;
  364.     }
  365.     public function getPuedeMovilizarse(): ?bool
  366.     {
  367.         return $this->puede_movilizarse;
  368.     }
  369.     public function setPuedeMovilizarse(?bool $puede_movilizarse): self
  370.     {
  371.         $this->puede_movilizarse $puede_movilizarse;
  372.         return $this;
  373.     }
  374.     public function getPuedeRetirarseVendasApositosOYesos(): ?bool
  375.     {
  376.         return $this->puede_retirarse_vendas_apositos_o_yesos;
  377.     }
  378.     public function setPuedeRetirarseVendasApositosOYesos(?bool $puede_retirarse_vendas_apositos_o_yesos): self
  379.     {
  380.         $this->puede_retirarse_vendas_apositos_o_yesos $puede_retirarse_vendas_apositos_o_yesos;
  381.         return $this;
  382.     }
  383.     public function getElMedicoEstaraPresenteEnElExamen(): ?bool
  384.     {
  385.         return $this->el_medico_estara_presente_en_el_examen;
  386.     }
  387.     public function setElMedicoEstaraPresenteEnElExamen(?bool $el_medico_estara_presente_en_el_examen): self
  388.     {
  389.         $this->el_medico_estara_presente_en_el_examen $el_medico_estara_presente_en_el_examen;
  390.         return $this;
  391.     }
  392.     public function getTomaDeRadiografiaEnLaCama(): ?bool
  393.     {
  394.         return $this->toma_de_radiografia_en_la_cama;
  395.     }
  396.     public function setTomaDeRadiografiaEnLaCama(?bool $toma_de_radiografia_en_la_cama): self
  397.     {
  398.         $this->toma_de_radiografia_en_la_cama $toma_de_radiografia_en_la_cama;
  399.         return $this;
  400.     }
  401.     /**
  402.      * @return Collection|Orden012Detalle[]
  403.      */
  404.     public function getOrden012Detalles(): Collection
  405.     {
  406.         return $this->orden012Detalles;
  407.     }
  408.     public function addOrden012Detalle(Orden012Detalle $orden012Detalle): self
  409.     {
  410.         if (!$this->orden012Detalles->contains($orden012Detalle)) {
  411.             $this->orden012Detalles[] = $orden012Detalle;
  412.             $orden012Detalle->setOrden012($this);
  413.         }
  414.         return $this;
  415.     }
  416.     public function removeOrden012Detalle(Orden012Detalle $orden012Detalle): self
  417.     {
  418.         if ($this->orden012Detalles->removeElement($orden012Detalle)) {
  419.             // set the owning side to null (unless already changed)
  420.             if ($orden012Detalle->getOrden012() === $this) {
  421.                 $orden012Detalle->setOrden012(null);
  422.             }
  423.         }
  424.         return $this;
  425.     }
  426.     public function getPaciente(): ?Paciente
  427.     {
  428.         return $this->paciente;
  429.     }
  430.     public function setPaciente(?Paciente $paciente): self
  431.     {
  432.         $this->paciente $paciente;
  433.         return $this;
  434.     }
  435.     public function getDoctor(): ?User
  436.     {
  437.         return $this->doctor;
  438.     }
  439.     public function setDoctor(?User $doctor): self
  440.     {
  441.         $this->doctor $doctor;
  442.         return $this;
  443.     }
  444.     public function getFechaOrden(): ?\DateTimeInterface
  445.     {
  446.         return $this->fecha_orden;
  447.     }
  448.     public function setFechaOrden(\DateTimeInterface $fecha_orden): self
  449.     {
  450.         $this->fecha_orden $fecha_orden;
  451.         return $this;
  452.     }
  453.     public function getHistoria(): ?HistoriaClinica
  454.     {
  455.         return $this->historia;
  456.     }
  457.     public function setHistoria(?HistoriaClinica $historia): self
  458.     {
  459.         $this->historia $historia;
  460.         return $this;
  461.     }
  462.     public function getDerivacion(): ?string
  463.     {
  464.         return $this->derivacion;
  465.     }
  466.     public function setDerivacion(?string $derivacion): self
  467.     {
  468.         $this->derivacion $derivacion;
  469.         return $this;
  470.     }
  471.     public function getServicio(): ?string
  472.     {
  473.         return $this->servicio;
  474.     }
  475.     public function setServicio(?string $servicio): self
  476.     {
  477.         $this->servicio $servicio;
  478.         return $this;
  479.     }
  480.     public function getEspecialidad(): ?string
  481.     {
  482.         return $this->especialidad;
  483.     }
  484.     public function setEspecialidad(?string $especialidad): self
  485.     {
  486.         $this->especialidad $especialidad;
  487.         return $this;
  488.     }
  489.     public function getEvolucion(): ?string
  490.     {
  491.         return $this->evolucion;
  492.     }
  493.     public function setEvolucion(?string $evolucion): self
  494.     {
  495.         $this->evolucion $evolucion;
  496.         return $this;
  497.     }
  498.     /**
  499.      * @return Collection|DiagnosticosOrden012[]
  500.      */
  501.     public function getDiagnosticosOrden012s(): Collection
  502.     {
  503.         return $this->diagnosticosOrden012s;
  504.     }
  505.     public function addDiagnosticosOrden012(DiagnosticosOrden012 $diagnosticosOrden012): self
  506.     {
  507.         if (!$this->diagnosticosOrden012s->contains($diagnosticosOrden012)) {
  508.             $this->diagnosticosOrden012s[] = $diagnosticosOrden012;
  509.             $diagnosticosOrden012->setOrden012($this);
  510.         }
  511.         return $this;
  512.     }
  513.     public function removeDiagnosticosOrden012(DiagnosticosOrden012 $diagnosticosOrden012): self
  514.     {
  515.         if ($this->diagnosticosOrden012s->removeElement($diagnosticosOrden012)) {
  516.             // set the owning side to null (unless already changed)
  517.             if ($diagnosticosOrden012->getOrden012() === $this) {
  518.                 $diagnosticosOrden012->setOrden012(null);
  519.             }
  520.         }
  521.         return $this;
  522.     }
  523.     public function getMotivo(): ?string
  524.     {
  525.         return $this->motivo;
  526.     }
  527.     public function setMotivo(?string $motivo): self
  528.     {
  529.         $this->motivo $motivo;
  530.         return $this;
  531.     }
  532. }