Form Behavior and Rendering
This section defines expectations for how Ontario SDC-compliant forms are rendered, how logic is executed, and how data is prepopulated and processed by conformant systems.
Expressions
The Ontario Questionnaire profile includes several mustSupport
extensions that use the Expression
data type.
- All expressions SHALL be written in FHIRPath.
- Form fillers SHALL support any valid FHIRPath 2.0.0 expression used in forms.
- Expressions may be used for logic, conditional visibility, validation rules, calculated values, and dynamic rendering.
Population and Extraction
Form fillers SHALL support Expression-based population and Definition-based extraction.
QuestionnaireResponse Narrative
When a QuestionnaireResponse
is completed, form fillers SHALL generate the narrative using any provided FHIR Liquid template pointed to by the Questionnaire’s ResponseRenderingLiquid extension.
Rendering Expectations
Ontario Health specifies the following behavior for compliant rendering systems:
- Radio Buttons SHALL be rendered as individual buttons, where the 'selected' button is highlighted as depressed.
Future Enhancements (TODOs)
- Additional rendering expectations
- Images of what rendering is acceptable.