diff --git a/src/Command/CleanMobileCommand.php b/src/Command/CleanMobileCommand.php index 0c29cae..8262777 100644 --- a/src/Command/CleanMobileCommand.php +++ b/src/Command/CleanMobileCommand.php @@ -235,6 +235,8 @@ final class CleanMobileCommand extends Command $contact->setMsgContentType(2); // nur kurzformat $quartal = $today->format('Y') . ceil($today->format('n') / 3); $contact->setDueQuartal((int) $quartal); + $contact->setAmbuCode($row['AMBU'] ?? null); + $contact->setAmbulance($row['AMBULANZ'] ?? null); try { $result = $this->http->request('POST', $this->backendApiURL . "/" . $study_id . "/" . $study_id_chain, [ diff --git a/src/Entity/Contacts.php b/src/Entity/Contacts.php index 95af837..3bed885 100644 --- a/src/Entity/Contacts.php +++ b/src/Entity/Contacts.php @@ -57,6 +57,31 @@ class Contacts #[ORM\Column(nullable: false, options: ['default' => 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 {