<?php
namespace App\Entity;
use App\Repository\DeliveryDetailRepository;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Symfony\Component\Validator\Constraints as Assert;
#[ORM\Entity(repositoryClass: DeliveryDetailRepository::class), ORM\Table(name: 'delivery_details')]
class DeliveryDetail
{
#[ORM\Id, ORM\GeneratedValue, ORM\Column(type: 'integer')]
private $id;
#[ORM\OneToOne(targetEntity: Cases::class, inversedBy: 'deliveryDetail', cascade: ['persist', 'remove'])]
#[ORM\JoinColumn(name: 'case_id', nullable: false)]
private $case;
#[ORM\OneToOne(targetEntity: WardBed::class, inversedBy: 'deliveryDetail', cascade: ['persist', 'remove'])]
#[ORM\JoinColumn(nullable: false)]
private $wardBed;
#[ORM\Column(type: 'string', nullable: false, columnDefinition: "enum('Boy', 'Girl', 'Other')")]
#[Assert\NotBlank]
private $babyGender;
#[ORM\Column(type: 'boolean')]
private bool $isAbortion = false;
#[ORM\Column(type: 'string', length: 7)]
#[Assert\NotBlank]
private $bpSystolic;
#[ORM\Column(type: 'string', length: 7)]
#[Assert\NotBlank]
private $bpDiastolic;
#[ORM\Column(type: 'string', length: 7)]
#[Assert\NotBlank]
private $babyTemp;
#[ORM\Column(type: 'string', nullable: false, columnDefinition: "enum('Good', 'Not Good')")]
#[Assert\NotBlank]
private $uterusPos;
#[ORM\Column(type: 'string', nullable: false, columnDefinition: "enum('Normal', 'Cracks')")]
#[Assert\NotBlank]
private $nipplePos;
#[ORM\ManyToOne(targetEntity: PncHighRisk::class)]
#[ORM\JoinColumn(name: 'danger_sign_id')]
private $dangerSign;
#[ORM\Column(type: 'string', nullable: false, columnDefinition: "enum('Normal', 'C section', 'Other minor intervention', 'Still birth')")]
#[Assert\NotBlank]
private $deliveryType;
#[ORM\Column(type: 'string', nullable: false, columnDefinition: "enum('Alive', 'Death after birth', 'Still birth', 'Death before delivery')")]
#[Assert\NotBlank]
private $babyStatus;
#[ORM\Column(type: 'float')]
#[Assert\NotBlank]
private $babyWeight;
#[ORM\Column(type: 'boolean')]
private bool $isCriedAfterBirth = true;
#[ORM\Column(type: 'boolean')]
private bool $isPassedStool = true;
#[ORM\Column(type: 'boolean')]
private bool $isDiarrhea = false;
#[ORM\Column(type: 'boolean')]
private bool $isPnemonia = false;
#[ORM\Column(type: 'boolean')]
private bool $isPreterm = false;
#[ORM\Column(type: 'boolean')]
private bool $isAsphaxia = false;
#[ORM\Column(type: 'boolean')]
private bool $isMalaria = false;
#[ORM\Column(type: 'boolean')]
private bool $isCongenitalDetected = false;
#[ORM\Column(type: 'boolean')]
private bool $isInjury = false;
#[ORM\Column(type: 'boolean')]
private bool $isMr = false;
#[ORM\Column(type: 'boolean')]
private bool $isNcd = false;
#[ORM\Column(type: 'boolean')]
private bool $isVomitting = true;
#[ORM\Column(type: 'boolean')]
private bool $isActiveness = true;
#[ORM\Column(type: 'string', nullable: false, columnDefinition: "enum('Good', 'Bad')")]
private $respiration;
#[ORM\Column(type: 'boolean')]
private bool $isDiptheria = false;
#[ORM\Column(type: 'boolean')]
private bool $isTetanus = false;
#[ORM\Column(type: 'boolean')]
private bool $isPertusis = false;
#[ORM\Column(type: 'boolean')]
private bool $isMeningitis = false;
#[ORM\Column(type: 'boolean')]
private bool $isAids = false;
#[ORM\Column(type: 'boolean')]
private bool $isConvulsions = true;
#[ORM\Column(type: 'boolean')]
private bool $isBreastSuckling = true;
#[ORM\Column(type: 'boolean')]
private bool $isChestInSide = true;
#[ORM\Column(type: 'boolean')]
private bool $isJaundice = false;
#[ORM\Column(type: 'string', nullable: false, columnDefinition: "enum('Good', 'With swelling and pus')")]
#[Assert\NotBlank]
private $umbilicalCord;
#[ORM\Column(type: 'boolean')]
private bool $isSepsis = false;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $otherComplications;
#[ORM\Column(type: 'boolean')]
private bool $isBathAfterBirth = true;
#[ORM\Column(type: 'text', nullable: true)]
private ?string $remarks;
#[ORM\OneToOne(targetEntity: Patient::class, cascade: ['persist', 'remove'])]
private $child;
#[ORM\OneToOne(targetEntity: Cases::class, cascade: ['persist', 'remove'])]
private $childCase;
#[Gedmo\Timestampable(on: 'create'), ORM\Column(type: 'datetime')]
private $createdAt;
public function getId(): ?int
{
return $this->id;
}
public function getCase(): ?Cases
{
return $this->case;
}
public function setCase(Cases $case): self
{
$this->case = $case;
return $this;
}
public function getWardBed(): ?WardBed
{
return $this->wardBed;
}
public function setWardBed(WardBed $wardBed): self
{
$this->wardBed = $wardBed;
return $this;
}
public function getBabyGender(): ?string
{
return $this->babyGender;
}
public function setBabyGender(string $babyGender): self
{
$this->babyGender = $babyGender;
return $this;
}
public function getIsAbortion(): ?bool
{
return $this->isAbortion;
}
public function setIsAbortion(bool $isAbortion): self
{
$this->isAbortion = $isAbortion;
return $this;
}
public function getBpSystolic(): ?string
{
return $this->bpSystolic;
}
public function setBpSystolic(string $bpSystolic): self
{
$this->bpSystolic = $bpSystolic;
return $this;
}
public function getBpDiastolic(): ?string
{
return $this->bpDiastolic;
}
public function setBpDiastolic(string $bpDiastolic): self
{
$this->bpDiastolic = $bpDiastolic;
return $this;
}
public function getBabyTemp(): ?string
{
return $this->babyTemp;
}
public function setBabyTemp(string $babyTemp): self
{
$this->babyTemp = $babyTemp;
return $this;
}
public function getUterusPos(): ?string
{
return $this->uterusPos;
}
public function setUterusPos(string $uterusPos): self
{
$this->uterusPos = $uterusPos;
return $this;
}
public function getNipplePos(): ?string
{
return $this->nipplePos;
}
public function setNipplePos(string $nipplePos): self
{
$this->nipplePos = $nipplePos;
return $this;
}
public function getDangerSign(): ?PncHighRisk
{
return $this->dangerSign;
}
public function setDangerSign(PncHighRisk $dangerSign): self
{
$this->dangerSign = $dangerSign;
return $this;
}
public function getDeliveryType(): ?string
{
return $this->deliveryType;
}
public function setDeliveryType(string $deliveryType): self
{
$this->deliveryType = $deliveryType;
return $this;
}
public function getBabyStatus(): ?string
{
return $this->babyStatus;
}
public function setBabyStatus(string $babyStatus): self
{
$this->babyStatus = $babyStatus;
return $this;
}
public function getBabyWeight(): ?string
{
return $this->babyWeight;
}
public function setBabyWeight(string $babyWeight): self
{
$this->babyWeight = $babyWeight;
return $this;
}
public function getIsCriedAfterBirth(): ?bool
{
return $this->isCriedAfterBirth;
}
public function setIsCriedAfterBirth(bool $isCriedAfterBirth): self
{
$this->isCriedAfterBirth = $isCriedAfterBirth;
return $this;
}
public function getIsPassedStool(): ?bool
{
return $this->isPassedStool;
}
public function setIsPassedStool(bool $isPassedStool): self
{
$this->isPassedStool = $isPassedStool;
return $this;
}
public function getIsDiarrhea(): ?bool
{
return $this->isDiarrhea;
}
public function setIsDiarrhea(bool $isDiarrhea): self
{
$this->isDiarrhea = $isDiarrhea;
return $this;
}
public function getIsPnemonia(): ?bool
{
return $this->isPnemonia;
}
public function setIsPnemonia(bool $isPnemonia): self
{
$this->isPnemonia = $isPnemonia;
return $this;
}
public function getIsPreterm(): ?bool
{
return $this->isPreterm;
}
public function setIsPreterm(bool $isPreterm): self
{
$this->isPreterm = $isPreterm;
return $this;
}
public function getIsAsphaxia(): ?bool
{
return $this->isAsphaxia;
}
public function setIsAsphaxia(bool $isAsphaxia): self
{
$this->isAsphaxia = $isAsphaxia;
return $this;
}
public function getIsMalaria(): ?bool
{
return $this->isMalaria;
}
public function setIsMalaria(bool $isMalaria): self
{
$this->isMalaria = $isMalaria;
return $this;
}
public function getIsCongenitalDetected(): ?bool
{
return $this->isCongenitalDetected;
}
public function setIsCongenitalDetected(bool $isCongenitalDetected): self
{
$this->isCongenitalDetected = $isCongenitalDetected;
return $this;
}
public function getIsInjury(): ?bool
{
return $this->isInjury;
}
public function setIsInjury(bool $isInjury): self
{
$this->isInjury = $isInjury;
return $this;
}
public function getIsMr(): ?bool
{
return $this->isMr;
}
public function setIsMr(bool $isMr): self
{
$this->isMr = $isMr;
return $this;
}
public function getIsNcd(): ?bool
{
return $this->isNcd;
}
public function setIsNcd(bool $isNcd): self
{
$this->isNcd = $isNcd;
return $this;
}
public function getIsVomitting(): ?bool
{
return $this->isVomitting;
}
public function setIsVomitting(bool $isVomitting): self
{
$this->isVomitting = $isVomitting;
return $this;
}
public function getIsActiveness(): ?bool
{
return $this->isActiveness;
}
public function setIsActiveness(bool $isActiveness): self
{
$this->isActiveness = $isActiveness;
return $this;
}
public function getRespiration(): ?string
{
return $this->respiration;
}
public function setRespiration(string $respiration): self
{
$this->respiration = $respiration;
return $this;
}
public function getIsDiptheria(): ?bool
{
return $this->isDiptheria;
}
public function setIsDiptheria(bool $isDiptheria): self
{
$this->isDiptheria = $isDiptheria;
return $this;
}
public function getIsTetanus(): ?bool
{
return $this->isTetanus;
}
public function setIsTetanus(bool $isTetanus): self
{
$this->isTetanus = $isTetanus;
return $this;
}
public function getIsPertusis(): ?bool
{
return $this->isPertusis;
}
public function setIsPertusis(bool $isPertusis): self
{
$this->isPertusis = $isPertusis;
return $this;
}
public function getIsMeningitis(): ?bool
{
return $this->isMeningitis;
}
public function setIsMeningitis(bool $isMeningitis): self
{
$this->isMeningitis = $isMeningitis;
return $this;
}
public function getIsAids(): ?bool
{
return $this->isAids;
}
public function setIsAids(bool $isAids): self
{
$this->isAids = $isAids;
return $this;
}
public function getIsConvulsions(): ?bool
{
return $this->isConvulsions;
}
public function setIsConvulsions(bool $isConvulsions): self
{
$this->isConvulsions = $isConvulsions;
return $this;
}
public function getIsBreastSuckling(): ?bool
{
return $this->isBreastSuckling;
}
public function setIsBreastSuckling(bool $isBreastSuckling): self
{
$this->isBreastSuckling = $isBreastSuckling;
return $this;
}
public function getIsChestInSide(): ?bool
{
return $this->isChestInSide;
}
public function setIsChestInSide(bool $isChestInSide): self
{
$this->isChestInSide = $isChestInSide;
return $this;
}
public function getIsJaundice(): ?bool
{
return $this->isJaundice;
}
public function setIsJaundice(bool $isJaundice): self
{
$this->isJaundice = $isJaundice;
return $this;
}
public function getUmbilicalCord(): ?string
{
return $this->umbilicalCord;
}
public function setUmbilicalCord(string $umbilicalCord): self
{
$this->umbilicalCord = $umbilicalCord;
return $this;
}
public function getIsSepsis(): ?bool
{
return $this->isSepsis;
}
public function setIsSepsis(bool $isSepsis): self
{
$this->isSepsis = $isSepsis;
return $this;
}
public function getOtherComplications(): ?string
{
return $this->otherComplications;
}
public function setOtherComplications(?string $otherComplications): self
{
$this->otherComplications = $otherComplications;
return $this;
}
public function getIsBathAfterBirth(): ?bool
{
return $this->isBathAfterBirth;
}
public function setIsBathAfterBirth(bool $isBathAfterBirth): self
{
$this->isBathAfterBirth = $isBathAfterBirth;
return $this;
}
public function getRemarks(): ?string
{
return $this->remarks;
}
public function setRemarks(?string $remarks): self
{
$this->remarks = $remarks;
return $this;
}
public function getChild(): ?Patient
{
return $this->child;
}
public function setChild(?Patient $child): self
{
$this->child = $child;
return $this;
}
public function getChildCase(): ?Cases
{
return $this->childCase;
}
public function setChildCase(?Cases $childCase): self
{
$this->childCase = $childCase;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
}