Description
Accept comparator less-than, less-than-or-equal, greater-than, or greater-than-or-equal.
A reported threshold is not an exact measured value. Censored observations have one available bound, while a rounded exact value can be represented by a finite interval.
Accept comparator less-than, less-than-or-equal, greater-than, or greater-than-or-equal.
When to use this tool
Use FHIR Quantity Comparator Censor Bound when you need to preserve bound availability rather than treating every number as exact.
How to use the tool and how it works
- Enter value, comparator. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read lowerBoundPresent, upperBoundPresent, inclusive, bound. Inspect lowerBoundPresent, upperBoundPresent, inclusive before interpreting the associated values.
Accept comparator less-than, less-than-or-equal, greater-than, or greater-than-or-equal. Return value as bound, its lower/upper orientation, and whether equality is included.1
FHIR Quantity comparators change how its numeric value is interpreted. A bound must retain its inequality and equality convention rather than being treated as an exact point value.2
| Input field | Meaning and units | Accepted input |
|---|---|---|
| value | Value on the measurement or record basis stated above. | Required. Finite number. |
| comparator | Comparator | Required. Text; one of "<", "<=", ">", ">="; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| lowerBoundPresent | Lower Bound Present | Required. Boolean. |
| upperBoundPresent | Upper Bound Present | Required. Boolean. |
| inclusive | Inclusive | Required. Boolean. |
| bound | Numeric limit; the comparator determines its bound orientation and inclusion. | Required. Finite number. |
{
"input": {
"value": 5,
"comparator": "<"
},
"output": {
"bound": 5,
"lowerBoundPresent": false,
"upperBoundPresent": true,
"inclusive": false
}
} Limitations and assumptions
- The bound is not an exact measured value and no opposite bound is inferred; quantities, units, assay limits, and clinical meaning remain outside this check.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Retain the original assay qualifier and use an appropriate censored-data method for statistical analysis.
References
-
Calculation and input contract: health-informatics/fhir-quantity-comparator-censor-bound — tool.io
-
FHIR R4: Data Types — Health Level Seven International
Similar or alternative tools
- Cytokine Result Censor Interval Token
Select a lower or upper bound using below, and choose a strict or inclusive comparison token using inclusive.
- Cycle Record Left Censored Interval Tag
Return first-onset-minus-observation-start as minimumDays and exact prior-to-first difference only when known, otherwise exactDays zero with exactPresent false.