Documentation / Viewer

Command centre

KPIs against their targets for hospitals, insurers, GP practices or services: boards for hospital operations, money, quality and safety, access and the population of practices, with groups, what needs attention now, the resources behind every value and a wall display.

Command centre: KPIs per facility against their targets
Command centre: KPIs per facility against their targets
  1. KPI tiles – One tile per KPI of the board: the value, a line of the 12 periods before it with the target dashed, the status (on target, close to target, off target) and the change since the period before.
  2. Facilities – Every facility against every KPI, with a total row. Click a value to see the encounters or appointments behind it, each linked to the resource and the patient.
  3. Trend by facility – One KPI per facility, by calendar month or by week, with the target band.
  4. Emergency waits by hour of arrival – The median minutes from arrival to first seen for each hour of the day, for all facilities or one.
  5. Needs attention – Each KPI that is off or close to target at a facility, how long it has been off target, and a likely cause: the most common reason for readmission, the patients waiting now, the fullest ward.
  6. Beds now – Patients in a bed at the time of the last data against the beds in use, with today’s admissions, discharges, patients in the emergency department and those still waiting to be seen.

Open Command centre at the top of the left panel (shown when your account has viewer:command). Choose a board, one of its rows or all of them, and a period: today, 7 days, 30 days or 12 months. The period ends on the last day with data (on a financial board: the last day with claims).

Types of board

Every board has a type, which gives it its KPIs and the kind of rows it shows. Two boards are built in: Hospital operations (facility operations, per hospital) and Finance (financial, per insurer). New board in the editor starts from a type.

Facility operations
Per hospital: bed occupancy, length of stay, discharges before noon, long stays, admissions, emergency waits and visits, first appointments, no-shows, readmissions, deaths.
Financial
Per insurer (or per hospital, with a group of hospitals): claims submitted, claimed, paid, paid of claimed, claims denied, days to a decision, waiting over 60 days, awaiting a decision, claims without cover, patient share. Amounts are in the currency of the board (the most used one unless you choose another) and are never added across currencies; counts and rates use every currency. The claims, decisions and cover are read as on Claims management and Insurers and currencies.
Quality and safety
Per hospital: readmissions, deaths, ED returns within 72 hours, falls and pressure ulcers per 1,000 bed-days, diabetes and blood pressure in control, length of stay.
Access and referrals
Per service (the service type or specialty of an appointment or referral; emergency visits are the emergency department): referrals, appointments, the waiting list for a first appointment, the share waiting over 18 weeks, the wait for a first appointment, no-shows, emergency waits.
Population and primary care
Per GP practice (Patient.generalPractitioner): registered patients, emergency visits and unplanned admissions per 1,000 patients a year, readmissions, diabetes and blood pressure in control, flu vaccination of patients aged 65 or over.

Groups

A board shows one group, and its all counts only that group. The built-in groups hold every hospital, insurer, GP practice or service that has data (of the last three, the 60 busiest are shown). Groups at the top of the page (with viewer:command.manage) makes your own: say what the members are, then either Automatic, by rules (part of an organisation through Organization.partOf, in a city or region, of an organisation type, a name that contains a text; new members that match join by themselves) or Chosen by hand. The page shows the members as you change the rules. In the editor, choose the group of a board. A group in use by a board cannot be deleted.

What the rows are decides where a resource counts: a stay at a hospital counts for that hospital; for an insurer it counts for the payer of the patient’s Coverage, and a claim for its insurer; for a GP practice it counts for the patient’s practice; for a service, for the service of the appointment or referral. Results, vaccinations and registered patients count for the patient’s practice, insurer or hospital (their managing organisation, else the hospital of their latest stay or visit). KPIs that mean nothing for the rows (bed occupancy for insurers) show Not for these rows.

Tiles
One per KPI of the board: the value, a line of the 12 periods before it with the target dashed, on target (green), close to target (orange) or off target (red), the change since the period before and how it is measured.
Facilities
Every facility against every KPI, with a total row. Click a value to see the encounters or appointments behind it (needs viewer:browse); each links to the resource and the patient.
Trend by facility
One KPI per facility, by calendar month or by week, with the target band.
Emergency waits by hour of arrival
The median minutes from arrival to first seen for each hour of the day, in the period (at least 7 days), for all facilities or one.
Needs attention
Each KPI that is off or close to target at a facility, how long it has been off target, and a likely cause: the most common reason for readmission, the patients waiting now, the fullest ward, the services with the longest waits.
Beds now
Patients in a bed at the time of the last data against the beds in use, and today's admissions, discharges, patients in the emergency department and those still waiting to be seen.
Wall display
Full screen for a screen on the wall, with no controls and never a scroll bar: the screens follow one another, each for the time set on the board (20 seconds unless changed). First the KPI tiles, as large as the screen allows; then the table on its own (more screens when the rows do not fit); then the trend of the board’s trend KPI with one chart per row, three to a screen (more screens for more rows); then what needs attention and the beds now. Each screen shrinks its text until it fits. The arrow keys move between screens, Escape ends it; the data is fetched again every 5 minutes. KPIs can be left off it in the editor.

The KPIs

Bed occupancy
Patients in a bed at midnight divided by the beds in use (Location of type bed, active and not closed), averaged over the period. Target 85%, off target above 90%.
Average length of stay
Days from admission to discharge of the inpatient stays (Encounter class IMP, ACUTE, NONAC, SS) that ended in the period.
Discharged before noon
Share of the discharges in the period whose time of day is before 12:00.
Long stays
Patients in hospital for 21 days or more (you choose the days) at the end of the period.
ED waiting time
Median minutes from arrival (Encounter.period.start of class EMER) to first seen: the start of status in-progress in statusHistory (R4), or of the first participant (R4 and R5).
ED within 4 hours
Share of the emergency visits that left within 4 hours (you choose the hours).
Wait for first appointment
Median days from a referral (ServiceRequest.authoredOn) to its first appointment that was not cancelled (Appointment.basedOn), for the appointments in the period.
Appointments not attended
No-shows of the appointments that were kept or missed.
Readmissions
Patients admitted again within 30 days (you choose the days) of a discharge, at any facility; planned stays (Encounter.priority EL) are left out unless you choose all admissions, and patients who died are left out. The discharges are those 30 days before the period, so that the 30 days have passed.
Inpatient deaths
Share of the discharges with discharge disposition exp.
Admissions, Emergency visits
Counts, without a target.

A facility is the Organization of an encounter's serviceProvider (the nearest one of type prov, Healthcare Provider, up its partOf chain, so departments count for their hospital), or the managing organisation of its location; appointments count for the hospital of their clinic. When some facilities have beds, only those are shown. A value needs enough patients (for example 20 discharges for readmissions); fewer show as a dash.

The KPIs beyond hospital flow

ED returns within 72 hours
Emergency visits after which the same patient came back to an emergency department within 72 hours, at any hospital; the visits are those 3 days before the period.
Falls, Pressure ulcers
Observation or Condition with the codes of a fall (SNOMED CT® 1912002, 217082002, ICD-10 W00–W19) or a pressure ulcer (SNOMED CT 399912005, ICD-10 L89; two or more days into the stay), with the stay in encounter; per 1,000 bed-days.
Diabetes in control, Blood pressure in control
Patients with diabetes (or hypertension) whose latest HbA1c in the 12 months up to the end of the period is at or under 53 mmol/mol (7%), or whose latest blood pressure is under 140/90, as on Equity and outcomes.
Waiting for a first appointment, Waiting over 18 weeks
Referrals (ServiceRequest) of the last 12 months without a first appointment at the end of the period, and the share of them made more than 18 weeks before.
Registered patients, per 1,000
Living patients of a practice at the end of the period; emergency visits and unplanned admissions of these patients per 1,000 a year; the share aged 65 or over with an influenza vaccination (CVX, SNOMED CT or ATC J07BB codes, or the text) in the 12 months before.
Money
Claims by Claim.created, decisions by the latest ClaimResponse or ExplanationOfBenefit: denied when the decision says so, the outcome is an error or nothing is paid; paid of claimed and patient share over the decided claims of the period; days to a decision as a median; waiting over 60 days and awaiting a decision at the end of the period; claims without cover when no active Coverage covers the service date.

Editing the boards

Next to the built-in KPIs, boards can use your own from the KPI library (see KPI library: your own KPIs). With viewer:command.manage, Edit KPIs opens the editor. Add KPIs from the list on the left, drag them (or use the arrows) into order, remove them, or duplicate one with other settings. For each KPI you set the name on the tile, the target and the value from which it is off target, its own settings (days, hours, unplanned only), whether it goes to Needs attention and on the wall display. How it is computed from FHIR® lists the elements it reads, and the preview shows the result with your settings at once. A board also has a name, the period it opens with and the facilities it covers. Boards are saved for everyone who uses the data source; New board makes another one. The built-in board Hospital operations can be changed, and reset to its built-in settings.

ExampleA readmission board for heart failure care

Make a new board, add Readmissions twice: set one to 7 days and one to 30 days, both with target 8%. Add Average length of stay and Discharged before noon. Save, then pick the board at the top of the page.

NoteNeeds viewer:command and access to Patient and Encounter; KPIs on beds need Location, those on appointments need Appointment and ServiceRequest, money needs Claim (with ClaimResponse, ExplanationOfBenefit and Coverage), population KPIs need Observation, Condition and Immunization. Restricted patients take no part. Boards and groups are stored in the suite, never in the vault. The values are computed again every 10 minutes, and in the background every few minutes.
In the background

The sample tools/sample-data/generate_command.py makes four invented hospitals that do well and less well on these KPIs over 18 months, with four invented insurers and their claims, and GP practices under two GP co-operatives with diabetes, hypertension and flu vaccinations.