Measures Tags
The measures block defines and categorizes measures in the factory configuration file.
Measures Tags
Tags | Examples | Notes |
---|---|---|
measures |
measures { ... } |
Defines the container block for the measure tags. Each measure must be listed within a category tag. |
category |
measures { category "Inpatient Volumes" { ... } category "Outpatient Volumes" { ... } ... } |
Defines categories for one or more measure tags. These categories are used by DivePort to categorize measures in the portal. Categories make it easier to locate a measure when adding them to a dashboard. TIP: The dimensions block also has a category tag which is used in ProDiver's console display. |
measure |
measure "IP Admissions" `count()` filter=`value("Admission")` format="#,#" { ... } measure "Total Admissions" `count()` filter=`value("Admission") or value("Normal Newborn Account")` format="#,#" { ... } |
Defines a measure with a name and a Spectre calculation expression, filter, and format. See Measure Code Example for additional tags. TIP: Measures must summarize data. |
Optional Sub-tags for Measure Blocks
Tags | Examples | Notes |
---|---|---|
all-values | quickview "Admit Year" all-values=false |
Attribute for a QuickView that indicates if All Values should be an option for the end-user; defaults to true. |
alternate-name |
alternate-name "Total_admits" |
Defines an alternate name for the measure. Deprecated—use label instead. You can display this name in DivePort by using the macro $(ALTERNATE_MEASURE_NAME). Deprecated—use $(MEASURE_LABEL ...) instead. |
analysis |
analysis "Acute ALOS" { ... } |
Defines the options for analyzing the measure in DivePort. The analysis can be customized using QuickView options. |
assisted-analytics |
dimension "Admit Location" assisted-analytics=true |
Sub-tag for initial-dimensions or available-dimensions. Flags a dimension as eligible for Assisted Analytics (AA) when the dimension is not part of a dimension set. Use care when selecting dimensions. Time-based dimensions are not likely to produce useful results in the analysis, and neither are detail-level dimensions (such as Account ID or Order Number). |
aux-measure |
aux-measure "Exp Value" `sum(value("Exp Readmit Rate"))/count()` filter=`notnull(value("Exp Readmit Rate"))` format="0.00" |
Provides context for the measure, but are not necessary for their calculation. Previously called threshold. Each auxiliary measure inherits the good direction of its parent measure by default. It can also override the parent's direction with its own good-direction tag. Aux-measure tags allow for creation of sub measures to a main measure—often used to populate fields on a dashboard. |
available-dimensions |
available-dimensions { dimension-set "Admissions" } |
Sub-tag for |
default-analysis |
default-analysis { initial-dimensions ... available-dimensions ... quickviews ... } |
Defines the default options for analyzing the measure in DivePort such that additional custom analysis inherit properties. Use of default-analysis is optional. If used, initial-dimensions is required, but the other tags are optional. The default-analysis block has the same syntax as the analysis block, except there is no name and no summaries. This tag allows you to specify the dimensions and QuickViews for a Default analysis independently from a Custom analysis. It is a best practice to define a default-analysis block for each measure with an analysis block. |
default-last-value |
quickview "Admit Year-Month" all-values=false { default-last-value } |
Attribute for a QuickView on an Analysis portlets. Specifies that the default value for the QuickView is the last value in the QuickView list. Applies to date-related QuickViews such as year and year-month. |
default-values |
quickview "Facility" { default-values "Facility A" } |
Attribute for a QuickView on an Analysis portlets. Specifies the default value for the QuickView. |
definition |
definition "Count of Accounts that are either an Admission or a Normal Newborn Account." |
Defines, in words, the business rules behind the measure. You can display this in DivePort, using the $(MEASURE_DEFINITION) macro. |
description |
description "All inpatient admissions including Normal Newborns" |
Provides a brief explanation of what the measure represents. You can display this in DivePort, using the $(MEASURE_DESCRIPTION) macro. |
dimensions |
dimensions { dimension-set "Dimension Set 1" } |
Sub-tag for analysis that defines the dimensions used for this measure's analysis. You can list single dimensions or use dimension sets. |
diveport-central-page |
dimension "MRN" { diveport-central-page "mrn_page" } |
Sub-tag for dimensions, initial-dimensions and available-dimensions as part of a dimension definition. Available for use in DivePort 7.1(19) and later. Used in DivePort as follows:
|
duration | measure "ED Average Time to Admission" `average(value("ED Time to Admit"))` filter=`value("ED Time to Admit Encounter") > 0` duration=true |
Sub-tag for measure indicates that, when duration is set to true, the numeric measure displays as a time with the standard format hh:mm:ss. |
filter | filter `value(substr("Customer ID", 1, 4)= "4100")` |
Sub-tag for analysis that defines a filter on a dimension. |
format | format="YYYY-MM" | Defines the format to use for the values. |
good-direction |
good-direction "down" |
Defines whether higher or lower values are favorable. This determines the color of the indicators that appear on DivePort pages. If this tag is not in use, the default is up. This tag can be used with both the main measure and |
id |
id "79e4429e-fb56-4047-9510-6bea6acc989b" |
Defines the unique identifier for this measure within the factory when using Teamer integration for collaboration. |
initial-dimensions |
initial-dimensions { dimension "Admit Location" dimension "Admit Date" } sort "Admit Date" |
Sub-tag for The default is to sort down on the first summary column, unless the initial dimension is a date or period, in which case that dimension is sorted.
TIP: For custom analysis, multiple initial-dimensions create a multitab. |
label |
label "Overall ALOS" |
Defines an alternative label for the measure. You can display this in DivePort using the $(MEASURE_LABEL) macro. For example: $(MEASURE_LABEL "PPA Overall ALOS") could display "Overall ALOS" in the portlet. NOTE: If set, the Matrix portlet displays that label instead of the measure name. Columns labels in other portlets also use the measure label instead of its name. |
quickviews |
quickviews { quickview "Facility" quickview "Admit Year-Month" } |
Sub-tag for |
reference |
reference "UB-04 Specifications Manual" |
Lists documents useful for understanding the origins of a measure's definition and logic. You can display this reference in DivePort, using the $(MEASURE_REFERENCE) macro. |
scope | scope "Admissions" |
Sub-tag for measure that defines the summary scope to use for the measure. Previously called view. NOTE: Most measures have a |
single-selection | single-selection=true |
Attribute for a QuickView that indicates that only one value can be selected from a QuickView. |
sort | sort "Total Charges" reverse=true |
Sub-tag for analysis that specifies a sort on a dimension or summary column. |
summaries |
summaries { summary "% Total" `measure("Total Admissions") * 100 / parent(measure("Total Admissions"))` format="#.0\"%\"" } |
Sub-tag for analysis that defines the calculation for the named summary. The summary columns display when analyzing the measure in DivePort. Can include a filter and format. The summary can also have a sort tag. The definition for a summary must include a measure. NOTE: The measure() function shown in the example is available only in the factory configuration file, not in any other Spectre file types. TIP: If a summary is defined simply as a measure, a new calculation is defined for the analysis. The summary calc does not inherit the formatting from the measure. |
threshold |
threshold "Exp Value" `sum(value("Exp Readmit Rate"))/count()` filter=`notnull(value("Exp Readmit Rate"))` format="0.00" |
Provides context for the measure but is not necessary for the calculation. Each threshold measure by default inherits the good direction of its parent measure. It can also override the parent's direction with its own good-direction tag. |
measure "Total Admissions" `count()` filter=`value("Admission") or value("Normal Newborn Acct")` format="#,#" {
description "The sum of all Inpatient Accounts, Acute and Non-Acute including Normal Newborns."
definition "The count of all Inpatient Accounts, Acute and Non-Acute including Normal Newborns. ... "
reference "UB-04 Specifications Manual"
scope "Admissions"
analysis {
available-dimensions {
dimension-set "Admissions"
}
initial-dimensions {
dimension "Admit Location"
}
quickviews {
quickview "Facility"
quickview "Admit Year-Month"
}
summaries {
summary "Acute" `measure("Acute Admissions")`
summary "Non-Acute" `measure("Non-Acute Admissions")`
summary "ED Admits" `measure("ED Admissions")`
summary "Total Newborns" `measure("Total Newborns")`
}
}
}
measure "Acute ALOS" `measure("Acute Discharge Days") / measure("Acute Discharges")` filter=`value("Acute Discharge")`
format="0.00" {
description "The sum of Total Discharge Days for Acute Inpatients divided by the total number of Acute Inpatient discharges "
definition "Acute Discharge Days Divided by Acute Discharges. ... "
reference "UB-04 Specifications Manual & Essentials of Statistics in Health Information Technology"
scope "Discharges" good-direction "down" alternate-name "ALOS_Acute"
analysis {
available-dimensions {
dimension-set "Discharges"
}
initial-dimensions {
dimension "Discharge Location"
}
quickviews {
quickview "Facility"
quickview "Discharge Year"
quickview "Discharge Year-Month"
}
summaries {
summary "Discharge Days" `measure("Acute Discharge Days")`
summary "Discharges" `measure("Acute Discharges")`
summary "Exp ALOS" `measure("Acute ALOS Target")`
format="0.00"
summary "+/-" `measure("Acute ALOS Variance")`
format="0.00"
summary "Opportunity" `measure("Acute LOS Opportunity")`
format="0,0.00"
}
}
aux-measure "Target threshold" `measure("Acute ALOS Target")`
format="0.00" {
scope "Discharges"
}
aux-measure "Variance threshold" `measure("Acute ALOS") - measure("Acute ALOS Target threshold")`
format="0.00" {
scope "Discharges"
}
aux-measure "Variance % threshold" `(measure("Acute ALOS")-measure("Acute ALOS Target threshold"))*100/measure("Acute ALOS Target threshold")`
format="#.0\"%\"" {
scope "Discharges"
}
id "78b40334-4877-4ed7-bc3e-09e7303abbaa"
}