Generate a documentation report
Save ▾ → 📖 Generate Docs… turns the questionnaire you're building into a human-readable report — structure, visibility logic, expressions, and a validation/audit summary — that you can hand to a non-technical stakeholder or QA reviewer without asking them to open the builder.
Opening it
Open Save ▾ → Generate Docs…. The report opens in a new browser tab
(questionnaire-docs.html) built entirely from the questionnaire currently
loaded — nothing is sent to a server.
What's in the report
- Legend — every icon/badge used below, explained once.
- Metadata — title, URL, version, status, publisher, description, and (when set) the rest of the questionnaire's identifying details: purpose/business identifiers, codes, where it was derived from or what it replaces, resource version/source info, and any terminology server, StructureMap, or launch-context settings configured in Questionnaire Properties.
- Variables — questionnaire-level SDC
%variabledeclarations, as formatted JSON. - Contained Resources — every
Questionnaire.contained[]resource (e.g. aValueSetreferenced locally), as formatted JSON. - Structure — every group/question as a connector-line tree, each row
showing its linkId,
prefix(if any), item type, andmin..maxcardinality as colored tags, plus:- Visibility (
enableWhen/enableWhenExpression), Calculated, and Initial value expressions, described in plain English above the raw FHIRPath (falls back to code-only when an expression can't be described). - Answer options — a static list, or wherever they come from instead: a
ValueSet(named and linked back to Contained Resources when it's a local#-reference, shown as a bare URL otherwise), or a dynamically computedanswerExpression/candidateExpression. - Constraints, translated language versions (🌐), custom Appearance (🎎) notes, and any other property the item carries — short text, entry format, column layout, codes, numeric/slider limits, attachment size and file-type restrictions, the allowed resource type for a reference question, the unit for a quantity question, a validation pattern, a per-item terminology server override, etc.
- Visibility (
- Validation & Audit — the same checks as the builder's own Validate and Audit tools.
Printing and downloading
- 🖨️ Print / Save as PDF — opens the browser print dialog; screen-only
chrome (buttons, table of contents links) is hidden via
@media print. - ⬇ Download as Text — saves the same content as a plain
.txtfile, using the same tree layout as the on-screen report.
How it's built
The report is generated once, client-side, from the loaded questionnaire and answer state at the moment you click Generate Docs… — reopen the menu item after making changes to get an up-to-date report.
Next: Translate a questionnaire.