For a full list of available versions, see the Directory of published versions
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.
This Implementation Guide defines technical requirements for form versioning to support traceability and consistent interpretation across systems.
Questionnaire SHALL declare a Questionnaire.version and a Questionnaire.versionAlgorithm (extension) to indicate how version values are compared. Implementers are strongly encouraged to use semantic versioning (SemVer).QuestionnaireResponse instances can be reliably associated with the exact form definition used at the time of data capture.The Ontario Questionnaire profile includes several mustSupport extensions that use the Expression data type.
Form fillers SHALL support Expression-based population and Definition-based extraction.
Implementation Note: The eForms IG defines auto-population logic using FHIRPath expressions to provide a standards-based reference for the data elements to be populated in forms. However, the IG does not mandate how consuming systems retrieve or execute this logic. Implementing systems (e.g., EMRs) may evaluate FHIRPath expressions against FHIR APIs, translate them into local query mechanisms (such as SQL), or resolve them using in-memory data models, as long as the populated results are consistent.
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.
Ontario Health specifies the following behavior for compliant rendering systems:
In addition to the standard rendering guidance defined in the HL7 Structured Data Capture (SDC) specification, the Ontario eForms ecosystem includes a small set of Ontario-specific rendering capabilities that support referral workflows and advanced presentation formats.
Liquid-Based Response Rendering Templates
Some referral workflows require a structured referral letter to be generated after a QuestionnaireResponse is completed. Ontario systems accomplish this by using Liquid templates that are referenced directly from the Questionnaire.
Questionnaire MAY include the responseRenderingLiquid extensionLibrary or Binary resource (Questionnaire.contained), orLibrary available on a FHIR server.QuestionnaireResponse.These note extensions are attached to Questionnaire.item (group/question) or Questionnaire.item.answerOption and can convey conditional note logic, sort order, positive or negative phrasing, and styling.
Form fillers MAY ignore these extensions; however, systems that support Liquid-based rendering can use them to generate rich, structured referral letters.
Interactive SVG-Based Form Presentations
Some systems in Ontario implement clickable SVG-based forms, where the form layout is rendered as an SVG image and user interactions (for example, clicking regions of the image) populate values in the underlying Questionnaire.
Questionnaire.item.choiceDiagram extension can reference an SVG image stored as a contained Binary resource or hosted externally.These rendering capabilities are optional and represent Ontario-specific presentation behaviours layered on top of the standard SDC Questionnaire model. Systems that do not support them can still process the underlying Questionnaire and QuestionnaireResponse in a fully conformant manner.