Add parsing of ambulances
This commit is contained in:
parent
972fa57771
commit
4c352ea548
|
|
@ -235,6 +235,8 @@ final class CleanMobileCommand extends Command
|
||||||
$contact->setMsgContentType(2); // nur kurzformat
|
$contact->setMsgContentType(2); // nur kurzformat
|
||||||
$quartal = $today->format('Y') . ceil($today->format('n') / 3);
|
$quartal = $today->format('Y') . ceil($today->format('n') / 3);
|
||||||
$contact->setDueQuartal((int) $quartal);
|
$contact->setDueQuartal((int) $quartal);
|
||||||
|
$contact->setAmbuCode($row['AMBU'] ?? null);
|
||||||
|
$contact->setAmbulance($row['AMBULANZ'] ?? null);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$result = $this->http->request('POST', $this->backendApiURL . "/" . $study_id . "/" . $study_id_chain, [
|
$result = $this->http->request('POST', $this->backendApiURL . "/" . $study_id . "/" . $study_id_chain, [
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,31 @@ class Contacts
|
||||||
#[ORM\Column(nullable: false, options: ['default' => 1])]
|
#[ORM\Column(nullable: false, options: ['default' => 1])]
|
||||||
private ?int $msg_content_type = 1;
|
private ?int $msg_content_type = 1;
|
||||||
|
|
||||||
|
#[ORM\Column(length: 20, nullable: true)]
|
||||||
|
private ?string $ambu_code = null;
|
||||||
|
#[ORM\Column(length: 50, nullable: true)]
|
||||||
|
private ?string $ambulance = null;
|
||||||
|
|
||||||
|
public function getAmbuCode(): ?string
|
||||||
|
{
|
||||||
|
return $this->ambu_code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setAmbuCode(?string $ambu_code): void
|
||||||
|
{
|
||||||
|
$this->ambu_code = $ambu_code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getAmbulance(): ?string
|
||||||
|
{
|
||||||
|
return $this->ambulance;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setAmbulance(?string $ambulance): void
|
||||||
|
{
|
||||||
|
$this->ambulance = $ambulance;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public function getId(): ?int
|
public function getId(): ?int
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user