src/Entity/HistoriaClinica.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\HistoriaClinicaRepository;
  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=HistoriaClinicaRepository::class)
  11.  * @ORM\HasLifecycleCallbacks
  12.  */
  13. class HistoriaClinica
  14. {
  15.     /**
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue
  18.      * @ORM\Column(type="integer")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @ORM\OneToOne(targetEntity=Agenda::class, inversedBy="historiaClinica", cascade={"persist", "remove"})
  23.      * @ORM\JoinColumn(nullable=false)
  24.      */
  25.     private $agenda;
  26.     /**
  27.      * @ORM\Column(type="text", nullable=true)
  28.      */
  29.     private $motivo;
  30.     /**
  31.      * @ORM\Column(type="text", nullable=true)
  32.      */
  33.     private $evolucion;
  34.     /**
  35.      * @ORM\Column(type="text", nullable=true)
  36.      */
  37.     private $examen_fisico;
  38.     /**
  39.      * @ORM\Column(type="text", nullable=true)
  40.      */
  41.     private $indicaciones;
  42.     /**
  43.      * @ORM\Column(type="smallint")
  44.      */
  45.     private $estado;
  46.     /**
  47.      * @ORM\Column(type="string", length=50)
  48.      */
  49.     private $ip_crea;
  50.     /**
  51.      * @ORM\Column(type="string", length=50)
  52.      */
  53.     private $ip_modifica;
  54.     /**
  55.      * @ORM\Column(type="integer")
  56.      */
  57.     private $user_crea;
  58.     /**
  59.      * @ORM\Column(type="integer")
  60.      */
  61.     private $user_modifica;
  62.     /**
  63.      * @ORM\Column(type="datetime")
  64.      */
  65.     private $created_at;
  66.     /**
  67.      * @ORM\Column(type="datetime")
  68.      */
  69.     private $updated_at;
  70.     /**
  71.      * @ORM\ManyToOne(targetEntity=Paciente::class, inversedBy="historiaClinicas")
  72.      * @ORM\JoinColumn(nullable=false)
  73.      */
  74.     private $paciente;
  75.     /**
  76.      * @ORM\OneToMany(targetEntity=DiagnosticosHistoriaClinica::class, mappedBy="historia_clinica")
  77.      */
  78.     private $diagnosticosHistoriaClinicas;
  79.     /**
  80.      * @ORM\OneToMany(targetEntity=Receta::class, mappedBy="historia")
  81.      */
  82.     private $recetas;
  83.     /**
  84.      * @ORM\OneToMany(targetEntity=ExamenOrden::class, mappedBy="historia")
  85.      */
  86.     private $examenOrdens;
  87.     /**
  88.      * @ORM\Column(type="text", nullable=true)
  89.      */
  90.     private $enfermedad_actual;
  91.     /**
  92.      * @ORM\Column(type="text", nullable=true)
  93.      */
  94.     private $revision_actual_organos_y_sistemas;
  95.     /**
  96.      * @ORM\OneToMany(targetEntity=Orden012::class, mappedBy="historia")
  97.      */
  98.     private $orden012s;
  99.     /**
  100.      * @ORM\OneToMany(targetEntity=Interconsulta::class, mappedBy="historiaclinica")
  101.      */
  102.     private $interconsultas;
  103.     /**
  104.      * @ORM\OneToMany(targetEntity=PantallasAs400::class, mappedBy="historia")
  105.      */
  106.     private $pantallasAs400s;
  107.     /**
  108.      * @ORM\Column(type="string", length=255, nullable=true)
  109.      */
  110.     private $descripcion_certificado;
  111.     /**
  112.      * @ORM\Column(type="string", length=50, nullable=true)
  113.      */
  114.     private $hora_espera;
  115.     /**
  116.      * @ORM\Column(type="string", length=100, nullable=true)
  117.      */
  118.     private $dias_reposo;
  119.     /**
  120.      * @ORM\Column(type="string", length=100, nullable=true)
  121.      */
  122.     private $reposo_desde;
  123.     /**
  124.      * @ORM\Column(type="string", length=100, nullable=true)
  125.      */
  126.     private $reposo_hasta;
  127.     /**
  128.      * @ORM\OneToMany(targetEntity=PlanoCabecera::class, mappedBy="historia")
  129.      */
  130.     private $planoCabeceras;
  131.     /**
  132.      * @ORM\Column(type="text", nullable=true)
  133.      */
  134.     private $ritmo;
  135.     /**
  136.      * @ORM\Column(type="text", nullable=true)
  137.      */
  138.     private $frecuencia;
  139.     /**
  140.      * @ORM\Column(type="text", nullable=true)
  141.      */
  142.     private $intervalos;
  143.     /**
  144.      * @ORM\Column(type="text", nullable=true)
  145.      */
  146.     private $segmento_st;
  147.     /**
  148.      * @ORM\Column(type="text", nullable=true)
  149.      */
  150.     private $eje_electrico;
  151.     /**
  152.      * @ORM\Column(type="text", nullable=true)
  153.      */
  154.     private $imp_diagnostica_ekg;
  155.     /**
  156.      * @ORM\Column(type="text", nullable=true)
  157.      */
  158.     private $conclusion;
  159.     /**
  160.      * @ORM\Column(type="text", nullable=true)
  161.      */
  162.     private $riesgo;
  163.     /**
  164.      * @ORM\Column(type="text", nullable=true)
  165.      */
  166.     private $recomendaciones;
  167.     /**
  168.      * @ORM\Column(type="text", nullable=true)
  169.      */
  170.     private $diagnostico_clinico_cardiologico;
  171.     /**
  172.      * @ORM\OneToMany(targetEntity=Estudio::class, mappedBy="historia")
  173.      */
  174.     private $estudios;
  175.     /**
  176.      * @ORM\OneToMany(targetEntity=Epicrisis::class, mappedBy="historia")
  177.      */
  178.     private $epicrises;
  179.     
  180.      /**
  181.      * @ORM\Column(type="string", length=50, nullable=true)
  182.      */
  183.     private $trabaja_en;
  184.     
  185.      /**
  186.      * @ORM\Column(type="string", length=50, nullable=true)
  187.      */
  188.     private $puesto_trabajo;
  189.     
  190.      /**
  191.      * @ORM\Column(type="string", length=25, nullable=true)
  192.      */
  193.     private $presenta_sintomas;
  194.     /**
  195.      * @ORM\Column(type="string", length=200, nullable=true)
  196.      */
  197.     private $aislamiento;
  198.     
  199.     /**
  200.      * @ORM\Column(type="string", length=100, nullable=true)
  201.      */
  202.     private $ciudad_trabajo;
  203.     /**
  204.      * @ORM\Column(type="string", length=100, nullable=true)
  205.      */
  206.     private $tipo_contingencia;
  207.     
  208.     /**
  209.      * @ORM\Column(type="text", nullable=true)
  210.      */
  211.     private $certificado_evolucion;
  212.     
  213.     /**
  214.      * @ORM\Column(type="text", nullable=true)
  215.      */
  216.     private $certificado_diagnostico;
  217.     
  218.     /**
  219.      * @ORM\Column(type="string", length=100, nullable=true)
  220.      */
  221.     private $certificado_cie10;
  222.     /**
  223.      * @ORM\Column(type="string", length=50, nullable=true)
  224.      */
  225.     private $gota_fresca_disbiosis;
  226.     /**
  227.      * @ORM\Column(type="string", length=50, nullable=true)
  228.      */
  229.     private $gota_fresca_cristales;
  230.     /**
  231.      * @ORM\Column(type="string", length=50, nullable=true)
  232.      */
  233.     private $gota_fresca_hiperglicemia;
  234.     /**
  235.      * @ORM\Column(type="string", length=50, nullable=true)
  236.      */
  237.     private $gota_fresca_hipoxia;
  238.     /**
  239.      * @ORM\Column(type="string", length=50, nullable=true)
  240.      */
  241.     private $gota_fresca_acidez;
  242.     /**
  243.      * @ORM\Column(type="string", length=50, nullable=true)
  244.      */
  245.     private $gota_fresca_inflamacion;
  246.     /**
  247.      * @ORM\Column(type="string", length=20, nullable=true)
  248.      */
  249.     private $hlb_grado;
  250.     /**
  251.      * @ORM\Column(type="string", length=50, nullable=true)
  252.      */
  253.     private $hlb_intolerancia_alimenticia;
  254.     /**
  255.      * @ORM\Column(type="string", length=50, nullable=true)
  256.      */
  257.     private $hlb_terreno_degenerativo_digestivo;
  258.     /**
  259.      * @ORM\Column(type="string", length=50, nullable=true)
  260.      */
  261.     private $hlb_terreno_artrosico;
  262.     /**
  263.      * @ORM\Column(type="string", length=50, nullable=true)
  264.      */
  265.     private $hlb_cnr;
  266.     /**
  267.      * @ORM\Column(type="string", length=50, nullable=true)
  268.      */
  269.     private $hlb_irritabilidad_nerviosa;
  270.     /**
  271.      * @ORM\Column(type="string", length=50, nullable=true)
  272.      */
  273.     private $hlb_colesterol;
  274.     /**
  275.      * @ORM\Column(type="string", length=50, nullable=true)
  276.      */
  277.     private $hlb_proceso_hepatico;
  278.     /**
  279.      * @ORM\Column(type="string", length=50, nullable=true)
  280.      */
  281.     private $hlb_alergia;
  282.     /**
  283.      * @ORM\Column(type="string", length=50, nullable=true)
  284.      */
  285.     private $hlb_estres;
  286.     /**
  287.      * @ORM\Column(type="string", length=50, nullable=true)
  288.      */
  289.     private $hlb_inflamacion;
  290.     /**
  291.      * @ORM\Column(type="string", length=50, nullable=true)
  292.      */
  293.     private $hlb_anemia;
  294.     /**
  295.      * @ORM\Column(type="string", length=50, nullable=true)
  296.      */
  297.     private $hlb_afectacion_muscular;
  298.     /**
  299.      * @ORM\Column(type="string", length=50, nullable=true)
  300.      */
  301.     private $hlb_sol_toxico;
  302.     /**
  303.      * @ORM\Column(type="string", length=50, nullable=true)
  304.      */
  305.     private $hlb_congestion_linfatica;
  306.     public function __construct()
  307.     {
  308.         $this->diagnosticosHistoriaClinicas = new ArrayCollection();
  309.         $this->recetas = new ArrayCollection();
  310.         $this->examenOrdens = new ArrayCollection();
  311.         $this->orden012s = new ArrayCollection();
  312.         $this->interconsultas = new ArrayCollection();
  313.         $this->pantallasAs400s = new ArrayCollection();
  314.         $this->planoCabeceras = new ArrayCollection();
  315.         $this->estudios = new ArrayCollection();
  316.         $this->epicrises = new ArrayCollection();
  317.     }
  318.     public function getId(): ?int
  319.     {
  320.         return $this->id;
  321.     }
  322.     public function getAgenda(): ?Agenda
  323.     {
  324.         return $this->agenda;
  325.     }
  326.     public function setAgenda(Agenda $agenda): self
  327.     {
  328.         $this->agenda $agenda;
  329.         return $this;
  330.     }
  331.     public function getMotivo(): ?string
  332.     {
  333.         return $this->motivo;
  334.     }
  335.     public function setMotivo(?string $motivo): self
  336.     {
  337.         $this->motivo $motivo;
  338.         return $this;
  339.     }
  340.     public function getEvolucion(): ?string
  341.     {
  342.         return $this->evolucion;
  343.     }
  344.     public function setEvolucion(?string $evolucion): self
  345.     {
  346.         $this->evolucion $evolucion;
  347.         return $this;
  348.     }
  349.     public function getExamenFisico(): ?string
  350.     {
  351.         return $this->examen_fisico;
  352.     }
  353.     public function setExamenFisico(?string $examen_fisico): self
  354.     {
  355.         $this->examen_fisico $examen_fisico;
  356.         return $this;
  357.     }
  358.     public function getIndicaciones(): ?string
  359.     {
  360.         return $this->indicaciones;
  361.     }
  362.     public function setIndicaciones(?string $indicaciones): self
  363.     {
  364.         $this->indicaciones $indicaciones;
  365.         return $this;
  366.     }
  367.     public function getEstado(): ?int
  368.     {
  369.         return $this->estado;
  370.     }
  371.     public function setEstado(int $estado): self
  372.     {
  373.         $this->estado $estado;
  374.         return $this;
  375.     }
  376.     public function getIpCrea(): ?string
  377.     {
  378.         return $this->ip_crea;
  379.     }
  380.     public function setIpCrea(string $ip_crea): self
  381.     {
  382.         $this->ip_crea $ip_crea;
  383.         return $this;
  384.     }
  385.     public function getIpModifica(): ?string
  386.     {
  387.         return $this->ip_modifica;
  388.     }
  389.     public function setIpModifica(string $ip_modifica): self
  390.     {
  391.         $this->ip_modifica $ip_modifica;
  392.         return $this;
  393.     }
  394.     public function getUserCrea(): ?int
  395.     {
  396.         return $this->user_crea;
  397.     }
  398.     public function setUserCrea(int $user_crea): self
  399.     {
  400.         $this->user_crea $user_crea;
  401.         return $this;
  402.     }
  403.     public function getUserModifica(): ?int
  404.     {
  405.         return $this->user_modifica;
  406.     }
  407.     public function setUserModifica(int $user_modifica): self
  408.     {
  409.         $this->user_modifica $user_modifica;
  410.         return $this;
  411.     }
  412.     public function getCreatedAt(): ?\DateTimeInterface
  413.     {
  414.         return $this->created_at;
  415.     }
  416.     public function setCreatedAt(\DateTimeInterface $created_at): self
  417.     {
  418.         $this->created_at $created_at;
  419.         return $this;
  420.     }
  421.     public function getUpdatedAt(): ?\DateTimeInterface
  422.     {
  423.         return $this->updated_at;
  424.     }
  425.     public function setUpdatedAt(\DateTimeInterface $updated_at): self
  426.     {
  427.         $this->updated_at $updated_at;
  428.         return $this;
  429.     }
  430.     
  431.     public function getCertificadoEvolucion(): ?string
  432.     {
  433.         return $this->certificado_evolucion;
  434.     }
  435.     public function setCertificadoEvolucion(?string $certificado_evolucion): self
  436.     {
  437.         $this->certificado_evolucion $certificado_evolucion;
  438.         return $this;
  439.     }
  440.     
  441.     public function getCertificadoDiagnostico(): ?string
  442.     {
  443.         return $this->certificado_diagnostico;
  444.     }
  445.     public function setCertificadoDiagnostico(?string $certificado_diagnostico): self
  446.     {
  447.         $this->certificado_diagnostico $certificado_diagnostico;
  448.         return $this;
  449.     }
  450.     
  451.     
  452.     /**
  453.      * @ORM\PrePersist
  454.      * @ORM\PreUpdate
  455.      */
  456.     public function updatedTimestamps(): void
  457.     {
  458.         $dateTimeNow = new DateTime('now');
  459.         $this->setUpdatedAt($dateTimeNow);
  460.         if ($this->getCreatedAt() === null) {
  461.             $this->setCreatedAt($dateTimeNow);
  462.         }
  463.     }
  464.     public function getPaciente(): ?Paciente
  465.     {
  466.         return $this->paciente;
  467.     }
  468.     public function setPaciente(?Paciente $paciente): self
  469.     {
  470.         $this->paciente $paciente;
  471.         return $this;
  472.     }
  473.     /**
  474.      * @return Collection|DiagnosticosHistoriaClinica[]
  475.      */
  476.     public function getDiagnosticosHistoriaClinicas(): Collection
  477.     {
  478.         return $this->diagnosticosHistoriaClinicas;
  479.     }
  480.     public function addDiagnosticosHistoriaClinica(DiagnosticosHistoriaClinica $diagnosticosHistoriaClinica): self
  481.     {
  482.         if (!$this->diagnosticosHistoriaClinicas->contains($diagnosticosHistoriaClinica)) {
  483.             $this->diagnosticosHistoriaClinicas[] = $diagnosticosHistoriaClinica;
  484.             $diagnosticosHistoriaClinica->setHistoriaClinica($this);
  485.         }
  486.         return $this;
  487.     }
  488.     public function removeDiagnosticosHistoriaClinica(DiagnosticosHistoriaClinica $diagnosticosHistoriaClinica): self
  489.     {
  490.         if ($this->diagnosticosHistoriaClinicas->removeElement($diagnosticosHistoriaClinica)) {
  491.             // set the owning side to null (unless already changed)
  492.             if ($diagnosticosHistoriaClinica->getHistoriaClinica() === $this) {
  493.                 $diagnosticosHistoriaClinica->setHistoriaClinica(null);
  494.             }
  495.         }
  496.         return $this;
  497.     }
  498.     /**
  499.      * @return Collection|Receta[]
  500.      */
  501.     public function getRecetas(): Collection
  502.     {
  503.         return $this->recetas;
  504.     }
  505.     public function addReceta(Receta $receta): self
  506.     {
  507.         if (!$this->recetas->contains($receta)) {
  508.             $this->recetas[] = $receta;
  509.             $receta->setHistoria($this);
  510.         }
  511.         return $this;
  512.     }
  513.     public function removeReceta(Receta $receta): self
  514.     {
  515.         if ($this->recetas->removeElement($receta)) {
  516.             // set the owning side to null (unless already changed)
  517.             if ($receta->getHistoria() === $this) {
  518.                 $receta->setHistoria(null);
  519.             }
  520.         }
  521.         return $this;
  522.     }
  523.     /**
  524.      * @return Collection|ExamenOrden[]
  525.      */
  526.     public function getExamenOrdens(): Collection
  527.     {
  528.         $criteria Criteria::create()
  529.             ->andWhere(Criteria::expr()->eq('estado'1));
  530.         
  531.         return $this->examenOrdens->matching($criteria);
  532.         
  533.     }
  534.     public function addExamenOrden(ExamenOrden $examenOrden): self
  535.     {
  536.         if (!$this->examenOrdens->contains($examenOrden)) {
  537.             $this->examenOrdens[] = $examenOrden;
  538.             $examenOrden->setHistoria($this);
  539.         }
  540.         return $this;
  541.     }
  542.     public function removeExamenOrden(ExamenOrden $examenOrden): self
  543.     {
  544.         if ($this->examenOrdens->removeElement($examenOrden)) {
  545.             // set the owning side to null (unless already changed)
  546.             if ($examenOrden->getHistoria() === $this) {
  547.                 $examenOrden->setHistoria(null);
  548.             }
  549.         }
  550.         return $this;
  551.     }
  552.     public function getEnfermedadActual(): ?string
  553.     {
  554.         return $this->enfermedad_actual;
  555.     }
  556.     public function setEnfermedadActual(?string $enfermedad_actual): self
  557.     {
  558.         $this->enfermedad_actual $enfermedad_actual;
  559.         return $this;
  560.     }
  561.     public function getRevisionActualOrganosYSistemas(): ?string
  562.     {
  563.         return $this->revision_actual_organos_y_sistemas;
  564.     }
  565.     public function setRevisionActualOrganosYSistemas(?string $revision_actual_organos_y_sistemas): self
  566.     {
  567.         $this->revision_actual_organos_y_sistemas $revision_actual_organos_y_sistemas;
  568.         return $this;
  569.     }
  570.     /**
  571.      * @return Collection|Orden012[]
  572.      */
  573.     public function getOrden012s(): Collection
  574.     {
  575.         $criteria Criteria::create()
  576.             ->andWhere(Criteria::expr()->eq('estado'1));
  577.         
  578.         return $this->orden012s->matching($criteria);
  579.     }
  580.     public function addOrden012(Orden012 $orden012): self
  581.     {
  582.         if (!$this->orden012s->contains($orden012)) {
  583.             $this->orden012s[] = $orden012;
  584.             $orden012->setHistoria($this);
  585.         }
  586.         return $this;
  587.     }
  588.     public function removeOrden012(Orden012 $orden012): self
  589.     {
  590.         if ($this->orden012s->removeElement($orden012)) {
  591.             // set the owning side to null (unless already changed)
  592.             if ($orden012->getHistoria() === $this) {
  593.                 $orden012->setHistoria(null);
  594.             }
  595.         }
  596.         return $this;
  597.     }
  598.     /**
  599.      * @return Collection|Interconsulta[]
  600.      */
  601.     public function getInterconsultas(): Collection
  602.     {
  603.         $criteria Criteria::create()
  604.             ->andWhere(Criteria::expr()->eq('estado'1));
  605.         
  606.         return $this->interconsultas->matching($criteria);
  607.     }
  608.     public function addInterconsulta(Interconsulta $interconsulta): self
  609.     {
  610.         if (!$this->interconsultas->contains($interconsulta)) {
  611.             $this->interconsultas[] = $interconsulta;
  612.             $interconsulta->setHistoriaclinica($this);
  613.         }
  614.         return $this;
  615.     }
  616.     public function removeInterconsulta(Interconsulta $interconsulta): self
  617.     {
  618.         if ($this->interconsultas->removeElement($interconsulta)) {
  619.             // set the owning side to null (unless already changed)
  620.             if ($interconsulta->getHistoriaclinica() === $this) {
  621.                 $interconsulta->setHistoriaclinica(null);
  622.             }
  623.         }
  624.         return $this;
  625.     }
  626.     /**
  627.      * @return Collection|PantallasAs400[]
  628.      */
  629.     public function getPantallasAs400s(): Collection
  630.     {
  631.         return $this->pantallasAs400s;
  632.     }
  633.     public function addPantallasAs400(PantallasAs400 $pantallasAs400): self
  634.     {
  635.         if (!$this->pantallasAs400s->contains($pantallasAs400)) {
  636.             $this->pantallasAs400s[] = $pantallasAs400;
  637.             $pantallasAs400->setHistoria($this);
  638.         }
  639.         return $this;
  640.     }
  641.     public function removePantallasAs400(PantallasAs400 $pantallasAs400): self
  642.     {
  643.         if ($this->pantallasAs400s->removeElement($pantallasAs400)) {
  644.             // set the owning side to null (unless already changed)
  645.             if ($pantallasAs400->getHistoria() === $this) {
  646.                 $pantallasAs400->setHistoria(null);
  647.             }
  648.         }
  649.         return $this;
  650.     }
  651.     public function getDescripcionCertificado(): ?string
  652.     {
  653.         return $this->descripcion_certificado;
  654.     }
  655.     public function setDescripcionCertificado(?string $descripcion_certificado): self
  656.     {
  657.         $this->descripcion_certificado $descripcion_certificado;
  658.         return $this;
  659.     }
  660.     public function getHoraEspera(): ?string
  661.     {
  662.         return $this->hora_espera;
  663.     }
  664.     public function setHoraEspera(?string $hora_espera): self
  665.     {
  666.         $this->hora_espera $hora_espera;
  667.         return $this;
  668.     }
  669.     public function getDiasReposo(): ?string
  670.     {
  671.         return $this->dias_reposo;
  672.     }
  673.     public function setDiasReposo(?string $dias_reposo): self
  674.     {
  675.         $this->dias_reposo $dias_reposo;
  676.         return $this;
  677.     }
  678.     public function getReposoDesde(): ?string
  679.     {
  680.         return $this->reposo_desde;
  681.     }
  682.     public function setReposoDesde(?string $reposo_desde): self
  683.     {
  684.         $this->reposo_desde $reposo_desde;
  685.         return $this;
  686.     }
  687.     public function getReposoHasta(): ?string
  688.     {
  689.         return $this->reposo_hasta;
  690.     }
  691.     public function setReposoHasta(?string $reposo_hasta): self
  692.     {
  693.         $this->reposo_hasta $reposo_hasta;
  694.         return $this;
  695.     }
  696.     /**
  697.      * @return Collection|PlanoCabecera[]
  698.      */
  699.     public function getPlanoCabeceras(): Collection
  700.     {
  701.         return $this->planoCabeceras;
  702.     }
  703.     public function addPlanoCabecera(PlanoCabecera $planoCabecera): self
  704.     {
  705.         if (!$this->planoCabeceras->contains($planoCabecera)) {
  706.             $this->planoCabeceras[] = $planoCabecera;
  707.             $planoCabecera->setHistoria($this);
  708.         }
  709.         return $this;
  710.     }
  711.     public function removePlanoCabecera(PlanoCabecera $planoCabecera): self
  712.     {
  713.         if ($this->planoCabeceras->removeElement($planoCabecera)) {
  714.             // set the owning side to null (unless already changed)
  715.             if ($planoCabecera->getHistoria() === $this) {
  716.                 $planoCabecera->setHistoria(null);
  717.             }
  718.         }
  719.         return $this;
  720.     }
  721.     public function getRitmo(): ?string
  722.     {
  723.         return $this->ritmo;
  724.     }
  725.     public function setRitmo(?string $ritmo): self
  726.     {
  727.         $this->ritmo $ritmo;
  728.         return $this;
  729.     }
  730.     public function getFrecuencia(): ?string
  731.     {
  732.         return $this->frecuencia;
  733.     }
  734.     public function setFrecuencia(?string $frecuencia): self
  735.     {
  736.         $this->frecuencia $frecuencia;
  737.         return $this;
  738.     }
  739.     public function getIntervalos(): ?string
  740.     {
  741.         return $this->intervalos;
  742.     }
  743.     public function setIntervalos(?string $intervalos): self
  744.     {
  745.         $this->intervalos $intervalos;
  746.         return $this;
  747.     }
  748.     public function getSegmentoSt(): ?string
  749.     {
  750.         return $this->segmento_st;
  751.     }
  752.     public function setSegmentoSt(?string $segmento_st): self
  753.     {
  754.         $this->segmento_st $segmento_st;
  755.         return $this;
  756.     }
  757.     public function getEjeElectrico(): ?string
  758.     {
  759.         return $this->eje_electrico;
  760.     }
  761.     public function setEjeElectrico(?string $eje_electrico): self
  762.     {
  763.         $this->eje_electrico $eje_electrico;
  764.         return $this;
  765.     }
  766.     public function getImpDiagnosticaEkg(): ?string
  767.     {
  768.         return $this->imp_diagnostica_ekg;
  769.     }
  770.     public function setImpDiagnosticaEkg(?string $imp_diagnostica_ekg): self
  771.     {
  772.         $this->imp_diagnostica_ekg $imp_diagnostica_ekg;
  773.         return $this;
  774.     }
  775.     public function getConclusion(): ?string
  776.     {
  777.         return $this->conclusion;
  778.     }
  779.     public function setConclusion(?string $conclusion): self
  780.     {
  781.         $this->conclusion $conclusion;
  782.         return $this;
  783.     }
  784.     public function getRiesgo(): ?string
  785.     {
  786.         return $this->riesgo;
  787.     }
  788.     public function setRiesgo(?string $riesgo): self
  789.     {
  790.         $this->riesgo $riesgo;
  791.         return $this;
  792.     }
  793.     public function getRecomendaciones(): ?string
  794.     {
  795.         return $this->recomendaciones;
  796.     }
  797.     public function setRecomendaciones(?string $recomendaciones): self
  798.     {
  799.         $this->recomendaciones $recomendaciones;
  800.         return $this;
  801.     }
  802.     public function getDiagnosticoClinicoCardiologico(): ?string
  803.     {
  804.         return $this->diagnostico_clinico_cardiologico;
  805.     }
  806.     public function setDiagnosticoClinicoCardiologico(?string $diagnostico_clinico_cardiologico): self
  807.     {
  808.         $this->diagnostico_clinico_cardiologico $diagnostico_clinico_cardiologico;
  809.         return $this;
  810.     }
  811.     /**
  812.      * @return Collection|Estudio[]
  813.      */
  814.     public function getEstudios(): Collection
  815.     {
  816.         return $this->estudios;
  817.     }
  818.     
  819.      public function ObtenerEstudios(): Collection
  820.     {
  821.         $criteria Criteria::create()
  822.             ->andWhere(Criteria::expr()->eq('estado'1));
  823.         
  824.         return $this->estudios->matching($criteria);
  825.         
  826.     }
  827.     public function addEstudio(Estudio $estudio): self
  828.     {
  829.         if (!$this->estudios->contains($estudio)) {
  830.             $this->estudios[] = $estudio;
  831.             $estudio->setHistoria($this);
  832.         }
  833.         return $this;
  834.     }
  835.     public function removeEstudio(Estudio $estudio): self
  836.     {
  837.         if ($this->estudios->removeElement($estudio)) {
  838.             // set the owning side to null (unless already changed)
  839.             if ($estudio->getHistoria() === $this) {
  840.                 $estudio->setHistoria(null);
  841.             }
  842.         }
  843.         return $this;
  844.     }
  845.     /**
  846.      * @return Collection|Epicrisis[]
  847.      */
  848.     public function getEpicrises(): Collection
  849.     {
  850.         return $this->epicrises;
  851.     }
  852.     public function addEpicrisis(Epicrisis $epicrisis): self
  853.     {
  854.         if (!$this->epicrises->contains($epicrisis)) {
  855.             $this->epicrises[] = $epicrisis;
  856.             $epicrisis->setHistoria($this);
  857.         }
  858.         return $this;
  859.     }
  860.     public function removeEpicrisis(Epicrisis $epicrisis): self
  861.     {
  862.         if ($this->epicrises->removeElement($epicrisis)) {
  863.             // set the owning side to null (unless already changed)
  864.             if ($epicrisis->getHistoria() === $this) {
  865.                 $epicrisis->setHistoria(null);
  866.             }
  867.         }
  868.         return $this;
  869.     }
  870.     
  871.     public function getTrabajaEn(): ?string
  872.     {
  873.         return $this->trabaja_en;
  874.     }
  875.     public function setTrabajaEn(?string $trabaja_en): self
  876.     {
  877.         $this->trabaja_en $trabaja_en;
  878.         return $this;
  879.     }
  880.     
  881.     public function getPuestoTrabajo(): ?string
  882.     {
  883.         return $this->puesto_trabajo;
  884.     }
  885.     public function setPuestoTrabajo(?string $puesto_trabajo): self
  886.     {
  887.         $this->puesto_trabajo $puesto_trabajo;
  888.         return $this;
  889.     }
  890.     
  891.     public function getPresentaSintomas(): ?string
  892.     {
  893.         return $this->presenta_sintomas;
  894.     }
  895.     public function setPresentaSintomas(?string $presenta_sintomas): self
  896.     {
  897.         $this->presenta_sintomas $presenta_sintomas;
  898.         return $this;
  899.     }
  900.     
  901.     public function getAislamiento(): ?string
  902.     {
  903.         return $this->aislamiento;
  904.     }
  905.     public function setAislamiento(?string $aislamiento): self
  906.     {
  907.         $this->aislamiento $aislamiento;
  908.         return $this;
  909.     }
  910.     
  911.     public function getCiudadTrabajo(): ?string
  912.     {
  913.         return $this->ciudad_trabajo;
  914.     }
  915.     public function setCiudadTrabajo(?string $ciudad_trabajo): self
  916.     {
  917.         $this->ciudad_trabajo $ciudad_trabajo;
  918.         return $this;
  919.     }
  920.     public function getTipoContingencia(): ?string
  921.     {
  922.         return $this->tipo_contingencia;
  923.     }
  924.     public function setTipoContingencia(?string $tipo_contingencia): self
  925.     {
  926.         $this->tipo_contingencia $tipo_contingencia;
  927.         return $this;
  928.     }
  929.     
  930.     public function getCertificadoCie10(): ?string
  931.     {
  932.         return $this->certificado_cie10;
  933.     }
  934.     public function setCertificadoCie10(?string $certificado_cie10): self
  935.     {
  936.         $this->certificado_cie10 $certificado_cie10;
  937.         return $this;
  938.     }
  939.     public function getGotaFrescaDisbiosis(): ?string
  940.     {
  941.         return $this->gota_fresca_disbiosis;
  942.     }
  943.     public function setGotaFrescaDisbiosis(?string $value): self
  944.     {
  945.         $this->gota_fresca_disbiosis $value;
  946.         return $this;
  947.     }
  948.     public function getGotaFrescaCristales(): ?string
  949.     {
  950.         return $this->gota_fresca_cristales;
  951.     }
  952.     public function setGotaFrescaCristales(?string $value): self
  953.     {
  954.         $this->gota_fresca_cristales $value;
  955.         return $this;
  956.     }
  957.     public function getGotaFrescaHiperglicemia(): ?string
  958.     {
  959.         return $this->gota_fresca_hiperglicemia;
  960.     }
  961.     public function setGotaFrescaHiperglicemia(?string $value): self
  962.     {
  963.         $this->gota_fresca_hiperglicemia $value;
  964.         return $this;
  965.     }
  966.     public function getGotaFrescaHipoxia(): ?string
  967.     {
  968.         return $this->gota_fresca_hipoxia;
  969.     }
  970.     public function setGotaFrescaHipoxia(?string $value): self
  971.     {
  972.         $this->gota_fresca_hipoxia $value;
  973.         return $this;
  974.     }
  975.     public function getGotaFrescaAcidez(): ?string
  976.     {
  977.         return $this->gota_fresca_acidez;
  978.     }
  979.     public function setGotaFrescaAcidez(?string $value): self
  980.     {
  981.         $this->gota_fresca_acidez $value;
  982.         return $this;
  983.     }
  984.     public function getGotaFrescaInflamacion(): ?string
  985.     {
  986.         return $this->gota_fresca_inflamacion;
  987.     }
  988.     public function setGotaFrescaInflamacion(?string $value): self
  989.     {
  990.         $this->gota_fresca_inflamacion $value;
  991.         return $this;
  992.     }
  993.     public function getHlbGrado(): ?string
  994.     {
  995.         return $this->hlb_grado;
  996.     }
  997.     public function setHlbGrado(?string $value): self
  998.     {
  999.         $this->hlb_grado $value;
  1000.         return $this;
  1001.     }
  1002.     public function getHlbIntoleranciaAlimenticia(): ?string
  1003.     {
  1004.         return $this->hlb_intolerancia_alimenticia;
  1005.     }
  1006.     public function setHlbIntoleranciaAlimenticia(?string $value): self
  1007.     {
  1008.         $this->hlb_intolerancia_alimenticia $value;
  1009.         return $this;
  1010.     }
  1011.     public function getHlbTerrenoDegenerativoDigestivo(): ?string
  1012.     {
  1013.         return $this->hlb_terreno_degenerativo_digestivo;
  1014.     }
  1015.     public function setHlbTerrenoDegenerativoDigestivo(?string $value): self
  1016.     {
  1017.         $this->hlb_terreno_degenerativo_digestivo $value;
  1018.         return $this;
  1019.     }
  1020.     public function getHlbTerrenoArtrosico(): ?string
  1021.     {
  1022.         return $this->hlb_terreno_artrosico;
  1023.     }
  1024.     public function setHlbTerrenoArtrosico(?string $value): self
  1025.     {
  1026.         $this->hlb_terreno_artrosico $value;
  1027.         return $this;
  1028.     }
  1029.     public function getHlbCnr(): ?string
  1030.     {
  1031.         return $this->hlb_cnr;
  1032.     }
  1033.     public function setHlbCnr(?string $value): self
  1034.     {
  1035.         $this->hlb_cnr $value;
  1036.         return $this;
  1037.     }
  1038.     public function getHlbIrritabilidadNerviosa(): ?string
  1039.     {
  1040.         return $this->hlb_irritabilidad_nerviosa;
  1041.     }
  1042.     public function setHlbIrritabilidadNerviosa(?string $value): self
  1043.     {
  1044.         $this->hlb_irritabilidad_nerviosa $value;
  1045.         return $this;
  1046.     }
  1047.     public function getHlbColesterol(): ?string
  1048.     {
  1049.         return $this->hlb_colesterol;
  1050.     }
  1051.     public function setHlbColesterol(?string $value): self
  1052.     {
  1053.         $this->hlb_colesterol $value;
  1054.         return $this;
  1055.     }
  1056.     public function getHlbProcesoHepatico(): ?string
  1057.     {
  1058.         return $this->hlb_proceso_hepatico;
  1059.     }
  1060.     public function setHlbProcesoHepatico(?string $value): self
  1061.     {
  1062.         $this->hlb_proceso_hepatico $value;
  1063.         return $this;
  1064.     }
  1065.     public function getHlbAlergia(): ?string
  1066.     {
  1067.         return $this->hlb_alergia;
  1068.     }
  1069.     public function setHlbAlergia(?string $value): self
  1070.     {
  1071.         $this->hlb_alergia $value;
  1072.         return $this;
  1073.     }
  1074.     public function getHlbEstres(): ?string
  1075.     {
  1076.         return $this->hlb_estres;
  1077.     }
  1078.     public function setHlbEstres(?string $value): self
  1079.     {
  1080.         $this->hlb_estres $value;
  1081.         return $this;
  1082.     }
  1083.     public function getHlbInflamacion(): ?string
  1084.     {
  1085.         return $this->hlb_inflamacion;
  1086.     }
  1087.     public function setHlbInflamacion(?string $value): self
  1088.     {
  1089.         $this->hlb_inflamacion $value;
  1090.         return $this;
  1091.     }
  1092.     public function getHlbAnemia(): ?string
  1093.     {
  1094.         return $this->hlb_anemia;
  1095.     }
  1096.     public function setHlbAnemia(?string $value): self
  1097.     {
  1098.         $this->hlb_anemia $value;
  1099.         return $this;
  1100.     }
  1101.     public function getHlbAfectacionMuscular(): ?string
  1102.     {
  1103.         return $this->hlb_afectacion_muscular;
  1104.     }
  1105.     public function setHlbAfectacionMuscular(?string $value): self
  1106.     {
  1107.         $this->hlb_afectacion_muscular $value;
  1108.         return $this;
  1109.     }
  1110.     public function getHlbSolToxico(): ?string
  1111.     {
  1112.         return $this->hlb_sol_toxico;
  1113.     }
  1114.     public function setHlbSolToxico(?string $value): self
  1115.     {
  1116.         $this->hlb_sol_toxico $value;
  1117.         return $this;
  1118.     }
  1119.     public function getHlbCongestionLinfatica(): ?string
  1120.     {
  1121.         return $this->hlb_congestion_linfatica;
  1122.     }
  1123.     public function setHlbCongestionLinfatica(?string $value): self
  1124.     {
  1125.         $this->hlb_congestion_linfatica $value;
  1126.         return $this;
  1127.     }
  1128.     
  1129. }