KPI library: your own KPIs
Make new KPIs for the Command centre from any resource type, in four steps, with a preview on your data; publish them so boards can use them.

- 1. What kind of number? – A count; a share of a group (in %); a rate per 100 to 100,000 bed-days, admissions or emergency visits; the average, median or 90th percentile of a value; the time between two moments; or a snapshot of what is open at the end of the period.
- 2. Which resources make the group? – A resource type and conditions on its elements (is any of, is none of, has a value, greater or smaller than, starts with), each with how many resources still match. Then the date that puts a resource in a period, and where the facility comes from.
- 3. Which of them count? – A condition on the resource itself, or something that follows or came before for the same patient, within so many hours or days, with an optional exception. When something must follow, the period moves back so it has had the chance, as for readmissions.
- 4. How it is shown – Name, group, whether lower or higher is better, the target and the value from which it is off target, the smallest group to show, unit, decimals and what it means on the tile and in Help.
- Preview and data checks – The value now with its status and the 12 periods before it, the value per facility, and how many resources have a patient, a date and a facility.
- Examples that count – Resources that count, each opening the resource (and the one that followed), to check that the definition does what you mean.
- The definition – The KPI as JSON, to copy or edit directly.
Open KPI library at the top of the Command centre. It lists the built-in KPIs and those your organisation made, with what they read, their owner, status (draft, published, paused), the boards that use them and their value now for all facilities (the last 30 days). With viewer:command.build you can make and change KPIs: New KPI, one of the six patterns, Duplicate as your own on a built-in KPI, or the menu of a row (edit, duplicate, publish, pause, delete).
Four steps
- 1. What kind of number?
- Count; share of a group (in %); rate per 100, 1,000, 10,000 or 100,000 bed-days, admissions or emergency visits; average, median or 90th percentile of a value; time between two moments of each resource (minutes, hours or days); or a snapshot: how many are open at the end of the period.
- 2. Which resources make the group?
- A resource type and conditions on its elements: is any of, is none of, has a value, has no value, greater or smaller than, starts with. The element picker lists only elements that have data in this data source, with how often they are filled and their most common values; you can also type a path such as
period.end. Paths may give alternatives for R4 and R5:period.start|actualPeriod.start. Each condition shows how many resources still match. Then the date that puts a resource in a period, and the facility: found automatically (the service provider, facility, location, performer, organisation, or the stay of the resource such as Observation.encounter; failing those, the managing organisation of the patient), from an element you choose, or through a chain of references: Then from the … follows the chosen reference to the next resource and takes the facility from there, for example a claim’spatient, then that patient’smanagingOrganization(up to four steps; the last can be found automatically). The data checks show how many resources have a facility, and how many found it through the patient. - 3. Which of them count?
- For a share: a condition on the resource itself, or something follows / something came before for the same patient: another resource (of any type, with its own conditions) within so many hours or days after or before a date of the group, with an optional exception (for example: not when admitted within 6 hours). When something must follow, the period is moved back by that time so it has had the chance, as for readmissions. Other kinds ask for their value, the two moments, the denominator or when a resource is open.
- 4. How it is shown
- Name, group, whether lower or higher is better, the target and the value from which it is off target, the smallest group to show (fewer show as a dash), unit, decimals and what it means.
The preview on the right shows the value now with its status, the 12 periods before, the value per facility, data checks (how many resources have a patient, a date, a facility and a value), examples that count (each opens the resource, and for something that follows the resource that followed), and the definition as JSON, which you can copy or edit directly.
Publishing and versions
A draft is only in the library. Publish makes it available to the board editor (Your KPIs under Add a KPI). Pausing a published KPI keeps it on its boards but shows "Paused" instead of a value. Every saved change is a new version: boards show it at once, and Go back to this version restores an earlier one. A KPI on a board cannot be deleted or put back to draft.
Pattern Events per 1,000: Observation where code.coding.code is any of 1912002 (Fall), date effectiveDateTime, facility found automatically through Observation.encounter; per 1,000 bed-days; lower is better, target 3, off target from 4.