Rules that are enforced
Every check Care Core makes before it lets a change through.
Care Core checks these rules before a change is saved, and a change that breaks one is refused with a plain message and saves nothing. They are also the reason the data stays trustworthy. Every rule listed here is covered by an automated test.
People
- First and last name are required (up to 100 characters each). Email must look like an email address. A date of birth cannot be in the future.
- A person is created once. Starting someone whose email already exists is refused: start a new employment for the existing person.
Employment
- A job title is required (up to 150 characters). Hours per week must be more than 0 and no more than 168.
- An employee reference, if given, is unique within the organisation.
- A person has one employment at a time. A new one must start after the previous one ended.
- Nobody can be their own line manager, and a line manager must be chosen from the organisation’s people.
- The last day cannot be before the start date. An ended employment cannot be ended again.
- A change of role or team must be effective today or earlier, never in the future, and the employment must be active on that date.
- An unchanged move is refused (“Nothing has changed”).
Teams
- A team needs a name. It cannot be its own parent or sit under one of its own descendants.
- A team with active sub-teams cannot be closed. A closed team cannot take members.
- A person has one active place per team, and one primary team.
- A new place cannot start before the person’s previous place in that team ended; a place cannot end before it started.
- Staff-only teams refuse people who are only supported.
Care
- A person has one support episode at a time. A new one cannot start before the last ended. An episode cannot end before it started.
- An NHS number is 10 digits with a correct check digit.
- A key worker must be current staff, the person must be receiving support, nobody is their own key worker, and the same pairing cannot be active twice.
- Ending support ends the person’s key worker links and team places on the same day.
- A need’s severity is low, medium or high.
The leaver process
- Ends, on the last day: the employment, every team place (or cancels one not yet started), every key worker link.
- Creates a task for every supported person who loses a key worker and for every person who loses a line manager.
- Sets every linked login to stop working after the last day.
- All of it happens in one transaction: if any part fails, none of it is saved.
Logins
- One login per email address, across the whole installation. Passwords are at least 10 characters.
- A login works only while active and before its access end date, checked on every request.
- You cannot disable your own login.
- 5 failed sign-ins per email or 20 per network address in 15 minutes pause sign-in.
Self-service
- Staff can only change fields marked as self-editable (see the field reference); anything else is refused.
- A request is checked when it is made and again when it is approved.
- Nobody can approve their own request. Only the line manager, managers and administrators can approve. Another organisation cannot.
- A request already approved or declined cannot be decided again.
- Asking again for the same field replaces the earlier request. Asking for what is already there withdraws it.
Compliance records
- Required: registration type and expiry date; supervision date and type; appraisal date, type and outcome; learning title, kind and status.
- A registration cannot expire before it was issued; learning cannot expire before it was completed; a next-due date cannot be before the date of the supervision or appraisal.
- A supervisor or appraiser must be a person in your organisation.
Images
- Only PNG, JPEG, WebP or GIF, verified by content (not by file name). Photos up to 3 MB, signatures up to 1 MB; drawn signatures up to 400 KB. Dimensions up to 8000 pixels.
- Stored outside the web root under random names; only served after a permission check.
Integrations
- Webhook addresses must be https (http only for localhost), without credentials, and not link-local.
- SCIM requires a valid bearer token. A token only affects its own organisation.
- An ID token from Microsoft must verify completely (signature, issuer, tenant, audience, expiry, nonce) or the sign-in is refused.