RESQ Stroke Registry Implementation Guide
0.2.0-draft - draft Czechia flag

RESQ Stroke Registry Implementation Guide - Local Development build (v0.2.0-draft) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

Extension: Averaging window

Official URL: http://fhir.qualityregistry.org/StructureDefinition/averaging-window-ext Version: 0.2.0-draft
Draft as of 2026-10-21 Computable Name: AveragingWindowExt

The look-back window an aggregated value expresses, as a whole number of UCUM time units: 30 days, 12 weeks, 6 months. Observation.effectivePeriod carries the actual calendar dates the readings were drawn from; this extension carries the nominal window so that consumers can select aggregations by window length without date arithmetic.

Context of Use

    This extension may be used on the following element(s)

Usage info

Usages:

You can also check for usages in the FHIR IG Statistics

Formal Views of Extension Content

Description of Profiles, Differentials, Snapshots, and how the XML and JSON presentations work.

This structure is derived from Extension

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Extension 0..* Extension Averaging window
... extension 0..0 Extension
... url 1..1 uri "http://fhir.qualityregistry.org/StructureDefinition/averaging-window-ext"
... value[x] SC 1..1 Duration Length of the averaging window, for example 30 days
Constraints: avw-whole-number
.... value S 1..1 decimal Whole number of units, for example 30
.... comparator 0..0 < | <= | >= | > | ad - how to understand the value
.... system S 1..1 uri System that defines coded unit form
Required Pattern: http://unitsofmeasure.org
.... code S 1..1 code UCUM time unit, for example d, wk or mo

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Extension 0..* Extension Averaging window
... id 0..1 id Unique id for inter-element referencing
... extension 0..0 Extension
Slice: Unordered, Open by value:url
... url 1..1 uri "http://fhir.qualityregistry.org/StructureDefinition/averaging-window-ext"
.... id 0..1 id Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... value SΣ 1..1 decimal Whole number of units, for example 30
.... unit Σ 0..1 string Unit representation
.... system SΣC 1..1 uri System that defines coded unit form
Required Pattern: http://unitsofmeasure.org
.... code SΣC 1..1 code UCUM time unit, for example d, wk or mo

doco Documentation for this format

This structure is derived from Extension

Summary

Simple Extension with the type Duration: The look-back window an aggregated value expresses, as a whole number of UCUM time units: 30 days, 12 weeks, 6 months. Observation.effectivePeriod carries the actual calendar dates the readings were drawn from; this extension carries the nominal window so that consumers can select aggregations by window length without date arithmetic.

Differential View

This structure is derived from Extension

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Extension 0..* Extension Averaging window
... extension 0..0 Extension
... url 1..1 uri "http://fhir.qualityregistry.org/StructureDefinition/averaging-window-ext"
... value[x] SC 1..1 Duration Length of the averaging window, for example 30 days
Constraints: avw-whole-number
.... value S 1..1 decimal Whole number of units, for example 30
.... comparator 0..0 < | <= | >= | > | ad - how to understand the value
.... system S 1..1 uri System that defines coded unit form
Required Pattern: http://unitsofmeasure.org
.... code S 1..1 code UCUM time unit, for example d, wk or mo

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Extension 0..* Extension Averaging window
... id 0..1 id Unique id for inter-element referencing
... extension 0..0 Extension
Slice: Unordered, Open by value:url
... url 1..1 uri "http://fhir.qualityregistry.org/StructureDefinition/averaging-window-ext"
.... id 0..1 id Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... value SΣ 1..1 decimal Whole number of units, for example 30
.... unit Σ 0..1 string Unit representation
.... system SΣC 1..1 uri System that defines coded unit form
Required Pattern: http://unitsofmeasure.org
.... code SΣC 1..1 code UCUM time unit, for example d, wk or mo

doco Documentation for this format

This structure is derived from Extension

Summary

Simple Extension with the type Duration: The look-back window an aggregated value expresses, as a whole number of UCUM time units: 30 days, 12 weeks, 6 months. Observation.effectivePeriod carries the actual calendar dates the readings were drawn from; this extension carries the nominal window so that consumers can select aggregations by window length without date arithmetic.

 

Other representations of profile: CSV, Excel, Schematron

Constraints

Id Grade Path(s) Description Expression
avw-whole-number error Extension.value[x] An averaging window must be a positive whole number of units. Quantity.value is a decimal in FHIR and cannot be retyped to an integer, so the whole-number requirement is stated here instead. value > 0 and value = value.truncate()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()