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 supports the publication and exchange of standardized referral forms containing both English and French content. Implementing systems SHALL support presentation of form labels, instructions, and other user-facing content in the language selected by the end user, consistent with the translation and localization mechanisms defined by this Implementation Guide.
French language text is communicated in the Questionnaire using the 'translation' extension present on most string elements. In the completed QuestionnaireResponse, the item text and code display values SHALL be what the user saw when completing the Questionnaire, with the exception of 'string' questions with enumerated options. In those situations, the values must remain the English string. However, the translated French equivalent (copied from the Questionnaire) SHALL be present as a translation extension to allow appropriate rendering.
An example of a Questionnaire with translations can be found here, along with completed QuestionnaireResponses in English and French.
NOTE: The example Questionnaire provided does not have updated Liquid that supports French narrative generation. This is expected to be addressed in a future release.
The guide makes use of styles on item, text, and option.
text of a display item, question, or group heading.Each style extension is constrained to a specific list of styles. Ontario Health forms will not make use of styles not covered in these lists without producing a new version of the guide. These lists are constrained to allow implementers a chance to map from the “HTML styles” to whatever style mechanism they use internally, if they do not render their forms using HTML. Also, knowledge of what styles may be asserted may influence EMR default rendering choices.
It is also possible for styles to be asserted as part of HTML elements. However, such elements will limit themselves to the same value sets as are used for the base elements (i.e. text HTML will be limited to text styles, option HTML will be limited to option styles). The primary purpose of HTML is where styles need to be mixed (e.g. some text is bold or italic, while other text is not). HTML also allows embedding line breaks as part of the text.
XHTML may also be used to insert non-breaking spaces (for example,  ) into content where needed to preserve intended spacing or prevent undesirable line wrapping.
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.