AI‑based resource allocation in hospitals