# Baltique OS Core 0.60.0 — Communication Consent Center

Upgrade do obecnej instalacji. Nie jest to reinstalacja.

## Cel

Core 0.60.0 dodaje centralne zgody i preferencje komunikacyjne pacjenta dla:

- e-mail,
- SMS,
- telefon,
- portal pacjenta,
- marketing.

System zapisuje historię zmian, podstawę prawną, źródło zgody i automatycznie blokuje kanały bez wymaganej zgody w Smart Multi-Channel Routing.

## Nowe moduły

```text
/communication_consent_center.php
/communication_consent_portal.php?token=...
```

## Nowe tabele

```text
communication_consent_policies
communication_consent_records
communication_consent_history
communication_consent_tokens
communication_consent_blocks
communication_consent_decision_logs
```

## Integracja

Smart Multi-Channel Routing używa teraz Communication Consent Center przy ocenie kanałów. Jeśli pacjent nie ma zgody na dany kanał albo istnieje aktywna blokada, kanał dostaje status niedostępny i system wybiera alternatywę.

## Instalacja

1. Zrób backup plików i bazy.
2. Wgraj zawartość paczki do głównego katalogu Baltique OS.
3. Zaloguj się jako administrator.
4. Otwórz:

```text
https://baltique.pl/upgrade_0_60_0.php
```

5. Kliknij „Uruchom upgrade 0.60.0”.
6. Otwórz:

```text
https://baltique.pl/communication_consent_center.php
https://baltique.pl/multichannel_routing.php
```

7. Wykonaj Ctrl+F5.
