This page is part of the FHIR Specification (v4.2.0: R5 Preview #1). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions
Clinical Decision Support Work Group | Maturity Level: 0 | Standards Status: Trial Use |
This type is still undergoing development and review by the appropriate Workgroups. At this time, is considered only as a draft design not suitable for production implementation
The OrderedDistribution data type is series of statistics in a logical order
Note: the OrderedDistribution structure allows modifier extensions.
Structure
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
OrderedDistribution | D | Element | An ordered list (distribution) of statistics + Rule: The cardinality of interval SHALL equal the value of numberOfIntervals Elements defined in Ancestors: id, extension, modifierExtension | |
description | 0..1 | string | A description of the content and value of the statistic | |
note | 0..* | Annotation | Footnotes and/or explanatory notes | |
numberOfIntervals | Σ | 1..1 | integer | Number of intervals in an array, eg 4 for quartiles |
bottomOfFirstInterval | I | 0..1 | Quantity | Bottom of first interval + Rule: If minimum is not empty, all instances of interval.maximum must either be absent or > minimum.. |
interval | ΣI | 1..* | Element | Interval + Rule: For every interval n, if n.maximum is not empty then, for every interval k, if k.rankOrder < n.rankOrder then k.maximum must be < n.maximum or empty. |
rankOrder | ΣI | 1..1 | integer | Relative order of interval + Rule: Now two intervals in the same OrderedDistribution can have the same rankOrder + Rule: The rankOrder value SHALL be an integer from 1 to k where k is the value of numberOfIntervals |
intervalStatistic | 0..* | Statistic | Values and parameters for a single statistic related to the interval | |
topOfInterval | 0..1 | Quantity | Singular value of the statistic at the upper bound of the interval | |
Documentation for this format |
UML Diagram (Legend)
XML Template
<OrderedDistribution xmlns="http://hl7.org/fhir"> <!-- from Element: extension --> <description value="[string]"/><!-- 0..1 A description of the content and value of the statistic --> <note><!-- 0..* Annotation Footnotes and/or explanatory notes --></note> <numberOfIntervals value="[integer]"/><!-- 1..1 Number of intervals in an array, eg 4 for quartiles --> <bottomOfFirstInterval><!-- 0..1 Quantity Bottom of first interval --></bottomOfFirstInterval> <interval> <!-- 1..* Interval --> <rankOrder value="[integer]"/><!-- 1..1 Relative order of interval --> <intervalStatistic><!-- 0..* Statistic Values and parameters for a single statistic related to the interval --></intervalStatistic> </interval> <topOfInterval><!-- 0..1 Quantity Singular value of the statistic at the upper bound of the interval --></topOfInterval> </OrderedDistribution>
JSON Template
{ // from Element: extension "description" : "<string>", // A description of the content and value of the statistic "note" : [{ Annotation }], // Footnotes and/or explanatory notes "numberOfIntervals" : <integer>, // R! Number of intervals in an array, eg 4 for quartiles "bottomOfFirstInterval" : { Quantity }, // Bottom of first interval "interval" : [{ // R! Interval "rankOrder" : <integer>, // R! Relative order of interval "intervalStatistic" : [{ Statistic }] // Values and parameters for a single statistic related to the interval }], "topOfInterval" : { Quantity } // Singular value of the statistic at the upper bound of the interval }
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ # from Element: Element.extension fhir:OrderedDistribution.description [ string ]; # 0..1 A description of the content and value of the statistic fhir:OrderedDistribution.note [ Annotation ], ... ; # 0..* Footnotes and/or explanatory notes fhir:OrderedDistribution.numberOfIntervals [ integer ]; # 1..1 Number of intervals in an array, eg 4 for quartiles fhir:OrderedDistribution.bottomOfFirstInterval [ Quantity ]; # 0..1 Bottom of first interval fhir:OrderedDistribution.interval [ # 1..* Interval fhir:OrderedDistribution.interval.rankOrder [ integer ]; # 1..1 Relative order of interval fhir:OrderedDistribution.interval.intervalStatistic [ Statistic ], ... ; # 0..* Values and parameters for a single statistic related to the interval ], ...; fhir:OrderedDistribution.topOfInterval [ Quantity ]; # 0..1 Singular value of the statistic at the upper bound of the interval ]
Changes since Release 3
This complex-type did not exist in Release 2
Structure
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
OrderedDistribution | D | Element | An ordered list (distribution) of statistics + Rule: The cardinality of interval SHALL equal the value of numberOfIntervals Elements defined in Ancestors: id, extension, modifierExtension | |
description | 0..1 | string | A description of the content and value of the statistic | |
note | 0..* | Annotation | Footnotes and/or explanatory notes | |
numberOfIntervals | Σ | 1..1 | integer | Number of intervals in an array, eg 4 for quartiles |
bottomOfFirstInterval | I | 0..1 | Quantity | Bottom of first interval + Rule: If minimum is not empty, all instances of interval.maximum must either be absent or > minimum.. |
interval | ΣI | 1..* | Element | Interval + Rule: For every interval n, if n.maximum is not empty then, for every interval k, if k.rankOrder < n.rankOrder then k.maximum must be < n.maximum or empty. |
rankOrder | ΣI | 1..1 | integer | Relative order of interval + Rule: Now two intervals in the same OrderedDistribution can have the same rankOrder + Rule: The rankOrder value SHALL be an integer from 1 to k where k is the value of numberOfIntervals |
intervalStatistic | 0..* | Statistic | Values and parameters for a single statistic related to the interval | |
topOfInterval | 0..1 | Quantity | Singular value of the statistic at the upper bound of the interval | |
Documentation for this format |
XML Template
<OrderedDistribution xmlns="http://hl7.org/fhir"> <!-- from Element: extension --> <description value="[string]"/><!-- 0..1 A description of the content and value of the statistic --> <note><!-- 0..* Annotation Footnotes and/or explanatory notes --></note> <numberOfIntervals value="[integer]"/><!-- 1..1 Number of intervals in an array, eg 4 for quartiles --> <bottomOfFirstInterval><!-- 0..1 Quantity Bottom of first interval --></bottomOfFirstInterval> <interval> <!-- 1..* Interval --> <rankOrder value="[integer]"/><!-- 1..1 Relative order of interval --> <intervalStatistic><!-- 0..* Statistic Values and parameters for a single statistic related to the interval --></intervalStatistic> </interval> <topOfInterval><!-- 0..1 Quantity Singular value of the statistic at the upper bound of the interval --></topOfInterval> </OrderedDistribution>
JSON Template
{ // from Element: extension "description" : "<string>", // A description of the content and value of the statistic "note" : [{ Annotation }], // Footnotes and/or explanatory notes "numberOfIntervals" : <integer>, // R! Number of intervals in an array, eg 4 for quartiles "bottomOfFirstInterval" : { Quantity }, // Bottom of first interval "interval" : [{ // R! Interval "rankOrder" : <integer>, // R! Relative order of interval "intervalStatistic" : [{ Statistic }] // Values and parameters for a single statistic related to the interval }], "topOfInterval" : { Quantity } // Singular value of the statistic at the upper bound of the interval }
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ # from Element: Element.extension fhir:OrderedDistribution.description [ string ]; # 0..1 A description of the content and value of the statistic fhir:OrderedDistribution.note [ Annotation ], ... ; # 0..* Footnotes and/or explanatory notes fhir:OrderedDistribution.numberOfIntervals [ integer ]; # 1..1 Number of intervals in an array, eg 4 for quartiles fhir:OrderedDistribution.bottomOfFirstInterval [ Quantity ]; # 0..1 Bottom of first interval fhir:OrderedDistribution.interval [ # 1..* Interval fhir:OrderedDistribution.interval.rankOrder [ integer ]; # 1..1 Relative order of interval fhir:OrderedDistribution.interval.intervalStatistic [ Statistic ], ... ; # 0..* Values and parameters for a single statistic related to the interval ], ...; fhir:OrderedDistribution.topOfInterval [ Quantity ]; # 0..1 Singular value of the statistic at the upper bound of the interval ]
Constraints
id | Level | Location | Description | Expression |
odd-1 | Rule | OrderedDistribution.bottomOfFirstInterval | If minimum is not empty, all instances of interval.maximum must either be absent or > minimum.. | true |
odd-2 | Rule | OrderedDistribution.interval | For every interval n, if n.maximum is not empty then, for every interval k, if k.rankOrder < n.rankOrder then k.maximum must be < n.maximum or empty. | true |
odd-3 | Rule | OrderedDistribution.interval.rankOrder | Now two intervals in the same OrderedDistribution can have the same rankOrder | true |
odd-4 | Rule | (base) | The cardinality of interval SHALL equal the value of numberOfIntervals | interval.count() = numberOfIntervals |
odd-5 | Rule | OrderedDistribution.interval.rankOrder | The rankOrder value SHALL be an integer from 1 to k where k is the value of numberOfIntervals | true |
OrderedDistribution is used in the following places: Evidence