Indicator Component Tags
Use the following tags to define an indicator component for a stamp portlet.
Tag | Example | Description | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
indicator |
indicator type="alert" { position { top 52 left 290 } value "$(MEASURE_1)" { timeseries { range "cd" variation "cvp-pct" } } size { width 15 height 15 } colors { macro "ui_color_red" macro "ui_color_grey" macro "ui_color_green" } threshold -5 threshold 5 } |
Defines the block for an indicator component. The block and possible attributes: indicator type=<display type of indicator> { <position> <size> <style (optional)> <click actions (optional)> <value> (just one) <first threshold> (optional) <second threshold> (optional) ... } |
||||||||||||||
type | indicator type="racetrack" |
Indicates the type of indicator to display. Allowed indicator display types:
|
||||||||||||||
Additional optional indicator attributes: | ||||||||||||||||
alert-options |
alert-options { text-position "right" show-when-null in-color="rgb(255, 0, 0)" text-colors { color "rgb(255, 0, 0)" color "rgb(0, 255, 0)" color "rgb(0, 0, 255)" } } |
Available in Workbench 7.2(12) and later. Contains sub-tags that set options for alert indicators. Options are:
For information about the define-direction-thresholds and use-color-thresholds-for-triangle-direction tags, see Triangle Direction Settings. |
||||||||||||||
bar-options |
bar-options { bullet-bar-color "rgb(255, 0, 0)" show-value-on-bar } |
Available in Workbench 7.2(12) and later. Contains sub-tags that set options for a horizontal-bullet and vertical-bullet indicators.
|
||||||||||||||
colors |
colors { hex "ffaa22" hex "B2B2B2" }
colors { macro "ui_color_red" macro "ui_color_grey" macro "ui_color_green" } |
Specifies any number of lines describing colors in the order in which they are to be used. The options to define color can be mixed and matched.
|
||||||||||||||
color-background |
indicator type = "text" { color-background fixed-text-color "#FFFFFF" ... } |
Mimics the DivePort functionality for Indicator and Measures Portlets that colors the indicator background rather than the text itself. To set a fixed text color, use the tag fixed-text-color followed on the same line by a CSS color string in quotes. For example, "rgb(5,5,5)",. |
||||||||||||||
color-value | color-value "$(MEASURE_1)" | Colors the indicator background based on an alternate value | ||||||||||||||
filter |
filter "value(\"Facility\")=\"Longwood Hospital\"" context="record" |
Defines an expression for a filter and the context—use summary for a window-level filter or record for a dive-level filter. | ||||||||||||||
gauge-options |
gauge-options { needle-type"long" color-needle } |
Available in Workbench 7.2(12) and later. Contains sub-tags that set options for a gauge or circular-gauge indicator. Options are:
|
||||||||||||||
hide-axes | hide-axes |
Prevents the baseline value from displaying as an axis label on horizontal indicators. NOTE: When a horizontal indicator is used in a column, space limitations require that the baseline is the only value that is labeled on the axis. |
||||||||||||||
justification | justification "right" |
Defines the justification for a text indicator. Defaults to center. Options are:
|
||||||||||||||
scale-max | scale-max 100 | Defines the scale maximum with a number or macro. | ||||||||||||||
scale-min | scale-min -100 | Defines the scale minimum with a number or macro. | ||||||||||||||
scale-options |
scale-options { scale-min 1000 scale-max 4000 scale-format "0.0" scale-font "Verdana 20" } |
Available in Workbench 7.2(12) and later. Contains sub-tags that set scale options. Options are:
|
||||||||||||||
shape | shape "square" |
Defines the shape for an alert indicator. Options are:
|
||||||||||||||
subtitle |
subtitle "Subtitle" { color "rgb(0, 255, 0)" font "Verdana 12" } |
Available in Workbench 7.2(12) and later. Sets a subtitle name. This tag has two sub-tags. Options are:
|
||||||||||||||
threshold |
threshold -5 threshold 5
threshold "$(MACRO $(CONCAT $(MEASURE_1) \"_threshold\"))" |
Defines a list of simple thresholds in order. You cannot mix-and-match threshold types: if one threshold is a constant (number), they all must be constants; if one is a macro string, they must all be macro strings. NOTE: The macro strings must evaluate to constants, not column names. This macro expression example sets a different threshold for each measure. Available in Workbench 7.2(12) and later, the inclusive sub-tag specifies the threshold as inclusive. |
||||||||||||||
threshold-value |
threshold-value "$(MEASURE_2)"
threshold-value "$(MEASURE_NAME)" { time-series { range "mtd" variation "p" } aux-measure "Target" } |
Defines measure-based thresholds, with time series or auxiliary measures or both. The measure can be a fixed name or a macro. Available in Workbench 7.2(12) and later, the inclusive sub-tag specifies the threshold as inclusive. |
||||||||||||||
title |
title "Title" { color "rgb(255, 0, 0)" font "Verdana 26" } |
Available in Workbench 7.2(12) and later. Sets a title name. This tag has two sub-tags. Options are:
|
The following tags are for the value tag and its attributes.
Tag | Example | Description |
---|---|---|
value | value "GL rate" |
Indicates the measure name. Can also be specified as: value "$(MEASURE_1)" to indicate user-chosen measures. . |
absolute-time-series |
value "Average LOS" { absolute-time-series { period "q" period-number 1 offset-period "y" offset-number -2 } ... } |
A value attribute that defines the measure value as an absolute-time series column. The absolute-time-series block has four required child tags:
|
comparison-time-series |
value "Shipped Orders" { comparison-time-series { from { relative-time-series { number-of-periods 1 period "m" offset-period "m" offset-number -1 } } to { relative-time-series { number-of-periods 1 period "m" offset-period "m" offset-number 0 } } percent true } |
A value attribute that defines the measure value as a comparison-time series column. A comparison-time-series takes two other (non-comparison) time series as its arguments and calculates the difference between them. NOTE: Typically, the from and to time series are the same type, but that is not a requirement.
The percent attribute specifies if:
The default is false. |
relative-time-series |
value "In-patients" { relative-time-series { period "y" number-of-periods 1 offset-period "y" offset-number -2 } ... } |
A value attribute that defines the measure value as a relative-time series column. The relative-time-series block has four required child tags:
For example, period "y" and number-of-periods 5 and offset-number -1 and offset-period "y" gives 5 complete years ending with the year before the last complete year. |
time-series |
value "Admit rate" { time-series { range "mtd" variation "c" companion "p" } |
A value attribute that defines the measure value as a basic time series column. range can be:
variation can be:
companion can be p (previous) only. NOTE: The companion attribute applies to stamp templates only. It specifies that the default analysis displays a previous column instead of the default previous year column. |
to-date-time-series |
value "Shipped Orders" { to-date-time-series { period "y" to-period "d" offset-period "y" offset-number -2 } ... } |
A value attribute that defines the measure value as a to-date-time series column. The to-date-time-series block has four required child tags:
|
See Stamp Component Tags for attributes common to all the component types used in a stamp.