<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use App\Entity\Card;
use App\Entity\SpecialiteDocteur;
use App\Entity\Docteur;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
use ApiPlatform\Core\Annotation\ApiResource;
use Symfony\Component\Validator\Constraints as Assert;
use App\Repository\InterventionRepository;
use ApiPlatform\Core\Annotation\ApiFilter;
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\SearchFilter;
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\DateFilter;
use ApiPlatform\Serializer\Filter\PropertyFilter;
/**
* Intervention
*
* @ORM\Table()
* @ORM\Entity(repositoryClass=InterventionRepository::class)
* @ApiResource(
* attributes={
* "filters"={
* "intervention.order",
* "intervention.search",
* "intervention.boolean",
* "intervention.date",
* "intervention.date.after",
* "intervention.date.before",
* "intervention.boolean.equal"
* },
* "force_eager"=false,
* "normalization_context"={"groups"={"docteur", "client", "user", "read", "media", "write"}},
* "denormalization_context"={"groups"={"read", "user", "media"}}
* },
* collectionOperations={
* "get"={"method"="GET"},
* "post"={"method"="POST", "route_name"="api_interventions_post_collection"},
* "post_visio"={"method"="POST", "route_name"="api_interventions_post_visio"}
* },
* itemOperations={
* "get"={"method"="GET"},
* "put"={"method"="PUT"},
* "confirmation"={"method"="PUT", "route_name"="api_interventions_confirmation"},
* "recu"={"method"="PUT", "route_name"="api_interventions_recu"},
* "cancel"={"method"="PUT", "route_name"="api_interventions_cancel"},
* "cancel_by_docteur"={"method"="PUT", "route_name"="api_interventions_cancel_by_docteur"},
* "doctorNotFound"={"method"="PUT", "route_name"="api_interventions_notfound"}
* }
* )
* @ApiFilter(SearchFilter::class, properties={
* "numeroReference": "exact",
* "docteur.id": "exact",
* "horodateCreation": "exact",
* "modeIntervention": "exact"
* })
* @ApiFilter(DateFilter::class, properties={"horodateCreation"})
*/
class Intervention
{
const ETAT_NOT_FOUND = "not_found";
const ETAT_SCHEDULED = "scheduled";
const ETAT_SCHEDULED_ACCEPTED = "scheduled_accepted";
const ETAT_ISSUED = "emis";
const ETAT_INIT_CONSULTATION = "initConsultation";
const ETAT_END = "endConsultation";
const ETAT_CANCEL = "cancel";
const ETAT_VALIDATE = "validation";
const TYPE_WEB = "web"; //old
//new type
const TYPE_VISIO = "visio";
const TYPE_MOBILE = "mobile";
const TYPE_DOMICILE = "domicile";
// add statuts for mike => READY TO GO
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*
* @Groups({"read"})
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="numeroReference", type="string", length=100)
*
* @Assert\NotBlank()
* @Groups({"read"})
*/
private $numeroReference;
/**
* @var string
* @ORM\Column(name="redirectLeMedecin", type="string", nullable=true)
** @Groups({"read"})
*/
private $redirectLeMedecin = '';
/**
* @var string
*
* @ORM\Column(name="chargeToken", type="string", length=50, nullable=true)
*/
private $chargeToken;
/**
* @var string
*
* @ORM\Column(name="etat", type="string", length=100)
*
* @Assert\NotBlank()
* @Groups({"read"})
*/
private $etat;
/**
* @var string
*
* @ORM\Column(type="string", length=250, nullable=true)
* @Groups({"read"})
*/
private $motifEtatAnnule;
/**
* @var string
*
* @ORM\Column(name="typeIntervention", type="string", length=20)
*
* @Assert\NotBlank()
* @Groups({"read"})
*/
private $typeIntervention;
/**
* @var string
*
* @ORM\Column(name="modeIntervention", type="string", length=20)
*
* @Assert\NotBlank()
* @Groups({"read"})
*/
private $modeIntervention;
/**
* @var \DateTime
*
* @ORM\Column(name="horodateIntervention", type="datetime")
*
* @Assert\NotBlank()
* @Groups({"read"})
*/
private $horodateIntervention;
/**
* @var string
*
* @ORM\Column(type="string", length=255)
*
* @Assert\NotBlank()
* @Groups({"read"})
*/
private $adresse;
/**
* @var string
*
* @ORM\Column(type="string", length=10, nullable=true)
*
* @Groups({"read"})
*/
private $codePostal;
/**
* @var string
*
* @ORM\Column(type="string", length=50)
*
* @Assert\NotBlank()
* @Groups({"read"})
*/
private $pays;
/**
* @var text
*
* @ORM\Column(type="text", nullable=true)
* @Groups({"read"})
*/
private $complement;
/**
* @var string
*
* @ORM\Column(name="sexe", type="string", length=20, nullable=true)
* @Groups({"read"})
*/
private $sexe;
/**
* @var string
*
* @ORM\Column(name="age", type="integer")
*
* @Assert\NotBlank()
* @Groups({"read"})
*/
private $age;
/**
* @var int
*
* @ORM\Column(name="prix", type="float")
*
* @Assert\NotBlank()
* @Groups({"read"})
*/
private $prix;
/**
* @var int
*
* @ORM\Column(name="supplement", type="float")
*
* @Assert\NotBlank()
* @Groups({"read"})
*/
private $supplement;
/**
* @var string
*
* @ORM\Column(name="typeDay", type="string", length=20, nullable=true)
* @Groups({"read"})
*/
private $typeDay;
/**
* @var text
*
* @ORM\Column(name="typeHeure", type="string", length=20, nullable=true)
* @Groups({"read"})
*/
private $typeHeure;
/**
* @var text
*
* @ORM\Column(name="symptomes", type="string", length=100, nullable=true)
* @Groups({"read"})
*/
private $symptomes;
/**
* @var text
*
* @ORM\Column(name="commentaires", type="text", nullable=true)
* @Groups({"read"})
*/
private $commentaires;
/**
* @var int
*
* @ORM\Column(name="noteIntervention", type="integer")
*
* @Assert\NotBlank()
* @Groups({"read"})
*/
private $noteIntervention;
/**
* @var int
*
* @ORM\Column(name="commission", type="integer")
* @Groups({"read"})
*/
private $commission;
/**
* @var int
*
* @ORM\Column(name="delaiAttente", type="integer")
*
* @Assert\NotBlank()
* @Groups({"read"})
*/
private $delaiAttente;
/**
* @var int
*
* @ORM\Column(name="dureeIntervention", type="integer")
*
* @Assert\NotBlank()
* @Groups({"read"})
*/
private $dureeIntervention;
/**
* @var text
*
* @ORM\Column(name="motifIntervention", type="text", nullable=true)
* @Groups({"read"})
*/
private $motifIntervention;
/**
* @var datetime
*
* @ORM\Column(name="horodateCreation", type="datetime")
*
* @Assert\NotBlank()
* @Groups({"read"})
*/
private $horodateCreation;
/**
* @var
*
* @ORM\ManyToOne(targetEntity="App\Entity\Card")
* @ORM\JoinColumn(onDelete="SET NULL")
* @Groups({"read"})
*/
private $carteBancaire;
/**
* @var Docteur
*
* @ORM\ManyToOne(targetEntity="App\Entity\Docteur", cascade={"persist"})
* @ORM\JoinColumn(onDelete="SET NULL")
* @Groups({"docteur"})
*/
private $docteur;
/**
* @var Client
*
* @ORM\ManyToOne(targetEntity=Client::class, cascade={"persist"})
* @ORM\JoinColumn(onDelete="SET NULL")
* @Groups({"client", "read"})
*/
private $client;
/**
* @var SpecialiteDocteur
*
* @ORM\ManyToOne(targetEntity=SpecialiteDocteur::class, cascade={"persist"})
* @ORM\JoinColumn(onDelete="SET NULL")
* @Groups({"read"})
*/
private $specialite;
/***
* Still in use. A REMOVE
*
* @ORM\Column(name="specialiteId", type="integer")
* @Groups({"read"})
*/
private $specialiteId;
/**
* @var Commande
*
* @ORM\ManyToOne(targetEntity=Commande::class, cascade={"persist"})
* @ORM\JoinColumn(onDelete="SET NULL")
* @Groups({"read"})
*/
private $commande;
/**
* @var bool
*
* @ORM\Column(name="actif", type="boolean")
* @Groups({"read"})
*/
private $actif;
/**
* Represente
*
* @ORM\Column(name="current", type="boolean")
* @Groups({"read"})
*/
private $current = false;
/**
* Represente si l'intervention à été traité par nos équipes
*
* @ORM\Column(name="traite", type="boolean")
* @Groups({"read"})
*/
private $traite = false;
/**
* Represente si l'intervention à été traité par nos équipes
*
* @ORM\Column(name="smsReminder", type="boolean")
* @Groups({"read"})
*/
private $smsReminder = false;
/**
* Represente si l'intervention à été traité par nos équipes
*
* @ORM\Column(name="smsNotFound", type="boolean")
* @Groups({"read"})
*/
private $smsNotFound = false;
/**
* Represente si l'intervention à été traité par nos équipes
*
* @ORM\Column(name="notificationsSent", type="boolean")
* @Groups({"read"})
*/
private $notificationsSent = false;
/**
* Represente si l'intervention à été traité par nos équipes
*
* @ORM\Column(name="emailReminder", type="boolean")
* @Groups({"read"})
*/
private $emailReminder = false;
/**
* Represente si l'intervention à été traité par nos équipes
*
* @ORM\Column(name="smsEndTeleconsultation", type="boolean")
* @Groups({"read"})
*/
private $smsEndTeleconsultation = false;
/**
* Represente si l'intervention à été traité par nos équipes
*
* @ORM\Column(name="patient_abs", type="boolean")
* @Groups({"read"})
*/
private $patientAbs = false;
/**
* @var text
*
* @ORM\Column(name="validated_timestamp", type="datetime", nullable=true)
* @Groups({"read"})
*/
private $validatedTimestamp;
/**
* @ORM\OneToMany(targetEntity=Ordonnance::class, mappedBy="intervention")
*/
private $ordonnances;
/**
* @ORM\OneToMany(targetEntity=FeuilleSoin::class, mappedBy="intervention")
*/
private $feuilles;
/**
* @ORM\OneToMany(targetEntity=ArretTravail::class, mappedBy="intervention")
*/
private $arrets;
/**
* Constructor of Intervention Entity
*/
public function __construct()
{
$this->numeroReference = uniqid();
$this->etat = 'emis';
$this->typeIntervention = 'mobile';
$this->modeIntervention = 'physique';
$this->horodateIntervention = new \DateTime();
$this->pays = 'France';
$this->delaiAttente = 0; // Minutes
$this->dureeIntervention = 0; // Minutes
$this->commission = 0;
$this->specialiteId = 0;
$this->age = 0;
$this->noteIntervention = 5;
$this->horodateCreation = new \DateTime;
$this->actif = true;
$this->ordonnances = new ArrayCollection();
$this->feuilles = new ArrayCollection();
$this->arrets = new ArrayCollection();
}
public function __toString()
{
return ($this->getNumeroReference()) ? $this->getNumeroReference() : '';
}
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Get numeroReference
*
* @return string
*/
public function getNumeroReference()
{
return $this->numeroReference;
}
/**
* Set numeroReference
*
* @param string $numeroReference
*
* @return Intervention
*/
public function setNumeroReference($numeroReference)
{
$this->numeroReference = $numeroReference;
return $this;
}
/**
* Get chargeToken
*
* @return string
*/
public function getChargeToken()
{
return $this->chargeToken;
}
/**
* Set chargeToken
*
* @param string $chargeToken
*
* @return Intervention
*/
public function setChargeToken($chargeToken)
{
$this->chargeToken = $chargeToken;
return $this;
}
/**
* Get etat
*
* @return string
*/
public function getEtat()
{
return $this->etat;
}
/**
* Set etat
*
* @param string $etat
*
* @return Intervention
*/
public function setEtat($etat)
{
$this->etat = $etat;
return $this;
}
/**
* Get motifEtatAnnule
*
* @return string
*/
public function getMotifEtatAnnule()
{
return $this->motifEtatAnnule;
}
/**
* Set motifEtatAnnule
*
* @param string $motifEtatAnnule
*
* @return Intervention
*/
public function setMotifEtatAnnule($motifEtatAnnule)
{
$this->motifEtatAnnule = $motifEtatAnnule;
return $this;
}
/**
* Get typeIntervention
*
* @return string
*/
public function getTypeIntervention()
{
return $this->typeIntervention;
}
/**
* Set typeIntervention
*
* @param string $typeIntervention
*
* @return Intervention
*/
public function setTypeIntervention($typeIntervention)
{
$this->typeIntervention = $typeIntervention;
return $this;
}
/**
* Get modeIntervention
*
* @return string
*/
public function getModeIntervention()
{
return $this->modeIntervention;
}
/**
* Set modeIntervention
*
* @param string $modeIntervention
*
* @return Intervention
*/
public function setModeIntervention($modeIntervention)
{
$this->modeIntervention = $modeIntervention;
return $this;
}
/**
* Get horodateIntervention
*
* @return \DateTime
*/
public function getHorodateIntervention()
{
return $this->horodateIntervention;
}
/**
* Set horodateIntervention
*
* @param \DateTime $horodateIntervention
*
* @return Intervention
*/
public function setHorodateIntervention($horodateIntervention)
{
$this->horodateIntervention = $horodateIntervention;
return $this;
}
/**
* Get getHorodateInterventionInfoString
*
* @return string
* @Groups({"read"})
*/
public function getHorodateInterventionInfoString()
{
return $this->horodateIntervention->format('Y-m-d');
}
/**
* Get getHorodateInterventionInfoString
*
* @return string
* @Groups({"read"})
*/
public function getHorodateInterventionHour()
{
return $this->horodateIntervention->format('H:i');
}
/**
* Get getHorodateInterventionTimeInfoString
*
* @return \DateTime
* @Groups({"read"})
*/
public function getHorodateInterventionTimeInfoString()
{
return $this->horodateIntervention->format('c');
}
/**
* Get adresse
*
* @return string
*/
public function getAdresse()
{
return $this->adresse;
}
/**
* Set adresse
*
* @param string $adresse
*
* @return Intervention
*/
public function setAdresse($adresse)
{
$this->adresse = $adresse;
return $this;
}
/**
* Get codePostal
*
* @return string
*/
public function getCodePostal()
{
return $this->codePostal;
}
/**
* Set codePostal
*
* @param string $codePostal
*
* @return Intervention
*/
public function setCodePostal($codePostal)
{
$this->codePostal = $codePostal;
return $this;
}
/**
* Get pays
*
* @return string
*/
public function getPays()
{
return $this->pays;
}
/**
* Set pays
*
* @param string $pays
*
* @return Intervention
*/
public function setPays($pays)
{
$this->pays = $pays;
return $this;
}
/**
* Get complement
*
* @return text
*/
public function getComplement()
{
return $this->complement;
}
/**
* Set complement
*
* @param string $complement
*
* @return Intervention
*/
public function setComplement($complement)
{
$this->complement = $complement;
return $this;
}
/**
* Set sexe
*
* @param string $sexe
*
* @return Intervention
*/
public function setSexe($sexe)
{
$this->sexe = $sexe;
return $this;
}
/**
* Get sexe
*
* @return string
*/
public function getSexe()
{
return $this->sexe;
}
/**
* Set age
*
* @param string $age
*
* @return Intervention
*/
public function setAge($age)
{
$this->age = $age;
return $this;
}
/**
* Get age
*
* @return string
*/
public function getAge()
{
return $this->age;
}
/**
* Get prix
*
* @return integer
*/
public function getPrix()
{
return $this->prix;
}
/**
* Set prix
*
* @param int $prix
*
* @return Intervention
*/
public function setPrix($prix)
{
$this->prix = $prix;
return $this;
}
/**
* Get supplement
*
* @return float
*/
public function getSupplement()
{
return $this->supplement;
}
/**
* Set supplement
*
* @param float $supplement
*
* @return Intervention
*/
public function setSupplement($supplement)
{
$this->supplement = $supplement;
return $this;
}
/**
* Get typeDay
*
* @return string
*/
public function getTypeDay()
{
return $this->typeDay;
}
/**
* Set typeDay
*
* @param string $typeDay
*
* @return Intervention
*/
public function setTypeDay($typeDay)
{
$this->typeDay = $typeDay;
return $this;
}
/**
* Get typeHeure
*
* @return string
*/
public function getTypeHeure()
{
return $this->typeHeure;
}
/**
* Set typeHeure
*
* @param string $typeHeure
*
* @return Intervention
*/
public function setTypeHeure($typeHeure)
{
$this->typeHeure = $typeHeure;
return $this;
}
/**
* Get symptomes
*
* @return text
*/
public function getSymptomes()
{
return $this->symptomes;
}
/**
* Set symptomes
*
* @param text $symptomes
*
* @return Intervention
*/
public function setSymptomes($symptomes)
{
$this->symptomes = $symptomes;
return $this;
}
/**
* Get commentaires
*
* @return text
*/
public function getCommentaires()
{
return $this->commentaires;
}
/**
* Set commentaires
*
* @param text $commentaires
*
* @return Intervention
*/
public function setCommentaires($commentaires)
{
$this->commentaires = $commentaires;
return $this;
}
/**
* Get noteIntervention
*
* @return integer
*/
public function getNoteIntervention()
{
return $this->noteIntervention;
}
/**
* Set noteIntervention
*
* @param int $noteIntervention
*
* @return Intervention
*/
public function setNoteIntervention($noteIntervention)
{
$this->noteIntervention = $noteIntervention;
return $this;
}
/**
* Get delaiAttente
*
* @return integer
*/
public function getDelaiAttente()
{
return $this->delaiAttente;
}
/**
* Set delaiAttente
*
* @param int $delaiAttente
*
* @return Intervention
*/
public function setDelaiAttente($delaiAttente)
{
$this->delaiAttente = $delaiAttente;
return $this;
}
/**
* Get dureeIntervention
*
* @return integer
*/
public function getDureeIntervention()
{
return $this->dureeIntervention;
}
/**
* Set dureeIntervention
*
* @param int $dureeIntervention
*
* @return Intervention
*/
public function setDureeIntervention($dureeIntervention)
{
$this->dureeIntervention = $dureeIntervention;
return $this;
}
/**
* Get commission
*
* @return integer
*/
public function getCommission()
{
return $this->commission;
}
/**
* Set commission
*
* @param int $commission
*
* @return Intervention
*/
public function setCommission($commission)
{
$this->commission = $commission;
return $this;
}
/**
* Get motifIntervention
*
* @return text
*/
public function getMotifIntervention()
{
return $this->motifIntervention;
}
/**
* Set motifIntervention
*
* @param text $motifIntervention
*
* @return Intervention
*/
public function setMotifIntervention($motifIntervention)
{
$this->motifIntervention = $motifIntervention;
return $this;
}
/**
* Get horodateCreation
*
* @return \DateTime
*/
public function getHorodateCreation()
{
return $this->horodateCreation;
}
/**
* Set horodateCreation
*
* @param |DateTime $horodateCreation
*
* @return Intervention
*/
public function setHorodateCreation($horodateCreation)
{
$this->horodateCreation = $horodateCreation;
return $this;
}
/**
* Get getHorodateCreationInfoString
*
* @return \DateTime
* @Groups({"read"})
*/
public function getHorodateCreationInfoString()
{
return $this->horodateCreation->format('Y-m-d');
}
/**
* Get getHorodateCreationTimeInfoString
*
* @return \DateTime
* @Groups({"read"})
*/
public function getHorodateCreationTimeInfoString()
{
return $this->horodateCreation->format('c');
}
/**
* Get carteBancaire
*
* @return Card
*/
public function getCarteBancaire()
{
return $this->carteBancaire;
}
/**
* Set carteBancaire
*
* @param CarteBancaire $carteBancaire
*
* @return Intervention
*/
public function setCarteBancaire($carteBancaire)
{
$this->carteBancaire = $carteBancaire;
return $this;
}
/**
* Get docteur
*
* @return Docteur
*/
public function getDocteur()
{
return $this->docteur;
}
/**
* Set docteur
*
* @param Docteur $docteur
*
* @return Intervention
*/
public function setDocteur($docteur)
{
$this->docteur = $docteur;
return $this;
}
/**
* Get client
*
* @return Client
*/
public function getClient()
{
return $this->client;
}
/**
* Set client
*
* @param Client $client
*
* @return Intervention
*/
public function setClient($client)
{
$this->client = $client;
return $this;
}
/**
* Get specialite
*
* @return SpecialiteDocteur
*/
public function getSpecialite()
{
return $this->specialite;
}
/**
* Set specialite
*
* @param Client $specialite
*
* @return SpecialiteDocteur
*/
public function setSpecialite(SpecialiteDocteur $specialite)
{
$this->specialite = $specialite;
return $this;
}
/**
* Get specialiteId
*
* @return ArrayCollection
*/
public function getSpecialiteId()
{
return $this->specialiteId;
}
/**
* Set specialiteId
*
* @param $specialiteId
*
* @return Intervention
*/
public function setSpecialiteId($specialiteId)
{
$this->specialiteId = $specialiteId;
return $this;
}
/**
* Get commande
*
* @return Commande
*/
public function getCommande()
{
return $this->commande;
}
/**
* Set commande
*
* @param $commande
*
* @return Intervention
*/
public function setCommande($commande)
{
$this->commande = $commande;
return $this;
}
/**
* Get actif
*
* @return boolean
*/
public function getActif()
{
return $this->actif;
}
/**
* Set actif
*
* @param bool $actif
*
* @return Intervention
*/
public function setActif($actif)
{
$this->actif = $actif;
return $this;
}
/**
* @return mixed
*/
public function getTraite()
{
return $this->traite;
}
/**
* @param mixed $traite
*/
public function setTraite($traite)
{
$this->traite = $traite;
}
/**
* Maybe put in a service
*/
public function getCalculatedPrice() {
$date = $this->getHorodateCreation();
$date->setTimezone(new \DateTimeZone('Europe/Paris'));
$hour = $date->format('H');
if ($this->isWeekend($date) || $this->isHoliday($date)) {
if($hour >= 8 && $hour < 20)
return 60;
elseif($hour >= 20)
return 90;
else
return 125;
}
if($hour >= 8 && $hour < 20)
return 55;
elseif($hour >= 20)
return 75;
else
return 110;
}
private function isWeekend(\DateTime $date) {
return (date('N',$date->getTimestamp()) >= 6);
}
/**
* @param \DateTime $date
* @return bool
*/
private function isHoliday(\DateTime $date) {
$date_timestamp = $date->getTimestamp();
$year = $date->format('Y');
$easterDate = easter_date($year);
$easterDay = date('j', $easterDate);
$easterMonth = date('n', $easterDate);
$easterYear = date('Y', $easterDate);
$holidays = [
// Dates fixes
mktime(0, 0, 0, 1, 1, $year), // 1er janvier
mktime(0, 0, 0, 5, 1, $year), // Fête du travail
mktime(0, 0, 0, 5, 8, $year), // Victoire des alliés
mktime(0, 0, 0, 7, 14, $year), // Fête nationale
mktime(0, 0, 0, 8, 15, $year), // Assomption
mktime(0, 0, 0, 11, 1, $year), // Toussaint
mktime(0, 0, 0, 11, 11, $year), // Armistice
mktime(0, 0, 0, 12, 25, $year), // Noel
// Dates variables
mktime(0, 0, 0, $easterMonth, $easterDay + 1, $easterYear),
mktime(0, 0, 0, $easterMonth, $easterDay + 39, $easterYear),
mktime(0, 0, 0, $easterMonth, $easterDay + 50, $easterYear),
];
return in_array($date_timestamp, $holidays);
}
/**
* @return mixed
*/
public function getCurrent()
{
return $this->current;
}
/**
* @param mixed $current
*/
public function setCurrent($current)
{
$this->current = $current;
}
/**
* @return
*/
public function getValidatedTimestamp()
{
return $this->validatedTimestamp;
}
/**
* @param $validatedTimestamp
*/
public function setValidatedTimestamp($validatedTimestamp)
{
$this->validatedTimestamp = $validatedTimestamp;
}
/**
* @return string
*/
public function getRedirectLeMedecin()
{
return $this->redirectLeMedecin;
}
/**
* @param string $redirectLeMedecin
*/
public function setRedirectLeMedecin($redirectLeMedecin)
{
$this->redirectLeMedecin = $redirectLeMedecin;
}
/**
* @return mixed
*/
public function getOrdonnances()
{
return $this->ordonnances;
}
/**
* @param mixed $ordonnances
*/
public function setOrdonnances($ordonnances)
{
$this->ordonnances = $ordonnances;
}
/**
* @return mixed
*/
public function getFeuilles()
{
return $this->feuilles;
}
/**
* @param mixed $feuilles
*/
public function setFeuilles($feuilles)
{
$this->feuilles = $feuilles;
}
/**
* @return mixed
*/
public function getArrets()
{
return $this->arrets;
}
/**
* @param mixed $arrets
*/
public function setArrets($arrets)
{
$this->arrets = $arrets;
}
/**
* @return mixed
*/
public function getSmsReminder()
{
return $this->smsReminder;
}
/**
* @param mixed $smsReminder
*/
public function setSmsReminder($smsReminder)
{
$this->smsReminder = $smsReminder;
}
/**
* @return mixed
*/
public function getSmsEndTeleconsultation()
{
return $this->smsEndTeleconsultation;
}
/**
* @param mixed $smsEndTeleconsultation
*/
public function setSmsEndTeleconsultation($smsEndTeleconsultation)
{
$this->smsEndTeleconsultation = $smsEndTeleconsultation;
}
/**
* @return mixed
*/
public function getPatientAbs()
{
return $this->patientAbs;
}
/**
* @param mixed $patientAbs
*/
public function setPatientAbs($patientAbs)
{
$this->patientAbs = $patientAbs;
}
/**
* @return mixed
*/
public function getEmailReminder()
{
return $this->emailReminder;
}
/**
* @param mixed $emailReminder
*/
public function setEmailReminder($emailReminder)
{
$this->emailReminder = $emailReminder;
}
/**
* @return bool
*/
public function isSmsNotFound(): bool
{
return $this->smsNotFound;
}
/**
* @param bool $smsNotFound
*/
public function setSmsNotFound(bool $smsNotFound): void
{
$this->smsNotFound = $smsNotFound;
}
/**
* @return bool
*/
public function isNotificationsSent(): bool
{
return $this->notificationsSent;
}
/**
* @param bool $notificationsSent
*/
public function setNotificationsSent(bool $notificationsSent): void
{
$this->notificationsSent = $notificationsSent;
}
}