# Baltique OS Core 2.7.0
## Enterprise Clinical Function Unification & Canonical Site Consolidation

This cumulative overlay was built against the complete Baltique OS package supplied for review.

## Purpose

- one top-level navigation tab for one real hospital function;
- specialist screens remain available inside the relevant function center;
- duplicate, superseded and historical screens are removed from normal staff navigation, while retained for compatibility and audit;
- three historical representations of the current Sopot office are consolidated into one canonical site: **Baltique Sopot, Gabinet**;
- source synchronization is canonicalised and tested twice so that later refreshes do not recreate the duplicates.

## Canonical functions

| Key | Function | Canonical route | Roles |
|---|---|---|---|
| `workspace` | My workspace | `/workspace.php` | * |
| `hospital` | Hospital Command Center | `/system_hospital_command_center.php` | superadmin, admin, management, reception, coordinator, surgeon, anesthesiologist, nurse, block, ward, supply |
| `patients` | Patients & Cases | `/system_clinical_function.php?function=patients` | superadmin, admin, management, reception, coordinator, surgeon, anesthesiologist, nurse, ward |
| `scheduling` | Reception & Scheduling | `/system_clinical_function.php?function=scheduling` | superadmin, admin, management, reception, coordinator |
| `qualification` | Clinical Qualification | `/system_clinical_function.php?function=qualification` | superadmin, admin, management, coordinator, surgeon, anesthesiologist, nurse |
| `documents` | Documents & Consents | `/system_clinical_function.php?function=documents` | superadmin, admin, management, reception, coordinator, surgeon, anesthesiologist, nurse |
| `communication` | Communication | `/system_clinical_function.php?function=communication` | superadmin, admin, management, reception, coordinator, surgeon, nurse, ward |
| `or` | Operating Theatre | `/system_clinical_function.php?function=or` | superadmin, admin, management, surgeon, anesthesiologist, nurse, block |
| `aftercare` | PACU, Discharge & Aftercare | `/system_clinical_function.php?function=aftercare` | superadmin, admin, management, coordinator, surgeon, anesthesiologist, nurse, ward |
| `supply` | Pharmacy & Supply | `/system_perioperative_supply_chain.php` | superadmin, admin, management, supply, block, nurse |
| `finance` | Finance & Payments | `/system_clinical_function.php?function=finance` | superadmin, admin, management, reception, coordinator |
| `management` | Management & Analytics | `/system_clinical_function.php?function=management` | superadmin, admin, management, surgeon |
| `system` | System Administration | `/system_clinical_function.php?function=system` | superadmin, admin |

## Scope of the scan

- 1,047 PHP files in the combined application tree passed syntax validation;
- 859 active PHP application/public entry files received a lifecycle and functional decision;
- all 122 prior static navigation entries are mapped to one canonical function;
- 27 known duplicate/superseded navigation entries are explicitly marked legacy;
- historical installers are kept as technical history, not as staff workflows.

## Site consolidation

Canonical identity:

```text
site_key: sopot_current
location slug: sopot-gabinet
label: Baltique Sopot, Gabinet
```

Planned Sopot Poniatowskiego and Gdańsk Hallera sites remain separate and are not aliases.

## Installation

1. Back up MySQL, the application tree and storage.
2. Deploy to staging first.
3. Extract the overlay into the Baltique OS root.
4. Sign in as admin or superadmin.
5. Run `/upgrade_2_7_0.php` once.
6. Review `/system_site_consolidation_270.php` and `/system_module_unification_270.php`.
7. Run one Runtime Preflight.
8. Test the workspace and direct-route access for every staff role.

Installation does not constitute clinical UAT. Legacy files are not automatically deleted because some remain runtime dependencies or audit evidence.
