45 lines
900 B
PHP
45 lines
900 B
PHP
<?php
|
|
|
|
use ApiPlatform\Metadata\ApiResource;
|
|
use Doctrine\Common\Collections\ArrayCollection;
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
/**
|
|
* A medicine administration way.
|
|
* i.e. "comprime secable voie orale" for instance
|
|
*/
|
|
#[ORM\Entity]
|
|
#[ApiResource]
|
|
class MedicineAdministrationWay
|
|
{
|
|
#[ORM\Id, ORM\Column,ORM\GeneratedValue]
|
|
private ?int $id = null;
|
|
|
|
/**
|
|
* This CIS (Code Identifiant de Spécialité) id is the unique identifier of the medicine.
|
|
*/
|
|
#[ORM\Column]
|
|
private ?string $CIS = null;
|
|
|
|
/**
|
|
* The drug administration way
|
|
*/
|
|
#[ORM\Column]
|
|
private ?string $administration_way = null;
|
|
|
|
public function getId(): ?int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function getCIS(): ?string
|
|
{
|
|
return $this->CIS;
|
|
}
|
|
|
|
public function getAdministrationWay(): ?string
|
|
{
|
|
return $this->administration_way;
|
|
}
|
|
}
|