src/Entity/DeliveryDetail.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DeliveryDetailRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. use Symfony\Component\Validator\Constraints as Assert;
  7. #[ORM\Entity(repositoryClassDeliveryDetailRepository::class), ORM\Table(name'delivery_details')]
  8. class DeliveryDetail
  9. {
  10.     #[ORM\IdORM\GeneratedValueORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\OneToOne(targetEntityCases::class, inversedBy'deliveryDetail'cascade: ['persist''remove'])]
  13.     #[ORM\JoinColumn(name'case_id'nullablefalse)]
  14.     private $case;
  15.     #[ORM\OneToOne(targetEntityWardBed::class, inversedBy'deliveryDetail'cascade: ['persist''remove'])]
  16.     #[ORM\JoinColumn(nullablefalse)]
  17.     private $wardBed;
  18.     #[ORM\Column(type'string'nullablefalsecolumnDefinition"enum('Boy', 'Girl', 'Other')")]
  19.     #[Assert\NotBlank]
  20.     private $babyGender;
  21.     #[ORM\Column(type'boolean')]
  22.     private bool $isAbortion false;
  23.     #[ORM\Column(type'string'length7)]
  24.     #[Assert\NotBlank]
  25.     private $bpSystolic;
  26.     #[ORM\Column(type'string'length7)]
  27.     #[Assert\NotBlank]
  28.     private $bpDiastolic;
  29.     #[ORM\Column(type'string'length7)]
  30.     #[Assert\NotBlank]
  31.     private $babyTemp;
  32.     #[ORM\Column(type'string'nullablefalsecolumnDefinition"enum('Good', 'Not Good')")]
  33.     #[Assert\NotBlank]
  34.     private $uterusPos;
  35.     #[ORM\Column(type'string'nullablefalsecolumnDefinition"enum('Normal', 'Cracks')")]
  36.     #[Assert\NotBlank]
  37.     private $nipplePos;
  38.     #[ORM\ManyToOne(targetEntityPncHighRisk::class)]
  39.     #[ORM\JoinColumn(name'danger_sign_id')]
  40.     private $dangerSign;
  41.     #[ORM\Column(type'string'nullablefalsecolumnDefinition"enum('Normal', 'C section', 'Other minor intervention', 'Still birth')")]
  42.     #[Assert\NotBlank]
  43.     private $deliveryType;
  44.     #[ORM\Column(type'string'nullablefalsecolumnDefinition"enum('Alive', 'Death after birth', 'Still birth', 'Death before delivery')")]
  45.     #[Assert\NotBlank]
  46.     private $babyStatus;
  47.     #[ORM\Column(type'float')]
  48.     #[Assert\NotBlank]
  49.     private $babyWeight;
  50.     #[ORM\Column(type'boolean')]
  51.     private bool $isCriedAfterBirth true;
  52.     #[ORM\Column(type'boolean')]
  53.     private bool $isPassedStool true;
  54.     #[ORM\Column(type'boolean')]
  55.     private bool $isDiarrhea false;
  56.     #[ORM\Column(type'boolean')]
  57.     private bool $isPnemonia false;
  58.     #[ORM\Column(type'boolean')]
  59.     private bool $isPreterm false;
  60.     #[ORM\Column(type'boolean')]
  61.     private bool $isAsphaxia false;
  62.     #[ORM\Column(type'boolean')]
  63.     private bool $isMalaria false;
  64.     #[ORM\Column(type'boolean')]
  65.     private bool $isCongenitalDetected false;
  66.     #[ORM\Column(type'boolean')]
  67.     private bool $isInjury false;
  68.     #[ORM\Column(type'boolean')]
  69.     private bool $isMr false;
  70.     #[ORM\Column(type'boolean')]
  71.     private bool $isNcd false;
  72.     #[ORM\Column(type'boolean')]
  73.     private bool $isVomitting true;
  74.     #[ORM\Column(type'boolean')]
  75.     private bool $isActiveness true;
  76.     #[ORM\Column(type'string'nullablefalsecolumnDefinition"enum('Good', 'Bad')")]
  77.     private $respiration;
  78.     #[ORM\Column(type'boolean')]
  79.     private bool $isDiptheria false;
  80.     #[ORM\Column(type'boolean')]
  81.     private bool $isTetanus false;
  82.     #[ORM\Column(type'boolean')]
  83.     private bool $isPertusis false;
  84.     #[ORM\Column(type'boolean')]
  85.     private bool $isMeningitis false;
  86.     #[ORM\Column(type'boolean')]
  87.     private bool $isAids false;
  88.     #[ORM\Column(type'boolean')]
  89.     private bool $isConvulsions true;
  90.     #[ORM\Column(type'boolean')]
  91.     private bool $isBreastSuckling true;
  92.     #[ORM\Column(type'boolean')]
  93.     private bool $isChestInSide true;
  94.     #[ORM\Column(type'boolean')]
  95.     private bool $isJaundice false;
  96.     #[ORM\Column(type'string'nullablefalsecolumnDefinition"enum('Good', 'With swelling and pus')")]
  97.     #[Assert\NotBlank]
  98.     private $umbilicalCord;
  99.     #[ORM\Column(type'boolean')]
  100.     private bool $isSepsis false;
  101.     #[ORM\Column(type'string'length255nullabletrue)]
  102.     private $otherComplications;
  103.     #[ORM\Column(type'boolean')]
  104.     private bool $isBathAfterBirth true;
  105.     #[ORM\Column(type'text'nullabletrue)]
  106.     private ?string $remarks;
  107.     #[ORM\OneToOne(targetEntityPatient::class, cascade: ['persist''remove'])]
  108.     private $child;
  109.     #[ORM\OneToOne(targetEntityCases::class, cascade: ['persist''remove'])]
  110.     private $childCase;
  111.     #[Gedmo\Timestampable(on'create'), ORM\Column(type'datetime')]
  112.     private $createdAt;
  113.     public function getId(): ?int
  114.     {
  115.         return $this->id;
  116.     }
  117.     public function getCase(): ?Cases
  118.     {
  119.         return $this->case;
  120.     }
  121.     public function setCase(Cases $case): self
  122.     {
  123.         $this->case $case;
  124.         return $this;
  125.     }
  126.     public function getWardBed(): ?WardBed
  127.     {
  128.         return $this->wardBed;
  129.     }
  130.     public function setWardBed(WardBed $wardBed): self
  131.     {
  132.         $this->wardBed $wardBed;
  133.         return $this;
  134.     }
  135.     public function getBabyGender(): ?string
  136.     {
  137.         return $this->babyGender;
  138.     }
  139.     public function setBabyGender(string $babyGender): self
  140.     {
  141.         $this->babyGender $babyGender;
  142.         return $this;
  143.     }
  144.     public function getIsAbortion(): ?bool
  145.     {
  146.         return $this->isAbortion;
  147.     }
  148.     public function setIsAbortion(bool $isAbortion): self
  149.     {
  150.         $this->isAbortion $isAbortion;
  151.         return $this;
  152.     }
  153.     public function getBpSystolic(): ?string
  154.     {
  155.         return $this->bpSystolic;
  156.     }
  157.     public function setBpSystolic(string $bpSystolic): self
  158.     {
  159.         $this->bpSystolic $bpSystolic;
  160.         return $this;
  161.     }
  162.     public function getBpDiastolic(): ?string
  163.     {
  164.         return $this->bpDiastolic;
  165.     }
  166.     public function setBpDiastolic(string $bpDiastolic): self
  167.     {
  168.         $this->bpDiastolic $bpDiastolic;
  169.         return $this;
  170.     }
  171.     public function getBabyTemp(): ?string
  172.     {
  173.         return $this->babyTemp;
  174.     }
  175.     public function setBabyTemp(string $babyTemp): self
  176.     {
  177.         $this->babyTemp $babyTemp;
  178.         return $this;
  179.     }
  180.     public function getUterusPos(): ?string
  181.     {
  182.         return $this->uterusPos;
  183.     }
  184.     public function setUterusPos(string $uterusPos): self
  185.     {
  186.         $this->uterusPos $uterusPos;
  187.         return $this;
  188.     }
  189.     public function getNipplePos(): ?string
  190.     {
  191.         return $this->nipplePos;
  192.     }
  193.     public function setNipplePos(string $nipplePos): self
  194.     {
  195.         $this->nipplePos $nipplePos;
  196.         return $this;
  197.     }
  198.     public function getDangerSign(): ?PncHighRisk
  199.     {
  200.         return $this->dangerSign;
  201.     }
  202.     public function setDangerSign(PncHighRisk $dangerSign): self
  203.     {
  204.         $this->dangerSign $dangerSign;
  205.         return $this;
  206.     }
  207.     public function getDeliveryType(): ?string
  208.     {
  209.         return $this->deliveryType;
  210.     }
  211.     public function setDeliveryType(string $deliveryType): self
  212.     {
  213.         $this->deliveryType $deliveryType;
  214.         return $this;
  215.     }
  216.     public function getBabyStatus(): ?string
  217.     {
  218.         return $this->babyStatus;
  219.     }
  220.     public function setBabyStatus(string $babyStatus): self
  221.     {
  222.         $this->babyStatus $babyStatus;
  223.         return $this;
  224.     }
  225.     public function getBabyWeight(): ?string
  226.     {
  227.         return $this->babyWeight;
  228.     }
  229.     public function setBabyWeight(string $babyWeight): self
  230.     {
  231.         $this->babyWeight $babyWeight;
  232.         return $this;
  233.     }
  234.     public function getIsCriedAfterBirth(): ?bool
  235.     {
  236.         return $this->isCriedAfterBirth;
  237.     }
  238.     public function setIsCriedAfterBirth(bool $isCriedAfterBirth): self
  239.     {
  240.         $this->isCriedAfterBirth $isCriedAfterBirth;
  241.         return $this;
  242.     }
  243.     public function getIsPassedStool(): ?bool
  244.     {
  245.         return $this->isPassedStool;
  246.     }
  247.     public function setIsPassedStool(bool $isPassedStool): self
  248.     {
  249.         $this->isPassedStool $isPassedStool;
  250.         return $this;
  251.     }
  252.     public function getIsDiarrhea(): ?bool
  253.     {
  254.         return $this->isDiarrhea;
  255.     }
  256.     public function setIsDiarrhea(bool $isDiarrhea): self
  257.     {
  258.         $this->isDiarrhea $isDiarrhea;
  259.         return $this;
  260.     }
  261.     public function getIsPnemonia(): ?bool
  262.     {
  263.         return $this->isPnemonia;
  264.     }
  265.     public function setIsPnemonia(bool $isPnemonia): self
  266.     {
  267.         $this->isPnemonia $isPnemonia;
  268.         return $this;
  269.     }
  270.     public function getIsPreterm(): ?bool
  271.     {
  272.         return $this->isPreterm;
  273.     }
  274.     public function setIsPreterm(bool $isPreterm): self
  275.     {
  276.         $this->isPreterm $isPreterm;
  277.         return $this;
  278.     }
  279.     public function getIsAsphaxia(): ?bool
  280.     {
  281.         return $this->isAsphaxia;
  282.     }
  283.     public function setIsAsphaxia(bool $isAsphaxia): self
  284.     {
  285.         $this->isAsphaxia $isAsphaxia;
  286.         return $this;
  287.     }
  288.     public function getIsMalaria(): ?bool
  289.     {
  290.         return $this->isMalaria;
  291.     }
  292.     public function setIsMalaria(bool $isMalaria): self
  293.     {
  294.         $this->isMalaria $isMalaria;
  295.         return $this;
  296.     }
  297.     public function getIsCongenitalDetected(): ?bool
  298.     {
  299.         return $this->isCongenitalDetected;
  300.     }
  301.     public function setIsCongenitalDetected(bool $isCongenitalDetected): self
  302.     {
  303.         $this->isCongenitalDetected $isCongenitalDetected;
  304.         return $this;
  305.     }
  306.     public function getIsInjury(): ?bool
  307.     {
  308.         return $this->isInjury;
  309.     }
  310.     public function setIsInjury(bool $isInjury): self
  311.     {
  312.         $this->isInjury $isInjury;
  313.         return $this;
  314.     }
  315.     public function getIsMr(): ?bool
  316.     {
  317.         return $this->isMr;
  318.     }
  319.     public function setIsMr(bool $isMr): self
  320.     {
  321.         $this->isMr $isMr;
  322.         return $this;
  323.     }
  324.     public function getIsNcd(): ?bool
  325.     {
  326.         return $this->isNcd;
  327.     }
  328.     public function setIsNcd(bool $isNcd): self
  329.     {
  330.         $this->isNcd $isNcd;
  331.         return $this;
  332.     }
  333.     public function getIsVomitting(): ?bool
  334.     {
  335.         return $this->isVomitting;
  336.     }
  337.     public function setIsVomitting(bool $isVomitting): self
  338.     {
  339.         $this->isVomitting $isVomitting;
  340.         return $this;
  341.     }
  342.     public function getIsActiveness(): ?bool
  343.     {
  344.         return $this->isActiveness;
  345.     }
  346.     public function setIsActiveness(bool $isActiveness): self
  347.     {
  348.         $this->isActiveness $isActiveness;
  349.         return $this;
  350.     }
  351.     public function getRespiration(): ?string
  352.     {
  353.         return $this->respiration;
  354.     }
  355.     public function setRespiration(string $respiration): self
  356.     {
  357.         $this->respiration $respiration;
  358.         return $this;
  359.     }
  360.     public function getIsDiptheria(): ?bool
  361.     {
  362.         return $this->isDiptheria;
  363.     }
  364.     public function setIsDiptheria(bool $isDiptheria): self
  365.     {
  366.         $this->isDiptheria $isDiptheria;
  367.         return $this;
  368.     }
  369.     public function getIsTetanus(): ?bool
  370.     {
  371.         return $this->isTetanus;
  372.     }
  373.     public function setIsTetanus(bool $isTetanus): self
  374.     {
  375.         $this->isTetanus $isTetanus;
  376.         return $this;
  377.     }
  378.     public function getIsPertusis(): ?bool
  379.     {
  380.         return $this->isPertusis;
  381.     }
  382.     public function setIsPertusis(bool $isPertusis): self
  383.     {
  384.         $this->isPertusis $isPertusis;
  385.         return $this;
  386.     }
  387.     public function getIsMeningitis(): ?bool
  388.     {
  389.         return $this->isMeningitis;
  390.     }
  391.     public function setIsMeningitis(bool $isMeningitis): self
  392.     {
  393.         $this->isMeningitis $isMeningitis;
  394.         return $this;
  395.     }
  396.     public function getIsAids(): ?bool
  397.     {
  398.         return $this->isAids;
  399.     }
  400.     public function setIsAids(bool $isAids): self
  401.     {
  402.         $this->isAids $isAids;
  403.         return $this;
  404.     }
  405.     public function getIsConvulsions(): ?bool
  406.     {
  407.         return $this->isConvulsions;
  408.     }
  409.     public function setIsConvulsions(bool $isConvulsions): self
  410.     {
  411.         $this->isConvulsions $isConvulsions;
  412.         return $this;
  413.     }
  414.     public function getIsBreastSuckling(): ?bool
  415.     {
  416.         return $this->isBreastSuckling;
  417.     }
  418.     public function setIsBreastSuckling(bool $isBreastSuckling): self
  419.     {
  420.         $this->isBreastSuckling $isBreastSuckling;
  421.         return $this;
  422.     }
  423.     public function getIsChestInSide(): ?bool
  424.     {
  425.         return $this->isChestInSide;
  426.     }
  427.     public function setIsChestInSide(bool $isChestInSide): self
  428.     {
  429.         $this->isChestInSide $isChestInSide;
  430.         return $this;
  431.     }
  432.     public function getIsJaundice(): ?bool
  433.     {
  434.         return $this->isJaundice;
  435.     }
  436.     public function setIsJaundice(bool $isJaundice): self
  437.     {
  438.         $this->isJaundice $isJaundice;
  439.         return $this;
  440.     }
  441.     public function getUmbilicalCord(): ?string
  442.     {
  443.         return $this->umbilicalCord;
  444.     }
  445.     public function setUmbilicalCord(string $umbilicalCord): self
  446.     {
  447.         $this->umbilicalCord $umbilicalCord;
  448.         return $this;
  449.     }
  450.     public function getIsSepsis(): ?bool
  451.     {
  452.         return $this->isSepsis;
  453.     }
  454.     public function setIsSepsis(bool $isSepsis): self
  455.     {
  456.         $this->isSepsis $isSepsis;
  457.         return $this;
  458.     }
  459.     public function getOtherComplications(): ?string
  460.     {
  461.         return $this->otherComplications;
  462.     }
  463.     public function setOtherComplications(?string $otherComplications): self
  464.     {
  465.         $this->otherComplications $otherComplications;
  466.         return $this;
  467.     }
  468.     public function getIsBathAfterBirth(): ?bool
  469.     {
  470.         return $this->isBathAfterBirth;
  471.     }
  472.     public function setIsBathAfterBirth(bool $isBathAfterBirth): self
  473.     {
  474.         $this->isBathAfterBirth $isBathAfterBirth;
  475.         return $this;
  476.     }
  477.     public function getRemarks(): ?string
  478.     {
  479.         return $this->remarks;
  480.     }
  481.     public function setRemarks(?string $remarks): self
  482.     {
  483.         $this->remarks $remarks;
  484.         return $this;
  485.     }
  486.     public function getChild(): ?Patient
  487.     {
  488.         return $this->child;
  489.     }
  490.     public function setChild(?Patient $child): self
  491.     {
  492.         $this->child $child;
  493.         return $this;
  494.     }
  495.     public function getChildCase(): ?Cases
  496.     {
  497.         return $this->childCase;
  498.     }
  499.     public function setChildCase(?Cases $childCase): self
  500.     {
  501.         $this->childCase $childCase;
  502.         return $this;
  503.     }
  504.     public function getCreatedAt(): ?\DateTimeInterface
  505.     {
  506.         return $this->createdAt;
  507.     }
  508. }