src/Entity/Agenda.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AgendaRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\Common\Collections\Criteria;
  7. use Doctrine\ORM\Mapping as ORM;
  8. use DateTime;
  9. /**
  10.  * @ORM\Entity(repositoryClass=AgendaRepository::class)
  11.  * @ORM\HasLifecycleCallbacks
  12.  */
  13. class Agenda
  14. {
  15.     /**
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue
  18.      * @ORM\Column(type="integer")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @ORM\Column(type="datetime")
  23.      */
  24.     private $inicio;
  25.     /**
  26.      * @ORM\Column(type="datetime")
  27.      */
  28.     private $fin;
  29.     /**
  30.      * @ORM\ManyToOne(targetEntity=Paciente::class, inversedBy="agendas")
  31.      */
  32.     private $paciente;
  33.     /**
  34.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="agendas")
  35.      */
  36.     private $doctor;
  37.     /**
  38.      * @ORM\ManyToOne(targetEntity=Sala::class, inversedBy="agendas")
  39.      */
  40.     private $sala;
  41.     /**
  42.      * @ORM\Column(type="smallint")
  43.      */
  44.     private $estado;
  45.     /**
  46.      * @ORM\Column(type="string", length=50)
  47.      */
  48.     private $ip_crea;
  49.     /**
  50.      * @ORM\Column(type="string", length=50)
  51.      */
  52.     private $ip_modifica;
  53.     /**
  54.      * @ORM\Column(type="integer")
  55.      */
  56.     private $user_crea;
  57.     /**
  58.      * @ORM\Column(type="integer")
  59.      */
  60.     private $user_modifica;
  61.     /**
  62.      * @ORM\Column(type="datetime")
  63.      */
  64.     private $created_at;
  65.     /**
  66.      * @ORM\Column(type="datetime")
  67.      */
  68.     private $updated_at;
  69.     /**
  70.      * @ORM\ManyToOne(targetEntity=SeguroPrivado::class, inversedBy="agendas")
  71.      * @ORM\JoinColumn(nullable=false)
  72.      */
  73.     private $seguro;
  74.     /**
  75.      * @ORM\ManyToOne(targetEntity=Especialidad::class, inversedBy="agendas")
  76.      * @ORM\JoinColumn(nullable=false)
  77.      */
  78.     private $especialidad;
  79.     /**
  80.      * @ORM\Column(type="string", length=255, nullable=true)
  81.      */
  82.     private $observacion;
  83.     /**
  84.      * @ORM\Column(type="smallint")
  85.      */
  86.     private $estado_agenda;
  87.     /**
  88.      * @ORM\OneToMany(targetEntity=LogAgenda::class, mappedBy="agenda")
  89.      */
  90.     private $logAgendas;
  91.     /**
  92.      * @ORM\OneToOne(targetEntity=Preparacion::class, mappedBy="agenda", cascade={"persist", "remove"})
  93.      */
  94.     private $preparacion;
  95.     /**
  96.      * @ORM\OneToOne(targetEntity=HistoriaClinica::class, mappedBy="agenda", cascade={"persist", "remove"})
  97.      */
  98.     private $historiaClinica;
  99.     /**
  100.      * @ORM\Column(type="string", length=100, nullable=true)
  101.      */
  102.     private $archivo053;
  103.     /**
  104.      * @ORM\ManyToOne(targetEntity=Procedimientos::class, inversedBy="agendas")
  105.      * @ORM\JoinColumn(nullable=false, columnDefinition="INT NOT NULL DEFAULT 1")
  106.      */
  107.     private $procedimiento;
  108.     /**
  109.      * @ORM\Column(type="string", length=50, nullable=true)
  110.      */
  111.     private $tipo_consulta;
  112.     /**
  113.      * @ORM\OneToMany(targetEntity=HdSolicitud::class, mappedBy="agenda")
  114.      */
  115.     private $hdSolicituds;
  116.     /**
  117.      * @ORM\OneToMany(targetEntity=HdPaso::class, mappedBy="agenda")
  118.      */
  119.     private $hdPasos;
  120.     /**
  121.      * @ORM\OneToMany(targetEntity=HdOrdenes::class, mappedBy="agenda")
  122.      */
  123.     private $hdOrdenes;
  124.     
  125.     /**
  126.      * @ORM\OneToMany(targetEntity=OdontogramaProcedimiento::class, mappedBy="agenda")
  127.      */
  128.     private $odontogramaProcedimientos;
  129.     
  130.     /**
  131.      * @ORM\Column(type="string", length=100, nullable=true)
  132.      */
  133.     private $origen;
  134.     /**
  135.      * @ORM\Column(type="datetime", nullable=true)
  136.      */
  137.     private $fecha_consulta;
  138.     /**
  139.      * @ORM\ManyToOne(targetEntity=User::class)
  140.      */
  141.     private $doctor_consulta;
  142.     
  143.     /**
  144.      * @ORM\OneToMany(targetEntity=DatosCirugia::class, mappedBy="agenda")
  145.      */
  146.     private $datosCirugias;
  147.     
  148.     /**
  149.      * @ORM\Column(type="string", length=100, nullable=true)
  150.      */
  151.     private $cie10_recep;
  152.     
  153.     
  154.     /**
  155.      * @ORM\ManyToOne(targetEntity=Especialidad::class)
  156.      */
  157.     private $origen_especialidad;
  158.     
  159.     /**
  160.      * @ORM\Column(type="string", length=100, nullable=true)
  161.      */
  162.     private $validacion;
  163.     
  164.     /**
  165.      * @ORM\Column(type="smallint", nullable=true)
  166.      */
  167.     private $cobrado;
  168.     
  169.     /**
  170.      * @ORM\Column(type="string", length=50, nullable=true)
  171.      */
  172.     private $factura;
  173.     
  174.     /**
  175.      * @ORM\Column(type="string", length=50, nullable=true)
  176.      */
  177.     private $fecha_factura;
  178.     
  179.     /**
  180.      * @ORM\Column(type="string", length=50, nullable=true)
  181.      */
  182.     private $fecha_pago;
  183.     
  184.     /**
  185.      * @ORM\Column(type="string", length=50, nullable=true)
  186.      */
  187.     private $verificado;
  188.     
  189.      /**
  190.      * @ORM\Column(type="boolean", options={"default" : false})
  191.      */
  192.     private $confirma false;
  193.     
  194.     /**
  195.      * @ORM\OneToMany(targetEntity=AgendaProcedimiento::class, mappedBy="agenda")
  196.      */
  197.     private $agenda_procedimientos;
  198.     
  199.     /**
  200.      * @ORM\ManyToOne(targetEntity=User::class)
  201.      */
  202.     private $anestesiologo;
  203.     /**
  204.      * @ORM\Column(type="string", length=10, nullable=true)
  205.      */
  206.     private $corte_seguro;
  207.     
  208.     /**
  209.      * @ORM\OneToMany(targetEntity=OrdenProcedimiento::class, mappedBy="agenda")
  210.      */
  211.     private $ordenProcedimientos;
  212.     
  213.     /**
  214.      * @ORM\ManyToOne(targetEntity=User::class)
  215.      */
  216.     private $recomendado;
  217.     
  218.     /**
  219.      * @ORM\ManyToOne(targetEntity=RedSocial::class, inversedBy="agendas")
  220.      * @ORM\JoinColumn(nullable=false)
  221.      */
  222.     private $redsocial;
  223.     
  224.     /**
  225.      * @ORM\Column(type="string", length=50, nullable=true)
  226.      */
  227.     private $salud_producto;
  228.     
  229.     /**
  230.      * @ORM\Column(type="string", length=50, nullable=true)
  231.      */
  232.     private $salud_nropersona;
  233.     
  234.     /**
  235.      * @ORM\Column(type="string", length=50, nullable=true)
  236.      */
  237.     private $salud_nivel;
  238.     
  239.     /**
  240.      * @ORM\Column(type="boolean", options={"default" : false})
  241.      */
  242.     private $documentos false;
  243.     
  244.     /**
  245.      * @ORM\Column(type="string", length=255, nullable=true)
  246.      */
  247.     private $wid;
  248.     /**
  249.      * @ORM\ManyToOne(targetEntity=Agenda::class)
  250.      * @ORM\JoinColumn(name="referencia_id", referencedColumnName="id", nullable=true, onDelete="SET NULL")
  251.     */
  252.     private $referencia;
  253.     /**
  254.      * @ORM\OneToMany(targetEntity=Agenda::class, mappedBy="referencia")
  255.      */
  256.     private $agendasReferenciadas;
  257.     public function __construct()
  258.     {
  259.         $this->logAgendas = new ArrayCollection();
  260.         $this->hdSolicituds = new ArrayCollection();
  261.         $this->hdPasos = new ArrayCollection();
  262.         $this->hdOrdenes = new ArrayCollection();
  263.         $this->odontogramaProcedimientos = new ArrayCollection();
  264.         $this->datosCirugias = new ArrayCollection();
  265.         $this->agenda_procedimientos = new ArrayCollection();
  266.         $this->agendasReferenciadas = new ArrayCollection();
  267.     }
  268.     public function getId(): ?int
  269.     {
  270.         return $this->id;
  271.     }
  272.     public function getInicio(): ?\DateTimeInterface
  273.     {
  274.         return $this->inicio;
  275.     }
  276.     public function setInicio(\DateTimeInterface $inicio): self
  277.     {
  278.         $this->inicio $inicio;
  279.         return $this;
  280.     }
  281.     public function getFin(): ?\DateTimeInterface
  282.     {
  283.         return $this->fin;
  284.     }
  285.     public function setFin(\DateTimeInterface $fin): self
  286.     {
  287.         $this->fin $fin;
  288.         return $this;
  289.     }
  290.     public function getPaciente(): ?Paciente
  291.     {
  292.         return $this->paciente;
  293.     }
  294.     public function setPaciente(?Paciente $paciente): self
  295.     {
  296.         $this->paciente $paciente;
  297.         return $this;
  298.     }
  299.     public function getDoctor(): ?User
  300.     {
  301.         return $this->doctor;
  302.     }
  303.     public function setDoctor(?User $doctor): self
  304.     {
  305.         $this->doctor $doctor;
  306.         return $this;
  307.     }
  308.     public function getSala(): ?Sala
  309.     {
  310.         return $this->sala;
  311.     }
  312.     public function setSala(?Sala $sala): self
  313.     {
  314.         $this->sala $sala;
  315.         return $this;
  316.     }
  317.     public function getEstado(): ?int
  318.     {
  319.         return $this->estado;
  320.     }
  321.     public function setEstado(int $estado): self
  322.     {
  323.         $this->estado $estado;
  324.         return $this;
  325.     }
  326.     public function getIpCrea(): ?string
  327.     {
  328.         return $this->ip_crea;
  329.     }
  330.     public function setIpCrea(string $ip_crea): self
  331.     {
  332.         $this->ip_crea $ip_crea;
  333.         return $this;
  334.     }
  335.     public function getIpModifica(): ?string
  336.     {
  337.         return $this->ip_modifica;
  338.     }
  339.     public function setIpModifica(string $ip_modifica): self
  340.     {
  341.         $this->ip_modifica $ip_modifica;
  342.         return $this;
  343.     }
  344.     public function getUserCrea(): ?int
  345.     {
  346.         return $this->user_crea;
  347.     }
  348.     public function setUserCrea(int $user_crea): self
  349.     {
  350.         $this->user_crea $user_crea;
  351.         return $this;
  352.     }
  353.     public function getUserModifica(): ?int
  354.     {
  355.         return $this->user_modifica;
  356.     }
  357.     public function setUserModifica(int $user_modifica): self
  358.     {
  359.         $this->user_modifica $user_modifica;
  360.         return $this;
  361.     }
  362.     public function getCreatedAt(): ?\DateTimeInterface
  363.     {
  364.         return $this->created_at;
  365.     }
  366.     public function setCreatedAt(\DateTimeInterface $created_at): self
  367.     {
  368.         $this->created_at $created_at;
  369.         return $this;
  370.     }
  371.     public function getUpdatedAt(): ?\DateTimeInterface
  372.     {
  373.         return $this->updated_at;
  374.     }
  375.     public function setUpdatedAt(\DateTimeInterface $updated_at): self
  376.     {
  377.         $this->updated_at $updated_at;
  378.         return $this;
  379.     }
  380.     /**
  381.      * @ORM\PrePersist
  382.      * @ORM\PreUpdate
  383.      */
  384.     public function updatedTimestamps(): void
  385.     {
  386.         $dateTimeNow = new DateTime('now');
  387.         $this->setUpdatedAt($dateTimeNow);
  388.         if ($this->getCreatedAt() === null) {
  389.             $this->setCreatedAt($dateTimeNow);
  390.         }
  391.     }
  392.     public function getSeguro(): ?SeguroPrivado
  393.     {
  394.         return $this->seguro;
  395.     }
  396.     public function setSeguro(?SeguroPrivado $seguro): self
  397.     {
  398.         $this->seguro $seguro;
  399.         return $this;
  400.     }
  401.     public function getEspecialidad(): ?Especialidad
  402.     {
  403.         return $this->especialidad;
  404.     }
  405.     public function setEspecialidad(?Especialidad $especialidad): self
  406.     {
  407.         $this->especialidad $especialidad;
  408.         return $this;
  409.     }
  410.     public function getObservacion(): ?string
  411.     {
  412.         return $this->observacion;
  413.     }
  414.     public function setObservacion(?string $observacion): self
  415.     {
  416.         $this->observacion $observacion;
  417.         return $this;
  418.     }
  419.     public function getEstadoAgenda(): ?int
  420.     {
  421.         return $this->estado_agenda;
  422.     }
  423.     public function setEstadoAgenda(int $estado_agenda): self
  424.     {
  425.         $this->estado_agenda $estado_agenda;
  426.         return $this;
  427.     }
  428.     /**
  429.      * @return Collection|LogAgenda[]
  430.      */
  431.     public function getLogAgendas(): Collection
  432.     {
  433.         return $this->logAgendas;
  434.     }
  435.     public function addLogAgenda(LogAgenda $logAgenda): self
  436.     {
  437.         if (!$this->logAgendas->contains($logAgenda)) {
  438.             $this->logAgendas[] = $logAgenda;
  439.             $logAgenda->setAgenda($this);
  440.         }
  441.         return $this;
  442.     }
  443.     public function removeLogAgenda(LogAgenda $logAgenda): self
  444.     {
  445.         if ($this->logAgendas->removeElement($logAgenda)) {
  446.             // set the owning side to null (unless already changed)
  447.             if ($logAgenda->getAgenda() === $this) {
  448.                 $logAgenda->setAgenda(null);
  449.             }
  450.         }
  451.         return $this;
  452.     }
  453.     public function getPreparacion(): ?Preparacion
  454.     {
  455.         return $this->preparacion;
  456.     }
  457.     public function setPreparacion(Preparacion $preparacion): self
  458.     {
  459.         $this->preparacion $preparacion;
  460.         // set the owning side of the relation if necessary
  461.         if ($preparacion->getAgenda() !== $this) {
  462.             $preparacion->setAgenda($this);
  463.         }
  464.         return $this;
  465.     }
  466.     public function getHistoriaClinica(): ?HistoriaClinica
  467.     {
  468.         return $this->historiaClinica;
  469.     }
  470.     public function setHistoriaClinica(HistoriaClinica $historiaClinica): self
  471.     {
  472.         $this->historiaClinica $historiaClinica;
  473.         // set the owning side of the relation if necessary
  474.         if ($historiaClinica->getAgenda() !== $this) {
  475.             $historiaClinica->setAgenda($this);
  476.         }
  477.         return $this;
  478.     }
  479.     public function getArchivo053(): ?string
  480.     {
  481.         return $this->archivo053;
  482.     }
  483.     public function setArchivo053(?string $archivo053): self
  484.     {
  485.         $this->archivo053 $archivo053;
  486.         return $this;
  487.     }
  488.     public function getProcedimiento(): ?Procedimientos
  489.     {
  490.         return $this->procedimiento;
  491.     }
  492.     public function setProcedimiento(?Procedimientos $procedimiento): self
  493.     {
  494.         $this->procedimiento $procedimiento;
  495.         return $this;
  496.     }
  497.     public function getTipoConsulta(): ?string
  498.     {
  499.         return $this->tipo_consulta;
  500.     }
  501.     public function setTipoConsulta(?string $tipo_consulta): self
  502.     {
  503.         $this->tipo_consulta $tipo_consulta;
  504.         return $this;
  505.     }
  506.     /**
  507.      * @return Collection|HdSolicitud[]
  508.      */
  509.     public function getHdSolicituds(): Collection
  510.     {
  511.         return $this->hdSolicituds;
  512.     }
  513.     public function addHdSolicitud(HdSolicitud $hdSolicitud): self
  514.     {
  515.         if (!$this->hdSolicituds->contains($hdSolicitud)) {
  516.             $this->hdSolicituds[] = $hdSolicitud;
  517.             $hdSolicitud->setAgenda($this);
  518.         }
  519.         return $this;
  520.     }
  521.     public function removeHdSolicitud(HdSolicitud $hdSolicitud): self
  522.     {
  523.         if ($this->hdSolicituds->removeElement($hdSolicitud)) {
  524.             // set the owning side to null (unless already changed)
  525.             if ($hdSolicitud->getAgenda() === $this) {
  526.                 $hdSolicitud->setAgenda(null);
  527.             }
  528.         }
  529.         return $this;
  530.     }
  531.     /**
  532.      * @return Collection|HdPaso[]
  533.      */
  534.     public function getHdPasos(): Collection
  535.     {
  536.         return $this->hdPasos;
  537.     }
  538.     public function addHdPaso(HdPaso $hdPaso): self
  539.     {
  540.         if (!$this->hdPasos->contains($hdPaso)) {
  541.             $this->hdPasos[] = $hdPaso;
  542.             $hdPaso->setAgenda($this);
  543.         }
  544.         return $this;
  545.     }
  546.     public function removeHdPaso(HdPaso $hdPaso): self
  547.     {
  548.         if ($this->hdPasos->removeElement($hdPaso)) {
  549.             // set the owning side to null (unless already changed)
  550.             if ($hdPaso->getAgenda() === $this) {
  551.                 $hdPaso->setAgenda(null);
  552.             }
  553.         }
  554.         return $this;
  555.     }
  556.     /**
  557.      * @return Collection|HdOrdenes[]
  558.      */
  559.     public function getHdOrdenes(): Collection
  560.     {
  561.         return $this->hdOrdenes;
  562.     }
  563.     public function addHdOrdene(HdOrdenes $hdOrdene): self
  564.     {
  565.         if (!$this->hdOrdenes->contains($hdOrdene)) {
  566.             $this->hdOrdenes[] = $hdOrdene;
  567.             $hdOrdene->setAgenda($this);
  568.         }
  569.         return $this;
  570.     }
  571.     public function removeHdOrdene(HdOrdenes $hdOrdene): self
  572.     {
  573.         if ($this->hdOrdenes->removeElement($hdOrdene)) {
  574.             // set the owning side to null (unless already changed)
  575.             if ($hdOrdene->getAgenda() === $this) {
  576.                 $hdOrdene->setAgenda(null);
  577.             }
  578.         }
  579.         return $this;
  580.     }
  581.     
  582.     /**
  583.      * @return Collection|OdontogramaProcedimiento[]
  584.      */
  585.     public function getOdontogramaProcedimientos(): Collection
  586.     {
  587.         return $this->odontogramaProcedimientos;
  588.     }
  589.     public function addOdontogramaProcedimiento(OdontogramaProcedimiento $odontogramaProcedimiento): self
  590.     {
  591.         if (!$this->odontogramaProcedimientos->contains($odontogramaProcedimiento)) {
  592.             $this->odontogramaProcedimientos[] = $odontogramaProcedimiento;
  593.             $odontogramaProcedimiento->setAgenda($this);
  594.         }
  595.         return $this;
  596.     }
  597.     public function removeOdontogramaProcedimiento(OdontogramaProcedimiento $odontogramaProcedimiento): self
  598.     {
  599.         if ($this->odontogramaProcedimientos->removeElement($odontogramaProcedimiento)) {
  600.             // set the owning side to null (unless already changed)
  601.             if ($odontogramaProcedimiento->getAgenda() === $this) {
  602.                 $odontogramaProcedimiento->setAgenda(null);
  603.             }
  604.         }
  605.         return $this;
  606.     }
  607.     
  608.     /**
  609.      * @return Collection|DatosCirugia[]
  610.      */
  611.     public function getDatosCirugias(): Collection
  612.     {
  613.         return $this->datosCirugias;
  614.     }
  615.     public function addDatosCirugia(DatosCirugia $datosCirugia): self
  616.     {
  617.         if (!$this->datosCirugias->contains($datosCirugia)) {
  618.             $this->datosCirugias[] = $datosCirugia;
  619.             $datosCirugia->setAgenda($this);
  620.         }
  621.         return $this;
  622.     }
  623.     public function removeDatosCirugia(DatosCirugia $datosCirugia): self
  624.     {
  625.         if ($this->datosCirugias->removeElement($datosCirugia)) {
  626.             // set the owning side to null (unless already changed)
  627.             if ($datosCirugia->getAgenda() === $this) {
  628.                 $datosCirugia->setAgenda(null);
  629.             }
  630.         }
  631.         return $this;
  632.     }
  633.     
  634.     public function getOrigen(): ?string
  635.     {
  636.         return $this->origen;
  637.     }
  638.     public function setOrigen(?string $origen): self
  639.     {
  640.         $this->origen $origen;
  641.         return $this;
  642.     }
  643.     public function getFechaConsulta(): ?\DateTimeInterface
  644.     {
  645.         return $this->fecha_consulta;
  646.     }
  647.     public function setFechaConsulta(?\DateTimeInterface $fecha_consulta): self
  648.     {
  649.         $this->fecha_consulta $fecha_consulta;
  650.         return $this;
  651.     }
  652.     public function getDoctorConsulta(): ?User
  653.     {
  654.         return $this->doctor_consulta;
  655.     }
  656.     public function setDoctorConsulta(?User $doctor_consulta): self
  657.     {
  658.         $this->doctor_consulta $doctor_consulta;
  659.         return $this;
  660.     }
  661.     
  662.     public function getCie10Recep(): ?string
  663.     {
  664.         return $this->cie10_recep;
  665.     }
  666.     public function setCie10Recep(?string $cie10_recep): self
  667.     {
  668.         $this->cie10_recep $cie10_recep;
  669.         return $this;
  670.     }
  671.     public function getOrigenEspecialidad(): ?Especialidad
  672.     {
  673.         return $this->origen_especialidad;
  674.     }
  675.     public function setOrigenEspecialidad(?Especialidad $origen_especialidad): self
  676.     {
  677.         $this->origen_especialidad $origen_especialidad;
  678.         return $this;
  679.     }
  680.     
  681.     public function getValidacion(): ?string
  682.     {
  683.         return $this->validacion;
  684.     }
  685.     public function setValidacion(?string $validacion): self
  686.     {
  687.         $this->validacion $validacion;
  688.         return $this;
  689.     }
  690.     
  691.     public function getCobrado(): ?int
  692.     {
  693.         return $this->cobrado;
  694.     }
  695.     public function setCobrado(int $cobrado): self
  696.     {
  697.         $this->cobrado $cobrado;
  698.         return $this;
  699.     }
  700.     
  701.     public function getFactura(): ?string
  702.     {
  703.         return $this->factura;
  704.     }
  705.     public function setFactura(?string $factura): self
  706.     {
  707.         $this->factura $factura;
  708.         return $this;
  709.     }
  710.     
  711.     public function getFechaFactura(): ?string
  712.     {
  713.         return $this->fecha_factura;
  714.     }
  715.     public function setFechaFactura(?string $fecha_factura): self
  716.     {
  717.         $this->fecha_factura $fecha_factura;
  718.         return $this;
  719.     }
  720.     
  721.     public function getFechaPago(): ?string
  722.     {
  723.         return $this->fecha_pago;
  724.     }
  725.     public function setFechaPago(?string $fecha_pago): self
  726.     {
  727.         $this->fecha_pago $fecha_pago;
  728.         return $this;
  729.     }
  730.     
  731.     public function getVerificado(): ?string
  732.     {
  733.         return $this->verificado;
  734.     }
  735.     public function setVerificado(?string $verificado): self
  736.     {
  737.         $this->verificado $verificado;
  738.         return $this;
  739.     }
  740.     
  741.   
  742.     public function getConfirma(): ?bool
  743.     {
  744.         return $this->confirma;
  745.     }
  746.     
  747.     public function setConfirma(bool $confirma): self
  748.     {
  749.         $this->confirma $confirma;
  750.     
  751.         return $this;
  752.     }
  753.     
  754.     /**
  755.      * @return Collection|AgendaProcedimiento[]
  756.      */
  757.     public function getAgendaProcedimientos(): Collection
  758.     {
  759.         return $this->agenda_procedimientos;
  760.     }
  761.     
  762.     public function getAnestesiologo(): ?User
  763.     {
  764.         return $this->anestesiologo;
  765.     }
  766.     public function setAnestesiologo(?User $anestesiologo): self
  767.     {
  768.         $this->anestesiologo $anestesiologo;
  769.         return $this;
  770.     }
  771.     
  772.     public function getCorteSeguro(): ?string
  773.     {
  774.         return $this->corte_seguro;
  775.     }
  776.     public function setCorteSeguro(?string $corte_seguro): self
  777.     {
  778.         $this->corte_seguro $corte_seguro;
  779.         return $this;
  780.     }
  781.     
  782.     /**
  783.      * @return Collection|OrdeProcedimiento[]
  784.      */
  785.     public function getOrdenProcedimientos(): Collection
  786.     {
  787.         $criteria Criteria::create()
  788.             ->andWhere(Criteria::expr()->eq('estado''1'))
  789.             //->orderBy(['createdAt' => 'DESC'])
  790.         ;
  791.         
  792.         return $this->ordenProcedimientos->matching($criteria);
  793.     }
  794.     
  795.     public function getRecomendado(): ?User
  796.     {
  797.         return $this->recomendado;
  798.     }
  799.     public function setRecomendado(?User $recomendado): self
  800.     {
  801.         $this->recomendado $recomendado;
  802.         return $this;
  803.     }
  804.     
  805.     public function getRedsocial(): ?RedSocial
  806.     {
  807.         return $this->redsocial;
  808.     }
  809.     public function setRedsocial(?RedSocial $redsocial): self
  810.     {
  811.         $this->redsocial $redsocial;
  812.         return $this;
  813.     }
  814.     
  815.     public function getSaludProducto(): ?string
  816.     {
  817.         return $this->salud_producto;
  818.     }
  819.     public function setSaludProducto(?string $salud_producto): self
  820.     {
  821.         $this->salud_producto $salud_producto;
  822.         return $this;
  823.     }
  824.     
  825.     public function getSaludNropersona(): ?string
  826.     {
  827.         return $this->salud_nropersona;
  828.     }
  829.     public function setSaludNropersona(?string $salud_nropersona): self
  830.     {
  831.         $this->salud_nropersona $salud_nropersona;
  832.         return $this;
  833.     }
  834.     
  835.     public function getSaludNivel(): ?string
  836.     {
  837.         return $this->salud_nivel;
  838.     }
  839.     public function setSaludNivel(?string $salud_nivel): self
  840.     {
  841.         $this->salud_nivel $salud_nivel;
  842.         return $this;
  843.     }
  844.     
  845.     public function getDocumentos(): ?bool
  846.     {
  847.         return $this->documentos;
  848.     }
  849.     
  850.     public function setDocumentos(bool $documentos): self
  851.     {
  852.         $this->documentos $documentos;
  853.     
  854.         return $this;
  855.     }
  856.     
  857.     public function getWid(): ?string
  858.     {
  859.         return $this->wid;
  860.     }
  861.     public function setWid(?string $wid): self
  862.     {
  863.         $this->wid $wid;
  864.         return $this;
  865.     }
  866.     public function getReferencia(): ?self
  867.     {
  868.         return $this->referencia;
  869.     }
  870.     public function setReferencia(?self $referencia): self
  871.     {
  872.         $this->referencia $referencia;
  873.         return $this;
  874.     }
  875.     /**
  876.      * @return Collection|Agenda[]
  877.      */
  878.     public function getAgendasReferenciadas(): Collection
  879.     {
  880.         return $this->agendasReferenciadas;
  881.     }
  882. }