Documentation / How to: Viewer

How to create your own KPI in four steps

Start from a pattern, describe the resources that count, check the preview, publish.

Viewer Enterprise EditionThis is part of Viewer Enterprise Edition, a paid upgrade to the free Viewer. It is included in the 30-day trial; after that it needs a licence that includes it.
Before you start
Who
Quality staff and BI analysts.
You need
viewer:command.build to make KPIs.
  1. Open the KPI library

    KPI library at the top of the Command centre lists the 35 built-in KPIs and your own, with their value now.
    The KPI library: built-in and own KPIs with their current value, and the six patterns
    The KPI library: built-in and own KPIs with their current value, and the six patterns
    1. New KPI – Start an empty KPI, or a copy: Duplicate as your own on a built-in KPI.
    2. The library – All, Built-in, Ours and Drafts. Per KPI: its kind, the resource types it reads, owner, status (draft, published, paused), the boards that use it and its value now for all facilities over the last 30 days. The menu of a row edits, duplicates, publishes, pauses or deletes it.
    3. Start from a pattern – Most KPIs are one of six patterns: something follows (readmissions), the time between two events, a result in range, events per 1,000, a count with a filter, or open at the end. Pick one and change the resources.
  2. Start from a pattern

    Most KPIs are one of six patterns: something follows (readmissions), the time between two events, a result in range, events per 1,000, a count with a filter, or open at the end. Or start from nothing, or Duplicate as your own on a built-in KPI.
  3. Answer the four questions

    1. What kind of number. 2. Which resources make the group, with conditions on their elements. 3. Which of them count. 4. How it is shown: name, target, off target from, smallest group.
    The KPI builder with its four steps, the preview, the data checks, examples and the JSON definition
    The KPI builder with its four steps, the preview, the data checks, examples and the JSON definition
    1. 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. 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. 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. 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.
    5. 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.
    6. Examples that count – Resources that count, each opening the resource (and the one that followed), to check that the definition does what you mean.
    7. The definition – The KPI as JSON, to copy or edit directly.
  4. Check the preview

    The preview runs on your data as you go: the value, the 12 periods before it, the value per facility, data checks and examples that count, each linked to its resource.
  5. Publish it

    Save draft keeps it to yourself; Publish to the library makes it available under Your KPIs in the board editor.
ExampleFalls per 1,000 bed-days
Pattern Events per 1,000: Observation where code.coding.code is any of 1912002 (Fall), dated by effectiveDateTime, facility found automatically through Observation.encounter; per 1,000 bed-days; lower is better, target 3, off target from 4.
The resultA KPI any board can use. Every change is a new version; a KPI on a board cannot be deleted. More on the KPI library page.