Consistency checks
The safety net, and how to fix what it finds.
Care Core keeps data consistent by design: every lifecycle change is one transaction. The consistency check is the safety net that proves it. It looks for anything that still disagrees, for example because someone changed the database directly, or an import went wrong.
Managers and administrators can open Admin › Consistency checks. Only administrators can fix what it finds.
What it checks
| Finding | Severity | Meaning | Fixable |
|---|---|---|---|
| Team place for a leaver | High | Someone is still in a team although they no longer work or receive support here. | Yes |
| Login for a leaver | High | A login still works for someone who left. | Yes |
| Key worker has left | High | A person’s key worker is no longer current staff. | Yes |
| Key worker, no longer supported | Medium | A key worker link remains for someone who is no longer receiving support. | Yes |
| No key worker | Medium | A person we support has no key worker. | No: a person must choose one. |
| Staff in no team | Low | A current member of staff is not in any team. | No: a person must choose a team. |
Fixing
Put right what can be put right ends the offending team places, logins and key worker links, always on the person’s own last active day (not on today), so the history says what should have been true. Each fix is written to the activity log. Findings that need a decision (no key worker, no team) are only reported.
Running it automatically
Schedule the script so you hear about problems without looking:
15 3 * * * php /path/to/scripts/reconcile.php # report only
15 3 * * * php /path/to/scripts/reconcile.php --fix # report and fix
High-severity findings also appear on the dashboard under “Needs attention”.
In a healthy installation using only Care Core, this list is empty (apart from the low-severity “no key worker” and “no team” reminders).