Tiro.health Implementation Guide
0.1.0 - ci-build
Tiro.health Implementation Guide - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
| Official URL: http://fhir.tiro.health/StructureDefinition/questionnaire-optionRestriction | Version: 0.1.0 | |||
| Draft as of 2026-04-30 | Computable Name: OptionRestriction | |||
Conditionally restricts answer options based on FHIRPath expressions that evaluate other answers in the questionnaire. When the expression evaluates to true, the specified option is restricted (hidden or disabled).
Context of Use
This extension may be used on the following element(s)
Questionnaire.item
Usage info
Usages:
You can also check for usages in the FHIR IG Statistics
Description of Profiles, Differentials, Snapshots, and how the XML and JSON presentations work.
This structure is derived from Extension
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
0..* | Extension | Option Restriction | |
![]() ![]() |
2..* | Extension | Extension | |
![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() |
S | 1..* | Extension | The answer option coding to restrict. |
![]() ![]() ![]() ![]() |
0..0 | Extension | ||
![]() ![]() ![]() ![]() |
1..1 | uri | "option" | |
![]() ![]() ![]() ![]() |
0..1 | Coding | Value of extension | |
![]() ![]() ![]() |
S | 1..1 | Extension | FHIRPath expression that determines when this option is restricted. |
![]() ![]() ![]() ![]() |
0..0 | Extension | ||
![]() ![]() ![]() ![]() |
1..1 | uri | "expression" | |
![]() ![]() ![]() ![]() |
0..1 | Expression | Value of extension | |
![]() ![]() ![]() ![]() ![]() |
0..1 | code | text/cql | text/fhirpath | application/x-fhir-query | etc. Required Pattern: text/fhirpath | |
![]() ![]() |
1..1 | uri | "http://fhir.tiro.health/StructureDefinition/questionnaire-optionRestriction" | |
![]() ![]() |
0..0 | Value of extension | ||
Documentation for this format | ||||
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
0..* | Extension | Option Restriction | |||||
![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() |
2..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
S | 1..* | Extension | The answer option coding to restrict. | ||||
![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..0 | Extension Slice: Unordered, Open by value:url | ||||||
![]() ![]() ![]() ![]() |
1..1 | uri | "option" | |||||
![]() ![]() ![]() ![]() |
0..1 | Coding | Value of extension | |||||
![]() ![]() ![]() |
S | 1..1 | Extension | FHIRPath expression that determines when this option is restricted. | ||||
![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..0 | Extension Slice: Unordered, Open by value:url | ||||||
![]() ![]() ![]() ![]() |
1..1 | uri | "expression" | |||||
![]() ![]() ![]() ![]() |
0..1 | Expression | Value of extension | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() ![]() |
Σ | 0..1 | string | Natural language description of the condition | ||||
![]() ![]() ![]() ![]() ![]() |
ΣC | 0..1 | code | Short name assigned to expression for reuse | ||||
![]() ![]() ![]() ![]() ![]() |
Σ | 0..1 | code | text/cql | text/fhirpath | application/x-fhir-query | etc. Binding: ExpressionLanguage (extensible): The media type of the expression language.
Required Pattern: text/fhirpath | ||||
![]() ![]() ![]() ![]() ![]() |
ΣC | 0..1 | string | Expression in specified language | ||||
![]() ![]() ![]() ![]() ![]() |
ΣC | 0..1 | uri | Where the expression is found | ||||
![]() ![]() |
1..1 | uri | "http://fhir.tiro.health/StructureDefinition/questionnaire-optionRestriction" | |||||
Documentation for this format | ||||||||
This structure is derived from Extension
Summary
Complex Extension: Conditionally restricts answer options based on FHIRPath expressions that evaluate other answers in the questionnaire. When the expression evaluates to true, the specified option is restricted (hidden or disabled).
Differential View
This structure is derived from Extension
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
0..* | Extension | Option Restriction | |
![]() ![]() |
2..* | Extension | Extension | |
![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() |
S | 1..* | Extension | The answer option coding to restrict. |
![]() ![]() ![]() ![]() |
0..0 | Extension | ||
![]() ![]() ![]() ![]() |
1..1 | uri | "option" | |
![]() ![]() ![]() ![]() |
0..1 | Coding | Value of extension | |
![]() ![]() ![]() |
S | 1..1 | Extension | FHIRPath expression that determines when this option is restricted. |
![]() ![]() ![]() ![]() |
0..0 | Extension | ||
![]() ![]() ![]() ![]() |
1..1 | uri | "expression" | |
![]() ![]() ![]() ![]() |
0..1 | Expression | Value of extension | |
![]() ![]() ![]() ![]() ![]() |
0..1 | code | text/cql | text/fhirpath | application/x-fhir-query | etc. Required Pattern: text/fhirpath | |
![]() ![]() |
1..1 | uri | "http://fhir.tiro.health/StructureDefinition/questionnaire-optionRestriction" | |
![]() ![]() |
0..0 | Value of extension | ||
Documentation for this format | ||||
Snapshot View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
0..* | Extension | Option Restriction | |||||
![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() |
2..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
S | 1..* | Extension | The answer option coding to restrict. | ||||
![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..0 | Extension Slice: Unordered, Open by value:url | ||||||
![]() ![]() ![]() ![]() |
1..1 | uri | "option" | |||||
![]() ![]() ![]() ![]() |
0..1 | Coding | Value of extension | |||||
![]() ![]() ![]() |
S | 1..1 | Extension | FHIRPath expression that determines when this option is restricted. | ||||
![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..0 | Extension Slice: Unordered, Open by value:url | ||||||
![]() ![]() ![]() ![]() |
1..1 | uri | "expression" | |||||
![]() ![]() ![]() ![]() |
0..1 | Expression | Value of extension | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() ![]() |
Σ | 0..1 | string | Natural language description of the condition | ||||
![]() ![]() ![]() ![]() ![]() |
ΣC | 0..1 | code | Short name assigned to expression for reuse | ||||
![]() ![]() ![]() ![]() ![]() |
Σ | 0..1 | code | text/cql | text/fhirpath | application/x-fhir-query | etc. Binding: ExpressionLanguage (extensible): The media type of the expression language.
Required Pattern: text/fhirpath | ||||
![]() ![]() ![]() ![]() ![]() |
ΣC | 0..1 | string | Expression in specified language | ||||
![]() ![]() ![]() ![]() ![]() |
ΣC | 0..1 | uri | Where the expression is found | ||||
![]() ![]() |
1..1 | uri | "http://fhir.tiro.health/StructureDefinition/questionnaire-optionRestriction" | |||||
Documentation for this format | ||||||||
This structure is derived from Extension
Summary
Complex Extension: Conditionally restricts answer options based on FHIRPath expressions that evaluate other answers in the questionnaire. When the expression evaluates to true, the specified option is restricted (hidden or disabled).
Other representations of profile: CSV, Excel, Schematron
| Path | Status | Usage | ValueSet | Version | Source |
| Extension.extension:expression.value[x].language | Base | extensible | Expression Language | 📍5.0.0 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| 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()
|