# Baltique OS Core 0.78.12 — Enterprise Aftercare & Experience Orchestrator

## Cel

0.78.12 domyka etap po wypisie. Warstwa scala PACU/Discharge, Case Spine, Journey Orchestrator, Work Queue i Communication Bridge w jeden kontrolowany proces:

`PACU / wypis → aftercare → kontrole → czerwone flagi → NPS / experience / marketing po zgodach`

Nie jest to osobna zakładka marketingowa ani automatyczna wysyłka do pacjenta. Źródłem prawdy pozostaje baza danych.

## Nowe tabele

- `enterprise_aftercare_blueprints`
- `enterprise_aftercare_episodes`
- `enterprise_aftercare_steps`
- `enterprise_aftercare_red_flags`
- `enterprise_experience_handoffs`
- `enterprise_aftercare_runs`

Case Spine otrzymuje pola statusu aftercare, score, summary, id epizodu oraz status NPS/experience.

## Safety guardy

Domyślnie wyłączone:

- `enterprise_aftercare_auto_close_episode_enabled`
- `enterprise_aftercare_auto_send_patient_message_enabled`
- `enterprise_aftercare_auto_request_nps_enabled`
- `enterprise_aftercare_auto_publish_marketing_enabled`
- `enterprise_aftercare_auto_close_red_flags_enabled`
- `enterprise_aftercare_cron_enabled`

System może tworzyć kroki, taski, czerwone flagi i handoff NPS, ale nie zamyka opieki, nie wysyła wiadomości, nie prosi o opinię i nie publikuje marketingu automatycznie.

## Moduł

Panel: `/system_aftercare_experience_orchestrator.php`

Upgrade: `/upgrade_0_78_12.php`

Cron opcjonalny: `cron/enterprise_aftercare_experience_sync_cron_ovh.php`
