CQC-Guard

CQC-Guard is a working prototype of CQC inspection readiness software for care providers in England, built on fictional demo data: no provider has used it or paid for it. It replaces readiness that lives in shared folders with one tool: a self-assessment across the five key questions (safe, effective, caring, responsive, well-led), an evidence register, a predicted rating calculated by visible rules, a risk register and an action plan generated from the riskiest gaps, with separate views for staff, registered managers and providers. Built with Next.js, React and TypeScript.

Prototype · demo data · UK health and social care
Client
None. Our own prototype
Sector
UK health and social care, CQC-registered services
Status
Working prototype, fictional data, not in use
Role
Product design and full build by minidev.pro
Stack
Next.js 16 (App Router), React 19, TypeScript in strict mode, Tailwind CSS v4
Platform
Static web app, state saved in the browser, no server
Size
34 source files, 4,463 lines
Roles
Registered manager, provider, staff member

About this page: CQC-Guard is a prototype we built to prove an approach, not a project for a paying client. The care homes, managers and scores in every screenshot are fictional demo data. Nothing here is a result from a real service.

The problem: readiness lives in folders

Most care providers prepare for a CQC inspection with a shared drive: folders named after the five key questions, a spreadsheet of policies, and a registered manager who knows where everything is until they go on leave. Readiness peaks before an inspection and fades afterwards.

CQC asks five key questions of every service: is it safe, effective, caring, responsive and well-led? Under the current single assessment framework those questions are broken into 34 quality statements.

Three things make this hard to manage by hand:

  • The judgement is spread across dozens of statements. A manager can feel "mostly fine" while two key questions are quietly weak.
  • Evidence and actions drift apart. The audit that found a gap sits in one file, the fix sits in an email, and nobody can show the line from one to the other.
  • The framework moves. Teams still use the older KLOE vocabulary, and in March 2026 CQC published draft sector-specific frameworks that would replace the quality statements. Our guide to CQC compliance software covers that change in detail.

CQC-Guard asks: what is the smallest tool that keeps a self-assessment, its evidence and its action plan joined up, and is honest about what its predicted rating means?

What we built

CQC-Guard is a Next.js app exported as static files. It ships with one fictional provider (Harbour Care Group), three fictional care homes, seven fictional people, nine completed assessments, one half-finished draft, seven seeded actions and 96 evidence records. A banner on every screen says the tool is unofficial, not affiliated with the CQC, and that the demo data is fictional.

Dashboard

The registered manager lands on a dashboard for their service. It shows the predicted readiness percentage and rating from the latest completed self-assessment, the count of gaps (statements answered Partially met or Not met), open actions, days since the last assessment, a bar per key question, and the three highest-priority open actions. Priority is severity first, then due date.

CQC-Guard dashboard for a fictional care home called Ashford Lodge, showing 80 percent predicted readiness rated Requires Improvement, Safe and Well-led at Requires Improvement, and three priority actions.
Dashboard for a fictional dementia care home. Safe and Well-led are weak, so the overall rating is Requires Improvement even though the average is 80%. Prototype, fictional data.

Self-assessment against the statements

The assessment walks through every statement, grouped under the five key questions, with completion shown per key question. Each statement shows its code (S4), a familiar KLOE-style label ("Medicines management"), the statement itself, a short description and a "why it matters" note on what inspectors look for. The manager picks Met, Partially met, Not met or Not applicable, and can add notes and an evidence reference.

Progress saves as you go, so a draft can be left and resumed. A live score updates with each answer. The submit button stays disabled until all 32 statements are answered, because a rating built on half the answers would mislead.

CQC-Guard self-assessment screen on statement S4, Medicines are managed safely and legally, with Met selected, a note about MAR chart audits and completion chips for each key question.
A resumable draft assessment on the medicines statement, with a note and completion per key question. Prototype, fictional data.

Predicted rating that explains itself

The results screen shows the overall predicted rating, each key question's percentage and band, and the methodology in six plain sentences, printed straight from the scoring code so the explanation can never drift from the calculation. Below that, a list of the statements that pulled the rating down, and a full risk register of all 32 statements sorted by weighted risk.

CQC-Guard assessment results for a fictional care home: overall 80 percent Requires Improvement, five key question bars, and a numbered methodology explaining scores, percentage bands and aggregation.
The results screen shows its working: per key question bands and the methodology text that comes from the scoring module. Prototype, fictional data.
CQC-Guard risk register table listing statements such as Medicines management and Governance, each with key question, response and a weighted risk score from 2.8 down to 1.1.
Risk register. Medicines and Governance top the list at 2.8 because they are Not met and carry the highest weight. Prototype, fictional data.

Evidence register

Each service has one evidence record per statement: a title, where the evidence physically lives, a reference, a status (Available, Partial, Missing or Not reviewed), notes and the date it was last reviewed. Records can be searched and filtered by key question and status. Editing a record stamps a new review date. The prototype records where evidence is; it does not store documents. The screen says so.

CQC-Guard evidence register for the Safe key question, with the medicines management evidence pack expanded to show title, location, reference, status Partial and notes.
Evidence register with one record open for editing. Partial records are the ones a manager would chase first. Prototype, fictional data.

Action plan

When an assessment is submitted, the riskiest gaps become actions automatically, each with a severity, an owner and a due date. Actions can be filtered and moved to In progress, Complete or back to open.

CQC-Guard action plan with four actions for a fictional care home, two Critical and two High, each with owner, due date and buttons to mark In progress or Complete.
Action plan for the weaker fictional home: critical medicines and staffing actions first. Prototype, fictional data.

History, provider oversight and staff view

The history screen charts each key question across completed assessments. A provider (the responsible individual) gets a read-only table of every service with its rating, gaps, open actions and days since assessment. A staff member sees only "My actions": the actions assigned to them, which they can update and nothing else.

CQC-Guard history screen for a fictional nursing home, with a trend line for the Safe key question and a score matrix across three assessment dates.
History for a fictional home on an improvement arc across three assessments. Prototype, fictional data.

How the rating logic works

How the key questions and statements are modelled

The five key questions are a fixed TypeScript type: safe, effective, caring, responsive and well-led. Each statement is a record with an id, its key question, a short code (S1 to S8, E1 to E6, C1 to C5, R1 to R5, W1 to W8), a title, a KLOE-style label, a description, a "why it matters" note and a risk weight between 0.8 and 1.4. Safe and Well-led statements carry the heaviest weights: safeguarding, medicines and governance are 1.4, activities is 0.8.

One honest detail: the prototype has 32 statements written for the demo, not CQC's 34 published quality statements in CQC's own wording. Responsive has 5 here where CQC has 7. That was fine for proving the workflow. A real build would load CQC's published statements as data.

An assessment belongs to one service. It has a status (draft or completed), start and completion dates, who completed it, and one answer per statement. Actions and evidence records both point back to a statement id, which is what keeps the gap, the evidence and the fix joined up.

The calculation, step by step

All of it lives in one file, src/lib/scoring.ts, as pure functions with no side effects:

  1. Statement score. Met scores 3, Partially met 2, Not met 1. Not applicable is excluded from both the total and the maximum.
  2. Key question percentage. Points scored divided by (applicable statements x 3), rounded to a whole number.
  3. Key question band. 88% and above is Outstanding, 63% and above Good, 39% and above Requires improvement, below 39% Inadequate. These mirror the percentage thresholds CQC publishes for the current framework.
  4. Overall rating, by rules. Two or more Inadequate key questions give Inadequate. Otherwise two or more Requires improvement give Requires improvement. Outstanding needs at least two Outstanding, at least three Good or better, and nothing lower. Otherwise the result is Good if there is no Inadequate and at most one Requires improvement. A single Inadequate with no other cap gives Inadequate.
  5. Risk score per statement. (3 minus the score) x the statement's weight. An unanswered statement counts as 2 x its weight. This is what sorts the risk register and picks which gaps become actions.

A worked example from the fictional data: at Ashford Lodge, Safe scores 13 of 24 points (54%) and Well-led 14 of 24 (58%), so both are Requires improvement. Effective, Caring and Responsive are Outstanding. The average of the five percentages is 80%, which on its own would read as Good. The rule for two Requires improvement key questions caps the overall rating at Requires improvement. That is the point of rating by rules: a strong Caring score cannot hide a weak Safe one.

How CQC-Guard turns answers into a rating and an action plan Statements and assessment answers feed four scoring steps. The first step produces a risk score that sorts the risk register, which feeds the action plan on submit. The last step produces the predicted rating. Evidence records are kept per statement but do not affect the score. Browser only: one app state in a React reducer, saved to localStorage under a versioned key Every screen checks the current role's permissions before it renders Quality statements 32 records, each with a key question, code, KLOE label and risk weight (0.8 to 1.4) Assessment answers one per statement: Met, Partially met, Not met or Not applicable, plus notes and evidence ref Evidence register one record per statement per service: location, reference, status, last reviewed Recorded, but not used in the score src/lib/scoring.ts 1. Statement score Met 3, Partial 2, Not met 1, N/A out 2. Key question percentage points / (applicable x 3), rounded 3. Key question band 88%+, 63%+, 39%+, below 39% 4. Overall rating rules counts of each band, not the average risk = (3 minus score) x weight risk Risk register all 32 statements, sorted by weighted risk score on submit Action plan top 8 gaps by risk, each with severity, owner and due date (14, 30 or 45 days) Predicted rating overall and per key question, with methodology and the statements pulling it down
How CQC-Guard turns answers into a rating and an action plan. Drawn from the code in src/lib/scoring.ts and src/lib/store.tsx.

How actions are generated

When a manager submits a completed assessment, the reducer scores it, takes every statement answered Partially met or Not met, sorts them by risk score and keeps the top eight. Each becomes an action titled "Address gap" plus the statement's label, owned by the service's registered manager. Severity follows a fixed rule: Not met on a statement weighted 1.3 or more is Critical, any other Not met is High, Partially met on a statement weighted 1.2 or more is High, and everything else is Medium. Critical actions are due in 14 days, High in 30 and Medium in 45. If the assessment already has actions, no new ones are created, so submitting twice cannot flood the plan.

Hard problems and the decisions behind them

1. No AI in the scoring path

The problem: a predicted rating will be shown to managers and providers who may act on it. If it changes when nothing else has, nobody will trust it. The options: ask a language model to judge readiness from notes, or use fixed rules. What we chose: fixed rules. There is no AI model anywhere in the prototype. The same answers always give the same rating, and the methodology on the results screen is the same text the code exports, so a manager can check the arithmetic by hand. AI could help later with drafting action wording or reading evidence documents, but not with the number.

2. Rate by rules, not by the average

The problem: an average lets a strong key question cancel a weak one. The options: average the five percentages, or apply aggregation rules to the five bands. What we chose: both, for different jobs. The percentage is shown as a readiness figure; the rating comes only from the rules. The Ashford example above is the case this exists for: 80% on average, Requires improvement in reality.

3. Completing an action does not raise the score

The problem: if ticking "Complete" improved the rating, a service could look better without anything changing on the floor. What we chose: the score is calculated only from assessment answers. Actions are a separate record. The rating moves only when the manager runs a new assessment and answers differently, which is also what builds the history chart. It keeps the trail honest.

4. Three roles, enforced in two places

The problem: a provider should see everything but change nothing; a staff member should see only their own work. What we chose: a single permission map for the three roles, checked by a route guard before any screen renders and by the navigation. The state reducer also refuses to switch a registered manager to a service they are not assigned to. In the prototype these checks run in the browser, which is fine for a demo and not enough for production (see below).

5. Evidence as a register before it is a file store

The problem: uploading documents brings storage, retention, virus scanning and access control on day one. What we chose: record where each piece of evidence lives, its status and when it was last reviewed. That answers the inspector's question ("can you show me?") and proves the data model, leaving file storage for a build with a real provider's rules.

Where the prototype stops

The prototype answers each statement on a 3-point scale (Met, Partially met, Not met) so a manager can complete a full self-assessment in one sitting. CQC itself scores each quality statement from 1 to 4, and a production version should use that scale, treat a key question with no applicable statements as "not rated", and let missing evidence lower the confidence of a rating.

Our free CQC mock inspection tool already works that way: it scores all 34 quality statements on CQC's 1 to 4 scale, rounds percentages down to stay cautious, caps a key question at Requires improvement if any statement scores 1, and lets you tick the evidence you could show today.

Testing and quality

Plainly: the prototype has no automated test files. What it does have:

  • TypeScript in strict mode across all 34 source files, with every response, rating, role, severity and status as a closed union type, so a misspelt rating cannot compile.
  • ESLint with the Next.js core web vitals and TypeScript rule sets, and a static export build (the one screenshotted on this page).
  • Scoring as pure functions in one module with no browser or React dependency, which makes it straightforward to unit test.
  • A hand check for this page. We recomputed the key question percentages and overall ratings for the three fictional services directly from the seed data and they match the screens shown above.
  • Storage failures are surfaced. If saved progress cannot be read or written, the app says so instead of failing silently, and saved state from an older seed version is ignored rather than half-loaded.

A production build would start with unit tests for the band thresholds at their edges (38, 39, 62, 63, 87, 88), every branch of the aggregation rules, the severity rules, and the "no duplicate actions" guard, plus permission tests run against the server.

What it proves, and what a production version needs

What it proves: the data model holds. One statement id ties together an answer, an evidence record, a risk score and an action, across several services and three roles, and the rating can be explained in six sentences a manager can check. The flow works end to end on demo data: draft, submit, results, actions, history and oversight.

What a real provider would need before using it:

  • A server and real accounts. Today everything lives in one browser's local storage. Production needs a database, sign-in (ideally the provider's existing Microsoft or Google accounts), and every permission enforced on the server, not only in the browser.
  • Data protection. Notes on safeguarding, medicines or incidents can easily contain personal and health information about residents and staff. That means a data protection impact assessment, UK hosting, encryption, clear retention rules, and guidance in the product to keep identifiable details out of free-text notes.
  • An audit trail. The prototype records who completed an assessment and when, and stamps "last updated" on actions and evidence, but edits overwrite the previous value. Production needs an append-only history of every answer, status change and evidence edit: who, when, old value, new value. In compliance software the trail is part of the evidence.
  • Framework versioning. The statements are currently a constant in code. CQC's March 2026 draft sector-specific frameworks keep the five key questions but replace quality statements with key lines of enquiry and drop scoring, and had no confirmed go-live date in November 2026. So each framework should be a versioned record, each assessment pinned to the version it was made against, and evidence mapped from old statements to new ones. Old scores must never be silently reinterpreted.
  • The right scale and wording. CQC's own statements and its 1 to 4 scale, as in our free tool, with a "not rated" state for key questions that do not apply.
  • Document storage and reminders for due actions and evidence past its review date.

For a client build, we would start with one location: the statements, the evidence the service already holds, and the action plan. The provider roll-up across locations comes once that is stable. Read more on CQC inspection readiness software, compare approaches in CQC mock inspection: DIY vs consultant vs software, or run the free CQC mock inspection now.

Questions about this project

Is CQC-Guard a real product I can buy?

No. It is a working prototype that shows our approach to CQC compliance software. We adapt the approach into a build for a provider's own locations, roles and evidence rather than selling it as an off-the-shelf subscription.

Has a care provider used CQC-Guard?

No. It was built with fictional services, people and assessments to prove the approach. Every number in the screenshots on this page comes from that fictional demo data, not from a real service.

Does CQC-Guard give an official CQC rating?

No. It gives an internal predicted rating with its working shown, to point at where a service is strong and weak. Only the CQC gives ratings, and every screen in the prototype says the tool is unofficial and indicative.

How does CQC-Guard calculate the predicted rating?

Each statement scores 3 for Met, 2 for Partially met and 1 for Not met, and Not applicable is left out. Each key question becomes a percentage of its maximum and is banded at 88, 63 and 39 percent. The overall rating then comes from fixed rules about how many key questions sit in each band, not from the average.

Does CQC-Guard use AI?

No. There is no AI model anywhere in the prototype. The rating, the risk register and the generated actions are plain rules in code, so the same answers always give the same result and a manager can check the arithmetic.

What happens when CQC changes its framework?

In the prototype the statements are a fixed list in code. A production version would store each framework as a versioned record, pin every assessment to the version it was made against, and map evidence across, so old scores are never reinterpreted.

Can I try a CQC self-assessment for free?

Yes. Our free CQC mock inspection tool scores all 34 quality statements on CQC's 1 to 4 scale in your browser, with no sign-up.

Need CQC readiness software for one location first?

That is the right slice. We will scope it with you on a free call.

→ Book a strategy call

Estimate your build →